vendor: 5,201 bytes, lines 1-2
1var __IMPORT_META_ENV={};var __PROCESS_ENV={NODE_ENV:"production"}; 2var gae=Object.create;var ik=Object.defineProperty;var vae=Object.getOwnPropertyDescriptor;var yae=Object.getOwnPropertyNames;var bae=Object.getPrototypeOf,xae=Object.prototype.hasOwnProperty;var wae=(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 H=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),UO=(e,t)=>{for(var r in t)ik(e,r,{get:t[r],enumerable:!0})},Sae=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of yae(t))!xae.call(e,n)&&n!==r&&ik(e,n,{get:()=>t[n],enumerable:!(a=vae(t,n))||a.enumerable});return e};var R=(e,t,r)=>(r=e!=null?gae(bae(e)):{},Sae(t||!e||!e.__esModule?ik(r,"default",{value:e,enumerable:!0}):r,e));var QO=H(pt=>{"use strict";var Sh=Symbol.for("react.element"),Cae=Symbol.for("react.portal"),kae=Symbol.for("react.fragment"),Nae=Symbol.for("react.strict_mode"),Iae=Symbol.for("react.profiler"),Pae=Symbol.for("react.provider"),Eae=Symbol.for("react.context"),Aae=Symbol.for("react.forward_ref"),Lae=Symbol.for("react.suspense"),Tae=Symbol.for("react.memo"),Rae=Symbol.for("react.lazy"),qO=Symbol.iterator;function Oae(e){return e===null||typeof e!="object"?null:(e=qO&&e[qO]||e["@@iterator"],typeof e=="function"?e:null)}var WO={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},GO=Object.assign,$O={};function Gd(e,t,r){this.props=e,this.context=t,this.refs=$O,this.updater=r||WO}Gd.prototype.isReactComponent={};Gd.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")};Gd.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function KO(){}KO.prototype=Gd.prototype;function lk(e,t,r){this.props=e,this.context=t,this.refs=$O,this.updater=r||WO}var ck=lk.prototype=new KO;ck.constructor=lk;GO(ck,Gd.prototype);ck.isPureReactComponent=!0;var zO=Array.isArray,XO=Object.prototype.hasOwnProperty,uk={current:null},YO={key:!0,ref:!0,__self:!0,__source:!0};function JO(e,t,r){var a,n={},o=null,i=null;if(t!=null)for(a in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)XO.call(t,a)&&!YO.hasOwnProperty(a)&&(n[a]=t[a]);var s=arguments.length-2;if(s===1)n.children=r;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];n.children=l}if(e&&e.defaultProps)for(a in s=e.defaultProps,s)n[a]===void 0&&(n[a]=s[a]);return{$$typeof:Sh,type:e,key:o,ref:i,props:n,_owner:uk.current}}function Dae(e,t){return{$$typeof:Sh,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function dk(e){return typeof e=="object"&&e!==null&&e.$$typeof===Sh}function Mae(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var HO=/\/+/g;function sk(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Mae(""+e.key):t.toString(36)}function ub(e,t,r,a,n){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Sh:case Cae:i=!0}}if(i)return i=e,n=n(i),e=a===""?"."+sk(i,0):a,zO(n)?(r="",e!=null&&(r=e.replace(HO,"$&/")+"/"),ub(n,t,r,"",function(c){return c})):n!=null&&(dk(n)&&(n=Dae(n,r+(!n.key||i&&i.key===n.key?"":(""+n.key).replace(HO,"$&/")+"/")+e)),t.push(n)),1;if(i=0,a=a===""?".":a+":",zO(e))for(var s=0;s<e.length;s++){o=e[s];var l=a+sk(o,s);i+=ub(o,t,r,l,n)}else if(l=Oae(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=a+sk(o,s++),i+=ub(o,t,r,l,n);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function cb(e,t,r){if(e==null)return e;var a=[],n=0;return ub(e,a,"","",function(o){return t.call(r,o,n++)}),a}function _ae(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 cn={current:null},db={transition:null},Fae={ReactCurrentDispatcher:cn,ReactCurrentBatchConfig:db,ReactCurrentOwner:uk};function ZO(){throw Error("act(...) is not supported in production builds of React.")}pt.Children={map:cb,forEach:function(e,t,r){cb(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return cb(e,function(){t++}),t},toArray:function(e){return cb(e,function(t){return t})||[]},only:function(e){if(!dk(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};pt.Component=Gd;pt.Fragment=kae;pt.Profiler=Iae;pt.PureComponent=lk;pt.StrictMode=Nae;pt.Suspense=Lae;
vendor: 10,461 bytes, line 2
2pt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Fae;pt.act=ZO;pt.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=GO({},e.props),n=e.key,o=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,i=uk.current),t.key!==void 0&&(n=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)XO.call(t,l)&&!YO.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 c=0;c<l;c++)s[c]=arguments[c+2];a.children=s}return{$$typeof:Sh,type:e.type,key:n,ref:o,props:a,_owner:i}};pt.createContext=function(e){return e={$$typeof:Eae,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Pae,_context:e},e.Consumer=e};pt.createElement=JO;pt.createFactory=function(e){var t=JO.bind(null,e);return t.type=e,t};pt.createRef=function(){return{current:null}};pt.forwardRef=function(e){return{$$typeof:Aae,render:e}};pt.isValidElement=dk;pt.lazy=function(e){return{$$typeof:Rae,_payload:{_status:-1,_result:e},_init:_ae}};pt.memo=function(e,t){return{$$typeof:Tae,type:e,compare:t===void 0?null:t}};pt.startTransition=function(e){var t=db.transition;db.transition={};try{e()}finally{db.transition=t}};pt.unstable_act=ZO;pt.useCallback=function(e,t){return cn.current.useCallback(e,t)};pt.useContext=function(e){return cn.current.useContext(e)};pt.useDebugValue=function(){};pt.useDeferredValue=function(e){return cn.current.useDeferredValue(e)};pt.useEffect=function(e,t){return cn.current.useEffect(e,t)};pt.useId=function(){return cn.current.useId()};pt.useImperativeHandle=function(e,t,r){return cn.current.useImperativeHandle(e,t,r)};pt.useInsertionEffect=function(e,t){return cn.current.useInsertionEffect(e,t)};pt.useLayoutEffect=function(e,t){return cn.current.useLayoutEffect(e,t)};pt.useMemo=function(e,t){return cn.current.useMemo(e,t)};pt.useReducer=function(e,t,r){return cn.current.useReducer(e,t,r)};pt.useRef=function(e){return cn.current.useRef(e)};pt.useState=function(e){return cn.current.useState(e)};pt.useSyncExternalStore=function(e,t,r){return cn.current.useSyncExternalStore(e,t,r)};pt.useTransition=function(){return cn.current.useTransition()};pt.version="18.3.1"});var Q=H((cVe,eD)=>{"use strict";eD.exports=QO()});var uD=H(Wt=>{"use strict";function hk(e,t){var r=e.length;e.push(t);e:for(;0<r;){var a=r-1>>>1,n=e[a];if(0<fb(n,t))e[a]=t,e[r]=n,r=a;else break e}}function gi(e){return e.length===0?null:e[0]}function mb(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,n=e.length,o=n>>>1;a<o;){var i=2*(a+1)-1,s=e[i],l=i+1,c=e[l];if(0>fb(s,r))l<n&&0>fb(c,s)?(e[a]=c,e[l]=r,a=l):(e[a]=s,e[i]=r,a=i);else if(l<n&&0>fb(c,r))e[a]=c,e[l]=r,a=l;else break e}}return t}function fb(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(tD=performance,Wt.unstable_now=function(){return tD.now()}):(fk=Date,rD=fk.now(),Wt.unstable_now=function(){return fk.now()-rD});var tD,fk,rD,Xi=[],Ml=[],jae=1,To=null,Va=3,hb=!1,eu=!1,kh=!1,oD=typeof setTimeout=="function"?setTimeout:null,iD=typeof clearTimeout=="function"?clearTimeout:null,aD=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function gk(e){for(var t=gi(Ml);t!==null;){if(t.callback===null)mb(Ml);else if(t.startTime<=e)mb(Ml),t.sortIndex=t.expirationTime,hk(Xi,t);else break;t=gi(Ml)}}function vk(e){if(kh=!1,gk(e),!eu)if(gi(Xi)!==null)eu=!0,bk(yk);else{var t=gi(Ml);t!==null&&xk(vk,t.startTime-e)}}function yk(e,t){eu=!1,kh&&(kh=!1,iD(Nh),Nh=-1),hb=!0;var r=Va;try{for(gk(t),To=gi(Xi);To!==null&&(!(To.expirationTime>t)||e&&!cD());){var a=To.callback;if(typeof a=="function"){To.callback=null,Va=To.priorityLevel;var n=a(To.expirationTime<=t);t=Wt.unstable_now(),typeof n=="function"?To.callback=n:To===gi(Xi)&&mb(Xi),gk(t)}else mb(Xi);To=gi(Xi)}if(To!==null)var o=!0;else{var i=gi(Ml);i!==null&&xk(vk,i.startTime-t),o=!1}return o}finally{To=null,Va=r,hb=!1}}var gb=!1,pb=null,Nh=-1,sD=5,lD=-1;function cD(){return!(Wt.unstable_now()-lD<sD)}function pk(){if(pb!==null){var e=Wt.unstable_now();lD=e;var t=!0;try{t=pb(!0,e)}finally{t?Ch():(gb=!1,pb=null)}}else gb=!1}var Ch;typeof aD=="function"?Ch=function(){aD(pk)}:typeof MessageChannel<"u"?(mk=new MessageChannel,nD=mk.port2,mk.port1.onmessage=pk,Ch=function(){nD.postMessage(null)}):Ch=function(){oD(pk,0)};var mk,nD;function bk(e){pb=e,gb||(gb=!0,Ch())}function xk(e,t){Nh=oD(function(){e(Wt.unstable_now())},t)}Wt.unstable_IdlePriority=5;Wt.unstable_ImmediatePriority=1;Wt.unstable_LowPriority=4;Wt.unstable_NormalPriority=3;Wt.unstable_Profiling=null;Wt.unstable_UserBlockingPriority=2;Wt.unstable_cancelCallback=function(e){e.callback=null};Wt.unstable_continueExecution=function(){eu||hb||(eu=!0,bk(yk))};Wt.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"):sD=0<e?Math.floor(1e3/e):5};Wt.unstable_getCurrentPriorityLevel=function(){return Va};Wt.unstable_getFirstCallbackNode=function(){return gi(Xi)};Wt.unstable_next=function(e){switch(Va){case 1:case 2:case 3:var t=3;break;default:t=Va}var r=Va;Va=t;try{return e()}finally{Va=r}};Wt.unstable_pauseExecution=function(){};Wt.unstable_requestPaint=function(){};Wt.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=Va;Va=e;try{return t()}finally{Va=r}};Wt.unstable_scheduleCallback=function(e,t,r){var a=Wt.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 n=-1;break;case 2:n=250;break;case 5:n=1073741823;break;case 4:n=1e4;break;default:n=5e3}return n=r+n,e={id:jae++,callback:t,priorityLevel:e,startTime:r,expirationTime:n,sortIndex:-1},r>a?(e.sortIndex=r,hk(Ml,e),gi(Xi)===null&&e===gi(Ml)&&(kh?(iD(Nh),Nh=-1):kh=!0,xk(vk,r-a))):(e.sortIndex=n,hk(Xi,e),eu||hb||(eu=!0,bk(yk))),e};Wt.unstable_shouldYield=cD;Wt.unstable_wrapCallback=function(e){var t=Va;return function(){var r=Va;Va=t;try{return e.apply(this,arguments)}finally{Va=r}}}});var fD=H((dVe,dD)=>{"use strict";dD.exports=uD()});var g_=H(no=>{"use strict";var Bae=Q(),ro=fD();function Se(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 bM=new Set,$h={};function pu(e,t){mf(e,t),mf(e+"Capture",t)}function mf(e,t){for($h[e]=t,e=0;e<t.length;e++)bM.add(t[e])}var zs=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),zk=Object.prototype.hasOwnProperty,Vae=/^[: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]*$/,pD={},mD={};function Uae(e){return zk.call(mD,e)?!0:zk.call(pD,e)?!1:Vae.test(e)?mD[e]=!0:(pD[e]=!0,!1)}function qae(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 zae(e,t,r,a){if(t===null||typeof t>"u"||qae(e,t,r,a))return!0;if(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 fn(e,t,r,a,n,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=a,this.attributeNamespace=n,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var Ta={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ta[e]=new fn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ta[t]=new fn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ta[e]=new fn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ta[e]=new fn(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){Ta[e]=new fn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ta[e]=new fn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ta[e]=new fn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ta[e]=new fn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ta[e]=new fn(e,5,!1,e.toLowerCase(),null,!1,!1)});var MN=/[\-:]([a-z])/g;function _N(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
2-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(MN,_N);Ta[t]=new fn(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(MN,_N);Ta[t]=new fn(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(MN,_N);Ta[t]=new fn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ta[e]=new fn(e,1,!1,e.toLowerCase(),null,!1,!1)});Ta.xlinkHref=new fn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ta[e]=new fn(e,1,!1,e.toLowerCase(),null,!0,!0)});function FN(e,t,r,a){var n=Ta.hasOwnProperty(t)?Ta[t]:null;(n!==null?n.type!==0:a||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(zae(t,r,n,a)&&(r=null),a||n===null?Uae(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):n.mustUseProperty?e[n.propertyName]=r===null?n.type===3?!1:"":r:(t=n.attributeName,a=n.attributeNamespace,r===null?e.removeAttribute(t):(n=n.type,r=n===3||n===4&&r===!0?"":""+r,a?e.setAttributeNS(a,t,r):e.setAttribute(t,r))))}var $s=Bae.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,vb=Symbol.for("react.element"),Xd=Symbol.for("react.portal"),Yd=Symbol.for("react.fragment"),jN=Symbol.for("react.strict_mode"),Hk=Symbol.for("react.profiler"),xM=Symbol.for("react.provider"),wM=Symbol.for("react.context"),BN=Symbol.for("react.forward_ref"),Wk=Symbol.for("react.suspense"),Gk=Symbol.for("react.suspense_list"),VN=Symbol.for("react.memo"),Fl=Symbol.for("react.lazy"),SM=Symbol.for("react.offscreen"),hD=Symbol.iterator;function Ih(e){return e===null||typeof e!="object"?null:(e=hD&&e[hD]||e["@@iterator"],typeof e=="function"?e:null)}var Sr=Object.assign,wk;function Dh(e){if(wk===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);wk=t&&t[1]||""}return` 3`+wk+e}var Sk=!1;function Ck(e,t){if(!e||Sk)return"";Sk=!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(c){var a=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){a=c}e.call(t.prototype)}else{try{throw Error()}catch(c){a=c}e()}}catch(c){if(c&&a&&typeof c.stack=="string"){for(var n=c.stack.split(` 4`),o=a.stack.split(` 5`),i=n.length-1,s=o.length-1;1<=i&&0<=s&&n[i]!==o[s];)s--;for(;1<=i&&0<=s;i--,s--)if(n[i]!==o[s]){if(i!==1||s!==1)do if(i--,s--,0>s||n[i]!==o[s]){var l=` 6`+n[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{Sk=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Dh(e):""}function Hae(e){switch(e.tag){case 5:return Dh(e.type);case 16:return Dh("Lazy");case 13:return Dh("Suspense");case 19:return Dh("SuspenseList");case 0:case 2:case 15:return e=Ck(e.type,!1),e;case 11:return e=Ck(e.type.render,!1),e;case 1:return e=Ck(e.type,!0),e;default:return""}}function $k(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 Yd:return"Fragment";case Xd:return"Portal";case Hk:return"Profiler";case jN:return"StrictMode";case Wk:return"Suspense";case Gk:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case wM:return(e.displayName||"Context")+".Consumer";case xM:return(e._context.displayName||"Context")+".Provider";case BN:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case VN:return t=e.displayName||null,t!==null?t:$k(e.type)||"Memo";case Fl:t=e._payload,e=e._init;try{return $k(e(t))}catch{}}return null}function Wae(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 $k(t);case 8:return t===jN?"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 Jl(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function CM(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Gae(e){var t=CM(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 n=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(i){a=""+i,o.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 yb(e){e._valueTracker||(e._valueTracker=Gae(e))}function kM(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),a="";return e&&(a=CM(e)?e.checked?"true":"false":e.value),e=a,e!==r?(t.setValue(e),!0):!1}function Gb(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 Kk(e,t){var r=t.checked;return Sr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function gD(e,t){var r=t.defaultValue==null?"":t.defaultValue,a=t.checked!=null?t.checked:t.defaultChecked;r=Jl(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}}
vendor: 4,664 bytes, line 6
6function NM(e,t){t=t.checked,t!=null&&FN(e,"checked",t,!1)}function Xk(e,t){NM(e,t);var r=Jl(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")?Yk(e,t.type,r):t.hasOwnProperty("defaultValue")&&Yk(e,t.type,Jl(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function vD(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 Yk(e,t,r){(t!=="number"||Gb(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Mh=Array.isArray;function lf(e,t,r,a){if(e=e.options,t){t={};for(var n=0;n<r.length;n++)t["$"+r[n]]=!0;for(r=0;r<e.length;r++)n=t.hasOwnProperty("$"+e[r].value),e[r].selected!==n&&(e[r].selected=n),n&&a&&(e[r].defaultSelected=!0)}else{for(r=""+Jl(r),t=null,n=0;n<e.length;n++){if(e[n].value===r){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function Jk(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Se(91));return Sr({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function yD(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(Se(92));if(Mh(r)){if(1<r.length)throw Error(Se(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Jl(r)}}function IM(e,t){var r=Jl(t.value),a=Jl(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 bD(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function PM(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 Zk(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?PM(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var bb,EM=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,a,n){MSApp.execUnsafeLocalFunction(function(){return e(t,r,a,n)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(bb=bb||document.createElement("div"),bb.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=bb.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Kh(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var jh={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},$ae=["Webkit","ms","Moz","O"];Object.keys(jh).forEach(function(e){$ae.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),jh[t]=jh[e]})});function AM(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||jh.hasOwnProperty(e)&&jh[e]?(""+t).trim():t+"px"}function LM(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var a=r.indexOf("--")===0,n=AM(r,t[r],a);r==="float"&&(r="cssFloat"),a?e.setProperty(r,n):e[r]=n}}var Kae=Sr({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 Qk(e,t){if(t){if(Kae[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Se(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Se(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Se(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Se(62))}}function eN(e,t){if(e.indexOf("-")===-1)return typeof t.is=="str
6ing";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 tN=null;function UN(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var rN=null,cf=null,uf=null;function xD(e){if(e=fg(e)){if(typeof rN!="function")throw Error(Se(280));var t=e.stateNode;t&&(t=xx(t),rN(e.stateNode,e.type,t))}}function TM(e){cf?uf?uf.push(e):uf=[e]:cf=e}function RM(){if(cf){var e=cf,t=uf;if(uf=cf=null,xD(e),t)for(e=0;e<t.length;e++)xD(t[e])}}function OM(e,t){return e(t)}function DM(){}var kk=!1;function MM(e,t,r){if(kk)return e(t,r);kk=!0;try{return OM(e,t,r)}finally{kk=!1,(cf!==null||uf!==null)&&(DM(),RM())}}function Xh(e,t){var r=e.stateNode;if(r===null)return null;var a=xx(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(Se(231,t,typeof r));return r}var aN=!1;if(zs)try{$d={},Object.defineProperty($d,"passive",{get:function(){aN=!0}}),window.addEventListener("test",$d,$d),window.removeEventListener("test",$d,$d)}catch{aN=!1}var $d;function Xae(e,t,r,a,n,o,i,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(d){this.onError(d)}}var Bh=!1,$b=null,Kb=!1,nN=null,Yae={onError:function(e){Bh=!0,$b=e}};function Jae(e,t,r,a,n,o,i,s,l){Bh=!1,$b=null,Xae.apply(Yae,arguments)}function Zae(e,t,r,a,n,o,i,s,l){if(Jae.apply(this,arguments),Bh){if(Bh){var c=$b;Bh=!1,$b=null}else throw Error(Se(198));Kb||(Kb=!0,nN=c)}}function mu(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 _M(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function wD(e){if(mu(e)!==e)throw Error(Se(188))}function Qae(e){var t=e.alternate;if(!t){if(t=mu(e),t===null)throw Error(Se(188));return t!==e?null:e}for(var r=e,a=t;;){var n=r.return;if(n===null)break;var o=n.alternate;if(o===null){if(a=n.return,a!==null){r=a;continue}break}if(n.child===o.child){for(o=n.child;o;){if(o===r)return wD(n),e;if(o===a)return wD(n),t;o=o.sibling}throw Error(Se(188))}if(r.return!==a.return)r=n,a=o;else{for(var i=!1,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){for(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)throw Error(Se(189))}}if(r.alternate!==a)throw Error(Se(190))}if(r.tag!==3)throw Error(Se(188));return r.stateNode.current===r?e:t}function FM(e){return e=Qae(e),e!==null?jM(e):null}function jM(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=jM(e);if(t!==null)return t;e=e.sibling}return null}var BM=ro.unstable_scheduleCallback,SD=ro.unstable_cancelCallback,ene=ro.unstable_shouldYield,tne=ro.unstable_requestPaint,Fr=ro.unstable_now,rne=ro.unstable_getCurrentPriorityLevel,qN=ro.unstable_ImmediatePriority,VM=ro.unstable_UserBlockingPriority,Xb=ro.unstable_NormalPriority,ane=ro.unstable_LowPriority,UM=ro.unstable_IdlePriority,gx=null,Qi=null;function nne(e){if(Qi&&typeof Qi.onCommitFiberRoot=="function")try{Qi.onCommitFiberRoot(gx,e,void 0,(e.current.flags&128)===128)}catch{}}var wi=Math.clz32?Math.clz32:sne,one=Math.log,ine=Math.LN2;function sne(e){return e>>>=0,e===0?32:31-(one(e)/ine|0)|0}var xb=64,wb=4194304;function _h(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 Yb(e,t){var r=e.pendingLanes;if(r===0)return 0;var a=0,n=e.suspendedLanes,o=e.pingedLanes,i=r&268435455;if(i!==0){var s=i&~n;s!==0?a=_h(s):(o&=i,o!==0&&(a=_h(o)))}else i=r&~n,i!==0?a=_h(i):o!==0&&(a=_h(o));if(a===0)return 0;if(t!==0&&t!==a&&(t&n)===0&&(n=a&-a,o=t&-t,n>=o||n===16&&(o&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-wi(t),n=1<<r,a|=e[r],t&=~n;return a}function lne(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 cne(e,t){for(var r=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,o=e.pendingLanes;0<o;){var i=31-wi(o),s=1<<i,l=n[i];l===-1?((s&r)===0||(s&a)!==0)&&(n[i]=lne(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}function oN(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function qM(){var e=xb;return xb<<=1,(xb&4194240)===0&&(xb=64),e}function Nk(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}
vendor: 8,499 bytes, line 6
6function ug(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-wi(t),e[t]=r}function une(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 n=31-wi(r),o=1<<n;t[n]=0,a[n]=-1,e[n]=-1,r&=~o}}function zN(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var a=31-wi(r),n=1<<a;n&t|e[a]&t&&(e[a]|=t),r&=~n}}var Ot=0;function zM(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var HM,HN,WM,GM,$M,iN=!1,Sb=[],zl=null,Hl=null,Wl=null,Yh=new Map,Jh=new Map,Bl=[],dne="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 CD(e,t){switch(e){case"focusin":case"focusout":zl=null;break;case"dragenter":case"dragleave":Hl=null;break;case"mouseover":case"mouseout":Wl=null;break;case"pointerover":case"pointerout":Yh.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Jh.delete(t.pointerId)}}function Ph(e,t,r,a,n,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:r,eventSystemFlags:a,nativeEvent:o,targetContainers:[n]},t!==null&&(t=fg(t),t!==null&&HN(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function fne(e,t,r,a,n){switch(t){case"focusin":return zl=Ph(zl,e,t,r,a,n),!0;case"dragenter":return Hl=Ph(Hl,e,t,r,a,n),!0;case"mouseover":return Wl=Ph(Wl,e,t,r,a,n),!0;case"pointerover":var o=n.pointerId;return Yh.set(o,Ph(Yh.get(o)||null,e,t,r,a,n)),!0;case"gotpointercapture":return o=n.pointerId,Jh.set(o,Ph(Jh.get(o)||null,e,t,r,a,n)),!0}return!1}function KM(e){var t=au(e.target);if(t!==null){var r=mu(t);if(r!==null){if(t=r.tag,t===13){if(t=_M(r),t!==null){e.blockedOn=t,$M(e.priority,function(){WM(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 _b(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=sN(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var a=new r.constructor(r.type,r);tN=a,r.target.dispatchEvent(a),tN=null}else return t=fg(r),t!==null&&HN(t),e.blockedOn=r,!1;t.shift()}return!0}function kD(e,t,r){_b(e)&&r.delete(t)}function pne(){iN=!1,zl!==null&&_b(zl)&&(zl=null),Hl!==null&&_b(Hl)&&(Hl=null),Wl!==null&&_b(Wl)&&(Wl=null),Yh.forEach(kD),Jh.forEach(kD)}function Eh(e,t){e.blockedOn===t&&(e.blockedOn=null,iN||(iN=!0,ro.unstable_scheduleCallback(ro.unstable_NormalPriority,pne)))}function Zh(e){function t(n){return Eh(n,e)}if(0<Sb.length){Eh(Sb[0],e);for(var r=1;r<Sb.length;r++){var a=Sb[r];a.blockedOn===e&&(a.blockedOn=null)}}for(zl!==null&&Eh(zl,e),Hl!==null&&Eh(Hl,e),Wl!==null&&Eh(Wl,e),Yh.forEach(t),Jh.forEach(t),r=0;r<Bl.length;r++)a=Bl[r],a.blockedOn===e&&(a.blockedOn=null);for(;0<Bl.length&&(r=Bl[0],r.blockedOn===null);)KM(r),r.blockedOn===null&&Bl.shift()}var df=$s.ReactCurrentBatchConfig,Jb=!0;function mne(e,t,r,a){var n=Ot,o=df.transition;df.transition=null;try{Ot=1,WN(e,t,r,a)}finally{Ot=n,df.transition=o}}function hne(e,t,r,a){var n=Ot,o=df.transition;df.transition=null;try{Ot=4,WN(e,t,r,a)}finally{Ot=n,df.transition=o}}function WN(e,t,r,a){if(Jb){var n=sN(e,t,r,a);if(n===null)Rk(e,t,a,Zb,r),CD(e,a);else if(fne(n,e,t,r,a))a.stopPropagation();else if(CD(e,a),t&4&&-1<dne.indexOf(e)){for(;n!==null;){var o=fg(n);if(o!==null&&HM(o),o=sN(e,t,r,a),o===null&&Rk(e,t,a,Zb,r),o===n)break;n=o}n!==null&&a.stopPropagation()}else Rk(e,t,a,null,r)}}var Zb=null;function sN(e,t,r,a){if(Zb=null,e=UN(a),e=au(e),e!==null)if(t=mu(e),t===null)e=null;else if(r=t.tag,r===13){if(e=_M(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 Zb=e,null}function XM(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(rne()){case qN:return 1;case VM:return 4;case Xb:case ane:return 16;case UM:return 536870912;default:return 16}default:return 16}}var Ul=null,GN=null,Fb=null;function YM(){if(Fb)return Fb;var e,t=GN,r=t.length,a,n="value"in Ul?Ul.value:Ul.textContent,o=n.length;for(e=0;e<r&&t[e]===n[e];e++);var i=r-e;for(a=1;a<=i&&t[r-a]===n[o-a];a++);return Fb=n.slice(e,1<a?1-a:void 0)}function jb(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 Cb(){return!0}function ND(){return!1}function ao(e){function t(r,a,n,o,i){this._reactName=r,this._targetInst=n,this.type=a,this.nativeEvent=o,this.target=i,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(r=e[s],this[s]=r?r(o):o[s]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Cb:ND,this.isPropagationStopped=ND,this}return Sr(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=Cb)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Cb)},persist:function(){},isPersistent:Cb}),t}var wf={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},$N=ao(wf),dg=Sr({},wf,{view:0,detail:0}),gne=ao(dg),Ik,Pk,Ah,vx=Sr({},dg,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:KN,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!==Ah&&(Ah&&e.type==="mousemove"?(Ik=e.screenX-Ah.screenX,Pk=e.screenY-Ah.screenY):Pk=Ik=0,Ah=e),Ik)},movementY:function(e){return"movementY"in e?e.movementY:Pk}}),ID=ao(vx),vne=Sr({},vx,{dataTransfer:0}),yne=ao(vne),bne=Sr({},dg,{relatedTarget:0}),Ek=ao(bne),xne=Sr({},wf,{animationName:0,elapsedTime:0,pseudoElement:0}),wne=ao(xne),Sne=Sr({},wf,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Cne=ao(Sne),kne=Sr({},wf,{data:0}),PD=ao(kne),Nne={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ine={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"},Pne={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ene(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Pne[e])?!!t[e]:!1}function KN(){return Ene}var Ane=Sr({},dg,{key:function(e){if(e.key){var t=Nne[e.key]||e.key;if(t!=="Unidentified")return t}
vendor: 6,048 bytes, line 6
6return e.type==="keypress"?(e=jb(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Ine[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:KN,charCode:function(e){return e.type==="keypress"?jb(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?jb(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Lne=ao(Ane),Tne=Sr({},vx,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ED=ao(Tne),Rne=Sr({},dg,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:KN}),One=ao(Rne),Dne=Sr({},wf,{propertyName:0,elapsedTime:0,pseudoElement:0}),Mne=ao(Dne),_ne=Sr({},vx,{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}),Fne=ao(_ne),jne=[9,13,27,32],XN=zs&&"CompositionEvent"in window,Vh=null;zs&&"documentMode"in document&&(Vh=document.documentMode);var Bne=zs&&"TextEvent"in window&&!Vh,JM=zs&&(!XN||Vh&&8<Vh&&11>=Vh),AD=" ",LD=!1;function ZM(e,t){switch(e){case"keyup":return jne.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function QM(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Jd=!1;function Vne(e,t){switch(e){case"compositionend":return QM(t);case"keypress":return t.which!==32?null:(LD=!0,AD);case"textInput":return e=t.data,e===AD&&LD?null:e;default:return null}}function Une(e,t){if(Jd)return e==="compositionend"||!XN&&ZM(e,t)?(e=YM(),Fb=GN=Ul=null,Jd=!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 JM&&t.locale!=="ko"?null:t.data;default:return null}}var qne={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 TD(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!qne[e.type]:t==="textarea"}function e4(e,t,r,a){TM(a),t=Qb(t,"onChange"),0<t.length&&(r=new $N("onChange","change",null,r,a),e.push({event:r,listeners:t}))}var Uh=null,Qh=null;function zne(e){d4(e,0)}function yx(e){var t=ef(e);if(kM(t))return e}function Hne(e,t){if(e==="change")return t}var t4=!1;zs&&(zs?(Nb="oninput"in document,Nb||(Ak=document.createElement("div"),Ak.setAttribute("oninput","return;"),Nb=typeof Ak.oninput=="function"),kb=Nb):kb=!1,t4=kb&&(!document.documentMode||9<document.documentMode));var kb,Nb,Ak;function RD(){Uh&&(Uh.detachEvent("onpropertychange",r4),Qh=Uh=null)}function r4(e){if(e.propertyName==="value"&&yx(Qh)){var t=[];e4(t,Qh,e,UN(e)),MM(zne,t)}}function Wne(e,t,r){e==="focusin"?(RD(),Uh=t,Qh=r,Uh.attachEvent("onpropertychange",r4)):e==="focusout"&&RD()}function Gne(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return yx(Qh)}function $ne(e,t){if(e==="click")return yx(t)}function Kne(e,t){if(e==="input"||e==="change")return yx(t)}function Xne(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ci=typeof Object.is=="function"?Object.is:Xne;function eg(e,t){if(Ci(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 n=r[a];if(!zk.call(t,n)||!Ci(e[n],t[n]))return!1}return!0}function OD(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function DD(e,t){var r=OD(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=OD(r)}}function a4(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?a4(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function n4(){for(var e=window,t=Gb();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Gb(e.document)}return t}function YN(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 Yne(e){var t=n4(),r=e.focusedElem,a=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&a4(r.ownerDocument.documentElement,r)){if(a!==null&&YN(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 n=r.textContent.length,o=Math.min(a.start,n);a=a.end===void 0?o:Math.min(a.end,n),!e.extend&&o>a&&(n=a,a=o,o=n),n=DD(r,o);var i=DD(r,a);n&&i&&(e.rangeCount!==1||e.anchorNode!==n.node||e.anchorOffset!==n.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(n.node,n.offset),e.removeAllRanges(),o>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 Jne=zs&&"documentMode"in document&&11>=document.documentMode,Zd=null,lN=null,qh=null,cN=!1;function MD(e,t,r){var a=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;cN||Zd==null||Zd!==Gb(a)||(a=Zd,"selectionStart"in a&&YN(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,519 bytes, line 6
6sNode:a.focusNode,focusOffset:a.focusOffset}),qh&&eg(qh,a)||(qh=a,a=Qb(lN,"onSelect"),0<a.length&&(t=new $N("onSelect","select",null,t,r),e.push({event:t,listeners:a}),t.target=Zd)))}function Ib(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Qd={animationend:Ib("Animation","AnimationEnd"),animationiteration:Ib("Animation","AnimationIteration"),animationstart:Ib("Animation","AnimationStart"),transitionend:Ib("Transition","TransitionEnd")},Lk={},o4={};zs&&(o4=document.createElement("div").style,"AnimationEvent"in window||(delete Qd.animationend.animation,delete Qd.animationiteration.animation,delete Qd.animationstart.animation),"TransitionEvent"in window||delete Qd.transitionend.transition);function bx(e){if(Lk[e])return Lk[e];if(!Qd[e])return e;var t=Qd[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in o4)return Lk[e]=t[r];return e}var i4=bx("animationend"),s4=bx("animationiteration"),l4=bx("animationstart"),c4=bx("transitionend"),u4=new Map,_D="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 Ql(e,t){u4.set(e,t),pu(t,[e])}for(Pb=0;Pb<_D.length;Pb++)Eb=_D[Pb],FD=Eb.toLowerCase(),jD=Eb[0].toUpperCase()+Eb.slice(1),Ql(FD,"on"+jD);var Eb,FD,jD,Pb;Ql(i4,"onAnimationEnd");Ql(s4,"onAnimationIteration");Ql(l4,"onAnimationStart");Ql("dblclick","onDoubleClick");Ql("focusin","onFocus");Ql("focusout","onBlur");Ql(c4,"onTransitionEnd");mf("onMouseEnter",["mouseout","mouseover"]);mf("onMouseLeave",["mouseout","mouseover"]);mf("onPointerEnter",["pointerout","pointerover"]);mf("onPointerLeave",["pointerout","pointerover"]);pu("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));pu("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));pu("onBeforeInput",["compositionend","keypress","textInput","paste"]);pu("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));pu("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));pu("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fh="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(" "),Zne=new Set("cancel close invalid load scroll toggle".split(" ").concat(Fh));function BD(e,t,r){var a=e.type||"unknown-event";e.currentTarget=r,Zae(a,t,void 0,e),e.currentTarget=null}function d4(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var a=e[r],n=a.event;a=a.listeners;e:{var o=void 0;if(t)for(var i=a.length-1;0<=i;i--){var s=a[i],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&n.isPropagationStopped())break e;BD(n,s,c),o=l}else for(i=0;i<a.length;i++){if(s=a[i],l=s.instance,c=s.currentTarget,s=s.listener,l!==o&&n.isPropagationStopped())break e;BD(n,s,c),o=l}}}if(Kb)throw e=nN,Kb=!1,nN=null,e}function er(e,t){var r=t[mN];r===void 0&&(r=t[mN]=new Set);var a=e+"__bubble";r.has(a)||(f4(t,e,2,!1),r.add(a))}function Tk(e,t,r){var a=0;t&&(a|=4),f4(r,e,a,t)}var Ab="_reactListening"+Math.random().toString(36).slice(2);function tg(e){if(!e[Ab]){e[Ab]=!0,bM.forEach(function(r){r!=="selectionchange"&&(Zne.has(r)||Tk(r,!1,e),Tk(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ab]||(t[Ab]=!0,Tk("selectionchange",!1,t))}}function f4(e,t,r,a){switch(XM(t)){case 1:var n=mne;break;case 4:n=hne;break;default:n=WN}r=n.bind(null,t,r,e),n=void 0,!aN||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?e.addEventListener(t,r,{capture:!0,passive:n}):e.addEventListener(t,r,!0):n!==void 0?e.addEventListener(t,r,{passive:n}):e.addEventListener(t,r,!1)}function Rk(e,t,r,a,n){var o=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: 8,936 bytes, lines 6-7
6if(s===n||s.nodeType===8&&s.parentNode===n)break;if(i===4)for(i=a.return;i!==null;){var l=i.tag;if((l===3||l===4)&&(l=i.stateNode.containerInfo,l===n||l.nodeType===8&&l.parentNode===n))return;i=i.return}for(;s!==null;){if(i=au(s),i===null)return;if(l=i.tag,l===5||l===6){a=o=i;continue e}s=s.parentNode}}a=a.return}MM(function(){var c=o,d=UN(r),u=[];e:{var f=u4.get(e);if(f!==void 0){var p=$N,m=e;switch(e){case"keypress":if(jb(r)===0)break e;case"keydown":case"keyup":p=Lne;break;case"focusin":m="focus",p=Ek;break;case"focusout":m="blur",p=Ek;break;case"beforeblur":case"afterblur":p=Ek;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":p=ID;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=yne;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=One;break;case i4:case s4:case l4:p=wne;break;case c4:p=Mne;break;case"scroll":p=gne;break;case"wheel":p=Fne;break;case"copy":case"cut":case"paste":p=Cne;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=ED}var h=(t&4)!==0,g=!h&&e==="scroll",y=h?f!==null?f+"Capture":null:f;h=[];for(var v=c,x;v!==null;){x=v;var S=x.stateNode;if(x.tag===5&&S!==null&&(x=S,y!==null&&(S=Xh(v,y),S!=null&&h.push(rg(v,S,x)))),g)break;v=v.return}0<h.length&&(f=new p(f,m,null,r,d),u.push({event:f,listeners:h}))}}if((t&7)===0){e:{if(f=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",f&&r!==tN&&(m=r.relatedTarget||r.fromElement)&&(au(m)||m[Hs]))break e;if((p||f)&&(f=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window,p?(m=r.relatedTarget||r.toElement,p=c,m=m?au(m):null,m!==null&&(g=mu(m),m!==g||m.tag!==5&&m.tag!==6)&&(m=null)):(p=null,m=c),p!==m)){if(h=ID,S="onMouseLeave",y="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(h=ED,S="onPointerLeave",y="onPointerEnter",v="pointer"),g=p==null?f:ef(p),x=m==null?f:ef(m),f=new h(S,v+"leave",p,r,d),f.target=g,f.relatedTarget=x,S=null,au(d)===c&&(h=new h(y,v+"enter",m,r,d),h.target=x,h.relatedTarget=g,S=h),g=S,p&&m)t:{for(h=p,y=m,v=0,x=h;x;x=Kd(x))v++;for(x=0,S=y;S;S=Kd(S))x++;for(;0<v-x;)h=Kd(h),v--;for(;0<x-v;)y=Kd(y),x--;for(;v--;){if(h===y||y!==null&&h===y.alternate)break t;h=Kd(h),y=Kd(y)}h=null}else h=null;p!==null&&VD(u,f,p,h,!1),m!==null&&g!==null&&VD(u,g,m,h,!0)}}e:{if(f=c?ef(c):window,p=f.nodeName&&f.nodeName.toLowerCase(),p==="select"||p==="input"&&f.type==="file")var b=Hne;else if(TD(f))if(t4)b=Kne;else{b=Gne;var w=Wne}else(p=f.nodeName)&&p.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(b=$ne);if(b&&(b=b(e,c))){e4(u,b,r,d);break e}w&&w(e,f,c),e==="focusout"&&(w=f._wrapperState)&&w.controlled&&f.type==="number"&&Yk(f,"number",f.value)}switch(w=c?ef(c):window,e){case"focusin":(TD(w)||w.contentEditable==="true")&&(Zd=w,lN=c,qh=null);break;case"focusout":qh=lN=Zd=null;break;case"mousedown":cN=!0;break;case"contextmenu":case"mouseup":case"dragend":cN=!1,MD(u,r,d);break;case"selectionchange":if(Jne)break;case"keydown":case"keyup":MD(u,r,d)}var k;if(XN)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else Jd?ZM(e,r)&&(C="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(C="onCompositionStart");C&&(JM&&r.locale!=="ko"&&(Jd||C!=="onCompositionStart"?C==="onCompositionEnd"&&Jd&&(k=YM()):(Ul=d,GN="value"in Ul?Ul.value:Ul.textContent,Jd=!0)),w=Qb(c,C),0<w.length&&(C=new PD(C,e,null,r,d),u.push({event:C,listeners:w}),k?C.data=k:(k=QM(r),k!==null&&(C.data=k)))),(k=Bne?Vne(e,r):Une(e,r))&&(c=Qb(c,"onBeforeInput"),0<c.length&&(d=new PD("onBeforeInput","beforeinput",null,r,d),u.push({event:d,listeners:c}),d.data=k))}d4(u,t)})}function rg(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Qb(e,t){for(var r=t+"Capture",a=[];e!==null;){var n=e,o=n.stateNode;n.tag===5&&o!==null&&(n=o,o=Xh(e,r),o!=null&&a.unshift(rg(e,o,n)),o=Xh(e,t),o!=null&&a.push(rg(e,o,n))),e=e.return}return a}function Kd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function VD(e,t,r,a,n){for(var o=t._reactName,i=[];r!==null&&r!==a;){var s=r,l=s.alternate,c=s.stateNode;if(l!==null&&l===a)break;s.tag===5&&c!==null&&(s=c,n?(l=Xh(r,o),l!=null&&i.unshift(rg(r,l,s))):n||(l=Xh(r,o),l!=null&&i.push(rg(r,l,s)))),r=r.return}i.length!==0&&e.push({event:t,listeners:i})}var Qne=/\r\n?/g,eoe=/\u0000|\uFFFD/g;function UD(e){return(typeof e=="string"?e:""+e).replace(Qne,` 7`).replace(eoe,"")}function Lb(e,t,r){if(t=UD(t),UD(e)!==t&&r)throw Error(Se(425))}function ex(){}var uN=null,dN=null;function fN(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 pN=typeof setTimeout=="function"?setTimeout:void 0,toe=typeof clearTimeout=="function"?clearTimeout:void 0,qD=typeof Promise=="function"?Promise:void 0,roe=typeof queueMicrotask=="function"?queueMicrotask:typeof qD<"u"?function(e){return qD.resolve(null).then(e).catch(aoe)}:pN;function aoe(e){setTimeout(function(){throw e})}function Ok(e,t){var r=t,a=0;do{var n=r.nextSibling;if(e.removeChild(r),n&&n.nodeType===8)if(r=n.data,r==="/$"){if(a===0){e.removeChild(n),Zh(t);return}a--}else r!=="$"&&r!=="$?"&&r!=="$!"||a++;r=n}while(r);Zh(t)}function Gl(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 zD(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 Sf=Math.random().toString(36).slice(2),Zi="__reactFiber$"+Sf,ag="__reactProps$"+Sf,Hs="__reactContainer$"+Sf,mN="__reactEvents$"+Sf,noe="__reactListeners$"+Sf,ooe="__reactHandles$"+Sf;function au(e){var t=e[Zi];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Hs]||r[Zi]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=zD(e);e!==null;){if(r=e[Zi])return r;e=zD(e)}return t}e=r,r=e.parentNode}return null}function fg(e){return e=e[Zi]||e[Hs],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ef(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Se(33))}function xx(e){return e[ag]||null}var hN=[],tf=-1;function ec(e){return{current:e}}function tr(e){0>tf||(e.current=hN[tf],hN[tf]=null,tf--)}function Gt(e,t){tf++,hN[tf]=e.current,e.current=t}var Zl={},Ha=ec(Zl),Ln=ec(!1),lu=Zl;function hf(e,t){var r=e.type.contextTypes;if(!r)return Zl;var a=e.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===t)return a.__reactInternalMemoizedMaskedChildContext;var n={},o;for(o in r)n[o]=t[o];return a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=n),n}function Tn(e){return e=e.childContextTypes,e!=null}function tx(){tr(Ln),tr(Ha)}function HD(e,t,r){if(Ha.current!==Zl)throw Error(Se(168));Gt(Ha,t),Gt(Ln,r)}function p4(e,t,r){var a=e.stateNode;if(t=t.childContextTypes,typeof a.getChildContext!="function")return r;a=a.getChildContext();for(var n in a)if(!(n in t))throw Error(Se(108,Wae(e)||"Unknown",n));return Sr({},r,a)}function rx(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Zl,lu=Ha.current,Gt(Ha,e),Gt(Ln,Ln.current),!0}function WD(e,t,r){var a=e.stateNode;if(!a)throw Error(Se(169));r?(e=p4(e,t,lu),a.__reactInternalMemoizedMergedChildContext=e,tr(Ln),tr(Ha),Gt(Ha,e)):tr(Ln),Gt(Ln,r)}var Bs=null,wx=!1,Dk=!1;function m4(e){Bs===null?Bs=[e]:Bs.push(e)}function ioe(e){wx=!0,m4(e)}function tc(){if(!Dk&&Bs!==null){Dk=!0;var e=0,t=Ot;try{var r=Bs;for(Ot=1;e<r.length;e++){var a=r[e];do a=a(!0);while(a!==null)}Bs=null,wx=!1}catch(n){throw Bs!==null&&(Bs=Bs.slice(e+1)),BM(qN,tc),n}finally{Ot=t,Dk=!1}}return null}var rf=[],af=0,ax=null,nx=0,Ro=[],Oo=0,cu=null,Vs=1,Us="";function tu(e,t){rf[af++]=nx,rf[af++]=ax,ax=e,nx=t}function h4(e,t,r){Ro[Oo++]=Vs,Ro[Oo++]=Us,Ro[Oo++]=cu,cu=e;var a=Vs;e=Us;var n=32-wi(a)-1;a&=~(1<<n),r+=1;var o=32-wi(t)+n;if(30<o){var i=n-n%5;o=(a&(1<<i)-1).toString(32),a>>=i,n-=i,Vs=1<<32-wi(t)+n|r<<n|a,Us=o+e}else Vs=1<<o|r<<n|a,Us=e}function JN(e){e.return!==null&&(tu(e,1),h4(e,1,0))}function ZN(e){for(;e===ax;)ax=rf[--af],rf[af]=null,nx=rf[--af],rf[af]=null;for(;e===cu;)cu=Ro[--Oo],Ro[Oo]=null,Us=Ro[--Oo],Ro[Oo]=null,Vs=Ro[--Oo],Ro[Oo]=null}var to=null,eo=null,dr=!1,xi=null;function g4(e,t){var r=Do(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 GD(e,t){switch(e.tag){case 5:var r=e.type;
vendor: 5,303 bytes, line 7
7return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,to=e,eo=Gl(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,to=e,eo=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=cu!==null?{id:Vs,overflow:Us}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Do(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,to=e,eo=null,!0):!1;default:return!1}}function gN(e){return(e.mode&1)!==0&&(e.flags&128)===0}function vN(e){if(dr){var t=eo;if(t){var r=t;if(!GD(e,t)){if(gN(e))throw Error(Se(418));t=Gl(r.nextSibling);var a=to;t&&GD(e,t)?g4(a,r):(e.flags=e.flags&-4097|2,dr=!1,to=e)}}else{if(gN(e))throw Error(Se(418));e.flags=e.flags&-4097|2,dr=!1,to=e}}}function $D(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;to=e}function Tb(e){if(e!==to)return!1;if(!dr)return $D(e),dr=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!fN(e.type,e.memoizedProps)),t&&(t=eo)){if(gN(e))throw v4(),Error(Se(418));for(;t;)g4(e,t),t=Gl(t.nextSibling)}if($D(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Se(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){eo=Gl(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}eo=null}}else eo=to?Gl(e.stateNode.nextSibling):null;return!0}function v4(){for(var e=eo;e;)e=Gl(e.nextSibling)}function gf(){eo=to=null,dr=!1}function QN(e){xi===null?xi=[e]:xi.push(e)}var soe=$s.ReactCurrentBatchConfig;function Lh(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(Se(309));var a=r.stateNode}if(!a)throw Error(Se(147,e));var n=a,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(i){var s=n.refs;i===null?delete s[o]:s[o]=i},t._stringRef=o,t)}if(typeof e!="string")throw Error(Se(284));if(!r._owner)throw Error(Se(290,e))}return e}function Rb(e,t){throw e=Object.prototype.toString.call(t),Error(Se(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function KD(e){var t=e._init;return t(e._payload)}function y4(e){function t(y,v){if(e){var x=y.deletions;x===null?(y.deletions=[v],y.flags|=16):x.push(v)}}function r(y,v){if(!e)return null;for(;v!==null;)t(y,v),v=v.sibling;return null}function a(y,v){for(y=new Map;v!==null;)v.key!==null?y.set(v.key,v):y.set(v.index,v),v=v.sibling;return y}function n(y,v){return y=Yl(y,v),y.index=0,y.sibling=null,y}function o(y,v,x){return y.index=x,e?(x=y.alternate,x!==null?(x=x.index,x<v?(y.flags|=2,v):x):(y.flags|=2,v)):(y.flags|=1048576,v)}function i(y){return e&&y.alternate===null&&(y.flags|=2),y}function s(y,v,x,S){return v===null||v.tag!==6?(v=Uk(x,y.mode,S),v.return=y,v):(v=n(v,x),v.return=y,v)}function l(y,v,x,S){var b=x.type;return b===Yd?d(y,v,x.props.children,S,x.key):v!==null&&(v.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===Fl&&KD(b)===v.type)?(S=n(v,x.props),S.ref=Lh(y,v,x),S.return=y,S):(S=Wb(x.type,x.key,x.props,null,y.mode,S),S.ref=Lh(y,v,x),S.return=y,S)}function c(y,v,x,S){return v===null||v.tag!==4||v.stateNode.containerInfo!==x.containerInfo||v.stateNode.implementation!==x.implementation?(v=qk(x,y.mode,S),v.return=y,v):(v=n(v,x.children||[]),v.return=y,v)}function d(y,v,x,S,b){return v===null||v.tag!==7?(v=su(x,y.mode,S,b),v.return=y,v):(v=n(v,x),v.return=y,v)}function u(y,v,x){if(typeof v=="string"&&v!==""||typeof v=="number")return v=Uk(""+v,y.mode,x),v.return=y,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case vb:return x=Wb(v.type,v.key,v.props,null,y.mode,x),x.ref=Lh(y,null,v),x.return=y,x;case Xd:return v=qk(v,y.mode,x),v.return=y,v;case Fl:var S=v._init;return u(y,S(v._payload),x)}if(Mh(v)||Ih(v))return v=su(v,y.mode,x,null),v.return=y,v;Rb(y,v)}return null}function f(y,v,x,S){var b=v!==null?v.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return b!==null?null:s(y,v,""+x,S);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case vb:return x.key===b?l(y,v,x,S):null;case Xd:return x.key===b?c(y,v,x,S):null;case Fl:return b=x._init,f(y,v,b(x._payload),S)}if(Mh(x)||Ih(x))return b!==null?null:d(y,v,x,S,null);Rb(y,x)}return null}function p(y,v,x,S,b){if(typeof S=="string"&&S!==""||typeof S=="number")return y=y.get(x)||null,s(v,y,""+S,b);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case vb:return y=y.get(S.key===null?x:S.key)||null,l(v,y,S,b);case Xd:return y=y.get(S.key===null?x:S.key)||null,c(v,y,S,b);case Fl:var w=S._init;return p(y,v,x,w(S._payload),b)}if(Mh(S)||Ih(S))return y=y.get(x)||null,d(v,y,S,b,null);Rb(v,S)}return null}function m(y,v,x,S){for(var b=null,w=null,k=v,C=v=0,N=null;k!==null&&C<x.length;C++){k.index>C?(N=k,k=null):N=k.sibling;var E=f(y,k,x[C],S);if(E===null){k===null&&(k=N);break}e&&k&&E.alternate===null&&t(y,k),v=o(E,v,C),w===null?b=E:w.sibling=E,w=E,k=N}if(C===x.length)return r(y,k),dr&&tu(y,C),b;if(k===null){for(;C<x.length;C++)k=u(y,x[C],S),k!==null&&(v=o(k,v,C),w===null?b=k:w.sibling=k,w=k);return dr&&tu(y,C),b}for(k=a(y,k);C<x.length;C++)N=p(k,y,C,x[C],S),N!==null&&(e&&N.alternate!==null&&k.delete(N.key===null?C:N.key),v=o(N,v,C),w===null?b=N:w.sibling=N,w=N);
vendor: 21,629 bytes, lines 7-9
7return e&&k.forEach(function(L){return t(y,L)}),dr&&tu(y,C),b}function h(y,v,x,S){var b=Ih(x);if(typeof b!="function")throw Error(Se(150));if(x=b.call(x),x==null)throw Error(Se(151));for(var w=b=null,k=v,C=v=0,N=null,E=x.next();k!==null&&!E.done;C++,E=x.next()){k.index>C?(N=k,k=null):N=k.sibling;var L=f(y,k,E.value,S);if(L===null){k===null&&(k=N);break}e&&k&&L.alternate===null&&t(y,k),v=o(L,v,C),w===null?b=L:w.sibling=L,w=L,k=N}if(E.done)return r(y,k),dr&&tu(y,C),b;if(k===null){for(;!E.done;C++,E=x.next())E=u(y,E.value,S),E!==null&&(v=o(E,v,C),w===null?b=E:w.sibling=E,w=E);return dr&&tu(y,C),b}for(k=a(y,k);!E.done;C++,E=x.next())E=p(k,y,C,E.value,S),E!==null&&(e&&E.alternate!==null&&k.delete(E.key===null?C:E.key),v=o(E,v,C),w===null?b=E:w.sibling=E,w=E);return e&&k.forEach(function(T){return t(y,T)}),dr&&tu(y,C),b}function g(y,v,x,S){if(typeof x=="object"&&x!==null&&x.type===Yd&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case vb:e:{for(var b=x.key,w=v;w!==null;){if(w.key===b){if(b=x.type,b===Yd){if(w.tag===7){r(y,w.sibling),v=n(w,x.props.children),v.return=y,y=v;break e}}else if(w.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===Fl&&KD(b)===w.type){r(y,w.sibling),v=n(w,x.props),v.ref=Lh(y,w,x),v.return=y,y=v;break e}r(y,w);break}else t(y,w);w=w.sibling}x.type===Yd?(v=su(x.props.children,y.mode,S,x.key),v.return=y,y=v):(S=Wb(x.type,x.key,x.props,null,y.mode,S),S.ref=Lh(y,v,x),S.return=y,y=S)}return i(y);case Xd:e:{for(w=x.key;v!==null;){if(v.key===w)if(v.tag===4&&v.stateNode.containerInfo===x.containerInfo&&v.stateNode.implementation===x.implementation){r(y,v.sibling),v=n(v,x.children||[]),v.return=y,y=v;break e}else{r(y,v);break}else t(y,v);v=v.sibling}v=qk(x,y.mode,S),v.return=y,y=v}return i(y);case Fl:return w=x._init,g(y,v,w(x._payload),S)}if(Mh(x))return m(y,v,x,S);if(Ih(x))return h(y,v,x,S);Rb(y,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,v!==null&&v.tag===6?(r(y,v.sibling),v=n(v,x),v.return=y,y=v):(r(y,v),v=Uk(x,y.mode,S),v.return=y,y=v),i(y)):r(y,v)}return g}var vf=y4(!0),b4=y4(!1),ox=ec(null),ix=null,nf=null,eI=null;function tI(){eI=nf=ix=null}function rI(e){var t=ox.current;tr(ox),e._currentValue=t}function yN(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 ff(e,t){ix=e,eI=nf=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(An=!0),e.firstContext=null)}function _o(e){var t=e._currentValue;if(eI!==e)if(e={context:e,memoizedValue:t,next:null},nf===null){if(ix===null)throw Error(Se(308));nf=e,ix.dependencies={lanes:0,firstContext:e}}else nf=nf.next=e;return t}var nu=null;function aI(e){nu===null?nu=[e]:nu.push(e)}function x4(e,t,r,a){var n=t.interleaved;return n===null?(r.next=r,aI(t)):(r.next=n.next,n.next=r),t.interleaved=r,Ws(e,a)}function Ws(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 jl=!1;function nI(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function w4(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 qs(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function $l(e,t,r){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(xt&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,Ws(e,r)}return n=a.interleaved,n===null?(t.next=t,aI(a)):(t.next=n.next,n.next=t),a.interleaved=t,Ws(e,r)}function Bb(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,zN(e,r)}}function XD(e,t){var r=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,r===a)){var n=null,o=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};o===null?n=o=i:o=o.next=i,r=r.next}while(r!==null);o===null?n=o=t:o=o.next=t}else n=o=t;r={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:o,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 sx(e,t,r,a){var n=e.updateQueue;jl=!1;var o=n.firstBaseUpdate,i=n.lastBaseUpdate,s=n.shared.pending;if(s!==null){n.shared.pending=null;var l=s,c=l.next;l.next=null,i===null?o=c:i.next=c,i=l;var d=e.alternate;d!==null&&(d=d.updateQueue,s=d.lastBaseUpdate,s!==i&&(s===null?d.firstBaseUpdate=c:s.next=c,d.lastBaseUpdate=l))}if(o!==null){var u=n.baseState;i=0,d=c=l=null,s=o;do{var f=s.lane,p=s.eventTime;if((a&f)===f){d!==null&&(d=d.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=e,h=s;switch(f=t,p=r,h.tag){case 1:if(m=h.payload,typeof m=="function"){u=m.call(p,u,f);break e}u=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m=="function"?m.call(p,u,f):m,f==null)break e;u=Sr({},u,f);break e;case 2:jl=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=n.effects,f===null?n.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},d===null?(c=d=p,l=u):d=d.next=p,i|=f;if(s=s.next,s===null){if(s=n.shared.pending,s===null)break;f=s,s=f.next,f.next=null,n.lastBaseUpdate=f,n.shared.pending=null}}while(!0);if(d===null&&(l=u),n.baseState=l,n.firstBaseUpdate=c,n.lastBaseUpdate=d,t=n.shared.interleaved,t!==null){n=t;do i|=n.lane,n=n.next;while(n!==t)}else o===null&&(n.shared.lanes=0);du|=i,e.lanes=i,e.memoizedState=u}}function YD(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var a=e[t],n=a.callback;if(n!==null){if(a.callback=null,a=r,typeof n!="function")throw Error(Se(191,n));n.call(a)}}}var pg={},es=ec(pg),ng=ec(pg),og=ec(pg);function ou(e){if(e===pg)throw Error(Se(174));return e}function oI(e,t){switch(Gt(og,t),Gt(ng,e),Gt(es,pg),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Zk(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Zk(t,e)}tr(es),Gt(es,t)}function yf(){tr(es),tr(ng),tr(og)}function S4(e){ou(og.current);var t=ou(es.current),r=Zk(t,e.type);t!==r&&(Gt(ng,e),Gt(es,r))}function iI(e){ng.current===e&&(tr(es),tr(ng))}var xr=ec(0);function lx(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 Mk=[];function sI(){for(var e=0;e<Mk.length;e++)Mk[e]._workInProgressVersionPrimary=null;Mk.length=0}var Vb=$s.ReactCurrentDispatcher,_k=$s.ReactCurrentBatchConfig,uu=0,wr=null,ta=null,ha=null,cx=!1,zh=!1,ig=0,loe=0;function Ua(){throw Error(Se(321))}function lI(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Ci(e[r],t[r]))return!1;return!0}function cI(e,t,r,a,n,o){if(uu=o,wr=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Vb.current=e===null||e.memoizedState===null?foe:poe,e=r(a,n),zh){o=0;do{if(zh=!1,ig=0,25<=o)throw Error(Se(301));o+=1,ha=ta=null,t.updateQueue=null,Vb.current=moe,e=r(a,n)}while(zh)}if(Vb.current=ux,t=ta!==null&&ta.next!==null,uu=0,ha=ta=wr=null,cx=!1,t)throw Error(Se(300));return e}function uI(){var e=ig!==0;return ig=0,e}function Ji(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ha===null?wr.memoizedState=ha=e:ha=ha.next=e,ha}function Fo(){if(ta===null){var e=wr.alternate;e=e!==null?e.memoizedState:null}else e=ta.next;var t=ha===null?wr.memoizedState:ha.next;if(t!==null)ha=t,ta=e;else{if(e===null)throw Error(Se(310));ta=e,e={memoizedState:ta.memoizedState,baseState:ta.baseState,baseQueue:ta.baseQueue,queue:ta.queue,next:null},ha===null?wr.memoizedState=ha=e:ha=ha.next=e}return ha}function sg(e,t){return typeof t=="function"?t(e):t}function Fk(e){var t=Fo(),r=t.queue;if(r===null)throw Error(Se(311));r.lastRenderedReducer=e;var a=ta,n=a.baseQueue,o=r.pending;if(o!==null){if(n!==null){var i=n.next;n.next=o.next,o.next=i}a.baseQueue=n=o,r.pending=null}if(n!==null){o=n.next,a=a.baseState;var s=i=null,l=null,c=o;do{var d=c.lane;if((uu&d)===d)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),a=c.hasEagerState?c.eagerState:e(a,c.action);else{var u={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(s=l=u,i=a):l=l.next=u,wr.lanes|=d,du|=d}c=c.next}while(c!==null&&c!==o);l===null?i=a:l.next=s,Ci(a,t.memoizedState)||(An=!0),t.memoizedState=a,t.baseState=i,t.baseQueue=l,r.lastRenderedState=a}if(e=r.interleaved,e!==null){n=e;do o=n.lane,wr.lanes|=o,du|=o,n=n.next;while(n!==e)}else n===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function jk(e){var t=Fo(),r=t.queue;if(r===null)throw Error(Se(311));r.lastRenderedReducer=e;var a=r.dispatch,n=r.pending,o=t.memoizedState;if(n!==null){r.pending=null;var i=n=n.next;do o=e(o,i.action),i=i.next;while(i!==n);Ci(o,t.memoizedState)||(An=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),r.lastRenderedState=o}return[o,a]}function C4(){}function k4(e,t){var r=wr,a=Fo(),n=t(),o=!Ci(a.memoizedState,n);if(o&&(a.memoizedState=n,An=!0),a=a.queue,dI(P4.bind(null,r,a,e),[e]),a.getSnapshot!==t||o||ha!==null&&ha.memoizedState.tag&1){if(r.flags|=2048,lg(9,I4.bind(null,r,a,n,t),void 0,null),ga===null)throw Error(Se(349));(uu&30)!==0||N4(r,t,n)}return n}function N4(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=wr.updateQueue,t===null?(t={lastEffect:null,stores:null},wr.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function I4(e,t,r,a){t.value=r,t.getSnapshot=a,E4(t)&&A4(e)}function P4(e,t,r){return r(function(){E4(t)&&A4(e)})}function E4(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Ci(e,r)}catch{return!0}}function A4(e){var t=Ws(e,1);t!==null&&Si(t,e,1,-1)}function JD(e){var t=Ji();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:sg,lastRenderedState:e},t.queue=e,e=e.dispatch=doe.bind(null,wr,e),[t.memoizedState,e]}function lg(e,t,r,a){return e={tag:e,create:t,destroy:r,deps:a,next:null},t=wr.updateQueue,t===null?(t={lastEffect:null,stores:null},wr.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 L4(){return Fo().memoizedState}function Ub(e,t,r,a){var n=Ji();wr.flags|=e,n.memoizedState=lg(1|t,r,void 0,a===void 0?null:a)}function Sx(e,t,r,a){var n=Fo();a=a===void 0?null:a;var o=void 0;if(ta!==null){var i=ta.memoizedState;if(o=i.destroy,a!==null&&lI(a,i.deps)){n.memoizedState=lg(t,r,o,a);return}}wr.flags|=e,n.memoizedState=lg(1|t,r,o,a)}function ZD(e,t){return Ub(8390656,8,e,t)}function dI(e,t){return Sx(2048,8,e,t)}function T4(e,t){return Sx(4,2,e,t)}function R4(e,t){return Sx(4,4,e,t)}function O4(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 D4(e,t,r){return r=r!=null?r.concat([e]):null,Sx(4,4,O4.bind(null,t,e),r)}function fI(){}function M4(e,t){var r=Fo();t=t===void 0?null:t;var a=r.memoizedState;return a!==null&&t!==null&&lI(t,a[1])?a[0]:(r.memoizedState=[e,t],e)}function _4(e,t){var r=Fo();t=t===void 0?null:t;var a=r.memoizedState;return a!==null&&t!==null&&lI(t,a[1])?a[0]:(e=e(),r.memoizedState=[e,t],e)}function F4(e,t,r){return(uu&21)===0?(e.baseState&&(e.baseState=!1,An=!0),e.memoizedState=r):(Ci(r,t)||(r=qM(),wr.lanes|=r,du|=r,e.baseState=!0),t)}function coe(e,t){var r=Ot;Ot=r!==0&&4>r?r:4,e(!0);var a=_k.transition;_k.transition={};try{e(!1),t()}finally{Ot=r,_k.transition=a}}function j4(){return Fo().memoizedState}function uoe(e,t,r){var a=Xl(e);if(r={lane:a,action:r,hasEagerState:!1,eagerState:null,next:null},B4(e))V4(t,r);else if(r=x4(e,t,r,a),r!==null){var n=dn();Si(r,e,a,n),U4(r,t,a)}}function doe(e,t,r){var a=Xl(e),n={lane:a,action:r,hasEagerState:!1,eagerState:null,next:null};if(B4(e))V4(t,n);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,s=o(i,r);if(n.hasEagerState=!0,n.eagerState=s,Ci(s,i)){var l=t.interleaved;l===null?(n.next=n,aI(t)):(n.next=l.next,l.next=n),t.interleaved=n;return}}catch{}r=x4(e,t,n,a),r!==null&&(n=dn(),Si(r,e,a,n),U4(r,t,a))}}function B4(e){var t=e.alternate;return e===wr||t!==null&&t===wr}function V4(e,t){zh=cx=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function U4(e,t,r){if((r&4194240)!==0){var a=t.lanes;a&=e.pendingLanes,r|=a,t.lanes=r,zN(e,r)}}var ux={readContext:_o,useCallback:Ua,useContext:Ua,useEffect:Ua,useImperativeHandle:Ua,useInsertionEffect:Ua,useLayoutEffect:Ua,useMemo:Ua,useReducer:Ua,useRef:Ua,useState:Ua,useDebugValue:Ua,useDeferredValue:Ua,useTransition:Ua,useMutableSource:Ua,useSyncExternalStore:Ua,useId:Ua,unstable_isNewReconciler:!1},foe={readContext:_o,useCallback:function(e,t){return Ji().memoizedState=[e,t===void 0?null:t],e},useContext:_o,useEffect:ZD,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Ub(4194308,4,O4.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Ub(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ub(4,2,e,t)},useMemo:function(e,t){var r=Ji();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var a=Ji();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=uoe.bind(null,wr,e),[a.memoizedState,e]},useRef:function(e){var t=Ji();return e={current:e},t.memoizedState=e},useState:JD,useDebugValue:fI,useDeferredValue:function(e){return Ji().memoizedState=e},useTransition:function(){var e=JD(!1),t=e[0];return e=coe.bind(null,e[1]),Ji().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var a=wr,n=Ji();if(dr){if(r===void 0)throw Error(Se(407));r=r()}else{if(r=t(),ga===null)throw Error(Se(349));(uu&30)!==0||N4(a,t,r)}n.memoizedState=r;var o={value:r,getSnapshot:t};return n.queue=o,ZD(P4.bind(null,a,o,e),[e]),a.flags|=2048,lg(9,I4.bind(null,a,o,r,t),void 0,null),r},useId:function(){var e=Ji(),t=ga.identifierPrefix;if(dr){var r=Us,a=Vs;r=(a&~(1<<32-wi(a)-1)).toString(32)+r,t=":"+t+"R"+r,r=ig++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=loe++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},poe={readContext:_o,useCallback:M4,useContext:_o,useEffect:dI,useImperativeHandle:D4,useInsertionEffect:T4,useLayoutEffect:R4,useMemo:_4,useReducer:Fk,useRef:L4,useState:function(){return Fk(sg)},useDebugValue:fI,useDeferredValue:function(e){var t=Fo();return F4(t,ta.memoizedState,e)},useTransition:function(){var e=Fk(sg)[0],t=Fo().memoizedState;return[e,t]},useMutableSource:C4,useSyncExternalStore:k4,useId:j4,unstable_isNewReconciler:!1},moe={readContext:_o,useCallback:M4,useContext:_o,useEffect:dI,useImperativeHandle:D4,useInsertionEffect:T4,useLayoutEffect:R4,useMemo:_4,useReducer:jk,useRef:L4,useState:function(){return jk(sg)},useDebugValue:fI,useDeferredValue:function(e){var t=Fo();return ta===null?t.memoizedState=e:F4(t,ta.memoizedState,e)},useTransition:function(){var e=jk(sg)[0],t=Fo().memoizedState;return[e,t]},useMutableSource:C4,useSyncExternalStore:k4,useId:j4,unstable_isNewReconciler:!1};function yi(e,t){if(e&&e.defaultProps){t=Sr({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function bN(e,t,r,a){t=e.memoizedState,r=r(a,t),r=r==null?t:Sr({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Cx={isMounted:function(e){return(e=e._reactInternals)?mu(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var a=dn(),n=Xl(e),o=qs(a,n);o.payload=t,r!=null&&(o.callback=r),t=$l(e,o,n),t!==null&&(Si(t,e,n,a),Bb(t,e,n))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var a=dn(),n=Xl(e),o=qs(a,n);o.tag=1,o.payload=t,r!=null&&(o.callback=r),t=$l(e,o,n),t!==null&&(Si(t,e,n,a),Bb(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=dn(),a=Xl(e),n=qs(r,a);n.tag=2,t!=null&&(n.callback=t),t=$l(e,n,a),t!==null&&(Si(t,e,a,r),Bb(t,e,a))}};function QD(e,t,r,a,n,o,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,o,i):t.prototype&&t.prototype.isPureReactComponent?!eg(r,a)||!eg(n,o):!0}function q4(e,t,r){var a=!1,n=Zl,o=t.contextType;return typeof o=="object"&&o!==null?o=_o(o):(n=Tn(t)?lu:Ha.current,a=t.contextTypes,o=(a=a!=null)?hf(e,n):Zl),t=new t(r,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Cx,e.stateNode=t,t._reactInternals=e,a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=o),t}function eM(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&&Cx.enqueueReplaceState(t,t.state,null)}function xN(e,t,r,a){var n=e.stateNode;n.props=r,n.state=e.memoizedState,n.refs={},nI(e);var o=t.contextType;typeof o=="object"&&o!==null?n.context=_o(o):(o=Tn(t)?lu:Ha.current,n.context=hf(e,o)),n.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(bN(e,t,o,r),n.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof n.getSnapshotBeforeUpdate=="function"||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(t=n.state,typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount(),t!==n.state&&Cx.enqueueReplaceState(n,n.state,null),sx(e,r,n,a),n.state=e.memoizedState),typeof n.componentDidMount=="function"&&(e.flags|=4194308)}function bf(e,t){try{var r="",a=t;do r+=Hae(a),a=a.return;while(a);var n=r}catch(o){n=` 8Error generating stack: `+o.message+` 9`+o.stack}return{value:e,source:t,stack:n,digest:null}}function Bk(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function wN(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var hoe=typeof WeakMap=="function"?WeakMap:Map;function z4(e,t,r){r=qs(-1,r),r.tag=3,r.payload={element:null};var a=t.value;return r.callback=function(){fx||(fx=!0,TN=a),wN(e,t)},r}function H4(e,t,r){r=qs(-1,r),r.tag=3;var a=e.type.getDerivedStateFromError;if(typeof a=="function"){var n=t.value;r.payload=function(){return a(n)},r.callback=function(){wN(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){wN(e,t),typeof a!="function"&&(Kl===null?Kl=new Set([this]):Kl.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),r}function tM(e,t,r){var a=e.pingCache;if(a===null){a=e.pingCache=new hoe;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(r)||(n.add(r),e=Aoe.bind(null,e,t,r),t.then(e,e))}function rM(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 aM(e,t,r,a,n){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=qs(-1,1),t.tag=2,$l(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=n,e)}var goe=$s.ReactCurrentOwner,An=!1;function un(e,t,r,a){t.child=e===null?b4(t,null,r,a):vf(t,e.child,r,a)}function nM(e,t,r,a,n){r=r.render;var o=t.ref;return ff(t,n),a=cI(e,t,r,a,o,n),r=uI(),e!==null&&!An?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n,Gs(e,t,n)):(dr&&r&&JN(t),t.flags|=1,un(e,t,a,n),t.child)}function oM(e,t,r,a,n){if(e===null){var o=r.type;return typeof o=="function"&&!xI(o)&&o.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=o,W4(e,t,o,a,n)):(e=Wb(r.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,(e.lanes&n)===0){var i=o.memoizedProps;if(r=r.compare,r=r!==null?r:eg,r(i,a)&&e.ref===t.ref)return Gs(e,t,n)}return t.flags|=1,e=Yl(o,a),e.ref=t.ref,e.return=t,t.child=e}function W4(e,t,r,a,n){if(e!==null){var o=e.memoizedProps;if(eg(o,a)&&e.ref===t.ref)if(An=!1,t.pendingProps=a=o,(e.lanes&n)!==0)(e.flags&131072)!==0&&(An=!0);else return t.lanes=e.lanes,Gs(e,t,n)}return SN(e,t,r,a,n)}function G4(e,t,r){var a=t.pendingProps,n=a.children,o=e!==null?e.memoizedState:null;if(a.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Gt(sf,Qn),Qn|=r;else{if((r&1073741824)===0)return e=o!==null?o.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Gt(sf,Qn),Qn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},a=o!==null?o.baseLanes:r,Gt(sf,Qn),Qn|=a}else o!==null?(a=o.baseLanes|r,t.memoizedState=null):a=r,Gt(sf,Qn),Qn|=a;return un(e,t,n,r),t.child}function $4(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}
vendor: 4,725 bytes, line 9
9function SN(e,t,r,a,n){var o=Tn(r)?lu:Ha.current;return o=hf(t,o),ff(t,n),r=cI(e,t,r,a,o,n),a=uI(),e!==null&&!An?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n,Gs(e,t,n)):(dr&&a&&JN(t),t.flags|=1,un(e,t,r,n),t.child)}function iM(e,t,r,a,n){if(Tn(r)){var o=!0;rx(t)}else o=!1;if(ff(t,n),t.stateNode===null)qb(e,t),q4(t,r,a),xN(t,r,a,n),a=!0;else if(e===null){var i=t.stateNode,s=t.memoizedProps;i.props=s;var l=i.context,c=r.contextType;typeof c=="object"&&c!==null?c=_o(c):(c=Tn(r)?lu:Ha.current,c=hf(t,c));var d=r.getDerivedStateFromProps,u=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function";u||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==a||l!==c)&&eM(t,i,a,c),jl=!1;var f=t.memoizedState;i.state=f,sx(t,a,i,n),l=t.memoizedState,s!==a||f!==l||Ln.current||jl?(typeof d=="function"&&(bN(t,r,d,a),l=t.memoizedState),(s=jl||QD(t,r,s,a,f,l,c))?(u||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=c,a=s):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{i=t.stateNode,w4(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:yi(t.type,s),i.props=c,u=t.pendingProps,f=i.context,l=r.contextType,typeof l=="object"&&l!==null?l=_o(l):(l=Tn(r)?lu:Ha.current,l=hf(t,l));var p=r.getDerivedStateFromProps;(d=typeof p=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==u||f!==l)&&eM(t,i,a,l),jl=!1,f=t.memoizedState,i.state=f,sx(t,a,i,n);var m=t.memoizedState;s!==u||f!==m||Ln.current||jl?(typeof p=="function"&&(bN(t,r,p,a),m=t.memoizedState),(c=jl||QD(t,r,c,a,f,m,l)||!1)?(d||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,m,l),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,m,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=m),i.props=a,i.state=m,i.context=l,a=c):(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 CN(e,t,r,a,o,n)}function CN(e,t,r,a,n,o){$4(e,t);var i=(t.flags&128)!==0;if(!a&&!i)return n&&WD(t,r,!1),Gs(e,t,o);a=t.stateNode,goe.current=t;var s=i&&typeof r.getDerivedStateFromError!="function"?null:a.render();return t.flags|=1,e!==null&&i?(t.child=vf(t,e.child,null,o),t.child=vf(t,null,s,o)):un(e,t,s,o),t.memoizedState=a.state,n&&WD(t,r,!0),t.child}function K4(e){var t=e.stateNode;t.pendingContext?HD(e,t.pendingContext,t.pendingContext!==t.context):t.context&&HD(e,t.context,!1),oI(e,t.containerInfo)}function sM(e,t,r,a,n){return gf(),QN(n),t.flags|=256,un(e,t,r,a),t.child}var kN={dehydrated:null,treeContext:null,retryLane:0};function NN(e){return{baseLanes:e,cachePool:null,transitions:null}}function X4(e,t,r){var a=t.pendingProps,n=xr.current,o=!1,i=(t.flags&128)!==0,s;if((s=i)||(s=e!==null&&e.memoizedState===null?!1:(n&2)!==0),s?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(n|=1),Gt(xr,n&1),e===null)return vN(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,o?(a=t.mode,o=t.child,i={mode:"hidden",children:i},(a&1)===0&&o!==null?(o.childLanes=0,o.pendingProps=i):o=Ix(i,a,0,null),e=su(e,a,r,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=NN(r),t.memoizedState=kN,e):pI(t,i));if(n=e.memoizedState,n!==null&&(s=n.dehydrated,s!==null))return voe(e,t,i,a,s,n,r);if(o){o=a.fallback,i=t.mode,n=e.child,s=n.sibling;var l={mode:"hidden",children:a.children};return(i&1)===0&&t.child!==n?(a=t.child,a.childLanes=0,a.pendingProps=l,t.deletions=null):(a=Yl(n,l),a.subtreeFlags=n.subtreeFlags&14680064),s!==null?o=Yl(s,o):(o=su(o,i,r,null),o.flags|=2),o.return=t,a.return=t,a.sibling=o,t.child=a,a=o,o=t.child,i=e.child.memoizedState,i=i===null?NN(r):{base
vendor: 10,764 bytes, line 9
9Lanes:i.baseLanes|r,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~r,t.memoizedState=kN,a}return o=e.child,e=o.sibling,a=Yl(o,{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 pI(e,t){return t=Ix({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ob(e,t,r,a){return a!==null&&QN(a),vf(t,e.child,null,r),e=pI(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function voe(e,t,r,a,n,o,i){if(r)return t.flags&256?(t.flags&=-257,a=Bk(Error(Se(422))),Ob(e,t,i,a)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=a.fallback,n=t.mode,a=Ix({mode:"visible",children:a.children},n,0,null),o=su(o,n,i,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,(t.mode&1)!==0&&vf(t,e.child,null,i),t.child.memoizedState=NN(i),t.memoizedState=kN,o);if((t.mode&1)===0)return Ob(e,t,i,null);if(n.data==="$!"){if(a=n.nextSibling&&n.nextSibling.dataset,a)var s=a.dgst;return a=s,o=Error(Se(419)),a=Bk(o,a,void 0),Ob(e,t,i,a)}if(s=(i&e.childLanes)!==0,An||s){if(a=ga,a!==null){switch(i&-i){case 4:n=2;break;case 16:n=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:n=32;break;case 536870912:n=268435456;break;default:n=0}n=(n&(a.suspendedLanes|i))!==0?0:n,n!==0&&n!==o.retryLane&&(o.retryLane=n,Ws(e,n),Si(a,e,n,-1))}return bI(),a=Bk(Error(Se(421))),Ob(e,t,i,a)}return n.data==="$?"?(t.flags|=128,t.child=e.child,t=Loe.bind(null,e),n._reactRetry=t,null):(e=o.treeContext,eo=Gl(n.nextSibling),to=t,dr=!0,xi=null,e!==null&&(Ro[Oo++]=Vs,Ro[Oo++]=Us,Ro[Oo++]=cu,Vs=e.id,Us=e.overflow,cu=t),t=pI(t,a.children),t.flags|=4096,t)}function lM(e,t,r){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),yN(e.return,t,r)}function Vk(e,t,r,a,n){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:r,tailMode:n}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=a,o.tail=r,o.tailMode=n)}function Y4(e,t,r){var a=t.pendingProps,n=a.revealOrder,o=a.tail;if(un(e,t,a.children,r),a=xr.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&&lM(e,r,t);else if(e.tag===19)lM(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(Gt(xr,a),(t.mode&1)===0)t.memoizedState=null;else switch(n){case"forwards":for(r=t.child,n=null;r!==null;)e=r.alternate,e!==null&&lx(e)===null&&(n=r),r=r.sibling;r=n,r===null?(n=t.child,t.child=null):(n=r.sibling,r.sibling=null),Vk(t,!1,n,r,o);break;case"backwards":for(r=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&lx(e)===null){t.child=n;break}e=n.sibling,n.sibling=r,r=n,n=e}Vk(t,!0,r,null,o);break;case"together":Vk(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function qb(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Gs(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),du|=t.lanes,(r&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(Se(153));if(t.child!==null){for(e=t.child,r=Yl(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Yl(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function yoe(e,t,r){switch(t.tag){case 3:K4(t),gf();break;case 5:S4(t);break;case 1:Tn(t.type)&&rx(t);break;case 4:oI(t,t.stateNode.containerInfo);break;case 10:var a=t.type._context,n=t.memoizedProps.value;Gt(ox,a._currentValue),a._currentValue=n;break;case 13:if(a=t.memoizedState,a!==null)return a.dehydrated!==null?(Gt(xr,xr.current&1),t.flags|=128,null):(r&t.child.childLanes)!==0?X4(e,t,r):(Gt(xr,xr.current&1),e=Gs(e,t,r),e!==null?e.sibling:null);Gt(xr,xr.current&1);break;case 19:if(a=(r&t.childLanes)!==0,(e.flags&128)!==0){if(a)return Y4(e,t,r);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),Gt(xr,xr.current),a)break;return null;case 22:case 23:return t.lanes=0,G4(e,t,r)}return Gs(e,t,r)}var J4,IN,Z4,Q4;J4=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}};IN=function(){};Z4=function(e,t,r,a){var n=e.memoizedProps;if(n!==a){e=t.stateNode,ou(es.current);var o=null;switch(r){case"input":n=Kk(e,n),a=Kk(e,a),o=[];break;case"select":n=Sr({},n,{value:void 0}),a=Sr({},a,{value:void 0}),o=[];break;case"textarea":n=Jk(e,n),a=Jk(e,a),o=[];break;default:typeof n.onClick!="function"&&typeof a.onClick=="function"&&(e.onclick=ex)}Qk(r,a);var i;r=null;for(c in n)if(!a.hasOwnProperty(c)&&n.hasOwnProperty(c)&&n[c]!=null)if(c==="style"){var s=n[c];for(i in s)s.hasOwnProperty(i)&&(r||(r={}),r[i]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&($h.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in a){var l=a[c];if(s=n?.[c],a.hasOwnProperty(c)&&l!==s&&(l!=null||s!=null))if(c==="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||(o||(o=[]),o.push(c,r)),r=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(o=o||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&($h.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&er("scroll",e),o||s===l||(o=[])):(o=o||[]).push(c,l))}r&&(o=o||[]).push("style",r);var c=o;(t.updateQueue=c)&&(t.flags|=4)}};Q4=function(e,t,r,a){r!==a&&(t.flags|=4)};function Th(e,t){if(!dr)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 qa(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,a=0;if(t)for(var n=e.child;n!==null;)r|=n.lanes|n.childLanes,a|=n.subtreeFlags&14680064,a|=n.flags&14680064,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)r|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=r,t}function boe(e,t,r){var a=t.pendingProps;switch(ZN(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qa(t),null;case 1:return Tn(t.type)&&tx(),qa(t),null;case 3:return a=t.stateNode,yf(),tr(Ln),tr(Ha),sI(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Tb(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,xi!==null&&(DN(xi),xi=null))),IN(e,t),qa(t),null;case 5:iI(t);var n=ou(og.current);if(r=t.type,e!==null&&t.stateNode!=null)Z4(e,t,r,a,n),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!a){if(t.stateNode===null)throw Error(Se(166));return qa(t),null}if(e=ou(es.current),Tb(t)){a=t.stateNode,r=t.type;var o=t.memoizedProps;switch(a[Zi]=t,a[ag]=o,e=(t.mode&1)!==0,r){case"dialog":er("cancel",a),er("close",a);break;case"iframe":case"object":case"embed":er("load",a);break;case"video":case"audio":for(n=0;n<Fh.length;n++)er(Fh[n],a);break;case"source":er("error",a);break;case"img":case"image":case"link":er("error",a),er("load",a);break;case"details":er("toggle",a);break;case"input":gD(a,o),er("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!o.multiple},er("invalid",a);break;case"textarea":yD(a,o),er("invalid",a)}Qk(r,o),n=null;for(var i in o)if(o.hasOwnProperty(i)){var s=o[i];i==="children"?typeof s=="string"?a.textContent!==s&&(o.suppressHydrationWarning!==!0&&Lb(a.textContent,s,e),n=["children",s]):typeof s=="number"&&a.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&Lb(a.textContent,s,e),n=["children",""+s]):$h.hasOwnProperty(i)&&s!=null&&i==="onScroll"&&er("scroll",a)}switch(r){case"input":yb(a),vD(a,o,!0);break;case"textarea":yb(a),bD(a);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(a.onclick=ex)}a=n,t.updateQueue=a,a!==null&&(t.flags|=4)}else{i=n.nodeType===9?n:n.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=PM(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[Zi]=t,e[ag]=a,J4(e,t,!1,!1),t.stateNode=e;e:{switch(i=eN(r,a),r){case"dialog":er("cancel",e),er("close",e),n=a;break;case"iframe":case"object":case"embed":er("load",e),n=a;break;case"video":case"audio":for(n=0;n<Fh.length;n++)er(Fh[n],e);n=a;break;case"source":er("error",e),n=a;break;case"img":case"image":case"link":er("error",e),er("load",e),n=a;break;case"details":er("toggle",e),n=a;break;case"input":gD(e,a),n=Kk(e,a),er("invalid",e);break;case"option":n=a;break;case"select":e._wrapperState={wasMultiple:!!a.multiple},n=Sr({},a,{value:void 0}),er("invalid",e);break;case"textarea":yD(e,a),n=Jk(e,a),er("invalid",e);break;default:n=a}Qk(r,n),s=n;for(o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="style"?LM(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&EM(e,l)):o==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&Kh(e,l):typeof l=="number"&&Kh(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&($h.hasOwnProperty(o)?l!=null&&o==="onScroll"&&er("scroll",e):l!=null&&FN(e,o,l,i))}switch(r){case"input":yb(e),vD(e,a,!1);break;case"textarea":yb(e),bD(e);break;case"option":a.value!=null&&e.setAttribute("value",""+Jl(a.value));break;case"select":e.multiple=!!a.multiple,o=a.value,o!=null?lf(e,!!a.multiple,o,!1):a.defaultValue!=null&&lf(e,!!a.multiple,a.defaultValue,!0);break;default:typeof n.onClick=="function"&&(e.onclick=ex)}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)}
vendor: 5,347 bytes, line 9
9return qa(t),null;case 6:if(e&&t.stateNode!=null)Q4(e,t,e.memoizedProps,a);else{if(typeof a!="string"&&t.stateNode===null)throw Error(Se(166));if(r=ou(og.current),ou(es.current),Tb(t)){if(a=t.stateNode,r=t.memoizedProps,a[Zi]=t,(o=a.nodeValue!==r)&&(e=to,e!==null))switch(e.tag){case 3:Lb(a.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Lb(a.nodeValue,r,(e.mode&1)!==0)}o&&(t.flags|=4)}else a=(r.nodeType===9?r:r.ownerDocument).createTextNode(a),a[Zi]=t,t.stateNode=a}return qa(t),null;case 13:if(tr(xr),a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(dr&&eo!==null&&(t.mode&1)!==0&&(t.flags&128)===0)v4(),gf(),t.flags|=98560,o=!1;else if(o=Tb(t),a!==null&&a.dehydrated!==null){if(e===null){if(!o)throw Error(Se(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(Se(317));o[Zi]=t}else gf(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qa(t),o=!1}else xi!==null&&(DN(xi),xi=null),o=!0;if(!o)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||(xr.current&1)!==0?ra===0&&(ra=3):bI())),t.updateQueue!==null&&(t.flags|=4),qa(t),null);case 4:return yf(),IN(e,t),e===null&&tg(t.stateNode.containerInfo),qa(t),null;case 10:return rI(t.type._context),qa(t),null;case 17:return Tn(t.type)&&tx(),qa(t),null;case 19:if(tr(xr),o=t.memoizedState,o===null)return qa(t),null;if(a=(t.flags&128)!==0,i=o.rendering,i===null)if(a)Th(o,!1);else{if(ra!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=lx(e),i!==null){for(t.flags|=128,Th(o,!1),a=i.updateQueue,a!==null&&(t.updateQueue=a,t.flags|=4),t.subtreeFlags=0,a=r,r=t.child;r!==null;)o=r,e=a,o.flags&=14680066,i=o.alternate,i===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,o.type=i.type,e=i.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Gt(xr,xr.current&1|2),t.child}e=e.sibling}o.tail!==null&&Fr()>xf&&(t.flags|=128,a=!0,Th(o,!1),t.lanes=4194304)}else{if(!a)if(e=lx(i),e!==null){if(t.flags|=128,a=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Th(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!dr)return qa(t),null}else 2*Fr()-o.renderingStartTime>xf&&r!==1073741824&&(t.flags|=128,a=!0,Th(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(r=o.last,r!==null?r.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Fr(),t.sibling=null,r=xr.current,Gt(xr,a?r&1|2:r&1),t):(qa(t),null);case 22:case 23:return yI(),a=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==a&&(t.flags|=8192),a&&(t.mode&1)!==0?(Qn&1073741824)!==0&&(qa(t),t.subtreeFlags&6&&(t.flags|=8192)):qa(t),null;case 24:return null;case 25:return null}throw Error(Se(156,t.tag))}function xoe(e,t){switch(ZN(t),t.tag){case 1:return Tn(t.type)&&tx(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return yf(),tr(Ln),tr(Ha),sI(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return iI(t),null;case 13:if(tr(xr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Se(340));gf()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return tr(xr),null;case 4:return yf(),null;case 10:return rI(t.type._context),null;case 22:case 23:return yI(),null;case 24:return null;default:return null}}var Db=!1,za=!1,woe=typeof WeakSet=="function"?WeakSet:Set,Be=null;function of(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(a){Tr(e,t,a)}else r.current=null}function PN(e,t,r){try{r()}catch(a){Tr(e,t,a)}}var cM=!1;function Soe(e,t){if(uN=Jb,e=n4(),YN(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 n=a.anchorOffset,o=a.focusNode;a=a.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var i=0,s=-1,l=-1,c=0,d=0,u=e,f=null;t:for(;;){for(var p;u!==r||n!==0&&u.nodeType!==3||(s=i+n),u!==o||a!==0&&u.nodeType!==3||(l=i+a),u.nodeType===3&&(i+=u.nodeValue.length),(p=u.firstChild)!==null;)f=u,u=p;for(;;){if(u===e)break t;if(f===r&&++c===n&&(s=i),f===o&&++d===a&&(l=i),(p=u.nextSibling)!==null)break;u=f,f=u.parentNode}u=p}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(dN={focusedElem:e,selectionRange:r},Jb=!1,Be=t;Be!==null;)if(t=Be,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Be=e;else for(;Be!==null;){t=Be;try{var m=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var h=m.memoizedProps,g=m.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?h:yi(t.type,h),g);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;
vendor: 9,725 bytes, line 9
9case 5:case 6:case 4:case 17:break;default:throw Error(Se(163))}}catch(S){Tr(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,Be=e;break}Be=t.return}return m=cM,cM=!1,m}function Hh(e,t,r){var a=t.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var n=a=a.next;do{if((n.tag&e)===e){var o=n.destroy;n.destroy=void 0,o!==void 0&&PN(t,r,o)}n=n.next}while(n!==a)}}function kx(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 EN(e){var t=e.ref;if(t!==null){var r=e.stateNode;e.tag,e=r,typeof t=="function"?t(e):t.current=e}}function e_(e){var t=e.alternate;t!==null&&(e.alternate=null,e_(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Zi],delete t[ag],delete t[mN],delete t[noe],delete t[ooe])),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 t_(e){return e.tag===5||e.tag===3||e.tag===4}function uM(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||t_(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 AN(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=ex));else if(a!==4&&(e=e.child,e!==null))for(AN(e,t,r),e=e.sibling;e!==null;)AN(e,t,r),e=e.sibling}function LN(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(LN(e,t,r),e=e.sibling;e!==null;)LN(e,t,r),e=e.sibling}var Aa=null,bi=!1;function _l(e,t,r){for(r=r.child;r!==null;)r_(e,t,r),r=r.sibling}function r_(e,t,r){if(Qi&&typeof Qi.onCommitFiberUnmount=="function")try{Qi.onCommitFiberUnmount(gx,r)}catch{}switch(r.tag){case 5:za||of(r,t);case 6:var a=Aa,n=bi;Aa=null,_l(e,t,r),Aa=a,bi=n,Aa!==null&&(bi?(e=Aa,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Aa.removeChild(r.stateNode));break;case 18:Aa!==null&&(bi?(e=Aa,r=r.stateNode,e.nodeType===8?Ok(e.parentNode,r):e.nodeType===1&&Ok(e,r),Zh(e)):Ok(Aa,r.stateNode));break;case 4:a=Aa,n=bi,Aa=r.stateNode.containerInfo,bi=!0,_l(e,t,r),Aa=a,bi=n;break;case 0:case 11:case 14:case 15:if(!za&&(a=r.updateQueue,a!==null&&(a=a.lastEffect,a!==null))){n=a=a.next;do{var o=n,i=o.destroy;o=o.tag,i!==void 0&&((o&2)!==0||(o&4)!==0)&&PN(r,t,i),n=n.next}while(n!==a)}_l(e,t,r);break;case 1:if(!za&&(of(r,t),a=r.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=r.memoizedProps,a.state=r.memoizedState,a.componentWillUnmount()}catch(s){Tr(r,t,s)}_l(e,t,r);break;case 21:_l(e,t,r);break;case 22:r.mode&1?(za=(a=za)||r.memoizedState!==null,_l(e,t,r),za=a):_l(e,t,r);break;default:_l(e,t,r)}}function dM(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new woe),t.forEach(function(a){var n=Toe.bind(null,e,a);r.has(a)||(r.add(a),a.then(n,n))})}}function vi(e,t){var r=t.deletions;if(r!==null)for(var a=0;a<r.length;a++){var n=r[a];try{var o=e,i=t,s=i;e:for(;s!==null;){switch(s.tag){case 5:Aa=s.stateNode,bi=!1;break e;case 3:Aa=s.stateNode.containerInfo,bi=!0;break e;case 4:Aa=s.stateNode.containerInfo,bi=!0;break e}s=s.return}if(Aa===null)throw Error(Se(160));r_(o,i,n),Aa=null,bi=!1;var l=n.alternate;l!==null&&(l.return=null),n.return=null}catch(c){Tr(n,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)a_(t,e),t=t.sibling}function a_(e,t){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(vi(t,e),Yi(e),a&4){try{Hh(3,e,e.return),kx(3,e)}catch(h){Tr(e,e.return,h)}try{Hh(5,e,e.return)}catch(h){Tr(e,e.return,h)}}break;case 1:vi(t,e),Yi(e),a&512&&r!==null&&of(r,r.return);break;case 5:if(vi(t,e),Yi(e),a&512&&r!==null&&of(r,r.return),e.flags&32){var n=e.stateNode;try{Kh(n,"")}catch(h){Tr(e,e.return,h)}}if(a&4&&(n=e.stateNode,n!=null)){var o=e.memoizedProps,i=r!==null?r.memoizedProps:o,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&o.type==="radio"&&o.name!=null&&NM(n,o),eN(s,i);var c=eN(s,o);for(i=0;i<l.length;i+=2){var d=l[i],u=l[i+1];d==="style"?LM(n,u):d==="dangerouslySetInnerHTML"?EM(n,u):d==="children"?Kh(n,u):FN(n,d,u,c)}switch(s){case"input":Xk(n,o);break;case"textarea":IM(n,o);break;case"select":var f=n._wrapperState.wasMultiple;n._wrapperState.wasMultiple=!!o.multiple;var p=o.value;p!=null?lf(n,!!o.multiple,p,!1):f!==!!o.multiple&&(o.defaultValue!=null?lf(n,!!o.multiple,o.defaultValue,!0):lf(n,!!o.multiple,o.multiple?[]:"",!1))}n[ag]=o}catch(h){Tr(e,e.return,h)}}break;case 6:if(vi(t,e),Yi(e),a&4){if(e.stateNode===null)throw Error(Se(162));n=e.stateNode,o=e.memoizedProps;try{n.nodeValue=o}catch(h){Tr(e,e.return,h)}}break;case 3:if(vi(t,e),Yi(e),a&4&&r!==null&&r.memoizedState.isDehydrated)try{Zh(t.containerInfo)}catch(h){Tr(e,e.return,h)}break;case 4:vi(t,e),Yi(e);break;case 13:vi(t,e),Yi(e),n=e.child,n.flags&8192&&(o=n.memoizedState!==null,n.stateNode.isHidden=o,!o||n.alternate!==null&&n.alternate.memoizedState!==null||(gI=Fr())),a&4&&dM(e);break;case 22:if(d=r!==null&&r.memoizedState!==null,e.mode&1?(za=(c=za)||d,vi(t,e),za=c):vi(t,e),Yi(e),a&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!d&&(e.mode&1)!==0)for(Be=e,d=e.child;d!==null;){for(u=Be=d;Be!==null;){switch(f=Be,p=f.child,f.tag){case 0:case 11:case 14:case 15:Hh(4,f,f.return);break;case 1:of(f,f.return);var m=f.stateNode;if(typeof m.componentWillUnmount=="function"){a=f,r=f.return;try{t=a,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(h){Tr(a,r,h)}}break;case 5:of(f,f.return);break;case 22:if(f.memoizedState!==null){pM(u);continue}}p!==null?(p.return=f,Be=p):pM(u)}d=d.sibling}e:for(d=null,u=e;;){if(u.tag===5){if(d===null){d=u;try{n=u.stateNode,c?(o=n.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(s=u.stateNode,l=u.memoizedProps.style,i=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=AM("display",i))}catch(h){Tr(e,e.return,h)}}}else if(u.tag===6){if(d===null)try{u.stateNode.nodeValue=c?"":u.memoizedProps}catch(h){Tr(e,e.return,h)}}else if((u.tag!==22&&u.tag!==23||u.memoizedState===null||u===e)&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===e)break e;for(;u.sibling===null;){if(u.return===null||u.return===e)break e;d===u&&(d=null),u=u.return}d===u&&(d=null),u.sibling.return=u.return,u=u.sibling}}break;case 19:vi(t,e),Yi(e),a&4&&dM(e);break;case 21:break;default:vi(t,e),Yi(e)}}function Yi(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(t_(r)){var a=r;break e}r=r.return}throw Error(Se(160))}switch(a.tag){case 5:var n=a.stateNode;a.flags&32&&(Kh(n,""),a.flags&=-33);var o=uM(e);LN(e,o,n);break;case 3:case 4:var i=a.stateNode.containerInfo,s=uM(e);AN(e,s,i);break;default:throw Error(Se(161))}}catch(l){Tr(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Coe(e,t,r){Be=e,n_(e,t,r)}function n_(e,t,r){for(var a=(e.mode&1)!==0;Be!==null;){var n=Be,o=n.child;if(n.tag===22&&a){var i=n.memoizedState!==null||Db;if(!i){var s=n.alternate,l=s!==null&&s.memoizedState!==null||za;s=Db;var c=za;if(Db=i,(za=l)&&!c)for(Be=n;Be!==null;)i=Be,l=i.child,i.tag===22&&i.memoizedState!==null?mM(n):l!==null?(l.return=i,Be=l):mM(n);for(;o!==null;)Be=o,n_(o,t,r),o=o.sibling;Be=n,Db=s,za=c}fM(e,t,r)}else(n.subtreeFlags&8772)!==0&&o!==null?(o.return=n,Be=o):fM(e,t,r)}}function fM(e){for(;Be!==null;){var t=Be;if((t.flags&8772)!==0){var r=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:za||kx(5,t);break;case 1:var a=t.stateNode;if(t.flags&4&&!za)if(r===null)a.componentDidMount();else{var n=t.elementType===t.type?r.memoizedProps:yi(t.type,r.memoizedProps);a.componentDidUpdate(n,r.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&YD(t,o,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}YD(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 c=t.alternate;if(c!==null){var d=c.memoizedState;if(d!==null){var u=d.dehydrated;u!==null&&Zh(u)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Se(163))}za||t.flags&512&&EN(t)}catch(f){Tr(t,t.return,f)}}if(t===e){Be=null;break}if(r=t.sibling,r!==null){r.return=t.return,Be=r;break}Be=t.return}}function pM(e){for(;Be!==null;){var t=Be;if(t===e){Be=null;break}var r=t.sibling;if(r!==null){r.return=t.return,Be=r;break}Be=t.return}}function mM(e){for(;Be!==null;){var t=Be;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{kx(4,t)}catch(l){Tr(t,r,l)}break;case 1:var a=t.stateNode;if(typeof a.componentDidMount=="function"){var n=t.return;try{a.componentDidMount()}catch(l){Tr(t,n,l)}}var o=t.return;try{EN(t)}catch(l){Tr(t,o,l)}break;case 5:var i=t.return;try{EN(t)}catch(l){Tr(t,i,l)}}}catch(l){Tr(t,t.return,l)}if(t===e){Be=null;break}var s=t.sibling;if(s!==null){s.return=t.return,Be=s;break}Be=t.return}}var koe=Math.ceil,dx=$s.ReactCurrentDispatcher,mI=$s.ReactCurrentOwner,Mo=$s.ReactCurrentBatchConfig,xt=0,ga=null,Xr=null,La=0,Qn=0,sf=ec(0),ra=0,cg=null,du=0,N
vendor: 7,249 bytes, line 9
9x=0,hI=0,Wh=null,En=null,gI=0,xf=1/0,js=null,fx=!1,TN=null,Kl=null,Mb=!1,ql=null,px=0,Gh=0,RN=null,zb=-1,Hb=0;function dn(){return(xt&6)!==0?Fr():zb!==-1?zb:zb=Fr()}function Xl(e){return(e.mode&1)===0?1:(xt&2)!==0&&La!==0?La&-La:soe.transition!==null?(Hb===0&&(Hb=qM()),Hb):(e=Ot,e!==0||(e=window.event,e=e===void 0?16:XM(e.type)),e)}function Si(e,t,r,a){if(50<Gh)throw Gh=0,RN=null,Error(Se(185));ug(e,r,a),((xt&2)===0||e!==ga)&&(e===ga&&((xt&2)===0&&(Nx|=r),ra===4&&Vl(e,La)),Rn(e,a),r===1&&xt===0&&(t.mode&1)===0&&(xf=Fr()+500,wx&&tc()))}function Rn(e,t){var r=e.callbackNode;cne(e,t);var a=Yb(e,e===ga?La:0);if(a===0)r!==null&&SD(r),e.callbackNode=null,e.callbackPriority=0;else if(t=a&-a,e.callbackPriority!==t){if(r!=null&&SD(r),t===1)e.tag===0?ioe(hM.bind(null,e)):m4(hM.bind(null,e)),roe(function(){(xt&6)===0&&tc()}),r=null;else{switch(zM(a)){case 1:r=qN;break;case 4:r=VM;break;case 16:r=Xb;break;case 536870912:r=UM;break;default:r=Xb}r=f_(r,o_.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function o_(e,t){if(zb=-1,Hb=0,(xt&6)!==0)throw Error(Se(327));var r=e.callbackNode;if(pf()&&e.callbackNode!==r)return null;var a=Yb(e,e===ga?La:0);if(a===0)return null;if((a&30)!==0||(a&e.expiredLanes)!==0||t)t=mx(e,a);else{t=a;var n=xt;xt|=2;var o=s_();(ga!==e||La!==t)&&(js=null,xf=Fr()+500,iu(e,t));do try{Poe();break}catch(s){i_(e,s)}while(!0);tI(),dx.current=o,xt=n,Xr!==null?t=0:(ga=null,La=0,t=ra)}if(t!==0){if(t===2&&(n=oN(e),n!==0&&(a=n,t=ON(e,n))),t===1)throw r=cg,iu(e,0),Vl(e,a),Rn(e,Fr()),r;if(t===6)Vl(e,a);else{if(n=e.current.alternate,(a&30)===0&&!Noe(n)&&(t=mx(e,a),t===2&&(o=oN(e),o!==0&&(a=o,t=ON(e,o))),t===1))throw r=cg,iu(e,0),Vl(e,a),Rn(e,Fr()),r;switch(e.finishedWork=n,e.finishedLanes=a,t){case 0:case 1:throw Error(Se(345));case 2:ru(e,En,js);break;case 3:if(Vl(e,a),(a&130023424)===a&&(t=gI+500-Fr(),10<t)){if(Yb(e,0)!==0)break;if(n=e.suspendedLanes,(n&a)!==a){dn(),e.pingedLanes|=e.suspendedLanes&n;break}e.timeoutHandle=pN(ru.bind(null,e,En,js),t);break}ru(e,En,js);break;case 4:if(Vl(e,a),(a&4194240)===a)break;for(t=e.eventTimes,n=-1;0<a;){var i=31-wi(a);o=1<<i,i=t[i],i>n&&(n=i),a&=~o}if(a=n,a=Fr()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*koe(a/1960))-a,10<a){e.timeoutHandle=pN(ru.bind(null,e,En,js),a);break}ru(e,En,js);break;case 5:ru(e,En,js);break;default:throw Error(Se(329))}}}return Rn(e,Fr()),e.callbackNode===r?o_.bind(null,e):null}function ON(e,t){var r=Wh;return e.current.memoizedState.isDehydrated&&(iu(e,t).flags|=256),e=mx(e,t),e!==2&&(t=En,En=r,t!==null&&DN(t)),e}function DN(e){En===null?En=e:En.push.apply(En,e)}function Noe(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 n=r[a],o=n.getSnapshot;n=n.value;try{if(!Ci(o(),n))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 Vl(e,t){for(t&=~hI,t&=~Nx,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-wi(t),a=1<<r;e[r]=-1,t&=~a}}function hM(e){if((xt&6)!==0)throw Error(Se(327));pf();var t=Yb(e,0);if((t&1)===0)return Rn(e,Fr()),null;var r=mx(e,t);if(e.tag!==0&&r===2){var a=oN(e);a!==0&&(t=a,r=ON(e,a))}if(r===1)throw r=cg,iu(e,0),Vl(e,t),Rn(e,Fr()),r;if(r===6)throw Error(Se(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ru(e,En,js),Rn(e,Fr()),null}function vI(e,t){var r=xt;xt|=1;try{return e(t)}finally{xt=r,xt===0&&(xf=Fr()+500,wx&&tc())}}function fu(e){ql!==null&&ql.tag===0&&(xt&6)===0&&pf();var t=xt;xt|=1;var r=Mo.transition,a=Ot;try{if(Mo.transition=null,Ot=1,e)return e()}finally{Ot=a,Mo.transition=r,xt=t,(xt&6)===0&&tc()}}function yI(){Qn=sf.current,tr(sf)}function iu(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,toe(r)),Xr!==null)for(r=Xr.return;r!==null;){var a=r;switch(ZN(a),a.tag){case 1:a=a.type.childContextTypes,a!=null&&tx();break;case 3:yf(),tr(Ln),tr(Ha),sI();break;case 5:iI(a);break;case 4:yf();break;case 13:tr(xr);break;case 19:tr(xr);break;case 10:rI(a.type._context);break;case 22:case 23:yI()}r=r.return}if(ga=e,Xr=e=Yl(e.current,null),La=Qn=t,ra=0,cg=null,hI=Nx=du=0,En=Wh=null,nu!==null){for(t=0;t<nu.length;t++)if(r=nu[t],a=r.interleaved,a!==null){r.interleaved=null;var n=a.next,o=r.pending;if(o!==null){var i=o.next;o.next=n,a.next=i}r.pending=a}nu=null}return e}function i_(e,t){do{var r=Xr;try{if(tI(),Vb.current=ux,cx){for(var a=wr.memoizedState;a!==null;){var n=a.queue;n!==null&&(n.pending=null),a=a.next}cx=!1}if(uu=0,ha=ta=wr=null,zh=!1,ig=0,mI.current=null,r===null||r.return===null){ra=1,cg=t,Xr=null;break}e:{var o=e,i=r.return,s=r,l=t;if(t=La,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,d=s,u=d.tag;if((d.mode&1)===0&&(u===0||u===11||u===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 p=rM(i);if(p!==null){p.flags&=-257,aM(p,i,s,o,t),p.mode&1&&tM(o,c,t),t=p,l=c;var m=t.updateQueue;if(m===null){var h=new Set;h.add(l),t.updateQueue=h}else m.add(l);break e}else{if((t&1)===0){tM(o,c,t),bI();break e}l=Error(Se(426))}}else if(dr&&s.mode&1){var g=rM(i);if(g!==null){(g.flags&65536)===0&&(g.flags|=256),aM(g,i,s,o,t),QN(bf(l,s));break e}}o=l=bf(l,s),ra!==4&&(ra=2),Wh===null?Wh=[o]:Wh.push(o),o=i;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var y=z4(o,l,t);XD(o,y);break e;case 1:s=l;var v=o.type,x=o.stateNode;if((o.flags&128)===0&&(typeof v.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(Kl===null||!Kl.has(x)))){o.flags|=65536,t&=-t,o.lanes|=t;var S=H4(o,s,t);XD(o,S);break e}}o=o.return}while(o!==null)}c_(r)}catch(b){t=b,Xr===r&&r!==null&&(Xr=r=r.return);continue}break}while(!0)}function s_(){var e=dx.current;return dx.current=ux,e===null?ux:e}function bI(){(ra===0||ra===3||ra===2)&&(ra=4),ga===null||(du&268435455)===0&&(Nx&268435455)===0||Vl(ga,La)}function mx(e,t){var r=xt;xt|=2;var a=s_();(ga!==e||La!==t)&&(js=null,iu(e,t));do try{Ioe();break}catch(n){i_(e,n)}while(!0);if(tI(),xt=r,dx.current=a,Xr!==null)throw Error(Se(261));return ga=null,La=0,ra}function Ioe(){for(;Xr!==null;)l_(Xr)}function Poe(){for(;Xr!==null&&!ene();)l_(Xr)}function l_(e){var t=d_(e.alternate,e,Qn);e.memoizedProps=e.pendingProps,t===null?c_(e):Xr=t,mI.current=null}function c_(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&32768)===0){if(r=boe(r,t,Qn),r!==null){Xr=r;return}}else{if(r=xoe(r,t),r!==null){r.flags&=32767,Xr=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ra=6,Xr=null;return}}if(t=t.sibling,t!==null){Xr=t;return}Xr=t=e}while(t!==null);ra===0&&(ra=5)}function ru(e,t,r){var a=Ot,n=Mo.transition;try{Mo.transition=null,Ot=1,Eoe(e,t,r,a)}finally{Mo.transition=n,Ot=a}return null}function Eoe(e,t,r,a){do pf();while(ql!==null);if((xt&6)!==0)throw Error(Se(327));r=e.finishedWork;var n=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(Se(177));e.callbackNode=null,e.callbackPriority=0;var o=r.lanes|r.childLanes;
vendor: 17,453 bytes, line 9
9if(une(e,o),e===ga&&(Xr=ga=null,La=0),(r.subtreeFlags&2064)===0&&(r.flags&2064)===0||Mb||(Mb=!0,f_(Xb,function(){return pf(),null})),o=(r.flags&15990)!==0,(r.subtreeFlags&15990)!==0||o){o=Mo.transition,Mo.transition=null;var i=Ot;Ot=1;var s=xt;xt|=4,mI.current=null,Soe(e,r),a_(r,e),Yne(dN),Jb=!!uN,dN=uN=null,e.current=r,Coe(r,e,n),tne(),xt=s,Ot=i,Mo.transition=o}else e.current=r;if(Mb&&(Mb=!1,ql=e,px=n),o=e.pendingLanes,o===0&&(Kl=null),nne(r.stateNode,a),Rn(e,Fr()),t!==null)for(a=e.onRecoverableError,r=0;r<t.length;r++)n=t[r],a(n.value,{componentStack:n.stack,digest:n.digest});if(fx)throw fx=!1,e=TN,TN=null,e;return(px&1)!==0&&e.tag!==0&&pf(),o=e.pendingLanes,(o&1)!==0?e===RN?Gh++:(Gh=0,RN=e):Gh=0,tc(),null}function pf(){if(ql!==null){var e=zM(px),t=Mo.transition,r=Ot;try{if(Mo.transition=null,Ot=16>e?16:e,ql===null)var a=!1;else{if(e=ql,ql=null,px=0,(xt&6)!==0)throw Error(Se(331));var n=xt;for(xt|=4,Be=e.current;Be!==null;){var o=Be,i=o.child;if((Be.flags&16)!==0){var s=o.deletions;if(s!==null){for(var l=0;l<s.length;l++){var c=s[l];for(Be=c;Be!==null;){var d=Be;switch(d.tag){case 0:case 11:case 15:Hh(8,d,o)}var u=d.child;if(u!==null)u.return=d,Be=u;else for(;Be!==null;){d=Be;var f=d.sibling,p=d.return;if(e_(d),d===c){Be=null;break}if(f!==null){f.return=p,Be=f;break}Be=p}}}var m=o.alternate;if(m!==null){var h=m.child;if(h!==null){m.child=null;do{var g=h.sibling;h.sibling=null,h=g}while(h!==null)}}Be=o}}if((o.subtreeFlags&2064)!==0&&i!==null)i.return=o,Be=i;else e:for(;Be!==null;){if(o=Be,(o.flags&2048)!==0)switch(o.tag){case 0:case 11:case 15:Hh(9,o,o.return)}var y=o.sibling;if(y!==null){y.return=o.return,Be=y;break e}Be=o.return}}var v=e.current;for(Be=v;Be!==null;){i=Be;var x=i.child;if((i.subtreeFlags&2064)!==0&&x!==null)x.return=i,Be=x;else e:for(i=v;Be!==null;){if(s=Be,(s.flags&2048)!==0)try{switch(s.tag){case 0:case 11:case 15:kx(9,s)}}catch(b){Tr(s,s.return,b)}if(s===i){Be=null;break e}var S=s.sibling;if(S!==null){S.return=s.return,Be=S;break e}Be=s.return}}if(xt=n,tc(),Qi&&typeof Qi.onPostCommitFiberRoot=="function")try{Qi.onPostCommitFiberRoot(gx,e)}catch{}a=!0}return a}finally{Ot=r,Mo.transition=t}}return!1}function gM(e,t,r){t=bf(r,t),t=z4(e,t,1),e=$l(e,t,1),t=dn(),e!==null&&(ug(e,1,t),Rn(e,t))}function Tr(e,t,r){if(e.tag===3)gM(e,e,r);else for(;t!==null;){if(t.tag===3){gM(t,e,r);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Kl===null||!Kl.has(a))){e=bf(r,e),e=H4(t,e,1),t=$l(t,e,1),e=dn(),t!==null&&(ug(t,1,e),Rn(t,e));break}}t=t.return}}function Aoe(e,t,r){var a=e.pingCache;a!==null&&a.delete(t),t=dn(),e.pingedLanes|=e.suspendedLanes&r,ga===e&&(La&r)===r&&(ra===4||ra===3&&(La&130023424)===La&&500>Fr()-gI?iu(e,0):hI|=r),Rn(e,t)}function u_(e,t){t===0&&((e.mode&1)===0?t=1:(t=wb,wb<<=1,(wb&130023424)===0&&(wb=4194304)));var r=dn();e=Ws(e,t),e!==null&&(ug(e,t,r),Rn(e,r))}function Loe(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),u_(e,r)}function Toe(e,t){var r=0;switch(e.tag){case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(r=n.retryLane);break;case 19:a=e.stateNode;break;default:throw Error(Se(314))}a!==null&&a.delete(t),u_(e,r)}var d_;d_=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ln.current)An=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return An=!1,yoe(e,t,r);An=(e.flags&131072)!==0}else An=!1,dr&&(t.flags&1048576)!==0&&h4(t,nx,t.index);switch(t.lanes=0,t.tag){case 2:var a=t.type;qb(e,t),e=t.pendingProps;var n=hf(t,Ha.current);ff(t,r),n=cI(null,t,a,e,n,r);var o=uI();return t.flags|=1,typeof n=="object"&&n!==null&&typeof n.render=="function"&&n.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Tn(a)?(o=!0,rx(t)):o=!1,t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,nI(t),n.updater=Cx,t.stateNode=n,n._reactInternals=t,xN(t,a,e,r),t=CN(null,t,a,!0,o,r)):(t.tag=0,dr&&o&&JN(t),un(null,t,n,r),t=t.child),t;case 16:a=t.elementType;e:{switch(qb(e,t),e=t.pendingProps,n=a._init,a=n(a._payload),t.type=a,n=t.tag=Ooe(a),e=yi(a,e),n){case 0:t=SN(null,t,a,e,r);break e;case 1:t=iM(null,t,a,e,r);break e;case 11:t=nM(null,t,a,e,r);break e;case 14:t=oM(null,t,a,yi(a.type,e),r);break e}throw Error(Se(306,a,""))}return t;case 0:return a=t.type,n=t.pendingProps,n=t.elementType===a?n:yi(a,n),SN(e,t,a,n,r);case 1:return a=t.type,n=t.pendingProps,n=t.elementType===a?n:yi(a,n),iM(e,t,a,n,r);case 3:e:{if(K4(t),e===null)throw Error(Se(387));a=t.pendingProps,o=t.memoizedState,n=o.element,w4(e,t),sx(t,a,null,r);var i=t.memoizedState;if(a=i.element,o.isDehydrated)if(o={element:a,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){n=bf(Error(Se(423)),t),t=sM(e,t,a,r,n);break e}else if(a!==n){n=bf(Error(Se(424)),t),t=sM(e,t,a,r,n);break e}else for(eo=Gl(t.stateNode.containerInfo.firstChild),to=t,dr=!0,xi=null,r=b4(t,null,a,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(gf(),a===n){t=Gs(e,t,r);break e}un(e,t,a,r)}t=t.child}return t;case 5:return S4(t),e===null&&vN(t),a=t.type,n=t.pendingProps,o=e!==null?e.memoizedProps:null,i=n.children,fN(a,n)?i=null:o!==null&&fN(a,o)&&(t.flags|=32),$4(e,t),un(e,t,i,r),t.child;case 6:return e===null&&vN(t),null;case 13:return X4(e,t,r);case 4:return oI(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=vf(t,null,a,r):un(e,t,a,r),t.child;case 11:return a=t.type,n=t.pendingProps,n=t.elementType===a?n:yi(a,n),nM(e,t,a,n,r);case 7:return un(e,t,t.pendingProps,r),t.child;case 8:return un(e,t,t.pendingProps.children,r),t.child;case 12:return un(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(a=t.type._context,n=t.pendingProps,o=t.memoizedProps,i=n.value,Gt(ox,a._currentValue),a._currentValue=i,o!==null)if(Ci(o.value,i)){if(o.children===n.children&&!Ln.current){t=Gs(e,t,r);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){i=o.child;for(var l=s.firstContext;l!==null;){if(l.context===a){if(o.tag===1){l=qs(-1,r&-r),l.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}o.lanes|=r,l=o.alternate,l!==null&&(l.lanes|=r),yN(o.return,r,t),s.lanes|=r;break}l=l.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(Se(341));i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),yN(i,r,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}un(e,t,n.children,r),t=t.child}return t;case 9:return n=t.type,a=t.pendingProps.children,ff(t,r),n=_o(n),a=a(n),t.flags|=1,un(e,t,a,r),t.child;case 14:return a=t.type,n=yi(a,t.pendingProps),n=yi(a.type,n),oM(e,t,a,n,r);case 15:return W4(e,t,t.type,t.pendingProps,r);case 17:return a=t.type,n=t.pendingProps,n=t.elementType===a?n:yi(a,n),qb(e,t),t.tag=1,Tn(a)?(e=!0,rx(t)):e=!1,ff(t,r),q4(t,a,n),xN(t,a,n,r),CN(null,t,a,!0,e,r);case 19:return Y4(e,t,r);case 22:return G4(e,t,r)}throw Error(Se(156,t.tag))};function f_(e,t){return BM(e,t)}function Roe(e,t,r,a){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Do(e,t,r,a){return new Roe(e,t,r,a)}function xI(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ooe(e){if(typeof e=="function")return xI(e)?1:0;if(e!=null){if(e=e.$$typeof,e===BN)return 11;if(e===VN)return 14}return 2}function Yl(e,t){var r=e.alternate;return r===null?(r=Do(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 Wb(e,t,r,a,n,o){var i=2;if(a=e,typeof e=="function")xI(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Yd:return su(r.children,n,o,t);case jN:i=8,n|=8;break;case Hk:return e=Do(12,r,t,n|2),e.elementType=Hk,e.lanes=o,e;case Wk:return e=Do(13,r,t,n),e.elementType=Wk,e.lanes=o,e;case Gk:return e=Do(19,r,t,n),e.elementType=Gk,e.lanes=o,e;case SM:return Ix(r,n,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case xM:i=10;break e;case wM:i=9;break e;case BN:i=11;break e;case VN:i=14;break e;case Fl:i=16,a=null;break e}throw Error(Se(130,e==null?e:typeof e,""))}return t=Do(i,r,t,n),t.elementType=e,t.type=a,t.lanes=o,t}function su(e,t,r,a){return e=Do(7,e,a,t),e.lanes=r,e}function Ix(e,t,r,a){return e=Do(22,e,a,t),e.elementType=SM,e.lanes=r,e.stateNode={isHidden:!1},e}function Uk(e,t,r){return e=Do(6,e,null,t),e.lanes=r,e}function qk(e,t,r){return t=Do(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Doe(e,t,r,a,n){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=Nk(0),this.expirationTimes=Nk(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Nk(0),this.identifierPrefix=a,this.onRecoverableError=n,this.mutableSourceEagerHydrationData=null}function wI(e,t,r,a,n,o,i,s,l){return e=new Doe(e,t,r,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Do(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:a,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},nI(o),e}function Moe(e,t,r){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Xd,key:a==null?null:""+a,children:e,containerInfo:t,implementation:r}}function p_(e){if(!e)return Zl;e=e._reactInternals;e:{if(mu(e)!==e||e.tag!==1)throw Error(Se(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Tn(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Se(171))}if(e.tag===1){var r=e.type;if(Tn(r))return p4(e,r,t)}return t}function m_(e,t,r,a,n,o,i,s,l){return e=wI(r,a,!0,e,n,o,i,s,l),e.context=p_(null),r=e.current,a=dn(),n=Xl(r),o=qs(a,n),o.callback=t??null,$l(r,o,n),e.current.lanes=n,ug(e,n,a),Rn(e,a),e}function Px(e,t,r,a){var n=t.current,o=dn(),i=Xl(n);return r=p_(r),t.context===null?t.context=r:t.pendingContext=r,t=qs(o,i),t.payload={element:e},a=a===void 0?null:a,a!==null&&(t.callback=a),e=$l(n,t,i),e!==null&&(Si(e,n,i,o),Bb(e,n,i)),i}function hx(e){return e=e.current,e.child?(e.child.tag===5,e.child.stateNode):null}function vM(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function SI(e,t){vM(e,t),(e=e.alternate)&&vM(e,t)}function _oe(){return null}var h_=typeof reportError=="function"?reportError:function(e){console.error(e)};function CI(e){this._internalRoot=e}Ex.prototype.render=CI.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Se(409));Px(e,t,null,null)};Ex.prototype.unmount=CI.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;fu(function(){Px(null,e,null,null)}),t[Hs]=null}};function Ex(e){this._internalRoot=e}Ex.prototype.unstable_scheduleHydration=function(e){if(e){var t=GM();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Bl.length&&t!==0&&t<Bl[r].priority;r++);Bl.splice(r,0,e),r===0&&KM(e)}};function kI(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ax(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function yM(){}function Foe(e,t,r,a,n){if(n){if(typeof a=="function"){var o=a;a=function(){var c=hx(i);o.call(c)}}var i=m_(t,a,e,0,null,!1,!1,"",yM);return e._reactRootContainer=i,e[Hs]=i.current,tg(e.nodeType===8?e.parentNode:e),fu(),i}for(;n=e.lastChild;)e.removeChild(n);if(typeof a=="function"){var s=a;a=function(){var c=hx(l);s.call(c)}}var l=wI(e,0,!1,null,null,!1,!1,"",yM);return e._reactRootContainer=l,e[Hs]=l.current,tg(e.nodeType===8?e.parentNode:e),fu(function(){Px(t,l,r,a)}),l}function Lx(e,t,r,a,n){var o=r._reactRootContainer;if(o){var i=o;if(typeof n=="function"){var s=n;n=function(){var l=hx(i);s.call(l)}}Px(t,i,e,n)}else i=Foe(r,t,e,n,a);return hx(i)}HM=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=_h(t.pendingLanes);r!==0&&(zN(t,r|1),Rn(t,Fr()),(xt&6)===0&&(xf=Fr()+500,tc()))}break;case 13:fu(function(){var a=Ws(e,1);if(a!==null){var n=dn();Si(a,e,1,n)}}),SI(e,1)}};HN=function(e){if(e.tag===13){var t=Ws(e,134217728);if(t!==null){var r=dn();Si(t,e,134217728,r)}SI(e,134217728)}};WM=function(e){if(e.tag===13){var t=Xl(e),r=Ws(e,t);if(r!==null){var a=dn();Si(r,e,t,a)}SI(e,t)}};GM=function(){return Ot};$M=function(e,t){var r=Ot;try{return Ot=e,t()}finally{Ot=r}};rN=function(e,t,r){switch(t){case"input":if(Xk(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 n=xx(a);if(!n)throw Error(Se(90));kM(a),Xk(a,n)}}}break;case"textarea":IM(e,r);break;case"select":t=r.value,t!=null&&lf(e,!!r.multiple,t,!1)}};OM=vI;DM=fu;var joe={usingClientEntryPoint:!1,Events:[fg,ef,xx,TM,RM,vI]},Rh={findFiberByHostInstance:au,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Boe={bundleType:Rh.bundleType,version:Rh.version,rendererPackageName:Rh.rendererPackageName,rendererConfig:Rh.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:$s.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=FM(e),e===null?null:e.stateNode},findFiberByHostInstance:Rh.findFiberByHostInstance||_oe,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Oh=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Oh.isDisabled&&Oh.supportsFiber))try{gx=Oh.inject(Boe),Qi=Oh}catch{}var Oh;no.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=joe;no.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!kI(t))throw Error(Se(200));return Moe(e,t,null,r)};no.createRoot=function(e,t){if(!kI(e))throw Error(Se(299));var r=!1,a="",n=h_;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onRecoverableError!==void 0&&(n=t.onRecoverableError)),t=wI(e,1,!1,null,null,r,!1,a,n),e[Hs]=t.current,tg(e.nodeType===8?e.parentNode:e),new CI(t)};no.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(Se(188)):(e=Object.keys(e).join(","),Error(Se(268,e)));return e=FM(t),e=e===null?null:e.stateNode,e};no.flushSync=function(e){return fu(e)};no.hydrate=function(e,t,r){if(!Ax(t))throw Error(Se(200));return Lx(null,e,t,!0,r)};no.hydrateRoot=function(e,t,r){if(!kI(e))throw Error(Se(405));var a=r!=null&&r.hydratedSources||null,n=!1,o="",i=h_;if(r!=null&&(r.unstable_strictMode===!0&&(n=!0),r.identifierPrefix!==void 0&&(o=r.identifierPrefix),r.onRecoverableError!==void 0&&(i=r.onRecoverableError)),t=m_(t,null,e,1,r??null,n,!1,o,i),e[Hs]=t.current,tg(e),a)for(e=0;e<a.length;e++)r=a[e],n=r._getVersion,n=n(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,n]:t.mutableSourceEagerHydrationData.push(r,n);return new Ex(t)};no.render=function(e,t,r){if(!Ax(t))throw Error(Se(200));return Lx(null,e,t,!1,r)};no.unmountComponentAtNode=function(e){if(!Ax(e))throw Error(Se(40));return e._reactRootContainer?(fu(function(){Lx(null,null,e,!1,function(){e._reactRootContainer=null,e[Hs]=null})}),!0):!1};no.unstable_batchedUpdates=vI;no.unstable_renderSubtreeIntoContainer=function(e,t,r,a){if(!Ax(r))throw Error(Se(200));if(e==null||e._reactInternals===void 0)throw Error(Se(38));return Lx(e,t,r,!1,a)};no.version="18.3.1-next-f1338f8080-20240426"});var hu=H((pVe,y_)=>{"use strict";function v_(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(v_)}catch(e){console.error(e)}}v_(),y_.exports=g_()});var x_=H(NI=>{"use strict";var b_=hu();NI.createRoot=b_.createRoot,NI.hydrateRoot=b_.hydrateRoot;var mVe});var Q_=H(Bx=>{"use strict";var bse=Q(),xse=Symbol.for("react.element"),wse=Symbol.for("react.fragment"),Sse=Object.prototype.hasOwnProperty,Cse=bse.__SECRET_INT
9ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,kse={key:!0,ref:!0,__self:!0,__source:!0};function Z_(e,t,r){var a,n={},o=null,i=null;r!==void 0&&(o=""+r),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(a in t)Sse.call(t,a)&&!kse.hasOwnProperty(a)&&(n[a]=t[a]);if(e&&e.defaultProps)for(a in t=e.defaultProps,t)n[a]===void 0&&(n[a]=t[a]);return{$$typeof:xse,type:e,key:o,ref:i,props:n,_owner:Cse.current}}Bx.Fragment=wse;Bx.jsx=Z_;Bx.jsxs=Z_});var ke=H((nUe,e3)=>{"use strict";e3.exports=Q_()});var w6=H(x6=>{"use strict";var O0=Q();function vpe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ype=typeof Object.is=="function"?Object.is:vpe,bpe=O0.useSyncExternalStore,xpe=O0.useRef,wpe=O0.useEffect,Spe=O0.useMemo,Cpe=O0.useDebugValue;x6.useSyncExternalStoreWithSelector=function(e,t,r,a,n){var o=xpe(null);if(o.current===null){var i={hasValue:!1,value:null};o.current=i}else i=o.current;o=Spe(function(){function l(p){if(!c){if(c=!0,d=p,p=a(p),n!==void 0&&i.hasValue){var m=i.value;if(n(m,p))return u=m}return u=p}if(m=u,ype(d,p))return m;var h=a(p);return n!==void 0&&n(m,h)?(d=p,m):(d=p,u=h)}var c=!1,d,u,f=r===void 0?null:r;return[function(){return l(t())},f===null?void 0:function(){return l(f())}]},[t,r,a,n]);var s=bpe(e,o[0],o[1]);return wpe(function(){i.hasValue=!0,i.value=s},[s]),Cpe(s),s}});var C6=H((Mst,S6)=>{"use strict";S6.exports=w6()});var yU=H(vU=>{"use strict";var xp=Q();function Jve(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Zve=typeof Object.is=="function"?Object.is:Jve,Qve=xp.useState,eye=xp.useEffect,tye=xp.useLayoutEffect,rye=xp.useDebugValue;function aye(e,t){var r=t(),a=Qve({inst:{value:r,getSnapshot:t}}),n=a[0].inst,o=a[1];return tye(function(){n.value=r,n.getSnapshot=t,wA(n)&&o({inst:n})},[e,r,t]),eye(function(){return wA(n)&&o({inst:n}),e(function(){wA(n)&&o({inst:n})})},[e]),rye(r),r}function wA(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Zve(e,r)}catch{return!0}}function nye(e,t){return t()}var oye=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?nye:aye;vU.useSyncExternalStore=xp.useSyncExternalStore!==void 0?xp.useSyncExternalStore:oye});var xU=H((Jst,bU)=>{"use strict";bU.exports=yU()});var SU=H(wU=>{"use strict";var M1=Q(),iye=xU();function sye(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var lye=typeof Object.is=="function"?Object.is:sye,cye=iye.useSyncExternalStore,uye=M1.useRef,dye=M1.useEffect,fye=M1.useMemo,pye=M1.useDebugValue;wU.useSyncExternalStoreWithSelector=function(e,t,r,a,n){var o=uye(null);if(o.current===null){var i={hasValue:!1,value:null};o.current=i}else i=o.current;o=fye(function(){function l(p){if(!c){if(c=!0,d=p,p=a(p),n!==void 0&&i.hasValue){var m=i.value;if(n(m,p))return u=m}return u=p}if(m=u,lye(d,p))return m;var h=a(p);return n!==void 0&&n(m,h)?(d=p,m):(d=p,u=h)}var c=!1,d,u,f=r===void 0?null:r;return[function(){return l(t())},f===null?void 0:function(){return l(f())}]},[t,r,a,n]);var s=cye(e,o[0],o[1]);return dye(function(){i.hasValue=!0,i.value=s},[s]),pye(s),s}});var kU=H((Qst,CU)=>{"use strict";CU.exports=SU()});var bn=H((lpt,Oq)=>{"use strict";var Wbe=Array.isArray;Oq.exports=Wbe});var AA=H((cpt,Dq)=>{"use strict";var Gbe=typeof global=="object"&&global&&global.Object===Object&&global;Dq.exports=Gbe});var _i=H((upt,Mq)=>{"use strict";var $be=AA(),Kbe=typeof self=="object"&&self&&self.Object===Object&&self,Xbe=$be||Kbe||Function("return this")();Mq.exports=Xbe});var Op=H((dpt,_q)=>{"use strict";var Ybe=_i(),Jbe=Ybe.Symbol;_q.exports=Jbe});var Vq=H((fpt,Bq)=>{"use strict";var Fq=Op(),jq=Object.prototype,Zbe=jq.hasOwnProperty,Qbe=jq.toString,iv=Fq?Fq.toStringTag:void 0;function exe(e){var t=Zbe.call(e,iv),r=e[iv];try{e[iv]=void 0;var a=!0}catch{}var n=Qbe.call(e);return a&&(t?e[iv]=r:delete e[iv]),n}Bq.exports=exe});var qq=H((ppt,Uq)=>{"use strict";var txe=Object.prototype,rxe=txe.toString;function axe(e){return rxe.call(e)}Uq.exports=axe});var ws=H((mpt,Wq)=>{"use strict";var zq=Op(),nxe=Vq(),oxe=qq(),ixe="[object Null]",sxe="[object Undefined]",Hq=zq?zq.toStringTag:void 0;function lxe(e){return e==null?e===void 0?sxe:ixe:Hq&&Hq in Object(e)?nxe(e):oxe(e)}Wq.exports=lxe});var Ss=H((hpt,Gq)=>{"use strict";function cxe(e){return e!=null&&typeof e=="object"}Gq.exports=cxe});var Zu=H((gpt,$q)=>{"use strict";var uxe=ws(),dxe=Ss(),fxe="[object Symbol]";function pxe(e){return typeof e=="symbol"||dxe(e)&&uxe(e)==fxe}$q.exports=pxe});var z1=H((vpt,Kq)=>{"use strict";var mxe=bn(),hxe=Zu(),gxe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,vxe=/^\w*$/;function yxe(e,t){if(mxe(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||hxe(e)?!0:vxe.test(e)||!gxe.test(e)||t!=null&&e in Object(t)}Kq.exports=yxe});var Jo=H((ypt,Xq)=>{"use strict";function bxe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}
vendor: 6,114 bytes, line 9
9Xq.exports=bxe});var ir=H((bpt,Yq)=>{"use strict";var xxe=ws(),wxe=Jo(),Sxe="[object AsyncFunction]",Cxe="[object Function]",kxe="[object GeneratorFunction]",Nxe="[object Proxy]";function Ixe(e){if(!wxe(e))return!1;var t=xxe(e);return t==Cxe||t==kxe||t==Sxe||t==Nxe}Yq.exports=Ixe});var Zq=H((xpt,Jq)=>{"use strict";var Pxe=_i(),Exe=Pxe["__core-js_shared__"];Jq.exports=Exe});var tz=H((wpt,ez)=>{"use strict";var LA=Zq(),Qq=(function(){var e=/[^.]+$/.exec(LA&&LA.keys&&LA.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function Axe(e){return!!Qq&&Qq in e}ez.exports=Axe});var TA=H((Spt,rz)=>{"use strict";var Lxe=Function.prototype,Txe=Lxe.toString;function Rxe(e){if(e!=null){try{return Txe.call(e)}catch{}try{return e+""}catch{}}return""}rz.exports=Rxe});var nz=H((Cpt,az)=>{"use strict";var Oxe=ir(),Dxe=tz(),Mxe=Jo(),_xe=TA(),Fxe=/[\\^$.*+?()[\]{}|]/g,jxe=/^\[object .+?Constructor\]$/,Bxe=Function.prototype,Vxe=Object.prototype,Uxe=Bxe.toString,qxe=Vxe.hasOwnProperty,zxe=RegExp("^"+Uxe.call(qxe).replace(Fxe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Hxe(e){if(!Mxe(e)||Dxe(e))return!1;var t=Oxe(e)?zxe:jxe;return t.test(_xe(e))}az.exports=Hxe});var iz=H((kpt,oz)=>{"use strict";function Wxe(e,t){return e?.[t]}oz.exports=Wxe});var Ec=H((Npt,sz)=>{"use strict";var Gxe=nz(),$xe=iz();function Kxe(e,t){var r=$xe(e,t);return Gxe(r)?r:void 0}sz.exports=Kxe});var sv=H((Ipt,lz)=>{"use strict";var Xxe=Ec(),Yxe=Xxe(Object,"create");lz.exports=Yxe});var dz=H((Ppt,uz)=>{"use strict";var cz=sv();function Jxe(){this.__data__=cz?cz(null):{},this.size=0}uz.exports=Jxe});var pz=H((Ept,fz)=>{"use strict";function Zxe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}fz.exports=Zxe});var hz=H((Apt,mz)=>{"use strict";var Qxe=sv(),ewe="__lodash_hash_undefined__",twe=Object.prototype,rwe=twe.hasOwnProperty;function awe(e){var t=this.__data__;if(Qxe){var r=t[e];return r===ewe?void 0:r}return rwe.call(t,e)?t[e]:void 0}mz.exports=awe});var vz=H((Lpt,gz)=>{"use strict";var nwe=sv(),owe=Object.prototype,iwe=owe.hasOwnProperty;function swe(e){var t=this.__data__;return nwe?t[e]!==void 0:iwe.call(t,e)}gz.exports=swe});var bz=H((Tpt,yz)=>{"use strict";var lwe=sv(),cwe="__lodash_hash_undefined__";function uwe(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=lwe&&t===void 0?cwe:t,this}yz.exports=uwe});var wz=H((Rpt,xz)=>{"use strict";var dwe=dz(),fwe=pz(),pwe=hz(),mwe=vz(),hwe=bz();function Dp(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}Dp.prototype.clear=dwe;Dp.prototype.delete=fwe;Dp.prototype.get=pwe;Dp.prototype.has=mwe;Dp.prototype.set=hwe;xz.exports=Dp});var Cz=H((Opt,Sz)=>{"use strict";function gwe(){this.__data__=[],this.size=0}Sz.exports=gwe});var H1=H((Dpt,kz)=>{"use strict";function vwe(e,t){return e===t||e!==e&&t!==t}kz.exports=vwe});var lv=H((Mpt,Nz)=>{"use strict";var ywe=H1();function bwe(e,t){for(var r=e.length;r--;)if(ywe(e[r][0],t))return r;return-1}Nz.exports=bwe});var Pz=H((_pt,Iz)=>{"use strict";var xwe=lv(),wwe=Array.prototype,Swe=wwe.splice;function Cwe(e){var t=this.__data__,r=xwe(t,e);if(r<0)return!1;var a=t.length-1;return r==a?t.pop():Swe.call(t,r,1),--this.size,!0}Iz.exports=Cwe});var Az=H((Fpt,Ez)=>{"use strict";var kwe=lv();function Nwe(e){var t=this.__data__,r=kwe(t,e);return r<0?void 0:t[r][1]}Ez.exports=Nwe});var Tz=H((jpt,Lz)=>{"use strict";var Iwe=lv();function Pwe(e){return Iwe(this.__data__,e)>-1}Lz.exports=Pwe});var Oz=H((Bpt,Rz)=>{"use strict";var Ewe=lv();function Awe(e,t){var r=this.__data__,a=Ewe(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}Rz.exports=Awe});var cv=H((Vpt,Dz)=>{"use strict";var Lwe=Cz(),Twe=Pz(),Rwe=Az(),Owe=Tz(),Dwe=Oz();function Mp(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}Mp.prototype.clear=Lwe;Mp.prototype.delete=Twe;Mp.prototype.get=Rwe;Mp.prototype.has=Owe;Mp.prototype.set=Dwe;Dz.exports=Mp});var W1=H((Upt,Mz)=>{"use strict";var Mwe=Ec(),_we=_i(),Fwe=Mwe(_we,"Map");Mz.exports=Fwe});var jz=H((qpt,Fz)=>{"use strict";var _z=wz(),jwe=cv(),Bwe=W1();function Vwe(){this.size=0,this.__data__={hash:new _z,map:new(Bwe||jwe),string:new _z}}Fz.exports=Vwe});var Vz=H((zpt,Bz)=>{"use strict";function Uwe(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}Bz.exports=Uwe});var uv=H((Hpt,Uz)=>{"use strict";var qwe=Vz();function zwe(e,t){var r=e.__data__;return qwe(t)?r[typeof t=="string"?"string":"hash"]:r.map}Uz.exports=zwe});var zz=H((Wpt,qz)=>{"use strict";var Hwe=uv();function Wwe(e){var t=Hwe(this,e).delete(e);return this.size-=t?1:0,t}qz.exports=Wwe});var Wz=H((Gpt,Hz)=>{"use strict";var Gwe=uv();function $we(e){return Gwe(this,e).get(e)}Hz.exports=$we});var $z=H(($pt,Gz)=>{"use strict";var Kwe=uv();function Xwe(e){return Kwe(this,e).has(e)}Gz.exports=Xwe});var Xz=H((Kpt,Kz)=>{"use strict";var Ywe=uv();function Jwe(e,t){var r=Ywe(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}Kz.exports=Jwe});var G1=H((Xpt,Yz)=>{"use strict";var Zwe=jz(),Qwe=zz(),e1e=Wz(),t1e=$z(),r1e=Xz();function _p(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}_p.prototype.clear=Zwe;_p.prototype.delete=Qwe;_p.prototype.get=e1e;_p.prototype.has=t1e;_p.prototype.set=r1e;Yz.exports=_p});var OA=H((Ypt,Zz)=>{"use strict";var Jz=G1(),a1e="Expected a function";function RA(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(a1e);var r=function(){var a=arguments,n=t?t.apply(this,a):a[0],o=r.cache;if(o.has(n))return o.get(n);var i=e.apply(this,a);return r.cache=o.set(n,i)||o,i};return r.cache=new(RA.Cache||Jz),r}RA.Cache=Jz;Zz.exports=RA});var e8=H((Jpt,Qz)=>{"use strict";var n1e=OA(),o1e=500;function i1e(e){var t=n1e(e,function(a){return r.size===o1e&&r.clear(),a}),r=t.cache;return t}Qz.exports=i1e});var r8=H((Zpt,t8)=>{"use strict";var s1e=e8(),l1e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,c1e=/\\(\\)?/g,u1e=s1e(function(e){var t=[];
9return e.charCodeAt(0)===46&&t.push(""),e.replace(l1e,function(r,a,n,o){t.push(n?o.replace(c1e,"$1"):a||r)}),t});t8.exports=u1e});var $1=H((Qpt,a8)=>{"use strict";function d1e(e,t){for(var r=-1,a=e==null?0:e.length,n=Array(a);++r<a;)n[r]=t(e[r],r,e);return n}a8.exports=d1e});var c8=H((emt,l8)=>{"use strict";var n8=Op(),f1e=$1(),p1e=bn(),m1e=Zu(),h1e=1/0,o8=n8?n8.prototype:void 0,i8=o8?o8.toString:void 0;function s8(e){if(typeof e=="string")return e;if(p1e(e))return f1e(e,s8)+"";if(m1e(e))return i8?i8.call(e):"";var t=e+"";return t=="0"&&1/e==-h1e?"-0":t}l8.exports=s8});var DA=H((tmt,u8)=>{"use strict";var g1e=c8();function v1e(e){return e==null?"":g1e(e)}u8.exports=v1e});var MA=H((rmt,d8)=>{"use strict";var y1e=bn(),b1e=z1(),x1e=r8(),w1e=DA();function S1e(e,t){return y1e(e)?e:b1e(e,t)?[e]:x1e(w1e(e))}d8.exports=S1e});var dv=H((amt,f8)=>{"use strict";var C1e=Zu(),k1e=1/0;function N1e(e){if(typeof e=="string"||C1e(e))return e;var t=e+"";return t=="0"&&1/e==-k1e?"-0":t}f8.exports=N1e});var K1=H((nmt,p8)=>{"use strict";var I1e=MA(),P1e=dv();function E1e(e,t){t=I1e(t,e);for(var r=0,a=t.length;e!=null&&r<a;)e=e[P1e(t[r++])];return r&&r==a?e:void 0}p8.exports=E1e});var Ac=H((omt,m8)=>{"use strict";var A1e=K1();function L1e(e,t,r){var a=e==null?void 0:A1e(e,t);return a===void 0?r:a}m8.exports=L1e});var qn=H((imt,h8)=>{"use strict";function T1e(e){return e==null}h8.exports=T1e});var X1=H((smt,g8)=>{"use strict";var R1e=ws(),O1e=bn(),D1e=Ss(),M1e="[object String]";function _1e(e){return typeof e=="string"||!O1e(e)&&D1e(e)&&R1e(e)==M1e}g8.exports=_1e});var y8=H(Mt=>{"use strict";var _A=Symbol.for("react.element"),FA=Symbol.for("react.portal"),Y1=Symbol.for("react.fragment"),J1=Symbol.for("react.strict_mode"),Z1=Symbol.for("react.profiler"),Q1=Symbol.for("react.provider"),eS=Symbol.for("react.context"),F1e=Symbol.for("react.server_context"),tS=Symbol.for("react.forward_ref"),rS=Symbol.for("react.suspense"),aS=Symbol.for("react.suspense_list"),nS=Symbol.for("react.memo"),oS=Symbol.for("react.lazy"),j1e=Symbol.for("react.offscreen"),v8;v8=Symbol.for("react.module.reference");function Zo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case _A:switch(e=e.type,e){case Y1:case Z1:case J1:case rS:case aS:return e;default:switch(e=e&&e.$$typeof,e){case F1e:case eS:case tS:case oS:case nS:case Q1:return e;default:return t}}case FA:return t}}}Mt.ContextConsumer=eS;Mt.ContextProvider=Q1;Mt.Element=_A;Mt.ForwardRef=tS;Mt.Fragment=Y1;Mt.Lazy=oS;Mt.Memo=nS;Mt.Portal=FA;Mt.Profiler=Z1;Mt.StrictMode=J1;Mt.Suspense=rS;Mt.SuspenseList=aS;Mt.isAsyncMode=function(){return!1};Mt.isConcurrentMode=function(){return!1};Mt.isContextConsumer=function(e){return Zo(e)===eS};Mt.isContextProvider=function(e){return Zo(e)===Q1};Mt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===_A};Mt.isForwardRef=function(e){return Zo(e)===tS};Mt.isFragment=function(e){return Zo(e)===Y1};Mt.isLazy=function(e){return Zo(e)===oS};Mt.isMemo=function(e){return Zo(e)===nS};Mt.isPortal=function(e){return Zo(e)===FA};Mt.isProfiler=function(e){return Zo(e)===Z1};Mt.isStrictMode=function(e){return Zo(e)===J1};Mt.isSuspense=function(e){return Zo(e)===rS};Mt.isSuspenseList=function(e){return Zo(e)===aS};Mt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Y1||e===Z1||e===J1||e===rS||e===aS||e===j1e||typeof e=="object"&&e!==null&&(e.$$typeof===oS||e.$$typeof===nS||e.$$typeof===Q1||e.$$typeof===eS||e.$$typeof===tS||e.$$typeof===v8||e.getModuleId!==void 0)};Mt.typeOf=Zo});var x8=H((cmt,b8)=>{"use strict";b8.exports=y8()});var jA=H((umt,w8)=>{"use strict";var B1e=ws(),V1e=Ss(),U1e="[object Number]";function q1e(e){return typeof e=="number"||V1e(e)&&B1e(e)==U1e}w8.exports=q1e});var iS=H((dmt,S8)=>{"use strict";var z1e=jA();function H1e(e){return z1e(e)&&e!=+e}S8.exports=H1e});var z8=H((Imt,q8)=>{"use strict";function sSe(e,t,r){var a=-1,n=e.length;t<0&&(t=-t>n?0:n+t),r=r>n?n:r,r<0&&(r+=n),n=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(n);++a<n;)o[a]=e[a+t];return o}q8.exports=sSe});var W8=H((Pmt,H8)=>{"use strict";var lSe=z8();function cSe(e,t,r){var a=e.length;return r=r===void 0?a:r,!t&&r>=a?e:lSe(e,t,r)}H8.exports=cSe});var JA=H((Emt,G8)=>{"use strict";var uSe="\\ud800-\\udfff",dSe="\\u0300-\\u036f",fSe="\\ufe20-\\ufe2f",pSe="\\u20d0-\\u20ff",mSe=dSe+fSe+pSe,hSe="\\ufe0e\\ufe0f",gSe="\\u200d",vSe=Reg
9Exp("["+gSe+uSe+mSe+hSe+"]");function ySe(e){return vSe.test(e)}G8.exports=ySe});var K8=H((Amt,$8)=>{"use strict";function bSe(e){return e.split("")}$8.exports=bSe});var r9=H((Lmt,t9)=>{"use strict";var X8="\\ud800-\\udfff",xSe="\\u0300-\\u036f",wSe="\\ufe20-\\ufe2f",SSe="\\u20d0-\\u20ff",CSe=xSe+wSe+SSe,kSe="\\ufe0e\\ufe0f",NSe="["+X8+"]",ZA="["+CSe+"]",QA="\\ud83c[\\udffb-\\udfff]",ISe="(?:"+ZA+"|"+QA+")",Y8="[^"+X8+"]",J8="(?:\\ud83c[\\udde6-\\uddff]){2}",Z8="[\\ud800-\\udbff][\\udc00-\\udfff]",PSe="\\u200d",Q8=ISe+"?",e9="["+kSe+"]?",ESe="(?:"+PSe+"(?:"+[Y8,J8,Z8].join("|")+")"+e9+Q8+")*",ASe=e9+Q8+ESe,LSe="(?:"+[Y8+ZA+"?",ZA,J8,Z8,NSe].join("|")+")",TSe=RegExp(QA+"(?="+QA+")|"+LSe+ASe,"g");function RSe(e){return e.match(TSe)||[]}t9.exports=RSe});var n9=H((Tmt,a9)=>{"use strict";var OSe=K8(),DSe=JA(),MSe=r9();function _Se(e){return DSe(e)?MSe(e):OSe(e)}a9.exports=_Se});var i9=H((Rmt,o9)=>{"use strict";var FSe=W8(),jSe=JA(),BSe=n9(),VSe=DA();function USe(e){return function(t){t=VSe(t);var r=jSe(t)?BSe(t):void 0,a=r?r[0]:t.charAt(0),n=r?FSe(r,1).join(""):t.slice(1);return a[e]()+n}}o9.exports=USe});var fS=H((Omt,s9)=>{"use strict";var qSe=i9(),zSe=qSe("toUpperCase");s9.exports=zSe});var O9=H((Mgt,R9)=>{"use strict";var y2e=cv();function b2e(){this.__data__=new y2e,this.size=0}R9.exports=b2e});var M9=H((_gt,D9)=>{"use strict";function x2e(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}D9.exports=x2e});var F9=H((Fgt,_9)=>{"use strict";function w2e(e){return this.__data__.get(e)}_9.exports=w2e});var B9=H((jgt,j9)=>{"use strict";function S2e(e){return this.__data__.has(e)}j9.exports=S2e});var U9=H((Bgt,V9)=>{"use strict";var C2e=cv(),k2e=W1(),N2e=G1(),I2e=200;function P2e(e,t){var r=this.__data__;if(r instanceof C2e){var a=r.__data__;if(!k2e||a.length<I2e-1)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new N2e(a)}return r.set(e,t),this.size=r.size,this}V9.exports=P2e});var O5=H((Vgt,q9)=>{"use strict";var E2e=cv(),A2e=O9(),L2e=M9(),T2e=F9(),R2e=B9(),O2e=U9();function Yp(e){var t=this.__data__=new E2e(e);this.size=t.size}Yp.prototype.clear=A2e;Yp.prototype.delete=L2e;Yp.prototype.get=T2e;Yp.prototype.has=R2e;Yp.prototype.set=O2e;q9.exports=Yp});var H9=H((Ugt,z9)=>{"use strict";var D2e="__lodash_hash_undefined__";function M2e(e){return this.__data__.set(e,D2e),this}z9.exports=M2e});var G9=H((qgt,W9)=>{"use strict";function _2e(e){return this.__data__.has(e)}W9.exports=_2e});var D5=H((zgt,$9)=>{"use strict";var F2e=G1(),j2e=H9(),B2e=G9();function wS(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new F2e;++t<r;)this.add(e[t])}wS.prototype.add=wS.prototype.push=j2e;wS.prototype.has=B2e;$9.exports=wS});var M5=H((Hgt,K9)=>{"use strict";function V2e(e,t){for(var r=-1,a=e==null?0:e.length;++r<a;)if(t(e[r],r,e))return!0;return!1}K9.exports=V2e});var _5=H((Wgt,X9)=>{"use strict";function U2e(e,t){return e.has(t)}X9.exports=U2e});var F5=H((Ggt,Y9)=>{"use strict";var q2e=D5(),z2e=M5(),H2e=_5(),W2e=1,G2e=2;function $2e(e,t,r,a,n,o){var i=r&W2e,s=e.length,l=t.length;if(s!=l&&!(i&&l>s))return!1;var c=o.get(e),d=o.get(t);if(c&&d)return c==t&&d==e;var u=-1,f=!0,p=r&G2e?new q2e:void 0;for(o.set(e,t),o.set(t,e);++u<s;){var m=e[u],h=t[u];if(a)var g=i?a(h,m,u,t,e,o):a(m,h,u,e,t,o);if(g!==void 0){if(g)continue;f=!1;break}if(p){if(!z2e(t,function(y,v){if(!H2e(p,v)&&(m===y||n(m,y,r,a,o)))return p.push(v)})){f=!1;break}}else if(!(m===h||n(m,h,r,a,o))){f=!1;break}}return o.delete(e),o.delete(t),f}Y9.exports=$2e});var Z9=H(($gt,J9)=>{"use strict";var K2e=_i(),X2e=K2e.Uint8Array;J9.exports=X2e});var eH=H((Kgt,Q9)=>{"use strict";function Y2e(e){var t=-1,r=Array(e.size);return e.forEach(function(a,n){r[++t]=[n,a]}),r}Q9.exports=Y2e});var SS=H((Xgt,tH)=>{"use strict";function J2e(e){var t=-1,r=Array(e.size);return e.forEach(function(a){r[++t]=a}),r}tH.exports=J2e});var iH=H((Ygt,oH)=>{"use strict";var rH=Op(),aH=Z9(),Z2e=H1(),Q2e=F5(),eCe=eH(),tCe=SS(),rCe=1,aCe=2,nCe="[object Boolean]",oCe="[object Date]",iCe="[object Error]",sCe="[object Map]",lCe="[object Number]",cCe="[object RegExp]",uCe="[object Set]",dCe="[object String]",fCe="[object Symbol]",pCe="[object ArrayBuffer]",mCe="[object DataView]",nH=rH?rH.prototype:void 0,j5=nH?nH.valueOf
vendor: 16,375 bytes, line 9
9:void 0;function hCe(e,t,r,a,n,o,i){switch(r){case mCe:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case pCe:return!(e.byteLength!=t.byteLength||!o(new aH(e),new aH(t)));case nCe:case oCe:case lCe:return Z2e(+e,+t);case iCe:return e.name==t.name&&e.message==t.message;case cCe:case dCe:return e==t+"";case sCe:var s=eCe;case uCe:var l=a&rCe;if(s||(s=tCe),e.size!=t.size&&!l)return!1;var c=i.get(e);if(c)return c==t;a|=aCe,i.set(e,t);var d=Q2e(s(e),s(t),a,n,o,i);return i.delete(e),d;case fCe:if(j5)return j5.call(e)==j5.call(t)}return!1}oH.exports=hCe});var B5=H((Jgt,sH)=>{"use strict";function gCe(e,t){for(var r=-1,a=t.length,n=e.length;++r<a;)e[n+r]=t[r];return e}sH.exports=gCe});var cH=H((Zgt,lH)=>{"use strict";var vCe=B5(),yCe=bn();function bCe(e,t,r){var a=t(e);return yCe(e)?a:vCe(a,r(e))}lH.exports=bCe});var dH=H((Qgt,uH)=>{"use strict";function xCe(e,t){for(var r=-1,a=e==null?0:e.length,n=0,o=[];++r<a;){var i=e[r];t(i,r,e)&&(o[n++]=i)}return o}uH.exports=xCe});var pH=H((e0t,fH)=>{"use strict";function wCe(){return[]}fH.exports=wCe});var gH=H((t0t,hH)=>{"use strict";var SCe=dH(),CCe=pH(),kCe=Object.prototype,NCe=kCe.propertyIsEnumerable,mH=Object.getOwnPropertySymbols,ICe=mH?function(e){return e==null?[]:(e=Object(e),SCe(mH(e),function(t){return NCe.call(e,t)}))}:CCe;hH.exports=ICe});var yH=H((r0t,vH)=>{"use strict";function PCe(e,t){for(var r=-1,a=Array(e);++r<e;)a[r]=t(r);return a}vH.exports=PCe});var xH=H((a0t,bH)=>{"use strict";var ECe=ws(),ACe=Ss(),LCe="[object Arguments]";function TCe(e){return ACe(e)&&ECe(e)==LCe}bH.exports=TCe});var CS=H((n0t,CH)=>{"use strict";var wH=xH(),RCe=Ss(),SH=Object.prototype,OCe=SH.hasOwnProperty,DCe=SH.propertyIsEnumerable,MCe=wH((function(){return arguments})())?wH:function(e){return RCe(e)&&OCe.call(e,"callee")&&!DCe.call(e,"callee")};CH.exports=MCe});var NH=H((o0t,kH)=>{"use strict";function _Ce(){return!1}kH.exports=_Ce});var V5=H((yv,Jp)=>{"use strict";var FCe=_i(),jCe=NH(),EH=typeof yv=="object"&&yv&&!yv.nodeType&&yv,IH=EH&&typeof Jp=="object"&&Jp&&!Jp.nodeType&&Jp,BCe=IH&&IH.exports===EH,PH=BCe?FCe.Buffer:void 0,VCe=PH?PH.isBuffer:void 0,UCe=VCe||jCe;Jp.exports=UCe});var kS=H((i0t,AH)=>{"use strict";var qCe=9007199254740991,zCe=/^(?:0|[1-9]\d*)$/;function HCe(e,t){var r=typeof e;return t=t??qCe,!!t&&(r=="number"||r!="symbol"&&zCe.test(e))&&e>-1&&e%1==0&&e<t}AH.exports=HCe});var NS=H((s0t,LH)=>{"use strict";var WCe=9007199254740991;function GCe(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=WCe}LH.exports=GCe});var RH=H((l0t,TH)=>{"use strict";var $Ce=ws(),KCe=NS(),XCe=Ss(),YCe="[object Arguments]",JCe="[object Array]",ZCe="[object Boolean]",QCe="[object Date]",eke="[object Error]",tke="[object Function]",rke="[object Map]",ake="[object Number]",nke="[object Object]",oke="[object RegExp]",ike="[object Set]",ske="[object String]",lke="[object WeakMap]",cke="[object ArrayBuffer]",uke="[object DataView]",dke="[object Float32Array]",fke="[object Float64Array]",pke="[object Int8Array]",mke="[object Int16Array]",hke="[object Int32Array]",gke="[object Uint8Array]",vke="[object Uint8ClampedArray]",yke="[object Uint16Array]",bke="[object Uint32Array]",sr={};sr[dke]=sr[fke]=sr[pke]=sr[mke]=sr[hke]=sr[gke]=sr[vke]=sr[yke]=sr[bke]=!0;sr[YCe]=sr[JCe]=sr[cke]=sr[ZCe]=sr[uke]=sr[QCe]=sr[eke]=sr[tke]=sr[rke]=sr[ake]=sr[nke]=sr[oke]=sr[ike]=sr[ske]=sr[lke]=!1;function xke(e){return XCe(e)&&KCe(e.length)&&!!sr[$Ce(e)]}TH.exports=xke});var U5=H((c0t,OH)=>{"use strict";function wke(e){return function(t){return e(t)}}OH.exports=wke});var MH=H((bv,Zp)=>{"use strict";var Ske=AA(),DH=typeof bv=="object"&&bv&&!bv.nodeType&&bv,xv=DH&&typeof Zp=="object"&&Zp&&!Zp.nodeType&&Zp,Cke=xv&&xv.exports===DH,q5=Cke&&Ske.process,kke=(function(){try{var e=xv&&xv.require&&xv.require("util").types;return e||q5&&q5.binding&&q5.binding("util")}catch{}})();Zp.exports=kke});var z5=H((u0t,jH)=>{"use strict";var Nke=RH(),Ike=U5(),_H=MH(),FH=_H&&_H.isTypedArray,Pke=FH?Ike(FH):Nke;jH.exports=Pke});var VH=H((d0t,BH)=>{"use strict";var Eke=yH(),Ake=CS(),Lke=bn(),Tke=V5(),Rke=kS(),Oke=z5(),Dke=Object.prototype,Mke=Dke.hasOwnProperty;function _ke(e,t){var r=Lke(e),a=!r&&Ake(e),n=!r&&!a&&Tke(e),o=!r&&!a&&!n&&Oke(e),i=r||a||n||o,s=i?Eke(e.length,String):[],l=s.length;for(var c in e)(t||Mke.call(e,c))&&!(i&&(c=="length"||n&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Rke(c,l)))&&s.push(c);return s}BH.exports=_ke});var qH=H((f0t,UH)=>{"use strict";var Fke=Object.prototype;function jke(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Fke;return e===r}UH.exports=jke});var H5=H((p0t,zH)=>{"use strict";function Bke(e,t){return function(r){return e(t(r))}}zH.exports=Bke});var WH=H((m0t,HH)=>{"use strict";var Vke=H5(),Uke=Vke(Object.keys,Object);HH.exports=Uke});var $H=H((h0t,GH)=>{"use strict";var qke=qH(),zke=WH(),Hke=Object.prototype,Wke=Hke.hasOwnProperty;function Gke(e){if(!qke(e))return zke(e);var t=[];for(var r in Object(e))Wke.call(e,r)&&r!="constructor"&&t.push(r);return t}GH.exports=Gke});var Qp=H((g0t,KH)=>{"use strict";var $ke=ir(),Kke=NS();function Xke(e){return e!=null&&Kke(e.length)&&!$ke(e)}KH.exports=Xke});var wv=H((v0t,XH)=>{"use strict";var Yke=VH(),Jke=$H(),Zke=Qp();function Qke(e){return Zke(e)?Yke(e):Jke(e)}XH.exports=Qke});var JH=H((y0t,YH)=>{"use strict";var eNe=cH(),tNe=gH(),rNe=wv();function aNe(e){return eNe(e,rNe,tNe)}YH.exports=aNe});var eW=H((b0t,QH)=>{"use strict";var ZH=JH(),nNe=1,oNe=Object.prototype,iNe=oNe.hasOwnProperty;function sNe(e,t,r,a,n,o){var i=r&nNe,s=ZH(e),l=s.length,c=ZH(t),d=c.length;if(l!=d&&!i)return!1;for(var u=l;u--;){var f=s[u];if(!(i?f in t:iNe.call(t,f)))return!1}var p=o.get(e),m=o.get(t);if(p&&m)return p==t&&m==e;var h=!0;o.set(e,t),o.set(t,e);for(var g=i;++u<l;){f=s[u];var y=e[f],v=t[f];if(a)var x=i?a(v,y,f,t,e,o):a(y,v,f,e,t,o);if(!(x===void 0?y===v||n(y,v,r,a,o):x)){h=!1;break}g||(g=f=="constructor")}if(h&&!g){var S=e.constructor,b=t.constructor;S!=b&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof b=="function"&&b instanceof b)&&(h=!1)}return o.delete(e),o.delete(t),h}QH.exports=sNe});var rW=H((x0t,tW)=>{"use strict";var lNe=Ec(),cNe=_i(),uNe=lNe(cNe,"DataView");tW.exports=uNe});var nW=H((w0t,aW)=>{"use strict";var dNe=Ec(),fNe=_i(),pNe=dNe(fNe,"Promise");aW.exports=pNe});var W5=H((S0t,oW)=>{"use strict";var mNe=Ec(),hNe=_i(),gNe=mNe(hNe,"Set");oW.exports=gNe});var sW=H((C0t,iW)=>{"use strict";var vNe=Ec(),yNe=_i(),bNe=vNe(yNe,"WeakMap");iW.exports=bNe});var hW=H((k0t,mW)=>{"use strict";var G5=rW(),$5=W1(),K5=nW(),X5=W5(),Y5=sW(),pW=ws(),em=TA(),lW="[object Map]",xNe="[object Object]",cW="[object Promise]",uW="[object Set]",dW="[object WeakMap]",fW="[object DataView]",wNe=em(G5),SNe=em($5),CNe=em(K5),kNe=em(X5),NNe=em(Y5),ad=pW;(G5&&ad(new G5(new ArrayBuffer(1)))!=fW||$5&&ad(new $5)!=lW||K5&&ad(K5.resolve())!=cW||X5&&ad(new X5)!=uW||Y5&&ad(new Y5)!=dW)&&(ad=function(e){var t=pW(e),r=t==xNe?e.constructor:void 0,a=r?em(r):"";if(a)switch(a){case wNe:return fW;case SNe:return lW;case CNe:return cW;case kNe:return uW;case NNe:return dW}return t});mW.exports=ad});var CW=H((N0t,SW)=>{"use strict";var J5=O5(),INe=F5(),PNe=iH(),ENe=eW(),gW=hW(),vW=bn(),yW=V5(),ANe=z5(),LNe=1,bW="[object Arguments]",xW="[object Array]",IS="[object Object]",TNe=Object.prototype,wW=TNe.hasOwnProperty;function RNe(e,t,r,a,n,o){var i=vW(e),s=vW(t),l=i?xW:gW(e),c=s?xW:gW(t);l=l==bW?IS:l,c=c==bW?IS:c;var d=l==IS,u=c==IS,f=l==c;if(f&&yW(e)){if(!yW(t))return!1;i=!0,d=!1}if(f&&!d)return o||(o=new J5),i||ANe(e)?INe(e,t,r,a,n,o):PNe(e,t,l,r,a,n,o);if(!(r&LNe)){var p=d&&wW.call(e,"__wrapped__"),m=u&&wW.call(t,"__wrapped__");if(p||m){var h=p?e.value():e,g=m?t.value():t;return o||(o=new J5),n(h,g,r,a,o)}}return f?(o||(o=new J5),ENe(e,t,r,a,n,o)):!1}SW.exports=RNe});var PS=H((I0t,IW)=>{"use strict";var ONe=CW(),kW=Ss();function NW(e,t,r,a,n){return e===t?!0:e==null||t==null||!kW(e)&&!kW(t)?e!==e&&t!==t:ONe(e,t,r,a,NW,n)}IW.exports=NW});var EW=H((P0t,PW)=>{"use strict";var DNe=O5(),MNe=PS(),_Ne=1,FNe=2;function jNe(e,t,r,a){var n=r.length,o=n,i=!a;if(e==null)return!o;for(e=Object(e);n--;){var s=r[n];if(i&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++n<o;){s=r[n];var l=s[0],c=e[l],d=s[1];if(i&&s[2]){if(c===void 0&&!(l in e))return!1}else{var u=new DNe;if(a)var f=a(c,d,l,e,t,u);if(!(f===void 0?MNe(d,c,_Ne|FNe,a,u):f))return!1}}return!0}PW.exports=jNe});var Z5=H((E0t,AW)=>{"use strict";var BNe=Jo();function VNe(e){return e===e&&!BNe(e)}AW.exports=VNe});var TW=H((A0t,LW)=>{"use strict";var UNe=Z5(),qNe=wv();function zNe(e){for(var t=qNe(e),r=t.length;r--;){var a=t[r],n=e[a];t[r]=[a,n,UNe(n)]}return t}LW.exports=zNe});var Q5=H((L0t,RW)=>{"use strict";function HNe(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}RW.exports=HNe});var DW=H((T0t,OW)=>{"use strict";var WNe=EW(),GNe=TW(),$Ne=Q5();function KNe(e){var t=GNe(e);return t.length==1&&t[0][2]?$Ne(t[0][0],t[0][1]):function(r){return r===e||WNe(r,e,t)}}OW.exports=KNe});var _W=H((R0t,MW)=>{"use strict";function XNe(e,t){return e!=null&&t in Object(e)}MW.exports=XNe});var jW=H((O0t,FW)=>{"use strict";var YNe=MA(),JNe=CS(),ZNe=bn(),QNe=kS(),eIe=NS(),tIe=dv();function rIe(e,t,r){t=YNe(t,e);for(var a=-1,n=t.length,o=!1;++a<n;){var i=tIe(t[a]);if(!(o=e!=null&&r(e,i)))break;e=e[i]}return o||++a!=n?o:(n=e==null?0:e.length,!!n&&eIe(n)&&QNe(i,n)&&(ZNe(e)||JNe(e)))}FW.exports=rIe});var VW=H((D0t,BW)=>{"use strict";var aIe=_W(),nIe=jW();function oIe(e,t){return e!=null&&nIe(e,t,aIe)}BW.exports=oIe});var qW=H((M0t,UW)=>{"use strict";var iIe=PS(),sIe=Ac(),lIe=VW(),cIe=z1(),uIe=Z5(),dIe=Q5(),fIe=dv(),pIe=1,mIe=2;function hIe(e,t){return cIe(e)&&uIe(t)?dIe(fIe(e),t):function(r){var a=sIe(r,e);return a===void 0&&a===t?lIe(r,e):iIe(t,a,pIe|mIe)}}UW.exports=hIe});var nd=H((_0t,zW)=>{"use strict";function gIe(e){return e}zW.exports=gIe});var WW=H((F0t,HW)=>{"use strict";function vIe(e){return function(t){return t?.[e]}}HW.exports=vIe});var $W=H((j0t,GW)=>{"use strict";var yIe=K1();function bIe(e){return function(t){return yIe(t,e)}}GW.exports=bIe});var XW=H((B0t,KW)=>{"use strict";var xIe=WW(),wIe=$W(),SIe=z1(),CIe=dv();function kIe(e){return SIe(e)?xIe(CIe(e)):wIe(e)}KW.exports=kIe});var Fi=H((V0t,YW)=>{"use strict";var NIe=DW(),IIe=qW(),PIe=nd(),EIe=bn(),AIe=XW();function LIe(e){return typeof e=="function"?e:e==null?PIe:typeof e=="object"?EIe(e)?IIe(e[0],e[1]):NIe(e):AIe(e)}YW.exports=LIe});var eL=H((U0t,JW)=>{"use strict";function TIe(e,t,r,a){for(var n=e.length,o=r+(a?1:-1);a?o--:++o<n;)if(t(e[o],o,e))return o;return-1}JW.exports=TIe});var QW=H((q0t,ZW)=>{"use strict";function RIe(e){return e!==e}ZW.exports=RIe});var t7=H((z0t,e7)=>{"use strict";function OIe(e,t,r){for(var a=r-1,n=e.length;++a<n;)if(e[a]===t)return a;return-1}e7.exports=OIe});var a7=H((H0t,r7)=>{"use strict";var DIe=eL(),MIe=QW(),_Ie=t7();function FIe(e,t,r){return t===t?_Ie(e,t,r):DIe(e,MIe,r)}r7.exports=FIe});var o7=H((W0t,n7)=>{"use strict";var jIe=a7();function BIe(e,t){var r=e==null?0:e.length;return!!r&&jIe(e,t,0)>-1}n7.exports=BIe});var s7=H((G0t,i7)=>{"use strict";function VIe(e,t,r){for(var a=-1,n=e==null?0:e.length;++a<n;)if(r(t,e[a]))return!0;return!1}i7.exports=VIe});var c7=H(($0t,l7)=>{"use strict";function UIe(){}l7.exports=UIe});var d7=H((K0t,u7)=>{"use strict";var tL=W5(),qIe=c7(),zIe=SS(),HIe=1/0,WIe=tL&&1/zIe(new tL([,-0]))[1]==HIe?function(e){return new tL(e)}:qIe;u7.exports=WIe});var p7=H((X0t,f7)=>{"use strict";var GIe=D5(),$Ie=o7(),KIe=s7(),XIe=_5(),YIe=d7(),JIe=SS(),ZIe=200;function QIe(e,t,r){var a=-1,n=$Ie,o=e.length,i=!0,s=[],l=s;if(r)i=!1,n=KIe;else if(o>=ZIe){var c=t?null:YIe(e);if(c)return JIe(c);i=!1,n=XIe,l=new GIe}else l=t?[]:s;e:for(;++a<o;){var d=e[a],u=t?t(d):d;if(d=r||d!==0?d:0,i&&u===u){for(var f=l.length;f--;)if(l[f]===u)continue e;t&&l.push(u),s.push(d)}else n(l,u,r)||(l!==s&&l.push(u),s.push(d))}return s}f7.exports=QIe});var h7=H((Y0t,m7)=>{"use strict";var ePe=Fi(),tPe=p7();function rPe(e,t){return e&&e.length?tPe(e,ePe(t,2)):[]}m7.exports=rPe});var N7=H((rvt,k7)=>{"use strict";var S7=Op(),hPe=CS(),gPe=bn(),C7=S7?S7.isConcatSpreadable:void 0;function vPe(e){return gPe(e)||hPe(e)||!!(C7&&e&&e[C7])}k7.exports=vPe});var nL=H((avt,P7)=>{"use strict";var yPe=B5(),bPe=N7();function I7(e,t,r,a,n){var o=-1,i=e.length;for(r||(r=bPe),n||(n=[]);++o<i;){var s=e[o];t>0&&r(s)?t>1?I7(s,t-1,r,a,n):yPe(n,s):a||(n[n.length]=s)}return n}P7.exports=I7});var A7=H((nvt,E7)=>{"use strict";function xPe(e){return function(t,r,a){for(var n=-1,o=Object(t),i=a(t),s=i.length;s--;){var l=i[e?s:++n];if(r(o[l],l,o)===!1)break}return t}}E7.exports=xPe});var T7=H((ovt,L7)=>{"use strict";var wPe=A7(),SPe=wPe();L7.exports=SPe});var oL=H((ivt,R7)=>{"use strict";var CPe=T7(),kPe=wv();function NPe(e,t){return e&&CPe(e,t,kPe)}R7.exports=NPe});var D7=H((svt,O7)=>{"use strict";var IPe=Qp();function PPe(e,t){return function(r,a){if(r==null)return r;if(!IPe(r))return e(r,a);for(var n=r.length,o=t?n:-1,i=Object(r);(t?o--:++o<n)&&a(i[o],o,i)!==!1;);return r}}O7.exports=PPe});var TS=H((lvt,M7)=>{"use strict";var EPe=oL(),APe=D7(),LPe=APe(EPe);M7.exports=LPe});var iL=H((cvt,_7)=>{"use strict";var TPe=TS(),RPe=Qp();function OPe(e,t){var r=-1,a=RPe(e)?Array(e.length):[];return TPe(e,function(n,o,i){a[++r]=t(n,o,i)}),a}_7.exports=OPe});var j7=H((uvt,F7)=>{"use strict";function DPe(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}F7.exports=DPe});var U7=H((dvt,V7)=>{"use strict";var B7=Zu();function MPe(e,t){if(e!==t){var r=e!==void 0,a=e===null,n=e===e,o=B7(e),i=t!==void 0,s=t===null,l=t===t,c=B7(t);if(!s&&!c&&!o&&e>t||o&&i&&l&&!s&&!c||a&&i&&l||!r&&l||!n)return 1;if(!a&&!o&&!c&&e<t||c&&r&&n&&!a&&!o||s&&r&&n||!i&&n||!l)return-1}return 0}V7.exports=MPe});var z7=H((fvt,q7)=>{"use strict";var _Pe=U7();function FPe(e,t,r){for(var a=-1,n=e.criteria,o=t.criteria,i=n.length,s=r.length;++a<i;){var l=_Pe(n[a],o[a]);if(l){if(a>=s)return l;var c=r[a];return l*(c=="desc"?-1:1)}}return e.index-t.index}q7.exports=FPe});var W7=H((pvt,H7)=>{"use strict";var sL=$1(),jPe=K1(),BPe=Fi(),VPe=iL(),UPe=j7(),qPe=U5(),zPe=z7(),HPe=nd(),WPe=bn();function GPe(e,t,r){t.length?t=sL(t,function(o){return WPe(o)?function(i){return jPe(i,o.length===1?o[0]:o)}:o}):t=[HPe];var a=-1;t=sL(t,qPe(BPe));var n=VPe(e,function(o,i,s){var l=sL(t,function(c){return c(o)});return{criteria:l,index:++a,value:o}});return UPe(n,function(o,i){return zPe(o,i,r)})}H7.exports=GPe});var $7=H((mvt,G7)=>{"use strict";function $Pe(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}G7.exports=$Pe});var Y7=H((hvt,X7)=>{"use strict";var KPe=$7(),K7=Math.max;function XPe(e,t,r){return t=K7(t===void 0?e.length-1:t,0),function(){for(var a=arguments,n=-1,o=K7(a.length-t,0),i=Array(o);++n<o;)i[n]=a[t+n];n=-1;for(var s=Array(t+1);++n<t;)s[n]=a[n];return s[t]=r(i),KPe(e,this,s)}}X7.exports=XPe});var Z7=H((gvt,J7)=>{"use strict";function YPe(e){return function(){return e}}J7.exports=YPe});var lL=H((vvt,Q7)=>{"use strict";var JPe=Ec(),ZPe=(function(){try{var e=JPe(Object,"defineProperty");return e({},"",{}),e}catch{}})();Q7.exports=ZPe});var rG=H((yvt,tG)=>{"use strict";var QPe=Z7(),eG=lL(),eEe=nd(),tEe=eG?function(e,t){return eG(e,"toString",{configurable:!0,enumerable:!1,value:QPe(t),writable:!0})}:eEe;tG.exports=tEe});var nG=H((bvt,aG)=>{"use strict";var rEe=800,aEe=16,nEe=Date.now;function oEe(e){var t=0,r=0;return function(){var a=nEe(),n=aEe-(a-r);if(r=a,n>0){if(++t>=rEe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}aG.exports=oEe});var iG=H((xvt,oG)=>{"use strict";var iEe=rG(),sEe=nG(),lEe=sEe(iEe);oG.exports=lEe});var lG=H((wvt,sG)=>{"use strict";var cEe=nd(),uEe=Y7(),dEe=iG();function fEe(e,t){return dEe(uEe(e,t,cEe),e+"")}sG.exports=fEe});var Sv=H((Svt,cG)=>{"use strict";var pEe=H1(),mEe=Qp(),hEe=kS(),gEe=Jo();function vEe(e,t,r){if(!gEe(r))return!1;var a=typeof t;return(a=="number"?mEe(r)&&hEe(t,r.length):a=="string"&&t in r)?pEe(r[t],e):!1}cG.exports=vEe});var RS=H((Cvt,dG)=>{"use strict";var yEe=nL(),bEe=W7(),xEe=lG(),uG=Sv(),wEe=xEe(function(e,t){if(e==null)return[];var r=t.length;return r>1&&uG(e,t[0],t[1])?t=[]:r>2&&uG(t[0],t[1],t[2])&&(t=[t[0]]),bEe(e,yEe(t,1),[])});dG.exports=wEe});var RG=H((jvt,TG)=>{"use strict";
9var QEe=_i(),eAe=function(){return QEe.Date.now()};TG.exports=eAe});var DG=H((Bvt,OG)=>{"use strict";var tAe=/\s/;function rAe(e){for(var t=e.length;t--&&tAe.test(e.charAt(t)););return t}OG.exports=rAe});var _G=H((Vvt,MG)=>{"use strict";var aAe=DG(),nAe=/^\s+/;function oAe(e){return e&&e.slice(0,aAe(e)+1).replace(nAe,"")}MG.exports=oAe});var hL=H((Uvt,BG)=>{"use strict";var iAe=_G(),FG=Jo(),sAe=Zu(),jG=NaN,lAe=/^[-+]0x[0-9a-f]+$/i,cAe=/^0b[01]+$/i,uAe=/^0o[0-7]+$/i,dAe=parseInt;function fAe(e){if(typeof e=="number")return e;if(sAe(e))return jG;if(FG(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=FG(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=iAe(e);var r=cAe.test(e);return r||uAe.test(e)?dAe(e.slice(2),r?2:8):lAe.test(e)?jG:+e}BG.exports=fAe});var qG=H((qvt,UG)=>{"use strict";var pAe=Jo(),gL=RG(),VG=hL(),mAe="Expected a function",hAe=Math.max,gAe=Math.min;function vAe(e,t,r){var a,n,o,i,s,l,c=0,d=!1,u=!1,f=!0;if(typeof e!="function")throw new TypeError(mAe);t=VG(t)||0,pAe(r)&&(d=!!r.leading,u="maxWait"in r,o=u?hAe(VG(r.maxWait)||0,t):o,f="trailing"in r?!!r.trailing:f);function p(w){var k=a,C=n;return a=n=void 0,c=w,i=e.apply(C,k),i}function m(w){return c=w,s=setTimeout(y,t),d?p(w):i}function h(w){var k=w-l,C=w-c,N=t-k;return u?gAe(N,o-C):N}function g(w){var k=w-l,C=w-c;return l===void 0||k>=t||k<0||u&&C>=o}function y(){var w=gL();if(g(w))return v(w);s=setTimeout(y,h(w))}function v(w){return s=void 0,f&&a?p(w):(a=n=void 0,i)}function x(){s!==void 0&&clearTimeout(s),c=0,a=l=n=s=void 0}function S(){return s===void 0?i:v(gL())}function b(){var w=gL(),k=g(w);if(a=arguments,n=this,l=w,k){if(s===void 0)return m(l);if(u)return clearTimeout(s),s=setTimeout(y,t),p(l)}return s===void 0&&(s=setTimeout(y,t)),i}return b.cancel=x,b.flush=S,b}UG.exports=vAe});var vL=H((zvt,zG)=>{"use strict";var yAe=qG(),bAe=Jo(),xAe="Expected a function";function wAe(e,t,r){var a=!0,n=!0;if(typeof e!="function")throw new TypeError(xAe);return bAe(r)&&(a="leading"in r?!!r.leading:a,n="trailing"in r?!!r.trailing:n),yAe(e,t,{leading:a,maxWait:t,trailing:n})}zG.exports=wAe});var Kv=H((nSt,TK)=>{"use strict";var pTe=Zu();function mTe(e,t,r){for(var a=-1,n=e.length;++a<n;){var o=e[a],i=t(o);if(i!=null&&(s===void 0?i===i&&!pTe(i):r(i,s)))var s=i,l=o}return l}TK.exports=mTe});var rT=H((oSt,RK)=>{"use strict";function hTe(e,t){return e>t}RK.exports=hTe});var aT=H((iSt,OK)=>{"use strict";var gTe=Kv(),vTe=rT(),yTe=nd();function bTe(e){return e&&e.length?gTe(e,yTe,vTe):void 0}OK.exports=bTe});var nT=H((sSt,DK)=>{"use strict";function xTe(e,t){return e<t}DK.exports=xTe});var _K=H((lSt,MK)=>{"use strict";var wTe=Kv(),STe=nT(),CTe=nd();function kTe(e){return e&&e.length?wTe(e,CTe,STe):void 0}MK.exports=kTe});var jK=H((cSt,FK)=>{"use strict";var NTe=$1(),ITe=Fi(),PTe=iL(),ETe=bn();function ATe(e,t){var r=ETe(e)?NTe:PTe;return r(e,ITe(t,3))}FK.exports=ATe});var VK=H((uSt,BK)=>{"use strict";var LTe=nL(),TTe=jK();function RTe(e,t){return LTe(TTe(e,t),1)}BK.exports=RTe});var xd=H((dSt,UK)=>{"use strict";var OTe=PS();function DTe(e,t){return OTe(e,t)}UK.exports=DTe});var oT=H((qK,C2)=>{"use strict";(function(e){"use strict";var t=1e9,r={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},a=!0,n="[DecimalError] ",o=n+"Invalid argument: ",i=n+"Exponent out of range: ",s=Math.floor,l=Math.pow,c=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,d,u=1e7,f=7,p=9007199254740991,m=s(p/f),h={};h.absoluteValue=h.abs=function(){var I=new this.constructor(this);return I.s&&(I.s=1),I},h.comparedTo=h.cmp=function(I){var A,M,D,V,P=this;if(I=new P.constructor(I),P.s!==I.s)return P.s||-I.s;if(P.e!==I.e)return P.e>I.e^P.s<0?1:-1;for(D=P.d.length,V=I.d.length,A=0,M=D<V?D:V;A<M;++A)if(P.d[A]!==I.d[A])return P.d[A]>I.d[A]^P.s<0?1:-1;return D===V?0:D>V^P.s<0?1:-1},h.decimalPlaces=h.dp=function(){var I=this,A=I.d.length-1,M=(A-I.e)*f;if(A=I.d[A],A)for(;A%10==0;A/=10)M--;return M<0?0:M},h.dividedBy=h.div=function(I){return x(this,new this.constructor(I))},h.dividedToIntegerBy=h.idiv=function(I){var A=this,M=A.constructor;return E(x(A,new M(I),0,1),M.precision)},h.equals=h.eq=function(I){return!this.cmp(I)},h.exponent=function(){return b(this)},h.greaterThan=h.gt=function(I){return this.cmp(I)>0},h.greaterThanOrEqualTo=h.gte=function(I){return this.cmp(I)>=0},h.isInteger=h.isint=function(){return this.e>this.d.length-2},h.isNegative=h.isneg=function(){return this.s<0},h.isPositive=h.ispos=function(){return this.s>0},h.isZero=function(){return this.s===0},h.lessThan=h.lt=function(I){return this.cmp(I)<0},h.lessThanOrEqualTo=h.lte=function(I){return this.cmp(I)<1}
vendor: 12,469 bytes, line 9
9,h.logarithm=h.log=function(I){var A,M=this,D=M.constructor,V=D.precision,P=V+5;if(I===void 0)I=new D(10);else if(I=new D(I),I.s<1||I.eq(d))throw Error(n+"NaN");if(M.s<1)throw Error(n+(M.s?"NaN":"-Infinity"));return M.eq(d)?new D(0):(a=!1,A=x(C(M,P),C(I,P),P),a=!0,E(A,V))},h.minus=h.sub=function(I){var A=this;return I=new A.constructor(I),A.s==I.s?L(A,I):g(A,(I.s=-I.s,I))},h.modulo=h.mod=function(I){var A,M=this,D=M.constructor,V=D.precision;if(I=new D(I),!I.s)throw Error(n+"NaN");return M.s?(a=!1,A=x(M,I,0,1).times(I),a=!0,M.minus(A)):E(new D(M),V)},h.naturalExponential=h.exp=function(){return S(this)},h.naturalLogarithm=h.ln=function(){return C(this)},h.negated=h.neg=function(){var I=new this.constructor(this);return I.s=-I.s||0,I},h.plus=h.add=function(I){var A=this;return I=new A.constructor(I),A.s==I.s?g(A,I):L(A,(I.s=-I.s,I))},h.precision=h.sd=function(I){var A,M,D,V=this;if(I!==void 0&&I!==!!I&&I!==1&&I!==0)throw Error(o+I);if(A=b(V)+1,D=V.d.length-1,M=D*f+1,D=V.d[D],D){for(;D%10==0;D/=10)M--;for(D=V.d[0];D>=10;D/=10)M++}return I&&A>M?A:M},h.squareRoot=h.sqrt=function(){var I,A,M,D,V,P,O,j=this,W=j.constructor;if(j.s<1){if(!j.s)return new W(0);throw Error(n+"NaN")}for(I=b(j),a=!1,V=Math.sqrt(+j),V==0||V==1/0?(A=v(j.d),(A.length+I)%2==0&&(A+="0"),V=Math.sqrt(A),I=s((I+1)/2)-(I<0||I%2),V==1/0?A="5e"+I:(A=V.toExponential(),A=A.slice(0,A.indexOf("e")+1)+I),D=new W(A)):D=new W(V.toString()),M=W.precision,V=O=M+3;;)if(P=D,D=P.plus(x(j,P,O+2)).times(.5),v(P.d).slice(0,O)===(A=v(D.d)).slice(0,O)){if(A=A.slice(O-3,O+1),V==O&&A=="4999"){if(E(P,M+1,0),P.times(P).eq(j)){D=P;break}}else if(A!="9999")break;O+=4}return a=!0,E(D,M)},h.times=h.mul=function(I){var A,M,D,V,P,O,j,W,ee,oe=this,he=oe.constructor,Le=oe.d,ae=(I=new he(I)).d;if(!oe.s||!I.s)return new he(0);for(I.s*=oe.s,M=oe.e+I.e,W=Le.length,ee=ae.length,W<ee&&(P=Le,Le=ae,ae=P,O=W,W=ee,ee=O),P=[],O=W+ee,D=O;D--;)P.push(0);for(D=ee;--D>=0;){for(A=0,V=W+D;V>D;)j=P[V]+ae[D]*Le[V-D-1]+A,P[V--]=j%u|0,A=j/u|0;P[V]=(P[V]+A)%u|0}for(;!P[--O];)P.pop();return A?++M:P.shift(),I.d=P,I.e=M,a?E(I,he.precision):I},h.toDecimalPlaces=h.todp=function(I,A){var M=this,D=M.constructor;return M=new D(M),I===void 0?M:(y(I,0,t),A===void 0?A=D.rounding:y(A,0,8),E(M,I+b(M)+1,A))},h.toExponential=function(I,A){var M,D=this,V=D.constructor;return I===void 0?M=T(D,!0):(y(I,0,t),A===void 0?A=V.rounding:y(A,0,8),D=E(new V(D),I+1,A),M=T(D,!0,I+1)),M},h.toFixed=function(I,A){var M,D,V=this,P=V.constructor;return I===void 0?T(V):(y(I,0,t),A===void 0?A=P.rounding:y(A,0,8),D=E(new P(V),I+b(V)+1,A),M=T(D.abs(),!1,I+b(D)+1),V.isneg()&&!V.isZero()?"-"+M:M)},h.toInteger=h.toint=function(){var I=this,A=I.constructor;return E(new A(I),b(I)+1,A.rounding)},h.toNumber=function(){return+this},h.toPower=h.pow=function(I){var A,M,D,V,P,O,j=this,W=j.constructor,ee=12,oe=+(I=new W(I));if(!I.s)return new W(d);if(j=new W(j),!j.s){if(I.s<1)throw Error(n+"Infinity");return j}if(j.eq(d))return j;if(D=W.precision,I.eq(d))return E(j,D);if(A=I.e,M=I.d.length-1,O=A>=M,P=j.s,O){if((M=oe<0?-oe:oe)<=p){for(V=new W(d),A=Math.ceil(D/f+4),a=!1;M%2&&(V=V.times(j),q(V.d,A)),M=s(M/2),M!==0;)j=j.times(j),q(j.d,A);return a=!0,I.s<0?new W(d).div(V):E(V,D)}}else if(P<0)throw Error(n+"NaN");return P=P<0&&I.d[Math.max(A,M)]&1?-1:1,j.s=1,a=!1,V=I.times(C(j,D+ee)),a=!0,V=S(V),V.s=P,V},h.toPrecision=function(I,A){var M,D,V=this,P=V.constructor;return I===void 0?(M=b(V),D=T(V,M<=P.toExpNeg||M>=P.toExpPos)):(y(I,1,t),A===void 0?A=P.rounding:y(A,0,8),V=E(new P(V),I,A),M=b(V),D=T(V,I<=M||M<=P.toExpNeg,I)),D},h.toSignificantDigits=h.tosd=function(I,A){var M=this,D=M.constructor;return I===void 0?(I=D.precision,A=D.rounding):(y(I,1,t),A===void 0?A=D.rounding:y(A,0,8)),E(new D(M),I,A)},h.toString=h.valueOf=h.val=h.toJSON=function(){var I=this,A=b(I),M=I.constructor;return T(I,A<=M.toExpNeg||A>=M.toExpPos)};function g(I,A){var M,D,V,P,O,j,W,ee,oe=I.constructor,he=oe.precision;if(!I.s||!A.s)return A.s||(A=new oe(I)),a?E(A,he):A;if(W=I.d,ee=A.d,O=I.e,V=A.e,W=W.slice(),P=O-V,P){for(P<0?(D=W,P=-P,j=ee.length):(D=ee,V=O,j=W.length),O=Math.ceil(he/f),j=O>j?O+1:j+1,P>j&&(P=j,D.length=1),D.reverse();P--;)D.push(0);D.reverse()}for(j=W.length,P=ee.length,j-P<0&&(P=j,D=ee,ee=W,W=D),M=0;P;)M=(W[--P]=W[P]+ee[P]+M)/u|0,W[P]%=u;for(M&&(W.unshift(M),++V),j=W.length;W[--j]==0;)W.pop();return A.d=W,A.e=V,a?E(A,he):A}function y(I,A,M){if(I!==~~I||I<A||I>M)throw Error(o+I)}function v(I){var A,M,D,V=I.length-1,P="",O=I[0];if(V>0){for(P+=O,A=1;A<V;A++)D=I[A]+"",M=f-D.length,M&&(P+=k(M)),P+=D;O=I[A],D=O+"",M=f-D.length,M&&(P+=k(M))}else if(O===0)return"0";for(;O%10===0;)O/=10;return P+O}var x=(function(){function I(D,V){var P,O=0,j=D.length;for(D=D.slice();j--;)P=D[j]*V+O,D[j]=P%u|0,O=P/u|0;return O&&D.unshift(O),D}function A(D,V,P,O){var j,W;if(P!=O)W=P>O?1:-1;else for(j=W=0;j<P;j++)if(D[j]!=V[j]){W=D[j]>V[j]?1:-1;break}return W}function M(D,V,P){for(var O=0;P--;)D[P]-=O,O=D[P]<V[P]?1:0,D[P]=O*u+D[P]-V[P];for(;!D[0]&&D.length>1;)D.shift()}return function(D,V,P,O){var j,W,ee,oe,he,Le,ae,Oe,ue,Y,st,Ge,Rt,Et,Qt,ln,_t,pi,Pn=D.constructor,yr=D.s==V.s?1:-1,pa=D.d,br=V.d;if(!D.s)return new Pn(D);if(!V.s)throw Error(n+"Division by zero");for(W=D.e-V.e,_t=br.length,Qt=pa.length,ae=new Pn(yr),Oe=ae.d=[],ee=0;br[ee]==(pa[ee]||0);)++ee;if(br[ee]>(pa[ee]||0)&&--W,P==null?Ge=P=Pn.precision:O?Ge=P+(b(D)-b(V))+1:Ge=P,Ge<0)return new Pn(0);if(Ge=Ge/f+2|0,ee=0,_t==1)for(oe=0,br=br[0],Ge++;(ee<Qt||oe)&&Ge--;ee++)Rt=oe*u+(pa[ee]||0),Oe[ee]=Rt/br|0,oe=Rt%br|0;else{for(oe=u/(br[0]+1)|0,oe>1&&(br=I(br,oe),pa=I(pa,oe),_t=br.length,Qt=pa.length),Et=_t,ue=pa.slice(0,_t),Y=ue.length;Y<_t;)ue[Y++]=0;pi=br.slice(),pi.unshift(0),ln=br[0],br[1]>=u/2&&++ln;do oe=0,j=A(br,ue,_t,Y),j<0?(st=ue[0],_t!=Y&&(st=st*u+(ue[1]||0)),oe=st/ln|0,oe>1?(oe>=u&&(oe=u-1),he=I(br,oe),Le=he.length,Y=ue.length,j=A(he,ue,Le,Y),j==1&&(oe--,M(he,_t<Le?pi:br,Le))):(oe==0&&(j=oe=1),he=br.slice()),Le=he.length,Le<Y&&he.unshift(0),M(ue,he,Y),j==-1&&(Y=ue.length,j=A(br,ue,_t,Y),j<1&&(oe++,M(ue,_t<Y?pi:br,Y))),Y=ue.length):j===0&&(oe++,ue=[0]),Oe[ee++]=oe,j&&ue[0]?ue[Y++]=pa[Et]||0:(ue=[pa[Et]],Y=1);while((Et++<Qt||ue[0]!==void 0)&&Ge--)}return Oe[0]||Oe.shift(),ae.e=W,E(ae,O?P+b(ae)+1:P)}})();function S(I,A){var M,D,V,P,O,j,W=0,ee=0,oe=I.constructor,he=oe.precision;if(b(I)>16)throw Error(i+b(I));if(!I.s)return new oe(d);for(A==null?(a=!1,j=he):j=A,O=new oe(.03125);I.abs().gte(.1);)I=I.times(O),ee+=5;for(D=Math.log(l(2,ee))/Math.LN10*2+5|0,j+=D,M=V=P=new oe(d),oe.precision=j;;){if(V=E(V.times(I),j),M=M.times(++W),O=P.plus(x(V,M,j)),v(O.d).slice(0,j)===v(P.d).slice(0,j)){for(;ee--;)P=E(P.times(P),j);return oe.precision=he,A==null?(a=!0,E(P,he)):P}P=O}}function b(I){for(var A=I.e*f,M=I.d[0];M>=10;M/=10)A++;return A}function w(I,A,M){if(A>I.LN10.sd())throw a=!0,M&&(I.precision=M),Error(n+"LN10 precision limit exceeded");return E(new I(I.LN10),A)}function k(I){for(var A="";I--;)A+="0";return A}function C(I,A){var M,D,V,P,O,j,W,ee,oe,he=1,Le=10,ae=I,Oe=ae.d,ue=ae.constructor,Y=ue.precision;if(ae.s<1)throw Error(n+(ae.s?"NaN":"-Infinity"));if(ae.eq(d))return new ue(0);if(A==null?(a=!1,ee=Y):ee=A,ae.eq(10))return A==null&&(a=!0),w(ue,ee);if(ee+=Le,ue.precision=ee,M=v(Oe),D=M.charAt(0),P=b(ae),Math.abs(P)<15e14){for(;D<7&&D!=1||D==1&&M.charAt(1)>3;)ae=ae.times(I),M=v(ae.d),D=M.charAt(0),he++;P=b(ae),D>1?(ae=new ue("0."+M),P++):ae=new ue(D+"."+M.slice(1))}else return W=w(ue,ee+2,Y).times(P+""),ae=C(new ue(D+"."+M.slice(1)),ee-Le).plus(W),ue.precision=Y,A==null?(a=!0,E(ae,Y)):ae;for(j=O=ae=x(ae.minus(d),ae.plus(d),ee),oe=E(ae.times(ae),ee),V=3;;){if(O=E(O.times(oe),ee),W=j.plus(x(O,new ue(V),ee)),v(W.d).slice(0,ee)===v(j.d).slice(0,ee))return j=j.times(2),P!==0&&(j=j.plus(w(ue,ee+2,Y).times(P+""))),j=x(j,new ue(he),ee),ue.precision=Y,A==null?(a=!0,E(j,Y)):j;j=W,V+=2}}function N(I,A){var M,D,V;for((M=A.indexOf("."))>-1&&(A=A.replace(".","")),(D=A.search(/e/i))>0?(M<0&&(M=D),M+=+A.slice(D+1),A=A.substring(0,D)):M<0&&(M=A.length),D=0;A.charCodeAt(D)===48;)++D;for(V=A.length;A.charCodeAt(V-1)===48;)--V;if(A=A.slice(D,V),A){if(V-=D,M=M-D-1,I.e=s(M/f),I.d=[],D=(M+1)%f,M<0&&(D+=f),D<V){for(D&&I.d.push(+A.slice(0,D)),V-=f;D<V;)I.d.push(+A.slice(D,D+=f));A=A.slice(D),D=f-A.length}else D-=V;for(;D--;)A+="0";if(I.d.push(+A),a&&(I.e>m||I.e<-m))throw Error(i+M)}else I.s=0,I.e=0,I.d=[0];return I}function E(I,A,M){var D,V,P,O,j,W,ee,oe,he=I.d;for(O=1,P=he[0];P>=10;P/=10)O++;if(D=A-O,D<0)D+=f,V=A,ee=he[oe=0];else{if(oe=Math.ceil((D+1)/f),P=he.length,oe>=P)return I;for(ee=P=he[oe],O=1;P>=10;P/=10)O++;D%=f,V=D-f+O}if(M!==void 0&&(P=l(10,O-V-1),j=ee/P%10|0,W=A<0||he[oe+1]!==void 0||ee%P,W=M<4?(j||W)&&(M==0||M==(I.s<0?3:2)):j>5||j==5&&(M==4||W||M==6&&(D>0?V>0?ee/l(10,O-V):0:he[oe-1])%10&1||M==(I.s<0?8:7))),A<1||!he[0])return W?(P=b(I),he.length=1,A=A-P-1,he[0]=l(10,(f-A%f)%f),I.e=s(-A/f)||0):(he.length=1,he[0]=I.e=I.s=0),I;if(D==0?(he.length=oe,P=1,oe--):(he.length=oe+1,P=l(10,f-D),he[oe]=V>0?(ee/l(10,O-V)%l(10,V)|0)*P:0),W)for(;;)if(oe==0){(he[0]+=P)==u&&(he[0]=1,++I.e);break}else{if(he[oe]+=P,he[oe]!=u)break;he[oe--]=0,P=1}for(D=he.length;he[--D]===0;)he.pop();if(a&&(I.e>m||I.e<-m))throw Error(i+b(I));return I}function L(I,A){var M,D,V,P,O,j,W,ee,oe,he,Le=I.constructor,ae=Le.precision;if(!I.s||!A.s)return A.s?A.s=-A.s:A=new Le(I),a?E(A,ae):A;if(W=I.d,he=A.d,D=A.e,ee=I.e,W=W.slice(),O=ee-D,O){for(oe=O<0,oe?(M=W,O=-O,j=he.length):(M=he,D=ee,j=W.length),V=Math.max(Math.ceil(ae/f),j)+2,O>V&&(O=V,M.length=1),M.reverse(),V=O;V--;)M.push(0);M.reverse()}else{for(V=W.length,j=he.length,oe=V<j,oe&&(j=V),V=0;V<j;V++)if(W[V]!=he[V]){oe=W[V]<he[V];break}O=0}for(oe&&(M=W,W=he,he=M,A.s=-A.s),j=W.length,V=he.length-j;V>0;--V)W[j++]=0;for(V=he.length;V>O;){if(W[--V]<he[V]){for(P=V;P&&W[--P]===0;)W[P]=u-1;--W[P],W[V]+=u}W[V]-=he[V]}for(;W[--j]===0;)W.pop();for(;W[0]===0;W.shift())--D;return W[0]?(A.d=W,A.e=D,a?E(A,ae):A):new Le(0)}function T(I,A,M){var D,V=b(I),P=v(I.d),O=P.length;return A?(M&&(D=M-O)>0?P=P.charAt(0)+"."+P.slice(1)+k(D):O>1&&(P=P.charAt(0)+"."+P.slice(1)),P=P+(V<0?"e":"e+")+V):V<0?(P="0."+k(-V-1)+P,M&&(D=M-O)>0&&(P+=k(D))):V>=O?(P+=k(V+1-O),M&&(D=M-V-1)>0&&(P=P+"."+k(D))):((D=V+1)<O&&(P=P.slice(0,D)+"."+P.slice(D)),M&&(D=M-O)>0&&(V+1===O&&(P+="."),P+=k(D))),I.s<0?"-"+P:P}function q(I,A){if(I.length>A)return I.length=A,!0}function _(I){var A,M,D;function V(P){var O=this;if(!(O instanceof V))return new V(P);if(O.constructor=V,P instanceof V){O.s=P.s,O.e=P.e,O.d=(P=P.d)?P.slice():P;return}if(typeof P=="number"){if(P*0!==0)throw Error(o+P);if(P>0)O.s=1;else if(P<0)P=-P,O.s=-1;else{O.s=0,O.e=0,O.d=[0];return}if(P===~~P&&P<1e7){O.e=0,O.d=[P];return}return N(O,P.toString())}else if(typeof P!="string")throw Error(o+P);if(P.charCodeAt(0)===45?(P=P.slice(1),O.s=-1):O.s=1,c.test(P))N(O,P);else throw Error(o+P)}if(V.prototype=h,V.ROUND_UP=0,V.ROUND_DOWN=1,V.ROUND_CEIL=2,V.ROUND_FLOOR=3,V.ROUND_HALF_UP=4,V.ROUND_HALF_DOWN=5,V.ROUND_HALF_EVEN=6,V.ROUND_HALF_CEIL=7,V.ROUND_HALF_FLOOR=8,V.clone=_,V.config=V.set=B,I===void 0&&(I={}),I)for(D=["precision","rounding","toExpNeg","toExpPos","LN10"],A=0;A<D.length;)I.hasOwnProperty(M=D[A++])||(I[M]=this[M]);return V.config(I),V}function B(I){if(!I||typeof I!="object")throw Error(n+"Object expected");var A,M,D,V=["precision",1,t,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(A=0;A<V.length;A+=3)if((D=I[M=V[A]])!==void 0)if(s(D)===D&&D>=V[A+1]&&D<=V[A+2])this[M]=D;else throw Error(o+M+": "+D);if((D=I[M="LN10"])!==void 0)if(D==Math.LN10)this[M]=new this(D);else throw Error(o+M+": "+D);return this}r=_(r),r.default=r.Decimal=r,d=new r(1),typeof define=="function"&&define.amd?define(function(){return r}):typeof C2<"u"&&C2.exports?C2.exports=r:(e||(e=typeof self<"u"&&self&&self.self==self?self:Function("return this")()),e.Decimal=r)})(qK)});var RX=H((HSt,TX)=>{"use strict";function uOe(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}TX.exports=uOe});var YX=H((s2t,XX)=>{"use strict";var _Oe="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";XX.exports=_Oe});var eY=H((l2t,QX)=>{"use strict";var FOe=YX();function JX(){}function ZX(){}ZX.resetWarningCache=JX;QX.exports=function(){function e(a,n,o,i,s,l){if(l!==FOe){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol
9:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:ZX,resetWarningCache:JX};return r.PropTypes=r,r}});var rY=H((d2t,tY)=>{"use strict";tY.exports=eY()();var c2t,u2t});var GY=H((J2t,WY)=>{"use strict";var OMe=Kv(),DMe=rT(),MMe=Fi();function _Me(e,t){return e&&e.length?OMe(e,MMe(t,2),DMe):void 0}WY.exports=_Me});var KY=H((Z2t,$Y)=>{"use strict";var FMe=Kv(),jMe=Fi(),BMe=nT();function VMe(e,t){return e&&e.length?FMe(e,jMe(t,2),BMe):void 0}$Y.exports=VMe});var uJ=H((gCt,cJ)=>{"use strict";var o4e=H5(),i4e=o4e(Object.getPrototypeOf,Object);cJ.exports=i4e});var pJ=H((vCt,fJ)=>{"use strict";var s4e=ws(),l4e=uJ(),c4e=Ss(),u4e="[object Object]",d4e=Function.prototype,f4e=Object.prototype,dJ=d4e.toString,p4e=f4e.hasOwnProperty,m4e=dJ.call(Object);function h4e(e){if(!c4e(e)||s4e(e)!=u4e)return!1;var t=l4e(e);if(t===null)return!0;var r=p4e.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&dJ.call(r)==m4e}fJ.exports=h4e});var hJ=H((yCt,mJ)=>{"use strict";var g4e=ws(),v4e=Ss(),y4e="[object Boolean]";function b4e(e){return e===!0||e===!1||v4e(e)&&g4e(e)==y4e}mJ.exports=b4e});var MJ=H((GCt,DJ)=>{"use strict";var J4e=Math.ceil,Z4e=Math.max;function Q4e(e,t,r,a){for(var n=-1,o=Z4e(J4e((t-e)/(r||1)),0),i=Array(o);o--;)i[a?o:++n]=e,e+=r;return i}DJ.exports=Q4e});var JT=H(($Ct,FJ)=>{"use strict";var e_e=hL(),_J=1/0,t_e=17976931348623157e292;function r_e(e){if(!e)return e===0?e:0;if(e=e_e(e),e===_J||e===-_J){var t=e<0?-1:1;return t*t_e}return e===e?e:0}FJ.exports=r_e});var BJ=H((KCt,jJ)=>{"use strict";var a_e=MJ(),n_e=Sv(),ZT=JT();function o_e(e){return function(t,r,a){return a&&typeof a!="number"&&n_e(t,r,a)&&(r=a=void 0),t=ZT(t),r===void 0?(r=t,t=0):r=ZT(r),a=a===void 0?t<r?1:-1:ZT(a),a_e(t,r,a,e)}}jJ.exports=o_e});var QT=H((XCt,VJ)=>{"use strict";var i_e=BJ(),s_e=i_e();VJ.exports=s_e});var ZJ=H((ikt,JJ)=>{"use strict";var b_e=TS();function x_e(e,t){var r;return b_e(e,function(a,n,o){return r=t(a,n,o),!r}),!!r}JJ.exports=x_e});var eZ=H((skt,QJ)=>{"use strict";var w_e=M5(),S_e=Fi(),C_e=ZJ(),k_e=bn(),N_e=Sv();function I_e(e,t,r){var a=k_e(e)?w_e:C_e;return r&&N_e(e,t,r)&&(t=void 0),a(e,S_e(t,3))}QJ.exports=I_e});var aZ=H((ckt,rZ)=>{"use strict";var tZ=lL();function P_e(e,t,r){t=="__proto__"&&tZ?tZ(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}rZ.exports=P_e});var oZ=H((ukt,nZ)=>{"use strict";var E_e=aZ(),A_e=oL(),L_e=Fi();function T_e(e,t){var r={};return t=L_e(t,3),A_e(e,function(a,n,o){E_e(r,n,t(a,n,o))}),r}nZ.exports=T_e});var sZ=H((dkt,iZ)=>{"use strict";function R_e(e,t){for(var r=-1,a=e==null?0:e.length;++r<a;)if(!t(e[r],r,e))return!1;return!0}iZ.exports=R_e});var cZ=H((fkt,lZ)=>{"use strict";var O_e=TS();function D_e(e,t){var r=!0;return O_e(e,function(a,n,o){return r=!!t(a,n,o),r}),r}lZ.exports=D_e});var aR=H((pkt,uZ)=>{"use strict";var M_e=sZ(),__e=cZ(),F_e=Fi(),j_e=bn(),B_e=Sv();function V_e(e,t,r){var a=j_e(e)?M_e:__e;return r&&B_e(e,t,r)&&(t=void 0),a(e,F_e(t,3))}uZ.exports=V_e});var LZ=H((_kt,AZ)=>{"use strict";var l3e=Fi(),c3e=Qp(),u3e=wv();function d3e(e){return function(t,r,a){var n=Object(t);if(!c3e(t)){var o=l3e(r,3);t=u3e(t),r=function(s){return o(n[s],s,n)}}var i=e(t,r,a);return i>-1?n[o?t[i]:i]:void 0}}AZ.exports=d3e});var RZ=H((Fkt,TZ)=>{"use strict";var f3e=JT();function p3e(e){var t=f3e(e),r=t%1;return t===t?r?t-r:t:0}TZ.exports=p3e});var DZ=H((jkt,OZ)=>{"use strict";var m3e=eL(),h3e=Fi(),g3e=RZ(),v3e=Math.max;function y3e(e,t,r){var a=e==null?0:e.length;if(!a)return-1;var n=r==null?0:g3e(r);return n<0&&(n=v3e(a+n,0)),m3e(e,h3e(t,3),n)}OZ.exports=y3e});var _Z=H((Bkt,MZ)=>{"use strict";var b3e=LZ(),x3e=DZ(),w3e=b3e(x3e);MZ.exports=w3e});var eee=H((jIt,RR)=>{"use strict";var yje=Object.prototype.hasOwnProperty,Nn="~";function Hy(){}Object.create&&(Hy.prototype=Object.create(null),new Hy().__proto__||(Nn=!1));function bje(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function QQ(e,t,r,a,n){if(typeof r!="function")throw new TypeError("The listener must be a function");var o=new bje(r,a||e,n),i=Nn?Nn+t:t;return e._events[i]?e._events[i].fn?e._events[i]=[e._events[i],o]:e._events[i].push(o):(e._events[i]=o,e._eventsCount++),e}function IC(e,t){--e._eventsCount===0?e._events=new Hy:delete e._events[t]}function rn(){this._events=new Hy,this._eventsCount=0}rn.prototype.eventNames=function(){var t=[],r,a;
9if(this._eventsCount===0)return t;for(a in r=this._events)yje.call(r,a)&&t.push(Nn?a.slice(1):a);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(r)):t};rn.prototype.listeners=function(t){var r=Nn?Nn+t:t,a=this._events[r];if(!a)return[];if(a.fn)return[a.fn];for(var n=0,o=a.length,i=new Array(o);n<o;n++)i[n]=a[n].fn;return i};rn.prototype.listenerCount=function(t){var r=Nn?Nn+t:t,a=this._events[r];return a?a.fn?1:a.length:0};rn.prototype.emit=function(t,r,a,n,o,i){var s=Nn?Nn+t:t;if(!this._events[s])return!1;var l=this._events[s],c=arguments.length,d,u;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),c){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,r),!0;case 3:return l.fn.call(l.context,r,a),!0;case 4:return l.fn.call(l.context,r,a,n),!0;case 5:return l.fn.call(l.context,r,a,n,o),!0;case 6:return l.fn.call(l.context,r,a,n,o,i),!0}for(u=1,d=new Array(c-1);u<c;u++)d[u-1]=arguments[u];l.fn.apply(l.context,d)}else{var f=l.length,p;for(u=0;u<f;u++)switch(l[u].once&&this.removeListener(t,l[u].fn,void 0,!0),c){case 1:l[u].fn.call(l[u].context);break;case 2:l[u].fn.call(l[u].context,r);break;case 3:l[u].fn.call(l[u].context,r,a);break;case 4:l[u].fn.call(l[u].context,r,a,n);break;default:if(!d)for(p=1,d=new Array(c-1);p<c;p++)d[p-1]=arguments[p];l[u].fn.apply(l[u].context,d)}}return!0};rn.prototype.on=function(t,r,a){return QQ(this,t,r,a,!1)};rn.prototype.once=function(t,r,a){return QQ(this,t,r,a,!0)};rn.prototype.removeListener=function(t,r,a,n){var o=Nn?Nn+t:t;if(!this._events[o])return this;if(!r)return IC(this,o),this;var i=this._events[o];if(i.fn)i.fn===r&&(!n||i.once)&&(!a||i.context===a)&&IC(this,o);else{for(var s=0,l=[],c=i.length;s<c;s++)(i[s].fn!==r||n&&!i[s].once||a&&i[s].context!==a)&&l.push(i[s]);l.length?this._events[o]=l.length===1?l[0]:l:IC(this,o)}return this};rn.prototype.removeAllListeners=function(t){var r;return t?(r=Nn?Nn+t:t,this._events[r]&&IC(this,r)):(this._events=new Hy,this._eventsCount=0),this};rn.prototype.off=rn.prototype.removeListener;rn.prototype.addListener=rn.prototype.on;rn.prefixed=Nn;rn.EventEmitter=rn;typeof RR<"u"&&(RR.exports=rn)});var cae=R(Q()),uae=R(x_());var fr=R(Q()),Eie=R(hu());var je=R(Q());function mg(){return mg=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},mg.apply(this,arguments)}var ki;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(ki||(ki={}));var w_="popstate";function N_(e){e===void 0&&(e={});function t(a,n){let{pathname:o,search:i,hash:s}=a.location;return PI("",{pathname:o,search:i,hash:s},n.state&&n.state.usr||null,n.state&&n.state.key||"default")}function r(a,n){return typeof n=="string"?n:gu(n)}return Uoe(t,r,null,e)}function Cr(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function I_(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Voe(){return Math.random().toString(36).substr(2,8)}function S_(e,t){return{usr:e.state,key:e.key,idx:t}}function PI(e,t,r,a){return r===void 0&&(r=null),mg({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ks(t):t,{state:r,key:t&&t.key||a||Voe()})}function gu(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 Ks(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 Uoe(e,t,r,a){a===void 0&&(a={});let{window:n=document.defaultView,v5Compat:o=!1}=a,i=n.history,s=ki.Pop,l=null,c=d();c==null&&(c=0,i.replaceState(mg({},i.state,{idx:c}),""));function d(){return(i.state||{idx:null}).idx}function u(){s=ki.Pop;let g=d(),y=g==null?null:g-c;c=g,l&&l({action:s,location:h.location,delta:y})}function f(g,y){s=ki.Push;let v=PI(h.location,g,y);r&&r(v,g),c=d()+1;let x=S_(v,c),S=h.createHref(v);try{i.pushState(x,"",S)}catch(b){if(b instanceof DOMException&&b.name==="DataCloneError")throw b;n.location.assign(S)}o&&l&&l({action:s,location:h.location,delta:1})}function p(g,y){s=ki.Replace;let v=PI(h.location,g,y);r&&r(v,g),c=d();let x=S_(v,c),S=h.createHref(v);i.replaceState(x,"",S),o&&l&&l({action:s,location:h.location,delta:0})}function m(g){let y=n.location.origin!=="null"?n.location.origin:n.location.href,v=typeof g=="string"?g:gu(g);return v=v.replace(/ $/,"%20"),Cr(y,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,y)}let h={get action(){return s},get location(){return e(n,i)},listen(g){if(l)throw new Error("A history only accepts one active listener");return n.addEventListener(w_,u),l=g,()=>{n.removeEventListener(w_,u),l=null}},createHref(g){return t(n,g)},createURL:m,encodeLocation(g){let y=m(g);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:f,replace:p,go(g){return i.go(g)}};return h}var C_;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(C_||(C_={}));function Tx(e,t,r){return r===void 0&&(r="/"),qoe(e,t,r,!1)}function qoe(e,t,r,a){let n=typeof t=="string"?Ks(t):t,o=hg(n.pathname||"/",r);if(o==null)return null;let i=P_(e);zoe(i);let s=null;for(let l=0;s==null&&l<i.length;++l){let c=A_(o);s=Zoe(i[l],c,a)}return s}function P_(e,t,r,a){t===void 0&&(t=[]),r===void 0&&(r=[]),a===void 0&&(a="");let n=(o,i,s)=>{let l={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};l.relativePath.startsWith("/")&&(Cr(l.relativePath.startsWith(a),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+a+'" is not val
9id. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(a.length));let c=ts([a,l.relativePath]),d=r.concat(l);o.children&&o.children.length>0&&(Cr(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),P_(o.children,t,d,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:Yoe(c,o.index),routesMeta:d})};return e.forEach((o,i)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))n(o,i);else for(let l of E_(o.path))n(o,i,l)}),t}function E_(e){let t=e.split("/");if(t.length===0)return[];let[r,...a]=t,n=r.endsWith("?"),o=r.replace(/\?$/,"");if(a.length===0)return n?[o,""]:[o];let i=E_(a.join("/")),s=[];return s.push(...i.map(l=>l===""?o:[o,l].join("/"))),n&&s.push(...i),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function zoe(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Joe(t.routesMeta.map(a=>a.childrenIndex),r.routesMeta.map(a=>a.childrenIndex)))}var Hoe=/^:[\w-]+$/,Woe=3,Goe=2,$oe=1,Koe=10,Xoe=-2,k_=e=>e==="*";function Yoe(e,t){let r=e.split("/"),a=r.length;return r.some(k_)&&(a+=Xoe),t&&(a+=Goe),r.filter(n=>!k_(n)).reduce((n,o)=>n+(Hoe.test(o)?Woe:o===""?$oe:Koe),a)}function Joe(e,t){return e.length===t.length&&e.slice(0,-1).every((a,n)=>a===t[n])?e[e.length-1]-t[t.length-1]:0}function Zoe(e,t,r){r===void 0&&(r=!1);let{routesMeta:a}=e,n={},o="/",i=[];for(let s=0;s<a.length;++s){let l=a[s],c=s===a.length-1,d=o==="/"?t:t.slice(o.length)||"/",u=Cf({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},d),f=l.route;if(!u&&c&&r&&!a[a.length-1].route.index&&(u=Cf({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!u)return null;
vendor: 4,684 bytes, line 9
9Object.assign(n,u.params),i.push({params:n,pathname:ts([o,u.pathname]),pathnameBase:rie(ts([o,u.pathnameBase])),route:f}),u.pathnameBase!=="/"&&(o=ts([o,u.pathnameBase]))}return i}function Cf(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,a]=Qoe(e.path,e.caseSensitive,e.end),n=t.match(r);if(!n)return null;let o=n[0],i=o.replace(/(.)\/+$/,"$1"),s=n.slice(1);return{params:a.reduce((c,d,u)=>{let{paramName:f,isOptional:p}=d;if(f==="*"){let h=s[u]||"";i=o.slice(0,o.length-h.length).replace(/(.)\/+$/,"$1")}let m=s[u];return p&&!m?c[f]=void 0:c[f]=(m||"").replace(/%2F/g,"/"),c},{}),pathname:o,pathnameBase:i,pattern:e}}function Qoe(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),I_(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=[],n="^"+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:"*"}),n+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?n+="\\/*$":e!==""&&e!=="/"&&(n+="(?:(?=\\/|$))"),[new RegExp(n,t?void 0:"i"),a]}function A_(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return I_(!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 hg(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 EI(e,t){t===void 0&&(t="/");let{pathname:r,search:a="",hash:n=""}=typeof e=="string"?Ks(e):e;return{pathname:r?r.startsWith("/")?r:eie(r,t):t,search:aie(a),hash:nie(n)}}function eie(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(n=>{n===".."?r.length>1&&r.pop():n!=="."&&r.push(n)}),r.length>1?r.join("/"):"/"}function II(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 tie(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Rx(e,t){let r=tie(e);return t?r.map((a,n)=>n===r.length-1?a.pathname:a.pathnameBase):r.map(a=>a.pathnameBase)}function Ox(e,t,r,a){a===void 0&&(a=!1);let n;typeof e=="string"?n=Ks(e):(n=mg({},e),Cr(!n.pathname||!n.pathname.includes("?"),II("?","pathname","search",n)),Cr(!n.pathname||!n.pathname.includes("#"),II("#","pathname","hash",n)),Cr(!n.search||!n.search.includes("#"),II("#","search","hash",n)));let o=e===""||n.pathname==="",i=o?"/":n.pathname,s;if(i==null)s=r;else{let u=t.length-1;if(!a&&i.startsWith("..")){let f=i.split("/");for(;f[0]==="..";)f.shift(),u-=1;n.pathname=f.join("/")}s=u>=0?t[u]:"/"}let l=EI(n,s),c=i&&i!=="/"&&i.endsWith("/"),d=(o||i===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(c||d)&&(l.pathname+="/"),l}var ts=e=>e.join("/").replace(/\/\/+/g,"/"),rie=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),aie=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,nie=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Dx(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var L_=["post","put","patch","delete"],gVe=new Set(L_),oie=["get",...L_],vVe=new Set(oie);function gg(){return gg=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},gg.apply(this,arguments)}var yg=je.createContext(null),LI=je.createContext(null);var rs=je.createContext(null),bg=je.createContext(null),as=je.createContext({outlet:null,matches:[],isDataRoute:!1}),O_=je.createContext(null);function TI(e,t){let{relative:r}=t===void 0?{}:t;vu()||Cr(!1);let{basename:a,navigator:n}=je.useContext(rs),{hash:o,pathname:i,search:s}=_x(e,{relative:r}),l=i;return a!=="/"&&(l=i==="/"?a:ts([a,i])),n.createHref({pathname:l,search:s,hash:o})}function vu(){return je.useContext(bg)!=null}function Xs(){return vu()||Cr(!1),je.useContext(bg).location}function D_(e){je.useContext(rs).static||je.useLayoutEffect(e)}function Nf(){let{isDataRoute:e}=je.useContext(as);return e?wie():pie()}function pie(){vu()||Cr(!1);
9let e=je.useContext(yg),{basename:t,future:r,navigator:a}=je.useContext(rs),{matches:n}=je.useContext(as),{pathname:o}=Xs(),i=JSON.stringify(Rx(n,r.v7_relativeSplatPath)),s=je.useRef(!1);return D_(()=>{s.current=!0}),je.useCallback(function(c,d){if(d===void 0&&(d={}),!s.current)return;if(typeof c=="number"){a.go(c);return}let u=Ox(c,JSON.parse(i),o,d.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:ts([t,u.pathname])),(d.replace?a.replace:a.push)(u,d.state,d)},[t,a,i,o,e])}function _x(e,t){let{relative:r}=t===void 0?{}:t,{future:a}=je.useContext(rs),{matches:n}=je.useContext(as),{pathname:o}=Xs(),i=JSON.stringify(Rx(n,a.v7_relativeSplatPath));return je.useMemo(()=>Ox(e,JSON.parse(i),o,r==="path"),[e,i,o,r])}function M_(e,t){return __(e,t)}function __(e,t,r,a){vu()||Cr(!1);let{navigator:n}=je.useContext(rs),{matches:o}=je.useContext(as),i=o[o.length-1],s=i?i.params:{},l=i?i.pathname:"/",c=i?i.pathnameBase:"/",d=i&&i.route,u=Xs(),f;if(t){var p;let v=typeof t=="string"?Ks(t):t;c==="/"||(p=v.pathname)!=null&&p.startsWith(c)||Cr(!1),f=v}else f=u;let m=f.pathname||"/",h=m;if(c!=="/"){let v=c.replace(/^\//,"").split("/");h="/"+m.replace(/^\//,"").split("/").slice(v.length).join("/")}let g=Tx(e,{pathname:h}),y=vie(g&&g.map(v=>Object.assign({},v,{params:Object.assign({},s,v.params),pathname:ts([c,n.encodeLocation?n.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?c:ts([c,n.encodeLocation?n.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),o,r,a);return t&&y?je.createElement(bg.Provider,{value:{location:gg({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:ki.Pop}},y):y}function mie(){let e=B_(),t=Dx(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)",n={padding:"0.5rem",backgroundColor:a},o={padding:"2px 4px",backgroundColor:a};return je.createElement(je.Fragment,null,je.createElement("h2",null,"Unexpected Application Error!"),je.createElement("h3",{style:{fontStyle:"italic"}},t),r?je.createElement("pre",{style:n},r):null,null)}var hie=je.createElement(mie,null),AI=class extends je.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?je.createElement(as.Provider,{value:this.props.routeContext},je.createElement(O_.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function gie(e){let{routeContext:t,match:r,children:a}=e,n=je.useContext(yg);return n&&n.static&&n.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=r.route.id),je.createElement(as.Provider,{value:t},a)}function vie(e,t,r,a){var n;if(t===void 0&&(t=[]),r===void 0&&(r=null),a===void 0&&(a=null),e==null){var o;if(!r)return null;if(r.errors)e=r.matches;else if((o=a)!=null&&o.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,s=(n=r)==null?void 0:n.errors;if(s!=null){let d=i.findIndex(u=>u.route.id&&s?.[u.route.id]!==void 0);d>=0||Cr(!1),i=i.slice(0,Math.min(i.length,d+1))}let l=!1,c=-1;if(r&&a&&a.v7_partialHydration)for(let d=0;d<i.length;d++){let u=i[d];if((u.route.HydrateFallback||u.route.hydrateFallbackElement)&&(c=d),u.route.id){let{loaderData:f,errors:p}=r,m=u.route.loader&&f[u.route.id]===void 0&&(!p||p[u.route.id]===void 0);if(u.route.lazy||m){l=!0,c>=0?i=i.slice(0,c+1):i=[i[0]];break}}}return i.reduceRight((d,u,f)=>{let p,m=!1,h=null,g=null;r&&(p=s&&u.route.id?s[u.route.id]:void 0,h=u.route.errorElement||hie,l&&(c<0&&f===0?(Sie("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),m=!0,g=null):c===f&&(m=!0,g=u.route.hydrateFallbackElement||null)));let y=t.concat(i.slice(0,f+1)),v=()=>{let x;return p?x=h:m?x=g:u.route.Component?x=je.createElement(u.route.Component,null):u.route.element?x=u.route.element:x=d,je.createElement(gie,{match:u,routeContext:{outlet:d,matches:y,isDataRoute:r!=null},children:x})};return r&&(u.route.ErrorBoundary||u.route.errorElement||f===0)?je.createElement(AI,{location:r.location,revalidation:r.revalidation,component:h,error:p,children:v(),routeC
9ontext:{outlet:null,matches:y,isDataRoute:!0}}):v()},null)}var F_=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(F_||{}),Mx=(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})(Mx||{});function yie(e){let t=je.useContext(yg);return t||Cr(!1),t}function bie(e){let t=je.useContext(LI);return t||Cr(!1),t}function xie(e){let t=je.useContext(as);return t||Cr(!1),t}function j_(e){let t=xie(e),r=t.matches[t.matches.length-1];return r.route.id||Cr(!1),r.route.id}function B_(){var e;let t=je.useContext(O_),r=bie(Mx.UseRouteError),a=j_(Mx.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[a]}function wie(){let{router:e}=yie(F_.UseNavigateStable),t=j_(Mx.UseNavigateStable),r=je.useRef(!1);return D_(()=>{r.current=!0}),je.useCallback(function(n,o){o===void 0&&(o={}),r.current&&(typeof n=="number"?e.navigate(n):e.navigate(n,gg({fromRouteId:t},o)))},[e,t])}var T_={};function Sie(e,t,r){!t&&!T_[e]&&(T_[e]=!0)}var kf=(e,t,r)=>(""+t+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+r+"."),void 0);function V_(e,t){e?.v7_startTransition===void 0&&kf("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)&&kf("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&&kf("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),t.v7_normalizeFormMethod===void 0&&kf("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&&kf("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),t.v7_skipActionErrorRevalidation===void 0&&kf("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}var Cie="startTransition",kVe=je[Cie];function RI(e){let{to:t,replace:r,state:a,relative:n}=e;vu()||Cr(!1);let{future:o,static:i}=je.useContext(rs),{matches:s}=je.useContext(as),{pathname:l}=Xs(),c=Nf(),d=Ox(t,Rx(s,o.v7_relativeSplatPath),l,n==="path"),u=JSON.stringify(d);return je.useEffect(()=>c(JSON.parse(u),{replace:r,state:a,relative:n}),[c,u,n,r,a]),null}function $t(e){Cr(!1)}function OI(e){let{basename:t="/",children:r=null,location:a,navigationType:n=ki.Pop,navigator:o,static:i=!1,future:s}=e;vu()&&Cr(!1);let l=t.replace(/^\/*/,"/"),c=je.useMemo(()=>({basename:l,navigator:o,static:i,future:gg({v7_relativeSplatPath:!1},s)}),[l,s,o,i]);typeof a=="string"&&(a=Ks(a));let{pathname:d="/",search:u="",hash:f="",state:p=null,key:m="default"}=a,h=je.useMemo(()=>{let g=hg(d,l);return g==null?null:{location:{pathname:g,search:u,hash:f,state:p,key:m},navigationType:n}},[l,d,u,f,p,m,n]);return h==null?null:je.createElement(rs.Provider,{value:c},je.createElement(bg.Provider,{children:r,value:h}))}function DI(e){let{children:t,location:r}=e;return M_(vg(t),r)}var NVe=new Promise(()=>{});function vg(e,t){t===void 0&&(t=[]);let r=[];return je.Children.forEach(e,(a,n)=>{if(!je.isValidElement(a))return;let o=[...t,n];if(a.type===je.Fragment){r.push.apply(r,vg(a.props.children,o));return}a.type!==$t&&Cr(!1),!a.props.index||!a.props.children||Cr(!1);let i={id:a.props.id||o.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,
9shouldRevalidate:a.props.shouldRevalidate,handle:a.props.handle,lazy:a.props.lazy};a.props.children&&(i.children=vg(a.props.children,o)),r.push(i)}),r}function MI(){return MI=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},MI.apply(this,arguments)}function Aie(e,t){if(e==null)return{};var r={},a=Object.keys(e),n,o;for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}function Lie(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Tie(e,t){return e.button===0&&(!t||t==="_self")&&!Lie(e)}var Rie=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"];var Oie="6";try{window.__reactRouterVersion=Oie}catch{}var Die="startTransition",U_=fr[Die],Mie="flushSync",JVe=Eie[Mie],_ie="useId",ZVe=fr[_ie];function H_(e){let{basename:t,children:r,future:a,window:n}=e,o=fr.useRef();o.current==null&&(o.current=N_({window:n,v5Compat:!0}));let i=o.current,[s,l]=fr.useState({action:i.action,location:i.location}),{v7_startTransition:c}=a||{},d=fr.useCallback(u=>{c&&U_?U_(()=>l(u)):l(u)},[l,c]);return fr.useLayoutEffect(()=>i.listen(d),[i,d]),fr.useEffect(()=>V_(a),[a]),fr.createElement(OI,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:i,future:a})}var Fie=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",jie=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,rc=fr.forwardRef(function(t,r){let{onClick:a,relative:n,reloadDocument:o,replace:i,state:s,target:l,to:c,preventScrollReset:d,viewTransition:u}=t,f=Aie(t,Rie),{basename:p}=fr.useContext(rs),m,h=!1;if(typeof c=="string"&&jie.test(c)&&(m=c,Fie))try{let x=new URL(window.location.href),S=c.startsWith("//")?new URL(x.protocol+c):new URL(c),b=hg(S.pathname,p);S.origin===x.origin&&b!=null?c=b+S.search+S.hash:h=!0}catch{}let g=TI(c,{relative:n}),y=Bie(c,{replace:i,state:s,target:l,preventScrollReset:d,relative:n,viewTransition:u});function v(x){a&&a(x),x.defaultPrevented||y(x)}return fr.createElement("a",MI({},f,{href:m||g,onClick:h||o?a:v,ref:r,target:l}))});var q_;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(q_||(q_={}));var z_;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(z_||(z_={}));function Bie(e,t){let{target:r,replace:a,state:n,preventScrollReset:o,relative:i,viewTransition:s}=t===void 0?{}:t,l=Nf(),c=Xs(),d=_x(e,{relative:i});return fr.useCallback(u=>{if(Tie(u,r)){u.preventDefault();let f=a!==void 0?a:gu(c)===gu(d);l(e,{replace:f,state:n,preventScrollReset:o,relative:i,viewTransition:s})}},[c,l,d,a,n,r,e,o,i,s])}var Ft=R(Q(),1),Vie=(e,t,r,a,n,o,i,s)=>{let l=document.documentElement,c=["light","dark"];function d(p){(Array.isArray(e)?e:[e]).forEach(m=>{let h=m==="class",g=h&&o?n.map(y=>o[y]||y):n;h?(l.classList.remove(...g),l.classList.add(o&&o[p]?o[p]:p)):l.setAttribute(m,p)}),u(p)}function u(p){s&&c.includes(p)&&(l.style.colorScheme=p)}function f(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(a)d(a);else try{let p=localStorage.getItem(t)||r,m=i&&p==="system"?f():p;d(m)}catch{}},W_=["light","dark"],G_="(prefers-color-scheme: dark)",Uie=typeof window>"u",FI=Ft.createContext(void 0),qie={setTheme:e=>{},themes:[]},Fx=()=>{var e;return(e=Ft.useContext(FI))!=null?e:qie},$_=e=>Ft.useContext(FI)?Ft.createElement(Ft.Fragment,null,e.children):Ft.createElement(Hie,{...e}),zie=["light","dark"],Hie=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:r=!0,enableColorScheme:a=!0,storageKey:n="theme",themes:o=zie,defaultTheme:i=r?"system":"light",attribute:s="data-theme",value:l,children:c,nonce:d,scriptProps:u})=>{let[f,p]=Ft.useState(()=>Gie(n,i)),[m,h]=Ft.useState(()=>f==="system"?_I():f),g=l?Object.values(l):o,y=Ft.useCallback(b=>{let w=b;if(!w)return;b==="system"&&r&&(w=_I());let k=l?l[w]:w,C=t?$ie(d):null,N=document.documentElement,E=L=>{L==="class"?(N.classList.remove(...g),k&&N.classList.add(k)):L.startsWith("data-")&&(k?N.setAttribute(L,k):N.removeAttribute(L))};
9if(Array.isArray(s)?s.forEach(E):E(s),a){let L=W_.includes(i)?i:null,T=W_.includes(w)?w:L;N.style.colorScheme=T}C?.()},[d]),v=Ft.useCallback(b=>{let w=typeof b=="function"?b(f):b;p(w);try{localStorage.setItem(n,w)}catch{}},[f]),x=Ft.useCallback(b=>{let w=_I(b);h(w),f==="system"&&r&&!e&&y("system")},[f,e]);Ft.useEffect(()=>{let b=window.matchMedia(G_);return b.addListener(x),x(b),()=>b.removeListener(x)},[x]),Ft.useEffect(()=>{let b=w=>{w.key===n&&(w.newValue?p(w.newValue):v(i))};return window.addEventListener("storage",b),()=>window.removeEventListener("storage",b)},[v]),Ft.useEffect(()=>{y(e??f)},[e,f]);let S=Ft.useMemo(()=>({theme:f,setTheme:v,forcedTheme:e,resolvedTheme:f==="system"?m:f,themes:r?[...o,"system"]:o,systemTheme:r?m:void 0}),[f,v,e,m,r,o]);return Ft.createElement(FI.Provider,{value:S},Ft.createElement(Wie,{forcedTheme:e,storageKey:n,attribute:s,enableSystem:r,enableColorScheme:a,defaultTheme:i,value:l,themes:o,nonce:d,scriptProps:u}),c)},Wie=Ft.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:a,enableColorScheme:n,defaultTheme:o,value:i,themes:s,nonce:l,scriptProps:c})=>{let d=JSON.stringify([r,t,o,e,s,i,a,n]).slice(1,-1);return Ft.createElement("script",{...c,suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(${Vie.toString()})(${d})`}})}),Gie=(e,t)=>{if(Uie)return;let r;try{r=localStorage.getItem(e)||void 0}catch{}return r||t},$ie=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},_I=e=>(e||(e=window.matchMedia(G_)),e.matches?"dark":"light");var Pe=R(Q(),1),Y_=R(hu(),1);function Kie(e){if(!e||typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}var Xie=e=>{switch(e){case"success":return Zie;case"info":return ese;case"warning":return Qie;case"error":return tse;default:return null}},Yie=Array(12).fill(0),Jie=({visible:e,className:t})=>Pe.default.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},Pe.default.createElement("div",{className:"sonner-spinner"},Yie.map((r,a)=>Pe.default.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${a}`})))),Zie=Pe.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Pe.default.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),Qie=Pe.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},Pe.default.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),ese=Pe.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Pe.default.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),tse=Pe.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Pe.default.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),rse=Pe.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},Pe.default.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),Pe.default.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),ase=()=>{let[e,t]=Pe.default.useState(document.hidden);return Pe.default.useEffect(()=>{let r=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),e},jI=1,BI=class{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{let r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>
9{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;let{message:a,...n}=t,o=typeof t?.id=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:jI++,i=this.toasts.find(l=>l.id===o),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),i?this.toasts=this.toasts.map(l=>l.id===o?(this.publish({...l,...t,id:o,title:a}),{...l,...t,id:o,dismissible:s,title:a}):l):this.addToast({title:a,...n,dismissible:s,id:o}),o},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(a=>a({id:r.id,dismiss:!0}))}),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let a;r.loading!==void 0&&(a=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));let n=Promise.resolve(t instanceof Function?t():t),o=a!==void 0,i,s=n.then(async c=>{if(i=["resolve",c],Pe.default.isValidElement(c))o=!1,this.create({id:a,type:"default",message:c});else if(ose(c)&&!c.ok){o=!1;let u=typeof r.error=="function"?await r.error(`HTTP error! status: ${c.status}`):r.error,f=typeof r.description=="function"?await r.description(`HTTP error! status: ${c.status}`):r.description,m=typeof u=="object"&&!Pe.default.isValidElement(u)?u:{message:u};this.create({id:a,type:"error",description:f,...m})}else if(c instanceof Error){o=!1;let u=typeof r.error=="function"?await r.error(c):r.error,f=typeof r.description=="function"?await r.description(c):r.description,m=typeof u=="object"&&!Pe.default.isValidElement(u)?u:{message:u};this.create({id:a,type:"error",description:f,...m})}else if(r.success!==void 0){o=!1;let u=typeof r.success=="function"?await r.success(c):r.success,f=typeof r.description=="function"?await r.description(c):r.description,m=typeof u=="object"&&!Pe.default.isValidElement(u)?u:{message:u};this.create({id:a,type:"success",description:f,...m})}}).catch(async c=>{if(i=["reject",c],r.error!==void 0){o=!1;let d=typeof r.error=="function"?await r.error(c):r.error,u=typeof r.description=="function"?await r.description(c):r.description,p=typeof d=="object"&&!Pe.default.isValidElement(d)?d:{message:d};this.create({id:a,type:"error",description:u,...p})}}).finally(()=>{o&&(this.dismiss(a),a=void 0),r.finally==null||r.finally.call(r)}),l=()=>new Promise((c,d)=>s.then(()=>i[0]==="reject"?d(i[1]):c(i[1])).catch(d));return typeof a!="string"&&typeof a!="number"?{unwrap:l}:Object.assign(a,{unwrap:l})},this.custom=(t,r)=>{let a=r?.id||jI++;return this.create({jsx:t(a),id:a,...r}),a},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},On=new BI,nse=(e,t)=>{let r=t?.id||jI++;return On.addToast({title:e,...t,id:r}),r},ose=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",ise=nse,sse=()=>On.toasts,lse=()=>On.getActiveToasts(),$=Object.assign(ise,{success:On.success,info:On.info,warning:On.warning,error:On.error,custom:On.custom,message:On.message,promise:On.promise,dismiss:On.dismiss,loading:On.loading},{getHistory:sse,getToasts:lse});Ki
vendor: 4,788 bytes, line 9
9e("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;
vendor: 10,086 bytes, line 9
9left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function
9jx(e){return e.label!==void 0}var cse=3,use="24px",dse="16px",K_=4e3,fse=356,pse=14,mse=45,hse=200;function ns(...e){return e.filter(Boolean).join(" ")}function gse(e){let[t,r]=e.split("-"),a=[];return t&&a.push(t),r&&a.push(r),a}var vse=e=>{var t,r,a,n,o,i,s,l,c;let{invert:d,toast:u,unstyled:f,interacting:p,setHeights:m,visibleToasts:h,heights:g,index:y,toasts:v,expanded:x,removeToast:S,defaultRichColors:b,closeButton:w,style:k,cancelButtonStyle:C,actionButtonStyle:N,className:E="",descriptionClassName:L="",duration:T,position:q,gap:_,expandByDefault:B,classNames:I,icons:A,closeButtonAriaLabel:M="Close toast"}=e,[D,V]=Pe.default.useState(null),[P,O]=Pe.default.useState(null),[j,W]=Pe.default.useState(!1),[ee,oe]=Pe.default.useState(!1),[he,Le]=Pe.default.useState(!1),[ae,Oe]=Pe.default.useState(!1),[ue,Y]=Pe.default.useState(!1),[st,Ge]=Pe.default.useState(0),[Rt,Et]=Pe.default.useState(0),Qt=Pe.default.useRef(u.duration||T||K_),ln=Pe.default.useRef(null),_t=Pe.default.useRef(null),pi=y===0,Pn=y+1<=h,yr=u.type,pa=u.dismissible!==!1,br=u.className||"",wh=u.descriptionClassName||"",Zc=Pe.default.useMemo(()=>g.findIndex(lt=>lt.toastId===u.id)||0,[g,u.id]),ib=Pe.default.useMemo(()=>{var lt;return(lt=u.closeButton)!=null?lt:w},[u.closeButton,w]),DO=Pe.default.useMemo(()=>u.duration||T||K_,[u.duration,T]),nk=Pe.default.useRef(0),Hd=Pe.default.useRef(0),MO=Pe.default.useRef(0),Wd=Pe.default.useRef(null),[dae,fae]=q.split("-"),_O=Pe.default.useMemo(()=>g.reduce((lt,ma,Ba)=>Ba>=Zc?lt:lt+ma.height,0),[g,Zc]),FO=ase(),pae=u.invert||d,ok=yr==="loading";Hd.current=Pe.default.useMemo(()=>Zc*_+_O,[Zc,_O]),Pe.default.useEffect(()=>{Qt.current=DO},[DO]),Pe.default.useEffect(()=>{W(!0)},[]),Pe.default.useEffect(()=>{let lt=_t.current;if(lt){let ma=lt.getBoundingClientRect().height;return Et(ma),m(Ba=>[{toastId:u.id,height:ma,position:u.position},...Ba]),()=>m(Ba=>Ba.filter(Zn=>Zn.toastId!==u.id))}},[m,u.id]),Pe.default.useLayoutEffect(()=>{if(!j)return;let lt=_t.current,ma=lt.style.height;lt.style.height="auto";let Ba=lt.getBoundingClientRect().height;lt.style.height=ma,Et(Ba),m(Zn=>Zn.find(Ea=>Ea.toastId===u.id)?Zn.map(Ea=>Ea.toastId===u.id?{...Ea,height:Ba}:Ea):[{toastId:u.id,height:Ba,position:u.position},...Zn])},[j,u.title,u.description,m,u.id,u.jsx,u.action,u.cancel]);let Dl=Pe.default.useCallback(()=>{oe(!0),Ge(Hd.current),m(lt=>lt.filter(ma=>ma.toastId!==u.id)),setTimeout(()=>{S(u)},hse)},[u,S,m,Hd]);Pe.default.useEffect(()=>{if(u.promise&&yr==="loading"||u.duration===1/0||u.type==="loading")return;let lt;return x||p||FO?(()=>{if(MO.current<nk.current){let Zn=new Date().getTime()-nk.current;Qt.current=Qt.current-Zn}
9MO.current=new Date().getTime()})():Qt.current!==1/0&&(nk.current=new Date().getTime(),lt=setTimeout(()=>{u.onAutoClose==null||u.onAutoClose.call(u,u),Dl()},Qt.current)),()=>clearTimeout(lt)},[x,p,u,yr,FO,Dl]),Pe.default.useEffect(()=>{u.delete&&(Dl(),u.onDismiss==null||u.onDismiss.call(u,u))},[Dl,u.delete]);function mae(){var lt;if(A?.loading){var ma;return Pe.default.createElement("div",{className:ns(I?.loader,u==null||(ma=u.classNames)==null?void 0:ma.loader,"sonner-loader"),"data-visible":yr==="loading"},A.loading)}return Pe.default.createElement(Jie,{className:ns(I?.loader,u==null||(lt=u.classNames)==null?void 0:lt.loader),visible:yr==="loading"})}let hae=u.icon||A?.[yr]||Xie(yr);var jO,BO;return Pe.default.createElement("li",{tabIndex:0,ref:_t,className:ns(E,br,I?.toast,u==null||(t=u.classNames)==null?void 0:t.toast,I?.default,I?.[yr],u==null||(r=u.classNames)==null?void 0:r[yr]),"data-sonner-toast":"","data-rich-colors":(jO=u.richColors)!=null?jO:b,"data-styled":!(u.jsx||u.unstyled||f),"data-mounted":j,"data-promise":!!u.promise,"data-swiped":ue,"data-removed":ee,"data-visible":Pn,"data-y-position":dae,"data-x-position":fae,"data-index":y,"data-front":pi,"data-swiping":he,"data-dismissible":pa,"data-type":yr,"data-invert":pae,"data-swipe-out":ae,"data-swipe-direction":P,"data-expanded":!!(x||B&&j),"data-testid":u.testId,style:{"--index":y,"--toasts-before":y,"--z-index":v.length-y,"--offset":`${ee?st:Hd.current}px`,"--initial-height":B?"auto":`${Rt}px`,...k,...u.style},onDragEnd:()=>{Le(!1),V(null),Wd.current=null},onPointerDown:lt=>{lt.button!==2&&(ok||!pa||(ln.current=new Date,Ge(Hd.current),lt.target.setPointerCapture(lt.pointerId),lt.target.tagName!=="BUTTON"&&(Le(!0),Wd.current={x:lt.clientX,y:lt.clientY})))},onPointerUp:()=>{var lt,ma,Ba;if(ae||!pa)return;Wd.current=null;let Zn=Number(((lt=_t.current)==null?void 0:lt.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),sb=Number(((ma=_t.current)==null?void 0:ma.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Ea=new Date().getTime()-((Ba=ln.current)==null?void 0:Ba.getTime()),Lo=D==="x"?Zn:sb,lb=Math.abs(Lo)/Ea;if(Math.abs(Lo)>=mse||lb>.11){Ge(Hd.current),u.onDismiss==null||u.onDismiss.call(u,u),O(D==="x"?Zn>0?"right":"left":sb>0?"down":"up"),Dl(),Oe(!0);return}else{var mi,hi;(mi=_t.current)==null||mi.style.setProperty("--swipe-amount-x","0px"),(hi=_t.current)==null||hi.style.setProperty("--swipe-amount-y","0px")}Y(!1),Le(!1),V(null)},onPointerMove:lt=>{var ma,Ba,Zn;if(!Wd.current||!pa||((ma=window.getSelection())==null?void 0:ma.toString().length)>0)return;let Ea=lt.clientY-Wd.current.y,Lo=lt.clientX-Wd.current.x;var lb;let mi=(lb=e.swipeDirections)!=null?lb:gse(q);!D&&(Math.abs(Lo)>1||Math.abs(Ea)>1)&&V(Math.abs(Lo)>Math.abs(Ea)?"x":"y");let hi={x:0,y:0},VO=Qc=>1/(1.5+Math.abs(Qc)/20);if(D==="y"){if(mi.includes("top")||mi.includes("bottom"))if(mi.includes("top")&&Ea<0||mi.includes("bottom")&&Ea>0)hi.y=Ea;else{let Qc=Ea*VO(Ea);hi.y=Math.abs(Qc)<Math.abs(Ea)?Qc:Ea}}else if(D==="x"&&(mi.includes("left")||mi.includes("right")))if(mi.includes("left")&&Lo<0||mi.includes("right")&&Lo>0)hi.x=Lo;else{let Qc=Lo*VO(Lo);hi.x=Math.abs(Qc)<Math.abs(Lo)?Qc:Lo}(Math.abs(hi.x)>0||Math.abs(hi.y)>0)&&Y(!0),(Ba=_t.current)==null||Ba.style.setProperty("--swipe-amount-x",`${hi.x}px`),(Zn=_t.current)==null||Zn.style.setProperty("--swipe-amount-y",`${hi.y}px`)}},ib&&!u.jsx&&yr!=="loading"?Pe.default.createElement("button",{"aria-label":M,"data-disabled":ok,"data-close-button":!0,onClick:ok||!pa?()=>{}:()=>{Dl(),u.onDismiss==null||u.onDismiss.call(u,u)},className:ns(I?.closeButton,u==null||(a=u.classNames)==null?void 0:a.closeButton)},(BO=A?.close)!=null?BO:rse):null,(yr||u.icon||u.promise)&&u.icon!==null&&(A?.[yr]!==null||u.icon)?Pe.default.createElement("div",{"data-icon":"",className:ns(I?.icon,u==null||(n=u.classNames)==null?void 0:n.icon)},u.promise||u.type==="loading"&&!u.icon?u.icon||mae():null,u.type!=="loading"?hae:null):null,Pe.default.createElement("div",{"data-content":"",className:ns(I?.content,u==null||(o=u.classNames)==null?void 0:o.content)},Pe.default.createElement("div",{"data-title":"",className:ns(I?.title,u==null||(i=u.classNames)==null?void 0:i.title)},u.jsx?u.jsx:typeof u.title=="function"?u.title():u.title),u.description?Pe.default.createElement("div",{"data-description":"",className:ns(L,wh,I?.description,u==null||(s=u.classNames)==null?void 0:s.description)},typeof u.description=="function"?u.description():u.description):null),Pe.default.isValidElement(u.cancel)?u.cancel:u.cancel&&jx(u.cancel)?Pe.default.createElement("button",{"data-button":!0,"data-cancel":!0,style:u.cancelButtonStyle||C,onClick:lt=>{jx(u.cancel)&&pa&&(u.cancel.onClick==null||u.cancel.onClick.call(u.cancel,lt),Dl())},className:ns(I?.cancelButton,u==null||(l=u.classNames)==null?void 0:l.cancelButton)},u.cancel.label):null,Pe.default.isValidElement(u.action)?u.action:u.action&&jx(u.action)?Pe.default.createElement("button",{"data-button":!0,"data-action":!0,style:u.actionButtonStyle||N,onClick:lt=>{jx(u.action)&&(u.action.onClick==null||u.action.onClick.call(u.action,lt),!lt.defaultPrevented&&Dl())},className:ns(I?.actionButton,u==null||(c=u.classNames)==null?void 0:c.actionButton)},u.action.label):null)};
9function X_(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function yse(e,t){let r={};return[e,t].forEach((a,n)=>{let o=n===1,i=o?"--mobile-offset":"--offset",s=o?dse:use;function l(c){["top","right","bottom","left"].forEach(d=>{r[`${i}-${d}`]=typeof c=="number"?`${c}px`:c})}typeof a=="number"||typeof a=="string"?l(a):typeof a=="object"?["top","right","bottom","left"].forEach(c=>{a[c]===void 0?r[`${i}-${c}`]=s:r[`${i}-${c}`]=typeof a[c]=="number"?`${a[c]}px`:a[c]}):l(s)}),r}var J_=Pe.default.forwardRef(function(t,r){let{id:a,invert:n,position:o="bottom-right",hotkey:i=["altKey","KeyT"],expand:s,closeButton:l,className:c,offset:d,mobileOffset:u,theme:f="light",richColors:p,duration:m,style:h,visibleToasts:g=cse,toastOptions:y,dir:v=X_(),gap:x=pse,icons:S,containerAriaLabel:b="Notifications"}=t,[w,k]=Pe.default.useState([]),C=Pe.default.useMemo(()=>a?w.filter(j=>j.toasterId===a):w.filter(j=>!j.toasterId),[w,a]),N=Pe.default.useMemo(()=>Array.from(new Set([o].concat(C.filter(j=>j.position).map(j=>j.position)))),[C,o]),[E,L]=Pe.default.useState([]),[T,q]=Pe.default.useState(!1),[_,B]=Pe.default.useState(!1),[I,A]=Pe.default.useState(f!=="system"?f:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),M=Pe.default.useRef(null),D=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),V=Pe.default.useRef(null),P=Pe.default.useRef(!1),O=Pe.default.useCallback(j=>{k(W=>{var ee;return(ee=W.find(oe=>oe.id===j.id))!=null&&ee.delete||On.dismiss(j.id),W.filter(({id:oe})=>oe!==j.id)})},[]);return Pe.default.useEffect(()=>On.subscribe(j=>{if(j.dismiss){requestAnimationFrame(()=>{k(W=>W.map(ee=>ee.id===j.id?{...ee,delete:!0}:ee))});return}setTimeout(()=>{Y_.default.flushSync(()=>{k(W=>{let ee=W.findIndex(oe=>oe.id===j.id);return ee!==-1?[...W.slice(0,ee),{...W[ee],...j},...W.slice(ee+1)]:[j,...W]})})})}),[w]),Pe.default.useEffect(()=>{if(f!=="system"){A(f);return}if(f==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?A("dark"):A("light")),typeof window>"u")return;let j=window.matchMedia("(prefers-color-scheme: dark)");try{j.addEventListener("change",({matches:W})=>{A(W?"dark":"light")})}catch{j.addListener(({matches:ee})=>{try{A(ee?"dark":"light")}catch(oe){console.error(oe)}})}},[f]),Pe.default.useEffect(()=>{w.length<=1&&q(!1)},[w]),Pe.default.useEffect(()=>{let j=W=>{var ee;if(i.every(Le=>W[Le]||W.code===Le)){var he;q(!0),(he=M.current)==null||he.focus()}W.code==="Escape"&&(document.activeElement===M.current||(ee=M.current)!=null&&ee.contains(document.activeElement))&&q(!1)};return document.addEventListener("keydown",j),()=>document.removeEventListener("keydown",j)},[i]),Pe.default.useEffect(()=>{if(M.current)return()=>{V.current&&(V.current.focus({preventScroll:!0}),V.current=null,P.current=!1)}},[M.current]),Pe.default.createElement("section",{ref:r,"aria-label":`${b} ${D}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},N.map((j,W)=>{var ee;let[oe,he]=j.split("-");return C.length?Pe.default.createElement("ol",{key:j,dir:v==="auto"?X_():v,tabIndex:-1,ref:M,className:c,"data-sonner-toaster":!0,"data-sonner-theme":I,"data-y-position":oe,"data-x-position":he,style:{"--front-toast-height":`${((ee=E[0])==null?void 0:ee.height)||0}px`,"--width":`${fse}px`,"--gap":`${x}px`,...h,...yse(d,u)},onBlur:Le=>{P.current&&!Le.currentTarget.contains(Le.relatedTarget)&&(P.current=!1,V.current&&(V.current.focus({preventScroll:!0}),V.current=null))},onFocus:Le=>{Le.target instanceof HTMLElement&&Le.target.dataset.dismissible==="false"||P.current||(P.current=!0,V.current=Le.relatedTarget)},onMouseEnter:()=>q(!0),onMouseMove:()=>q(!0),onMouseLeave:()=>{_||q(!1)},onDragEnd:()=>q(!1),onPointerDown:Le=>{Le.target instanceof HTMLElement&&Le.target.dataset.dismissible==="false"||B(!0)},onPointerUp:()=>B(!1)},C.filter(Le=>!Le.position&&W===0||Le.position===j).map((Le,ae)=>
9{var Oe,ue;return Pe.default.createElement(vse,{key:Le.id,icons:S,index:ae,toast:Le,defaultRichColors:p,duration:(Oe=y?.duration)!=null?Oe:m,className:y?.className,descriptionClassName:y?.descriptionClassName,invert:n,visibleToasts:g,closeButton:(ue=y?.closeButton)!=null?ue:l,interacting:_,position:j,style:y?.style,unstyled:y?.unstyled,classNames:y?.classNames,cancelButtonStyle:y?.cancelButtonStyle,actionButtonStyle:y?.actionButtonStyle,closeButtonAriaLabel:y?.closeButtonAriaLabel,removeToast:O,toasts:C.filter(Y=>Y.position==Le.position),heights:E.filter(Y=>Y.position==Le.position),setHeights:L,expandByDefault:s,gap:x,expanded:T,swipeDirections:t.swipeDirections})})):null}))});var Ap=R(Q());var Yg=R(ke(),1),ls=R(Q(),1);var t3=R(Q(),1),If=(0,t3.createContext)({});var r3=R(Q(),1);function Pf(e){let t=(0,r3.useRef)(null);return t.current===null&&(t.current=e()),t.current}var Vx=R(Q(),1);var Ef=typeof window<"u";var Ux=Ef?Vx.useLayoutEffect:Vx.useEffect;var wP=R(ke(),1),dF=R(Q(),1),Kg=R(Q(),1);var a3=R(Q(),1),ac=(0,a3.createContext)(null);var cF=R(ke(),1);function yu(e,t){e.indexOf(t)===-1&&e.push(t)}function bu(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}var va=(e,t,r)=>r>t?t:r<e?e:r;var Ys=()=>{},jo=()=>{};var Wa={};var xg=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function wg(e){return typeof e=="object"&&e!==null}var Sg=e=>/^0[^.\s]+$/u.test(e);function xu(e){let t;return()=>(t===void 0&&(t=e()),t)}var kr=e=>e;var Nse=(e,t)=>r=>t(e(r)),Ni=(...e)=>e.reduce(Nse);var os=(e,t,r)=>{let a=t-e;return a===0?1:(r-e)/a};var Js=class{constructor(){this.subscriptions=[]}add(t){return yu(this.subscriptions,t),()=>bu(this.subscriptions,t)}notify(t,r,a){let n=this.subscriptions.length;if(n)if(n===1)this.subscriptions[0](t,r,a);else for(let o=0;o<n;o++){let i=this.subscriptions[o];i&&i(t,r,a)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};var aa=e=>e*1e3,na=e=>e/1e3;function Cg(e,t){return t?e*(1e3/t):0}var n3=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,Ise=1e-7,Pse=12;function Ese(e,t,r,a,n){let o,i,s=0;do i=t+(r-t)/2,o=n3(i,a,n)-e,o>0?r=i:t=i;while(Math.abs(o)>Ise&&++s<Pse);return i}function nc(e,t,r,a){if(e===t&&r===a)return kr;let n=o=>Ese(o,0,1,e,r);return o=>o===0||o===1?o:n3(n(o),t,a)}var qx=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;var zx=e=>t=>1-e(1-t);var Hx=nc(.33,1.53,.69,.99),Af=zx(Hx),kg=qx(Af);var Ng=e=>(e*=2)<1?.5*Af(e):.5*(2-Math.pow(2,-10*(e-1)));var Ig=e=>1-Math.sin(Math.acos(e)),Pg=zx(Ig),Eg=qx(Ig);var VI=nc(.42,0,1,1),UI=nc(0,0,.58,1),Ag=nc(.42,0,.58,1);var qI=e=>Array.isArray(e)&&typeof e[0]!="number";var Lg=e=>Array.isArray(e)&&typeof e[0]=="number";var o3={linear:kr,easeIn:VI,easeInOut:Ag,easeOut:UI,circIn:Ig,circInOut:Eg,circOut:Pg,backIn:Af,backInOut:kg,backOut:Hx,anticipate:Ng},Ase=e=>typeof e=="string",Wx=e=>{if(Lg(e)){jo(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,r,a,n]=e;return nc(t,r,a,n)}else if(Ase(e))return jo(o3[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),o3[e];return e};var Tg=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];var Dn={value:null,addProjectionMetrics:null};function i3(e,t){let r=new Set,a=new Set,n=!1,o=!1,i=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},l=0;function c(u){i.has(u)&&(d.schedule(u),e()),l++,u(s)}let d={schedule:(u,f=!1,p=!1)=>{let h=p&&n?r:a;return f&&i.add(u),h.has(u)||h.add(u),u},cancel:u=>{a.delete(u),i.delete(u)},process:u=>{if(s=u,n){o=!0;return}n=!0,[r,a]=[a,r],r.forEach(c),t&&Dn.value&&Dn.value.frameloop[t].push(l),l=0,r.clear(),n=!1,o&&(o=!1,d.process(u))}};return d}var Lse=40;function Gx(e,t){let r=!1,a=!0,n={delta:0,timestamp:0,isProcessing:!1},o=()=>r=!0,i=Tg.reduce((x,S)=>(x[S]=i3(o,t?S:void 0),x),{}),{setup:s,read:l,resolveKeyframes:c,preUpdate:d,update:u,preRender:f,render:p,postRender:m}=i,h=()=>{let x=Wa.useManualTiming?n.timestamp:performance.now();r=!1,Wa.useManualTiming||(n.delta=a?1e3/60:Math.max(Math.min(x-n.timestamp,Lse),1)),n.timestamp=x,n.isProcessing=!0,s.process(n),l.process(n),c.process(n),d.process(n),u.process(n),f.process(n),p.process(n),m.process(n),n.isProcessing=!1,r&&t&&(a=!1,e(h))},g=()=>{r=!0,a=!0,n.isProcessing||e(h)};return{schedule:Tg.reduce((x,S)=>{let b=i[S];return x[S]=(w,k=!1,C=!1)=>(r||g(),b.schedule(w,k,C)),x},{}),cancel:x=>{for(let S=0;S<Tg.length;S++)i[Tg[S]].cancel(x)},state:n,steps:i}}var{schedule:dt,cancel:Mn,state:Rr,steps:Rg}=Gx(typeof requestAnimationFrame<"u"?requestAnimationFrame:kr,!0);var $x;function Tse(){$x=void 0}var Or={now:()=>($x===void 0&&Or.set(Rr.isProcessing||Wa.useManualTiming?Rr.timestamp:performance.now()),$x),set:e=>{$x=e,queueMicrotask(Tse)}};var Ii={layout:0,mainThread:0,waapi:0};var s3=e=>t=>typeof t=="string"&&t.startsWith(e),wu=s3("--"),Rse=s3("var(--"),Su=e=>Rse(e)?Ose.test(e.split("/*")[0].trim()):!1,Ose=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;var is={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Zs={...is,transform:e=>va(0,1,e)},Og={...is,default:1};var oc=e=>Math.round(e*1e5)/1e5;var Lf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function l3(e){return e==null}var c3=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var Tf=(e,t)=>r=>!!(typeof r=="string"&&c3.test(r)&&r.startsWith(e)||t&&!l3(r)&&Object.prototype.hasOwnProperty.call(r,t)),Kx=(e,t,r)=>a=>{if(typeof a!="string")return a;let[n,o,i,s]=a.match(Lf);return{[e]:parseFloat(n),[t]:parseFloat(o),[r]:parseFloat(i),alpha:s!==void 0?parseFloat(s):1}};var Dse=e=>va(0,255,e),zI={...is,transform:e=>Math.round(Dse(e))},ss={test:Tf("rgb","red"),parse:Kx("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:a=1})=>"rgba("+zI.transform(e)+", "+zI.transform(t)+", "+zI.transform(r)+", "+oc(Zs.transform(a))+")"};function Mse(e){let t="",r="",a="",n="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),a=e.substring(5,7),n=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),a=e.substring(3,4),n=e.substring(4,5),t+=t,r+=r,a+=a,n+=n),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(a,16),alph
9a:n?parseInt(n,16)/255:1}}var Dg={test:Tf("#"),parse:Mse,transform:ss.transform};var Mg=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Pi=Mg("deg"),Ga=Mg("%"),He=Mg("px"),HI=Mg("vh"),WI=Mg("vw"),Xx={...Ga,parse:e=>Ga.parse(e)/100,transform:e=>Ga.transform(e*100)};var ic={test:Tf("hsl","hue"),parse:Kx("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:a=1})=>"hsla("+Math.round(e)+", "+Ga.transform(oc(t))+", "+Ga.transform(oc(r))+", "+oc(Zs.transform(a))+")"};var pr={test:e=>ss.test(e)||Dg.test(e)||ic.test(e),parse:e=>ss.test(e)?ss.parse(e):ic.test(e)?ic.parse(e):Dg.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ss.transform(e):ic.transform(e),getAnimatableNone:e=>{let t=pr.parse(e);return t.alpha=0,pr.transform(t)}};var u3=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function _se(e){return isNaN(e)&&typeof e=="string"&&(e.match(Lf)?.length||0)+(e.match(u3)?.length||0)>0}var f3="number",p3="color",Fse="var",jse="var(",d3="${}",Bse=/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 sc(e){let t=e.toString(),r=[],a={color:[],number:[],var:[]},n=[],o=0,s=t.replace(Bse,l=>(pr.test(l)?(a.color.push(o),n.push(p3),r.push(pr.parse(l))):l.startsWith(jse)?(a.var.push(o),n.push(Fse),r.push(l)):(a.number.push(o),n.push(f3),r.push(parseFloat(l))),++o,d3)).split(d3);return{values:r,split:s,indexes:a,types:n}}function m3(e){return sc(e).values}function h3(e){let{split:t,types:r}=sc(e),a=t.length;return n=>{let o="";for(let i=0;i<a;i++)if(o+=t[i],n[i]!==void 0){let s=r[i];s===f3?o+=oc(n[i]):s===p3?o+=pr.transform(n[i]):o+=n[i]}return o}}var Vse=e=>typeof e=="number"?0:pr.test(e)?pr.getAnimatableNone(e):e;function Use(e){let t=m3(e);return h3(e)(t.map(Vse))}var $a={test:_se,parse:m3,createTransformer:h3,getAnimatableNone:Use};function GI(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 g3({hue:e,saturation:t,lightness:r,alpha:a}){e/=360,t/=100,r/=100;let n=0,o=0,i=0;if(!t)n=o=i=r;else{let s=r<.5?r*(1+t):r+t-r*t,l=2*r-s;n=GI(l,s,e+1/3),o=GI(l,s,e),i=GI(l,s,e-1/3)}return{red:Math.round(n*255),green:Math.round(o*255),blue:Math.round(i*255),alpha:a}}function Rf(e,t){return r=>r>0?t:e}var ht=(e,t,r)=>e+(t-e)*r;var $I=(e,t,r)=>{let a=e*e,n=r*(t*t-a)+a;return n<0?0:Math.sqrt(n)},qse=[Dg,ss,ic],zse=e=>qse.find(t=>t.test(e));function v3(e){let t=zse(e);if(Ys(!!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===ic&&(r=g3(r)),r}var KI=(e,t)=>{let r=v3(e),a=v3(t);if(!r||!a)return Rf(e,t);let n={...r};return o=>(n.red=$I(r.red,a.red,o),n.green=$I(r.green,a.green,o),n.blue=$I(r.blue,a.blue,o),n.alpha=ht(r.alpha,a.alpha,o),ss.transform(n))};var Yx=new Set(["none","hidden"]);function y3(e,t){return Yx.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function Hse(e,t){return r=>ht(e,t,r)}function Jx(e){return typeof e=="number"?Hse:typeof e=="string"?Su(e)?Rf:pr.test(e)?KI:$se:Array.isArray(e)?b3:typeof e=="object"?pr.test(e)?KI:Wse:Rf}function b3(e,t){let r=[...e],a=r.length,n=e.map((o,i)=>Jx(o)(o,t[i]));return o=>{for(let i=0;i<a;i++)r[i]=n[i](o);return r}}function Wse(e,t){let r={...e,...t},a={};for(let n in r)e[n]!==void 0&&t[n]!==void 0&&(a[n]=Jx(e[n])(e[n],t[n]));return n=>{for(let o in a)r[o]=a[o](n);return r}}function Gse(e,t){let r=[],a={color:0,var:0,number:0};for(let n=0;n<t.values.length;n++){let o=t.types[n],i=e.indexes[o][a[o]],s=e.values[i]??0;r[n]=s,a[o]++}return r}var $se=(e,t)=>{let r=$a.createTransformer(t),a=sc(e),n=sc(t);return a.indexes.var.length===n.indexes.var.length&&a.indexes.color.length===n.indexes.color.length&&a.indexes.number.length>=n.indexes.number.length?Yx.has(e)&&!n.values.length||Yx.has(t)&&!a.values.length?y3(e,t):Ni(b3(Gse(a,n),n.values),r):(Ys(!0,`Complex values '${e}' and '${t}
9' 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"),Rf(e,t))};function Zx(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?ht(e,t,r):Jx(e)(e,t)}var x3=e=>{let t=({timestamp:r})=>e(r);return{start:(r=!0)=>dt.update(t,r),stop:()=>Mn(t),now:()=>Rr.isProcessing?Rr.timestamp:Or.now()}};var Qx=(e,t,r=10)=>{let a="",n=Math.max(Math.round(t/r),2);for(let o=0;o<n;o++)a+=Math.round(e(o/(n-1))*1e4)/1e4+", ";return`linear(${a.substring(0,a.length-2)})`};function Of(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 w3(e,t=100,r){let a=r({...e,keyframes:[0,t]}),n=Math.min(Of(a),2e4);return{type:"keyframes",ease:o=>a.next(n*o).value/t,duration:na(n)}}var Kse=5;function ew(e,t,r){let a=Math.max(t-Kse,0);return Cg(r-e(a),t-a)}var rr={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 YI=.001;function S3({duration:e=rr.duration,bounce:t=rr.bounce,velocity:r=rr.velocity,mass:a=rr.mass}){let n,o;Ys(e<=aa(rr.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let i=1-t;i=va(rr.minDamping,rr.maxDamping,i),e=va(rr.minDuration,rr.maxDuration,na(e)),i<1?(n=c=>{let d=c*i,u=d*e,f=d-r,p=tw(c,i),m=Math.exp(-u);return YI-f/p*m},o=c=>{let u=c*i*e,f=u*r+r,p=Math.pow(i,2)*Math.pow(c,2)*e,m=Math.exp(-u),h=tw(Math.pow(c,2),i);return(-n(c)+YI>0?-1:1)*((f-p)*m)/h}):(n=c=>{let d=Math.exp(-c*e),u=(c-r)*e+1;return-YI+d*u},o=c=>{let d=Math.exp(-c*e),u=(r-c)*(e*e);return d*u});let s=5/e,l=Yse(n,o,s);if(e=aa(e),isNaN(l))return{stiffness:rr.stiffness,damping:rr.damping,duration:e};
9{let c=Math.pow(l,2)*a;return{stiffness:c,damping:i*2*Math.sqrt(a*c),duration:e}}}var Xse=12;function Yse(e,t,r){let a=r;for(let n=1;n<Xse;n++)a=a-e(a)/t(a);return a}function tw(e,t){return e*Math.sqrt(1-t*t)}var Jse=["duration","bounce"],Zse=["stiffness","damping","mass"];function C3(e,t){return t.some(r=>e[r]!==void 0)}function Qse(e){let t={velocity:rr.velocity,stiffness:rr.stiffness,damping:rr.damping,mass:rr.mass,isResolvedFromDuration:!1,...e};if(!C3(e,Zse)&&C3(e,Jse))if(e.visualDuration){let r=e.visualDuration,a=2*Math.PI/(r*1.2),n=a*a,o=2*va(.05,1,1-(e.bounce||0))*Math.sqrt(n);t={...t,mass:rr.mass,stiffness:n,damping:o}}else{let r=S3(e);t={...t,...r,mass:rr.mass},t.isResolvedFromDuration=!0}return t}function Df(e=rr.visualDuration,t=rr.bounce){let r=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:a,restDelta:n}=r,o=r.keyframes[0],i=r.keyframes[r.keyframes.length-1],s={done:!1,value:o},{stiffness:l,damping:c,mass:d,duration:u,velocity:f,isResolvedFromDuration:p}=Qse({...r,velocity:-na(r.velocity||0)}),m=f||0,h=c/(2*Math.sqrt(l*d)),g=i-o,y=na(Math.sqrt(l/d)),v=Math.abs(g)<5;a||(a=v?rr.restSpeed.granular:rr.restSpeed.default),n||(n=v?rr.restDelta.granular:rr.restDelta.default);let x;if(h<1){let b=tw(y,h);x=w=>{let k=Math.exp(-h*y*w);return i-k*((m+h*y*g)/b*Math.sin(b*w)+g*Math.cos(b*w))}}else if(h===1)x=b=>i-Math.exp(-y*b)*(g+(m+y*g)*b);else{let b=y*Math.sqrt(h*h-1);x=w=>{let k=Math.exp(-h*y*w),C=Math.min(b*w,300);return i-k*((m+h*y*g)*Math.sinh(C)+b*g*Math.cosh(C))/b}}let S={calculatedDuration:p&&u||null,next:b=>{let w=x(b);if(p)s.done=b>=u;else{let k=b===0?m:0;h<1&&(k=b===0?aa(m):ew(x,b,w));let C=Math.abs(k)<=a,N=Math.abs(i-w)<=n;s.done=C&&N}return s.value=s.done?i:w,s},toString:()=>{let b=Math.min(Of(S),2e4),w=Qx(k=>S.next(b*k).value,b,30);return b+"ms "+w},toTransition:()=>{}};return S}Df.applyToOptions=e=>{let t=w3(e,100,Df);return e.ease=t.ease,e.duration=aa(t.duration),e.type="keyframes",e};function _g({keyframes:e,velocity:t=0,power:r=.8,timeConstant:a=325,bounceDamping:n=10,bounceStiffness:o=500,modifyTarget:i,min:s,max:l,restDelta:c=.5,restSpeed:d}){let u=e[0],f={done:!1,value:u},p=C=>s!==void 0&&C<s||l!==void 0&&C>l,m=C=>s===void 0?l:l===void 0||Math.abs(s-C)<Math.abs(l-C)?s:l,h=r*t,g=u+h,y=i===void 0?g:i(g);y!==g&&(h=y-u);let v=C=>-h*Math.exp(-C/a),x=C=>y+v(C),S=C=>{let N=v(C),E=x(C);f.done=Math.abs(N)<=c,f.value=f.done?y:E},b,w,k=C=>{p(f.value)&&(b=C,w=Df({keyframes:[f.value,m(f.value)],velocity:ew(x,C,f.value),damping:n,stiffness:o,restDelta:c,restSpeed:d}))};return k(0),{calculatedDuration:null,next:C=>{let N=!1;return!w&&b===void 0&&(N=!0,S(C),k(C)),b!==void 0&&C>=b?w.next(C-b):(!N&&S(C),f)}}}function ele(e,t,r){let a=[],n=r||Wa.mix||Zx,o=e.length-1;for(let i=0;i<o;i++){let s=n(e[i],e[i+1]);if(t){let l=Array.isArray(t)?t[i]||kr:t;s=Ni(l,s)}a.push(s)}return a}function k3(e,t,{clamp:r=!0,ease:a,mixer:n}={}){let o=e.length;if(jo(o===t.length,"Both input and output ranges must be the same length","range-length"),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];let i=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=ele(t,a,n),l=s.length,c=d=>{if(i&&d<e[0])return t[0];let u=0;if(l>1)for(;u<e.length-2&&!(d<e[u+1]);u++);let f=os(e[u],e[u+1],d);return s[u](f)};return r?d=>c(va(e[0],e[o-1],d)):c}function N3(e,t){let r=e[e.length-1];for(let a=1;a<=t;a++){let n=os(0,t,a);e.push(ht(r,1,n))}}function I3(e){let t=[0];return N3(t,e.length-1),t}function P3(e,t){return e.map(r=>r*t)}function tle(e,t){return e.map(()=>t||Ag).splice(0,e.length-1)}function Cu({duration:e=300,keyframes:t,times:r,ease:a="easeInOut"}){let n=qI(a)?a.map(Wx):Wx(a),o={done:!1,value:t[0]},i=P3(r&&r.length===t.length?r:I3(t),e),s=k3(i,t,{ease:Array.isArray(n)?n:tle(t,n)});return{calculatedDuration:e,next:l=>(o.value=s(l),o.done=l>=e,o)}}var rle=e=>e!==null;function Mf(e,{repeat:t,repeatType:r="loop"},a,n=1){let o=e.filter(rle),s=n<0||t&&r!=="loop"&&t%2===1?0:o.length-1;return!s||a===void 0?o[s]:a}var ale={decay:_g,inertia:_g,tween:Cu,keyframes:Cu,spring:Df};function rw(e){typeof e.type=="string"&&(e.type=ale[e.type])}var lc=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 nle=e=>e/100,Qs=class extends lc{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!==Or.now()&&this.tick(Or.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},Ii.mainThread++,this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){let{options:t}=this;rw(t);
9let{type:r=Cu,repeat:a=0,repeatDelay:n=0,repeatType:o,velocity:i=0}=t,{keyframes:s}=t,l=r||Cu;l!==Cu&&typeof s[0]!="number"&&(this.mixKeyframes=Ni(nle,Zx(s[0],s[1])),s=[0,100]);let c=l({...t,keyframes:s});o==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...s].reverse(),velocity:-i})),c.calculatedDuration===null&&(c.calculatedDuration=Of(c));let{calculatedDuration:d}=c;this.calculatedDuration=d,this.resolvedDuration=d+n,this.totalDuration=this.resolvedDuration*(a+1)-n,this.generator=c}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:n,mixKeyframes:o,mirroredGenerator:i,resolvedDuration:s,calculatedDuration:l}=this;if(this.startTime===null)return a.next(0);let{delay:c=0,keyframes:d,repeat:u,repeatType:f,repeatDelay:p,type:m,onUpdate:h,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-n/this.speed,this.startTime)),r?this.currentTime=t:this.updateTime(t);let y=this.currentTime-c*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?y<0:y>n;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=n);let x=this.currentTime,S=a;if(u){let C=Math.min(this.currentTime,n)/s,N=Math.floor(C),E=C%1;!E&&C>=1&&(E=1),E===1&&N--,N=Math.min(N,u+1),N%2&&(f==="reverse"?(E=1-E,p&&(E-=p/s)):f==="mirror"&&(S=i)),x=va(0,1,E)*s}let b=v?{done:!1,value:d[0]}:S.next(x);o&&(b.value=o(b.value));let{done:w}=b;!v&&l!==null&&(w=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&w);return k&&m!==_g&&(b.value=Mf(d,this.options,g,this.speed)),h&&h(b.value),k&&this.finish(),b}then(t,r){return this.finished.then(t,r)}get duration(){return na(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+na(t)}get time(){return na(this.currentTime)}set time(t){t=aa(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(Or.now());let r=this.playbackSpeed!==t;this.playbackSpeed=t,r&&(this.time=na(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=x3,startTime:r}=this.options;this.driver||(this.driver=t(n=>this.tick(n))),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(Or.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,Ii.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 E3(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var ku=e=>e*180/Math.PI,JI=e=>{let t=ku(Math.atan2(e[1],e[0]));return ZI(t)},ole={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:JI,rotateZ:JI,skewX:e=>ku(Math.atan(e[1])),skewY:e=>ku(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},ZI=e=>(e=e%360,e<0&&(e+=360),e),A3=JI,L3=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),T3=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),ile={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:L3,scaleY:T3,scale:e=>(L3(e)+T3(e))/2,rotateX:e=>ZI(ku(Math.atan2(e[6],e[5]))),rotateY:e=>ZI(ku(Math.atan2(-e[2],e[0]))),rotateZ:A3,rotate:A3,skewX:e=>ku(Math.atan(e[4])),skewY:e=>ku(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Fg(e){return e.includes("scale")?1:0}function jg(e,t){if(!e||e==="none")return Fg(t);let r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),a,n;if(r)a=ile,n=r;else{let s=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);a=ole,n=s}if(!n)return Fg(t);let o=a[t],i=n[1].split(",").map(sle);return typeof o=="function"?o(i):i[o]}var QI=(e,t)=>{let{transform:r="none"}=getComputedStyle(e);return jg(r,t)};function sle(e){return parseFloat(e.trim())}var Ei=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],oo=new Set(Ei);var eP=e=>e===is||e===He,lle=new Set(["x","y","z"]),cle=Ei.filter(e=>!lle.has(e));function R3(e){let t=[];return cle.forEach(r=>{let a=e.getValue(r);a!==void 0&&(t.push([r,a.get()]),a.set(r.startsWith("scale")?1:0))}),t}var cc={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})=>jg(t,"x"),y:(e,{transform:t})=>jg(t,"y")};cc.translateX=cc.x;cc.translateY=cc.y;var Nu=new Set,tP=!1,rP=!1,aP=!1;function O3(){if(rP){let e=Array.from(Nu).filter(a=>a.needsMeasurement),t=new Set(e.map(a=>a.element)),r=new Map;t.forEach(a=>{let n=R3(a);n.length&&(r.set(a,n),a.render())}),e.forEach(a=>a.measureInitialState()),t.forEach(a=>{a.render();let n=r.get(a);
9n&&n.forEach(([o,i])=>{a.getValue(o)?.set(i)})}),e.forEach(a=>a.measureEndState()),e.forEach(a=>{a.suspendedScrollY!==void 0&&window.scrollTo(0,a.suspendedScrollY)})}rP=!1,tP=!1,Nu.forEach(e=>e.complete(aP)),Nu.clear()}function D3(){Nu.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(rP=!0)})}function nP(){aP=!0,D3(),O3(),aP=!1}var el=class{constructor(t,r,a,n,o,i=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=a,this.motionValue=n,this.element=o,this.isAsync=i}scheduleResolve(){this.state="scheduled",this.isAsync?(Nu.add(this),tP||(tP=!0,dt.read(D3),dt.resolveKeyframes(O3))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:r,element:a,motionValue:n}=this;if(t[0]===null){let o=n?.get(),i=t[t.length-1];if(o!==void 0)t[0]=o;else if(a&&r){let s=a.readValue(r,i);s!=null&&(t[0]=s)}t[0]===void 0&&(t[0]=i),n&&o===void 0&&n.set(t[0])}E3(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Nu.delete(this)}cancel(){this.state==="scheduled"&&(Nu.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}};var M3=e=>e.startsWith("--");function _3(e,t,r){M3(t)?e.style.setProperty(t,r):e.style[t]=r}var F3=xu(()=>window.ScrollTimeline!==void 0);var j3={};function B3(e,t){let r=xu(e);return()=>j3[t]??r()}var aw=B3(()=>{try{document.createElement("div").animate({opacity:0}
9,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");var Iu=([e,t,r,a])=>`cubic-bezier(${e}, ${t}, ${r}, ${a})`;var oP={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Iu([0,.65,.55,1]),circOut:Iu([.55,0,1,.45]),backIn:Iu([.31,.01,.66,-.59]),backOut:Iu([.33,1.53,.69,.99])};function iP(e,t){if(e)return typeof e=="function"?aw()?Qx(e,t):"ease-out":Lg(e)?Iu(e):Array.isArray(e)?e.map(r=>iP(r,t)||oP.easeOut):oP[e]}function V3(e,t,r,{delay:a=0,duration:n=300,repeat:o=0,repeatType:i="loop",ease:s="easeOut",times:l}={},c=void 0){let d={[t]:r};l&&(d.offset=l);let u=iP(s,n);Array.isArray(u)&&(d.easing=u),Dn.value&&Ii.waapi++;let f={delay:a,duration:n,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:o+1,direction:i==="reverse"?"alternate":"normal"};c&&(f.pseudoElement=c);let p=e.animate(d,f);return Dn.value&&p.finished.finally(()=>{Ii.waapi--}),p}function nw(e){return typeof e=="function"&&"applyToOptions"in e}function U3({type:e,...t}){return nw(e)&&aw()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}var ow=class extends lc{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;let{element:r,name:a,keyframes:n,pseudoElement:o,allowFlatten:i=!1,finalKeyframe:s,onComplete:l}=t;this.isPseudoElement=!!o,this.allowFlatten=i,this.options=t,jo(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");let c=U3(t);this.animation=V3(r,a,n,c,o),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){let d=Mf(n,this.options,s,this.speed);this.updateMotionValue?this.updateMotionValue(d):_3(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 na(Number(t))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+na(t)}get time(){return na(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=aa(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&&F3()?(this.animation.timeline=t,kr):r(this)}};var q3={anticipate:Ng,backInOut:kg,circInOut:Eg};function ule(e){return e in q3}function z3(e){typeof e.ease=="string"&&ule(e.ease)&&(e.ease=q3[e.ease])}var H3=10,iw=class extends ow{constructor(t){z3(t),rw(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:r,onUpdate:a,onComplete:n,element:o,...i}=this.options;if(!r)return;if(t!==void 0){r.set(t);return}let s=new Qs({...i,autoplay:!1}),l=aa(this.finishedTime??this.time);r.setWithVelocity(s.sample(l-H3).value,s.sample(l).value,H3),s.stop()}};var sP=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&($a.test(e)||e==="0")&&!e.startsWith("url("));function dle(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 W3(e,t,r,a){let n=e[0];if(n===null)return!1;if(t==="display"||t==="visibility")return!0;let o=e[e.length-1],i=sP(n,t),s=sP(o,t);return Ys(i===s,`You are trying to animate ${t} from "${n}" to "${o}". "${i?o:n}" is not an animatable value.`,"value-not-animatable"),!i||!s?!1:dle(e)||(r==="spring"||nw(r))&&a}function _f(e){e.duration=0,e.type="keyframes"}var fle=new Set(["opacity","clipPath","filter","transform"]),ple=xu(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function G3(e){let{motionValue:t,name:r,repeatDelay:a,repeatType:n,damping:o,type:i}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;
9let{onUpdate:l,transformTemplate:c}=t.owner.getProps();return ple()&&r&&fle.has(r)&&(r!=="transform"||!c)&&!l&&!a&&n!=="mirror"&&o!==0&&i!=="inertia"}var mle=40,Bg=class extends lc{constructor({autoplay:t=!0,delay:r=0,type:a="keyframes",repeat:n=0,repeatDelay:o=0,repeatType:i="loop",keyframes:s,name:l,motionValue:c,element:d,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Or.now();let f={autoplay:t,delay:r,type:a,repeat:n,repeatDelay:o,repeatType:i,name:l,motionValue:c,element:d,...u},p=d?.KeyframeResolver||el;this.keyframeResolver=new p(s,(m,h,g)=>this.onKeyframesResolved(m,h,f,!g),l,c,d),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,r,a,n){this.keyframeResolver=void 0;let{name:o,type:i,velocity:s,delay:l,isHandoff:c,onUpdate:d}=a;this.resolvedAt=Or.now(),W3(t,o,i,s)||((Wa.instantAnimations||!l)&&d?.(Mf(t,a,r)),t[0]=t[t.length-1],_f(a),a.repeat=0);let f={startTime:n?this.resolvedAt?this.resolvedAt-this.createdAt>mle?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...a,keyframes:t},p=!c&&G3(f)?new iw({...f,element:f.motionValue.owner.current}):new Qs(f);p.finished.then(()=>this.notifyFinished()).catch(kr),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(t,r){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),nP()),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 hle=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function gle(e){let t=hle.exec(e);if(!t)return[,];let[,r,a,n]=t;return[`--${r??a}`,n]}var vle=4;function lP(e,t,r=1){jo(r<=vle,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[a,n]=gle(e);if(!a)return;let o=window.getComputedStyle(t).getPropertyValue(a);if(o){let i=o.trim();return xg(i)?parseFloat(i):i}return Su(n)?lP(n,t,r+1):n}function Pu(e,t){return e?.[t]??e?.default??e}var Vg=new Set(["width","height","top","left","right","bottom",...Ei]);var $3={test:e=>e==="auto",parse:e=>e};var sw=e=>t=>t.test(e);var cP=[is,He,Ga,Pi,WI,HI,$3],uP=e=>cP.find(sw(e));function K3(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Sg(e):!0}var yle=new Set(["brightness","contrast","saturate","opacity"]);function ble(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[a]=r.match(Lf)||[];if(!a)return e;let n=r.replace(a,""),o=yle.has(t)?1:0;return a!==r&&(o*=100),t+"("+o+n+")"}var xle=/\b([a-z-]*)\(.*?\)/gu,Ug={...$a,getAnimatableNone:e=>{let t=e.match(xle);return t?t.map(ble).join(" "):e}};var dP={...is,transform:Math.round};var X3={rotate:Pi,rotateX:Pi,rotateY:Pi,rotateZ:Pi,scale:Og,scaleX:Og,scaleY:Og,scaleZ:Og,skew:Pi,skewX:Pi,skewY:Pi,distance:He,translateX:He,translateY:He,translateZ:He,x:He,y:He,z:He,perspective:He,transformPerspective:He,opacity:Zs,originX:Xx,originY:Xx,originZ:He};var Eu={borderWidth:He,borderTopWidth:He,borderRightWidth:He,borderBottomWidth:He,borderLeftWidth:He,borderRadius:He,radius:He,borderTopLeftRadius:He,borderTopRightRadius:He,borderBottomRightRadius:He,borderBottomLeftRadius:He,width:He,maxWidth:He,height:He,maxHeight:He,top:He,right:He,bottom:He,left:He,padding:He,paddingTop:He,paddingRight:He,paddingBottom:He,paddingLeft:He,margin:He,marginTop:He,marginRight:He,marginBottom:He,marginLeft:He,backgroundPositionX:He,backgroundPositionY:He,...X3,zIndex:dP,fillOpacity:Zs,strokeOpacity:Zs,numOctaves:dP};var Y3={...Eu,color:pr,backgroundColor:pr,outlineColor:pr,fill:pr,stroke:pr,borderColor:pr,borderTopColor:pr,borderRightColor:pr,borderBottomColor:pr,borderLeftColor:pr,filter:Ug,WebkitFilter:Ug},qg=e=>Y3[e];function zg(e,t){let r=qg(e);return r!==Ug&&(r=$a),r.getAnimatableNone?r.getAnimatableNone(t):void 0}
9var wle=new Set(["auto","none","0"]);function J3(e,t,r){let a=0,n;for(;a<e.length&&!n;){let o=e[a];typeof o=="string"&&!wle.has(o)&&sc(o).values.length&&(n=e[a]),a++}if(n&&r)for(let o of t)e[o]=zg(r,n)}var Hg=class extends el{constructor(t,r,a,n,o){super(t,r,a,n,o,!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 c=t[l];if(typeof c=="string"&&(c=c.trim(),Su(c))){let d=lP(c,r.current);d!==void 0&&(t[l]=d),l===t.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!Vg.has(a)||t.length!==2)return;let[n,o]=t,i=uP(n),s=uP(o);if(i!==s)if(eP(i)&&eP(s))for(let l=0;l<t.length;l++){let c=t[l];typeof c=="string"&&(t[l]=parseFloat(c))}else cc[a]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:r}=this,a=[];for(let n=0;n<t.length;n++)(t[n]===null||K3(t[n]))&&a.push(n);a.length&&J3(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=cc[a](t.measureViewportBox(),window.getComputedStyle(t.current)),r[0]=this.measuredOrigin;let n=r[r.length-1];n!==void 0&&t.getValue(a,n).jump(n,!1)}measureEndState(){let{element:t,name:r,unresolvedKeyframes:a}=this;if(!t||!t.current)return;let n=t.getValue(r);n&&n.jump(this.measuredOrigin,!1);let o=a.length-1,i=a[o];a[o]=cc[r](t.measureViewportBox(),window.getComputedStyle(t.current)),i!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=i),this.removedTransforms?.length&&this.removedTransforms.forEac
9h(([s,l])=>{t.getValue(s).set(l)}),this.resolveNoneKeyframes()}};function Z3(e,t,r){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let a=document;t&&(a=t.current);let n=r?.[e]??a.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e)}var Wg=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Gg(e){return wg(e)&&"offsetHeight"in e}var Q3=30,Sle=e=>!isNaN(parseFloat(e)),fP={current:void 0},lw=class{constructor(t,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=a=>{let n=Or.now();if(this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(a),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=Or.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Sle(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 Js);let a=this.events[t].add(r);return t==="change"?()=>{a(),dt.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 fP.current&&fP.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=Or.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Q3)return 0;let r=Math.min(this.updatedAt-this.prevUpdatedAt,Q3);return Cg(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 Bo(e,t){return new lw(e,t)}var{schedule:Au,cancel:Cle}=Gx(queueMicrotask,!1);var Vo={x:!1,y:!1};function cw(){return Vo.x||Vo.y}function pP(e){return e==="x"||e==="y"?Vo[e]?null:(Vo[e]=!0,()=>{Vo[e]=!1}):Vo.x||Vo.y?null:(Vo.x=Vo.y=!0,()=>{Vo.x=Vo.y=!1})}function uw(e,t){let r=Z3(e),a=new AbortController,n={passive:!0,...t,signal:a.signal};return[r,n,()=>a.abort()]}function eF(e){return!(e.pointerType==="touch"||cw())}function mP(e,t,r={}){let[a,n,o]=uw(e,r),i=s=>{if(!eF(s))return;let{target:l}=s,c=t(l,s);if(typeof c!="function"||!l)return;let d=u=>{eF(u)&&(c(u),l.removeEventListener("pointerleave",d))};l.addEventListener("pointerleave",d,n)};return a.forEach(s=>{s.addEventListener("pointerenter",i,n)}),o}var hP=(e,t)=>t?e===t?!0:hP(e,t.parentElement):!1;var Lu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;var kle=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function tF(e){return kle.has(e.tagName)||e.tabIndex!==-1}var Ff=new WeakSet;function rF(e){return t=>{t.key==="Enter"&&e(t)}}function gP(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}var aF=(e,t)=>{let r=e.currentTarget;if(!r)return;let a=rF(()=>
9{if(Ff.has(r))return;gP(r,"down");let n=rF(()=>{gP(r,"up")}),o=()=>gP(r,"cancel");r.addEventListener("keyup",n,t),r.addEventListener("blur",o,t)});r.addEventListener("keydown",a,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",a),t)};function nF(e){return Lu(e)&&!cw()}function vP(e,t,r={}){let[a,n,o]=uw(e,r),i=s=>{let l=s.currentTarget;if(!nF(s))return;Ff.add(l);let c=t(l,s),d=(p,m)=>{window.removeEventListener("pointerup",u),window.removeEventListener("pointercancel",f),Ff.has(l)&&Ff.delete(l),nF(p)&&typeof c=="function"&&c(p,{success:m})},u=p=>{d(p,l===window||l===document||r.useGlobalTarget||hP(l,p.target))},f=p=>{d(p,!1)};window.addEventListener("pointerup",u,n),window.addEventListener("pointercancel",f,n)};return a.forEach(s=>{(r.useGlobalTarget?window:s).addEventListener("pointerdown",i,n),Gg(s)&&(s.addEventListener("focus",c=>aF(c,n)),!tF(s)&&!s.hasAttribute("tabindex")&&(s.tabIndex=0))}),o}function $g(e){return wg(e)&&"ownerSVGElement"in e}function yP(e){return $g(e)&&e.tagName==="svg"}var Ut=e=>!!(e&&e.getVelocity);var Nle=[...cP,pr,$a],bP=e=>Nle.find(sw(e));var dw=R(Q(),1),tl=R(Q(),1);var oF=R(Q(),1),jf=(0,oF.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});var sF=R(Q(),1);function iF(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ile(...e){return t=>{let r=!1,a=e.map(n=>{let o=iF(n,t);return!r&&typeof o=="function"&&(r=!0),o});if(r)return()=>{for(let n=0;n<a.length;n++){let o=a[n];typeof o=="function"?o():iF(e[n],null)}}}}function lF(...e){return sF.useCallback(Ile(...e),e)}var xP=class extends dw.Component{getSnapshotBeforeUpdate(t){let r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){let a=r.offsetParent,n=Gg(a)&&a.offsetWidth||0,o=this.props.sizeRef.current;o.height=r.offsetHeight||0,o.width=r.offsetWidth||0,o.top=r.offsetTop,o.left=r.offsetLeft,o.right=n-o.width-o.left}return null}componentDidUpdate(){}render(){return this.props.children}};function uF({children:e,isPresent:t,anchorX:r,root:a}){let n=(0,tl.useId)(),o=(0,tl.useRef)(null),i=(0,tl.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:s}=(0,tl.useContext)(jf),l=lF(o,e?.ref);return(0,tl.useInsertionEffect)(()=>{let{width:c,height:d,top:u,left:f,right:p}=i.current;if(t||!o.current||!c||!d)return;let m=r==="left"?`left: ${f}`:`right: ${p}`;o.current.dataset.motionPopId=n;let h=document.createElement("style");s&&(h.nonce=s);let g=a??document.head;return g.appendChild(h),h.sheet&&h.sheet.insertRule(` 10 [data-motion-pop-id="${n}"] { 11 position: absolute !important; 12 width: ${c}px !important; 13 height: ${d}px !important; 14 ${m}px !important; 15 top: ${u}px !important; 16 } 17 `),()=>{g.contains(h)&&g.removeChild(h)}},[t]),(0,cF.jsx)(xP,{isPresent:t,childRef:o,sizeRef:i,children:dw.cloneElement(e,{ref:l})})}var fF=({children:e,initial:t,isPresent:r,onExitComplete:a,custom:n,presenceAffectsLayout:o,mode:i,anchorX:s,root:l})=>{let c=Pf(Ple),d=(0,Kg.useId)(),u=!0,f=(0,Kg.useMemo)(()=>(u=!1,{id:d,initial:t,isPresent:r,custom:n,onExitComplete:p=>{c.set(p,!0);for(let m of c.values())if(!m)return;a&&a()},register:p=>(c.set(p,!1),()=>c.delete(p))}),[r,c,a]);return o&&u&&(f={...f}),(0,Kg.useMemo)(()=>{c.forEach((p,m)=>c.set(m,!1))},[r]),dF.useEffect(()=>{!r&&!c.size&&a&&a()},[r]),i==="popLayout"&&(e=(0,wP.jsx)(uF,{isPresent:r,anchorX:s,root:l,children:e})),(0,wP.jsx)(ac.Provider,{value:f,children:e})};function Ple(){return new Map}var uc=R(Q(),1);function fw(e=!0){let t=(0,uc.useContext)(ac);if(t===null)return[!0,null];let{isPresent:r,onExitComplete:a,register:n}=t,o=(0,uc.useId)();(0,uc.useEffect)(()=>{if(e)return n(o)},[e]);let i=(0,uc.useCallback)(()=>e&&a&&a(o),[o,a,e]);return!r&&a?[!1,i]:[!0]}var pw=R(Q(),1),Xg=e=>e.key||"";function SP(e){let t=[];return pw.Children.forEach(e,r=>{(0,pw.isValidElement)(r)&&t.push(r)}),t}var Ue=({children:e,custom:t,initial:r=!0,onExitComplete:a,presenceAffectsLayout:n=!0,mode:o="sync",propagate:i=!1,anchorX:s="left",root:l})=>{let[c,d]=fw(i),u=(0,ls.useMemo)(()=>SP(e),[e]),f=i&&!c?[]:u.map(Xg),p=(0,ls.useRef)(!0),m=(0,ls.useRef)(u),h=Pf(()=>new Map),[g,y]=(0,ls.useState)(u),[v,x]=(0,ls.useState)(u);Ux(()=>{p.current=!1,m.current=u;for(let w=0;w<v.length;w++){let k=Xg(v[w]);f.includes(k)?h.delete(k):h.get(k)!==!0&&h.set(k,!1)}},[v,f.length,f.join("-")]);let S=[];if(u!==g){let w=[...u];for(let k=0;k<v.length;k++){let C=v[k],N=Xg(C);f.includes(N)||(w.splice(k,0,C),S.push(C))}return o==="wait"&&S.length&&(w=S),x(SP(w)),y(u),null}let{forceRender:b}=(0,ls.useContext)(If);return(0,Yg.jsx)(Yg.Fragment,{children:v.map(w=>{let k=Xg(w),C=i&&!c?!1:u===v||f.includes(k),N=()=>
17{if(h.has(k))h.set(k,!0);else return;let E=!0;h.forEach(L=>{L||(E=!1)}),E&&(b?.(),x(m.current),i&&d?.(),a&&a())};return(0,Yg.jsx)(fF,{isPresent:C,initial:!p.current||r?void 0:!1,custom:t,presenceAffectsLayout:n,mode:o,root:l,onExitComplete:C?void 0:N,anchorX:s,children:w},k)})})};var pF=R(Q(),1),mw=(0,pF.createContext)({strict:!1});var mF={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"]},rl={};for(let e in mF)rl[e]={isEnabled:t=>mF[e].some(r=>!!t[r])};function hF(e){for(let t in e)rl[t]={...rl[t],...e[t]}}var Ele=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 Jg(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Ele.has(e)}var gF=e=>!Jg(e);function Ale(e){typeof e=="function"&&(gF=t=>t.startsWith("on")?!Jg(t):e(t))}try{Ale(wae("@emotion/is-prop-valid").default)}catch{}function vF(e,t,r){let a={};for(let n in e)n==="values"&&typeof e.values=="object"||(gF(n)||r===!0&&Jg(n)||!t&&!Jg(n)||e.draggable&&n.startsWith("onDrag"))&&(a[n]=e[n]);return a}var Iw=R(ke(),1);var $f=R(Q(),1);var yF=R(Q(),1),dc=(0,yF.createContext)({});var vw=R(Q(),1);function fc(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function al(e){return typeof e=="string"||Array.isArray(e)}var hw=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Zg=["initial",...hw];function Tu(e){return fc(e.animate)||Zg.some(t=>al(e[t]))}function gw(e){return!!(Tu(e)||e.variants)}function bF(e,t){if(Tu(e)){let{initial:r,animate:a}=e;return{initial:r===!1||al(r)?r:void 0,animate:al(a)?a:void 0}}return e.inherit!==!1?t:{}}function wF(e){let{initial:t,animate:r}=bF(e,(0,vw.useContext)(dc));return(0,vw.useMemo)(()=>({initial:t,animate:r}),[xF(t),xF(r)])}function xF(e){return Array.isArray(e)?e.join(" "):e}var qf=R(Q(),1);var kF=R(Q(),1);var Ru={};function SF(e){for(let t in e)Ru[t]=e[t],wu(t)&&(Ru[t].isCSSVariable=!0)}function yw(e,{layout:t,layoutId:r}){return oo.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!Ru[e]||e==="opacity")}var Lle={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Tle=Ei.length;function CF(e,t,r){let a="",n=!0;for(let o=0;o<Tle;o++){let i=Ei[o],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 c=Wg(s,Eu[i]);if(!l){n=!1;let d=Lle[i]||i;a+=`${d}(${c}) `}r&&(t[i]=c)}}return a=a.trim(),r?a=r(t,n?"":a):n&&(a="none"),a}function Bf(e,t,r){let{style:a,vars:n,transformOrigin:o}=e,i=!1,s=!1;for(let l in t){let c=t[l];if(oo.has(l)){i=!0;continue}else if(wu(l)){n[l]=c;continue}else{let d=Wg(c,Eu[l]);l.startsWith("origin")?(s=!0,o[l]=d):a[l]=d}}if(t.transform||(i||r?a.transform=CF(t,e.transform,r):a.transform&&(a.transform="none")),s){let{originX:l="50%",originY:c="50%",originZ:d=0}=o;a.transformOrigin=`${l} ${c} ${d}`}}var Vf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function CP(e,t,r){for(let a in t)!Ut(t[a])&&!yw(a,r)&&(e[a]=t[a])}function Rle({transformTemplate:e},t){return(0,kF.useMemo)(()=>{let r=Vf();return Bf(r,t,e),Object.assign({},r.vars,r.style)},[t])}function Ole(e,t){let r=e.style||{},a={};return CP(a,r,e),Object.assign(a,Rle(e,t)),a}function NF(e,t){let r={},a=Ole(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"}
17`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=a,r}var PF=R(Q(),1);var Dle={offset:"stroke-dashoffset",array:"stroke-dasharray"},Mle={offset:"strokeDashoffset",array:"strokeDasharray"};function IF(e,t,r=1,a=0,n=!0){e.pathLength=1;let o=n?Dle:Mle;e[o.offset]=He.transform(-a);let i=He.transform(t),s=He.transform(r);e[o.array]=`${i} ${s}`}function bw(e,{attrX:t,attrY:r,attrScale:a,pathLength:n,pathSpacing:o=1,pathOffset:i=0,...s},l,c,d){if(Bf(e,s,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:u,style:f}=e;u.transform&&(f.transform=u.transform,delete u.transform),(f.transform||u.transformOrigin)&&(f.transformOrigin=u.transformOrigin??"50% 50%",delete u.transformOrigin),f.transform&&(f.transformBox=d?.transformBox??"fill-box",delete u.transformBox),t!==void 0&&(u.x=t),r!==void 0&&(u.y=r),a!==void 0&&(u.scale=a),n!==void 0&&IF(u,n,o,i,!1)}var xw=()=>({...Vf(),attrs:{}});var ww=e=>typeof e=="string"&&e.toLowerCase()==="svg";function EF(e,t,r,a){let n=(0,PF.useMemo)(()=>{let o=xw();return bw(o,t,ww(a),e.transformTemplate,e.style),{...o.attrs,style:{...o.style}}},[t]);if(e.style){let o={};CP(o,e.style,e),n.style={...o,...n.style}}return n}var AF=["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 Uf(e){return typeof e!="string"||e.includes("-")?!1:!!(AF.indexOf(e)>-1||/[A-Z]/u.test(e))}function LF(e,t,r,{latestValues:a},n,o=!1){let s=(Uf(e)?EF:NF)(t,a,n,e),l=vF(t,typeof e=="string",o),c=e!==qf.Fragment?{...l,...s,ref:r}:{},{children:d}=t,u=(0,qf.useMemo)(()=>Ut(d)?d.get():d,[d]);return(0,qf.createElement)(e,{...c,children:u})}var kP=R(Q(),1);function TF(e){let t=[{},{}];return e?.values.forEach((r,a)=>{t[0][a]=r.get(),t[1][a]=r.getVelocity()}),t}function zf(e,t,r,a){if(typeof t=="function"){let[n,o]=TF(a);t=t(r!==void 0?r:e.custom,n,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){let[n,o]=TF(a);t=t(r!==void 0?r:e.custom,n,o)}return t}function Hf(e){return Ut(e)?e.get():e}function _le({scrapeMotionValuesFromProps:e,createRenderState:t},r,a,n){return{latestValues:Fle(r,a,n,e),renderState:t()}}function Fle(e,t,r,a){let n={},o=a(e,{});for(let f in o)n[f]=Hf(o[f]);let{initial:i,animate:s}=e,l=Tu(e),c=gw(e);t&&c&&!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 u=d?s:i;if(u&&typeof u!="boolean"&&!fc(u)){let f=Array.isArray(u)?u:[u];for(let p=0;p<f.length;p++){let m=zf(e,f[p]);if(m){let{transitionEnd:h,transition:g,...y}=m;for(let v in y){let x=y[v];if(Array.isArray(x)){let S=d?x.length-1:0;x=x[S]}x!==null&&(n[v]=x)}for(let v in h)n[v]=h[v]}}}return n}var Sw=e=>(t,r)=>{let a=(0,kP.useContext)(dc),n=(0,kP.useContext)(ac),o=()=>_le(e,t,a,n);return r?o():Pf(o)};function Wf(e,t,r){let{style:a}=e,n={};for(let o in a)(Ut(a[o])||t.style&&Ut(t.style[o])||yw(o,e)||r?.getValue(o)?.liveStyle!==void 0)&&(n[o]=a[o]);return n}var RF=Sw({scrapeMotionValuesFromProps:Wf,createRenderState:Vf});function Cw(e,t,r){let a=Wf(e,t,r);for(let n in e)if(Ut(e[n])||Ut(t[n])){let o=Ei.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;a[o]=e[n]}return a}var OF=Sw({scrapeMotionValuesFromProps:Cw,createRenderState:xw});var DF=Symbol.for("motionComponentSymbol");var MF=R(Q(),1);function nl(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function _F(e,t,r){return(0,MF.useCallback)(a=>{a&&e.onMount&&e.onMount(a),t&&(a?t.mount(a):t.unmount()),r&&(typeof r=="function"?r(a):nl(r)&&(r.current=a))},[t])}var _n=R(Q(),1);var Gf=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase();var jle="framerAppearId",kw="data-"+Gf(jle);var FF=R(Q(),1),Nw=(0,FF.createContext)({});function jF(e,t,r,a,n){let{visualElement:o}=(0,_n.useContext)(dc),i=(0,_n.useContext)(mw),s=(0,_n.useContext)(ac),l=(0,_n.useContext)(jf).reducedMotion,c=(0,_n.useRef)(null);a=a||i.renderer,!c.current&&a&&(c.current=a(e,{visualState:t,parent:o,props:r,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:l}));let d=c.current,u=(0,_n.useContext)(Nw);d&&!d.projection&&n&&(d.type==="html"||d.type==="svg")&&Ble(c.current,r,n,u);let f=(0,_n.useRef)(!1);(0,_n.useInsertionEffect)(()=>{d&&f.current&&d.update(r,s)});let p=r[kw],m=(0,_n.useRef)(!!p&&!window.MotionHandoffIsComplete?.(p)&&window.MotionHasOptimisedAnimation?.(p));return Ux(()=>{d&&(f.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),d.scheduleRenderMicrotask(),m.current&&d.animationState&&d.animationState.animateChanges())}),(0,_n.useEffect)(()=>{d&&(!m.current&&d.animationState&&d.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(p)}),m.current=!1),d.enteringChildren=void 0)}),d}function Ble(e,t,r,a){let{layoutId:n,layout:o,drag:i,dragConstraints:s,layoutScroll:l,layoutRoot:c,layoutCrossfade:d}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:BF(e.parent)),e.projection.setOptions({layoutId:n,layout:o,alwaysMeasureLayout:!!i||s&&nl(s),visualElement:e,animationType:typeof o=="str
17ing"?o:"both",initialPromotionConfig:a,crossfade:d,layoutScroll:l,layoutRoot:c})}function BF(e){if(e)return e.options.allowProjection!==!1?e.projection:BF(e.parent)}function Pw(e,{forwardMotionProps:t=!1}={},r,a){r&&hF(r);let n=Uf(e)?OF:RF;function o(s,l){let c,d={...(0,$f.useContext)(jf),...s,layoutId:Vle(s)},{isStatic:u}=d,f=wF(s),p=n(s,u);if(!u&&Ef){Ule(d,r);let m=qle(d);c=m.MeasureLayout,f.visualElement=jF(e,p,d,a,m.ProjectionNode)}return(0,Iw.jsxs)(dc.Provider,{value:f,children:[c&&f.visualElement?(0,Iw.jsx)(c,{visualElement:f.visualElement,...d}):null,LF(e,s,_F(p,f.visualElement,l),p,u,t)]})}o.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;let i=(0,$f.forwardRef)(o);return i[DF]=e,i}function Vle({layoutId:e}){let t=(0,$f.useContext)(If).id;return t&&e!==void 0?t+"-"+e:e}function Ule(e,t){let r=(0,$f.useContext)(mw).strict}function qle(e){let{drag:t,layout:r}=rl;if(!t&&!r)return{};let a={...t,...r};return{MeasureLayout:t?.isEnabled(e)||r?.isEnabled(e)?a.MeasureLayout:void 0,ProjectionNode:a.ProjectionNode}}function VF(e,t){if(typeof Proxy>"u")return Pw;let r=new Map,a=(o,i)=>Pw(o,i,e,t),n=(o,i)=>a(o,i);return new Proxy(n,{get:(o,i)=>i==="create"?a:(r.has(i)||r.set(i,Pw(i,void 0,e,t)),r.get(i))})}var aj=R(Q(),1);function Ew({top:e,left:t,right:r,bottom:a}){return{x:{min:t,max:r},y:{min:e,max:a}}}function UF({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function qF(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 NP(e){return e===void 0||e===1}function Aw({scale:e,scaleX:t,scaleY:r}){return!NP(e)||!NP(t)||!NP(r)}function ol(e){return Aw(e)||IP(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function IP(e){return zF(e.x)||zF(e.y)}function zF(e){return e&&e!=="0%"}function Qg(e,t,r){let a=e-r,n=t*a;return r+n}function HF(e,t,r,a,n){return n!==void 0&&(e=Qg(e,n,a)),Qg(e,r,a)+t}function PP(e,t=0,r=1,a,n){e.min=HF(e.min,t,r,a,n),e.max=HF(e.max,t,r,a,n)}function EP(e,{x:t,y:r}){PP(e.x,t.translate,t.scale,t.originPoint),PP(e.y,r.translate,r.scale,r.originPoint)}var WF=.999999999999,GF=1.0000000000001;function KF(e,t,r,a=!1){let n=r.length;if(!n)return;t.x=t.y=1;let o,i;for(let s=0;s<n;s++){o=r[s],i=o.projectionDelta;let{visualElement:l}=o.options;l&&l.props.style&&l.props.style.display==="contents"||(a&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Ou(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),i&&(t.x*=i.x.scale,t.y*=i.y.scale,EP(e,i)),a&&ol(o.latestValues)&&Ou(e,o.latestValues))}t.x<GF&&t.x>WF&&(t.x=1),t.y<GF&&t.y>WF&&(t.y=1)}function pc(e,t){e.min=e.min+t,e.max=e.max+t}function $F(e,t,r,a,n=.5){let o=ht(e.min,e.max,n);PP(e,t,r,o,a)}function Ou(e,t){$F(e.x,t.x,t.scaleX,t.scale,t.originX),$F(e.y,t.y,t.scaleY,t.scale,t.originY)}function AP(e,t){return Ew(qF(e.getBoundingClientRect(),t))}function XF(e,t,r){let a=AP(e,r),{scroll:n}=t;return n&&(pc(a.x,n.offset.x),pc(a.y,n.offset.y)),a}var YF=()=>({translate:0,scale:1,origin:0,originPoint:0}),Du=()=>({x:YF(),y:YF()}),JF=()=>({min:0,max:0}),ar=()=>({x:JF(),y:JF()});var e0={current:null},Lw={current:!1};function ZF(){if(Lw.current=!0,!!Ef)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>e0.current=e.matches;e.addEventListener("change",t),t()}else e0.current=!1}var QF=new WeakMap;function ej(e,t,r){for(let a in t){let n=t[a],o=r[a];if(Ut(n))e.addValue(a,n);else if(Ut(o))e.addValue(a,Bo(n,{owner:e}));else if(o!==n)if(e.hasValue(a)){let i=e.getValue(a);i.liveStyle===!0?i.jump(n):i.hasAnimated||i.set(n)}else{let i=e.getStaticValue(a);e.addValue(a,Bo(i!==void 0?i:n,{owner:e}))}}for(let a in r)t[a]===void 0&&e.removeValue(a);return t}var tj=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Tw=class{scrapeMotionValuesFromProps(t,r,a){return{}}constructor({parent:t,props:r,presenceContext:a,reducedMotionConfig:n,blockInitialAnimation:o,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=el,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=Or.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,dt.render(this.render,!1,!0))};let{latestValues:l,renderState:c}=i;this.latestValues=l,this.baseTarget={...l},this.initialValues=r.initial?{...l}:{},this.renderState=c,this.parent=t,this.props=r,this.presenceContext=a,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=s,this.blockInitialAnimation=!!o,this.isControllingVariants=Tu(r),this.isVariantNode=gw(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:d,...u}=this.scrapeMotionValuesFromProps(r,{},this);for(let f in u){let p=u[f];l[f]!==void 0&&Ut(p)&&p.set(l[f])}}mount(t){this.current=t,QF.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
17h((r,a)=>this.bindToMotionValue(a,r)),Lw.current||ZF(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:e0.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Mn(this.notifyUpdate),Mn(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=oo.has(t);a&&this.onBindTransform&&this.onBindTransform();let n=r.on("change",i=>{this.latestValues[t]=i,this.props.onUpdate&&dt.preRender(this.notifyUpdate),a&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,r)),this.valueSubscriptions.set(t,()=>{n(),o&&o(),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 rl){let r=rl[t];if(!r)continue;let{isEnabled:a,Feature:n}=r;if(!this.features[t]&&n&&a(this.props)&&(this.features[t]=new n(this)),this.features[t]){let o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ar()}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;for(let a=0;a<tj.length;a++){let n=tj[a];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let o="on"+n,i=t[o];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=ej(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=Bo(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"&&(xg(a)||Sg(a))?a=parseFloat(a):!bP(a)&&$a.test(r)&&(a=zg(t,r)),this.setBaseTarget(t,Ut(a)?a.get():a)),Ut(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 o=zf(this.props,r,this.presenceContext?.custom);o&&(a=o[t])}if(r&&a!==void 0)return a;let n=this.getBaseTargetFromProps(this.props,t);return n!==void 0&&!Ut(n)?n:this.initialValues[t]!==void 0&&a===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new Js),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}scheduleRenderMicrotask(){Au.render(this.render)}};var Kf=class extends Tw{constructor(){super(...arguments),this.KeyframeResolver=Hg}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;Ut(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}};function Rw(e,{style:t,vars:r},a,n){let o=e.style,i;for(i in t)o[i]=t[i];n?.applyProjectionStyles(o,a);for(i in r)o.setProperty(i,r[i])}function zle(e){return window.getComputedStyle(e)}var Ow=class extends Kf{constructor(){super(...arguments),this.type="html",this.renderInstance=Rw}readValueFromInstance(t,r){if(oo.has(r))return this.projection?.isProjecting?Fg(r):QI(t,r);{let a=zle(t),n=(wu(r)?a.getPropertyValue(r):a[r])||0;return typeof n=="string"?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:r}){return AP(t,r)}build(t,r,a){Bf(t,r,a.transformTemplate)}scrapeMotionValuesFromProps(t,r,a){return Wf(t,r,a)}};var Dw=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 rj(e,t,r,a){Rw(e,t,void 0,a);for(let n in t.attrs)e.setAttribute(Dw.has(n)?n:Gf(n),t.attrs[n])}var Mw=class extends Kf{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ar}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(oo.has(r)){let a=qg(r);return a&&a.default||0}return r=Dw.has(r)?r:Gf(r),t.getAttribute(r)}scrapeMotionValuesFromProps(t,r,a){return Cw(t,r,a)}build(t,r,a){bw(t,r,this.isSVGTag,a.transformTemplate,a.style)}renderInstance(t,r,a,n){rj(t,r,a,n)}mount(t){this.isSVGTag=ww(t.tagName),super.mount(t)}};var nj=(e,t)=>Uf(e)?new Mw(t):new Ow(t,{allowProjection:e!==aj.Fragment});function cs(e,t,r){let a=e.getProps();return zf(a,t,r!==void 0?r:a.custom,e)}var t0=e=>Array.isArray(e);function Hle(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Bo(r))}function Wle(e){return t0(e)?e[e.length-1]||0:e}function oj(e,t){let r=cs(e,t),{transitionEnd:a={},transition:n={},...o}=r||{};o={...o,...a};for(let i in o){let s=Wle(o[i]);Hle(e,i,s)}}function ij(e){return!!(Ut(e)&&e.add)}function r0(e,t){let r=e.getValue("willChange");if(ij(r))return r.add(t);if(!r&&Wa.WillChange){let a=new Wa.WillChange("auto");e.addValue("willChange",a),a.add(t)}}function _w(e){return e.props[kw]}var Gle=e=>e!==null;function sj(e,{repeat:t,repeatType:r="loop"},a){let n=e.filter(Gle),o=t&&r!=="loop"&&t%2===1?0:n.length-1;return!o||a===void 0?n[o]:a}var $le={type:"spring",stiffness:500,damping:25,restSpeed:10},Kle=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Xle={type:"keyframes",duration:.8},Yle={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},lj=(e,{keyframes:t})=>t.length>
172?Xle:oo.has(e)?e.startsWith("scale")?Kle(t[1]):$le:Yle;function cj({when:e,delay:t,delayChildren:r,staggerChildren:a,staggerDirection:n,repeat:o,repeatType:i,repeatDelay:s,from:l,elapsed:c,...d}){return!!Object.keys(d).length}var Xf=(e,t,r,a={},n,o)=>i=>{let s=Pu(a,e)||{},l=s.delay||a.delay||0,{elapsed:c=0}=a;c=c-aa(l);let d={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-c,onUpdate:f=>{t.set(f),s.onUpdate&&s.onUpdate(f)},onComplete:()=>{i(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:o?void 0:n};cj(s)||Object.assign(d,lj(e,d)),d.duration&&(d.duration=aa(d.duration)),d.repeatDelay&&(d.repeatDelay=aa(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let u=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(_f(d),d.delay===0&&(u=!0)),(Wa.instantAnimations||Wa.skipAnimations)&&(u=!0,_f(d),d.delay=0),d.allowFlatten=!s.type&&!s.ease,u&&!o&&t.get()!==void 0){let f=sj(d.keyframes,s);if(f!==void 0){dt.update(()=>{d.onUpdate(f),d.onComplete()});return}}return s.isSync?new Qs(d):new Bg(d)};function Jle({protectedKeys:e,needsAnimating:t},r){let a=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,a}function Fw(e,t,{delay:r=0,transitionOverride:a,type:n}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:i,...s}=t;a&&(o=a);let l=[],c=n&&e.animationState&&e.animationState.getState()[n];for(let d in s){let u=e.getValue(d,e.latestValues[d]??null),f=s[d];if(f===void 0||c&&Jle(c,d))continue;let p={delay:r,...Pu(o||{},d)},m=u.get();if(m!==void 0&&!u.isAnimating&&!Array.isArray(f)&&f===m&&!p.velocity)continue;let h=!1;if(window.MotionHandoffAnimation){let y=_w(e);if(y){let v=window.MotionHandoffAnimation(y,d,dt);v!==null&&(p.startTime=v,h=!0)}}r0(e,d),u.start(Xf(d,u,f,e.shouldReduceMotion&&Vg.has(d)?{type:!1}:p,e,h));let g=u.animation;g&&l.push(g)}return i&&Promise.all(l).then(()=>{dt.update(()=>{i&&oj(e,i)})}),l}function jw(e,t,r,a=0,n=1){let o=Array.from(e).sort((c,d)=>c.sortNodePosition(d)).indexOf(t),i=e.size,s=(i-1)*a;return typeof r=="function"?r(o,i):n===1?o*a:s-o*a}function Bw(e,t,r={}){let a=cs(e,t,r.type==="exit"?e.presenceContext?.custom:void 0),{transition:n=e.getDefaultTransition()||{}}=a||{};r.transitionOverride&&(n=r.transitionOverride);let o=a?()=>Promise.all(Fw(e,a,r)):()=>Promise.resolve(),i=e.variantChildren&&e.variantChildren.size?(l=0)=>{let{delayChildren:c=0,staggerChildren:d,staggerDirection:u}=n;return Zle(e,t,l,c,d,u,r)}:()=>Promise.resolve(),{when:s}=n;if(s){let[l,c]=s==="beforeChildren"?[o,i]:[i,o];return l().then(()=>c())}else return Promise.all([o(),i(r.delay)])}function Zle(e,t,r=0,a=0,n=0,o=1,i){let s=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),s.push(Bw(l,t,{...i,delay:r+(typeof a=="function"?0:a)+jw(e.variantChildren,l,a,n,o)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(s)}function uj(e,t,r={}){e.notify("AnimationStart",t);let a;if(Array.isArray(t)){let n=t.map(o=>Bw(e,o,r));a=Promise.all(n)}else if(typeof t=="string")a=Bw(e,t,r);else{let n=typeof t=="function"?cs(e,t,r.custom):t;a=Promise.all(Fw(e,n,r))}return a.then(()=>{e.notify("AnimationComplete",t)})}function LP(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 Qle=Zg.length;function TP(e){if(!e)return;if(!e.isControllingVariants){let r=e.parent?TP(e.parent)||{}:{};return e.props.initial!==void 0&&(r.initial=e.props.initial),r}let t={};for(let r=0;r<Qle;r++){let a=Zg[r],n=e.props[a];(al(n)||n===!1)&&(t[a]=n)}return t}var ece=[...hw].reverse(),tce=hw.length;function rce(e){return t=>Promise.all(t.map(({animation:r,options:a})=>uj(e,r,a)))}function fj(e){let t=rce(e),r=dj(),a=!0,n=l=>(c,d)=>{let u=cs(e,d,l==="exit"?e.presenceContext?.custom:void 0);if(u){let{transition:f,transitionEnd:p,...m}=u;c={...c,...m,...p}}return c};function o(l){t=l(e)}function i(l){let{props:c}=e,d=TP(e.parent)||{},u=[],f=new Set,p={},m=1/0;for(let g=0;g<tce;g++){let y=ece[g],v=r[y],x=c[y]!==void 0?c[y]:d[y],S=al(x),b=y===l?v.isActive:null;b===!1&&(m=g);let w=x===d[y]&&x!==c[y]&&S;if(w&&a&&e.manuallyAnimateOnMount&&(w=!1),v.protectedKeys={...p},!v.isActive&&b===null||!x&&!v.prevProp||fc(x)||typeof x=="boolean")continue;let k=ace(v.prevProp,x),C=k||y===l&&v.isActive&&!w&&S||g>m&&S,N=!1,E=Array.isArray(x)?x:[x],L=E.reduce(n(y),{});b===!1&&(L={});let{prevResolvedValues:T={}}=v,q={...T,...L},_=A=>{C=!0,f.has(A)&&(N=!0,f.delete(A)),v.needsAnimating[A]=!0;let M=e.getValue(A);M&&(M.liveStyle=!1)};for(let A in q){let M=L[A],D=T[A];if(p.hasOwnProperty(A))continue;let V=!1;t0(M)&&t0(D)?V=!LP(M,D):V=M!==D,V?M!=null?_(A):f.add(A):M!==void 0&&f.has(A)?_(A):v.protectedKeys[A]=!0}v.prevProp=x,v.prevResolvedValues=L,v.isActive&&(p={...p,...L}),a&&e.blockInitialAnimation&&(C=!1);let B=w&&k;C&&(!B||N)&&u.push(...E.map(A=>{let M={type:y};if(typeof A=="string"&&a&&!B&&e.manuallyAnimateOnMount&&e.parent){let{parent:D}=e,V=cs(D,A);if(D.enteringChildren&&V){let{delayChildren:P}=V.transition||{};M.delay=jw(D.enteringChildren,e,P)}}return{animation:A,options:M}}))}
17if(f.size){let g={};if(typeof c.initial!="boolean"){let y=cs(e,Array.isArray(c.initial)?c.initial[0]:c.initial);y&&y.transition&&(g.transition=y.transition)}f.forEach(y=>{let v=e.getBaseTarget(y),x=e.getValue(y);x&&(x.liveStyle=!0),g[y]=v??null}),u.push({animation:g})}let h=!!u.length;return a&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(h=!1),a=!1,h?t(u):Promise.resolve()}function s(l,c){if(r[l].isActive===c)return Promise.resolve();e.variantChildren?.forEach(u=>u.animationState?.setActive(l,c)),r[l].isActive=c;let d=i(l);for(let u in r)r[u].protectedKeys={};return d}return{animateChanges:i,setActive:s,setAnimateFunction:o,getState:()=>r,reset:()=>{r=dj(),a=!0}}}function ace(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!LP(t,e):!1}function Mu(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function dj(){return{animate:Mu(!0),whileInView:Mu(),whileHover:Mu(),whileTap:Mu(),whileDrag:Mu(),whileFocus:Mu(),exit:Mu()}}var ya=class{constructor(t){this.isMounted=!1,this.node=t}update(){}};var Vw=class extends ya{constructor(t){super(t),t.animationState||(t.animationState=fj(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();fc(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 nce=0,Uw=class extends ya{constructor(){super(...arguments),this.id=nce++}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 n=this.node.animationState.setActive("exit",!t);r&&!t&&n.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 pj={animation:{Feature:Vw},exit:{Feature:Uw}};function il(e,t,r,a={passive:!0}){return e.addEventListener(t,r,a),()=>e.removeEventListener(t,r)}function sl(e){return{point:{x:e.pageX,y:e.pageY}}}var mj=e=>t=>Lu(t)&&e(t,sl(t));function mc(e,t,r,a){return il(e,t,mj(r),a)}var yj=1e-4,oce=1-yj,ice=1+yj,bj=.01,sce=0-bj,lce=0+bj;function oa(e){return e.max-e.min}function xj(e,t,r){return Math.abs(e-t)<=r}function hj(e,t,r,a=.5){e.origin=a,e.originPoint=ht(t.min,t.max,e.origin),e.scale=oa(r)/oa(t),e.translate=ht(r.min,r.max,e.origin)-e.originPoint,(e.scale>=oce&&e.scale<=ice||isNaN(e.scale))&&(e.scale=1),(e.translate>=sce&&e.translate<=lce||isNaN(e.translate))&&(e.translate=0)}function Yf(e,t,r,a){hj(e.x,t.x,r.x,a?a.originX:void 0),hj(e.y,t.y,r.y,a?a.originY:void 0)}function gj(e,t,r){e.min=r.min+t.min,e.max=e.min+oa(t)}function wj(e,t,r){gj(e.x,t.x,r.x),gj(e.y,t.y,r.y)}function vj(e,t,r){e.min=t.min-r.min,e.max=e.min+oa(t)}function Jf(e,t,r){vj(e.x,t.x,r.x),vj(e.y,t.y,r.y)}function Fn(e){return[e("x"),e("y")]}var qw=({current:e})=>e?e.ownerDocument.defaultView:null;var Sj=(e,t)=>Math.abs(e-t);function Cj(e,t){let r=Sj(e.x,t.x),a=Sj(e.y,t.y);return Math.sqrt(r**2+a**2)}var Zf=class{constructor(t,r,{transformPagePoint:a,contextWindow:n=window,dragSnapToOrigin:o=!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=OP(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,m=Cj(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!p&&!m)return;let{point:h}=f,{timestamp:g}=Rr;this.history.push({...h,timestamp:g});let{onStart:y,onMove:v}=this.handlers;p||(y&&y(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,f)},this.handlePointerMove=(f,p)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=RP(p,this.transformPagePoint),dt.update(this.updatePoint,!0)},this.handlePointerUp=(f,p)=>{this.end();let{onEnd:m,onSessionEnd:h,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let y=OP(f.type==="pointercancel"?this.lastMoveEventInfo:RP(p,this.transformPagePoint),this.history);this.startEvent&&m&&m(f,y),h&&h(f,y)},!Lu(t))return;this.dragSnapToOrigin=o,this.handlers=r,this.transformPagePoint=a,this.distanceThreshold=i,this.contextWindow=n||window;let s=sl(t),l=RP(s,this.transformPagePoint),{point:c}=l,{timestamp:d}=Rr;this.history=[{...c,timestamp:d}];let{onSessionStart:u}=r;u&&u(t,OP(l,this.history)),this.removeListeners=Ni(mc(this.contextWindow,"pointermove",this.handlePointerMove),mc(this.contextWindow,"pointerup",this.handlePointerUp),mc(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Mn(this.updatePoint)}};function RP(e,t){return t?{point:t(e.point)}:e}function kj(e,t){return{x:e.x-t.x,y:e.y-t.y}}function OP({point:e},t){return{point:e,delta:kj(e,Nj(t)),offset:kj(e,cce(t)),velocity:uce(t,.1)}}function cce(e){return e[0]}function Nj(e){return e[e.length-1]}function uce(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,a=null,n=Nj(e);for(;r>=0&&(a=e[r],!(n.timestamp-a.timestamp>aa(t)));)r--;if(!a)return{x:0,y:0};let o=na(n.timestamp-a.timestamp);if(o===0)return{x:0,y:0};let i={x:(n.x-a.x)/o,y:(n.y-a.y)/o};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function Lj(e,{min:t,max:r},a){return t!==void 0&&e<t?e=a?ht(t,e,a.min):Math.max(e,t):r!==void 0&&e>
17r&&(e=a?ht(r,e,a.max):Math.min(e,r)),e}function Ij(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 Tj(e,{top:t,left:r,bottom:a,right:n}){return{x:Ij(e.x,r,n),y:Ij(e.y,t,a)}}function Pj(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 Rj(e,t){return{x:Pj(e.x,t.x),y:Pj(e.y,t.y)}}function Oj(e,t){let r=.5,a=oa(e),n=oa(t);return n>a?r=os(t.min,t.max-a,e.min):a>n&&(r=os(e.min,e.max-n,t.min)),va(0,1,r)}function Dj(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 zw=.35;function Mj(e=zw){return e===!1?e=0:e===!0&&(e=zw),{x:Ej(e,"left","right"),y:Ej(e,"top","bottom")}}function Ej(e,t,r){return{min:Aj(e,t),max:Aj(e,r)}}function Aj(e,t){return typeof e=="number"?e:e[t]||0}var dce=new WeakMap,Ww=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=ar(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:r=!1,distanceThreshold:a}={}){let{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;let o=u=>{let{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),r&&this.snapToCursor(sl(u).point)},i=(u,f)=>{let{drag:p,dragPropagation:m,onDragStart:h}=this.getProps();if(p&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=pP(p),!this.openDragLock))return;this.latestPointerEvent=u,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),Fn(y=>{let v=this.getAxisMotionValue(y).get()||0;if(Ga.test(v)){let{projection:x}=this.visualElement;if(x&&x.layout){let S=x.layout.layoutBox[y];S&&(v=oa(S)*(parseFloat(v)/100))}}this.originPoint[y]=v}),h&&dt.postRender(()=>h(u,f)),r0(this.visualElement,"transform");let{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},s=(u,f)=>{this.latestPointerEvent=u,this.latestPanInfo=f;let{dragPropagation:p,dragDirectionLock:m,onDirectionLock:h,onDrag:g}=this.getProps();if(!p&&!this.openDragLock)return;let{offset:y}=f;if(m&&this.currentDirection===null){this.currentDirection=fce(y),this.currentDirection!==null&&h&&h(this.currentDirection);return}this.updateAxis("x",f.point,y),this.updateAxis("y",f.point,y),this.visualElement.render(),g&&g(u,f)},l=(u,f)=>{this.latestPointerEvent=u,this.latestPanInfo=f,this.stop(u,f),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>Fn(u=>this.getAnimationState(u)==="paused"&&this.getAxisMotionValue(u).animation?.play()),{dragSnapToOrigin:d}=this.getProps();this.panSession=new Zf(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:a,contextWindow:qw(this.visualElement)})}stop(t,r){let a=t||this.latestPointerEvent,n=r||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!n||!a)return;let{velocity:i}=n;this.startAnimation(i);let{onDragEnd:s}=this.getProps();s&&dt.postRender(()=>s(a,n))}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:n}=this.getProps();if(!a||!Hw(t,n,this.currentDirection))return;let o=this.getAxisMotionValue(t),i=this.originPoint[t]+a[t];this.constraints&&this.constraints[t]&&(i=Lj(i,this.constraints[t],this.elastic[t])),o.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,n=this.constraints;t&&nl(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&a?this.constraints=Tj(a.layoutBox,t):this.constraints=!1,this.elastic=Mj(r),n!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&Fn(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Dj(a.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!nl(t))return!1;let a=t.current;jo(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:n}=this.visualElement;if(!n||!n.layout)return!1;let o=XF(a,n.root,this.visualElement.getTransformPagePoint()),i=Rj(n.layout.layoutBox,o);if(r){let s=r(UF(i));this.hasMutatedConstraints=!!s,s&&(i=Ew(s))}return i}startAnimation(t){let{drag:r,dragMomentum:a,dragElastic:n,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},c=Fn(d=>
vendor: 9,490 bytes, line 17
17{if(!Hw(d,r,this.currentDirection))return;let u=l&&l[d]||{};i&&(u={min:0,max:0});let f=n?200:1e6,p=n?40:1e7,m={type:"inertia",velocity:a?t[d]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...o,...u};return this.startAxisValueAnimation(d,m)});return Promise.all(c).then(s)}startAxisValueAnimation(t,r){let a=this.getAxisMotionValue(t);return r0(this.visualElement,t),a.start(Xf(t,a,0,r,this.visualElement,!1))}stopAnimation(){Fn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Fn(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(),n=a[r];return n||this.visualElement.getValue(t,(a.initial?a.initial[t]:void 0)||0)}snapToCursor(t){Fn(r=>{let{drag:a}=this.getProps();if(!Hw(r,a,this.currentDirection))return;let{projection:n}=this.visualElement,o=this.getAxisMotionValue(r);if(n&&n.layout){let{min:i,max:s}=n.layout.layoutBox[r];o.set(t[r]-ht(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:r}=this.getProps(),{projection:a}=this.visualElement;if(!nl(r)||!a||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};Fn(i=>{let s=this.getAxisMotionValue(i);if(s&&this.constraints!==!1){let l=s.get();n[i]=Oj({min:l,max:l},this.constraints[i])}});let{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",a.root&&a.root.updateScroll(),a.updateLayout(),this.resolveConstraints(),Fn(i=>{if(!Hw(i,t,null))return;let s=this.getAxisMotionValue(i),{min:l,max:c}=this.constraints[i];s.set(ht(l,c,n[i]))})}addListeners(){if(!this.visualElement.current)return;dce.set(this.visualElement,this);let t=this.visualElement.current,r=mc(t,"pointerdown",l=>{let{drag:c,dragListener:d=!0}=this.getProps();c&&d&&this.start(l)}),a=()=>{let{dragConstraints:l}=this.getProps();nl(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,o=n.addEventListener("measure",a);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),dt.read(a);let i=il(window,"resize",()=>this.scalePositionWithinConstraints()),s=n.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(Fn(d=>{let u=this.getAxisMotionValue(d);u&&(this.originPoint[d]+=l[d].translate,u.set(u.get()+l[d].translate))}),this.visualElement.render())}));return()=>{i(),r(),o(),s&&s()}}getProps(){let t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:a=!1,dragPropagation:n=!1,dragConstraints:o=!1,dragElastic:i=zw,dragMomentum:s=!0}=t;return{...t,drag:r,dragDirectionLock:a,dragPropagation:n,dragConstraints:o,dragElastic:i,dragMomentum:s}}};function Hw(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function fce(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}var Gw=class extends ya{constructor(t){super(t),this.removeGroupControls=kr,this.removeListeners=kr,this.controls=new Ww(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||kr}unmount(){this.removeGroupControls(),this.removeListeners()}};var _j=e=>(t,r)=>{e&&dt.postRender(()=>e(t,r))},$w=class extends ya{constructor(){super(...arguments),this.removePointerDownListener=kr}onPointerDown(t){this.session=new Zf(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:qw(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:r,onPan:a,onPanEnd:n}=this.node.getProps();return{onSessionStart:_j(t),onStart:_j(r),onMove:a,onEnd:(o,i)=>{delete this.session,n&&dt.postRender(()=>n(o,i))}}}mount(){this.removePointerDownListener=mc(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 Bj=R(ke(),1);var a0=R(Q(),1);var Qf={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Fj(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var ep={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(He.test(e))e=parseFloat(e);else return e;let r=Fj(e,t.target.x),a=Fj(e,t.target.y);return`${r}% ${a}%`}};var jj={correct:(e,{treeScale:t,projectionDelta:r})=>{let a=e,n=$a.parse(e);if(n.length>5)return a;let o=$a.createTransformer(e),i=typeof n[0]!="number"?1:0,s=r.x.scale*t.x,l=r.y.scale*t.y;n[0+i]/=s,n[1+i]/=l;let c=ht(s,l,.5);return typeof n[2+i]=="number"&&(n[2+i]/=c),typeof n[3+i]=="number"&&(n[3+i]/=c),o(n)}};var DP=!1,MP=class extends a0.Component{componentDidMount(){let{visualElement:t,layoutGroup:r,switchLayoutGroup:a,layoutId:n}=this.props,{projection:o}=t;SF(pce),o&&(r.group&&r.group.add(o),a&&a.register&&n&&a.register(o),DP&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Qf.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:r,visualElement:a,drag:n,isPresent:o}=this.props,{projection:i}=a;return i&&(i.isPresent=o,DP=!0,n||t.layoutDependency!==r||r===void 0||t.isPresent!==o?i.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?i.promote():i.relegate()||dt.postRender(()=>{let s=i.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Au.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:r,switchLayoutGroup:a}=this.props,{projection:n}=t;DP=!0,n&&(n.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(n),a&&a.deregister&&a.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}};function Kw(e){let[t,r]=fw(),a=(0,a0.useContext)(If);return(0,Bj.jsx)(MP,{...e,layoutGroup:a,switchLayoutGroup:(0,a0.useContext)(Nw),isPresent:t,safeToRemove:r})}var pce={borderRadius:{...ep,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ep,borderTopRightRadius:ep,borderBottomLeftRadius:ep,borderBottomRightRadius:ep,boxShadow:jj};function Vj(e,t,r){let a=Ut(e)?e:Bo(e);return a.start(Xf("",a,t,r)),a.animation}var Uj=(e,t)=>e.depth-t.depth;var Xw=class{constructor(){this.children=[],this.isDirty=!1}add(t){yu(this.children,t),this.isDirty=!0}remove(t){bu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Uj),this.isDirty=!1,this.children.forEach(t)}};function qj(e,t){let r=Or.now(),a=({timestamp:n})=>{let o=n-r;o>=t&&(Mn(a),e(o-t))};return dt.setup(a,!0),()=>Mn(a)}var Gj=["TopLeft","TopRight","BottomLeft","BottomRight"],mce=Gj.length,zj=e=>typeof e=="string"?parseFloat(e):e,Hj=e=>typeof e=="number"||He.test(e);function $j(e,t,r,a,n,o){n?(e.opacity=ht(0,r.opacity??1,hce(a)),e.opacityExit=ht(t.opacity??1,0,gce(a))):o&&(e.opacity=ht(t.opacity??1,r.opacity??1,a));for(let i=0;i<mce;i++){let s=`border${Gj[i]}Radius`,l=Wj(t,s),c=Wj(r,s);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||Hj(l)===Hj(c)?(e[s]=Math.max(ht(zj(l),zj(c),a),0),(Ga.test(c)||Ga.test(l))&&(e[s]+="%")):e[s]=c}(t.rotate||r.rotate)&&(e.rotate=ht(t.rotate||0,r.rotate||0,a))}function Wj(e,t){return e[t]!==void 0?e[t]:e.borderRadius}var hce=Kj(0,.5,Pg),gce=Kj(.5,.95,kr);function Kj(e,t,r){return a=>a<e?0:a>t?1:r(os(e,t,a))}function Xj(e,t){e.min=t.min,e.max=t.max}function io(e,t){Xj(e.x,t.x),Xj(e.y,t.y)}function _P(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Yj(e,t,r,a,n){return e-=t,e=Qg(e,1/r,a),n!==void 0&&(e=Qg(e,1/n,a)),e}function vce(e,t=0,r=1,a=.5,n,o=e,i=e){if(Ga.test(t)&&(t=parseFloat(t),t=ht(i.min,i.max,t/100)-i.min),typeof t!="number")return;let s=ht(o.min,o.max,a);e===o&&(s-=t),e.min=Yj(e.min,t,r,s,n),e.max=Yj(e.max,t,r,s,n)}function Jj(e,t,[r,a,n],o,i){vce(e,t[r],t[a],t[n],t.scale,o,i)}var yce=["x","scaleX","originX"],bce=["y","scaleY","originY"];function FP(e,t,r,a){Jj(e.x,t,yce,r?r.x:void 0,a?a.x:void 0),Jj(e.y,t,bce,r?r.y:void 0,a?a.y:void 0)}function Zj(e){return e.translate===0&&e.scale===1}function jP(e){return Zj(e.x)&&Zj(e.y)}function Qj(e,t){return e.min===t.min&&e.max===t.max}function tB(e,t){return Qj(e.x,t.x)&&Qj(e.y,t.y)}function eB(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function BP(e,t){return eB(e.x,t.x)&&eB(e.y,t.y)}function VP(e){return oa(e.x)/oa(e.y)}function UP(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var Yw=class{constructor(){this.members=[]}add(t){yu(this.members,t),t.scheduleRender()}remove(t){if(bu(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(n=>t===n);if(r===0)return!1;let a;for(let n=r;n>=0;n--){let o=this.members[n];if(o.isPresent!==!1){a=o;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:n}=t.options;n===!1&&a.hide()}}
17exitAnimationComplete(){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 rB(e,t,r){let a="",n=e.x.translate/t.x,o=e.y.translate/t.y,i=r?.z||0;if((n||o||i)&&(a=`translate3d(${n}px, ${o}px, ${i}px) `),(t.x!==1||t.y!==1)&&(a+=`scale(${1/t.x}, ${1/t.y}) `),r){let{transformPerspective:c,rotate:d,rotateX:u,rotateY:f,skewX:p,skewY:m}=r;c&&(a=`perspective(${c}px) ${a}`),d&&(a+=`rotate(${d}deg) `),u&&(a+=`rotateX(${u}deg) `),f&&(a+=`rotateY(${f}deg) `),p&&(a+=`skewX(${p}deg) `),m&&(a+=`skewY(${m}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 _u={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},qP=["","X","Y","Z"],xce=1e3,wce=0;function zP(e,t,r,a){let{latestValues:n}=t;n[e]&&(r[e]=n[e],t.setStaticValue(e,0),a&&(a[e]=0))}function dB(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let r=_w(t);if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:n,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",dt,!(n||o))}let{parent:a}=e;a&&!a.hasCheckedOptimisedAppear&&dB(a)}function Jw({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:a,resetTransform:n}){return class{constructor(i={},s=t?.()){this.id=wce++,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,Dn.value&&(_u.nodes=_u.calculatedTargetDeltas=_u.calculatedProjections=0),this.nodes.forEach(kce),this.nodes.forEach(Ece),this.nodes.forEach(Ace),this.nodes.forEach(Nce),Dn.addProjectionMetrics&&Dn.addProjectionMetrics(_u)},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 Xw)}addEventListener(i,s){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new Js),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=$g(i)&&!yP(i),this.instance=i;let{layoutId:s,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.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,u=0,f=()=>this.root.updateBlockedByResize=!1;dt.read(()=>{u=window.innerWidth}),e(i,()=>{let p=window.innerWidth;p!==u&&(u=p,this.root.updateBlockedByResize=!0,d&&d(),d=qj(f,250),Qf.hasAnimatedSinceResize&&(Qf.hasAnimatedSinceResize=!1,this.nodes.forEach(oB)))})}s&&this.root.registerSharedNode(s,this),this.options.animate!==!1&&c&&(s||l)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:u,hasRelativeLayoutChanged:f,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let m=this.options.transition||c.getDefaultTransition()||Dce,{onLayoutAnimationStart:h,onLayoutAnimationComplete:g}=c.getProps(),y=!this.targetLayout||!BP(this.targetLayout,p),v=!u&&f;if(this.options.layoutRoot||this.resumeFrom||v||u&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let x={...Pu(m,"layout"),onPlay:h,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x),this.setAnimationOrigin(d,v)}else u||oB(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}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(),Mn(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.forEac
17h(Lce),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&&dB(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){let u=this.path[d];u.shouldResetTransform=!0,u.updateScroll("snapshot"),u.options.layoutRoot&&u.willUpdate(!1)}let{layoutId:s,layout:l}=this.options;if(s===void 0&&!l)return;let c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),i&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(aB);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(nB);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Pce),this.nodes.forEach(Sce),this.nodes.forEach(Cce)):this.nodes.forEach(nB),this.clearAllSnapshots();let s=Or.now();Rr.delta=va(0,1e3/60,s-Rr.timestamp),Rr.timestamp=s,Rr.isProcessing=!0,Rg.update.process(Rr),Rg.preRender.process(Rr),Rg.render.process(Rr),Rr.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Au.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Ice),this.sharedNodes.forEach(Tce)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,dt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){dt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!oa(this.snapshot.measuredBox.x)&&!oa(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=ar(),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(!n)return;let i=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,s=this.projectionDelta&&!jP(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,d=c!==this.prevTransformTemplateValue;i&&this.instance&&(s||ol(this.latestValues)||d)&&(n(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(i=!0){let s=this.measurePageBox(),l=this.removeElementScroll(s);return i&&(l=this.removeTransform(l)),Mce(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:i}=this.options;if(!i)return ar();let s=i.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(_ce))){let{scroll:c}=this.root;c&&(pc(s.x,c.offset.x),pc(s.y,c.offset.y))}return s}removeElementScroll(i){let s=ar();if(io(s,i),this.scroll?.wasRoot)return s;for(let l=0;l<this.path.length;l++){let c=this.path[l],{scroll:d,options:u}=c;c!==this.root&&d&&u.layoutScroll&&(d.wasRoot&&io(s,i),pc(s.x,d.offset.x),pc(s.y,d.offset.y))}return s}applyTransform(i,s=!1){let l=ar();io(l,i);for(let c=0;c<this.path.length;c++){let d=this.path[c];!s&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Ou(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),ol(d.latestValues)&&Ou(l,d.latestValues)}return ol(this.latestValues)&&Ou(l,this.latestValues),l}removeTransform(i){let s=ar();io(s,i);for(let l=0;l<this.path.length;l++){let c=this.path[l];if(!c.instance||!ol(c.latestValues))continue;Aw(c.latestValues)&&c.updateSnapshot();let d=ar(),u=c.measurePageBox();io(d,u),FP(s,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,d)}return ol(this.latestValues)&&FP(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!==Rr.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,960 bytes, line 17
17haredProjectionDirty);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:u}=this.options;if(!(!this.layout||!(d||u))){if(this.resolvedRelativeTargetAt=Rr.timestamp,!this.targetDelta&&!this.relativeTarget){let f=this.getClosestProjectingParent();f&&f.layout&&this.animationProgress!==1?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ar(),this.relativeTargetOrigin=ar(),Jf(this.relativeTargetOrigin,this.layout.layoutBox,f.layout.layoutBox),io(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=ar(),this.targetWithTransforms=ar()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),wj(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):io(this.target,this.layout.layoutBox),EP(this.target,this.targetDelta)):io(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=ar(),this.relativeTargetOrigin=ar(),Jf(this.relativeTargetOrigin,this.target,f.target),io(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Dn.value&&_u.calculatedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Aw(this.parent.latestValues)||IP(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===Rr.timestamp&&(l=!1),l)return;let{layout:c,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||!(c||d))return;io(this.layoutCorrected,this.layout.layoutBox);let u=this.treeScale.x,f=this.treeScale.y;KF(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=ar());let{target:p}=i;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(_P(this.prevProjectionDelta.x,this.projectionDelta.x),_P(this.prevProjectionDelta.y,this.projectionDelta.y)),Yf(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==u||this.treeScale.y!==f||!UP(this.projectionDelta.x,this.prevProjectionDelta.x)||!UP(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p)),Dn.value&&_u.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=Du(),this.projectionDelta=Du(),this.projectionDeltaWithTransform=Du()}setAnimationOrigin(i,s=!1){let l=this.snapshot,c=l?l.latestValues:{},d={...this.latestValues},u=Du();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;let f=ar(),p=l?l.source:void 0,m=this.layout?this.layout.source:void 0,h=p!==m,g=this.getStack(),y=!g||g.members.length<=1,v=!!(h&&!y&&this.options.crossfade===!0&&!this.path.some(Oce));this.animationProgress=0;let x;this.mixTargetDelta=S=>{let b=S/1e3;iB(u.x,i.x,b),iB(u.y,i.y,b),this.setTargetDelta(u),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Jf(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Rce(this.relativeTarget,this.relativeTargetOrigin,f,b),x&&tB(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=ar()),io(x,this.relativeTarget)),h&&(this.animationValues=d,$j(d,c,this.latestValues,b,v,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=b},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Mn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=dt.update(()=>{Qf.hasAnimatedSinceResize=!0,Ii.layout++,this.motionValue||(this.motionValue=Bo(0)),this.currentAnimation=Vj(this.motionValue,[0,1e3],{...i,velocity:0,isSync:!0,onUpdate:s=>{this.mixTargetDelta(s),i.onUpdate&&i.onUpdate(s)},onStop:()=>{Ii.layout--},onComplete:()=>{Ii.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(xce),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let i=this.getLead(),{targetWithTransforms:s,target:l,layout:c,latestValues:d}=i;if(!(!s||!l||!c)){if(this!==i&&this.layout&&c&&fB(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||ar();let u=oa(this.layout.layoutBox.x);l.x.min=i.target.x.min,l.x.max=l.x.min+u;let f=oa(this.layout.layoutBox.y);l.y.min=i.target.y.min,l.y.max=l.y.min+f}io(s,l),Ou(s,d),Yf(this.projectionDeltaWithTransform,this.layoutCorrected,s,d)}}registerSharedNode(i,s){this.sharedNodes.has(i)||this.sharedNodes.set(i,new Yw),this.sharedNodes.get(i).add(s);let c=s.options.initialPromotionConfig;s.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(s):void 0})}isLead(){let i=this.getStack();return i?i.lead===this:!0}getLead(){let{layoutId:i}=this.options;
17return 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 c=this.getStack();c&&c.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 c={};l.z&&zP("z",i,c,this.animationValues);for(let d=0;d<qP.length;d++)zP(`rotate${qP[d]}`,i,c,this.animationValues),zP(`skew${qP[d]}`,i,c,this.animationValues);i.render();for(let d in c)i.setStaticValue(d,c[d]),this.animationValues&&(this.animationValues[d]=c[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=Hf(s?.pointerEvents)||"",i.transform=l?l(this.latestValues,""):"none";return}let c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(i.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,i.pointerEvents=Hf(s?.pointerEvents)||""),this.hasProjected&&!ol(this.latestValues)&&(i.transform=l?l({},""):"none",this.hasProjected=!1);return}i.visibility="";let d=c.animationValues||c.latestValues;this.applyTransformsToTarget();let u=rB(this.projectionDeltaWithTransform,this.treeScale,d);l&&(u=l(d,u)),i.transform=u;let{x:f,y:p}=this.projectionDelta;i.transformOrigin=`${f.origin*100}% ${p.origin*100}% 0`,c.animationValues?i.opacity=c===this?d.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:i.opacity=c===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(let m in Ru){if(d[m]===void 0)continue;let{correct:h,applyTo:g,isCSSVariable:y}=Ru[m],v=u==="none"?d[m]:h(d[m],c);if(g){let x=g.length;for(let S=0;S<x;S++)i[g[S]]=v}else y?this.options.visualElement.renderState.vars[m]=v:i[m]=v}this.options.layoutId&&(i.pointerEvents=c===this?Hf(s?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(i=>i.currentAnimation?.stop()),this.root.nodes.forEach(aB),this.root.sharedNodes.clear()}}}function Sce(e){e.updateLayout()}function Cce(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:n}=e.options,o=t.source!==e.layout.source;n==="size"?Fn(d=>{let u=o?t.measuredBox[d]:t.layoutBox[d],f=oa(u);u.min=r[d].min,u.max=u.min+f}):fB(n,t.layoutBox,r)&&Fn(d=>{let u=o?t.measuredBox[d]:t.layoutBox[d],f=oa(r[d]);u.max=u.min+f,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+f)});let i=Du();Yf(i,r,t.layoutBox);let s=Du();o?Yf(s,e.applyTransform(a,!0),t.measuredBox):Yf(s,r,t.layoutBox);let l=!jP(i),c=!1;if(!e.resumeFrom){let d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){let{snapshot:u,layout:f}=d;if(u&&f){let p=ar();Jf(p,t.layoutBox,u.layoutBox);let m=ar();Jf(m,r,f.layoutBox),BP(p,m)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=m,e.relativeTargetOrigin=p,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:s,layoutDelta:i,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(e.isLead()){let{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function kce(e){Dn.value&&_u.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 Nce(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Ice(e){e.clearSnapshot()}function aB(e){e.clearMeasurements()}function nB(e){e.isLayoutDirty=!1}function Pce(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function oB(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Ece(e){e.resolveTargetDelta()}function Ace(e){e.calcProjection()}
vendor: 12,440 bytes, line 17
17function Lce(e){e.resetSkewAndRotation()}function Tce(e){e.removeLeadSnapshot()}function iB(e,t,r){e.translate=ht(t.translate,0,r),e.scale=ht(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function sB(e,t,r,a){e.min=ht(t.min,r.min,a),e.max=ht(t.max,r.max,a)}function Rce(e,t,r,a){sB(e.x,t.x,r.x,a),sB(e.y,t.y,r.y,a)}function Oce(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Dce={duration:.45,ease:[.4,0,.1,1]},lB=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),cB=lB("applewebkit/")&&!lB("chrome/")?Math.round:kr;function uB(e){e.min=cB(e.min),e.max=cB(e.max)}function Mce(e){uB(e.x),uB(e.y)}function fB(e,t,r){return e==="position"||e==="preserve-aspect"&&!xj(VP(t),VP(r),.2)}function _ce(e){return e!==e.root&&e.scroll?.wasRoot}var pB=Jw({attachResizeListener:(e,t)=>il(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0});var HP={current:void 0},Zw=Jw({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!HP.current){let e=new pB({});e.mount(window),e.setOptions({layoutScroll:!0}),HP.current=e}return HP.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"});var mB={pan:{Feature:$w},drag:{Feature:Gw,ProjectionNode:Zw,MeasureLayout:Kw}};function hB(e,t,r){let{props:a}=e;e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",r==="Start");let n="onHover"+r,o=a[n];o&&dt.postRender(()=>o(t,sl(t)))}var Qw=class extends ya{mount(){let{current:t}=this.node;t&&(this.unmount=mP(t,(r,a)=>(hB(this.node,a,"Start"),n=>hB(this.node,n,"End"))))}unmount(){}};var e1=class extends ya{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=Ni(il(this.node.current,"focus",()=>this.onFocus()),il(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function gB(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 n="onTap"+(r==="End"?"":r),o=a[n];o&&dt.postRender(()=>o(t,sl(t)))}var t1=class extends ya{mount(){let{current:t}=this.node;t&&(this.unmount=vP(t,(r,a)=>(gB(this.node,a,"Start"),(n,{success:o})=>gB(this.node,n,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};var GP=new WeakMap,WP=new WeakMap,Fce=e=>{let t=GP.get(e.target);t&&t(e)},jce=e=>{e.forEach(Fce)};function Bce({root:e,...t}){let r=e||document;WP.has(r)||WP.set(r,{});let a=WP.get(r),n=JSON.stringify(t);return a[n]||(a[n]=new IntersectionObserver(jce,{root:e,...t})),a[n]}function vB(e,t,r){let a=Bce(t);return GP.set(e,r),a.observe(e),()=>{GP.delete(e),a.unobserve(e)}}var Vce={some:0,all:1},r1=class extends ya{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:r,margin:a,amount:n="some",once:o}=t,i={root:r?r.current:void 0,rootMargin:a,threshold:typeof n=="number"?n:Vce[n]},s=l=>{let{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,o&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);let{onViewportEnter:d,onViewportLeave:u}=this.node.getProps(),f=c?d:u;f&&f(l)};return vB(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(Uce(t,r))&&this.startObserver()}unmount(){}};function Uce({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}var yB={inView:{Feature:r1},tap:{Feature:t1},focus:{Feature:e1},hover:{Feature:Qw}};var bB={layout:{ProjectionNode:Zw,MeasureLayout:Kw}};var xB={...pj,...yB,...mB,...bB};var G=VF(xB,nj);var n1=R(Q());var wB=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),qce=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,a)=>a?a.toUpperCase():r.toLowerCase()),$P=e=>{let t=qce(e);return t.charAt(0).toUpperCase()+t.slice(1)},a1=(...e)=>e.filter((t,r,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===r).join(" ").trim(),SB=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var n0=R(Q());var CB={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 kB=(0,n0.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:n="",children:o,iconNode:i,...s},l)=>(0,n0.createElement)("svg",{ref:l,...CB,width:t,height:t,stroke:e,strokeWidth:a?Number(r)*24/Number(t):r,className:a1("lucide",n),...!o&&!SB(s)&&{"aria-hidden":"true"},...s},[...i.map(([c,d])=>(0,n0.createElement)(c,d)),...Array.isArray(o)?o:[o]]));var K=(e,t)=>{let r=(0,n1.forwardRef)(({className:a,...n},o)=>(0,n1.createElement)(kB,{ref:o,iconNode:t,className:a1(`lucide-${wB($P(e))}`,`lucide-${e}`,a),...n}));return r.displayName=$P(e),r};var zce=[["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"}]],qt=K("activity",zce);var Hce=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Ka=K("arrow-right",Hce);var Wce=[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]],o0=K("award",Wce);var Gce=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],hc=K("bell",Gce);var $ce=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],Ai=K("book-open",$ce);var Kce=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],pn=K("bot",Kce);var Xce=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],ba=K("calendar",Xce);var Yce=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],nr=K("chart-column",Yce);var Jce=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],mr=K("check",Jce);var Zce=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Fu=K("chevron-down",Zce);var Qce=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],i0=K("chevron-left",Qce);var eue=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Uo=K("chevron-right",eue);var tue=[["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=K("circle-alert",tue);var rue=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],We=K("circle-check-big",rue);var aue=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],gc=K("circle-check",aue);var nue=[["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"}]],Ct=K("circle-x",nue);var oue=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],vt=K("clock",oue);var iue=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],Li=K("cloud",iue);var sue=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],mn=K("code",sue);var lue=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],gt=K("copy",lue);var cue=[["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"}]],Xa=K("database",cue);var uue=[["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"}]],tp=K("dollar-sign",uue);var due=[["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"}]],ll=K("download",due);var fue=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],jn=K("external-link",fue);var pue=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],qo=K("eye-off",pue);var mue=[["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"}]],Yr=K("eye",mue);var hue=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],jt=K("file-text",hue);var gue=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],Bn=K("funnel",gue);var vue=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],vc=K("gauge",vue);var yue=[["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"}]],ia=K("globe",yue);var bue=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]],Ti=K("grid-3x3",bue);var xue=[["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"}]],s0=K("grip-vertical",xue);var wue=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],ju=K("heart",wue);var Sue=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],l0=K("info",Sue);var Cue=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],Dr=K("key",Cue);var kue=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],jr=K("layers",kue);var Nue=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],us=K("layout-dashboard",Nue);
17var Iue=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],c0=K("link-2",Iue);var Pue=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],Ya=K("link",Pue);var Eue=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],xa=K("loader-circle",Eue);var Aue=[["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"}]],Ra=K("lock",Aue);var Lue=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]],cl=K("lock-open",Lue);var Tue=[["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"}]],ul=K("mail",Tue);var Rue=[["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 18h16",key:"19g7jn"}],["path",{d:"M4 6h16",key:"1o0s65"}]],u0=K("menu",Rue);var Oue=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],d0=K("message-circle",Oue);var Due=[["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"}]],dl=K("message-square",Due);var Mue=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],f0=K("monitor",Mue);var _ue=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],fl=K("moon",_ue);var Fue=[["path",{d:"M12.586 12.586 19 19",key:"ea5xo7"}],["path",{d:"M3.688 3.037a.497.497 0 0 0-.651.651l6.5 15.999a.501.501 0 0 0 .947-.062l1.569-6.083a2 2 0 0 1 1.448-1.479l6.124-1.579a.5.5 0 0 0 .063-.947z",key:"277e5u"}]],rp=K("mouse-pointer",Fue);var jue=[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]],yc=K("palette",jue);var Bue=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],Bu=K("pause",Bue);var Vue=[["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"}]],ds=K("pen",Vue);var Uue=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],Nr=K("play",Uue);var que=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Bt=K("plus",que);var zue=[["path",{d:"M18.36 6.64A9 9 0 0 1 20.77 15",key:"dxknvb"}],["path",{d:"M6.16 6.16a9 9 0 1 0 12.68 12.68",key:"1x7qb5"}],["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],p0=K("power-off",zue);var Hue=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],m0=K("power",Hue);var Wue=[["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"}]],hn=K("refresh-cw",Wue);var Gue=[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]],fs=K("rocket",Gue);var $ue=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],Ri=K("rotate-cw",$ue);var Kue=[["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"}]],Vu=K("save",Kue);var Xue=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],zo=K("search",Xue);var Yue=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],pl=K("send",Yue);var Jue=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],Oi=K("server",Jue);var Zue=[["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"}]],Oa=K("settings",Zue);var Que=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
17y:"oel41y"}]],Qe=K("shield",Que);var ede=[["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"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],kt=K("sparkles",ede);var tde=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],Ja=K("square-pen",tde);var rde=[["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"}]],Za=K("star",rde);var ade=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],Uu=K("sun",ade);var nde=[["path",{d:"M14.5 2v17.5c0 1.4-1.1 2.5-2.5 2.5c-1.4 0-2.5-1.1-2.5-2.5V2",key:"125lnx"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M14.5 16h-5",key:"1ox875"}]],ps=K("test-tube",nde);var ode=[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]],h0=K("timer",ode);var ide=[["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"}]],Kt=K("trash-2",ide);var sde=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],Br=K("trending-up",sde);var lde=[["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"}]],hr=K("triangle-alert",lde);var cde=[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]],g0=K("twitter",cde);var ude=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],ms=K("upload",ude);var dde=[["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"}]],hs=K("user",dde);var fde=[["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"}]],ml=K("users",fde);var pde=[["path",{d:"M18 16.98h-5.99c-1.1 0-1.95.94-2.48 1.9A4 4 0 0 1 2 17c.01-.7.2-1.4.57-2",key:"q3hayz"}],["path",{d:"m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06",key:"1go1hn"}],["path",{d:"m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8",key:"qlwsc0"}]],v0=K("webhook",pde);var mde=[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]],y0=K("workflow",mde);var hde=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],ap=K("wrench",hde);var gde=[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 6,230 bytes, line 17
17],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ir=K("x",gde);var vde=[["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"}]],et=K("zap",vde);var vs=R(Q());function NB(e){var t,r,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=NB(e[t]))&&(a&&(a+=" "),a+=r)}else for(r in e)e[r]&&(a&&(a+=" "),a+=r);return a}function KP(){for(var e,t,r=0,a="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=NB(e))&&(a&&(a+=" "),a+=t);return a}var Me=KP;var yde=e=>{let t=xde(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:i=>{let s=i.split("-");return s[0]===""&&s.length!==1&&s.shift(),EB(s,t)||bde(i)},getConflictingClassGroupIds:(i,s)=>{let l=r[i]||[];return s&&a[i]?[...l,...a[i]]:l}}},EB=(e,t)=>{if(e.length===0)return t.classGroupId;let r=e[0],a=t.nextPart.get(r),n=a?EB(e.slice(1),a):void 0;if(n)return n;if(t.validators.length===0)return;let o=e.join("-");return t.validators.find(({validator:i})=>i(o))?.classGroupId},IB=/^\[(.+)\]$/,bde=e=>{if(IB.test(e)){let t=IB.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},xde=e=>{let{theme:t,prefix:r}=e,a={nextPart:new Map,validators:[]};return Sde(Object.entries(e.classGroups),r).forEach(([o,i])=>{YP(i,a,o,t)}),a},YP=(e,t,r,a)=>{e.forEach(n=>{if(typeof n=="string"){let o=n===""?t:PB(t,n);o.classGroupId=r;return}if(typeof n=="function"){if(wde(n)){YP(n(a),t,r,a);return}t.validators.push({validator:n,classGroupId:r});return}Object.entries(n).forEach(([o,i])=>{YP(i,PB(t,o),r,a)})})},PB=(e,t)=>{let r=e;return t.split("-").forEach(a=>{r.nextPart.has(a)||r.nextPart.set(a,{nextPart:new Map,validators:[]}),r=r.nextPart.get(a)}),r},wde=e=>e.isThemeGetter,Sde=(e,t)=>t?e.map(([r,a])=>{let n=a.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([i,s])=>[t+i,s])):o);return[r,n]}):e,Cde=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,a=new Map,n=(o,i)=>{r.set(o,i),t++,t>e&&(t=0,a=r,r=new Map)};return{get(o){let i=r.get(o);if(i!==void 0)return i;if((i=a.get(o))!==void 0)return n(o,i),i},set(o,i){r.has(o)?r.set(o,i):n(o,i)}}};var kde=e=>{let{separator:t,experimentalParseClassName:r}=e,a=t.length===1,n=t[0],o=t.length,i=s=>{let l=[],c=0,d=0,u;for(let g=0;g<s.length;g++){let y=s[g];if(c===0){if(y===n&&(a||s.slice(g,g+o)===t)){l.push(s.slice(d,g)),d=g+o;continue}if(y==="/"){u=g;continue}}y==="["?c++:y==="]"&&c--}let f=l.length===0?s:s.substring(d),p=f.startsWith("!"),m=p?f.substring(1):f,h=u&&u>d?u-d:void 0;return{modifiers:l,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:h}};return r?s=>r({className:s,parseClassName:i}):i},Nde=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},Ide=e=>({cache:Cde(e.cacheSize),parseClassName:kde(e),...yde(e)}),Pde=/\s+/,Ede=(e,t)=>{let{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:n}=t,o=[],i=e.trim().split(Pde),s="";for(let l=i.length-1;l>=0;l-=1){let c=i[l],{modifiers:d,hasImportantModifier:u,baseClassName:f,maybePostfixModifierPosition:p}=r(c),m=!!p,h=a(m?f.substring(0,p):f);if(!h){if(!m){s=c+(s.length>0?" "+s:s);continue}if(h=a(f),!h){s=c+(s.length>0?" "+s:s);continue}m=!1}let g=Nde(d).join(":"),y=u?g+"!":g,v=y+h;if(o.includes(v))continue;o.push(v);let x=n(h,m);for(let S=0;S<x.length;++S){let b=x[S];o.push(y+b)}s=c+(s.length>0?" "+s:s)}return s};function Ade(){let e=0,t,r,a="";for(;e<arguments.length;)(t=arguments[e++])&&(r=AB(t))&&(a&&(a+=" "),a+=r);return a}var AB=e=>{if(typeof e=="string")return e;let t,r="";for(let a=0;a<e.length;a++)e[a]&&(t=AB(e[a]))&&(r&&(r+=" "),r+=t);return r};function Lde(e,...t){let r,a,n,o=i;function i(l){let c=t.reduce((d,u)=>u(d),e());return r=Ide(c),a=r.cache.get,n=r.cache.set,o=s,s(l)}function s(l){let c=a(l);if(c)return c;let d=Ede(l,r);return n(l,d),d}return function(){return o(Ade.apply(null,arguments))}}var or=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},LB=/^\[(?:([a-z-]+):)?(.+)\]$/i,Tde=/^\d+\/\d+$/,Rde=new Set(["px","full","screen"]),Ode=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Dde=/\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$/,Mde=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,_de=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Fde=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,hl=e=>np(e)||Rde.has(e)||Tde.test(e),bc=e=>op(e,"length",Wde),np=e=>!!e&&!Number.isNaN(Number(e)),XP=e=>op(e,"number",np),b0=e=>!!e&&Number.isInteger(Number(e)),jde=e=>e.endsWith("%")&&np(e.slice(0,-1)),ct=e=>LB.test(e),xc=e=>Ode.test(e),Bde=new Set(["length","size","percentage"]),Vde=e=>op(e,Bde,TB),Ude=e=>op(e,"position",TB),qde=new Set(["image","url"]),zde=e=>op(e,qde,$de),Hde=e=>op(e,"",Gde),x0=()=>!0,op=(e,t,r)=>{let a=LB.exec(e);return a?a[1]?typeof t=="string"?a[1]===t:t.has(a[1]):r(a[2]):!1},Wde=e=>Dde.test(e)&&!Mde.test(e),TB=()=>!1,Gde=e=>_de.test(e),$de=e=>Fde.test(e);var Kde=()=>{let e=or("colors"),t=or("spacing"),r=or("blur"),a=or("brightness"),n=or("borderColor"),o=or("borderRadius"),i=or("borderSpacing"),s=or("borderWidth"),l=or("contrast"),c=or("grayscale"),d=or("hueRotate"),u=or("invert"),f=or("gap"),p=or("gradientColorStops"),m=or("gradientColorStopPositions"),h=or("inset"),g=or("margin"),y=or("opacity"),v=or("padding"),x=or("saturate"),S=or("scale"),b=or("sepia"),w=or("skew"),k=or("space"),C=or("translate"),N=()=>["auto","contain","none"],E=()=>["auto","hidden","clip","visible","scroll"],L=()=>["auto",ct,t],T=()=>[ct,t],q=()=>["",hl,bc],_=()=>["auto",np,ct],B=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],I=()=>["solid","dashed","dotted","double","none"],A=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],M=()=>["start","end","center","between","around","evenly","stretch"],D=()=>
vendor: 6,586 bytes, line 17
17["","0",ct],V=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>[np,ct];return{cacheSize:500,separator:":",theme:{colors:[x0],spacing:[hl,bc],blur:["none","",xc,ct],brightness:P(),borderColor:[e],borderRadius:["none","","full",xc,ct],borderSpacing:T(),borderWidth:q(),contrast:P(),grayscale:D(),hueRotate:P(),invert:D(),gap:T(),gradientColorStops:[e],gradientColorStopPositions:[jde,bc],inset:L(),margin:L(),opacity:P(),padding:T(),saturate:P(),scale:P(),sepia:D(),skew:P(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",ct]}],container:["container"],columns:[{columns:[xc]}],"break-after":[{"break-after":V()}],"break-before":[{"break-before":V()}],"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:[...B(),ct]}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",b0,ct]}],basis:[{basis:L()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ct]}],grow:[{grow:D()}],shrink:[{shrink:D()}],order:[{order:["first","last","none",b0,ct]}],"grid-cols":[{"grid-cols":[x0]}],"col-start-end":[{col:["auto",{span:["full",b0,ct]},ct]}],"col-start":[{"col-start":_()}],"col-end":[{"col-end":_()}],"grid-rows":[{"grid-rows":[x0]}],"row-start-end":[{row:["auto",{span:[b0,ct]},ct]}],"row-start":[{"row-start":_()}],"row-end":[{"row-end":_()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ct]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ct]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...M()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...M(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...M(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"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",ct,t]}],"min-w":[{"min-w":[ct,t,"min","max","fit"]}],"max-w":[{"max-w":[ct,t,"none","full","min","max","fit","prose",{screen:[xc]},xc]}],h:[{h:[ct,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ct,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ct,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ct,t,"auto","min","max","fit"]}],"font-size":[{text:["base",xc,bc]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",XP]}],"font-family":[{font:[x0]}],"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",ct]}],"line-clamp":[{"line-clamp":["none",np,XP]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",hl,ct]}],"list-image":[{"list-image":["none",ct]}],"list-style-type":[{list:["none","disc","decimal",ct]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...I(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",hl,bc]}],"underline-offset":[{"underline-offset":["auto",hl,ct]}],"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:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ct]}],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",ct]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...B(),Ude]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Vde]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},zde]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}
17],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[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":[y]}],"border-style":[{border:[...I(),"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":[y]}
vendor: 4,468 bytes, line 17
17],"divide-style":[{divide:I()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...I()]}],"outline-offset":[{"outline-offset":[hl,ct]}],"outline-w":[{outline:[hl,bc]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[hl,bc]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",xc,Hde]}],"shadow-color":[{shadow:[x0]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...A(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":A()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[a]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",xc,ct]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[u]}],saturate:[{saturate:[x]}],sepia:[{sepia:[b]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[b]}],"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",ct]}],duration:[{duration:P()}],ease:[{ease:["linear","in","out","in-out",ct]}],delay:[{delay:P()}],animate:[{animate:["none","spin","ping","pulse","bounce",ct]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[b0,ct]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"skew-x":[{"skew-x":[w]}],"skew-y":[{"skew-y":[w]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ct]}],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",ct]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"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",ct]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[hl,bc,XP]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","
17none"]}]},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 RB=Lde(Kde);function U(...e){return RB(KP(e))}var Wo=R(Q());function w0(e,t){return function(){return e.apply(t,arguments)}}var{toString:Xde}=Object.prototype,{getPrototypeOf:ZP}=Object,{iterator:i1,toStringTag:_B}=Symbol,s1=(e=>t=>{let r=Xde.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Di=e=>(e=e.toLowerCase(),t=>s1(t)===e),l1=e=>t=>typeof t===e,{isArray:sp}=Array,ip=l1("undefined");function S0(e){return e!==null&&!ip(e)&&e.constructor!==null&&!ip(e.constructor)&&Vn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var FB=Di("ArrayBuffer");function Yde(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&FB(e.buffer),t}var Jde=l1("string"),Vn=l1("function"),jB=l1("number"),C0=e=>e!==null&&typeof e=="object",Zde=e=>e===!0||e===!1,o1=e=>{if(s1(e)!=="object")return!1;let t=ZP(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(_B in e)&&!(i1 in e)},Qde=e=>{if(!C0(e)||S0(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},efe=Di("Date"),tfe=Di("File"),rfe=e=>!!(e&&typeof e.uri<"u"),afe=e=>e&&typeof e.getParts<"u",nfe=Di("Blob"),ofe=Di("FileList"),ife=e=>C0(e)&&Vn(e.pipe);function sfe(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}var OB=sfe(),DB=typeof OB.FormData<"u"?OB.FormData:void 0,lfe=e=>{let t;return e&&(DB&&e instanceof DB||Vn(e.append)&&((t=s1(e))==="formdata"||t==="object"&&Vn(e.toString)&&e.toString()==="[object FormData]"))},cfe=Di("URLSearchParams"),[ufe,dfe,ffe,pfe]=["ReadableStream","Request","Response","Headers"].map(Di),mfe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function k0(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let a,n;if(typeof e!="object"&&(e=[e]),sp(e))for(a=0,n=e.length;a<n;a++)t.call(null,e[a],a,e);else{if(S0(e))return;let o=r?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length,s;for(a=0;a<i;a++)s=o[a],t.call(null,e[s],s,e)}}function BB(e,t){if(S0(e))return null;t=t.toLowerCase();let r=Object.keys(e),a=r.length,n;for(;a-- >0;)if(n=r[a],t===n.toLowerCase())return n;return null}var qu=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,VB=e=>!ip(e)&&e!==qu;function JP(){let{caseless:e,skipUndefined:t}=VB(this)&&this||{},r={},a=(n,o)=>
vendor: 6,450 bytes, line 17
17{if(o==="__proto__"||o==="constructor"||o==="prototype")return;let i=e&&BB(r,o)||o;o1(r[i])&&o1(n)?r[i]=JP(r[i],n):o1(n)?r[i]=JP({},n):sp(n)?r[i]=n.slice():(!t||!ip(n))&&(r[i]=n)};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&k0(arguments[n],a);return r}var hfe=(e,t,r,{allOwnKeys:a}={})=>(k0(t,(n,o)=>{r&&Vn(n)?Object.defineProperty(e,o,{value:w0(n,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{value:n,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:a}),e),gfe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),vfe=(e,t,r,a)=>{e.prototype=Object.create(t.prototype,a),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},yfe=(e,t,r,a)=>{let n,o,i,s={};if(t=t||{},e==null)return t;do{for(n=Object.getOwnPropertyNames(e),o=n.length;o-- >0;)i=n[o],(!a||a(i,e,t))&&!s[i]&&(t[i]=e[i],s[i]=!0);e=r!==!1&&ZP(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},bfe=(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},xfe=e=>{if(!e)return null;if(sp(e))return e;let t=e.length;if(!jB(t))return null;let r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},wfe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ZP(Uint8Array)),Sfe=(e,t)=>{let a=(e&&e[i1]).call(e),n;for(;(n=a.next())&&!n.done;){let o=n.value;t.call(e,o[0],o[1])}},Cfe=(e,t)=>{let r,a=[];for(;(r=e.exec(t))!==null;)a.push(r);return a},kfe=Di("HTMLFormElement"),Nfe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,a,n){return a.toUpperCase()+n}),MB=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Ife=Di("RegExp"),UB=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),a={};k0(r,(n,o)=>{let i;(i=t(n,o,e))!==!1&&(a[o]=i||n)}),Object.defineProperties(e,a)},Pfe=e=>{UB(e,(t,r)=>{if(Vn(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;let a=e[r];if(Vn(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+"'")})}})},Efe=(e,t)=>{let r={},a=n=>{n.forEach(o=>{r[o]=!0})};return sp(e)?a(e):a(String(e).split(t)),r},Afe=()=>{},Lfe=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Tfe(e){return!!(e&&Vn(e.append)&&e[_B]==="FormData"&&e[i1])}var Rfe=e=>{let t=new Array(10),r=(a,n)=>{if(C0(a)){if(t.indexOf(a)>=0)return;if(S0(a))return a;if(!("toJSON"in a)){t[n]=a;let o=sp(a)?[]:{};return k0(a,(i,s)=>{let l=r(i,n+1);!ip(l)&&(o[s]=l)}),t[n]=void 0,o}}return a};return r(e,0)},Ofe=Di("AsyncFunction"),Dfe=e=>e&&(C0(e)||Vn(e))&&Vn(e.then)&&Vn(e.catch),qB=((e,t)=>e?setImmediate:t?((r,a)=>(qu.addEventListener("message",({source:n,data:o})=>{n===qu&&o===r&&a.length&&a.shift()()},!1),n=>{a.push(n),qu.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Vn(qu.postMessage)),Mfe=typeof queueMicrotask<"u"?queueMicrotask.bind(qu):typeof process<"u"&&process.nextTick||qB,_fe=e=>e!=null&&Vn(e[i1]),X={isArray:sp,isArrayBuffer:FB,isBuffer:S0,isFormData:lfe,isArrayBufferView:Yde,isString:Jde,isNumber:jB,isBoolean:Zde,isObject:C0,isPlainObject:o1,isEmptyObject:Qde,isReadableStream:ufe,isRequest:dfe,isResponse:ffe,isHeaders:pfe,isUndefined:ip,isDate:efe,isFile:tfe,isReactNativeBlob:rfe,isReactNative:afe,isBlob:nfe,isRegExp:Ife,isFunction:Vn,isStream:ife,isURLSearchParams:cfe,isTypedArray:wfe,isFileList:ofe,forEach:k0,merge:JP,extend:hfe,trim:mfe,stripBOM:gfe,inherits:vfe,toFlatObject:yfe,kindOf:s1,kindOfTest:Di,endsWith:bfe,toArray:xfe,forEachEntry:Sfe,matchAll:Cfe,isHTMLForm:kfe,hasOwnProperty:MB,hasOwnProp:MB,reduceDescriptors:UB,freezeMethods:Pfe,toObjectSet:Efe,toCamelCase:Nfe,noop:Afe,toFiniteNumber:Lfe,findKey:BB,global:qu,isContextDefined:VB,isSpecCompliantForm:Tfe,toJSONObject:Rfe,isAsyncFn:Ofe,isThenable:Dfe,setImmediate:qB,asap:Mfe,isIterable:_fe};var gn=class e extends Error{static from(t,r,a,n,o,i){let s=new e(t.message,r||t.code,a,n,o);return s.cause=t,s.name=t.name,t.status!=null&&s.status==null&&(s.status=t.status),i&&Object.assign(s,i),s}constructor(t,r,a,n,o){super(t),Object.defineProperty(this,"message",{value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),a&&(this.config=a),n&&(this.request=n),o&&(this.response=o,this.status=o.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:X.toJSONObject(this.config),code:this.code,status:this.status}}};gn.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";gn.ERR_BAD_OPTION="ERR_BAD_OPTION";gn.ECONNABORTED="ECONNABORTED";gn.ETIMEDOUT="ETIMEDOUT";gn.ERR_NETWORK="ERR_NETWORK";gn.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";gn.ERR_DEPRECATED="ERR_DEPRECATED";gn.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";gn.ERR_BAD_REQUEST="ERR_BAD_REQUEST";gn.ERR_CANCELED="ERR_CANCELED";gn.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";gn.ERR_INVALID_URL="ERR_INVALID_URL";var rt=gn;var c1=null;function eE(e){return X.isPlainObject(e)||X.isArray(e)}function zB(e){return X.endsWith(e,"[]")?e.slice(0,-2):e}function QP(e,t,r){return e?e.concat(t).map(function(n,o){return n=zB(n),!r&&o?"["+n+"]":n}).join(r?".":""):t}function Ffe(e){return X.isArray(e)&&!e.some(eE)}var jfe=X.toFlatObject(X,{},null,function(t){return/^is[A-Z]/.test(t)});function Bfe(e,t,r){if(!X.isObject(e))throw new TypeError("target must be an object");t=t||new(c1||FormData),r=X.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,g){return!X.isUndefined(g[h])});let a=r.metaTokens,n=r.visitor||d,o=r.dots,i=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&X.isSpecCompliantForm(t);if(!X.isFunction(n))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(X.isDate(m))return m.toISOString();if(X.isBoolean(m))return m.toString();if(!l&&X.isBlob(m))throw new rt("Blob is not supported. Use a Buffer instead.");return X.isArrayBuffer(m)||X.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function d(m,h,g){let y=m;if(X.isReactNative(t)&&X.isReactNativeBlob(m))return t.append(QP(g,h,o),c(m)),!1;if(m&&!g&&typeof m=="object"){if(X.endsWith(h,"{}"))h=a?h:h.slice(0,-2),m=JSON.stringify(m);else if(X.isArray(m)&&Ffe(m)||(X.isFileList(m)||X.endsWith(h,"[]"))&&(y=X.toArray(m)))return h=zB(h),y.forEac
vendor: 4,196 bytes, line 17
17h(function(x,S){!(X.isUndefined(x)||x===null)&&t.append(i===!0?QP([h],S,o):i===null?h:h+"[]",c(x))}),!1}return eE(m)?!0:(t.append(QP(g,h,o),c(m)),!1)}let u=[],f=Object.assign(jfe,{defaultVisitor:d,convertValue:c,isVisitable:eE});function p(m,h){if(!X.isUndefined(m)){if(u.indexOf(m)!==-1)throw Error("Circular reference detected in "+h.join("."));u.push(m),X.forEach(m,function(y,v){(!(X.isUndefined(y)||y===null)&&n.call(t,y,X.isString(v)?v.trim():v,h,f))===!0&&p(y,h?h.concat(v):[v])}),u.pop()}}if(!X.isObject(e))throw new TypeError("data must be an object");return p(e),t}var wc=Bfe;function HB(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(a){return t[a]})}function WB(e,t){this._pairs=[],e&&wc(e,this,t)}var GB=WB.prototype;GB.append=function(t,r){this._pairs.push([t,r])};GB.toString=function(t){let r=t?function(a){return t.call(this,a,HB)}:HB;return this._pairs.map(function(n){return r(n[0])+"="+r(n[1])},"").join("&")};var u1=WB;function Vfe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function N0(e,t,r){if(!t)return e;let a=r&&r.encode||Vfe,n=X.isFunction(r)?{serialize:r}:r,o=n&&n.serialize,i;if(o?i=o(t,n):i=X.isURLSearchParams(t)?t.toString():new u1(t,n).toString(a),i){let s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}var tE=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){X.forEach(this.handlers,function(a){a!==null&&t(a)})}},rE=tE;var lp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0};var $B=typeof URLSearchParams<"u"?URLSearchParams:u1;var KB=typeof FormData<"u"?FormData:null;var XB=typeof Blob<"u"?Blob:null;var YB={isBrowser:!0,classes:{URLSearchParams:$B,FormData:KB,Blob:XB},protocols:["http","https","file","blob","url","data"]};var oE={};UO(oE,{hasBrowserEnv:()=>nE,hasStandardBrowserEnv:()=>Ufe,hasStandardBrowserWebWorkerEnv:()=>qfe,navigator:()=>aE,origin:()=>zfe});var nE=typeof window<"u"&&typeof document<"u",aE=typeof navigator=="object"&&navigator||void 0,Ufe=nE&&(!aE||["ReactNative","NativeScript","NS"].indexOf(aE.product)<0),qfe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",zfe=nE&&window.location.href||"http://localhost";var Pr={...oE,...YB};function iE(e,t){return wc(e,new Pr.classes.URLSearchParams,{visitor:function(r,a,n,o){return Pr.isNode&&X.isBuffer(r)?(this.append(a,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function Hfe(e){return X.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Wfe(e){let t={},r=Object.keys(e),a,n=r.length,o;for(a=0;a<n;a++)o=r[a],t[o]=e[o];return t}function Gfe(e){function t(r,a,n,o){let i=r[o++];if(i==="__proto__")return!0;let s=Number.isFinite(+i),l=o>=r.length;return i=!i&&X.isArray(n)?n.length:i,l?(X.hasOwnProp(n,i)?n[i]=[n[i],a]:n[i]=a,!s):((!n[i]||!X.isObject(n[i]))&&(n[i]=[]),t(r,a,n[i],o)&&X.isArray(n[i])&&(n[i]=Wfe(n[i])),!s)}if(X.isFormData(e)&&X.isFunction(e.entries)){let r={};return X.forEachEntry(e,(a,n)=>{t(Hfe(a),n,r,0)}),r}return null}var d1=Gfe;function $fe(e,t,r){if(X.isString(e))try{return(t||JSON.parse)(e),X.trim(e)}catch(a){if(a.name!=="SyntaxError")throw a}return(r||JSON.stringify)(e)}var sE={transitional:lp,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){let a=r.getContentType()||"",n=a.indexOf("application/json")>-1,o=X.isObject(t);if(o&&X.isHTMLForm(t)&&(t=new FormData(t)),X.isFormData(t))return n?JSON.stringify(d1(t)):t;if(X.isArrayBuffer(t)||X.isBuffer(t)||X.isStream(t)||X.isFile(t)||X.isBlob(t)||X.isReadableStream(t))return t;if(X.isArrayBufferView(t))return t.buffer;if(X.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(a.indexOf("application/x-www-form-urlencoded")>
vendor: 19,496 bytes, lines 17-22
17-1)return iE(t,this.formSerializer).toString();if((s=X.isFileList(t))||a.indexOf("multipart/form-data")>-1){let l=this.env&&this.env.FormData;return wc(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||n?(r.setContentType("application/json",!1),$fe(t)):t}],transformResponse:[function(t){let r=this.transitional||sE.transitional,a=r&&r.forcedJSONParsing,n=this.responseType==="json";if(X.isResponse(t)||X.isReadableStream(t))return t;if(t&&X.isString(t)&&(a&&!this.responseType||n)){let i=!(r&&r.silentJSONParsing)&&n;try{return JSON.parse(t,this.parseReviver)}catch(s){if(i)throw s.name==="SyntaxError"?rt.from(s,rt.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:Pr.classes.FormData,Blob:Pr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};X.forEach(["delete","get","head","post","put","patch"],e=>{sE.headers[e]={}});var cp=sE;var Kfe=X.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"]),JB=e=>{let t={},r,a,n;return e&&e.split(` 18`).forEach(function(i){n=i.indexOf(":"),r=i.substring(0,n).trim().toLowerCase(),a=i.substring(n+1).trim(),!(!r||t[r]&&Kfe[r])&&(r==="set-cookie"?t[r]?t[r].push(a):t[r]=[a]:t[r]=t[r]?t[r]+", "+a:a)}),t};var ZB=Symbol("internals");function I0(e){return e&&String(e).trim().toLowerCase()}function f1(e){return e===!1||e==null?e:X.isArray(e)?e.map(f1):String(e)}function Xfe(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 Yfe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function lE(e,t,r,a,n){if(X.isFunction(a))return a.call(this,t,r);if(n&&(t=r),!!X.isString(t)){if(X.isString(a))return t.indexOf(a)!==-1;if(X.isRegExp(a))return a.test(t)}}function Jfe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,a)=>r.toUpperCase()+a)}function Zfe(e,t){let r=X.toCamelCase(" "+t);["get","set","has"].forEach(a=>{Object.defineProperty(e,a+r,{value:function(n,o,i){return this[a].call(this,t,n,o,i)},configurable:!0})})}var up=class{constructor(t){t&&this.set(t)}set(t,r,a){let n=this;function o(s,l,c){let d=I0(l);if(!d)throw new Error("header name must be a non-empty string");let u=X.findKey(n,d);(!u||n[u]===void 0||c===!0||c===void 0&&n[u]!==!1)&&(n[u||l]=f1(s))}let i=(s,l)=>X.forEach(s,(c,d)=>o(c,d,l));if(X.isPlainObject(t)||t instanceof this.constructor)i(t,r);else if(X.isString(t)&&(t=t.trim())&&!Yfe(t))i(JB(t),r);else if(X.isObject(t)&&X.isIterable(t)){let s={},l,c;for(let d of t){if(!X.isArray(d))throw TypeError("Object iterator must return a key-value pair");s[c=d[0]]=(l=s[c])?X.isArray(l)?[...l,d[1]]:[l,d[1]]:d[1]}i(s,r)}else t!=null&&o(r,t,a);return this}get(t,r){if(t=I0(t),t){let a=X.findKey(this,t);if(a){let n=this[a];if(!r)return n;if(r===!0)return Xfe(n);if(X.isFunction(r))return r.call(this,n,a);if(X.isRegExp(r))return r.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=I0(t),t){let a=X.findKey(this,t);return!!(a&&this[a]!==void 0&&(!r||lE(this,this[a],a,r)))}return!1}delete(t,r){let a=this,n=!1;function o(i){if(i=I0(i),i){let s=X.findKey(a,i);s&&(!r||lE(a,a[s],s,r))&&(delete a[s],n=!0)}}return X.isArray(t)?t.forEach(o):o(t),n}clear(t){let r=Object.keys(this),a=r.length,n=!1;for(;a--;){let o=r[a];(!t||lE(this,this[o],o,t,!0))&&(delete this[o],n=!0)}return n}normalize(t){let r=this,a={};return X.forEach(this,(n,o)=>{let i=X.findKey(a,o);if(i){r[i]=f1(n),delete r[o];return}let s=t?Jfe(o):String(o).trim();s!==o&&delete r[o],r[s]=f1(n),a[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let r=Object.create(null);return X.forEach(this,(a,n)=>{a!=null&&a!==!1&&(r[n]=t&&X.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(` 19`)}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(n=>a.set(n)),a}static accessor(t){let a=(this[ZB]=this[ZB]={accessors:{}}).accessors,n=this.prototype;function o(i){let s=I0(i);a[s]||(Zfe(n,i),a[s]=!0)}return X.isArray(t)?t.forEach(o):o(t),this}};up.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);X.reduceDescriptors(up.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(a){this[r]=a}}});X.freezeMethods(up);var sa=up;function P0(e,t){let r=this||cp,a=t||r,n=sa.from(a.headers),o=a.data;return X.forEach(e,function(s){o=s.call(r,o,n.normalize(),t?t.status:void 0)}),n.normalize(),o}function E0(e){return!!(e&&e.__CANCEL__)}var cE=class extends rt{constructor(t,r,a){super(t??"canceled",rt.ERR_CANCELED,r,a),this.name="CanceledError",this.__CANCEL__=!0}},gs=cE;function A0(e,t,r){let a=r.config.validateStatus;!r.status||!a||a(r.status)?e(r):t(new rt("Request failed with status code "+r.status,[rt.ERR_BAD_REQUEST,rt.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function uE(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Qfe(e,t){e=e||10;let r=new Array(e),a=new Array(e),n=0,o=0,i;return t=t!==void 0?t:1e3,function(l){let c=Date.now(),d=a[o];i||(i=c),r[n]=l,a[n]=c;let u=o,f=0;for(;u!==n;)f+=r[u++],u=u%e;if(n=(n+1)%e,n===o&&(o=(o+1)%e),c-i<t)return;let p=d&&c-d;return p?Math.round(f*1e3/p):void 0}}var QB=Qfe;function epe(e,t){let r=0,a=1e3/t,n,o,i=(c,d=Date.now())=>{r=d,n=null,o&&(clearTimeout(o),o=null),e(...c)};return[(...c)=>{let d=Date.now(),u=d-r;u>=a?i(c,d):(n=c,o||(o=setTimeout(()=>{o=null,i(n)},a-u)))},()=>n&&i(n)]}var e6=epe;var dp=(e,t,r=3)=>{let a=0,n=QB(50,250);return e6(o=>{let i=o.loaded,s=o.lengthComputable?o.total:void 0,l=i-a,c=n(l),d=i<=s;a=i;let u={loaded:i,total:s,progress:s?i/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&d?(s-i)/c:void 0,event:o,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(u)},r)},dE=(e,t)=>{let r=e!=null;return[a=>t[0]({lengthComputable:r,total:e,loaded:a}),t[1]]},fE=e=>(...t)=>X.asap(()=>e(...t));var t6=Pr.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Pr.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Pr.origin),Pr.navigator&&/(msie|trident)/i.test(Pr.navigator.userAgent)):()=>!0;var r6=Pr.hasStandardBrowserEnv?{write(e,t,r,a,n,o,i){if(typeof document>"u")return;let s=[`${e}=${encodeURIComponent(t)}`];X.isNumber(r)&&s.push(`expires=${new Date(r).toUTCString()}`),X.isString(a)&&s.push(`path=${a}`),X.isString(n)&&s.push(`domain=${n}`),o===!0&&s.push("secure"),X.isString(i)&&s.push(`SameSite=${i}`),document.cookie=s.join("; ")},read(e){if(typeof document>"u")return null;let t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function pE(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function mE(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function L0(e,t,r){let a=!pE(t);return e&&(a||r==!1)?mE(e,t):t}var a6=e=>e instanceof sa?{...e}:e;function Mi(e,t){t=t||{};let r={};function a(c,d,u,f){return X.isPlainObject(c)&&X.isPlainObject(d)?X.merge.call({caseless:f},c,d):X.isPlainObject(d)?X.merge({},d):X.isArray(d)?d.slice():d}function n(c,d,u,f){if(X.isUndefined(d)){if(!X.isUndefined(c))return a(void 0,c,u,f)}else return a(c,d,u,f)}function o(c,d){if(!X.isUndefined(d))return a(void 0,d)}function i(c,d){if(X.isUndefined(d)){if(!X.isUndefined(c))return a(void 0,c)}else return a(void 0,d)}function s(c,d,u){if(u in t)return a(c,d);if(u in e)return a(void 0,c)}let l={url:o,method:o,data:o,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:(c,d,u)=>n(a6(c),a6(d),u,!0)};return X.forEach(Object.keys({...e,...t}),function(d){if(d==="__proto__"||d==="constructor"||d==="prototype")return;let u=X.hasOwnProp(l,d)?l[d]:n,f=u(e[d],t[d],d);X.isUndefined(f)&&u!==s||(r[d]=f)}),r}var p1=e=>{let t=Mi({},e),{data:r,withXSRFToken:a,xsrfHeaderName:n,xsrfCookieName:o,headers:i,auth:s}=t;if(t.headers=i=sa.from(i),t.url=N0(L0(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&i.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),X.isFormData(r)){if(Pr.hasStandardBrowserEnv||Pr.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(X.isFunction(r.getHeaders)){let l=r.getHeaders(),c=["content-type","content-length"];Object.entries(l).forEach(([d,u])=>{c.includes(d.toLowerCase())&&i.set(d,u)})}}if(Pr.hasStandardBrowserEnv&&(a&&X.isFunction(a)&&(a=a(t)),a||a!==!1&&t6(t.url))){let l=n&&o&&r6.read(o);l&&i.set(n,l)}return t};var tpe=typeof XMLHttpRequest<"u",n6=tpe&&function(e){return new Promise(function(r,a){let n=p1(e),o=n.data,i=sa.from(n.headers).normalize(),{responseType:s,onUploadProgress:l,onDownloadProgress:c}=n,d,u,f,p,m;function h(){p&&p(),m&&m(),n.cancelToken&&n.cancelToken.unsubscribe(d),n.signal&&n.signal.removeEventListener("abort",d)}let g=new XMLHttpRequest;g.open(n.method.toUpperCase(),n.url,!0),g.timeout=n.timeout;function y(){if(!g)return;let x=sa.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),b={data:!s||s==="text"||s==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:x,config:e,request:g};A0(function(k){r(k),h()},function(k){a(k),h()},b),g=null}"onloadend"in g?g.onloadend=y:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(y)},g.onabort=function(){g&&(a(new rt("Request aborted",rt.ECONNABORTED,e,g)),g=null)},g.onerror=function(S){let b=S&&S.message?S.message:"Network Error",w=new rt(b,rt.ERR_NETWORK,e,g);w.event=S||null,a(w),g=null},g.ontimeout=function(){let S=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded",b=n.transitional||lp;n.timeoutErrorMessage&&(S=n.timeoutErrorMessage),a(new rt(S,b.clarifyTimeoutError?rt.ETIMEDOUT:rt.ECONNABORTED,e,g)),g=null},o===void 0&&i.setContentType(null),"setRequestHeader"in g&&X.forEach(i.toJSON(),function(S,b){g.setRequestHeader(b,S)}),X.isUndefined(n.withCredentials)||(g.withCredentials=!!n.withCredentials),s&&s!=="json"&&(g.responseType=n.responseType),c&&([f,m]=dp(c,!0),g.addEventListener("progress",f)),l&&g.upload&&([u,p]=dp(l),g.upload.addEventListener("progress",u),g.upload.addEventListener("loadend",p)),(n.cancelToken||n.signal)&&(d=x=>{g&&(a(!x||x.type?new gs(null,e,g):x),g.abort(),g=null)},n.cancelToken&&n.cancelToken.subscribe(d),n.signal&&(n.signal.aborted?d():n.signal.addEventListener("abort",d)));let v=uE(n.url);if(v&&Pr.protocols.indexOf(v)===-1){a(new rt("Unsupported protocol "+v+":",rt.ERR_BAD_REQUEST,e));return}g.send(o||null)})};var rpe=(e,t)=>{let{length:r}=e=e?e.filter(Boolean):[];if(t||r){let a=new AbortController,n,o=function(c){if(!n){n=!0,s();let d=c instanceof Error?c:this.reason;a.abort(d instanceof rt?d:new gs(d instanceof Error?d.message:d))}},i=t&&setTimeout(()=>{i=null,o(new rt(`timeout of ${t}ms exceeded`,rt.ETIMEDOUT))},t),s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),e=null)};e.forEach(c=>c.addEventListener("abort",o));let{signal:l}=a;return l.unsubscribe=()=>X.asap(s),l}},o6=rpe;var ape=function*(e,t){let r=e.byteLength;if(!t||r<t){yield e;return}let a=0,n;for(;a<r;)n=a+t,yield e.slice(a,n),a=n},npe=async function*(e,t){for await(let r of ope(e))yield*ape(r,t)},ope=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()}},hE=(e,t,r,a)=>{let n=npe(e,t),o=0,i,s=l=>{i||(i=!0,a&&a(l))};return new ReadableStream({async pull(l){try{let{done:c,value:d}=await n.next();if(c){s(),l.close();return}let u=d.byteLength;if(r){let f=o+=u;r(f)}l.enqueue(new Uint8Array(d))}catch(c){throw s(c),c}},cancel(l){return s(l),n.return()}},{highWaterMark:2})};var i6=64*1024,{isFunction:m1}=X,ipe=(({Request:e,Response:t})=>({Request:e,Response:t}))(X.global),{ReadableStream:s6,TextEncoder:l6}=X.global,c6=(e,...t)=>{try{return!!e(...t)}catch{return!1}},spe=e=>{e=X.merge.call({skipUndefined:!0},ipe,e);let{fetch:t,Request:r,Response:a}=e,n=t?m1(t):typeof fetch=="function",o=m1(r),i=m1(a);if(!n)return!1;let s=n&&m1(s6),l=n&&(typeof l6=="function"?(m=>h=>m.encode(h))(new l6):async m=>new Uint8Array(await new r(m).arrayBuffer())),c=o&&s&&c6(()=>{let m=!1,h=new r(Pr.origin,{body:new s6,method:"POST",get duplex(){return m=!0,"half"}}).headers.has("Content-Type");return m&&!h}),d=i&&s&&c6(()=>X.isReadableStream(new a("").body)),u={stream:d&&(m=>m.body)};n&&["text","arrayBuffer","blob","formData","stream"].forEach(m=>{!u[m]&&(u[m]=(h,g)=>{let y=h&&h[m];if(y)return y.call(h);throw new rt(`Response type '${m}' is not supported`,rt.ERR_NOT_SUPPORT,g)})});let f=async m=>{if(m==null)return 0;if(X.isBlob(m))return m.size;if(X.isSpecCompliantForm(m))return(await new r(Pr.origin,{method:"POST",body:m}).arrayBuffer()).byteLength;if(X.isArrayBufferView(m)||X.isArrayBuffer(m))return m.byteLength;if(X.isURLSearchParams(m)&&(m=m+""),X.isString(m))return(await l(m)).byteLength},p=async(m,h)=>{let g=X.toFiniteNumber(m.getContentLength());return g??f(h)};return async m=>{let{url:h,method:g,data:y,signal:v,cancelToken:x,timeout:S,onDownloadProgress:b,onUploadProgress:w,responseType:k,headers:C,withCredentials:N="same-origin",fetchOptions:E}=p1(m),L=t||fetch;k=k?(k+"").toLowerCase():"text";let T=o6([v,x&&x.toAbortSignal()],S),q=null,_=T&&T.unsubscribe&&(()=>{T.unsubscribe()}),B;try{if(w&&c&&g!=="get"&&g!=="head"&&(B=await p(C,y))!==0){let P=new r(h,{method:"POST",body:y,duplex:"half"}),O;if(X.isFormData(y)&&(O=P.headers.get("content-type"))&&C.setContentType(O),P.body){let[j,W]=dE(B,dp(fE(w)));y=hE(P.body,i6,j,W)}}X.isString(N)||(N=N?"include":"omit");let I=o&&"credentials"in r.prototype,A={...E,signal:T,method:g.toUpperCase(),headers:C.normalize().toJSON(),body:y,duplex:"half",credentials:I?N:void 0};q=o&&new r(h,A);let M=await(o?L(q,E):L(h,A)),D=d&&(k==="stream"||k==="response");if(d&&(b||D&&_)){let P={};["status","statusText","headers"].forEach(ee=>{P[ee]=M[ee]});let O=X.toFiniteNumber(M.headers.get("content-length")),[j,W]=b&&dE(O,dp(fE(b),!0))||[];M=new a(hE(M.body,i6,j,()=>{W&&W(),_&&_()}),P)}k=k||"text";let V=await u[X.findKey(u,k)||"text"](M,m);return!D&&_&&_(),await new Promise((P,O)=>{A0(P,O,{data:V,headers:sa.from(M.headers),status:M.status,statusText:M.statusText,config:m,request:q})})}catch(I){throw _&&_(),I&&I.name==="TypeError"&&/Load failed|fetch/i.test(I.message)?Object.assign(new rt("Network Error",rt.ERR_NETWORK,m,q,I&&I.response),{cause:I.cause||I}):rt.from(I,I&&I.code,m,q,I&&I.response)}}},lpe=new Map,gE=e=>{let t=e&&e.env||{},{fetch:r,Request:a,Response:n}=t,o=[a,n,r],i=o.length,s=i,l,c,d=lpe;for(;s--;)l=o[s],c=d.get(l),c===void 0&&d.set(l,c=s?new Map:spe(t)),d=c;return c},dit=gE();var vE={http:c1,xhr:n6,fetch:{get:gE}};X.forEach(vE,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});var u6=e=>`- ${e}`,upe=e=>X.isFunction(e)||e===null||e===!1;function dpe(e,t){e=X.isArray(e)?e:[e];let{length:r}=e,a,n,o={};for(let i=0;i<r;i++){a=e[i];let s;if(n=a,!upe(a)&&(n=vE[(s=String(a)).toLowerCase()],n===void 0))throw new rt(`Unknown adapter '${s}'`);if(n&&(X.isFunction(n)||(n=n.get(t))))break;o[s||"#"+i]=n}if(!n){let i=Object.entries(o).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build")),s=r?i.length>1?`since : 20`+i.map(u6).join(` 21`):" "+u6(i[0]):"as no adapter specified";throw new rt("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return n}var h1={getAdapter:dpe,adapters:vE};function yE(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new gs(null,e)}function g1(e){return yE(e),e.headers=sa.from(e.headers),e.data=P0.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),h1.getAdapter(e.adapter||cp.adapter,e)(e).then(function(a){return yE(e),a.data=P0.call(e,e.transformResponse,a),a.headers=sa.from(a.headers),a},function(a){return E0(a)||(yE(e),a&&a.response&&(a.response.data=P0.call(e,e.transformResponse,a.response),a.response.headers=sa.from(a.response.headers))),Promise.reject(a)})}var v1="1.13.6";var y1={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{y1[e]=function(a){return typeof a===e||"a"+(t<1?"n ":" ")+e}});var d6={};y1.transitional=function(t,r,a){function n(o,i){return"[Axios v"+v1+"] Transitional option '"+o+"'"+i+(a?". "+a:"")}return(o,i,s)=>{if(t===!1)throw new rt(n(i," has been removed"+(r?" in "+r:"")),rt.ERR_DEPRECATED);return r&&!d6[i]&&(d6[i]=!0,console.warn(n(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,i,s):!0}};y1.spelling=function(t){return(r,a)=>(console.warn(`${a} is likely a misspelling of ${t}`),!0)};function fpe(e,t,r){if(typeof e!="object")throw new rt("options must be an object",rt.ERR_BAD_OPTION_VALUE);let a=Object.keys(e),n=a.length;for(;n-- >0;){let o=a[n],i=t[o];if(i){let s=e[o],l=s===void 0||i(s,o,e);if(l!==!0)throw new rt("option "+o+" must be "+l,rt.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new rt("Unknown option "+o,rt.ERR_BAD_OPTION)}}var T0={assertOptions:fpe,validators:y1};var Ho=T0.validators,fp=class{constructor(t){this.defaults=t||{},this.interceptors={request:new rE,response:new rE}}async request(t,r){try{return await this._request(t,r)}catch(a){if(a instanceof Error){let n={};Error.captureStackTrace?Error.captureStackTrace(n):n=new Error;let o=n.stack?n.stack.replace(/^.+\n/,""):"";try{a.stack?o&&!String(a.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(a.stack+=` 22`+o):a.stack=o}catch{}}throw a}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Mi(this.defaults,r);let{transitional:a,paramsSerializer:n,headers:o}=r;a!==void 0&&T0.assertOptions(a,{silentJSONParsing:Ho.transitional(Ho.boolean),forcedJSONParsing:Ho.transitional(Ho.boolean),clarifyTimeoutError:Ho.transitional(Ho.boolean),legacyInterceptorReqResOrdering:Ho.transitional(Ho.boolean)},!1),n!=null&&(X.isFunction(n)?r.paramsSerializer={serialize:n}:T0.assertOptions(n,{encode:Ho.function,serialize:Ho.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),T0.assertOptions(r,{baseUrl:Ho.spelling("baseURL"),withXsrfToken:Ho.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=o&&X.merge(o.common,o[r.method]);
vendor: 2,609 bytes, line 22
22o&&X.forEach(["delete","get","head","post","put","patch","common"],m=>{delete o[m]}),r.headers=sa.concat(i,o);let s=[],l=!0;this.interceptors.request.forEach(function(h){if(typeof h.runWhen=="function"&&h.runWhen(r)===!1)return;l=l&&h.synchronous;let g=r.transitional||lp;g&&g.legacyInterceptorReqResOrdering?s.unshift(h.fulfilled,h.rejected):s.push(h.fulfilled,h.rejected)});let c=[];this.interceptors.response.forEach(function(h){c.push(h.fulfilled,h.rejected)});let d,u=0,f;if(!l){let m=[g1.bind(this),void 0];for(m.unshift(...s),m.push(...c),f=m.length,d=Promise.resolve(r);u<f;)d=d.then(m[u++],m[u++]);return d}f=s.length;let p=r;for(;u<f;){let m=s[u++],h=s[u++];try{p=m(p)}catch(g){h.call(this,g);break}}try{d=g1.call(this,p)}catch(m){return Promise.reject(m)}for(u=0,f=c.length;u<f;)d=d.then(c[u++],c[u++]);return d}getUri(t){t=Mi(this.defaults,t);let r=L0(t.baseURL,t.url,t.allowAbsoluteUrls);return N0(r,t.params,t.paramsSerializer)}};X.forEach(["delete","get","head","options"],function(t){fp.prototype[t]=function(r,a){return this.request(Mi(a||{},{method:t,url:r,data:(a||{}).data}))}});X.forEach(["post","put","patch"],function(t){function r(a){return function(o,i,s){return this.request(Mi(s||{},{method:t,headers:a?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}fp.prototype[t]=r(),fp.prototype[t+"Form"]=r(!0)});var R0=fp;var bE=class e{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(o){r=o});let a=this;this.promise.then(n=>{if(!a._listeners)return;let o=a._listeners.length;for(;o-- >0;)a._listeners[o](n);a._listeners=null}),this.promise.then=n=>{let o,i=new Promise(s=>{a.subscribe(s),o=s}).then(n);return i.cancel=function(){a.unsubscribe(o)},i},t(function(o,i,s){a.reason||(a.reason=new gs(o,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(n){t=n}),cancel:t}}},f6=bE;function xE(e){return function(r){return e.apply(null,r)}}function wE(e){return X.isObject(e)&&e.isAxiosError===!0}var SE={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
22alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(SE).forEach(([e,t])=>{SE[t]=e});var p6=SE;function m6(e){let t=new R0(e),r=w0(R0.prototype.request,t);return X.extend(r,R0.prototype,t,{allOwnKeys:!0}),X.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return m6(Mi(e,n))},r}var Jr=m6(cp);Jr.Axios=R0;Jr.CanceledError=gs;Jr.CancelToken=f6;Jr.isCancel=E0;Jr.VERSION=v1;Jr.toFormData=wc;Jr.AxiosError=rt;Jr.Cancel=Jr.CanceledError;Jr.all=function(t){return Promise.all(t)};Jr.spread=xE;Jr.isAxiosError=wE;Jr.mergeConfig=Mi;Jr.AxiosHeaders=sa;Jr.formToJSON=e=>d1(X.isHTMLForm(e)?new FormData(e):e);Jr.getAdapter=h1.getAdapter;Jr.HttpStatusCode=p6;Jr.default=Jr;var Ye=Jr;var{Axios:cst,AxiosError:ust,CanceledError:dst,isCancel:fst,CancelToken:pst,VERSION:mst,all:hst,Cancel:gst,isAxiosError:vst,spread:yst,toFormData:bst,AxiosHeaders:xst,HttpStatusCode:wst,formToJSON:Sst,getAdapter:Cst,mergeConfig:kst}=Ye;var wt={projects:{webhookConnections:"YOUR_WEBHOOK_CONNECTIONS_PROJECT_ID",eventLog:"YOUR_EVENT_LOG_PROJECT_ID",securityIncidents:"YOUR_SECURITY_INCIDENTS_PROJECT_ID",credentials:"YOUR_CREDENTIALS_PROJECT_ID",apiEndpoints:"YOUR_API_ENDPOINTS_PROJECT_ID",apiLogs:"YOUR_API_LOGS_PROJECT_ID",templates:"YOUR_TEMPLATES_PROJECT_ID",userManagement:"YOUR_USER_MANAGEMENT_PROJECT_ID"},agents:{assistant:{agentId:"YOUR_AGENT_ID",publicAgentId:"YOUR_PUBLIC_AGENT_ID"},teamOrchestrator:{agentId:"YOUR_TEAM_ORCHESTRATOR_ID",publicAgentId:"YOUR_TEAM_ORCHESTRATOR_PUBLIC_ID"}},webhooks:{agentBridge:"YOUR_AGENT_BRIDGE_WEBHOOK_ID"},settings:{appName:"Conjunction Junction",appSubtitle:"Secure API & Webhook Management",features:{agentChat:!0,agentBridge:!0,analytics:!0,monitoring:!0}}};var at=R(ke()),ppe=()=>{let[e,t]=Wo.useState(!1),[r,a]=Wo.useState([]),[n,o]=Wo.useState(""),[i,s]=Wo.useState(!1),[l,c]=Wo.useState(null),[d,u]=Wo.useState(null),f=Wo.useRef(null),p=wt.agents.assistant.agentId,m=wt.agents.assistant.publicAgentId;Wo.useEffect(()=>{f.current?.scrollIntoView({behavior:"smooth"})},[r]),Wo.useEffect(()=>(e&&!l&&h(),()=>{d&&d.close()}),[e]);let h=async()=>{try{let S=(await Ye.post(`https://www.taskade.com/api/agents/${m}/conversations/public`)).data.id;c(S);let b=new EventSource(`https://www.taskade.com/api/agents/${m}/conversations/${S}/stream`);b.onopen=()=>{console.log("\u2705 Agent stream connected")},b.onmessage=w=>{try{let k=JSON.parse(w.data);k.type==="message"&&k.role==="assistant"&&a(C=>{let N=C[C.length-1];
22return N&&N.role==="assistant"?[...C.slice(0,-1),{...N,content:N.content+k.content}]:[...C,{id:k.id||Date.now().toString(),role:"assistant",content:k.content,timestamp:new Date}]}),k.type==="done"&&s(!1)}catch(k){console.error("Error parsing SSE message:",k)}},b.onerror=w=>{console.error("SSE error:",w),b.close()},u(b),a([{id:"greeting",role:"assistant",content:"\u{1F44B} Hi! I'm your RainbowBridge Assistant. I can help you with webhook management, security settings, API integrations, and troubleshooting. What would you like to work on today?",timestamp:new Date}])}catch(x){console.error("Failed to initialize chat:",x)}},g=async()=>{if(!n.trim()||!l||i)return;let x={id:Date.now().toString(),role:"user",content:n,timestamp:new Date};a(S=>[...S,x]),o(""),s(!0);try{await Ye.post(`https://www.taskade.com/api/agents/${m}/conversations/${l}/messages`,{content:n,role:"user"})}catch(S){console.error("Failed to send message:",S),s(!1),a(b=>[...b,{id:Date.now().toString(),role:"assistant",content:"Sorry, I encountered an error. Please try again.",timestamp:new Date}])}},y=x=>
22{x.key==="Enter"&&!x.shiftKey&&(x.preventDefault(),g())},v=[{icon:"\u{1F517}",text:"Create Webhook",prompt:"Help me set up a new webhook connection"},{icon:"\u{1F512}",text:"Check Security",prompt:"Review my security settings and user permissions"},{icon:"\u{1F41B}",text:"Debug Issue",prompt:"Help me troubleshoot a webhook that's not working"},{icon:"\u{1F4CA}",text:"View Logs",prompt:"Show me recent API activity and any errors"}];return(0,at.jsxs)(at.Fragment,{children:[(0,at.jsx)(Ue,{children:!e&&(0,at.jsxs)(G.button,{initial:{scale:0,opacity:0},animate:{scale:1,opacity:1},exit:{scale:0,opacity:0},onClick:()=>t(!0),className:"fixed bottom-6 right-6 z-50 p-4 rounded-full bg-gradient-to-r from-cyan-500 via-purple-500 to-pink-500 text-white shadow-2xl shadow-cyan-500/50 hover:shadow-cyan-500/70 transition-all hover:scale-110",children:[(0,at.jsx)(d0,{className:"w-6 h-6"}),(0,at.jsx)("div",{className:"absolute -top-1 -right-1 w-3 h-3 bg-green-400 rounded-full animate-pulse"})]})}),(0,at.jsx)(Ue,{children:e&&(0,at.jsxs)(G.div,{initial:{opacity:0,y:20,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:20,scale:.95},className:"fixed bottom-6 right-6 z-50 w-[400px] h-[600px] rounded-2xl backdrop-blur-xl bg-slate-900/95 border border-cyan-500/30 shadow-2xl shadow-cyan-500/20 flex flex-col overflow-hidden",children:[(0,at.jsxs)("div",{className:"flex items-center justify-between p-4 border-b border-white/10 bg-gradient-to-r from-cyan-500/10 via-purple-500/10 to-pink-500/10",children:[(0,at.jsxs)("div",{className:"flex items-center gap-3",children:[(0,at.jsxs)("div",{className:"relative",children:[(0,at.jsx)("div",{className:"p-2 rounded-lg bg-gradient-to-r from-cyan-500 to-purple-500",children:(0,at.jsx)(kt,{className:"w-5 h-5 text-white"})}),(0,at.jsx)("div",{className:"absolute -bottom-1 -right-1 w-3 h-3 bg-green-400 rounded-full border-2 border-slate-900"})]}),(0,at.jsxs)("div",{children:[(0,at.jsx)("h3",{className:"text-sm font-semibold text-white",children:"Conjunction Junction Assistant"}),(0,at.jsx)("p",{className:"text-xs text-slate-400",children:"Always here to help"})]})]}),(0,at.jsx)("button",{onClick:()=>t(!1),className:"p-2 rounded-lg hover:bg-white/10 transition-colors",children:(0,at.jsx)(Ir,{className:"w-5 h-5 text-slate-400"})})]}),(0,at.jsxs)("div",{className:"flex-1 overflow-y-auto p-4 space-y-4",children:[r.length===1&&r[0].role==="assistant"&&(0,at.jsxs)("div",{className:"space-y-2 mb-4",children:[(0,at.jsx)("p",{className:"text-xs text-slate-400 text-center mb-3",children:"Quick actions:"}),(0,at.jsx)("div",{className:"grid grid-cols-2 gap-2",children:v.map((x,S)=>(0,at.jsxs)("button",{onClick:()=>{o(x.prompt),setTimeout(()=>g(),100)},className:"p-3 rounded-lg bg-white/5 hover:bg-white/10 border border-white/10 hover:border-cyan-500/30 transition-all text-left group",children:[(0,at.jsx)("div",{className:"text-lg mb-1",children:x.icon}),(0,at.jsx)("div",{className:"text-xs font-medium text-white group-hover:text-cyan-400 transition-colors",children:x.text})]},S))})]}),r.map(x=>(0,at.jsx)(G.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:U("flex",x.role==="user"?"justify-end":"justify-start"),children:(0,at.jsxs)("div",{className:U("max-w-[80%] rounded-2xl px-4 py-3 text-sm",x.role==="user"?"bg-gradient-to-r from-cyan-500 to-purple-500 text-white":"bg-white/5 text-slate-200 border border-white/10"),children:[(0,at.jsx)("p",{className:"whitespace-pre-wrap",children:x.content}),(0,at.jsx)("p",{className:"text-xs opacity-50 mt-1",children:x.timestamp.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]})},x.id)),i&&(0,at.jsx)(G.div,{initial:{opacity:0}
22,animate:{opacity:1},className:"flex justify-start",children:(0,at.jsx)("div",{className:"bg-white/5 rounded-2xl px-4 py-3 border border-white/10",children:(0,at.jsxs)("div",{className:"flex items-center gap-2",children:[(0,at.jsx)(xa,{className:"w-4 h-4 text-cyan-400 animate-spin"}),(0,at.jsx)("span",{className:"text-sm text-slate-400",children:"Thinking..."})]})})}),(0,at.jsx)("div",{ref:f})]}),(0,at.jsxs)("div",{className:"p-4 border-t border-white/10 bg-slate-900/50",children:[(0,at.jsxs)("div",{className:"flex gap-2",children:[(0,at.jsx)("input",{type:"text",value:n,onChange:x=>o(x.target.value),onKeyPress:y,placeholder:"Ask me anything...",disabled:i,className:"flex-1 px-4 py-3 rounded-lg bg-white/5 border border-white/10 text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-cyan-500/50 disabled:opacity-50"}),(0,at.jsx)("button",{onClick:g,disabled:!n.trim()||i,className:"px-4 py-3 rounded-lg bg-gradient-to-r from-cyan-500 to-purple-500 text-white hover:opacity-90 transition-opacity disabled:opacity-50 disabled:cursor-not-allowed",children:(0,at.jsx)(pl,{className:"w-5 h-5"})})]}),(0,at.jsx)("p",{className:"text-xs text-slate-500 mt-2 text-center",children:"Powered by Taskade AI"})]})]})})]})},h6=ppe;var _e=R(Q()),X0=R(hu());function vn(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 mpe=typeof Symbol=="function"&&Symbol.observable||"@@observable",g6=mpe,CE=()=>Math.random().toString(36).substring(7).split("").join("."),hpe={INIT:`@@redux/INIT${CE()}`,REPLACE:`@@redux/REPLACE${CE()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${CE()}`},v6=hpe;function gpe(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 kE(e,t,r){if(typeof e!="function")throw new Error(vn(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(vn(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(vn(1));return r(kE)(e,t)}let a=e,n=t,o=new Map,i=o,s=0,l=!1;function c(){i===o&&(i=new Map,o.forEach((g,y)=>{i.set(y,g)}))}function d(){if(l)throw new Error(vn(3));return n}function u(g){if(typeof g!="function")throw new Error(vn(4));if(l)throw new Error(vn(5));let y=!0;c();let v=s++;return i.set(v,g),function(){if(y){if(l)throw new Error(vn(6));y=!1,c(),i.delete(v),o=null}}}function f(g){if(!gpe(g))throw new Error(vn(7));if(typeof g.type>"u")throw new Error(vn(8));if(typeof g.type!="string")throw new Error(vn(17));if(l)throw new Error(vn(9));try{l=!0,n=a(n,g)}finally{l=!1}return(o=i).forEach(v=>{v()}),g}function p(g){if(typeof g!="function")throw new Error(vn(10));a=g,f({type:v6.REPLACE})}function m(){let g=u;return{subscribe(y){if(typeof y!="object"||y===null)throw new Error(vn(11));function v(){let S=y;S.next&&S.next(d())}return v(),{unsubscribe:g(v)}},[g6](){return this}}}return f({type:v6.INIT}),{dispatch:f,subscribe:u,getState:d,replaceReducer:p,[g6]:m}}function y6(e,t){return function(...r){return t(e.apply(this,r))}}function NE(e,t){if(typeof e=="function")return y6(e,t);if(typeof e!="object"||e===null)throw new Error(vn(16));let r={};for(let a in e){let n=e[a];typeof n=="function"&&(r[a]=y6(n,t))}return r}function IE(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...a)=>t(r(...a)))}function b6(...e){return t=>(r,a)=>{let n=t(r,a),o=()=>{throw new Error(vn(15))},i={getState:n.getState,dispatch:(l,...c)=>o(l,...c)},s=e.map(l=>l(i));return o=IE(...s)(n.dispatch),{...n,dispatch:o}}}var nt=R(Q(),1),yme=R(C6(),1),kpe=nt.version.startsWith("19"),Npe=Symbol.for(kpe?"react.transitional.element":"react.element"),Ipe=Symbol.for("react.portal"),Ppe=Symbol.for("react.fragment"),Epe=Symbol.for("react.strict_mode"),Ape=Symbol.for("react.profiler"),Lpe=Symbol.for("react.consumer"),Tpe=Symbol.for("react.context"),L6=Symbol.for("react.forward_ref"),Rpe=Symbol.for("react.suspense"),Ope=Symbol.for("react.suspense_list"),LE=Symbol.for("react.memo"),Dpe=Symbol.for("react.lazy");var Mpe=L6,_pe=LE;function Fpe(e){if(typeof e=="object"&&e!==null){let{$$typeof:t}=e;
vendor: 5,223 bytes, line 22
22switch(t){case Npe:switch(e=e.type,e){case Ppe:case Ape:case Epe:case Rpe:case Ope:return e;default:switch(e=e&&e.$$typeof,e){case Tpe:case L6:case Dpe:case LE:return e;case Lpe:return e;default:return t}}case Ipe:return t}}}function jpe(e){return Fpe(e)===LE}function Bpe(e,t,r,a,{areStatesEqual:n,areOwnPropsEqual:o,areStatePropsEqual:i}){let s=!1,l,c,d,u,f;function p(v,x){return l=v,c=x,d=e(l,c),u=t(a,c),f=r(d,u,c),s=!0,f}function m(){return d=e(l,c),t.dependsOnOwnProps&&(u=t(a,c)),f=r(d,u,c),f}function h(){return e.dependsOnOwnProps&&(d=e(l,c)),t.dependsOnOwnProps&&(u=t(a,c)),f=r(d,u,c),f}function g(){let v=e(l,c),x=!i(v,d);return d=v,x&&(f=r(d,u,c)),f}function y(v,x){let S=!o(x,c),b=!n(v,l,x,c);return l=v,c=x,S&&b?m():S?h():b?g():f}return function(x,S){return s?y(x,S):p(x,S)}}function Vpe(e,{initMapStateToProps:t,initMapDispatchToProps:r,initMergeProps:a,...n}){let o=t(e,n),i=r(e,n),s=a(e,n);return Bpe(o,i,s,e,n)}function Upe(e,t){let r={};for(let a in e){let n=e[a];typeof n=="function"&&(r[a]=(...o)=>t(n(...o)))}return r}function EE(e){return function(r){let a=e(r);function n(){return a}return n.dependsOnOwnProps=!1,n}}function k6(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function T6(e,t){return function(a,{displayName:n}){let o=function(s,l){return o.dependsOnOwnProps?o.mapToProps(s,l):o.mapToProps(s,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(s,l){o.mapToProps=e,o.dependsOnOwnProps=k6(e);let c=o(s,l);return typeof c=="function"&&(o.mapToProps=c,o.dependsOnOwnProps=k6(c),c=o(s,l)),c},o}}function TE(e,t){return(r,a)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${a.wrappedComponentName}.`)}}function qpe(e){return e&&typeof e=="object"?EE(t=>Upe(e,t)):e?typeof e=="function"?T6(e,"mapDispatchToProps"):TE(e,"mapDispatchToProps"):EE(t=>({dispatch:t}))}function zpe(e){return e?typeof e=="function"?T6(e,"mapStateToProps"):TE(e,"mapStateToProps"):EE(()=>({}))}function Hpe(e,t,r){return{...r,...e,...t}}function Wpe(e){return function(r,{displayName:a,areMergedPropsEqual:n}){let o=!1,i;return function(l,c,d){let u=e(l,c,d);return o?n(u,i)||(i=u):(o=!0,i=u),i}}}function Gpe(e){return e?typeof e=="function"?Wpe(e):TE(e,"mergeProps"):()=>Hpe}function $pe(e){e()}function Kpe(){let e=null,t=null;return{clear(){e=null,t=null},notify(){$pe(()=>{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,n=t={callback:r,next:null,prev:t};return n.prev?n.prev.next=n:e=n,function(){!a||e===null||(a=!1,n.next?n.next.prev=n.prev:t=n.prev,n.prev?n.prev.next=n.next:e=n.next)}}}}var N6={notify(){},get:()=>[]};function R6(e,t){let r,a=N6,n=0,o=!1;function i(h){d();let g=a.subscribe(h),y=!1;return()=>{y||(y=!0,g(),u())}}function s(){a.notify()}function l(){m.onStateChange&&m.onStateChange()}function c(){return o}function d(){n++,r||(r=t?t.addNestedSub(l):e.subscribe(l),a=Kpe())}function u(){n--,r&&n===0&&(r(),r=void 0,a.clear(),a=N6)}function f(){o||(o=!0,d())}function p(){o&&(o=!1,u())}let m={addNestedSub:i,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:c,trySubscribe:f,tryUnsubscribe:p,getListeners:()=>a};return m}var Xpe=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ype=Xpe(),Jpe=()=>typeof navigator<"u"&&navigator.product==="ReactNative",Zpe=Jpe(),Qpe=()=>Ype||Zpe?nt.useLayoutEffect:nt.useEffect,b1=Qpe();function I6(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function PE(e,t){if(I6(e,t))return!0;if(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 n=0;n<r.length;n++)if(!Object.prototype.hasOwnProperty.call(t,r[n])||!I6(e[r[n]],t[r[n]]))return!1;return!0}var eme={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},tme={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},rme={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},O6={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ame={[Mpe]:rme,[_pe]:O6};function P6(e){return jpe(e)?O6:ame[e.$$typeof]||eme}var nme=Object.defineProperty,ome=Object.getOwnPropertyNames,E6=Object.getOwnPropertySymbols,ime=Object.getOwnPropertyDescriptor,sme=Object.getPrototypeOf,A6=Object.prototype;function AE(e,t){if(typeof t!="string"){if(A6){let o=sme(t);o&&o!==A6&&AE(e,o)}let r=ome(t);E6&&(r=r.concat(E6(t)));let a=P6(e),n=P6(t);for(let o=0;o<r.length;++o){let i=r[o];if(!tme[i]&&!(n&&n[i])&&!(a&&a[i])){let s=ime(t,i);try{nme(e,i,s)}catch{}}}}return e}var lme=Symbol.for("react-redux-context"),cme=typeof globalThis<"u"?globalThis:{};function ume(){if(!nt.createContext)return{};let e=cme[lme]??=new Map,t=e.get(nt.createContext);return t||(t=nt.createContext(null),e.set(nt.createContext,t)),t}var D6=ume(),dme=[null,null];function fme(e,t,r){b1(()=>e(...t),r)}function pme(e,t,r,a,n,o){e.current=a,r.current=!1,n.current&&(n.current=null,o())}function mme(e,t,r,a,n,o,i,s,l,c,d){if(!e)return()=>{};let u=!1,f=null,p=()=>
22{if(u||!s.current)return;let h=t.getState(),g,y;try{g=a(h,n.current)}catch(v){y=v,f=v}y||(f=null),g===o.current?i.current||c():(o.current=g,l.current=g,i.current=!0,d())};return r.onStateChange=p,r.trySubscribe(),p(),()=>{if(u=!0,r.tryUnsubscribe(),r.onStateChange=null,f)throw f}}function hme(e,t){return e===t}function gme(e,t,r,{pure:a,areStatesEqual:n=hme,areOwnPropsEqual:o=PE,areStatePropsEqual:i=PE,areMergedPropsEqual:s=PE,forwardRef:l=!1,context:c=D6}={}){let d=c,u=zpe(e),f=qpe(t),p=Gpe(r),m=!!e;return g=>{let y=g.displayName||g.name||"Component",v=`Connect(${y})`,x={shouldHandleStateChanges:m,displayName:v,wrappedComponentName:y,WrappedComponent:g,initMapStateToProps:u,initMapDispatchToProps:f,initMergeProps:p,areStatesEqual:n,areStatePropsEqual:i,areOwnPropsEqual:o,areMergedPropsEqual:s};function S(k){let[C,N,E]=nt.useMemo(()=>{let{reactReduxForwardedRef:Y,...st}=k;return[k.context,Y,st]},[k]),L=nt.useMemo(()=>{let Y=d;return C?.Consumer,Y},[C,d]),T=nt.useContext(L),q=!!k.store&&!!k.store.getState&&!!k.store.dispatch,_=!!T&&!!T.store,B=q?k.store:T.store,I=_?T.getServerState:B.getState,A=nt.useMemo(()=>Vpe(B.dispatch,x),[B]),[M,D]=nt.useMemo(()=>{if(!m)return dme;let Y=R6(B,q?void 0:T.subscription),st=Y.notifyNestedSubs.bind(Y);return[Y,st]},[B,q,T]),V=nt.useMemo(()=>q?T:{...T,subscription:M},[q,T,M]),P=nt.useRef(void 0),O=nt.useRef(E),j=nt.useRef(void 0),W=nt.useRef(!1),ee=nt.useRef(!1),oe=nt.useRef(void 0);b1(()=>(ee.current=!0,()=>{ee.current=!1}),[]);let he=nt.useMemo(()=>()=>j.current&&E===O.current?j.current:A(B.getState(),E),[B,E]),Le=nt.useMemo(()=>st=>M?mme(m,B,M,A,O,P,W,ee,j,D,st):()=>{},[M]);fme(pme,[O,P,W,E,j,D]);let ae;try{ae=nt.useSyncExternalStore(Le,he,I?()=>A(I(),E):he)}catch(Y){throw oe.current&&(Y.message+=` 23The error may be correlated with this previous error: 24${oe.current.stack} 25 26`),Y}b1(()=>{oe.current=void 0,j.current=void 0,P.current=ae});let Oe=nt.useMemo(()=>nt.createElement(g,{...ae,ref:N}),[N,g,ae]);return nt.useMemo(()=>m?nt.createElement(L.Provider,{value:V},Oe):Oe,[L,Oe,V])}let w=nt.memo(S);if(w.WrappedComponent=g,w.displayName=S.displayName=v,l){let C=nt.forwardRef(function(E,L){return nt.createElement(w,{...E,reactReduxForwardedRef:L})});return C.displayName=v,C.WrappedComponent=g,AE(C,g)}return AE(w,g)}}var RE=gme;function vme(e){let{children:t,context:r,serverState:a,store:n}=e,o=nt.useMemo(()=>{let l=R6(n);return{store:n,subscription:l,getServerState:a?()=>a:void 0}},[n,a]),i=nt.useMemo(()=>n.getState(),[n]);return b1(()=>{let{subscription:l}=o;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),i!==n.getState()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[o,i]),nt.createElement((r||D6).Provider,{value:o},t)}var M6=vme;var bme=!0,OE="Invariant failed";function so(e,t){if(!e){if(bme)throw new Error(OE);var r=typeof t=="function"?t():t,a=r?"".concat(OE,": ").concat(r):OE;throw new Error(a)}}var $o=function(t){var r=t.top,a=t.right,n=t.bottom,o=t.left,i=a-o,s=n-r,l={top:r,right:a,bottom:n,left:o,width:i,height:s,x:o,y:r,center:{x:(a+o)/2,y:(n+r)/2}};return l},x1=function(t,r){return{top:t.top-r.top,left:t.left-r.left,bottom:t.bottom+r.bottom,right:t.right+r.right}},_6=function(t,r){return{top:t.top+r.top,left:t.left+r.left,bottom:t.bottom-r.bottom,right:t.right-r.right}},xme=function(t,r){return{top:t.top+r.y,left:t.left+r.x,bottom:t.bottom+r.y,right:t.right+r.x}},DE={top:0,right:0,bottom:0,left:0},w1=function(t){var r=t.borderBox,a=t.margin,n=a===void 0?DE:a,o=t.border,i=o===void 0?DE:o,s=t.padding,l=s===void 0?DE:s,c=$o(x1(r,n)),d=$o(_6(r,i)),u=$o(_6(d,l));return{marginBox:c,borderBox:$o(r),paddingBox:d,contentBox:u,margin:n,border:i,padding:l}},Go=function(t){var r=t.slice(0,-2),a=t.slice(-2);if(a!=="px")return 0;var n=Number(r);return isNaN(n)&&so(!1),n},wme=function(){return{x:window.pageXOffset,y:window.pageYOffset}},D0=function(t,r){var a=t.borderBox,n=t.border,o=t.margin,i=t.padding,s=xme(a,r);return w1({borderBox:s,border:n,margin:o,padding:i})},M0=function(t,r){return r===void 0&&(r=wme()),D0(t,r)},ME=function(t,r){var a={top:Go(r.marginTop),right:Go(r.marginRight),bottom:Go(r.marginBottom),left:Go(r.marginLeft)},n={top:Go(r.paddingTop),right:Go(r.paddingRight),bottom:Go(r.paddingBottom),left:Go(r.paddingLeft)},o={top:Go(r.borderTopWidth),right:Go(r.borderRightWidth),bottom:Go(r.borderBottomWidth),left:Go(r.borderLeftWidth)};return w1({borderBox:t,margin:a,padding:n,border:o})},_E=function(t){var r=t.getBoundingClientRect(),a=window.getComputedStyle(t);return ME(r,a)};var Sme=function(t){var r=[],a=null,n=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 n.cancel=function(){a&&(cancelAnimationFrame(a),a=null)},n},pp=Sme;function _0(){return _0=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},_0.apply(null,arguments)}var Cme=!0,kme=/[ \t]{2,}/g,Nme=/^[ \t]*/gm,F6=e=>e.replace(kme," ").replace(Nme,"").trim(),Ime=e=>F6(` 27 %c@hello-pangea/dnd 28 29 %c${F6(e)} 30 31 %c\u{1F477}\u200D This is a development only message. It will be removed in production builds. 32`),Pme=e=>[Ime(e),"color: #00C584; font-size: 1.2em; font-weight: bold;","line-height: 1.5","color: #723874;"],Eme="__@hello-pangea/dnd-disable-dev-warnings";function dV(e,t){Cme||typeof window<"u"&&window[Eme]||console[e](...Pme(t))}var $st=dV.bind(null,"warn"),Ame=dV.bind(null,"error");function Sc(){}function Lme(e,t){return{...e,...t}}function Ko(e,t,r){let a=t.map(n=>{let o=Lme(r,n.options);return e.addEventListener(n.eventName,n.fn,o),function(){e.removeEventListener(n.eventName,n.fn,o)}});return function(){a.forEach(o=>{o()})}}
32var Tme=!0,j6="Invariant failed",Wu=class extends Error{};Wu.prototype.toString=function(){return this.message};function xe(e,t){throw Tme?new Wu(j6):new Wu(`${j6}: ${t||""}`)}var $E=class extends _e.default.Component{constructor(...t){super(...t),this.callbacks=null,this.unbind=Sc,this.onWindowError=r=>{let a=this.getCallbacks();a.isDragging()&&a.tryAbort(),r.error instanceof Wu&&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=Ko(window,[{eventName:"error",fn:this.onWindowError}])}componentDidCatch(t){if(t instanceof Wu){this.setState({});return}throw t}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}},Rme=` 33 Press space bar to start a drag. 34 When dragging you can use the arrow keys to move the item around and escape to cancel. 35 Some screen readers may require you to be in focus mode or to use your pass through key 36`,I1=e=>e+1,Ome=e=>` 37 You have lifted an item in position ${I1(e.source.index)} 38`,fV=(e,t)=>{let r=e.droppableId===t.droppableId,a=I1(e.index),n=I1(t.index);return r?` 39 You have moved the item from position ${a} 40 to position ${n} 41 `:` 42 You have moved the item from position ${a} 43 in list ${e.droppableId} 44 to list ${t.droppableId} 45 in position ${n} 46 `},pV=(e,t,r)=>t.droppableId===r.droppableId?` 47 The item ${e} 48 has been combined with ${r.draggableId}`:` 49 The item ${e} 50 in list ${t.droppableId} 51 has been combined with ${r.draggableId} 52 in list ${r.droppableId} 53 `,Dme=e=>{let t=e.destination;if(t)return fV(e.source,t);let r=e.combine;return r?pV(e.draggableId,e.source,r):"You are over an area that cannot be dropped on"},B6=e=>` 54 The item has returned to its starting position 55 of ${I1(e.index)} 56`,Mme=e=>{if(e.reason==="CANCEL")return` 57 Movement cancelled. 58 ${B6(e.source)} 59 `;let t=e.destination,r=e.combine;return t?` 60 You have dropped the item. 61 ${fV(e.source,t)} 62 `:r?` 63 You have dropped the item. 64 ${pV(e.draggableId,e.source,r)} 65 `:` 66 The item has been dropped while not over a drop area. 67 ${B6(e.source)} 68 `},N1={dragHandleUsageInstructions:Rme,onDragStart:Ome,onDragUpdate:Dme,onDragEnd:Mme};function _me(e,t){return!!(e===t||Number.isNaN(e)&&Number.isNaN(t))}function mV(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!_me(e[r],t[r]))return!1;return!0}function yt(e,t){let r=(0,_e.useState)(()=>({inputs:t,result:e()}))[0],a=(0,_e.useRef)(!0),n=(0,_e.useRef)(r),i=a.current||!!(t&&n.current.inputs&&mV(t,n.current.inputs))?n.current:{inputs:t,result:e()};return(0,_e.useEffect)(()=>{a.current=!1,n.current=i},[i]),i.result}function ze(e,t){return yt(()=>e,t)}var Sa={x:0,y:0},Da=(e,t)=>({x:e.x+t.x,y:e.y+t.y}),lo=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),Cc=(e,t)=>e.x===t.x&&e.y===t.y,vp=e=>({x:e.x!==0?-e.x:0,y:e.y!==0?-e.y:0}),Gu=(e,t,r=0)=>e==="x"?{x:t,y:r}:{x:r,y:t},q0=(e,t)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),V6=(e,t)=>Math.min(...t.map(r=>q0(e,r))),hV=e=>t=>({x:e(t.x),y:e(t.y)}),Fme=(e,t)=>{let r=$o({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},Y0=(e,t)=>({top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}),U6=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}],jme={top:0,right:0,bottom:0,left:0},Bme=(e,t)=>t?Y0(e,t.scroll.diff.displacement):e,Vme=(e,t,r)=>r&&r.increasedBy?{...e,[t.end]:e[t.end]+r.increasedBy[t.line]}:e,Ume=(e,t)=>t&&t.shouldClipSubject?Fme(t.pageMarginBox,e):$o(e),mp=({page:e,withPlaceholder:t,axis:r,frame:a})=>{let n=Bme(e.marginBox,a),o=Vme(n,r,t),i=Ume(o,a);return{page:e,withPlaceholder:t,active:i}},tA=(e,t)=>{e.frame||xe();let r=e.frame,a=lo(t,r.scroll.initial),n=vp(a),o={...r,scroll:{initial:r.scroll.initial,current:t,diff:{value:a,displacement:n},max:r.scroll.max}},i=mp({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:o});return{...e,frame:o,subject:i}};function wa(e,t=mV){let r=null;function a(...n){if(r&&r.lastThis===this&&t(n,r.lastArgs))return r.lastResult;let o=e.apply(this,n);return r={lastResult:o,lastArgs:n,lastThis:this},o}return a.clear=function(){r=null},a}var gV=wa(e=>e.reduce((t,r)=>(t[r.descriptor.id]=r,t),{})),vV=wa(e=>e.reduce((t,r)=>(t[r.descriptor.id]=r,t),{})),A1=wa(e=>Object.values(e)),qme=wa(e=>Object.values(e)),yp=wa((e,t)=>qme(t).filter(a=>e===a.descriptor.droppableId).sort((a,n)=>a.descriptor.index-n.descriptor.index));function rA(e){return e.at&&e.at.type==="REORDER"?e.at.destination:null}function L1(e){return e.at&&e.at.type==="COMBINE"?e.at.combine:null}var T1=wa((e,t)=>t.filter(r=>r.descriptor.id!==e.descriptor.id)),zme=({isMovingForward:e,draggable:t,destination:r,insideDestination:a,previousImpact:n})=>
vendor: 12,307 bytes, line 68
68{if(!r.isCombineEnabled||!rA(n))return null;function i(p){let m={type:"COMBINE",combine:{draggableId:p,droppableId:r.descriptor.id}};return{...n,at:m}}let s=n.displaced.all,l=s.length?s[0]:null;if(e)return l?i(l):null;let c=T1(t,a);if(!l){if(!c.length)return null;let p=c[c.length-1];return i(p.descriptor.id)}let d=c.findIndex(p=>p.descriptor.id===l);d===-1&&xe();let u=d-1;if(u<0)return null;let f=c[u];return i(f.descriptor.id)},bp=(e,t)=>e.descriptor.droppableId===t.descriptor.id,yV={point:Sa,value:0},z0={invisible:{},visible:{},all:[]},Hme={displaced:z0,displacedBy:yV,at:null},Xo=(e,t)=>r=>e<=r&&r<=t,bV=e=>{let t=Xo(e.top,e.bottom),r=Xo(e.left,e.right);return a=>{if(t(a.top)&&t(a.bottom)&&r(a.left)&&r(a.right))return!0;let o=t(a.top)||t(a.bottom),i=r(a.left)||r(a.right);if(o&&i)return!0;let l=a.top<e.top&&a.bottom>e.bottom,c=a.left<e.left&&a.right>e.right;return l&&c?!0:l&&i||c&&o}},Wme=e=>{let t=Xo(e.top,e.bottom),r=Xo(e.left,e.right);return a=>t(a.top)&&t(a.bottom)&&r(a.left)&&r(a.right)},aA={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},xV={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Gme=e=>t=>{let r=Xo(t.top,t.bottom),a=Xo(t.left,t.right);return n=>e===aA?r(n.top)&&r(n.bottom):a(n.left)&&a(n.right)},$me=(e,t)=>{let r=t.frame?t.frame.scroll.diff.displacement:Sa;return Y0(e,r)},Kme=(e,t,r)=>t.subject.active?r(t.subject.active)(e):!1,Xme=(e,t,r)=>r(t)(e),nA=({target:e,destination:t,viewport:r,withDroppableDisplacement:a,isVisibleThroughFrameFn:n})=>{let o=a?$me(e,t):e;return Kme(o,t,n)&&Xme(o,r,n)},Yme=e=>nA({...e,isVisibleThroughFrameFn:bV}),wV=e=>nA({...e,isVisibleThroughFrameFn:Wme}),Jme=e=>nA({...e,isVisibleThroughFrameFn:Gme(e.destination.axis)}),Zme=(e,t,r)=>{if(typeof r=="boolean")return r;if(!t)return!0;let{invisible:a,visible:n}=t;if(a[e])return!1;let o=n[e];return o?o.shouldAnimate:!0};function Qme(e,t){let r=e.page.marginBox,a={top:t.point.y,right:0,bottom:0,left:t.point.x};return $o(x1(r,a))}function H0({afterDragging:e,destination:t,displacedBy:r,viewport:a,forceShouldAnimate:n,last:o}){return e.reduce(function(s,l){let c=Qme(l,r),d=l.descriptor.id;if(s.all.push(d),!Yme({target:c,destination:t,viewport:a,withDroppableDisplacement:!0}))return s.invisible[l.descriptor.id]=!0,s;let f=Zme(d,o,n),p={draggableId:d,shouldAnimate:f};return s.visible[d]=p,s},{all:[],visible:{},invisible:{}})}function ehe(e,t){if(!e.length)return 0;let r=e[e.length-1].descriptor.index;return t.inHomeList?r:r+1}function q6({insideDestination:e,inHomeList:t,displacedBy:r,destination:a}){let n=ehe(e,{inHomeList:t});return{displaced:z0,displacedBy:r,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:n}}}}function P1({draggable:e,insideDestination:t,destination:r,viewport:a,displacedBy:n,last:o,index:i,forceShouldAnimate:s}){let l=bp(e,r);if(i==null)return q6({insideDestination:t,inHomeList:l,displacedBy:n,destination:r});let c=t.find(m=>m.descriptor.index===i);if(!c)return q6({insideDestination:t,inHomeList:l,displacedBy:n,destination:r});let d=T1(e,t),u=t.indexOf(c),f=d.slice(u);return{displaced:H0({afterDragging:f,destination:r,displacedBy:n,last:o,viewport:a.frame,forceShouldAnimate:s}),displacedBy:n,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:i}}}}function kc(e,t){return!!t.effected[e]}var the=({isMovingForward:e,destination:t,draggables:r,combine:a,afterCritical:n})=>{if(!t.isCombineEnabled)return null;let o=a.draggableId,s=r[o].descriptor.index;return kc(o,n)?e?s:s-1:e?s+1:s},rhe=({isMovingForward:e,isInHomeList:t,insideDestination:r,location:a})=>{if(!r.length)return null;let n=a.index,o=e?n+1:n-1,i=r[0].descriptor.index,s=r[r.length-1].descriptor.index,l=t?s:s+1;return o<i||o>l?null:o},ahe=({isMovingForward:e,isInHomeList:t,draggable:r,draggables:a,destination:n,insideDestination:o,previousImpact:i,viewport:s,afterCritical:l})=>{let c=i.at;if(c||xe(),c.type==="REORDER"){let u=rhe({isMovingForward:e,isInHomeList:t,location:c.destination,insideDestination:o});return u==null?null:P1({draggable:r,insideDestination:o,destination:n,viewport:s,last:i.displaced,displacedBy:i.displacedBy,index:u})}let d=the({isMovingForward:e,destination:n,displaced:i.displaced,draggables:a,combine:c.combine,afterCritical:l});return d==null?null:P1({draggable:r,insideDestination:o,destination:n,viewport:s,last:i.displaced,displacedBy:i.displacedBy,index:d})},nhe=({displaced:e,afterCritical:t,combineWith:r,displacedBy:a})=>{let n=!!(e.visible[r]||e.invisible[r]);return kc(r,t)?n?Sa:vp(a.point):n?a.point:Sa},ohe=({afterCritical:e,impact:t,draggables:r})=>{let a=L1(t);a||xe();let n=a.draggableId,o=r[n].page.borderBox.center,i=nhe({displaced:t.displaced,afterCritical:e,combineWith:n,displacedBy:t.displacedBy});return Da(o,i)},SV=(e,t)=>t.margin[e.start]+t.borderBox[e.size]/2,ihe=(e,t)=>t.margin[e.end]+t.borderBox[e.size]/2,oA=(e,t,r)=>t[e.crossAxisStart]+r.margin[e.crossAxisStart]+r.borderBox[e.crossAxisSize]/2,z6=({axis:e,moveRelativeTo:t,isMoving:r})=>Gu(e.line,t.marginBox[e.end]+SV(e,r),oA(e,t.marginBox,r)),H6=({axis:e,moveRelativeTo:t,isMoving:r})=>Gu(e.line,t.marginBox[e.start]-ihe(e,r),oA(e,t.marginBox,r)),she=({axis:e,moveInto:t,isMoving:r})=>Gu(e.line,t.contentBox[e.start]+SV(e,r),oA(e,t.contentBox,r)),lhe=({impact:e,draggable:t,draggables:r,droppable:a,afterCritical:n})=>{let o=yp(a.descriptor.id,r),i=t.page,s=a.axis;if(!o.length)return she({axis:s,moveInto:a.page,isMoving:i});let{displaced:l,displacedBy:c}=e,d=l.all[0];if(d){let f=r[d];if(kc(d,n))return H6({axis:s,moveRelativeTo:f.page,isMoving:i});let p=D0(f.page,c.point);return H6({axis:s,moveRelativeTo:p,isMoving:i})}let u=o[o.length-1];if(u.descriptor.id===t.descriptor.id)return i.borderBox.center;if(kc(u.descriptor.id,n)){let f=D0(u.page,vp(n.displacedBy.point));return z6({axis:s,moveRelativeTo:f,isMoving:i})}return z6({axis:s,moveRelativeTo:u.page,isMoving:i})},KE=(e,t)=>{let r=e.frame;return r?Da(t,r.scroll.diff.displacement):t},che=({impact:e,draggable:t,droppable:r,draggables:a,afterCritical:n})=>{let o=t.page.borderBox.center,i=e.at;return!r||!i?o:i.type==="REORDER"?lhe({impact:e,draggable:t,draggables:a,droppable:r,afterCritical:n}):ohe({impact:e,draggables:a,afterCritical:n})},R1=e=>{let t=che(e),r=e.droppable;return r?KE(r,t):t},CV=(e,t)=>{let r=lo(t,e.scroll.initial),a=vp(r);return{frame:$o({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 W6(e,t){return e.map(r=>t[r])}function uhe(e,t){for(let r=0;r<t.length;r++){let a=t[r].visible[e];if(a)return a}return null}var dhe=({impact:e,viewport:t,destination:r,draggables:a,maxScrollChange:n})=>{let o=CV(t,Da(t.scroll.current,n)),i=r.frame?tA(r,Da(r.frame.scroll.current,n)):r,s=e.displaced,l=H0({afterDragging:W6(s.all,a),destination:r,displacedBy:e.displacedBy,viewport:o.frame,last:s,forceShouldAnimate:!1}),c=H0({afterDragging:W6(s.all,a),destination:i,displacedBy:e.displacedBy,viewport:t.frame,last:s,forceShouldAnimate:!1}),d={},u={},f=[s,l,c];return s.all.forEach(m=>{let h=uhe(m,f);if(h){u[m]=h;return}d[m]=!0}),{...e,displaced:{all:s.all,invisible:d,visible:u}}},fhe=(e,t)=>Da(e.scroll.diff.displacement,t),iA=({pageBorderBoxCenter:e,draggable:t,viewport:r})=>{let a=fhe(r,e),n=lo(a,t.page.borderBox.center);return Da(t.client.borderBox.center,n)},kV=({draggable:e,destination:t,newPageBorderBoxCenter:r,viewport:a,withDroppableDisplacement:n,onlyOnMainAxis:o=!1})=>{let i=lo(r,e.page.borderBox.center),l={target:Y0(e.page.borderBox,i),destination:t,withDroppableDisplacement:n,viewport:a};return o?Jme(l):wV(l)},phe=({isMovingForward:e,draggable:t,destination:r,draggables:a,previousImpact:n,viewport:o,previousPageBorderBoxCenter:i,previousClientSelection:s,afterCritical:l})=>{if(!r.isEnabled)return null;let c=yp(r.descriptor.id,a),d=bp(t,r),u=zme({isMovingForward:e,draggable:t,destination:r,insideDestination:c,previousImpact:n})||ahe({isMovingForward:e,isInHomeList:d,draggable:t,draggables:a,destination:r,insideDestination:c,previousImpact:n,viewport:o,afterCritical:l});if(!u)return null;let f=R1({impact:u,draggable:t,droppable:r,draggables:a,afterCritical:l});if(kV({draggable:t,destination:r,newPageBorderBoxCenter:f,viewport:o.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:iA({pageBorderBoxCenter:f,draggable:t,viewport:o}),impact:u,scrollJumpRequest:null};let m=lo(f,i),h=dhe({impact:u,viewport:o,destination:r,draggables:a,maxScrollChange:m});return{clientSelection:s,impact:h,scrollJumpRequest:m}},yn=e=>{let t=e.subject.active;return t||xe(),t},mhe=({isMovingForward:e,pageBorderBoxCenter:t,source:r,droppables:a,viewport:n})=>{let o=r.subject.active;if(!o)return null;let i=r.axis,s=Xo(o[i.start],o[i.end]),l=A1(a).filter(d=>d!==r).filter(d=>d.isEnabled).filter(d=>!!d.subject.active).filter(d=>bV(n.frame)(yn(d))).filter(d=>{let u=yn(d);return e?o[i.crossAxisEnd]<u[i.crossAxisEnd]:u[i.crossAxisStart]<o[i.crossAxisStart]}).filter(d=>{let u=yn(d),f=Xo(u[i.start],u[i.end]);return s(u[i.start])||s(u[i.end])||f(o[i.start])||f(o[i.end])}).sort((d,u)=>{let f=yn(d)[i.crossAxisStart],p=yn(u)[i.crossAxisStart];return e?f-p:p-f}).filter((d,u,f)=>yn(d)[i.crossAxisStart]===yn(f[0])[i.crossAxisStart]);if(!l.length)return null;if(l.length===1)return l[0];let c=l.filter(d=>Xo(yn(d)[i.start],yn(d)[i.end])(t[i.line]));return c.length===1?c[0]:c.length>1?c.sort((d,u)=>yn(d)[i.start]-yn(u)[i.start])[0]:l.sort((d,u)=>{let f=V6(t,U6(yn(d))),p=V6(t,U6(yn(u)));return f!==p?f-p:yn(d)[i.start]-yn(u)[i.start]})[0]},G6=(e,t)=>{let r=e.page.borderBox.center;return kc(e.descriptor.id,t)?lo(r,t.displacedBy.point):r},hhe=(e,t)=>{let r=e.page.borderBox;return kc(e.descriptor.id,t)?Y0(r,vp(t.displacedBy.point)):r},ghe=({pageBorderBoxCenter:e,viewport:t,destination:r,insideDestination:a,afterCritical:n})=>a.filter(i=>wV({target:hhe(i,n),destination:r,viewport:t.frame,withDroppableDisplacement:!0})).sort((i,s)=>{let l=q0(e,KE(r,G6(i,n))),c=q0(e,KE(r,G6(s,n)));return l<c?-1:c<l?1:i.descriptor.index-s.descriptor.index})[0]||null,J0=wa(function(t,r){let a=r[t.line];return{value:a,point:Gu(t.line,a)}}),vhe=(e,t,r)=>{let a=e.axis;if(e.descriptor.mode==="virtual")return Gu(a.line,t[a.line]);let n=e.subject.page.contentBox[a.size],l=yp(e.descriptor.id,r).reduce((c,d)=>c+d.client.marginBox[a.size],0)+t[a.line]-n;return l<=0?null:Gu(a.line,l)},NV=(e,t)=>({...e,scroll:{...e.scroll,max:t}}),IV=(e,t,r)=>{let a=e.frame;bp(t,e)&&xe(),e.subject.withPlaceholder&&xe();let n=J0(e.axis,t.displaceBy).point,o=vhe(e,n,r),i={placeholderSize:n,increasedBy:o,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!a){let d=mp({page:e.subject.page,withPlaceholder:i,axis:e.axis,frame:e.frame});return{...e,subject:d}}let s=o?Da(a.scroll.max,o):a.scroll.max,l=NV(a,s),c=mp({page:e.subject.page,withPlaceholder:i,axis:e.axis,frame:l});return{...e,subject:c,frame:l}},yhe=e=>{let t=e.subject.withPlaceholder;t||xe();let r=e.frame;if(!r){let i=mp({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return{...e,subject:i}}let a=t.oldFrameMaxScroll;a||xe();let n=NV(r,a),o=mp({page:e.subject.page,axis:e.axis,frame:n,withPlaceholder:null});return{...e,subject:o,frame:n}},bhe=({previousPageBorderBoxCenter:e,moveRelativeTo:t,insideDestination:r,draggable:a,draggables:n,destination:o,viewport:i,afterCritical:s})=>{if(!t){if(r.length)return null;let u={displaced:z0,displacedBy:yV,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:0}}},f=R1({impact:u,draggable:a,droppable:o,draggables:n,afterCritical:s}),p=bp(a,o)?o:IV(o,a,n);return kV({draggable:a,destination:p,newPageBorderBoxCenter:f,viewport:i.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?u:null}let l=e[o.axis.line]<=t.page.borderBox.center[o.axis.line],c=(()=>{let u=t.descriptor.index;return t.descriptor.id===a.descriptor.id||l?u:u+1})(),d=J0(o.axis,a.displaceBy);return P1({draggable:a,insideDestination:r,destination:o,viewport:i,displacedBy:d,last:z0,index:c})},xhe=({isMovingForward:e,previousPageBorderBoxCenter:t,draggable:r,isOver:a,draggables:n,droppables:o,viewport:i,afterCritical:s})=>
68{let l=mhe({isMovingForward:e,pageBorderBoxCenter:t,source:a,droppables:o,viewport:i});if(!l)return null;let c=yp(l.descriptor.id,n),d=ghe({pageBorderBoxCenter:t,viewport:i,destination:l,insideDestination:c,afterCritical:s}),u=bhe({previousPageBorderBoxCenter:t,destination:l,draggable:r,draggables:n,moveRelativeTo:d,insideDestination:c,viewport:i,afterCritical:s});if(!u)return null;let f=R1({impact:u,draggable:r,droppable:l,draggables:n,afterCritical:s});return{clientSelection:iA({pageBorderBoxCenter:f,draggable:r,viewport:i}),impact:u,scrollJumpRequest:null}},co=e=>{let t=e.at;return t?t.type==="REORDER"?t.destination.droppableId:t.combine.droppableId:null},whe=(e,t)=>{let r=co(e);return r?t[r]:null},She=({state:e,type:t})=>{let r=whe(e.impact,e.dimensions.droppables),a=!!r,n=e.dimensions.droppables[e.critical.droppable.id],o=r||n,i=o.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",c=e.dimensions.draggables[e.critical.draggable.id],d=e.current.page.borderBoxCenter,{draggables:u,droppables:f}=e.dimensions;return s?phe({isMovingForward:l,previousPageBorderBoxCenter:d,draggable:c,destination:o,draggables:u,viewport:e.viewport,previousClientSelection:e.current.client.selection,previousImpact:e.impact,afterCritical:e.afterCritical}):xhe({isMovingForward:l,previousPageBorderBoxCenter:d,draggable:c,isOver:o,draggables:u,droppables:f,viewport:e.viewport,afterCritical:e.afterCritical})};function Hu(e){return e.phase==="DRAGGING"||e.phase==="COLLECTING"}function PV(e){let t=Xo(e.top,e.bottom),r=Xo(e.left,e.right);return function(n){return t(n.y)&&r(n.x)}}function Che(e,t){return e.left<t.right&&e.right>t.left&&e.top<t.bottom&&e.bottom>t.top}function khe({pageBorderBox:e,draggable:t,candidates:r}){let a=t.page.borderBox.center,n=r.map(o=>{let i=o.axis,s=Gu(o.axis.line,e.center[i.line],o.page.borderBox.center[i.crossAxisLine]);return{id:o.descriptor.id,distance:q0(a,s)}}).sort((o,i)=>i.distance-o.distance);return n[0]?n[0].id:null}function Nhe({pageBorderBox:e,draggable:t,droppables:r}){let a=A1(r).filter(n=>{if(!n.isEnabled)return!1;let o=n.subject.active;if(!o||!Che(e,o))return!1;if(PV(o)(e.center))return!0;let i=n.axis,s=o.center[i.crossAxisLine],l=e[i.crossAxisStart],c=e[i.crossAxisEnd],d=Xo(o[i.crossAxisStart],o[i.crossAxisEnd]),u=d(l),f=d(c);return!u&&!f?!0:u?l<s:c>s});return a.length?a.length===1?a[0].descriptor.id:khe({pageBorderBox:e,draggable:t,candidates:a}):null}var EV=(e,t)=>$o(Y0(e,t)),Ihe=(e,t)=>{let r=e.frame;return r?EV(t,r.scroll.diff.value):t};function AV({displaced:e,id:t}){return!!(e.visible[t]||e.invisible[t])}function Phe({draggable:e,closest:t,inHomeList:r}){return t?r&&t.descriptor.index>e.descriptor.index?t.descriptor.index-1:t.descriptor.index:null}var Ehe=({pageBorderBoxWithDroppableScroll:e,draggable:t,destination:r,insideDestination:a,last:n,viewport:o,afterCritical:i})=>{let s=r.axis,l=J0(r.axis,t.displaceBy),c=l.value,d=e[s.start],u=e[s.end],p=T1(t,a).find(h=>{let g=h.descriptor.id,y=h.page.borderBox.center[s.line],v=kc(g,i),x=AV({displaced:n,id:g});return v?x?u<=y:d<y-c:x?u<=y+c:d<y})||null,m=Phe({draggable:t,closest:p,inHomeList:bp(t,r)});return P1({draggable:t,insideDestination:a,destination:r,viewport:o,last:n,displacedBy:l,index:m})},Ahe=4,Lhe=({draggable:e,pageBorderBoxWithDroppableScroll:t,previousImpact:r,destination:a,insideDestination:n,afterCritical:o})=>{if(!a.isCombineEnabled)return null;let i=a.axis,s=J0(a.axis,e.displaceBy),l=s.value,c=t[i.start],d=t[i.end],f=T1(e,n).find(m=>{let h=m.descriptor.id,g=m.page.borderBox,v=g[i.size]/Ahe,x=kc(h,o),S=AV({displaced:r.displaced,id:h});return x?S?d>g[i.start]+v&&d<g[i.end]-v:c>g[i.start]-l+v&&c<g[i.end]-l-v:S?d>g[i.start]+l+v&&d<g[i.end]+l-v:c>g[i.start]+v&&c<g[i.end]-v});return f?{displacedBy:s,displaced:r.displaced,at:{type:"COMBINE",combine:{draggableId:f.descriptor.id,droppableId:a.descriptor.id}}}:null},LV=({pageOffset:e,draggable:t,draggables:r,droppables:a,previousImpact:n,viewport:o,afterCritical:i})=>{let s=EV(t.page.borderBox,e),l=Nhe({pageBorderBox:s,draggable:t,droppables:a});if(!l)return Hme;let c=a[l],d=yp(c.descriptor.id,r),u=Ihe(c,s);return Lhe({pageBorderBoxWithDroppableScroll:u,draggable:t,previousImpact:n,destination:c,insideDestination:d,afterCritical:i})||Ehe({pageBorderBoxWithDroppableScroll:u,draggable:t,destination:c,insideDestination:d,last:n.displaced,viewport:o,afterCritical:i})},sA=(e,t)=>({...e,[t.descriptor.id]:t}),The=({previousImpact:e,impact:t,droppables:r})=>{let a=co(e),n=co(t);if(!a||a===n)return r;let o=r[a];if(!o.subject.withPlaceholder)return r;let i=yhe(o);return sA(r,i)},Rhe=({draggable:e,draggables:t,droppables:r,previousImpact:a,impact:n})=>{let o=The({previousImpact:a,impact:n,droppables:r}),i=co(n);if(!i)return o;let s=r[i];if(bp(e,s)||s.subject.withPlaceholder)return o;let l=IV(s,e,t);return sA(o,l)}
vendor: 2,310 bytes, line 68
68,V0=({state:e,clientSelection:t,dimensions:r,viewport:a,impact:n,scrollJumpRequest:o})=>{let i=a||e.viewport,s=r||e.dimensions,l=t||e.current.client.selection,c=lo(l,e.initial.client.selection),d={offset:c,selection:l,borderBoxCenter:Da(e.initial.client.borderBoxCenter,c)},u={selection:Da(d.selection,i.scroll.current),borderBoxCenter:Da(d.borderBoxCenter,i.scroll.current),offset:Da(d.offset,i.scroll.diff.value)},f={client:d,page:u};if(e.phase==="COLLECTING")return{...e,dimensions:s,viewport:i,current:f};let p=s.draggables[e.critical.draggable.id],m=n||LV({pageOffset:u.offset,draggable:p,draggables:s.draggables,droppables:s.droppables,previousImpact:e.impact,viewport:i,afterCritical:e.afterCritical}),h=Rhe({draggable:p,impact:m,previousImpact:e.impact,draggables:s.draggables,droppables:s.droppables});return{...e,current:f,dimensions:{draggables:s.draggables,droppables:h},impact:m,viewport:i,scrollJumpRequest:o||null,forceShouldAnimate:o?!1:null}};function Ohe(e,t){return e.map(r=>t[r])}var TV=({impact:e,viewport:t,draggables:r,destination:a,forceShouldAnimate:n})=>{let o=e.displaced,i=Ohe(o.all,r),s=H0({afterDragging:i,destination:a,displacedBy:e.displacedBy,viewport:t.frame,forceShouldAnimate:n,last:o});return{...e,displaced:s}},RV=({impact:e,draggable:t,droppable:r,draggables:a,viewport:n,afterCritical:o})=>{let i=R1({impact:e,draggable:t,draggables:a,droppable:r,afterCritical:o});return iA({pageBorderBoxCenter:i,draggable:t,viewport:n})},OV=({state:e,dimensions:t,viewport:r})=>{e.movementMode!=="SNAP"&&xe();let a=e.impact,n=r||e.viewport,o=t||e.dimensions,{draggables:i,droppables:s}=o,l=i[e.critical.draggable.id],c=co(a);c||xe();let d=s[c],u=TV({impact:a,viewport:n,destination:d,draggables:i}),f=RV({impact:u,draggable:l,droppable:d,draggables:i,viewport:n,afterCritical:e.afterCritical});return V0({impact:u,clientSelection:f,state:e,dimensions:o,viewport:n})},Dhe=e=>({index:e.index,droppableId:e.droppableId}),DV=({draggable:e,home:t,draggables:r,viewport:a})=>{let n=J0(t.axis,e.displaceBy),o=yp(t.descriptor.id,r),i=o.indexOf(e);i===-1&&xe();let s=o.slice(i+1),l=s.reduce((f,p)=>(f[p.descriptor.id]=!0,f),{}),c={inVirtualList:t.descriptor.mode==="virtual",displacedBy:n,effected:l};return{impact:{displaced:H0({afterDragging:s,destination:t,displacedBy:n,last:null,viewport:
68a.frame,forceShouldAnimate:!1}),displacedBy:n,at:{type:"REORDER",destination:Dhe(e.descriptor)}},afterCritical:c}},Mhe=(e,t)=>({draggables:e.draggables,droppables:sA(e.droppables,t)}),Z0=e=>{},Q0=e=>{},_he=({draggable:e,offset:t,initialWindowScroll:r})=>{let a=D0(e.client,t),n=M0(a,r);return{...e,placeholder:{...e.placeholder,client:a},client:a,page:n}},Fhe=e=>{let t=e.frame;return t||xe(),t},jhe=({additions:e,updatedDroppables:t,viewport:r})=>{let a=r.scroll.diff.value;return e.map(n=>{let o=n.descriptor.droppableId,i=t[o],l=Fhe(i).scroll.diff.value,c=Da(a,l);return _he({draggable:n,offset:c,initialWindowScroll:r.scroll.initial})})},Bhe=({state:e,published:t})=>{Z0();let r=t.modified.map(y=>{let v=e.dimensions.droppables[y.droppableId];return tA(v,y.scroll)}),a={...e.dimensions.droppables,...gV(r)},n=vV(jhe({additions:t.additions,updatedDroppables:a,viewport:e.viewport})),o={...e.dimensions.draggables,...n};t.removals.forEach(y=>{delete o[y]});let i={droppables:a,draggables:o},s=co(e.impact),l=s?i.droppables[s]:null,c=i.draggables[e.critical.draggable.id],d=i.droppables[e.critical.droppable.id],{impact:u,afterCritical:f}=DV({draggable:c,home:d,draggables:o,viewport:e.viewport}),p=l&&l.isCombineEnabled?e.impact:u,m=LV({pageOffset:e.current.page.offset,draggable:i.draggables[e.critical.draggable.id],draggables:i.draggables,droppables:i.droppables,previousImpact:p,viewport:e.viewport,afterCritical:f});Q0();let h={...e,phase:"DRAGGING",impact:m,onLiftImpact:u,dimensions:i,afterCritical:f,forceShouldAnimate:!1};return e.phase==="COLLECTING"?h:{...h,phase:"DROP_PENDING",reason:e.reason,isWaiting:!1}},XE=e=>e.movementMode==="SNAP",FE=(e,t,r)=>{let a=Mhe(e.dimensions,t);return!XE(e)||r?V0({state:e,dimensions:a}):OV({state:e,dimensions:a})};function jE(e){return e.isDragging&&e.movementMode==="SNAP"?{...e,scrollJumpRequest:null}:e}var $6={phase:"IDLE",completed:null,shouldFlush:!1},Vhe=(e=$6,t)=>{if(t.type==="FLUSH")return{...$6,shouldFlush:!0};if(t.type==="INITIAL_PUBLISH"){e.phase!=="IDLE"&&xe();let{critical:r,clientSelection:a,viewport:n,dimensions:o,movementMode:i}=t.payload,s=o.draggables[r.draggable.id],l=o.droppables[r.droppable.id],c={selection:a,borderBoxCenter:s.client.borderBox.center,offset:Sa},d={client:c,page:{selection:Da(c.selection,n.scroll.initial),borderBoxCenter:Da(c.selection,n.scroll.initial),offset:Da(c.selection,n.scroll.diff.value)}},u=A1(o.droppables).every(h=>!h.isFixedOnPage),{impact:f,afterCritical:p}=DV({draggable:s,home:l,draggables:o.draggables,viewport:n});return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:i,dimensions:o,initial:d,current:d,isWindowScrollAllowed:u,impact:f,afterCritical:p,onLiftImpact:f,viewport:n,scrollJumpRequest:null,forceShouldAnimate:null}}if(t.type==="COLLECTION_STARTING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"?e:(e.phase!=="DRAGGING"&&xe(),{...e,phase:"COLLECTING"});if(t.type==="PUBLISH_WHILE_DRAGGING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"||xe(),Bhe({state:e,published:t.payload});if(t.type==="MOVE"){if(e.phase==="DROP_PENDING")return e;Hu(e)||xe();let{client:r}=t.payload;return Cc(r,e.current.client.selection)?e:V0({state:e,clientSelection:r,impact:XE(e)?e.impact:null})}if(t.type==="UPDATE_DROPPABLE_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="COLLECTING")return jE(e);Hu(e)||xe();let{id:r,newScroll:a}=t.payload,n=e.dimensions.droppables[r];if(!n)return e;let o=tA(n,a);return FE(e,o,!1)}if(t.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(e.phase==="DROP_PENDING")return e;Hu(e)||xe();let{id:r,isEnabled:a}=t.payload,n=e.dimensions.droppables[r];n||xe(),n.isEnabled===a&&xe();let o={...n,isEnabled:a};return FE(e,o,!0)}if(t.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(e.phase==="DROP_PENDING")return e;Hu(e)||xe();let{id:r,isCombineEnabled:a}=t.payload,n=e.dimensions.droppables[r];n||xe(),n.isCombineEnabled===a&&xe();let o={...n,isCombineEnabled:a};return FE(e,o,!0)}if(t.type==="MOVE_BY_WINDOW_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="DROP_ANIMATING")return e;Hu(e)||xe(),e.isWindowScrollAllowed||xe();let r=t.payload.newScroll;if(Cc(e.viewport.scroll.current,r))return jE(e);let a=CV(e.viewport,r);
vendor: 4,718 bytes, line 68
68return XE(e)?OV({state:e,viewport:a}):V0({state:e,viewport:a})}if(t.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!Hu(e))return e;let r=t.payload.maxScroll;if(Cc(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"&&xe();let r=She({state:e,type:t.type});return r?V0({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"&&xe(),{...e,phase:"DROP_PENDING",isWaiting:!0,reason:r}}if(t.type==="DROP_ANIMATE"){let{completed:r,dropDuration:a,newHomeClientOffset:n}=t.payload;return e.phase==="DRAGGING"||e.phase==="DROP_PENDING"||xe(),{phase:"DROP_ANIMATING",completed:r,dropDuration:a,newHomeClientOffset:n,dimensions:e.dimensions}}if(t.type==="DROP_COMPLETE"){let{completed:r}=t.payload;return{phase:"IDLE",completed:r,shouldFlush:!1}}return e};function At(e,t){return e instanceof Object&&"type"in e&&e.type===t}var Uhe=e=>({type:"BEFORE_INITIAL_CAPTURE",payload:e}),qhe=e=>({type:"LIFT",payload:e}),zhe=e=>({type:"INITIAL_PUBLISH",payload:e}),Hhe=e=>({type:"PUBLISH_WHILE_DRAGGING",payload:e}),Whe=()=>({type:"COLLECTION_STARTING",payload:null}),Ghe=e=>({type:"UPDATE_DROPPABLE_SCROLL",payload:e}),$he=e=>({type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}),Khe=e=>({type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}),MV=e=>({type:"MOVE",payload:e}),Xhe=e=>({type:"MOVE_BY_WINDOW_SCROLL",payload:e}),Yhe=e=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}),Jhe=()=>({type:"MOVE_UP",payload:null}),Zhe=()=>({type:"MOVE_DOWN",payload:null}),Qhe=()=>({type:"MOVE_RIGHT",payload:null}),ege=()=>({type:"MOVE_LEFT",payload:null}),lA=()=>({type:"FLUSH",payload:null}),tge=e=>({type:"DROP_ANIMATE",payload:e}),cA=e=>({type:"DROP_COMPLETE",payload:e}),_V=e=>({type:"DROP",payload:e}),rge=e=>({type:"DROP_PENDING",payload:e}),FV=()=>({type:"DROP_ANIMATION_FINISHED",payload:null});var age=e=>({getState:t,dispatch:r})=>a=>n=>{if(!At(n,"LIFT")){a(n);return}let{id:o,clientSelection:i,movementMode:s}=n.payload,l=t();l.phase==="DROP_ANIMATING"&&r(cA({completed:l.completed})),t().phase!=="IDLE"&&xe(),r(lA()),r(Uhe({draggableId:o,movementMode:s}));let d={draggableId:o,scrollOptions:{shouldPublishImmediately:s==="SNAP"}},{critical:u,dimensions:f,viewport:p}=e.startPublishing(d);r(zhe({critical:u,dimensions:f,clientSelection:i,movementMode:s,viewport:p}))},nge=e=>()=>t=>r=>{At(r,"INITIAL_PUBLISH")&&e.dragging(),At(r,"DROP_ANIMATE")&&e.dropping(r.payload.completed.result.reason),(At(r,"FLUSH")||At(r,"DROP_COMPLETE"))&&e.resting(),t(r)},uA={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},W0={opacity:{drop:0,combining:.7},scale:{drop:.75}},jV={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},zu=`${jV.outOfTheWay}s ${uA.outOfTheWay}`,U0={fluid:`opacity ${zu}`,snap:`transform ${zu}, opacity ${zu}`,drop:e=>{let t=`${e}s ${uA.drop}`;return`transform ${t}, opacity ${t}`},outOfTheWay:`transform ${zu}`,placeholder:`height ${zu}, width ${zu}, margin ${zu}`},K6=e=>Cc(e,Sa)?void 0:`translate(${e.x}px, ${e.y}px)`,YE={moveTo:K6,drop:(e,t)=>{let r=K6(e);if(r)return t?`${r} scale(${W0.scale.drop})`:r}},{minDropTime:JE,maxDropTime:BV}=jV,oge=BV-JE,X6=1500,ige=.6,sge=({current:e,destination:t,reason:r})=>{let a=q0(e,t);if(a<=0)return JE;if(a>=X6)return BV;let n=a/X6,o=JE+oge*n,i=r==="CANCEL"?o*ige:o;return Number(i.toFixed(2))},lge=({impact:e,draggable:t,dimensions:r,viewport:a,afterCritical:n})=>{let{draggables:o,droppables:i}=r,s=co(e),l=s?i[s]:null,c=i[t.descriptor.droppableId],d=RV({impact:e,draggable:t,draggables:o,afterCritical:n,droppable:l||c,viewport:a});return lo(d,t.client.borderBox.center)},cge=({draggables:e,reason:t,lastImpact:r,home:a,viewport:n,onLiftImpact:o})=>!r.at||t!=="DROP"?{impact:TV({draggables:e,impact:o,destination:a,viewport:n,forceShouldAnimate:!0}),didDropInsideDroppable:!1}:r.at.type==="REORDER"?{impact:r,didDropInsideDroppable:!0}:{impact:{...r,displaced:z0},didDropInsideDroppable:!0},uge=({getState:e,dispatch:t})=>r=>a=>{if(!At(a,"DROP")){r(a);return}let n=e(),o=a.payload.reason;if(n.phase==="COLLECTING"){t(rge({reason:o}));return}if(n.phase==="IDLE")return;n.phase==="DROP_PENDING"&&n.isWaiting&&xe(),n.phase==="DRAGGING"||n.phase==="DROP_PENDING"||xe();let s=n.critical,l=n.dimensions,c=l.draggables[n.critical.draggable.id],{impact:d,didDropInsideDroppable:u}=cge({reason:o,lastImpact:n.impact,afterCritical:n.afterCritical,onLiftImpact:n.onLiftImpact,home:n.dimensions.droppables[n.critical.droppable.
68id],viewport:n.viewport,draggables:n.dimensions.draggables}),f=u?rA(d):null,p=u?L1(d):null,m={index:s.draggable.index,droppableId:s.droppable.id},h={draggableId:c.descriptor.id,type:c.descriptor.type,source:m,reason:o,mode:n.movementMode,destination:f,combine:p},g=lge({impact:d,draggable:c,dimensions:l,viewport:n.viewport,afterCritical:n.afterCritical}),y={critical:n.critical,afterCritical:n.afterCritical,result:h,impact:d};if(!(!Cc(n.current.client.offset,g)||!!h.combine)){t(cA({completed:y}));return}let x=sge({current:n.current.client.offset,destination:g,reason:o});t(tge({newHomeClientOffset:g,dropDuration:x,completed:y}))},VV=()=>({x:window.pageXOffset,y:window.pageYOffset});function dge(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:t=>{t.target!==window&&t.target!==window.document||e()}}}function fge({onWindowScroll:e}){function t(){e(VV())}let r=pp(t),a=dge(r),n=Sc;function o(){return n!==Sc}function i(){o()&&xe(),n=Ko(window,[a])}function s(){o()||xe(),r.cancel(),n(),n=Sc}return{start:i,stop:s,isActive:o}}var pge=e=>At(e,"DROP_COMPLETE")||At(e,"DROP_ANIMATE")||At(e,"FLUSH"),mge=e=>{let t=fge({onWindowScroll:r=>{e.dispatch(Xhe({newScroll:r}))}});return r=>a=>{!t.isActive()&&At(a,"INITIAL_PUBLISH")&&t.start(),t.isActive()&&pge(a)&&t.stop(),r(a)}},hge=e=>{let t=!1,r=!1,a=setTimeout(()=>{r=!0}),n=o=>{t||r||(t=!0,e(o),clearTimeout(a))};return n.wasCalled=()=>t,n},gge=()=>{let e=[],t=n=>{let o=e.findIndex(s=>s.timerId===n);o===-1&&xe();let[i]=e.splice(o,1);i.callback()};return{add:n=>{let o=setTimeout(()=>t(o)),i={timerId:o,callback:n};e.push(i)},flush:()=>
68{if(!e.length)return;let n=[...e];e.length=0,n.forEach(o=>{clearTimeout(o.timerId),o.callback()})}}},vge=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.droppableId===t.droppableId&&e.index===t.index,yge=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.draggableId===t.draggableId&&e.droppableId===t.droppableId,bge=(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},F0=(e,t)=>{Z0(),t(),Q0()},S1=(e,t)=>({draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t});function BE(e,t,r,a){if(!e){r(a(t));return}let n=hge(r);e(t,{announce:n}),n.wasCalled()||r(a(t))}var xge=(e,t)=>{let r=gge(),a=null,n=(u,f)=>{a&&xe(),F0("onBeforeCapture",()=>{let p=e().onBeforeCapture;p&&p({draggableId:u,mode:f})})},o=(u,f)=>{a&&xe(),F0("onBeforeDragStart",()=>{let p=e().onBeforeDragStart;p&&p(S1(u,f))})},i=(u,f)=>{a&&xe();let p=S1(u,f);a={mode:f,lastCritical:u,lastLocation:p.source,lastCombine:null},r.add(()=>{F0("onDragStart",()=>BE(e().onDragStart,p,t,N1.onDragStart))})},s=(u,f)=>{let p=rA(f),m=L1(f);a||xe();let h=!bge(u,a.lastCritical);h&&(a.lastCritical=u);let g=!vge(a.lastLocation,p);g&&(a.lastLocation=p);let y=!yge(a.lastCombine,m);if(y&&(a.lastCombine=m),!h&&!g&&!y)return;let v={...S1(u,a.mode),combine:m,destination:p};r.add(()=>{F0("onDragUpdate",()=>BE(e().onDragUpdate,v,t,N1.onDragUpdate))})},l=()=>{a||xe(),r.flush()},c=u=>{a||xe(),a=null,F0("onDragEnd",()=>BE(e().onDragEnd,u,t,N1.onDragEnd))};return{beforeCapture:n,beforeStart:o,start:i,update:s,flush:l,drop:c,abort:()=>{if(!a)return;let u={...S1(a.lastCritical,a.mode),combine:null,destination:null,reason:"CANCEL"};c(u)}}},wge=(e,t)=>{let r=xge(e,t);return a=>n=>o=>{if(At(o,"BEFORE_INITIAL_CAPTURE")){r.beforeCapture(o.payload.draggableId,o.payload.movementMode);return}if(At(o,"INITIAL_PUBLISH")){let s=o.payload.critical;r.beforeStart(s,o.payload.movementMode),n(o),r.start(s,o.payload.movementMode);return}if(At(o,"DROP_COMPLETE")){let s=o.payload.completed.result;r.flush(),n(o),r.drop(s);return}if(n(o),At(o,"FLUSH")){r.abort();return}let i=a.getState();i.phase==="DRAGGING"&&r.update(i.critical,i.impact)}},Sge=e=>t=>r=>{if(!At(r,"DROP_ANIMATION_FINISHED")){t(r);return}let a=e.getState();a.phase!=="DROP_ANIMATING"&&xe(),e.dispatch(cA({completed:a.completed}))},Cge=e=>{let t=null,r=null;function a(){r&&(cancelAnimationFrame(r),r=null),t&&(t(),t=null)}return n=>o=>{if((At(o,"FLUSH")||At(o,"DROP_COMPLETE")||At(o,"DROP_ANIMATION_FINISHED"))&&a(),n(o),!At(o,"DROP_ANIMATE"))return;let i={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){e.getState().phase==="DROP_ANIMATING"&&e.dispatch(FV())}};r=requestAnimationFrame(()=>{r=null,t=Ko(window,[i])})}},kge=e=>()=>t=>r=>{(At(r,"DROP_COMPLETE")||At(r,"FLUSH")||At(r,"DROP_ANIMATE"))&&e.stopPublishing(),t(r)},Nge=e=>{let t=!1;return()=>r=>a=>{if(At(a,"INITIAL_PUBLISH")){t=!0,e.tryRecordFocus(a.payload.critical.draggable.id),r(a),e.tryRestoreFocusRecorded();return}if(r(a),!!t){if(At(a,"FLUSH")){t=!1,e.tryRestoreFocusRecorded();return}if(At(a,"DROP_COMPLETE")){t=!1;let n=a.payload.completed.result;n.combine&&e.tryShiftRecord(n.draggableId,n.combine.draggableId),e.tryRestoreFocusRecorded()}}}},Ige=e=>At(e,"DROP_COMPLETE")||At(e,"DROP_ANIMATE")||At(e,"FLUSH"),Pge=e=>t=>r=>a=>{if(Ige(a)){e.stop(),r(a);return}if(At(a,"INITIAL_PUBLISH")){r(a);let n=t.getState();n.phase!=="DRAGGING"&&xe(),e.start(n);return}r(a),e.scroll(t.getState())},Ege=e=>t=>r=>{if(t(r),!At(r,"PUBLISH_WHILE_DRAGGING"))return;let a=e.getState();a.phase==="DROP_PENDING"&&(a.isWaiting||e.dispatch(_V({reason:a.reason})))},Age=IE,Lge=({dimensionMarshal:e,focusMarshal:t,styleMarshal:r,getResponders:a,announce:n,autoScroller:o})=>kE(Vhe,Age(b6(nge(r),kge(e),age(e),uge,Sge,Cge,Ege,Pge(o),mge,Nge(t),wge(a,n)))),VE=()=>({additions:{},removals:{},modified:{}});function Tge({registry:e,callbacks:t}){let r=VE(),a=null,n=()=>{a||(t.collectionStarting(),a=requestAnimationFrame(()=>{a=null,Z0();let{additions:l,removals:c,modified:d}=r,u=Object.keys(l).map(m=>e.draggable.getById(m).getDimension(Sa)).sort((m,h)=>m.descriptor.index-h.descriptor.index),f=Object.keys(d).map(m=>{let g=e.droppable.getById(m).callbacks.getScrollWhileDragging();return{droppableId:m,scroll:g}}),p={additions:u,removals:Object.keys(c),modified:f};r=VE(),Q0(),t.publish(p)}))};return{add:l=>{let c=l.descriptor.id;r.additions[c]=l,r.modified[l.descriptor.droppableId]=!0,r.removals[c]&&delete r.removals[c],n()},remove:l=>{let c=l.descriptor;r.removals[c.id]=!0,r.modified[c.droppableId]=!0,r.additions[c.id]&&delete r.additions[c.id],n()},stop:()=>{a&&(cancelAnimationFrame(a),a=null,r=VE())}}}var UV=({scrollHeight:e,scrollWidth:t,height:r,width:a})=>{let n=lo({x:t,y:e},{x:a,y:r});return{x:Math.max(0,n.x),y:Math.max(0,n.y)}},qV=()=>{let e=document.documentElement;return e||xe(),e},zV=()=>{let e=qV();return UV({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},Rge=()=>{let e=VV(),t=zV(),r=e.y,a=e.x,n=qV(),o=n.clientWidth,i=n.clientHeight,s=a+o,l=r+i;return{frame:$o({top:r,left:a,right:s,bottom:l}),scroll:{initial:e,current:e,max:t,diff:{value:Sa,displacement:Sa}}}},Oge=({critical:e,scrollOptions:t,registry:r})=>{Z0();
68let a=Rge(),n=a.scroll.current,o=e.droppable,i=r.droppable.getAllByType(o.type).map(d=>d.callbacks.getDimensionAndWatchScroll(n,t)),s=r.draggable.getAllByType(e.draggable.type).map(d=>d.getDimension(n)),l={draggables:vV(s),droppables:gV(i)};return Q0(),{dimensions:l,critical:e,viewport:a}};function Y6(e,t,r){return!(r.descriptor.id===t.id||r.descriptor.type!==t.type||e.droppable.getById(r.descriptor.droppableId).descriptor.mode!=="virtual")}var Dge=(e,t)=>{let r=null,a=Tge({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),n=(f,p)=>{e.droppable.exists(f)||xe(),r&&t.updateDroppableIsEnabled({id:f,isEnabled:p})},o=(f,p)=>{r&&(e.droppable.exists(f)||xe(),t.updateDroppableIsCombineEnabled({id:f,isCombineEnabled:p}))},i=(f,p)=>{r&&(e.droppable.exists(f)||xe(),t.updateDroppableScroll({id:f,newScroll:p}))},s=(f,p)=>{r&&e.droppable.getById(f).callbacks.scroll(p)},l=()=>{if(!r)return;a.stop();let f=r.critical.droppable;e.droppable.getAllByType(f.type).forEach(p=>p.callbacks.dragStopped()),r.unsubscribe(),r=null},c=f=>{r||xe();let p=r.critical.draggable;f.type==="ADDITION"&&Y6(e,p,f.value)&&a.add(f.value),f.type==="REMOVAL"&&Y6(e,p,f.value)&&a.remove(f.value)};return{updateDroppableIsEnabled:n,updateDroppableIsCombineEnabled:o,scrollDroppable:s,updateDroppableScroll:i,startPublishing:f=>{r&&xe();let p=e.draggable.getById(f.draggableId),m=e.droppable.getById(p.descriptor.droppableId),h={draggable:p.descriptor,droppable:m.descriptor},g=e.subscribe(c);return r={critical:h,unsubscribe:g},Oge({critical:h,registry:e,scrollOptions:f.scrollOptions})},stopPublishing:l}},HV=(e,t)=>e.phase==="IDLE"?!0:e.phase!=="DROP_ANIMATING"||e.completed.result.draggableId===t?!1:e.completed.result.reason==="DROP",Mge=e=>{window.scrollBy(e.x,e.y)},_ge=wa(e=>A1(e).filter(t=>!(!t.isEnabled||!t.frame))),Fge=(e,t)=>_ge(t).find(a=>(a.frame||xe(),PV(a.frame.pageMarginBox)(e)))||null,jge=({center:e,destination:t,droppables:r})=>{if(t){let n=r[t];return n.frame?n:null}return Fge(e,r)},G0={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:e=>e**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1},Bge=(e,t,r=()=>G0)=>{let a=r(),n=e[t.size]*a.startFromPercentage,o=e[t.size]*a.maxScrollAtPercentage;return{startScrollingFrom:n,maxScrollValueAt:o}},WV=({startOfRange:e,endOfRange:t,current:r})=>{let a=t-e;return a===0?0:(r-e)/a},dA=1,Vge=(e,t,r=()=>G0)=>{let a=r();if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return a.maxPixelScroll;if(e===t.startScrollingFrom)return dA;let o=1-WV({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),i=a.maxPixelScroll*a.ease(o);return Math.ceil(i)},Uge=(e,t,r)=>{let a=r(),n=a.durationDampening.accelerateAt,o=a.durationDampening.stopDampeningAt,i=t,s=o,c=Date.now()-i;if(c>=o)return e;if(c<n)return dA;let d=WV({startOfRange:n,endOfRange:s,current:c}),u=e*a.ease(d);return Math.ceil(u)},J6=({distanceToEdge:e,thresholds:t,dragStartTime:r,shouldUseTimeDampening:a,getAutoScrollerOptions:n})=>{let o=Vge(e,t,n);return o===0?0:a?Math.max(Uge(o,r,n),dA):o},Z6=({container:e,distanceToEdges:t,dragStartTime:r,axis:a,shouldUseTimeDampening:n,getAutoScrollerOptions:o})=>{let i=Bge(e,a,o);return t[a.end]<t[a.start]?J6({distanceToEdge:t[a.end],thresholds:i,dragStartTime:r,shouldUseTimeDampening:n,getAutoScrollerOptions:o}):-1*J6({distanceToEdge:t[a.start],thresholds:i,dragStartTime:r,shouldUseTimeDampening:n,getAutoScrollerOptions:o})},qge=({container:e,subject:t,proposedScroll:r})=>{let a=t.height>e.height,n=t.width>e.width;return!n&&!a?r:n&&a?null:{x:n?0:r.x,y:a?0:r.y}},zge=hV(e=>e===0?0:e),GV=({dragStartTime:e,container:t,subject:r,center:a,shouldUseTimeDampening:n,getAutoScrollerOptions:o})=>{let i={top:a.y-t.top,right:t.right-a.x,bottom:t.bottom-a.y,left:a.x-t.left},s=Z6({container:t,distanceToEdges:i,dragStartTime:e,axis:aA,shouldUseTimeDampening:n,getAutoScrollerOptions:o}),l=Z6({container:t,distanceToEdges:i,dragStartTime:e,axis:xV,shouldUseTimeDampening:n,getAutoScrollerOptions:o}),c=zge({x:l,y:s});if(Cc(c,Sa))return null;let d=qge({container:t,subject:r,proposedScroll:c});return d?Cc(d,Sa)?null:d:null},Hge=hV(e=>e===0?0:e>0?1:-1),fA=(()=>{let e=(t,r)=>t<0?t:t>
68r?t-r:0;return({current:t,max:r,change:a})=>{let n=Da(t,a),o={x:e(n.x,r.x),y:e(n.y,r.y)};return Cc(o,Sa)?null:o}})(),$V=({max:e,current:t,change:r})=>{let a={x:Math.max(t.x,e.x),y:Math.max(t.y,e.y)},n=Hge(r),o=fA({max:a,current:t,change:n});return!o||n.x!==0&&o.x===0||n.y!==0&&o.y===0},pA=(e,t)=>$V({current:e.scroll.current,max:e.scroll.max,change:t}),Wge=(e,t)=>{if(!pA(e,t))return null;let r=e.scroll.max,a=e.scroll.current;return fA({current:a,max:r,change:t})},mA=(e,t)=>{let r=e.frame;return r?$V({current:r.scroll.current,max:r.scroll.max,change:t}):!1},Gge=(e,t)=>{let r=e.frame;return!r||!mA(e,t)?null:fA({current:r.scroll.current,max:r.scroll.max,change:t})},$ge=({viewport:e,subject:t,center:r,dragStartTime:a,shouldUseTimeDampening:n,getAutoScrollerOptions:o})=>{let i=GV({dragStartTime:a,container:e.frame,subject:t,center:r,shouldUseTimeDampening:n,getAutoScrollerOptions:o});return i&&pA(e,i)?i:null},Kge=({droppable:e,subject:t,center:r,dragStartTime:a,shouldUseTimeDampening:n,getAutoScrollerOptions:o})=>{let i=e.frame;if(!i)return null;let s=GV({dragStartTime:a,container:i.pageMarginBox,subject:t,center:r,shouldUseTimeDampening:n,getAutoScrollerOptions:o});return s&&mA(e,s)?s:null},Q6=({state:e,dragStartTime:t,shouldUseTimeDampening:r,scrollWindow:a,scrollDroppable:n,getAutoScrollerOptions:o})=>{let i=e.current.page.borderBoxCenter,l=e.dimensions.draggables[e.critical.draggable.id].page.marginBox;if(e.isWindowScrollAllowed){let u=e.viewport,f=$ge({dragStartTime:t,viewport:u,subject:l,center:i,shouldUseTimeDampening:r,getAutoScrollerOptions:o});if(f){a(f);return}}let c=jge({center:i,destination:co(e.impact),droppables:e.dimensions.droppables});if(!c)return;let d=Kge({dragStartTime:t,droppable:c,subject:l,center:i,shouldUseTimeDampening:r,getAutoScrollerOptions:o});d&&n(c.descriptor.id,d)},Xge=({scrollWindow:e,scrollDroppable:t,getAutoScrollerOptions:r=()=>G0})=>{let a=pp(e),n=pp(t),o=null,i=c=>{o||xe();let{shouldUseTimeDampening:d,dragStartTime:u}=o;Q6({state:c,scrollWindow:a,scrollDroppable:n,dragStartTime:u,shouldUseTimeDampening:d,getAutoScrollerOptions:r})};return{start:c=>{Z0(),o&&xe();let d=Date.now(),u=!1,f=()=>{u=!0};Q6({state:c,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:f,scrollDroppable:f,getAutoScrollerOptions:r}),o={dragStartTime:d,shouldUseTimeDampening:u},Q0(),u&&i(c)},stop:()=>{o&&(a.cancel(),n.cancel(),o=null)},scroll:i}},Yge=({move:e,scrollDroppable:t,scrollWindow:r})=>{let a=(s,l)=>{let c=Da(s.current.client.selection,l);e({client:c})},n=(s,l)=>{if(!mA(s,l))return l;let c=Gge(s,l);if(!c)return t(s.descriptor.id,l),null;let d=lo(l,c);return t(s.descriptor.id,d),lo(l,d)},o=(s,l,c)=>{if(!s||!pA(l,c))return c;let d=Wge(l,c);if(!d)return r(c),null;let u=lo(c,d);return r(u),lo(c,u)};return s=>{let l=s.scrollJumpRequest;if(!l)return;let c=co(s.impact);c||xe();let d=n(s.dimensions.droppables[c],l);if(!d)return;let u=s.viewport,f=o(s.isWindowScrollAllowed,u,d);f&&a(s,f)}},Jge=({scrollDroppable:e,scrollWindow:t,move:r,getAutoScrollerOptions:a})=>{let n=Xge({scrollWindow:t,scrollDroppable:e,getAutoScrollerOptions:a}),o=Yge({move:r,scrollWindow:t,scrollDroppable:e});return{scroll:l=>{if(!(a().disabled||l.phase!=="DRAGGING")){if(l.movementMode==="FLUID"){n.scroll(l);return}l.scrollJumpRequest&&o(l)}},start:n.start,stop:n.stop}},hp="data-rfd",gp=(()=>{let e=`${hp}-drag-handle`;return{base:e,draggableId:`${e}-draggable-id`,contextId:`${e}-context-id`}})(),ZE=(()=>{let e=`${hp}-draggable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),Zge=(()=>{let e=`${hp}-droppable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),eV={contextId:`${hp}-scroll-container-context-id`},Qge=e=>t=>`[${t}="${e}"]`,j0=(e,t)=>e.map(r=>{let a=r.styles[t];return a?`${r.selector} { ${a} }`:""}).join(" "),e0e="pointer-events: none;",t0e=e=>{let t=Qge(e),r=(()=>{let s=` 69 cursor: -webkit-grab; 70 cursor: grab; 71 `;return{selector:t(gp.contextId),styles:{always:` 72 -webkit-touch-callout: none; 73 -webkit-tap-highlight-color: rgba(0,0,0,0); 74 touch-action: manipulation; 75 `,resting:s,dragging:e0e,dropAnimating:s}}})(),a=(()=>{let s=` 76 transition: ${U0.outOfTheWay}; 77 `;return{selector:t(ZE.contextId),styles:{dragging:s,dropAnimating:s,userCancel:s}}})(),n={selector:t(Zge.contextId),styles:{always:"overflow-anchor: n
77one;"}},i=[a,r,n,{selector:"body",styles:{dragging:` 78 cursor: grabbing; 79 cursor: -webkit-grabbing; 80 user-select: none; 81 -webkit-user-select: none; 82 -moz-user-select: none; 83 -ms-user-select: none; 84 overflow-anchor: none; 85 `}}];return{always:j0(i,"always"),resting:j0(i,"resting"),dragging:j0(i,"dragging"),dropAnimating:j0(i,"dropAnimating"),userCancel:j0(i,"userCancel")}},uo=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?_e.useLayoutEffect:_e.useEffect,UE=()=>{let e=document.querySelector("head");return e||xe(),e},tV=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function r0e(e,t){let r=yt(()=>t0e(e),[e]),a=(0,_e.useRef)(null),n=(0,_e.useRef)(null),o=ze(wa(u=>{let f=n.current;f||xe(),f.textContent=u}),[]),i=ze(u=>{let f=a.current;f||xe(),f.textContent=u},[]);uo(()=>{!a.current&&!n.current||xe();let u=tV(t),f=tV(t);return a.current=u,n.current=f,u.setAttribute(`${hp}-always`,e),f.setAttribute(`${hp}-dynamic`,e),UE().appendChild(u),UE().appendChild(f),i(r.always),o(r.resting),()=>{let p=m=>{let h=m.current;h||xe(),UE().removeChild(h),m.current=null};p(a),p(n)}},[t,i,o,r.always,r.resting,e]);let s=ze(()=>o(r.dragging),[o,r.dragging]),l=ze(u=>{if(u==="DROP"){o(r.dropAnimating);return}o(r.userCancel)},[o,r.dropAnimating,r.userCancel]),c=ze(()=>{n.current&&o(r.resting)},[o,r.resting]);return yt(()=>({dragging:s,dropping:l,resting:c}),[s,l,c])}function KV(e,t){return Array.from(e.querySelectorAll(t))}var XV=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window;function ev(e){return e instanceof XV(e).HTMLElement}function YV(e,t){let r=`[${gp.contextId}="${e}"]`,a=KV(document,r);if(!a.length)return null;let n=a.find(o=>o.getAttribute(gp.draggableId)===t);return!n||!ev(n)?null:n}function a0e(e){let t=(0,_e.useRef)({}),r=(0,_e.useRef)(null),a=(0,_e.useRef)(null),n=(0,_e.useRef)(!1),o=ze(function(f,p){let m={id:f,focus:p};return t.current[f]=m,function(){let g=t.current;g[f]!==m&&delete g[f]}},[]),i=ze(function(f){let p=YV(e,f);p&&p!==document.activeElement&&p.focus()},[e]),s=ze(function(f,p){r.current===f&&(r.current=p)},[]),l=ze(function(){a.current||n.current&&(a.current=requestAnimationFrame(()=>{a.current=null;let f=r.current;f&&i(f)}))},[i]),c=ze(function(f){r.current=null;let p=document.activeElement;p&&p.getAttribute(gp.draggableId)===f&&(r.current=f)},[]);return uo(()=>(n.current=!0,function(){n.current=!1;let f=a.current;f&&cancelAnimationFrame(f)}),[]),yt(()=>({register:o,tryRecordFocus:c,tryRestoreFocusRecorded:l,tryShiftRecord:s}),[o,c,l,s])}function n0e(){let e={draggables:{},droppables:{}},t=[];function r(u){return t.push(u),function(){let p=t.indexOf(u);p!==-1&&t.splice(p,1)}}function a(u){t.length&&t.forEach(f=>f(u))}function n(u){return e.draggables[u]||null}function o(u){let f=n(u);return f||xe(),f}let i={register:u=>{e.draggables[u.descriptor.id]=u,a({type:"ADDITION",value:u})},update:(u,f)=>{let p=e.draggables[f.descriptor.id];p&&p.uniqueId===u.uniqueId&&(delete e.draggables[f.descriptor.id],e.draggables[u.descriptor.id]=u)},unregister:u=>{let f=u.descriptor.id,p=n(f);p&&u.uniqueId===p.uniqueId&&(delete e.draggables[f],e.droppables[u.descriptor.droppableId]&&a({type:"REMOVAL",value:u}))},getById:o,findById:n,exists:u=>!!n(u),getAllByType:u=>Object.values(e.draggables).filter(f=>f.descriptor.type===u)};function s(u){return e.droppables[u]||null}function l(u){let f=s(u);return f||xe(),f}let c={register:u=>{e.droppables[u.descriptor.id]=u},unregister:u=>{let f=s(u.descriptor.id);f&&u.uniqueId===f.uniqueId&&delete e.droppables[u.descriptor.id]},getById:l,findById:s,exists:u=>!!s(u),getAllByType:u=>Object.values(e.droppables).filter(f=>f.descriptor.type===u)};function d(){e.draggables={},e.droppables={},t.length=0}return{draggable:i,droppable:c,subscribe:r,clean:d}}function o0e(){let e=yt(n0e,[]);return(0,_e.useEffect)(()=>function(){e.clean()},[e]),e}var hA=_e.default.createContext(null),$0=()=>{let e=document.body;return e||xe(),e},i0e={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},s0e=e=>`rfd-announcement-${e}`;function l0e(e){let t=yt(()=>s0e(e),[e]),r=(0,_e.useRef)(null);return(0,_e.useEffect)(function(){let o=document.createElement("div");return r.current=o,o.id=t,o.setAttribute("aria-live","assertive"),o.setAttribute("aria-atomic","true"),_0(o.style,i0e),$0().appendChild(o),function(){setTimeout(function(){let l=$0();l.contains(o)&&l.removeChild(o),o===r.current&&(r.current=null)})}},[t]),ze(n=>{let o=r.current;if(o){o.textContent=n;return}},[])}var c0e={separator:"::"};function gA(e,t=c0e){let r=_e.default.useId();return yt(()=>`${e}${t.separator}${r}`,[t.separator,e,r])}function u0e({contextId:e,uniqueId:t}){return`rfd-hidden-text-${e}-${t}`}function d0e({contextId:e,text:t}){let r=gA("hidden-text",{separator:"-"}),a=yt(()=>u0e({contextId:e,uniqueId:r}),[r,e]);return(0,_e.useEffect)(function(){let o=document.createElement("div");return o.id=a,o.textContent=t,o.style.display="none",$0().appendChild(o),function(){let s=$0();s.contains(o)&&s.removeChild(o)}},[a,t]),a}var O1=_e.default.createContext(null),f0e={react:"^18.0.0 || ^19.0.0"},p0e=/(\d+)\.(\d+)\.(\d+)/,rV=e=>{let t=p0e.exec(e);t==null&&xe();let r=Number(t[1]),a=Number(t[2]),n=Number(t[3]);return{major:r,minor:a,patch:n,raw:e}},m0e=(e,t)=>t.major>e.major?!0:t.major<e.major?!1:t.minor>e.minor?!0:t.minor<e.minor?!1:t.patch>=e.patch,h0e=(e,t)=>{let r=rV(e),a=rV(t);m0e(r,a)};var g0e=e=>{let t=e.doctype;t&&(t.name.toLowerCase(),t.publicId)};function tv(e,t){}function v0e(){tv(()=>{h0e(f0e.react,_e.default.version),g0e(document)},[])}function vA(e){let t=(0,_e.useRef)(e);return(0,_e.useEffect)(()=>{t.current=e}),t}function y0e(){let e=null;function t(){return!!e}function r(i){return i===e}function a(i){e&&xe();let s={abandon:i};return e=s,s}function n(){e||xe(),e=null}function o(){e&&(e.abandon(),n())}return{isClaimed:t,isActive:r,claim:a,release:n,tryAbandon:o}}function K0(e){return e.phase==="IDLE"||e.phase==="DROP_ANIMATING"?!1:e.isDragging}
vendor: 9,177 bytes, line 85
85var b0e=9,x0e=13,yA=27,JV=32,w0e=33,S0e=34,C0e=35,k0e=36,N0e=37,I0e=38,P0e=39,E0e=40,A0e={[x0e]:!0,[b0e]:!0},ZV=e=>{A0e[e.keyCode]&&e.preventDefault()},D1=(()=>{let e="visibilitychange";return typeof document>"u"?e:[e,`ms${e}`,`webkit${e}`,`moz${e}`,`o${e}`].find(a=>`on${a}`in document)||e})(),QV=0,aV=5;function L0e(e,t){return Math.abs(t.x-e.x)>=aV||Math.abs(t.y-e.y)>=aV}var nV={type:"IDLE"};function T0e({cancel:e,completed:t,getPhase:r,setPhase:a}){return[{eventName:"mousemove",fn:n=>{let{button:o,clientX:i,clientY:s}=n;if(o!==QV)return;let l={x:i,y:s},c=r();if(c.type==="DRAGGING"){n.preventDefault(),c.actions.move(l);return}c.type!=="PENDING"&&xe();let d=c.point;if(!L0e(d,l))return;n.preventDefault();let u=c.actions.fluidLift(l);a({type:"DRAGGING",actions:u})}},{eventName:"mouseup",fn:n=>{let o=r();if(o.type!=="DRAGGING"){e();return}n.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),t()}},{eventName:"mousedown",fn:n=>{r().type==="DRAGGING"&&n.preventDefault(),e()}},{eventName:"keydown",fn:n=>{if(r().type==="PENDING"){e();return}if(n.keyCode===yA){n.preventDefault(),e();return}ZV(n)}},{eventName:"resize",fn:e},{eventName:"scroll",options:{passive:!0,capture:!1},fn:()=>{r().type==="PENDING"&&e()}},{eventName:"webkitmouseforcedown",fn:n=>{let o=r();if(o.type==="IDLE"&&xe(),o.actions.shouldRespectForcePress()){e();return}n.preventDefault()}},{eventName:D1,fn:e}]}function R0e(e){let t=(0,_e.useRef)(nV),r=(0,_e.useRef)(Sc),a=yt(()=>({eventName:"mousedown",fn:function(u){if(u.defaultPrevented||u.button!==QV||u.ctrlKey||u.metaKey||u.shiftKey||u.altKey)return;let f=e.findClosestDraggableId(u);if(!f)return;let p=e.tryGetLock(f,i,{sourceEvent:u});if(!p)return;u.preventDefault();let m={x:u.clientX,y:u.clientY};r.current(),c(p,m)}}),[e]),n=yt(()=>({eventName:"webkitmouseforcewillbegin",fn:d=>{if(d.defaultPrevented)return;let u=e.findClosestDraggableId(d);if(!u)return;let f=e.findOptionsForDraggable(u);f&&(f.shouldRespectForcePress||e.canGetLock(u)&&d.preventDefault())}}),[e]),o=ze(function(){let u={passive:!1,capture:!0};r.current=Ko(window,[n,a],u)},[n,a]),i=ze(()=>{t.current.type!=="IDLE"&&(t.current=nV,r.current(),o())},[o]),s=ze(()=>{let d=t.current;i(),d.type==="DRAGGING"&&d.actions.cancel({shouldBlockNextClick:!0}),d.type==="PENDING"&&d.actions.abort()},[i]),l=ze(function(){let u={capture:!0,passive:!1},f=T0e({cancel:s,completed:i,getPhase:()=>t.current,setPhase:p=>{t.current=p}});r.current=Ko(window,f,u)},[s,i]),c=ze(function(u,f){t.current.type!=="IDLE"&&xe(),t.current={type:"PENDING",point:f,actions:u},l()},[l]);uo(function(){return o(),function(){r.current()}},[o])}function O0e(){}var D0e={[S0e]:!0,[w0e]:!0,[k0e]:!0,[C0e]:!0};function M0e(e,t){function r(){t(),e.cancel()}function a(){t(),e.drop()}return[{eventName:"keydown",fn:n=>{if(n.keyCode===yA){n.preventDefault(),r();return}if(n.keyCode===JV){n.preventDefault(),a();return}if(n.keyCode===E0e){n.preventDefault(),e.moveDown();return}if(n.keyCode===I0e){n.preventDefault(),e.moveUp();return}if(n.keyCode===P0e){n.preventDefault(),e.moveRight();return}if(n.keyCode===N0e){n.preventDefault(),e.moveLeft();return}if(D0e[n.keyCode]){n.preventDefault();return}ZV(n)}},{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:D1,fn:r}]}function _0e(e){let t=(0,_e.useRef)(O0e),r=yt(()=>({eventName:"keydown",fn:function(o){if(o.defaultPrevented||o.keyCode!==JV)return;let i=e.findClosestDraggableId(o);if(!i)return;let s=e.tryGetLock(i,d,{sourceEvent:o});if(!s)return;o.preventDefault();let l=!0,c=s.snapLift();t.current();function d(){l||xe(),l=!1,t.current(),a()}t.current=Ko(window,M0e(c,d),{capture:!0,passive:!1})}}),[e]),a=ze(function(){let o={passive:!1,capture:!0};t.current=Ko(window,[r],o)},[r]);uo(function(){return a(),function(){t.current()}},[a])}var qE={type:"IDLE"},F0e=120,j0e=.15;function B0e({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===yA&&r.preventDefault(),e()}},{eventName:D1,fn:e}]}function V0e({cancel:e,completed:t,getPhase:r}){return[{eventName:"touchmove",options:{capture:!1},fn:a=>{let n=r();if(n.type!=="DRAGGING"){e();return}n.hasMoved=!0;let{clientX:o,clientY:i}=a.touches[0],s={x:o,y:i};a.preventDefault(),n.actions.move(s)}},{eventName:"touchend",fn:a=>{let n=r();if(n.type!=="DRAGGING"){e();return}a.preventDefault(),n.actions.drop({shouldBlockNextClick:!0}),t()}},{eventName:"touchcancel",fn:a=>{if(r().type!=="DRAGGING"){e();return}a.preventDefault(),e()}},{eventName:"touchforcechange",fn:a=>{let n=r();n.type==="IDLE"&&xe();let o=a.touches[0];if(!o||!(o.force>=j0e))return;let s=n.actions.shouldRespectForcePress();if(n.type==="PENDING"){s&&e();return}if(s){if(n.hasMoved){a.preventDefault();return}e();return}a.preventDefault()}},{eventName:D1,fn:e}]}function U0e(e){let t=(0,_e.useRef)(qE),r=(0,_e.useRef)(Sc),a=ze(function(){return t.current},[]),n=ze(function(p){t.current=p},[]),o=yt(()=>({eventName:"touchstart",fn:function(p){if(p.defaultPrevented)return;let m=e.findClosestDraggableId(p);if(!m)return;let h=e.tryGetLock(m,s,{sourceEvent:p});if(!h)return;let g=p.touches[0],{clientX:y,clientY:v}=g,x={x:y,y:v};r.current(),u(h,x)}}),[e]),i=ze(function(){let p={capture:!0,passive:!1};r.current=Ko(window,[o],p)},[o]),s=ze(()=>{let f=t.current;f.type!=="IDLE"&&(f.type==="PENDING"&&clearTimeout(f.longPressTimerId),n(qE),r.current(),i())},[i,n]),l=ze(()=>{let f=t.current;s(),f.type==="DRAGGING"&&f.actions.cancel({shouldBlockNextClick:!0}),f.type==="PENDING"&&f.actions.abort()},[s]),c=ze(function(){let p={capture:!0,passive:!1},m={cancel:l,completed:s,getPhase:a},h=Ko(window,V0e(m),p),g=Ko(window,B0e(m),p);r.current=function(){h(),g()}},[l,a,s]),d=ze(function(){let p=a();p.type!=="PENDING"&&xe();let m=p.actions.fluidLift(p.point);n({type:"DRAGGING",actions:m,hasMoved:!1})},[a,n]),u=ze(function(p,m){a().type!=="IDLE"&&xe();let h=setTimeout(d,F0e);n({type:"PENDING",point:m,actions:p,longPressTimerId:h}),c()},[c,a,n,d]);uo(function(){return i(),function(){r.current();let m=a();m.type==="PENDING"&&(clearTimeout(m.longPressTimerId),n(qE))}},[a,i,n]),uo(function(){return Ko(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])},[])}function q0e(e){}var z0e=["input","button","textarea","select","option","optgroup","video","audio"];function eU(e,t){if(t==null)return!1;if(z0e.includes(t.tagName.toLowerCase()))return!0;let a=t.getAttribute("contenteditable");return a==="true"||a===""?!0:t===e?!1:eU(e,t.parentElement)}function H0e(e,t){let r=t.target;return ev(r)?eU(e,r):!1}var W0e=e=>$o(e.getBoundingClientRect()).center;function G0e(e){return e instanceof XV(e).Element}var $0e=(()=>{let e="matches";return typeof document>"u"?e:[e,"msMatchesSelector","webkitMatchesSelector"].find(a=>a in Element.prototype)||e})();function tU(e,t){return e==null?null:e[$0e](t)?e:tU(e.parentElement,t)}function K0e(e,t){return e.closest?e.closest(t):tU(e,t)}function X0e(e){return`[${gp.contextId}="${e}"]`}function Y0e(e,t){let r=t.target;if(!G0e(r))return null;let a=X0e(e),n=K0e(r,a);return!n||!ev(n)?null:n}function J0e(e,t){let r=Y0e(e,t);return r?r.getAttribute(gp.draggableId):null}function Z0e(e,t){let r=`[${ZE.contextId}="${e}"]`,n=KV(document,r).find(o=>o.getAttribute(ZE.id)===t);return!n||!ev(n)?null:n}function Q0e(e){e.preventDefault()}function C1({expected:e,phase:t,isLockActive:r,shouldWarn:a}){return!(!r()||e!==t)}function rU({lockAPI:e,store:t,registry:r,draggableId:a}){if(e.isClaimed())return!1;let n=r.draggable.findById(a);return!(!n||!n.options.isEnabled||!HV(t.getState(),a))}function eve({lockAPI:e,contextId:t,store:r,registry:a,draggableId:n,forceSensorStop:o,sourceEvent:i}){if(!rU({lockAPI:e,store:r,registry:a,draggableId:n}))return null;let l=a.draggable.getById(n),c=Z0e(t,l.descriptor.id);if(!c||i&&!l.options.canDragInteractiveElements&&H0e(c,i))return null;let d=e.claim(o||Sc),u="PRE_DRAG";function f(){return l.options.shouldRespectForcePress}function p(){return e.isActive(d)}function m(b,w){C1({expected:b,phase:u,isLockActive:p,shouldWarn:!0})&&r.dispatch(w())}let h=m.bind(null,"DRAGGING");function g(b){function w(){e.release(),u="COMPLETED"}u!=="PRE_DRAG"&&(w(),xe()),r.dispatch(qhe(b.liftActionArgs)),u="DRAGGING";function k(C,N={shouldBlockNextClick:!1}){if(b.cleanup(),N.shouldBlockNextClick){let E=Ko(window,[{eventName:"click",fn:Q0e,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(E)}w(),r.dispatch(_V({reason:C}))}return{isActive:()=>C1({expected:"DRAGGING",phase:u,isLockActive:p,shouldWarn:!1}),shouldRespectForcePress:f,drop:C=>k("DROP",C),cancel:C=>k("CANCEL",C),...b.actions}}function y(b){let w=pp(C=>{h(()=>MV({client:C}))});return{...g({liftActionArgs:{id:n,clientSelection:b,movementMode:"FLUID"},cleanup:()=>w.cancel(),actions:{move:w}}),move:w}}function v(){let b={moveUp:()=>h(Jhe),moveRight:()=>h(Qhe),moveDown:()=>h(Zhe),moveLeft:()=>h(ege)};return g({liftActionArgs:{id:n,clientSelection:W0e(c),movementMode:"SNAP"}
85,cleanup:Sc,actions:b})}function x(){C1({expected:"PRE_DRAG",phase:u,isLockActive:p,shouldWarn:!0})&&e.release()}return{isActive:()=>C1({expected:"PRE_DRAG",phase:u,isLockActive:p,shouldWarn:!1}),shouldRespectForcePress:f,fluidLift:y,snapLift:v,abort:x}}var tve=[R0e,_0e,U0e];function rve({contextId:e,store:t,registry:r,customSensors:a,enableDefaultSensors:n}){let o=[...n?tve:[],...a||[]],i=(0,_e.useState)(()=>y0e())[0],s=ze(function(g,y){K0(g)&&!K0(y)&&i.tryAbandon()},[i]);uo(function(){let g=t.getState();return t.subscribe(()=>{let v=t.getState();s(g,v),g=v})},[i,t,s]),uo(()=>i.tryAbandon,[i.tryAbandon]);let l=ze(h=>rU({lockAPI:i,registry:r,store:t,draggableId:h}),[i,r,t]),c=ze((h,g,y)=>eve({lockAPI:i,registry:r,contextId:e,store:t,draggableId:h,forceSensorStop:g||null,sourceEvent:y&&y.sourceEvent?y.sourceEvent:null}),[e,i,r,t]),d=ze(h=>J0e(e,h),[e]),u=ze(h=>{let g=r.draggable.findById(h);return g?g.options:null},[r.draggable]),f=ze(function(){i.isClaimed()&&(i.tryAbandon(),t.getState().phase!=="IDLE"&&t.dispatch(lA()))},[i,t]),p=ze(()=>i.isClaimed(),[i]),m=yt(()=>({canGetLock:l,tryGetLock:c,findClosestDraggableId:d,findOptionsForDraggable:u,tryReleaseLock:f,isLockClaimed:p}),[l,c,d,u,f,p]);q0e(o);for(let h=0;h<o.length;h++)o[h](m)}var ave=e=>({onBeforeCapture:t=>{(0,X0.flushSync)(()=>{e.onBeforeCapture&&e.onBeforeCapture(t)})},onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}),nve=e=>({...G0,...e.autoScrollerOptions,durationDampening:{...G0.durationDampening,...e.autoScrollerOptions}});function B0(e){return e.current||xe(),e.current}function ove(e){let{contextId:t,setCallbacks:r,sensors:a,nonce:n,dragHandleUsageInstructions:o}=e,i=(0,_e.useRef)(null);v0e();let s=vA(e),l=ze(()=>ave(s.current),[s]),c=ze(()=>nve(s.current),[s]),d=l0e(t),u=d0e({contextId:t,text:o}),f=r0e(t,n),p=ze(E=>{B0(i).dispatch(E)},[]),m=yt(()=>NE({publishWhileDragging:Hhe,updateDroppableScroll:Ghe,updateDroppableIsEnabled:$he,updateDroppableIsCombineEnabled:Khe,collectionStarting:Whe},p),[p]),h=o0e(),g=yt(()=>Dge(h,m),[h,m]),y=yt(()=>Jge({scrollWindow:Mge,scrollDroppable:g.scrollDroppable,getAutoScrollerOptions:c,...NE({move:MV},p)}),[g.scrollDroppable,p,c]),v=a0e(t),x=yt(()=>Lge({announce:d,autoScroller:y,dimensionMarshal:g,focusMarshal:v,getResponders:l,styleMarshal:f}),[d,y,g,v,l,f]);i.current=x;let S=ze(()=>{let E=B0(i);E.getState().phase!=="IDLE"&&E.dispatch(lA())},[]),b=ze(()=>{let E=B0(i).getState();return E.phase==="DROP_ANIMATING"?!0:E.phase==="IDLE"?!1:E.isDragging},[]),w=yt(()=>({isDragging:b,tryAbort:S}),[b,S]);r(w);let k=ze(E=>HV(B0(i).getState(),E),[]),C=ze(()=>Hu(B0(i).getState()),[]),N=yt(()=>({marshal:g,focus:v,contextId:t,canLift:k,isMovementAllowed:C,dragHandleUsageInstructionsId:u,registry:h}),[t,g,u,v,k,C,h]);return rve({contextId:t,store:x,registry:h,customSensors:a||null,enableDefaultSensors:e.enableDefaultSensors!==!1}),(0,_e.useEffect)(()=>S,[S]),_e.default.createElement(O1.Provider,{value:N},_e.default.createElement(M6,{context:hA,store:x},e.children))}function ive(){return _e.default.useId()}function aU(e){let t=ive(),r=e.dragHandleUsageInstructions||N1.dragHandleUsageInstructions;return _e.default.createElement($E,null,a=>_e.default.createElement(ove,{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 oV={dragging:5e3,dropAnimating:4500},sve=(e,t)=>t?U0.drop(t.duration):e?U0.snap:U0.fluid,lve=(e,t)=>
85{if(e)return t?W0.opacity.drop:W0.opacity.combining},cve=e=>e.forceShouldAnimate!=null?e.forceShouldAnimate:e.mode==="SNAP";function uve(e){let r=e.dimension.client,{offset:a,combineWith:n,dropping:o}=e,i=!!n,s=cve(e),l=!!o,c=l?YE.drop(a,i):YE.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:sve(s,o),transform:c,opacity:lve(i,l),zIndex:l?oV.dropAnimating:oV.dragging,pointerEvents:"none"}}function dve(e){return{transform:YE.moveTo(e.offset),transition:e.shouldAnimateDisplacement?void 0:"none"}}function fve(e){return e.type==="DRAGGING"?uve(e):dve(e)}function pve(e,t,r=Sa){let a=window.getComputedStyle(t),n=t.getBoundingClientRect(),o=ME(n,a),i=M0(o,r),s={client:o,tagName:t.tagName.toLowerCase(),display:a.display},l={x:o.marginBox.width,y:o.marginBox.height};return{descriptor:e,placeholder:s,displaceBy:l,client:o,page:i}}function mve(e){let t=gA("draggable"),{descriptor:r,registry:a,getDraggableRef:n,canDragInteractiveElements:o,shouldRespectForcePress:i,isEnabled:s}=e,l=yt(()=>({canDragInteractiveElements:o,shouldRespectForcePress:i,isEnabled:s}),[o,s,i]),c=ze(p=>{let m=n();return m||xe(),pve(r,m,p)},[r,n]),d=yt(()=>({uniqueId:t,descriptor:r,options:l,getDimension:c}),[r,c,l,t]),u=(0,_e.useRef)(d),f=(0,_e.useRef)(!0);uo(()=>(a.draggable.register(u.current),()=>a.draggable.unregister(u.current)),[a.draggable]),uo(()=>{if(f.current){f.current=!1;return}let p=u.current;u.current=d,a.draggable.update(d,p)},[d,a.draggable])}var bA=_e.default.createContext(null);function nU(e){e&&ev(e)||xe()}function hve(e,t,r){tv(()=>{function a(o){return`Draggable[id: ${o}]: `}let n=e.draggableId;n||xe(!1),typeof n!="string"&&xe(!1),Number.isInteger(e.index)||xe(!1),e.mapped.type!=="DRAGGING"&&(nU(r()),e.isEnabled&&(YV(t,n)||xe(!1)))})}function gve(e){}function E1(e){let t=(0,_e.useContext)(e);return t||xe(),t}function vve(e){e.preventDefault()}var yve=e=>{let t=(0,_e.useRef)(null),r=ze((w=null)=>{t.current=w},[]),a=ze(()=>t.current,[]),{contextId:n,dragHandleUsageInstructionsId:o,registry:i}=E1(O1),{type:s,droppableId:l}=E1(bA),c=yt(()=>({id:e.draggableId,index:e.index,type:s,droppableId:l}),[e.draggableId,e.index,s,l]),{children:d,draggableId:u,isEnabled:f,shouldRespectForcePress:p,canDragInteractiveElements:m,isClone:h,mapped:g,dropAnimationFinished:y}=e;if(hve(e,n,a),gve(h),!h){let w=yt(()=>({descriptor:c,registry:i,getDraggableRef:a,canDragInteractiveElements:m,shouldRespectForcePress:p,isEnabled:f}),[c,i,a,m,p,f]);mve(w)}let v=yt(()=>f?{tabIndex:0,role:"button","aria-describedby":o,"data-rfd-drag-handle-draggable-id":u,"data-rfd-drag-handle-context-id":n,draggable:!1,onDragStart:vve}:null,[n,o,u,f]),x=ze(w=>{g.type==="DRAGGING"&&g.dropping&&w.propertyName==="transform"&&(0,X0.flushSync)(y)},[y,g]),S=yt(()=>{let w=fve(g),k=g.type==="DRAGGING"&&g.dropping?x:void 0;return{innerRef:r,draggableProps:{"data-rfd-draggable-context-id":n,"data-rfd-draggable-id":u,style:w,onTransitionEnd:k},dragHandleProps:v}},[n,v,u,g,x,r]),b=yt(()=>({draggableId:c.id,type:c.type,source:{index:c.index,droppableId:c.droppableId}}),[c.droppableId,c.id,c.index,c.type]);return _e.default.createElement(_e.default.Fragment,null,d(S,g.snapshot,b))},oU=(e,t)=>e===t,iU=e=>{let{combine:t,destination:r}=e;return r?r.droppableId:t?t.droppableId:null},bve=e=>e.combine?e.combine.draggableId:null,xve=e=>e.at&&e.at.type==="COMBINE"?e.at.combine.draggableId:null;function wve(){let e=wa((n,o)=>({x:n,y:o})),t=wa((n,o,i=null,s=null,l=null)=>({isDragging:!0,isClone:o,isDropAnimating:!!l,dropAnimation:l,mode:n,draggingOver:i,combineWith:s,combineTargetFor:null})),r=wa((n,o,i,s,l=null,c=null,d=null)=>({mapped:{type:"DRAGGING",dropping:null,draggingOver:l,combineWith:c,mode:o,offset:n,dimension:i,forceShouldAnimate:d,snapshot:t(o,s,l,c,null)}}));return(n,o)=>
85{if(K0(n)){if(n.critical.draggable.id!==o.draggableId)return null;let i=n.current.client.offset,s=n.dimensions.draggables[o.draggableId],l=co(n.impact),c=xve(n.impact),d=n.forceShouldAnimate;return r(e(i.x,i.y),n.movementMode,s,o.isClone,l,c,d)}if(n.phase==="DROP_ANIMATING"){let i=n.completed;if(i.result.draggableId!==o.draggableId)return null;let s=o.isClone,l=n.dimensions.draggables[o.draggableId],c=i.result,d=c.mode,u=iU(c),f=bve(c),m={duration:n.dropDuration,curve:uA.drop,moveTo:n.newHomeClientOffset,opacity:f?W0.opacity.drop:null,scale:f?W0.scale.drop:null};return{mapped:{type:"DRAGGING",offset:n.newHomeClientOffset,dimension:l,dropping:m,draggingOver:u,combineWith:f,mode:d,forceShouldAnimate:null,snapshot:t(d,s,u,f,m)}}}return null}}function sU(e=null){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var Sve={mapped:{type:"SECONDARY",offset:Sa,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:sU(null)}};function Cve(){let e=wa((i,s)=>({x:i,y:s})),t=wa(sU),r=wa((i,s=null,l)=>({mapped:{type:"SECONDARY",offset:i,combineTargetFor:s,shouldAnimateDisplacement:l,snapshot:t(s)}})),a=i=>i?r(Sa,i,!0):null,n=(i,s,l,c)=>{let d=l.displaced.visible[i],u=!!(c.inVirtualList&&c.effected[i]),f=L1(l),p=f&&f.draggableId===i?s:null;if(!d){if(!u)return a(p);if(l.displaced.invisible[i])return null;let g=vp(c.displacedBy.point),y=e(g.x,g.y);return r(y,p,!0)}if(u)return a(p);let m=l.displacedBy.point,h=e(m.x,m.y);return r(h,p,d.shouldAnimate)};return(i,s)=>{if(K0(i))return i.critical.draggable.id===s.draggableId?null:n(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:n(s.draggableId,l.result.draggableId,l.impact,l.afterCritical)}return null}}var kve=()=>{let e=wve(),t=Cve();return(a,n)=>e(a,n)||t(a,n)||Sve},Nve={dropAnimationFinished:FV},Ive=RE(kve,Nve,null,{context:hA,areStatePropsEqual:oU})(yve);function lU(e){return E1(bA).isUsingCloneFor===e.draggableId&&!e.isClone?null:_e.default.createElement(Ive,e)}function cU(e){let t=typeof e.isDragDisabled=="boolean"?!e.isDragDisabled:!0,r=!!e.disableInteractiveElementBlocking,a=!!e.shouldRespectForcePress;return _e.default.createElement(lU,_0({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:r,shouldRespectForcePress:a}))}var xA=e=>t=>e===t,Pve=xA("scroll"),Eve=xA("auto"),Ave=xA("visible"),iV=(e,t)=>t(e.overflowX)||t(e.overflowY),Lve=(e,t)=>t(e.overflowX)&&t(e.overflowY),uU=e=>{let t=window.getComputedStyle(e),r={overflowX:t.overflowX,overflowY:t.overflowY};return iV(r,Pve)||iV(r,Eve)},Tve=()=>!1,dU=e=>e==null?null:e===document.body?Tve()?e:null:e===document.documentElement?null:uU(e)?e:dU(e.parentElement);var QE=e=>({x:e.scrollLeft,y:e.scrollTop}),fU=e=>e?window.getComputedStyle(e).position==="fixed"?!0:fU(e.parentElement):!1,Rve=e=>{let t=dU(e),r=fU(e);return{closestScrollable:t,isFixedOnPage:r}},Ove=({descriptor:e,isEnabled:t,isCombineEnabled:r,isFixedOnPage:a,direction:n,client:o,page:i,closest:s})=>{let l=(()=>{if(!s)return null;let{scrollSize:f,client:p}=s,m=UV({scrollHeight:f.scrollHeight,scrollWidth:f.scrollWidth,height:p.paddingBox.height,width:p.paddingBox.width});return{pageMarginBox:s.page.marginBox,frameClient:p,scrollSize:f,shouldClipSubject:s.shouldClipSubject,scroll:{initial:s.scroll,current:s.scroll,max:m,diff:{value:Sa,displacement:Sa}}}})(),c=n==="vertical"?aA:xV,d=mp({page:i,withPlaceholder:null,axis:c,frame:l});return{descriptor:e,isCombineEnabled:r,isFixedOnPage:a,axis:c,isEnabled:t,client:o,page:i,frame:l,subject:d}},Dve=(e,t)=>{let r=_E(e);if(!t||e!==t)return r;let a=r.paddingBox.top-t.scrollTop,n=r.paddingBox.left-t.scrollLeft,o=a+t.scrollHeight,i=n+t.scrollWidth,l=x1({top:a,right:i,bottom:o,left:n},r.border);return w1({borderBox:l,margin:r.margin,border:r.border,padding:r.padding})},Mve=({ref:e,descriptor:t,env:r,windowScroll:a,direction:n,isDropDisabled:o,isCombine
85Enabled:i,shouldClipSubject:s})=>{let l=r.closestScrollable,c=Dve(e,l),d=M0(c,a),u=(()=>{if(!l)return null;let p=_E(l),m={scrollHeight:l.scrollHeight,scrollWidth:l.scrollWidth};return{client:p,page:M0(p,a),scroll:QE(l),scrollSize:m,shouldClipSubject:s}})();return Ove({descriptor:t,isEnabled:!o,isCombineEnabled:i,isFixedOnPage:r.isFixedOnPage,direction:n,client:c,page:d,closest:u})},_ve={passive:!1},Fve={passive:!0},sV=e=>e.shouldPublishImmediately?_ve:Fve,k1=e=>e&&e.env.closestScrollable||null;function jve(e){let t=(0,_e.useRef)(null),r=E1(O1),a=gA("droppable"),{registry:n,marshal:o}=r,i=vA(e),s=yt(()=>({id:e.droppableId,type:e.type,mode:e.mode}),[e.droppableId,e.mode,e.type]),l=(0,_e.useRef)(s),c=yt(()=>wa((S,b)=>{t.current||xe();let w={x:S,y:b};o.updateDroppableScroll(s.id,w)}),[s.id,o]),d=ze(()=>{let S=t.current;return!S||!S.env.closestScrollable?Sa:QE(S.env.closestScrollable)},[]),u=ze(()=>{let S=d();c(S.x,S.y)},[d,c]),f=yt(()=>pp(u),[u]),p=ze(()=>{let S=t.current,b=k1(S);if(S&&b||xe(),S.scrollOptions.shouldPublishImmediately){u();return}f()},[f,u]),m=ze((S,b)=>{t.current&&xe();let w=i.current,k=w.getDroppableRef();k||xe();let C=Rve(k),N={ref:k,descriptor:s,env:C,scrollOptions:b};t.current=N;let E=Mve({ref:k,descriptor:s,env:C,windowScroll:S,direction:w.direction,isDropDisabled:w.isDropDisabled,isCombineEnabled:w.isCombineEnabled,shouldClipSubject:!w.ignoreContainerClipping}),L=C.closestScrollable;return L&&(L.setAttribute(eV.contextId,r.contextId),L.addEventListener("scroll",p,sV(N.scrollOptions))),E},[r.contextId,s,p,i]),h=ze(()=>{let S=t.current,b=k1(S);return S&&b||xe(),QE(b)},[]),g=ze(()=>{let S=t.current;S||xe();let b=k1(S);t.current=null,b&&(f.cancel(),b.removeAttribute(eV.contextId),b.removeEventListener("scroll",p,sV(S.scrollOptions)))},[p,f]),y=ze(S=>{let b=t.current;b||xe();let w=k1(b);w||xe(),w.scrollTop+=S.y,w.scrollLeft+=S.x},[]),v=yt(()=>({getDimensionAndWatchScroll:m,getScrollWhileDragging:h,dragStopped:g,scroll:y}),[g,m,h,y]),x=yt(()=>({uniqueId:a,descriptor:s,callbacks:v}),[v,s,a]);uo(()=>(l.current=x.descriptor,n.droppable.register(x),()=>{t.current&&g(),n.droppable.unregister(x)}),[v,s,g,x,o,n.droppable]),uo(()=>{t.current&&o.updateDroppableIsEnabled(l.current.id,!e.isDropDisabled)},[e.isDropDisabled,o]),uo(()=>{t.current&&o.updateDroppableIsCombineEnabled(l.current.id,e.isCombineEnabled)},[e.isCombineEnabled,o])}function zE(){}var lV={width:0,height:0,margin:jme},Bve=({isAnimatingOpenOnMount:e,placeholder:t,animate:r})=>e||r==="close"?lV:{height:t.client.borderBox.height,width:t.client.borderBox.width,margin:t.client.margin},Vve=({isAnimatingOpenOnMount:e,placeholder:t,animate:r})=>{let a=Bve({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"?U0.placeholder:null}},Uve=e=>{let t=(0,_e.useRef)(null),r=ze(()=>{t.current&&(clearTimeout(t.current),t.current=null)},[]),{animate:a,onTransitionEnd:n,onClose:o,contextId:i}=e,[s,l]=(0,_e.useState)(e.animate==="open");(0,_e.useEffect)(()=>s?a!=="open"?(r(),l(!1),zE):t.current?zE:(t.current=setTimeout(()=>{t.current=null,l(!1)}),r):zE,[a,s,r]);let c=ze(u=>{u.propertyName==="height"&&(n(),a==="close"&&o())},[a,o,n]),d=Vve({isAnimatingOpenOnMount:s,animate:e.animate,placeholder:e.placeholder});return _e.default.createElement(e.placeholder.tagName,{style:d,"data-rfd-placeholder-context-id":i,onTransitionEnd:c,ref:e.innerRef})},qve=_e.default.memo(Uve);function HE(e){return typeof e=="boolean"}function WE(e,t){t.forEach(r=>r(e))}var zve=[function({props:t}){t.droppableId||xe(),typeof t.droppableId!="string"&&xe()},function({props:t}){HE(t.isDropDisabled)||xe(),HE(t.isCombineEnabled)||xe(),HE(t.ignoreContainerClipping)||xe()},function({getDroppableRef:t}){nU(t())}],Hve=[function({props:t,getPlaceholderRef:r}){!t.placeholder||r()}],Wve=[function({props:t}){t.renderClone||xe()},function({getPlaceholderRef:t}){t()&&xe()}];function Gve(e){tv(()=>{WE(e,zve),e.props.mode==="standard"&&WE(e,Hve),e.props.mode==="virtual"&&WE(e,Wve)})}var eA=class extends _e.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"}}
85render(){if(!this.state.isVisible)return null;let t={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(t)}},$ve=e=>{let t=(0,_e.useContext)(O1);t||xe();let{contextId:r,isMovementAllowed:a}=t,n=(0,_e.useRef)(null),o=(0,_e.useRef)(null),{children:i,droppableId:s,type:l,mode:c,direction:d,ignoreContainerClipping:u,isDropDisabled:f,isCombineEnabled:p,snapshot:m,useClone:h,updateViewportMaxScroll:g,getContainerForClone:y}=e,v=ze(()=>n.current,[]),x=ze((T=null)=>{n.current=T},[]),S=ze(()=>o.current,[]),b=ze((T=null)=>{o.current=T},[]);Gve({props:e,getDroppableRef:v,getPlaceholderRef:S});let w=ze(()=>{a()&&g({maxScroll:zV()})},[a,g]);jve({droppableId:s,type:l,mode:c,direction:d,isDropDisabled:f,isCombineEnabled:p,ignoreContainerClipping:u,getDroppableRef:v});let k=yt(()=>_e.default.createElement(eA,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},({onClose:T,data:q,animate:_})=>_e.default.createElement(qve,{placeholder:q,onClose:T,innerRef:b,animate:_,contextId:r,onTransitionEnd:w})),[r,w,e.placeholder,e.shouldAnimatePlaceholder,b]),C=yt(()=>({innerRef:x,placeholder:k,droppableProps:{"data-rfd-droppable-id":s,"data-rfd-droppable-context-id":r}}),[r,s,k,x]),N=h?h.dragging.draggableId:null,E=yt(()=>({droppableId:s,type:l,isUsingCloneFor:N}),[s,N,l]);function L(){if(!h)return null;let{dragging:T,render:q}=h,_=_e.default.createElement(lU,{draggableId:T.draggableId,index:T.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(B,I)=>q(B,I,T));return X0.default.createPortal(_,y())}return _e.default.createElement(bA.Provider,{value:E},i(C,m),L())};function Kve(){return document.body||xe(),document.body}var cV={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:Kve},pU=e=>{let t={...e},r;for(r in cV)e[r]===void 0&&(t={...t,[r]:cV[r]});return t},GE=(e,t)=>e===t.droppable.type,uV=(e,t)=>t.draggables[e.draggable.id],Xve=()=>{let e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t={...e,shouldAnimatePlaceholder:!1},r=wa(o=>({draggableId:o.id,type:o.type,source:{index:o.index,droppableId:o.droppableId}})),a=wa((o,i,s,l,c,d)=>{let u=c.descriptor.id;if(c.descriptor.droppableId===o){let m=d?{render:d,dragging:r(c.descriptor)}:null,h={isDraggingOver:s,draggingOverWith:s?u:null,draggingFromThisWith:u,isUsingPlaceholder:!0};return{placeholder:c.placeholder,shouldAnimatePlaceholder:!1,snapshot:h,useClone:m}}if(!i)return t;if(!l)return e;let p={isDraggingOver:s,draggingOverWith:u,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:c.placeholder,shouldAnimatePlaceholder:!0,snapshot:p,useClone:null}});return(o,i)=>{let s=pU(i),l=s.droppableId,c=s.type,d=!s.isDropDisabled,u=s.renderClone;if(K0(o)){let f=o.critical;if(!GE(c,f))return t;let p=uV(f,o.dimensions),m=co(o.impact)===l;return a(l,d,m,m,p,u)}if(o.phase==="DROP_ANIMATING"){let f=o.completed;if(!GE(c,f.critical))return t;let p=uV(f.critical,o.dimensions);return a(l,d,iU(f.result)===l,co(f.impact)===l,p,u)}if(o.phase==="IDLE"&&o.completed&&!o.shouldFlush){let f=o.completed;if(!GE(c,f.critical))return t;let p=co(f.impact)===l,m=!!(f.impact.at&&f.impact.at.type==="COMBINE"),h=f.critical.droppable.id===l;return p?m?e:t:h?e:t}return t}},Yve={updateViewportMaxScroll:Yhe},mU=RE(Xve,Yve,(e,t,r)=>({...pU(r),...e,...t}),{context:hA,areStatePropsEqual:oU})($ve);var hU=e=>{let t,r=new Set,a=(d,u)=>{let f=typeof d=="function"?d(t):d;if(!Object.is(f,t)){let p=t;t=u??(typeof f!="object"||f===null)?f:Object.assign({},t,f),r.forEach(m=>m(t,p))}},n=()=>t,l={setState:a,getState:n,getInitialState:()=>c,subscribe:d=>(r.add(d),()=>r.delete(d)),destroy:()=>{(__IMPORT_META_ENV?__IMPORT_META_ENV.MODE:void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}},c=t=e(a,n,l);return l},gU=e=>e?hU(e):hU;var PU=R(Q(),1),EU=R(kU(),1),{useDebugValue:mye}=PU.default,{useSyncExternalStoreWithSelector:hye}=EU.default,NU=!1,gye=e=>e;function vye(e,t=gye,r){(__IMPORT_META_ENV?__IMPORT_META_ENV.MODE:void 0)!=="production"&&r&&!NU&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),NU=!0);let a=hye(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,r);return mye(a),a}var IU=e=>{(__IMPORT_META_ENV?__IMPORT_META_ENV.MODE:void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { use
85Store } from 'zustand'`.");let t=typeof e=="function"?gU(e):e,r=(a,n)=>vye(t,a,n);return Object.assign(r,t),r},wp=e=>e?IU(e):IU;function yye(e,t){let r;try{r=e()}catch{return}return{getItem:n=>{var o;let i=l=>l===null?null:JSON.parse(l,t?.reviver),s=(o=r.getItem(n))!=null?o:null;return s instanceof Promise?s.then(i):i(s)},setItem:(n,o)=>r.setItem(n,JSON.stringify(o,t?.replacer)),removeItem:n=>r.removeItem(n)}}var rv=e=>t=>{try{let r=e(t);return r instanceof Promise?r:{then(a){return rv(a)(r)},catch(a){return this}}}catch(r){return{then(a){return this},catch(a){return rv(a)(r)}}}},bye=(e,t)=>(r,a,n)=>{let o={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:g=>g,version:0,merge:(g,y)=>({...y,...g}),...t},i=!1,s=new Set,l=new Set,c;try{c=o.getStorage()}catch{}if(!c)return e((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),r(...g)},a,n);let d=rv(o.serialize),u=()=>{let g=o.partialize({...a()}),y,v=d({state:g,version:o.version}).then(x=>c.setItem(o.name,x)).catch(x=>{y=x});if(y)throw y;return v},f=n.setState;n.setState=(g,y)=>{f(g,y),u()};let p=e((...g)=>{r(...g),u()},a,n),m,h=()=>{var g;if(!c)return;i=!1,s.forEach(v=>v(a()));let y=((g=o.onRehydrateStorage)==null?void 0:g.call(o,a()))||void 0;return rv(c.getItem.bind(c))(o.name).then(v=>{if(v)return o.deserialize(v)}).then(v=>{if(v)if(typeof v.version=="number"&&v.version!==o.version){if(o.migrate)return o.migrate(v.state,v.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return v.state}).then(v=>{var x;return m=o.merge(v,(x=a())!=null?x:p),r(m,!0),u()}).then(()=>{y?.(m,void 0),i=!0,l.forEach(v=>v(m))}).catch(v=>{y?.(void 0,v)})};return n.persist={setOptions:g=>{o={...o,...g},g.getStorage&&(c=g.getStorage())},clearStorage:()=>{c?.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>h(),hasHydrated:()=>i,onHydrate:g=>(s.add(g),()=>{s.delete(g)}),onFinishHydration:g=>(l.add(g),()=>{l.delete(g)})},h(),m||p},xye=(e,t)=>(r,a,n)=>{let o={storage:yye(()=>localStorage),partialize:h=>h,version:0,merge:(h,g)=>({...g,...h}),...t},i=!1,s=new Set,l=new Set,c=o.storage;if(!c)return e((...h)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),r(...h)},a,n);let d=()=>{let h=o.partialize({...a()});return c.setItem(o.name,{state:h,version:o.version})},u=n.setState;n.setState=(h,g)=>{u(h,g),d()};let f=e((...h)=>{r(...h),d()},a,n);n.getInitialState=()=>f;let p,m=()=>{var h,g;if(!c)return;i=!1,s.forEach(v=>{var x;return v((x=a())!=null?x:f)});let y=((g=o.onRehydrateStorage)==null?void 0:g.call(o,(h=a())!=null?h:f))||void 0;return rv(c.getItem.bind(c))(o.name).then(v=>{if(v)if(typeof v.version=="number"&&v.version!==o.version){if(o.migrate)return[!0,o.migrate(v.state,v.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,v.state];return[!1,void 0]}).then(v=>{var x;let[S,b]=v;if(p=o.merge(b,(x=a())!=null?x:f),r(p,!0),S)return d()}).then(()=>{y?.(p,void 0),p=a(),i=!0,l.forEach(v=>v(p))}).catch(v=>{y?.(void 0,v)})};return n.persist={setOptions:h=>{o={...o,...h},h.storage&&(c=h.storage)},clearStorage:()=>{c?.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>m(),hasHydrated:()=>i,onHydrate:h=>(s.add(h),()=>{s.delete(h)}),onFinishHydration:h=>(l.add(h),()=>{l.delete(h)})},o.skipHydration||m(),p||f},wye=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?((__IMPORT_META_ENV?__IMPORT_META_ENV.MODE:void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),bye(e,t)):xye(e,t),Sp=wye;var _1=wp()(Sp((e,t)=>({favorites:[],addFavorite:r=>{e(a=>a.favorites.some(o=>o.href===r.href)?a:{favorites:[...a.favorites,r]})},removeFavorite:r=>{e(a=>({favorites:a.favorites.filter(n=>n.href!==r)}))},isFavorite:r=>t().favorites.some(a=>a.href===r),toggleFavorite:r=>{let{isFavorite:a,addFavorite:n,removeFavorite:o}=t();a(r.href)?o(r.href):n(r)},reorderFavorites:(r,a)=>{e(n=>{let o=Array.from(n.favorites),[i]=o.splice(r,1);return o.splice(a,0,i),{favorites:o}})}}),{name:"webhook-platform-favorites"}));var Cp=wp()(Sp((e,t)=>({visits:[],pageStats:{},currentPage:null,pageEnterTime:null,trackPageVisit:r=>{let a=Date.now(),{currentPage:n,pageEnterTime:o,pageStats:i}=t();if(n&&o){let d=a-o,u=i[n];if(u){let f=(u.avgTimeSpent||0)*(u.visitCount-1)+d;u.avgTimeSpent=f/u.visitCount}}let s={...r,timestamp:a},l=i[r.href],c=l?{...l,visitCount:l.visitCount+1,lastVisit:a}:{href:r.href,name:r.name,icon:r.icon,groupName:r.groupName,visitCount:1,lastVisit:a,firstVisit:a};e(d=>({visits:[...d.visits,s].slice(-1e3),pageStats:{...d.pageStats,[r.href]:c},currentPage:r.href,pageEnterTime:a}))},trackPageExit:()=>{let{currentPage:r,pageEnterTime:a,pageStats:n}=t();if(!r||!a)return;let o=Date.now()-a,i=n[r];if(i){let s=(i.avgTimeSpent||0)*(i.visitCount-1)+o;i.avgTimeSpent=s/i.visitCount,e(l=>({pageStats:{...l.pageStats,[r]:i},currentPage:null,pageEnterTime:null}))}},getTopPages:(r=10)=>{let{pageStats:a}=t();return Object.values(a).sort((n,o)=>
85o.visitCount-n.visitCount).slice(0,r)},getRecentPages:(r=10)=>{let{visits:a}=t();return[...a].reverse().slice(0,r)},getTotalVisits:()=>t().visits.length,getPageStats:r=>t().pageStats[r],clearAnalytics:()=>{e({visits:[],pageStats:{},currentPage:null,pageEnterTime:null})},getVisitsByTimeRange:r=>{let{visits:a}=t(),n=Date.now()-r*24*60*60*1e3;return a.filter(o=>o.timestamp>=n)},getSuggestedFavorites:(r,a=5)=>{let{pageStats:n}=t(),o=Date.now(),i=o-10080*60*1e3;return Object.values(n).filter(s=>!(r.includes(s.href)||s.lastVisit<i||s.visitCount<3)).sort((s,l)=>{let c=s.visitCount*(1+(o-s.lastVisit)/6048e5);return l.visitCount*(1+(o-l.lastVisit)/(10080*60*1e3))-c}).slice(0,a)},getSummary:()=>{let{visits:r}=t(),a=r.slice(-100),n=a.filter(()=>Math.random()>.1).length,o=150+Math.random()*100;return{totalRequests:r.length,successRate:a.length>0?n/a.length*100:0,avgResponseTime:o,topCountry:"USA"}},getTimeSeriesData:r=>{let a=[],n=Date.now();for(let o=r-1;o>=0;o--){let i=n-o*60*60*1e3;a.push({timestamp:i,requests:Math.floor(Math.random()*50)+10,errors:Math.floor(Math.random()*5)})}return a},getProviderStats:()=>[{provider:"Stripe",totalRequests:1245,successRate:99.2,avgResponseTime:145},{provider:"GitHub",totalRequests:892,successRate:98.5,avgResponseTime:178},{provider:"Slack",totalRequests:654,successRate:99.7,avgResponseTime:92},{provider:"Google",totalRequests:543,successRate:97.8,avgResponseTime:203},{provider:"Discord",totalRequests:421,successRate:99.1,avgResponseTime:156}],getGeographicData:()=>[{country:"USA",count:1502,percentage:1502/3755*100},{country:"UK",count:876,percentage:876/3755*100},{country:"Germany",count:654,percentage:654/3755*100},{country:"France",count:432,percentage:432/3755*100},{country:"Canada",count:291,percentage:291/3755*100}],getStatusCodeDistribution:()=>[{status:"200",count:3245},{status:"201",count:892},{status:"400",count:67},{status:"401",count:34},{status:"500",count:17}]}),{name:"webhook-platform-analytics"}));var ge=R(ke()),Sye={LayoutDashboard:us,TrendingUp:Br,LinkIcon:Ya,Activity:qt,Layers:jr,Code:mn,FileText:jt,Zap:et,Key:Dr,Shield:Qe,BookOpen:Ai,RotateCw:Ri,Sparkles:kt,BarChart3:nr,Palette:yc,Cloud:Li,Gauge:vc,Bot:pn,Upload:ms,Globe:ia},Cye=e=>Sye[e]||us,kye=({children:e})=>{let t=Xs(),{theme:r,setTheme:a}=Fx(),[n,o]=vs.useState(null),[i,s]=vs.useState(!0),[l,c]=vs.useState(!1),[d,u]=vs.useState({Favorites:!0,Overview:!0,Webhooks:!0,API:!0,"AI Agents":!0,Security:!0,Resources:!0}),f=vs.useRef(null),{favorites:p,toggleFavorite:m,isFavorite:h,reorderFavorites:g}=_1(),{trackPageVisit:y,trackPageExit:v}=Cp(),x=C=>{C.destination&&g(C.source.index,C.destination.index)};vs.useEffect(()=>{let C=null;for(let N of S){let E=N.items.find(L=>L.href===t.pathname);if(E){C={name:E.name,icon:E.icon.name||"LayoutDashboard",groupName:N.name};break}}return C&&y({href:t.pathname,...C}),()=>{v()}},[t.pathname]);let S=[{name:"Overview",icon:us,items:[{name:"Dashboard",href:"/dashboard",icon:us,description:"Main overview and metrics"},{name:"Monitoring",href:"/monitoring",icon:Br,description:"Real-time system health"},{name:"Analytics",href:"/analytics",icon:nr,description:"Usage analytics and insights"}]},{name:"Webhooks",icon:Ya,items:[{name:"Connections",href:"/connections",icon:Ya,description:"Manage webhook integrations"},{name:"Event Log",href:"/events",icon:qt,description:"Track webhook events"},{name:"Templates",href:"/templates",icon:jr,description:"Pre-configured setups"}]},{name:"API",icon:mn,items:[{name:"Endpoints",href:"/api-endpoints",icon:mn,description:"Manage API endpoints"},{name:"Request Logs",href:"/api-logs",icon:jt,description:"View request history"},{name:"Playground",href:"/playground",icon:et,description:"Test API calls"}]},{name:"AI Agents",icon:pn,items:[{name:"Agent Console",href:"/agent-console",icon:pn,description:"Interact with AI agents for analysis"}]},{name:"Security",icon:Qe,items:[{name:"User Management",href:"/security",icon:Qe,description:"Authorized users & access control"},{name:"Bulk Import",href:"/bulk-import",icon:ms,description:"Import multiple users via CSV"},{name:"Credentials",href:"/credentials",icon:Dr,description:"Manage API keys"},{name:"Integrations",href:"/integrations",icon:ia,description:"Connect external services"},{name:"Rate Limits",href:"/rate-limits",icon:vc,description:"Control execution limits"},{name:"Limit Templates",href:"/rate-limit-templates",icon:kt,de
85scription:"Pre-configured templates"}]},{name:"Resources",icon:Ai,items:[{name:"Setup Guide",href:"/setup",icon:Ai,description:"Onboarding wizard"},{name:"Google Drive Guide",href:"/guides/google-drive",icon:Li,description:"Connect via Google Cloud"},{name:"Theme System",href:"/theme",icon:yc,description:"Light and dark mode showcase"},{name:"Retry Simulator",href:"/retry-simulator",icon:Ri,description:"Test retry logic"},{name:"Advanced Tools",href:"/advanced-tools",icon:kt,description:"Power user features"},{name:"About & Credits",href:"/about",icon:ju,description:"Built with Taskade Genesis"}]}],b=C=>t.pathname===C,w=C=>C.items.some(N=>b(N.href)),k=C=>{u(N=>({...N,[C]:!N[C]}))};return vs.useEffect(()=>{let C=N=>{f.current&&!f.current.contains(N.target)&&o(null)};return document.addEventListener("mousedown",C),()=>document.removeEventListener("mousedown",C)},[]),(0,ge.jsxs)("div",{className:"min-h-screen bg-gradient-to-br from-slate-100 via-slate-200 to-slate-100 dark:from-slate-950 dark:via-slate-900 dark:to-slate-950 text-slate-900 dark:text-white transition-colors duration-300",children:[(0,ge.jsx)("header",{className:"fixed top-0 left-0 right-0 z-50 backdrop-blur-xl bg-slate-50/95 dark:bg-black/20 border-b border-slate-300 dark:border-white/10",children:(0,ge.jsx)("div",{className:"px-4 sm:px-6 lg:px-8",children:(0,ge.jsxs)("div",{className:"flex items-center justify-between h-16",children:[(0,ge.jsxs)("div",{className:"flex items-center gap-3",children:[(0,ge.jsx)("button",{onClick:()=>s(!i),className:"p-2 rounded-lg hover:bg-slate-100 dark:hover:bg-white/10 transition-colors text-slate-900 dark:text-white",title:i?"Close sidebar":"Open sidebar",children:i?(0,ge.jsx)(Ir,{className:"w-5 h-5"}):(0,ge.jsx)(u0,{className:"w-5 h-5"})}),(0,ge.jsxs)(rc,{to:"/dashboard",className:"flex items-center gap-3",children:[(0,ge.jsx)("div",{className:"w-10 h-10 rounded-xl bg-gradient-to-br from-cyan-500 via-purple-500 to-pink-500 flex items-center justify-center",children:(0,ge.jsx)(Qe,{className:"w-6 h-6 text-white"})}),(0,ge.jsxs)("div",{className:"hidden sm:block",children:[(0,ge.jsx)("h1",{className:"text-lg font-bold bg-gradient-to-r from-cyan-400 via-purple-400 to-pink-400 bg-clip-text text-transparent",children:"Conjunction Junction"}),(0,ge.jsx)("p",{className:"text-xs text-slate-600 dark:text-slate-400",children:"Secure API & Webhook Management"})]})]})]}),(0,ge.jsx)("nav",{className:"hidden lg:flex items-center gap-1 flex-1 justify-center max-w-2xl",ref:f,children:S.map(C=>{let N=C.icon,E=n===C.name,L=w(C);return(0,ge.jsxs)("div",{className:"relative",children:[(0,ge.jsxs)("button",{onClick:()=>o(E?null:C.name),className:U("flex items-center gap-2 px-3 py-2 rounded-lg text-sm font-medium transition-all",L?"bg-gradient-to-r from-cyan-500/20 via-purple-500/20 to-pink-500/20 text-slate-900 dark:text-white":"text-slate-700 dark:text-slate-400 hover:text-slate-900 dark:hover:text-white hover:bg-slate-200 dark:hover:bg-white/5"),children:[(0,ge.jsx)(N,{className:"w-4 h-4"}),(0,ge.jsx)("span",{className:"hidden xl:inline",children:C.name}),(0,ge.jsx)(Fu,{className:U("w-3 h-3 transition-transform",E?"rotate-180":"")})]}),(0,ge.jsx)(Ue,{children:E&&(0,ge.jsx)(G.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.15},className:"absolute top-full left-0 mt-2 w-64 rounded-xl backdrop-blur-xl bg-slate-50/98 dark:bg-black/90 border border-slate-300 dark:border-white/10 shadow-2xl shadow-slate-400/30 dark:shadow-black/50 overflow-hidden",children:(0,ge.jsx)("div",{className:"p-2",children:C.items.map(T=>{let q=T.icon,_=b(T.href);return(0,ge.jsxs)(rc,{to:T.href,onClick:()=>o(null),className:U("flex items-center gap-3 px-3 py-2 rounded-lg transition-all group",_?"bg-gradient-to-r from-cyan-500/20 via-purple-500/20 to-pink-500/20 text-slate-900 dark:text-white":"text-slate-700 dark:text-slate-400 hover:text-slate-900 dark:hover:text-white hover:bg-slate-200 dark:hover:bg-white/5"),children:[(0,ge.jsx)(q,{className:U("w-4 h-4 flex-shrink-0 transition-transform group-hover:scale-110",_?"text-cyan-400":"")}),(0,ge.jsx)("span",{className:"text-sm font-medium",children:T.name})]},T.name)})})})})]},C.name)})}),(0,ge.jsx)("div",{className:"flex items-center gap-2",children:(0,ge.jsx)("button",{onClick:()=>a(r==="dark"?"light":"dark"),className:"p-2 rounded-lg hover:bg-slate-100 dar
85k:hover:bg-white/10 transition-colors text-slate-900 dark:text-white",title:r==="dark"?"Switch to light mode":"Switch to dark mode",children:r==="dark"?(0,ge.jsx)(Uu,{className:"w-5 h-5"}):(0,ge.jsx)(fl,{className:"w-5 h-5"})})})]})})}),(0,ge.jsxs)("div",{className:"flex pt-16",children:[(0,ge.jsx)(Ue,{children:i&&(0,ge.jsx)(G.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:()=>s(!1),className:"fixed inset-0 bg-black/60 dark:bg-black/60 backdrop-blur-sm z-30 lg:hidden"})}),(0,ge.jsx)(Ue,{children:i&&(0,ge.jsxs)(G.aside,{initial:{x:-280},animate:{x:0},exit:{x:-280},transition:{type:"spring",damping:25,stiffness:200},className:U("fixed left-0 top-16 bottom-0 backdrop-blur-xl bg-slate-50/98 dark:bg-black/90 lg:bg-slate-100/90 lg:dark:bg-black/20 border-r border-slate-300 dark:border-white/10 overflow-y-auto z-40 scrollbar-thin scrollbar-thumb-slate-400 dark:scrollbar-thumb-white/10 scrollbar-track-transparent",l?"w-16":"w-64"),children:[(0,ge.jsx)("div",{className:"sticky top-0 z-10 backdrop-blur-xl bg-slate-100/80 dark:bg-black/40 border-b border-slate-300 dark:border-white/10 p-2",children:(0,ge.jsx)("button",{onClick:()=>c(!l),className:"w-full p-2 rounded-lg hover:bg-slate-100 dark:hover:bg-white/10 transition-colors flex items-center justify-center text-slate-900 dark:text-white",title:l?"Expand sidebar":"Collapse sidebar",children:l?(0,ge.jsx)(Uo,{className:"w-5 h-5"}):(0,ge.jsx)(i0,{className:"w-5 h-5"})})}),(0,ge.jsxs)("nav",{className:"p-3 space-y-6 pb-24",children:[p.length>0&&(0,ge.jsxs)("div",{children:[!l&&(0,ge.jsxs)("button",{onClick:()=>k("Favorites"),className:"flex items-center justify-between w-full px-3 py-2 text-xs font-bold text-slate-500 dark:text-slate-300 uppercase tracking-wider hover:text-slate-900 dark:hover:text-white transition-colors group",children:[(0,ge.jsxs)("span",{className:"flex items-center gap-2",children:[(0,ge.jsx)("div",{className:"w-1 h-4 rounded-full bg-gradient-to-b from-amber-400 to-orange-400"}),(0,ge.jsx)(Za,{className:"w-3 h-3 fill-amber-400 text-amber-400"}),"Favorites"]}),(0,ge.jsx)(Fu,{className:U("w-4 h-4 transition-transform group-hover:text-amber-400",d.Favorites?"rotate-180":"")})]}),l&&(0,ge.jsx)("div",{className:"flex justify-center py-2",children:(0,ge.jsx)("div",{className:"p-2 rounded-lg bg-gradient-to-r from-amber-500/20 to-orange-500/20",children:(0,ge.jsx)(Za,{className:"w-5 h-5 fill-amber-400 text-amber-400"})})}),(0,ge.jsx)(Ue,{children:(d.Favorites||l)&&(0,ge.jsx)(G.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2},className:U("overflow-hidden",!l&&"mt-2"),children:(0,ge.jsx)(aU,{onDragEnd:x,children:(0,ge.jsx)(mU,{droppableId:"favorites",children:(C,N)=>(0,ge.jsxs)("div",{...C.droppableProps,ref:C.innerRef,className:U("space-y-1",N.isDraggingOver&&"bg-white/5 rounded-lg"),children:[p.map((E,L)=>{let T=Cye(E.icon),q=b(E.href);return(0,ge.jsx)(cU,{draggableId:E.href,index:L,isDragDisabled:l,children:(_,B)=>(0,ge.jsx)("div",{ref:_.innerRef,..._.draggableProps,className:U("group/fav",B.isDragging&&"opacity-50"),children:(0,ge.jsxs)(rc,{to:E.href,onClick:()=>{window.innerWidth<1024&&s(!1)},className:U("flex items-center gap-2 px-3 py-2.5 rounded-lg text-sm font-medium transition-all relative",l?"justify-center":"",q?"bg-gradient-to-r from-amber-500/20 via-orange-500/20 to-pink-500/20 text-white shadow-lg shadow-amber-500/10":"text-slate-400 hover:text-white hover:bg-white/5"),title:l?E.name:"",children:[!l&&(0,ge.jsx)("div",{..._.dragHandleProps,className:"cursor-grab active:cursor-grabbing opacity-0 group-hover/fav:opacity-100 transition-opacity",children:(0,ge.jsx)(s0,{className:"w-3 h-3 text-slate-500"})}),(0,ge.jsx)(T,{className:U("w-4 h-4 flex-shrink-0 transition-transform group-hover/fav:scale-110",q?"text-amber-400":"")}),!l&&(0,ge.jsx)("span",{className:"truncate flex-1",children:E.name}),!l&&(0,ge.jsx)("button",{onClick:I=>{I.preventDefault(),I.stopPropagation(),m({name:E.name,href:E.href,icon:E.icon,groupName:E.groupName})},className:"opacity-0 group-hover/fav:opacity-100 transition-opacity p-1 hover:bg-white/10 rounded",title:"Remove from favorites",children:(0,ge.jsx)(Za,{className:"w-3 h-3 fill-amber-400 text-amber-400"})})]})})},E.href)}),C.placeholder]})})})})})]}),S.map(C=>{let N=C.icon,E=w(C);return(0,ge.jsxs)("div",{children:[!l&&(0,ge.jsxs)("button",{onClick:()=>k(C.name),className:"flex items-center justify-between w-full px-3 py-2 text-xs font-bold text-slate-500 dark:text-slate-300 uppercase tracking-wider hover:text-slate-900 dark:hover:text-white transition-colors group",children:[(0,ge.jsxs)("span",{className:"flex items-center gap-2",children:[(0,ge.jsx)("div",{className:U("w-1 h-4 rounded-full bg-gradient-to-b",E?"from-cyan-400 to-purple-400":"from-cyan-500 to-purple-500")}
85),C.name]}),(0,ge.jsx)(Fu,{className:U("w-4 h-4 transition-transform group-hover:text-cyan-400",d[C.name]?"rotate-180":"")})]}),l&&(0,ge.jsx)("div",{className:"flex justify-center py-2",children:(0,ge.jsx)("div",{className:U("p-2 rounded-lg transition-colors",E?"bg-gradient-to-r from-cyan-500/20 via-purple-500/20 to-pink-500/20":"hover:bg-slate-100 dark:hover:bg-white/5"),children:(0,ge.jsx)(N,{className:U("w-5 h-5",E?"text-cyan-400":"text-slate-700 dark:text-slate-400")})})}),(0,ge.jsx)(Ue,{children:(d[C.name]||l)&&(0,ge.jsx)(G.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2},className:U("space-y-1 overflow-hidden",!l&&"mt-2"),children:C.items.map((L,T)=>{let q=L.icon,_=b(L.href),B=h(L.href);return(0,ge.jsx)(G.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:T*.05},className:"group/item",children:(0,ge.jsxs)(rc,{to:L.href,onClick:()=>{window.innerWidth<1024&&s(!1)},className:U("flex items-center gap-3 px-3 py-2.5 rounded-lg text-sm font-medium transition-all relative",l?"justify-center":"",_?"bg-gradient-to-r from-cyan-500/20 via-purple-500/20 to-pink-500/20 text-slate-900 dark:text-white shadow-lg shadow-cyan-500/10":"text-slate-700 dark:text-slate-400 hover:text-slate-900 dark:hover:text-white hover:bg-slate-200 dark:hover:bg-white/5"),title:l?L.name:"",children:[_&&!l&&(0,ge.jsx)(G.div,{layoutId:"activeSidebarNav",className:"absolute inset-0 border border-cyan-500/30 rounded-lg",transition:{type:"spring",damping:25,stiffness:300}}),(0,ge.jsx)(q,{className:U("w-4 h-4 flex-shrink-0 transition-transform group-hover/item:scale-110",_?"text-cyan-400":"")}),!l&&(0,ge.jsxs)(ge.Fragment,{children:[(0,ge.jsx)("span",{className:"truncate flex-1",children:L.name}),(0,ge.jsx)("button",{onClick:I=>{I.preventDefault(),I.stopPropagation(),m({name:L.name,href:L.href,icon:L.icon.name||"LayoutDashboard",groupName:C.name})},className:U("transition-all p-1 hover:bg-slate-200 dark:hover:bg-white/10 rounded",B?"opacity-100":"opacity-0 group-hover/item:opacity-100"),title:B?"Remove from favorites":"Add to favorites",children:(0,ge.jsx)(Za,{className:U("w-3 h-3 transition-all",B?"fill-amber-400 text-amber-400":"text-slate-500 dark:text-slate-400 hover:text-amber-400")})})]})]})},L.name)})})})]},C.name)})]})]})}),(0,ge.jsxs)("main",{className:U("flex-1 transition-all duration-300",i&&!l?"lg:ml-64":i&&l?"lg:ml-16":"ml-0"),children:[(0,ge.jsx)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8 pb-24",children:e}),(0,ge.jsx)("footer",{className:U("mt-16 border-t border-slate-300 dark:border-white/10 bg-slate-50/80 dark:bg-black/20 backdrop-blur-sm transition-all duration-300",i&&!l?"lg:ml-64":i&&l?"lg:ml-16":"ml-0"),children:(0,ge.jsxs)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-6",children:[(0,ge.jsxs)("div",{className:"flex flex-col sm:flex-row items-center justify-between gap-4",children:[(0,ge.jsxs)("div",{className:"flex items-center gap-2 text-sm",children:[(0,ge.jsx)("span",{className:"text-slate-600 dark:text-slate-400",children:"Built with"}),(0,ge.jsx)(kt,{className:"w-4 h-4 text-purple-500"}),(0,ge.jsx)("span",{className:"font-semibold bg-gradient-to-r from-cyan-500 via-purple-500 to-pink-500 bg-clip-text text-transparent",children:"Taskade Genesis"}),(0,ge.jsx)("span",{className:"text-slate-600 dark:text-slate-400",children:"\xA9 2025"})]}),(0,ge.jsxs)("div",{className:"flex items-center gap-2 text-sm font-medium text-slate-700 dark:text-slate-300",children:[(0,ge.jsx)(Qe,{className:"w-4 h-4 text-purple-500"}),(0,ge.jsx)("span",{children:"API & Webhook Hub"})]}),(0,ge.jsxs)("div",{className:"flex items-center gap-2 text-sm",children:[(0,ge.jsx)("span",{className:"text-slate-600 dark:text-slate-400",children:"Sponsored by"}),(0,ge.jsx)("span",{className:"font-semibold text-slate-900 dark:text-white",children:"Grey Sage"})]})]}),(0,ge.jsxs)("div",{className:"mt-4 pt-4 border-t border-slate-200 dark:border-white/5 flex flex-col sm:flex-row items-center justify-center gap-2 text-xs text-slate-500 dark:text-slate-500",children:[(0,ge.jsxs)("a",{href:"https://www.taskade.com",target:"_blank",rel:"noopener noreferrer",className:"hover:text-purple-500 transition-colors flex items-center gap-1",children:["Powered by Taskade Platform",(0,ge.jsx)("span",{className:"text-purple-500",children:"\u2192"})]}),(0,ge.jsx)("span",{className:"hidden sm:inline",children:"\u2022"}),(0,ge.jsx)("span",{children:"Secure Webhook & API Management"})]})]})})]})]}),(0,ge.jsx)(h6,{})]})},$e=kye;var $u=R(Q());var ot=R(ke()),Nye=({onResponse:e,className:t})=>{let[r,a]=$u.useState(!1),[n,o]=$u.useState(""),[i,s]=$u.useState("normal"),[l,c]=$u.useState(""),[d,u]=$u.useState(!1),[f,p]=$u.useState(null),m=async()=>
85{if(!n.trim()){$.error("Please describe the task");return}u(!0);try{let h=await fetch(`/api/taskade/webhooks/${wt.webhooks.agentBridge}/run`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({task:n,priority:i,context:l||void 0})});if(!h.ok)throw new Error("Failed to delegate task");let y=(await h.json()).body;p(y),e&&e(y),$.success("Task delegated to agent team!"),o(""),c(""),s("normal")}catch(h){console.error("Delegation error:",h),$.error("Failed to delegate task to agents")}finally{u(!1)}};return(0,ot.jsxs)("div",{className:U("relative",t),children:[(0,ot.jsxs)("button",{onClick:()=>a(!r),className:U("flex items-center gap-2 px-4 py-2 rounded-xl transition-all duration-200","bg-gradient-to-r from-purple-500 to-pink-500 text-white","hover:shadow-lg hover:shadow-purple-500/50","disabled:opacity-50 disabled:cursor-not-allowed"),disabled:d,children:[(0,ot.jsx)(et,{className:"w-4 h-4"}),(0,ot.jsx)("span",{className:"font-medium",children:"Delegate to Agents"})]}),(0,ot.jsx)(Ue,{children:r&&(0,ot.jsxs)(G.div,{initial:{opacity:0,y:-20,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-20,scale:.95},className:"absolute top-full mt-2 right-0 w-96 bg-slate-900 border border-white/10 rounded-2xl shadow-2xl overflow-hidden z-50",children:[(0,ot.jsx)("div",{className:"p-4 border-b border-white/10 bg-gradient-to-r from-purple-500/20 to-pink-500/20",children:(0,ot.jsxs)("div",{className:"flex items-center gap-3",children:[(0,ot.jsx)("div",{className:"p-2 rounded-lg bg-gradient-to-br from-purple-500 to-pink-500",children:(0,ot.jsx)(pn,{className:"w-5 h-5 text-white"})}),(0,ot.jsxs)("div",{children:[(0,ot.jsx)("h3",{className:"font-semibold text-white",children:"EVE \u2192 Agent Team"}),(0,ot.jsx)("p",{className:"text-xs text-slate-400",children:"Automated delegation bridge"})]})]})}),(0,ot.jsxs)("div",{className:"p-4 space-y-4",children:[(0,ot.jsxs)("div",{children:[(0,ot.jsx)("label",{className:"block text-sm font-medium text-slate-300 mb-2",children:"Task Description"}),(0,ot.jsx)("textarea",{value:n,onChange:h=>o(h.target.value),placeholder:"What should the agent team work on?",rows:3,className:"w-full px-3 py-2 rounded-lg bg-white/5 border border-white/10 text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-purple-500/50 resize-none"})]}),(0,ot.jsxs)("div",{children:[(0,ot.jsx)("label",{className:"block text-sm font-medium text-slate-300 mb-2",children:"Priority Level"}),(0,ot.jsx)("div",{className:"grid grid-cols-4 gap-2",children:["low","normal","high","urgent"].map(h=>(0,ot.jsx)("button",{onClick:()=>s(h),className:U("px-3 py-2 rounded-lg text-xs font-medium transition-all duration-200",i===h?"bg-gradient-to-r from-purple-500 to-pink-500 text-white":"bg-white/5 text-slate-400 hover:bg-white/10"),children:h.charAt(0).toUpperCase()+h.slice(1)},h))})]}),(0,ot.jsxs)("div",{children:[(0,ot.jsx)("label",{className:"block text-sm font-medium text-slate-300 mb-2",children:"Additional Context (Optional)"}),(0,ot.jsx)("textarea",{value:l,onChange:h=>c(h.target.value),placeholder:"Any extra information the agents should know...",rows:2,className:"w-full px-3 py-2 rounded-lg bg-white/5 border border-white/10 text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-purple-500/50 resize-none"})]}),(0,ot.jsxs)("div",{className:"flex gap-2",children:[(0,ot.jsx)("button",{onClick:()=>a(!1),className:"flex-1 px-4 py-2 rounded-lg bg-white/5 text-slate-300 hover:bg-white/10 transition-all duration-200",children:"Cancel"}),(0,ot.jsx)("button",{onClick:m,disabled:d||!n.trim(),className:U("flex-1 px-4 py-2 rounded-lg transition-all duration-200","bg-gradient-to-r from-purple-500 to-pink-500 text-white","hover:shadow-lg hover:shadow-purple-500/50","disabled:opacity-50 disabled:cursor-not-allowed","flex items-center justify-center gap-2"),children:d?(0,ot.jsxs)(ot.Fragment,{children:[(0,ot.jsx)(xa,{className:"w-4 h-4 animate-spin"}),(0,ot.jsx)("span",{children:"Delegating..."})]}):(0,ot.jsxs)(ot.Fragment,{children:[(0,ot.jsx)(pl,{className:"w-4 h-4"}),(0,ot.jsx)("span",{children:"Delegate"})]})})]}),f&&(0,ot.jsxs)(G.div,{initial:{opacity:0,y:10}
85,animate:{opacity:1,y:0},className:"p-3 rounded-lg bg-green-500/10 border border-green-500/30",children:[(0,ot.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,ot.jsx)(We,{className:"w-4 h-4 text-green-400"}),(0,ot.jsx)("span",{className:"text-sm font-medium text-green-400",children:"Task Completed"})]}),(0,ot.jsx)("p",{className:"text-xs text-slate-300 line-clamp-3",children:f.agentResponse})]})]})]})})]})},AU=Nye;var Iye=Math.pow(10,8)*24*60*60*1e3,Llt=-Iye,F1=6048e5,LU=864e5,SA=6e4,CA=36e5;var av=43200,kA=1440;var Pye=3600;var TU=Pye*24,Tlt=TU*7,Eye=TU*365.2425,Aye=Eye/12,Rlt=Aye*3,NA=Symbol.for("constructDateFrom");function Ca(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&NA in e?e[NA](t):e instanceof Date?new e.constructor(t):new Date(t)}function mt(e,t){return Ca(t||e,e)}var Lye={};function ys(){return Lye}function gl(e,t){let r=ys(),a=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,n=mt(e,t?.in),o=n.getDay(),i=(o<a?7:0)+o-a;return n.setDate(n.getDate()-i),n.setHours(0,0,0,0),n}function Ku(e,t){return gl(e,{...t,weekStartsOn:1})}function j1(e,t){let r=mt(e,t?.in),a=r.getFullYear(),n=Ca(r,0);n.setFullYear(a+1,0,4),n.setHours(0,0,0,0);let o=Ku(n),i=Ca(r,0);i.setFullYear(a,0,4),i.setHours(0,0,0,0);let s=Ku(i);return r.getTime()>=o.getTime()?a+1:r.getTime()>=s.getTime()?a:a-1}function kp(e){let t=mt(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function Nc(e,...t){let r=Ca.bind(null,e||t.find(a=>typeof a=="object"));return t.map(r)}function IA(e,t){let r=mt(e,t?.in);return r.setHours(0,0,0,0),r}function RU(e,t,r){let[a,n]=Nc(r?.in,e,t),o=IA(a),i=IA(n),s=+o-kp(o),l=+i-kp(i);return Math.round((s-l)/LU)}function OU(e,t){let r=j1(e,t),a=Ca(t?.in||e,0);return a.setFullYear(r,0,4),a.setHours(0,0,0,0),Ku(a)}function Np(e,t){let r=+mt(e)-+mt(t);return r<0?-1:r>0?1:r}function DU(e){return Ca(e,Date.now())}function MU(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function _U(e){return!(!MU(e)&&typeof e!="number"||isNaN(+mt(e)))}function FU(e,t,r){let[a,n]=Nc(r?.in,e,t),o=a.getFullYear()-n.getFullYear(),i=a.getMonth()-n.getMonth();return o*12+i}function jU(e){return t=>{let a=(e?Math[e]:Math.trunc)(t);return a===0?0:a}}function BU(e,t){return+mt(e)-+mt(t)}function VU(e,t){let r=mt(e,t?.in);return r.setHours(23,59,59,999),r}function UU(e,t){let r=mt(e,t?.in),a=r.getMonth();return r.setFullYear(r.getFullYear(),a+1,0),r.setHours(23,59,59,999),r}function qU(e,t){let r=mt(e,t?.in);return+VU(r,t)==+UU(r,t)}function zU(e,t,r){let[a,n,o]=Nc(r?.in,e,e,t),i=Np(n,o),s=Math.abs(FU(n,o));if(s<1)return 0;n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-i*s);let l=Np(n,o)===-i;qU(a)&&s===1&&Np(a,o)===1&&(l=!1);let c=i*(s-+l);return c===0?0:c}function HU(e,t,r){let a=BU(e,t)/1e3;return jU(r?.roundingMethod)(a)}function WU(e,t){let r=mt(e,t?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}var Tye={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},GU=(e,t,r)=>{let a,n=Tye[e];return typeof n=="string"?a=n:t===1?a=n.one:a=n.other.replace("{{count}}",t.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+a:a+" ago":a};function B1(e){return(t={})=>{let r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}var Rye={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Oye={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Dye={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},$U={date:B1({formats:Rye,defaultWidth:"full"}),time:B1({formats:Oye,defaultWidth:"full"}),dateTime:B1({formats:Dye,defaultWidth:"full"})};var Mye={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},KU=(e,t,r,a)=>Mye[e];function Ip(e){return(t,r)=>{let a=r?.context?String(r.context):"standalone",n;if(a==="formatting"&&e.formattingValues){let i=e.defaultFormattingWidth||e.defaultWidth,s=r?.width?String(r.width):i;n=e.formattingValues[s]||e.formattingValues[i]}else{let i=e.defaultWidth,s=r?.width?String(r.width):e.defaultWidth;n=e.values[s]||e.values[i]}let o=e.argumentCallback?e.argumentCallback(t):t;return n[o]}}var _ye={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Fye={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},jye={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]}
vendor: 10,596 bytes, line 85
85,Bye={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Vye={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Uye={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},qye=(e,t)=>{let r=Number(e),a=r%100;if(a>20||a<10)switch(a%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},XU={ordinalNumber:qye,era:Ip({values:_ye,defaultWidth:"wide"}),quarter:Ip({values:Fye,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ip({values:jye,defaultWidth:"wide"}),day:Ip({values:Bye,defaultWidth:"wide"}),dayPeriod:Ip({values:Vye,defaultWidth:"wide",formattingValues:Uye,defaultFormattingWidth:"wide"})};function Pp(e){return(t,r={})=>{let a=r.width,n=a&&e.matchPatterns[a]||e.matchPatterns[e.defaultMatchWidth],o=t.match(n);if(!o)return null;let i=o[0],s=a&&e.parsePatterns[a]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?Hye(s,u=>u.test(i)):zye(s,u=>u.test(i)),c;c=e.valueCallback?e.valueCallback(l):l,c=r.valueCallback?r.valueCallback(c):c;let d=t.slice(i.length);return{value:c,rest:d}}}function zye(e,t){for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function Hye(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function YU(e){return(t,r={})=>{let a=t.match(e.matchPattern);if(!a)return null;let n=a[0],o=t.match(e.parsePattern);if(!o)return null;let i=e.valueCallback?e.valueCallback(o[0]):o[0];i=r.valueCallback?r.valueCallback(i):i;let s=t.slice(n.length);return{value:i,rest:s}}}var Wye=/^(\d+)(th|st|nd|rd)?/i,Gye=/\d+/i,$ye={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Kye={any:[/^b/i,/^(a|c)/i]},Xye={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Yye={any:[/1/i,/2/i,/3/i,/4/i]},Jye={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Zye={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Qye={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},ebe={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},tbe={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},rbe={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},JU={ordinalNumber:YU({matchPattern:Wye,parsePattern:Gye,valueCallback:e=>parseInt(e,10)}),era:Pp({matchPatterns:$ye,defaultMatchWidth:"wide",parsePatterns:Kye,defaultParseWidth:"any"}),quarter:Pp({matchPatterns:Xye,defaultMatchWidth:"wide",parsePatterns:Yye,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Pp({matchPatterns:Jye,defaultMatchWidth:"wide",parsePatterns:Zye,defaultParseWidth:"any"}),day:Pp({matchPatterns:Qye,defaultMatchWidth:"wide",parsePatterns:ebe,defaultParseWidth:"any"}),dayPeriod:Pp({matchPatterns:tbe,defaultMatchWidth:"any",parsePatterns:rbe,defaultParseWidth:"any"})};var nv={code:"en-US",formatDistance:GU,formatLong:$U,formatRelative:KU,localize:XU,match:JU,options:{weekStartsOn:0,firstWeekContainsDate:1}};function ZU(e,t){let r=mt(e,t?.in);return RU(r,WU(r))+1}function QU(e,t){let r=mt(e,t?.in),a=+Ku(r)-+OU(r);return Math.round(a/F1)+1}function V1(e,t){let r=mt(e,t?.in),a=r.getFullYear(),n=ys(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=Ca(t?.in||e,0);i.setFullYear(a+1,0,o),i.setHours(0,0,0,0);let s=gl(i,t),l=Ca(t?.in||e,0);l.setFullYear(a,0,o),l.setHours(0,0,0,0);let c=gl(l,t);return+r>=+s?a+1:+r>=+c?a:a-1}function eq(e,t){let r=ys(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,n=V1(e,t),o=Ca(t?.in||e,0);return o.setFullYear(n,0,a),o.setHours(0,0,0,0),gl(o,t)}function tq(e,t){let r=mt(e,t?.in),a=+gl(r,t)-+eq(r,t);return Math.round(a/F1)+1}function Nt(e,t){let r=e<0?"-":"",a=Math.abs(e).toString().padStart(t,"0");return r+a}var vl={y(e,t){let r=e.getFullYear(),a=r>0?r:1-r;return Nt(t==="yy"?a%100:a,t.length)},M(e,t){let r=e.getMonth();return t==="M"?String(r+1):Nt(r+1,2)},d(e,t){return Nt(e.getDate(),t.length)},a(e,t){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return r==="am"?"a.m.":"p.m."}},h(e,t){return Nt(e.getHours()%12||12,t.length)},H(e,t){return Nt(e.getHours(),t.length)},m(e,t){return Nt(e.getMinutes(),t.length)},s(e,t){return Nt(e.getSeconds(),t.length)},S(e,t){let r=t.length,a=e.getMilliseconds(),n=Math.trunc(a*Math.pow(10,r-3));return Nt(n,t.length)}};var Ep={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},PA={G:function(e,t,r){let a=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(a,{width:"abbreviated"});case"GGGGG":return r.era(a,{width:"narrow"});default:return r.era(a,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){let a=e.getFullYear(),n=a>0?a:1-a;return r.ordinalNumber(n,{unit:"year"})}return vl.y(e,t)},Y:function(e,t,r,a){let n=V1(e,a),o=n>0?n:1-n;if(t==="YY"){let i=o%100;return Nt(i,2)}return t==="Yo"?r.ordinalNumber(o,{unit:"year"}):Nt(o,t.length)},R:function(e,t){let r=j1(e);return Nt(r,t.length)},u:function(e,t){let r=e.getFullYear();return Nt(r,t.length)},Q:function(e,t,r){let a=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(a);case"QQ":return Nt(a,2);case"Qo":return r.ordinalNumber(a,{unit:"quarter"});case"QQQ":return r.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(a,{width:"narrow",context:"formatting"});default:return r.quarter(a,{width:"wide",context:"formatting"})}},q:function(e,t,r){let a=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(a);case"qq":return Nt(a,2);case"qo":return r.ordinalNumber(a,{unit:"quarter"});case"qqq":return r.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(a,{width:"narrow",context:"standalone"});default:return r.quarter(a,{width:"wide",context:"standalone"})}},M:function(e,t,r){let a=e.getMonth();switch(t){case"M":case"MM":return vl.M(e,t);case"Mo":return r.ordinalNumber(a+1,{unit:"month"});case"MMM":return r.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(a,{width:"narrow",context:"formatting"});default:return r.month(a,{width:"wide",context:"formatting"})}},L:function(e,t,r){let a=e.getMonth();switch(t){case"L":return String(a+1);case"LL":return Nt(a+1,2);case"Lo":return r.ordinalNumber(a+1,{unit:"month"});case"LLL":return r.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(a,{width:"narrow",context:"standalone"});default:return r.month(a,{width:"wide",context:"standalone"})}},w:function(e,t,r,a){let n=tq(e,a);return t==="wo"?r.ordinalNumber(n,{unit:"week"}):Nt(n,t.length)},I:function(e,t,r){let a=QU(e);return t==="Io"?r.ordinalNumber(a,{unit:"week"}):Nt(a,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):vl.d(e,t)},D:function(e,t,r){let a=ZU(e);return t==="Do"?r.ordinalNumber(a,{unit:"dayOfYear"}):Nt(a,t.length)},E:function(e,t,r){let a=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(a,{width:"short",context:"formatting"});default:return r.day(a,{width:"wide",context:"formatting"})}},e:function(e,t,r,a){let n=e.getDay(),o=(n-a.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Nt(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(n,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},c:function(e,t,r,a){let n=e.getDay(),o=(n-a.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Nt(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(n,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(n,{width:"narrow",context:"standalone"});case"cccccc":return r.day(n,{width:"short",context:"standalone"});default:return r.day(n,{width:"wide",context:"standalone"})}},i:function(e,t,r){let a=e.getDay(),n=a===0?7:a;switch(t){case"i":return String(n);case"ii":return Nt(n,t.length);case"io":return r.ordinalNumber(n,{unit:"day"});case"iii":return r.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(a,{width:"short",context:"formatting"});default:return r.day(a,{width:"wide",context:"formatting"})}},a:function(e,t,r){let n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){let a=e.getHours(),n;switch(a===12?n=Ep.noon:a===0?n=Ep.midnight:n=a/12>
85=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,r){let a=e.getHours(),n;switch(a>=17?n=Ep.evening:a>=12?n=Ep.afternoon:a>=4?n=Ep.morning:n=Ep.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let a=e.getHours()%12;return a===0&&(a=12),r.ordinalNumber(a,{unit:"hour"})}return vl.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):vl.H(e,t)},K:function(e,t,r){let a=e.getHours()%12;return t==="Ko"?r.ordinalNumber(a,{unit:"hour"}):Nt(a,t.length)},k:function(e,t,r){let a=e.getHours();return a===0&&(a=24),t==="ko"?r.ordinalNumber(a,{unit:"hour"}):Nt(a,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):vl.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):vl.s(e,t)},S:function(e,t){return vl.S(e,t)},X:function(e,t,r){let a=e.getTimezoneOffset();if(a===0)return"Z";switch(t){case"X":return aq(a);case"XXXX":case"XX":return Xu(a);default:return Xu(a,":")}},x:function(e,t,r){let a=e.getTimezoneOffset();switch(t){case"x":return aq(a);case"xxxx":case"xx":return Xu(a);default:return Xu(a,":")}},O:function(e,t,r){let a=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+rq(a,":");default:return"GMT"+Xu(a,":")}},z:function(e,t,r){let a=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+rq(a,":");default:return"GMT"+Xu(a,":")}},t:function(e,t,r){let a=Math.trunc(+e/1e3);return Nt(a,t.length)},T:function(e,t,r){return Nt(+e,t.length)}};function rq(e,t=""){let r=e>0?"-":"+",a=Math.abs(e),n=Math.trunc(a/60),o=a%60;return o===0?r+String(n):r+String(n)+t+Nt(o,2)}function aq(e,t){return e%60===0?(e>0?"-":"+")+Nt(Math.abs(e)/60,2):Xu(e,t)}function Xu(e,t=""){let r=e>0?"-":"+",a=Math.abs(e),n=Nt(Math.trunc(a/60),2),o=Nt(a%60,2);return r+n+t+o}var nq=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},oq=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},abe=(e,t)=>{let r=e.match(/(P+)(p+)?/)||[],a=r[1],n=r[2];if(!n)return nq(e,t);let o;switch(a){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",nq(a,t)).replace("{{time}}",oq(n,t))},iq={p:oq,P:abe};var nbe=/^D+$/,obe=/^Y+$/,ibe=["D","DD","YY","YYYY"];function sq(e){return nbe.test(e)}function lq(e){return obe.test(e)}function cq(e,t,r){let a=sbe(e,t,r);if(console.warn(a),ibe.includes(e))throw new RangeError(a)}function sbe(e,t,r){let a=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${a} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var lbe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,cbe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ube=/^'([^]*?)'?$/,dbe=/''/g,fbe=/[a-zA-Z]/;function Zr(e,t,r){let a=ys(),n=r?.locale??a.locale??nv,o=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,i=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0,s=mt(e,r?.in);if(!_U(s))throw new RangeError("Invalid time value");let l=t.match(cbe).map(d=>{let u=d[0];if(u==="p"||u==="P"){let f=iq[u];return f(d,n.formatLong)}return d}).join("").match(lbe).map(d=>{if(d==="''")return{isToken:!1,value:"'"};let u=d[0];if(u==="'")return{isToken:!1,value:pbe(d)};if(PA[u])return{isToken:!0,value:d};
85if(u.match(fbe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+u+"`");return{isToken:!1,value:d}});n.localize.preprocessor&&(l=n.localize.preprocessor(s,l));let c={firstWeekContainsDate:o,weekStartsOn:i,locale:n};return l.map(d=>{if(!d.isToken)return d.value;let u=d.value;(!r?.useAdditionalWeekYearTokens&&lq(u)||!r?.useAdditionalDayOfYearTokens&&sq(u))&&cq(u,t,String(e));let f=PA[u[0]];return f(s,u,n.localize,c)}).join("")}function pbe(e){let t=e.match(ube);return t?t[1].replace(dbe,"'"):e}function uq(e,t,r){let a=ys(),n=r?.locale??a.locale??nv,o=2520,i=Np(e,t);if(isNaN(i))throw new RangeError("Invalid time value");let s=Object.assign({},r,{addSuffix:r?.addSuffix,comparison:i}),[l,c]=Nc(r?.in,...i>0?[t,e]:[e,t]),d=HU(c,l),u=(kp(c)-kp(l))/1e3,f=Math.round((d-u)/60),p;if(f<2)return r?.includeSeconds?d<5?n.formatDistance("lessThanXSeconds",5,s):d<10?n.formatDistance("lessThanXSeconds",10,s):d<20?n.formatDistance("lessThanXSeconds",20,s):d<40?n.formatDistance("halfAMinute",0,s):d<60?n.formatDistance("lessThanXMinutes",1,s):n.formatDistance("xMinutes",1,s):f===0?n.formatDistance("lessThanXMinutes",1,s):n.formatDistance("xMinutes",f,s);if(f<45)return n.formatDistance("xMinutes",f,s);if(f<90)return n.formatDistance("aboutXHours",1,s);if(f<kA){let m=Math.round(f/60);return n.formatDistance("aboutXHours",m,s)}else{if(f<o)return n.formatDistance("xDays",1,s);if(f<av){let m=Math.round(f/kA);return n.formatDistance("xDays",m,s)}else if(f<av*2)return p=Math.round(f/av),n.formatDistance("aboutXMonths",p,s)}if(p=zU(c,l),p<12){let m=Math.round(f/av);return n.formatDistance("xMonths",m,s)}else{let m=p%12,h=Math.trunc(p/12);return m<3?n.formatDistance("aboutXYears",h,s):m<9?n.formatDistance("overXYears",h,s):n.formatDistance("almostXYears",h+1,s)}}function Yu(e,t){return uq(e,DU(e),t)}function yl(e,t){let r=()=>Ca(t?.in,NaN),a=t?.additionalDigits??2,n=vbe(e),o;if(n.date){let c=ybe(n.date,a);o=bbe(c.restDateString,c.year)}if(!o||isNaN(+o))return r();let i=+o,s=0,l;if(n.time&&(s=xbe(n.time),isNaN(s)))return r();if(n.timezone){if(l=wbe(n.timezone),isNaN(l))return r()}else{let c=new Date(i+s),d=mt(0,t?.in);return d.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),d.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),d}return mt(i+s+l,t?.in)}var U1={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},mbe=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,hbe=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,gbe=/^([+-])(\d{2})(?::?(\d{2}))?$/;function vbe(e){let t={},r=e.split(U1.dateTimeDelimiter),a;if(r.length>2)return t;if(/:/.test(r[0])?a=r[0]:(t.date=r[0],a=r[1],U1.timeZoneDelimiter.test(t.date)&&(t.date=e.split(U1.timeZoneDelimiter)[0],a=e.substr(t.date.length,e.length))),a){let n=U1.timezone.exec(a);n?(t.time=a.replace(n[1],""),t.timezone=n[1]):t.time=a}return t}function ybe(e,t){let r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),a=e.match(r);if(!a)return{year:NaN,restDateString:""};let n=a[1]?parseInt(a[1]):null,o=a[2]?parseInt(a[2]):null;return{year:o===null?n:o*100,restDateString:e.slice((a[1]||a[2]).length)}}function bbe(e,t){if(t===null)return new Date(NaN);let r=e.match(mbe);if(!r)return new Date(NaN);let a=!!r[4],n=ov(r[1]),o=ov(r[2])-1,i=ov(r[3]),s=ov(r[4]),l=ov(r[5])-1;if(a)return Ibe(t,s,l)?Sbe(t,s,l):new Date(NaN);{let c=new Date(0);return!kbe(t,o,i)||!Nbe(t,n)?new Date(NaN):(c.setUTCFullYear(t,o,Math.max(n,i)),c)}}function ov(e){return e?parseInt(e):1}function xbe(e){let t=e.match(hbe);if(!t)return NaN;let r=EA(t[1]),a=EA(t[2]),n=EA(t[3]);return Pbe(r,a,n)?r*CA+a*SA+n*1e3:NaN}function EA(e){return e&&parseFloat(e.replace(",","."))||0}function wbe(e){if(e==="Z")return 0;let t=e.match(gbe);if(!t)return 0;let r=t[1]==="+"?-1:1,a=parseInt(t[2]),n=t[3]&&parseInt(t[3])||0;return Ebe(a,n)?r*(a*CA+n*SA):NaN}function Sbe(e,t,r){let a=new Date(0);a.setUTCFullYear(e,0,4);let n=a.getUTCDay()||7,o=(t-1)*7+r+1-n;return a.setUTCDate(a.getUTCDate()+o),a}var Cbe=[31,null,31,30,31,30,31,31,30,31,30,31];function dq(e){return e%400===0||e%4===0&&e%100!==0}function kbe(e,t,r){return t>=0&&t<=11&&r>
85=1&&r<=(Cbe[t]||(dq(e)?29:28))}function Nbe(e,t){return t>=1&&t<=(dq(e)?366:365)}function Ibe(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}function Pbe(e,t,r){return e===24?t===0&&r===0:r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}function Ebe(e,t){return t>=0&&t<=59}var ut=R(ke()),Abe=()=>{let[e,t]=Ap.useState({totalConnections:0,activeConnections:0,totalEvents:0,successRate:0,blockedAttempts:0,avgResponseTime:0}),[r,a]=Ap.useState([]),[n,o]=Ap.useState(!0);Ap.useEffect(()=>{i()},[]);let i=async()=>{try{let[u,f,p]=await Promise.all([Ye.get(`/api/taskade/projects/${wt.projects.webhookConnections}/nodes`),Ye.get(`/api/taskade/projects/${wt.projects.eventLog}/nodes`),Ye.get(`/api/taskade/projects/${wt.projects.securityIncidents}/nodes`)]),m=u.data.payload.nodes,h=f.data.payload.nodes,g=p.data.payload.nodes,y=m.filter(w=>w.fieldValues["/attributes/@conn5"]==="active").length,v=h.filter(w=>w.fieldValues["/attributes/@evt4"]==="success").length,x=h.length>0?v/h.length*100:0,S=h.map(w=>w.fieldValues["/attributes/@evt7"]).filter(w=>typeof w=="number"),b=S.length>0?S.reduce((w,k)=>w+k,0)/S.length:0;t({totalConnections:m.length,activeConnections:y,totalEvents:h.length,successRate:Math.round(x),blockedAttempts:g.length,avgResponseTime:Math.round(b)}),a(h.slice(0,5))}catch(u){console.error("Failed to load dashboard data:",u)}finally{o(!1)}},s=[{title:"Total Connections",value:e.totalConnections,icon:qt,color:"from-cyan-500 to-blue-500",bgColor:"from-cyan-500/20 to-blue-500/20"},{title:"Active Webhooks",value:e.activeConnections,icon:We,color:"from-green-500 to-emerald-500",bgColor:"from-green-500/20 to-emerald-500/20"},{title:"Success Rate",value:`${e.successRate}%`,icon:Br,color:"from-purple-500 to-pink-500",bgColor:"from-purple-500/20 to-pink-500/20"},{title:"Blocked Threats",value:e.blockedAttempts,icon:Qe,color:"from-red-500 to-orange-500",bgColor:"from-red-500/20 to-orange-500/20"},{title:"Total Events",value:e.totalEvents,icon:qt,color:"from-indigo-500 to-purple-500",bgColor:"from-indigo-500/20 to-purple-500/20"},{title:"Avg Response Time",value:`${e.avgResponseTime}ms`,icon:vt,color:"from-amber-500 to-yellow-500",bgColor:"from-amber-500/20 to-yellow-500/20"}],l=u=>{switch(u){case"success":return(0,ut.jsx)(We,{className:"w-4 h-4 text-green-400"});case"failed":return(0,ut.jsx)(Ct,{className:"w-4 h-4 text-red-400"});case"blocked":return(0,ut.jsx)(Qe,{className:"w-4 h-4 text-orange-400"});default:return(0,ut.jsx)(vt,{className:"w-4 h-4 text-yellow-400"})}},c=u=>{try{let f=typeof u=="string"?yl(u):new Date(u);return Yu(f,{addSuffix:!0})}catch{return"Unknown time"}},d=u=>{try{let f=typeof u=="string"?yl(u):new Date(u);return Zr(f,"EEEE, MMMM d, yyyy \u2022 h:mm:ss a")}catch{return"Invalid timestamp"}};return n?(0,ut.jsx)($e,{children:(0,ut.jsx)("div",{className:"flex items-center justify-center h-96",children:(0,ut.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-t-2 border-b-2 border-purple-500"})})}):(0,ut.jsx)($e,{children:(0,ut.jsxs)("div",{className:"space-y-8",children:[(0,ut.jsxs)("div",{className:"flex items-start justify-between",children:[(0,ut.jsxs)("div",{children:[(0,ut.jsx)("h1",{className:"text-3xl font-bold bg-gradient-to-r from-cyan-400 via-purple-400 to-pink-400 bg-clip-text text-transparent",children:"Unified Dashboard"}),(0,ut.jsx)("p",{className:"text-slate-400 mt-2",children:"Real-time monitoring of webhook security and automation performance"})]}),(0,ut.jsx)(AU,{onResponse:u=>{$.success("Agent team completed the task!"),i()}})]}),(0,ut.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:s.map((u,f)=>{let p=u.icon;return(0,ut.jsx)(G.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:f*.1},className:`relative overflow-hidden rounded-2xl backdrop-blur-xl bg-gradient-to-br ${u.bgColor} border border-white/10 p-6`,children:(0,ut.jsxs)("div",{className:"flex items-start justify-between",children:[(0,ut.jsxs)("div",{children:[(0,ut.jsx)("p",{className:"text-sm text-slate-400 mb-1",children:u.title}),(0,ut.jsx)("p",{className:"text-3xl font-bold text-white",children:u.value})]}),(0,ut.jsx)("div",{className:`p-3 rounded-xl bg-gradient-to-br ${u.color}`,children:(0,ut.jsx)(p,{className:"w-6 h-6 text-white"})})]})},u.title)})}),(0,ut.jsxs)(G.div,{initial:{opacity:0,y:20}
85,animate:{opacity:1,y:0},transition:{delay:.6},className:"rounded-2xl backdrop-blur-xl bg-white/5 border border-white/10 p-6",children:[(0,ut.jsx)("h2",{className:"text-xl font-semibold text-white mb-4",children:"Recent Events"}),(0,ut.jsx)("div",{className:"space-y-3",children:r.length===0?(0,ut.jsx)("p",{className:"text-slate-400 text-center py-8",children:"No events yet"}):r.map(u=>{let f=u.createdAt||u.updatedAt||new Date().toISOString();return(0,ut.jsxs)("div",{className:"flex items-center justify-between p-4 rounded-xl bg-white/5 border border-white/10 hover:bg-white/10 transition-colors",children:[(0,ut.jsxs)("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[l(u.fieldValues["/attributes/@evt4"]),(0,ut.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,ut.jsx)("p",{className:"text-sm font-medium text-white truncate",children:u.fieldValues["/text"]}),(0,ut.jsxs)("div",{className:"flex items-center gap-2 text-xs text-slate-400 flex-wrap",children:[(0,ut.jsx)("span",{children:u.fieldValues["/attributes/@evt3"]}),(0,ut.jsx)("span",{children:"\u2022"}),(0,ut.jsx)("span",{children:u.fieldValues["/attributes/@evt6"]}),(0,ut.jsx)("span",{children:"\u2022"}),(0,ut.jsxs)("span",{className:"flex items-center gap-1",title:d(f),children:[(0,ut.jsx)(ba,{className:"w-3 h-3"}),c(f)]})]})]})]}),(0,ut.jsx)("div",{className:"text-right flex-shrink-0 ml-3",children:(0,ut.jsxs)("p",{className:"text-xs text-slate-400",children:[u.fieldValues["/attributes/@evt7"],"ms"]})})]},u.id)})})]})]})})},fq=Abe;var Ic=R(Q());var ne=R(ke()),Lbe=()=>{let[e,t]=Ic.useState([]),[r,a]=Ic.useState(!0),[n,o]=Ic.useState(!1),[i,s]=Ic.useState(null),[l,c]=Ic.useState({name:"",url:"",method:"POST",direction:"inbound",timeout:"30",retries:"3",status:"active",frequency:"manual",scheduleTime:"09:00",scheduleDays:[]});Ic.useEffect(()=>{d()},[]);let d=async()=>{try{let S=await Ye.get(`/api/taskade/projects/${wt.projects.webhookConnections}/nodes`);if(console.log("Connections API response:",S.data),S.data&&S.data.ok&&S.data.payload&&S.data.payload.nodes){let b=S.data.payload.nodes;console.log("Loaded connections:",b.length),t(b),b.length===0&&console.log("No connections found - showing empty state")}else console.error("Unexpected response structure:",S.data),t([])}catch(S){console.error("Failed to load connections:",S),console.error("Error response:",S.response),console.error("Error message:",S.message),S.response&&S.response.status!==404?$.error(S.response?.data?.message||"Failed to load connections"):(console.log("Project is empty or not found - showing empty state"),t([]))}finally{a(!1)}},u=async S=>{let w=S.fieldValues["/attributes/@conn5"]==="active"?"inactive":"active";try{await Ye.patch(`/api/taskade/projects/${wt.projects.webhookConnections}/nodes/${S.id}`,{"/attributes/@conn5":w}),$.success(`Connection ${w==="active"?"activated":"deactivated"}`),d()}catch{$.error("Failed to update connection")}},f=async S=>{let b=S.fieldValues["/text"];if(window.confirm(`Are you sure you want to delete "${b}"? 86 87This action cannot be undone.`))try{await Ye.delete(`/api/taskade/projects/${wt.projects.webhookConnections}/nodes/${S.id}`),$.success(`Connection "${b}" deleted successfully`),d()}catch(w){console.error("Failed to delete connection:",w),$.error(w.response?.data?.message||"Failed to delete connection")}},p=async S=>{if(S.preventDefault(),!l.name.trim()||!l.url.trim()){$.error("Please fill in all required fields");return}try{let b={"/text":l.name,"/attributes/@conn1":l.name,"/attributes/@conn2":l.direction,"/attributes/@conn3":l.url,"/attributes/@conn4":l.method.toLowerCase(),"/attributes/@conn5":l.status,"/attributes/@conn6":l.frequency,"/attributes/@conn7":parseInt(l.timeout),"/attributes/@conn8":parseInt(l.retries),"/attributes/@conn9":l.scheduleTime,"/attributes/@conn10":l.scheduleDays.join(",")};i?(await Ye.patch(`/api/taskade/projects/${wt.projects.webhookConnections}/nodes/${i.id}`,b),$.success(`Connection "${l.name}" updated successfully`)):(await Ye.post(`/api/taskade/projects/${wt.projects.webhookConnections}/nodes`,b),$.success(`Connection "${l.name}" created successfully`)),g(),d()}catch(b){console.error("Failed to save connection:",b),$.error(b.response?.data?.message||`Failed to ${i?"update":"create"} connection`)}},m=()=>{s(null),c({name:"",url:"",method:"POST",direction:"inbound",timeout:"30",retries:"3",status:"active",frequency:"manual",scheduleTime:"09:00",scheduleDays:[]}),o(!0)},h=S=>{console.log("\u{1F527} Opening edit dialog for connection:",S),s(S);let b=S.fieldValues["/attributes/@conn10"]||"",w={name:S.fieldValues["/text"]||"",url:S.fieldValues["/attributes/@conn3"]||"",method:(S.fieldValues["/attributes/@conn4"]||"post").toUpperCase(),direction:S.fieldValues["/attributes/@conn2"]||"inbound",timeout:String(S.fieldValues["/attributes/@conn7"]||"30"),retries:String(S.fieldValues["/attributes/@conn8"]||"3"),status:S.fieldValues["/attributes/@conn5"]||"active",frequency:S.fieldValues["/attributes/@conn6"]||"manual",scheduleTime:S.fieldValues["/attributes/@conn9"]||"09:00",scheduleDays:b?b.split(","):[]};console.log("\u{1F4DD} Form values:",w),c(w),o(!0)},g=()=>{o(!1),s(null),c({name:"",url:"",method:"POST",direction:"inbound",timeout:"30",retries:"3",status:"active",frequency:"manual",scheduleTime:"09:00",scheduleDays:[]})},y=S=>
87{switch(S){case"inbound":return"from-blue-500 to-cyan-500";case"outbound":return"from-purple-500 to-pink-500";case"bidirectional":return"from-cyan-500 to-purple-500";default:return"from-slate-500 to-slate-600"}},v=S=>{switch(S){case"active":return"text-green-400";case"inactive":return"text-slate-400";case"testing":return"text-yellow-400";default:return"text-slate-400"}},x=(S,b,w)=>{let k=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];switch(S){case"manual":return"Manual trigger";case"hourly":return"Every hour";case"daily":return`Daily at ${b}`;case"weekly":return w?`Weekly on ${w.split(",").map(L=>k[parseInt(L)]).join(", ")} at ${b}`:`Weekly at ${b}`;case"monthly":if(!w)return`Monthly at ${b}`;let N=parseInt(w.split(",")[0]);return`Monthly on ${N}${N===1?"st":N===2?"nd":N===3?"rd":"th"} at ${b}`;default:return"Not scheduled"}};return r?(0,ne.jsx)($e,{children:(0,ne.jsx)("div",{className:"flex items-center justify-center h-96",children:(0,ne.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-t-2 border-b-2 border-purple-500"})})}):(0,ne.jsxs)($e,{children:[(0,ne.jsxs)("div",{className:"space-y-6",children:[(0,ne.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ne.jsxs)("div",{children:[(0,ne.jsx)("h1",{className:"text-3xl font-bold text-white",children:"Webhook Connections"}),(0,ne.jsx)("p",{className:"text-slate-400 mt-2",children:"Manage your webhook integrations"})]}),(0,ne.jsxs)("button",{onClick:m,className:"flex items-center gap-2 px-4 py-2 rounded-lg bg-gradient-to-r from-cyan-500 via-purple-500 to-pink-500 text-white font-medium hover:opacity-90 transition-opacity",children:[(0,ne.jsx)(Bt,{className:"w-5 h-5"}),"New Connection"]})]}),e.length===0?(0,ne.jsxs)("div",{className:"flex flex-col items-center justify-center py-20 px-4",children:[(0,ne.jsx)("div",{className:"w-20 h-20 rounded-full bg-gradient-to-br from-cyan-500/20 to-purple-500/20 flex items-center justify-center mb-6",children:(0,ne.jsx)(Ya,{className:"w-10 h-10 text-cyan-400"})}),(0,ne.jsx)("h3",{className:"text-2xl font-bold text-white mb-2",children:"No Connections Yet"}),(0,ne.jsx)("p",{className:"text-slate-400 text-center max-w-md mb-6",children:"Create your first webhook connection to start integrating with external services"}),(0,ne.jsxs)("button",{onClick:m,className:"flex items-center gap-2 px-6 py-3 rounded-lg bg-gradient-to-r from-cyan-500 via-purple-500 to-pink-500 text-white font-medium hover:opacity-90 transition-opacity",children:[(0,ne.jsx)(Bt,{className:"w-5 h-5"}),"Create First Connection"]})]}):(0,ne.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:e.map((S,b)=>{let w=S.fieldValues["/attributes/@conn2"],k=S.fieldValues["/attributes/@conn5"],C=k==="active";return(0,ne.jsxs)(G.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:b*.1},className:"rounded-2xl backdrop-blur-xl bg-white/5 border border-white/10 p-6 hover:bg-white/10 transition-colors",children:[(0,ne.jsxs)("div",{className:"flex items-start justify-between mb-4",children:[(0,ne.jsxs)("div",{className:"flex-1",children:[(0,ne.jsx)("h3",{className:"text-lg font-semibold text-white mb-1",children:S.fieldValues["/text"]}),(0,ne.jsxs)("div",{className:"flex items-center gap-2",children:[(0,ne.jsx)("span",{className:U("px-2 py-1 rounded-lg text-xs font-medium bg-gradient-to-r",y(w)),children:w}),(0,ne.jsx)("span",{className:U("text-xs font-medium",v(k)),children:k})]})]}),(0,ne.jsx)("button",{onClick:()=>u(S),className:U("p-2 rounded-lg transition-colors",C?"bg-green-500/20 text-green-400":"bg-slate-500/20 text-slate-400"),children:C?(0,ne.jsx)(m0,{className:"w-5 h-5"}):(0,ne.jsx)(p0,{className:"w-5 h-5"})})]}),(0,ne.jsxs)("div",{className:"space-y-2 text-sm",children:[(0,ne.jsxs)("div",{children:[(0,ne.jsx)("span",{className:"text-slate-400",children:"URL:"}),(0,ne.jsx)("p",{className:"text-white font-mono text-xs mt-1 truncate",children:S.fieldValues["/attributes/@conn3"]})]}),(0,ne.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ne.jsx)("span",{className:"text-slate-400",children:"Method:"}),(0,ne.jsx)("span",{className:"text-white font-medium",children:S.fieldValues["/attributes/@conn4"]?.toUpperCase()})]}),(0,ne.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ne.jsx)("span",{className:"text-slate-400",children:"Timeout:"}),(0,ne.jsxs)("span",{className:"text-white",children:[S.fieldValues["/attributes/@conn7"],"s"]})]}),(0,ne.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ne.jsx)("span",{className:"text-slate-400",children:"Retries:"}),(0,ne.jsx)("span",{className:"text-white",children:S.fieldValues["/attributes/@conn8"]})]}),(0,ne.jsx)("div",{className:"pt-2 mt-2 border-t border-white/5",children:(0,ne.jsxs)("div",{className:"flex items-center gap-2",children:[(0,ne.jsx)(vt,{className:"w-4 h-4 text-slate-400"}),(0,ne.jsx)("span",{className:"text-slate-400",children:"Schedule:"}),(0,ne.jsx)("span",{className:"text-cyan-400 text-xs font-medium",children:x(S.fieldValues["/attributes/@conn6"]||"manual",S.fieldValues["/attributes/@conn9"]||"09:00",S.fieldValues["/attributes/@conn10"]||"")})]})})]}),(0,ne.jsxs)("div",{className:"flex gap-2 mt-4 pt-4 border-t border-white/10",children:[(0,ne.jsxs)("button",{onClick:()=>h(S),className:"flex-1 flex items-center justify-center gap-2 px-3 py-2 rounded-lg bg-white/5 hover:bg-white/10 text-white text-sm transition-colors",children:[(0,ne.jsx)(Ja,{className:"w-4 h-4"}),"Edit"]}),(0,ne.jsxs)("button",{onClick:()=>f(S),className:"flex-1 flex items-center justify-center gap-2 px-3 py-2 rounded-lg bg-red-500/20 hover:bg-red-500/30 text-red-400 text-sm transition-colors",children:[(0,ne.jsx)(Kt,{className:"w-4 h-4"}),"Delete"]})]})]},S.id)})})]}),(0,ne.jsx)(Ue,{children:n&&(0,ne.jsxs)(ne.Fragment,{children:[(0,ne.jsx)(G.div,{initial:{opacity:0}
87,animate:{opacity:1},exit:{opacity:0},onClick:g,className:"fixed inset-0 bg-black/60 backdrop-blur-sm z-50"}),(0,ne.jsx)(G.div,{initial:{opacity:0,scale:.95,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:20},className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:(0,ne.jsxs)("div",{className:"w-full max-w-2xl rounded-2xl backdrop-blur-xl bg-slate-900/95 border border-white/10 shadow-2xl",children:[(0,ne.jsxs)("div",{className:"flex items-center justify-between p-6 border-b border-white/10",children:[(0,ne.jsxs)("div",{children:[(0,ne.jsxs)("h2",{className:"text-2xl font-bold text-white",children:[i?"Edit":"New"," Webhook Connection"]}),(0,ne.jsx)("p",{className:"text-slate-400 text-sm mt-1",children:i?"Update your webhook configuration":"Configure your webhook integration"})]}),(0,ne.jsx)("button",{onClick:g,className:"p-2 rounded-lg hover:bg-white/10 text-slate-400 hover:text-white transition-colors",children:(0,ne.jsx)(Ir,{className:"w-5 h-5"})})]}),(0,ne.jsxs)("form",{onSubmit:p,className:"p-6 space-y-6",children:[(0,ne.jsxs)("div",{children:[(0,ne.jsxs)("label",{className:"block text-sm font-medium text-white mb-2",children:["Connection Name ",(0,ne.jsx)("span",{className:"text-red-400",children:"*"})]}),(0,ne.jsx)("input",{type:"text",value:l.name,onChange:S=>c({...l,name:S.target.value}),placeholder:"e.g., API Gateway, Payment Processor",className:"w-full px-4 py-3 rounded-lg bg-white/5 border border-white/10 text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-purple-500/50 focus:border-transparent",required:!0})]}),(0,ne.jsxs)("div",{children:[(0,ne.jsxs)("label",{className:"block text-sm font-medium text-white mb-2",children:["Webhook URL ",(0,ne.jsx)("span",{className:"text-red-400",children:"*"})]}),(0,ne.jsx)("input",{type:"url",value:l.url,onChange:S=>c({...l,url:S.target.value}),placeholder:"https://api.example.com/webhook",className:"w-full px-4 py-3 rounded-lg bg-white/5 border border-white/10 text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-purple-500/50 focus:border-transparent font-mono text-sm",required:!0})]}),(0,ne.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,ne.jsxs)("div",{children:[(0,ne.jsx)("label",{className:"block text-sm font-medium text-white mb-2",children:"Direction"}),(0,ne.jsxs)("select",{value:l.direction,onChange:S=>c({...l,direction:S.target.value}),className:"w-full px-4 py-3 rounded-lg bg-white/5 border border-white/10 text-white focus:outline-none focus:ring-2 focus:ring-purple-500/50 focus:border-transparent",children:[(0,ne.jsx)("option",{value:"inbound",children:"Inbound"}),(0,ne.jsx)("option",{value:"outbound",children:"Outbound"}),(0,ne.jsx)("option",{value:"bidirectional",children:"Bidirectional"})]})]}),(0,ne.jsxs)("div",{children:[(0,ne.jsx)("label",{className:"block text-sm font-medium text-white mb-2",children:"HTTP Method"}),(0,ne.jsxs)("select",{value:l.method,onChange:S=>c({...l,method:S.target.value}),className:"w-full px-4 py-3 rounded-lg bg-white/5 border border-white/10 text-white focus:outline-none focus:ring-2 focus:ring-purple-500/50 focus:border-transparent",children:[(0,ne.jsx)("option",{value:"GET",children:"GET"}),(0,ne.jsx)("option",{value:"POST",children:"POST"}),(0,ne.jsx)("option",{value:"PUT",children:"PUT"}),(0,ne.jsx)("option",{value:"PATCH",children:"PATCH"}),(0,ne.jsx)("option",{value:"DELETE",children:"DELETE"})]})]})]}),(0,ne.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,ne.jsxs)("div",{children:[(0,ne.jsx)("label",{className:"block text-sm font-medium text-white mb-2",children:"Timeout (seconds)"}),(0,ne.jsx)("input",{type:"number",value:l.timeout,onChange:S=>c({...l,timeout:S.target.value}),min:"1",max:"300",className:"w-full px-4 py-3 rounded-lg bg-white/5 border border-white/10 text-white focus:outline-none focus:ring-2 focus:ring-purple-500/50 focus:border-transparent"})]}),(0,ne.jsxs)("div",{children:[(0,ne.jsx)("label",{className:"block text-sm font-medium text-white mb-2",children:"Max Retries"}),(0,ne.jsx)("input",{type:"number",value:l.retries,onChange:S=>c({...l,retries:S.target.value}),min:"0",max:"10",className:"w-full px-4 py-3 rounded-lg bg-white/5 border border-white/10 text-white focus:outline-none focus:ring-2 focus:ring-purple-500/50 focus:border-transparent"})]})]}),(0,ne.jsxs)("div",{children:[(0,ne.jsx)("label",{className:"block text-sm font-medium text-white mb-2",children:"Initial Status"}),(0,ne.jsxs)("select",{value:l.status,onChange:S=>c({...l,status:S.target.value}),className:"w-full px-4 py-3 rounded-lg bg-white/5 border border-white/10 text-white focus:outline-none focus:ring-2 focus:ring-purple-500/50 focus:border-transparent",children:[(0,ne.jsx)("option",{value:"active",children:"Active"}),(0,ne.jsx)("option",{value:"inactive",children:"Inactive"}),(0,ne.jsx)("option",{value:"testing",children:"Testing"})]})]}),(0,ne.jsxs)("div",{className:"pt-4 border-t border-white/10",children:[(0,ne.jsxs)("h3",{className:"text-lg font-semibold text-white mb-4 flex items-center gap-2",children:[(0,ne.jsx)(vt,{className:"w-5 h-5 text-cyan-400"}),"Schedule Settings"]}),(0,ne.jsxs)("div",{className:"mb-4",children:[(0,ne.jsx)("label",{className:"block text-sm font-medium text-white mb-2",children:"Trigger Frequency"}),(0,ne.jsxs)("select",{value:l.frequency,onChange:S=>c({...l,frequency:S.target.value}),className:"w-full px-4 py-3 rounded-lg bg-white/5 border border-white/10 text-white focus:outline-none focus:ring-2 focus:ring-purple-500/50 focus:border-transparent",children:[(0,ne.jsx)("option",{value:"manual",children:"Manual (On-demand)"}),(0,ne.jsx)("option",{value:"hourly",children:"Every Hour"}),(0,ne.jsx)("option",{value:"daily",children:"Daily"}),(0,ne.jsx)("option",{value:"weekly",children:"Weekly"}),(0,ne.jsx)("option",{value:"monthly",children:"Monthly"})]})]}),(()=>{let S=l.frequency!=="manual",b=l.frequency!=="hourly";return S&&b&&(0,ne.jsxs)("div",{className:"mb-4",children:[(0,ne.jsx)("label",{className:"block text-sm font-medium text-white mb-2",children:"Time of Day"}),(0,ne.jsx)("input",{type:"time",value:l.scheduleTime,onChange:k=>c({...l,scheduleTime:k.target.value}),className:"w-full px-4 py-3 rounded-lg bg-white/5 border border-white/10 text-white focus:outline-none focus:ring-2 focus:ring-purple-500/50 focus:border-transparent"})]})})(),l.frequency==="weekly"&&(0,ne.jsxs)("div",{children:[(0,ne.jsx)("label",{className:"block text-sm font-medium text-white mb-2",children:"Days of Week"}),(0,ne.jsx)("div",{className:"grid grid-cols-7 gap-2",children:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"].map((b,w)=>{let k=l.scheduleDays.includes(String(w));return(0,ne.jsx)("button",{type:"button",onClick:()=>{let C=String(w);
87c({...l,scheduleDays:k?l.scheduleDays.filter(N=>N!==C):[...l.scheduleDays,C]})},className:U("px-2 py-2 rounded-lg text-xs font-medium transition-all",k?"bg-gradient-to-r from-cyan-500 to-purple-500 text-white":"bg-white/5 text-slate-400 hover:bg-white/10"),children:b},b)})})]}),l.frequency==="monthly"&&(0,ne.jsxs)("div",{children:[(0,ne.jsx)("label",{className:"block text-sm font-medium text-white mb-2",children:"Day of Month"}),(0,ne.jsx)("select",{value:l.scheduleDays[0]||"1",onChange:b=>c({...l,scheduleDays:[b.target.value]}),className:"w-full px-4 py-3 rounded-lg bg-white/5 border border-white/10 text-white focus:outline-none focus:ring-2 focus:ring-purple-500/50 focus:border-transparent",children:Array.from({length:31},(b,w)=>w+1).map(b=>(0,ne.jsxs)("option",{value:String(b),children:[b,b===1?"st":b===2?"nd":b===3?"rd":"th"," of the month"]},b))})]})]}),(0,ne.jsxs)("div",{className:"flex gap-3 pt-4",children:[(0,ne.jsx)("button",{type:"button",onClick:g,className:"flex-1 px-4 py-3 rounded-lg bg-white/5 hover:bg-white/10 text-white font-medium transition-colors",children:"Cancel"}),(0,ne.jsx)("button",{type:"submit",className:"flex-1 px-4 py-3 rounded-lg bg-gradient-to-r from-cyan-500 via-purple-500 to-pink-500 text-white font-medium hover:opacity-90 transition-opacity",children:i?"Update Connection":"Create Connection"})]})]})]})})]})})]})},pq=Lbe;var Yo=R(Q());var be=R(ke()),Tbe=()=>{let[e,t]=Yo.useState([]),[r,a]=Yo.useState(!0),[n,o]=Yo.useState("all"),[i,s]=Yo.useState(!1),[l,c]=Yo.useState(null),[d,u]=Yo.useState({username:"",password:""}),[f,p]=Yo.useState(""),[m,h]=Yo.useState(!1),[g,y]=Yo.useState([]);Yo.useEffect(()=>{v(),x()},[]);let v=async()=>{try{let T=await Ye.get(`/api/taskade/projects/${wt.projects.eventLog}/nodes`);t(T.data.payload.nodes)}catch(T){console.error("Failed to load events:",T)}finally{a(!1)}},x=async()=>{try{let T=await Ye.get(`/api/taskade/projects/${wt.projects.credentials}/nodes`);if(T.data&&T.data.ok&&T.data.payload&&T.data.payload.nodes){let q=T.data.payload.nodes.filter(_=>_.fieldValues["/attributes/@cred5"]==="active").map(_=>({username:_.fieldValues["/text"]||"",password:_.fieldValues["/attributes/@cred2"]||"",role:_.fieldValues["/attributes/@cred1"]||"Manager"}));y(q)}}catch(T){console.error("Failed to load authorized users:",T),y([{username:"admin",password:"admin123",role:"Administrator"}])}},S=T=>{c(T),s(!0),p(""),u({username:"",password:""})},b=async T=>{T.preventDefault(),p("");let q=g.find(_=>_.username===d.username&&_.password===d.password);if(!q){p("Invalid credentials. Access denied.");return}h(!0);try{await Ye.delete(`/api/taskade/projects/${wt.projects.eventLog}/nodes/${l.id}`),$.success(`Event deleted by ${q.role}: ${q.username}`),t(e.filter(_=>_.id!==l.id)),s(!1),c(null),u({username:"",password:""})}catch(_){console.error("Failed to delete event:",_),$.error(_.response?.data?.message||"Failed to delete event")}finally{h(!1)}},w=()=>{s(!1),c(null),u({username:"",password:""}),p("")},k=T=>{switch(T){case"success":return(0,be.jsx)(We,{className:"w-5 h-5 text-green-400"});case"failed":return(0,be.jsx)(Ct,{className:"w-5 h-5 text-red-400"});case"blocked":return(0,be.jsx)(Qe,{className:"w-5 h-5 text-orange-400"});default:return(0,be.jsx)(vt,{className:"w-5 h-5 text-yellow-400"})}},C=T=>{switch(T){case"success":return"bg-green-500/20 text-green-400 border-green-500/30";case"failed":return"bg-red-500/20 text-red-400 border-red-500/30";case"blocked":return"bg-orange-500/20 text-orange-400 border-orange-500/30";default:return"bg-yellow-500/20 text-yellow-400 border-yellow-500/30"}},N=T=>{try{let q=typeof T=="string"?yl(T):new Date(T);return(new Date().getTime()-q.getTime())/(1e3*60*60)<24?Yu(q,{addSuffix:!0}):Zr(q,"MMM d, yyyy \u2022 h:mm:ss a")}catch{return"Unknown time"}},E=T=>{try{let q=typeof T=="string"?yl(T):new Date(T);return Zr(q,"EEEE, MMMM d, yyyy \u2022 h:mm:ss a")}catch{return"Invalid timestamp"}},L=n==="all"?e:e.filter(T=>T.fieldValues["/attributes/@evt4"]===n);return r?(0,be.jsx)($e,{children:(0,be.jsx)("div",{className:"flex items-center justify-center h-96",children:(0,be.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-t-2 border-b-2 border-purple-500"})})}):(0,be.jsxs)($e,{children:[(0,be.jsxs)("div",{className:"space-y-6",children:[(0,be.jsxs)("div",{className:"flex items-center justify-between",children:[(0,be.jsxs)("div",{children:[(0,be.jsx)("h1",{className:"text-3xl font-bold text-white",children:"Event Activity L
87og"}),(0,be.jsx)("p",{className:"text-slate-400 mt-2",children:"Complete audit trail of all webhook events"})]}),(0,be.jsxs)("div",{className:"flex items-center gap-2",children:[(0,be.jsx)(Bn,{className:"w-5 h-5 text-slate-400"}),(0,be.jsxs)("select",{value:n,onChange:T=>o(T.target.value),className:"bg-white/5 border border-white/10 rounded-lg px-4 py-2 text-white text-sm focus:outline-none focus:ring-2 focus:ring-purple-500/50",children:[(0,be.jsx)("option",{value:"all",children:"All Events"}),(0,be.jsx)("option",{value:"success",children:"Success"}),(0,be.jsx)("option",{value:"failed",children:"Failed"}),(0,be.jsx)("option",{value:"blocked",children:"Blocked"}),(0,be.jsx)("option",{value:"pending",children:"Pending"})]})]})]}),(0,be.jsx)("div",{className:"space-y-3",children:L.length===0?(0,be.jsx)("div",{className:"text-center py-12 text-slate-400",children:(0,be.jsx)("p",{children:"No events found"})}):L.map((T,q)=>{let _=T.fieldValues["/attributes/@evt4"],B=T.fieldValues["/attributes/@evt2"],I=T.createdAt||T.updatedAt||new Date().toISOString();return(0,be.jsx)(G.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:q*.05},className:"rounded-xl backdrop-blur-xl bg-white/5 border border-white/10 p-4 hover:bg-white/10 transition-colors",children:(0,be.jsxs)("div",{className:"flex items-start gap-4",children:[(0,be.jsx)("div",{className:"mt-1",children:k(_)}),(0,be.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,be.jsxs)("div",{className:"flex items-center justify-between gap-2 mb-2",children:[(0,be.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,be.jsx)("h3",{className:"text-white font-medium truncate",children:T.fieldValues["/text"]}),(0,be.jsx)("span",{className:U("px-2 py-0.5 rounded text-xs font-medium border",C(_)),children:_}),(0,be.jsx)("span",{className:"px-2 py-0.5 rounded text-xs font-medium bg-slate-500/20 text-slate-300",children:B})]}),(0,be.jsxs)("div",{className:"flex items-center gap-3",children:[(0,be.jsxs)("div",{className:"flex items-center gap-2 text-xs text-slate-400",children:[(0,be.jsx)(ba,{className:"w-3.5 h-3.5"}),(0,be.jsx)("span",{title:E(I),children:N(I)})]}),(0,be.jsxs)("button",{onClick:()=>S(T),className:"p-2 rounded-lg bg-red-500/10 text-red-400 hover:bg-red-500/20 transition-colors group",title:"Delete (Requires Authorization)",children:[(0,be.jsx)(Ra,{className:"w-4 h-4 group-hover:hidden"}),(0,be.jsx)(Kt,{className:"w-4 h-4 hidden group-hover:block"})]})]})]}),(0,be.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 text-sm",children:[(0,be.jsxs)("div",{children:[(0,be.jsx)("span",{className:"text-slate-400",children:"Connection:"}),(0,be.jsx)("p",{className:"text-white",children:T.fieldValues["/attributes/@evt3"]})]}),(0,be.jsxs)("div",{children:[(0,be.jsx)("span",{className:"text-slate-400",children:"Event Type:"}),(0,be.jsx)("p",{className:"text-white",children:T.fieldValues["/attributes/@evt6"]})]}),(0,be.jsxs)("div",{children:[(0,be.jsx)("span",{className:"text-slate-400",children:"Source IP:"}),(0,be.jsx)("p",{className:"text-white font-mono text-xs",children:T.fieldValues["/attributes/@evt5"]})]}),(0,be.jsxs)("div",{children:[(0,be.jsx)("span",{className:"text-slate-400",children:"Response Time:"}),(0,be.jsxs)("p",{className:"text-white",children:[T.fieldValues["/attributes/@evt7"],"ms"]})]})]}),T.fieldValues["/attributes/@evt8"]&&(0,be.jsx)("div",{className:"mt-2 p-2 rounded bg-red-500/10 border border-red-500/20",children:(0,be.jsxs)("p",{className:"text-xs text-red-400",children:["Error: ",T.fieldValues["/attributes/@evt8"]]})})]})]})},T.id)})})]}),(0,be.jsx)(Ue,{children:i&&(0,be.jsxs)(be.Fragment,{children:[(0,be.jsx)(G.div,{initial:{opacity:0}
87,animate:{opacity:1},exit:{opacity:0},onClick:w,className:"fixed inset-0 bg-black/60 backdrop-blur-sm z-50"}),(0,be.jsx)(G.div,{initial:{opacity:0,scale:.95,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:20},className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:(0,be.jsxs)("div",{className:"w-full max-w-md rounded-2xl backdrop-blur-xl bg-slate-900/95 border border-red-500/30 shadow-2xl shadow-red-500/20",children:[(0,be.jsxs)("div",{className:"flex items-center justify-between p-6 border-b border-white/10",children:[(0,be.jsxs)("div",{className:"flex items-center gap-3",children:[(0,be.jsx)("div",{className:"p-2 rounded-lg bg-red-500/20",children:(0,be.jsx)(hr,{className:"w-5 h-5 text-red-400"})}),(0,be.jsxs)("div",{children:[(0,be.jsx)("h2",{className:"text-xl font-bold text-white",children:"Authorization Required"}),(0,be.jsx)("p",{className:"text-sm text-slate-400",children:"Restricted Action"})]})]}),(0,be.jsx)("button",{onClick:w,className:"p-2 rounded-lg hover:bg-white/10 transition-colors",children:(0,be.jsx)(Ir,{className:"w-5 h-5 text-slate-400"})})]}),(0,be.jsxs)("form",{onSubmit:b,className:"p-6 space-y-4",children:[(0,be.jsx)("div",{className:"p-4 rounded-lg bg-red-500/10 border border-red-500/20",children:(0,be.jsxs)("p",{className:"text-sm text-red-300",children:[(0,be.jsx)("strong",{children:"Warning:"})," You are about to permanently delete an event log entry. This action cannot be undone and will be recorded in the audit trail."]})}),l&&(0,be.jsxs)("div",{className:"p-4 rounded-lg bg-white/5 border border-white/10",children:[(0,be.jsx)("p",{className:"text-xs text-slate-400 mb-1",children:"Event to be deleted:"}),(0,be.jsx)("p",{className:"text-white font-medium",children:l.fieldValues["/text"]}),(0,be.jsxs)("p",{className:"text-xs text-slate-400 mt-2",children:["Status: ",(0,be.jsx)("span",{className:"text-white",children:l.fieldValues["/attributes/@evt4"]})]})]}),(0,be.jsxs)("div",{className:"space-y-3",children:[(0,be.jsxs)("div",{children:[(0,be.jsx)("label",{className:"block text-sm font-medium text-slate-300 mb-2",children:"Username"}),(0,be.jsx)("input",{type:"text",value:d.username,onChange:T=>u({...d,username:T.target.value}),className:"w-full px-4 py-2 rounded-lg bg-white/5 border border-white/10 text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-red-500/50",placeholder:"Enter your username",required:!0,autoFocus:!0})]}),(0,be.jsxs)("div",{children:[(0,be.jsx)("label",{className:"block text-sm font-medium text-slate-300 mb-2",children:"Password"}),(0,be.jsx)("input",{type:"password",value:d.password,onChange:T=>u({...d,password:T.target.value}),className:"w-full px-4 py-2 rounded-lg bg-white/5 border border-white/10 text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-red-500/50",placeholder:"Enter your password",required:!0})]})]}),f&&(0,be.jsx)(G.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},className:"p-3 rounded-lg bg-red-500/20 border border-red-500/30",children:(0,be.jsxs)("p",{className:"text-sm text-red-300 flex items-center gap-2",children:[(0,be.jsx)(Ct,{className:"w-4 h-4"}),f]})}),(0,be.jsxs)("div",{className:"p-4 rounded-lg bg-slate-800/50 border border-slate-700",children:[(0,be.jsx)("p",{className:"text-xs text-slate-400 mb-2",children:"Authorized Personnel:"}),g.length>0?(0,be.jsx)("ul",{className:"text-xs text-slate-300 space-y-1",children:g.map(T=>(0,be.jsxs)("li",{className:"flex items-center gap-2",children:[(0,be.jsx)(Qe,{className:"w-3 h-3 text-cyan-400"}),(0,be.jsx)("span",{className:"font-medium",children:T.username}),(0,be.jsxs)("span",{className:"text-slate-500",children:["(",T.role,")"]})]},T.username))}):(0,be.jsx)("p",{className:"text-xs text-slate-500",children:"Loading authorized users..."}),(0,be.jsx)("p",{className:"text-xs text-slate-500 mt-2",children:"Manage users in Security \u2192 User Management"})]}),(0,be.jsxs)("div",{className:"flex gap-3 pt-2",children:[(0,be.jsx)("button",{type:"button",onClick:w,className:"flex-1 px-4 py-2 rounded-lg bg-white/5 text-white hover:bg-white/10 transition-colors",disabled:m,children:"Cancel"}),(0,be.jsx)("button",{type:"submit",disabled:m,className:"flex-1 px-4 py-2 rounded-lg bg-gradient-to-r from-red-500 to-orange-500 text-white font-medium hover:opacity-90 transition-opacity disabled:opacity-50 disabled:cursor-not-allowed",children:m?"Deleting...":"Authorize & Delete"})]})]})]})})]})})]})},mq=Tbe;var bs=R(Q());var we=R(ke()),Rbe=()=>{let[e,t]=bs.useState([]),[r,a]=bs.useState(!0),[n,o]=bs.useState(!1),[i,s]=bs.useState(null),[l,c]=bs.useState(new Set),[d,u]=bs.useState(null),[f,p]=bs.useState({name:"",integrationName:"",apiKey:"",apiSecret:"",direction:"bidirectional",status:"active",description:""});bs.useEffect(()=>{m()},[]);let m=async()=>{try{let C=await Ye.get(`/api/taskade/projects/${wt.projects.credentials}/nodes`);t(C.data.payload.nodes)}catch(C){console.error("Failed to load credentials:",C),$.error("Failed to load credentials")}finally{a(!1)}},h=async C=>{C.preventDefault();try{let N=new Date().toISOString();i?(await Ye.patch(`/api/taskade/projects/${wt.projects.credentials}/nodes/${i}`,{"/text":f.name,"/attributes/@cred1":f.integrationName,"/attributes/@cred2":f.apiKey,"/attributes/@cred3":f.apiSecret,"/attributes/@cred4":f.direction,"/attributes/@cred5":f.status,"/attributes/note":f.description}),$.success("Credential updated successfully")):(await Ye.post(`/api/taskade/projects/${wt.projects.credentials}/nodes`,{"/text":f.name,"/attributes/@cred1":f.integrationName,"/attributes/@cred2":f.apiKey,"/attributes/@cred3":f.apiSecret,"/attributes/@cred4":f.direction,"/attributes/@cred5":f.status,"/attributes/@cred6":N,"/attributes/@cred7":N,"/attributes/note":f.description}),$.success("Credential created successfully")),o(!1),v(),m()}catch(N){console.error("Failed to save credential:",N),$.error("Failed to save credential")}},g=C=>{s(C.id),p({name:C.fieldValues["/text"]||"",integrationName:C.fieldValues["/attributes/@cred1"]||"",apiKey:C.fieldValues["/attributes/@cred2"]||"",apiSecret:C.fieldValues["/attributes/@cred3"]||"",direction:C.fieldValues["/attributes/@cred4"]||"bidirectional",status:C.fieldValues["/attributes/@cred5"]||"active",description:C.fieldValues["/attributes/note"]||""}),o(!0)},y=async C=>
87{if(confirm("Are you sure you want to delete this credential?"))try{await Ye.delete(`/api/taskade/projects/${wt.projects.credentials}/nodes/${C}`),$.success("Credential deleted successfully"),m()}catch(N){console.error("Failed to delete credential:",N),$.error("Failed to delete credential")}},v=()=>{p({name:"",integrationName:"",apiKey:"",apiSecret:"",direction:"bidirectional",status:"active",description:""}),s(null)},x=C=>{c(N=>{let E=new Set(N);return E.has(C)?E.delete(C):E.add(C),E})},S=async(C,N)=>{try{await navigator.clipboard.writeText(C),u(N),$.success("Copied to clipboard"),setTimeout(()=>u(null),2e3)}catch{$.error("Failed to copy")}},b=C=>{if(!C)return"";let N=4;return C.slice(0,N)+"\u2022".repeat(Math.max(0,C.length-N))},w=C=>{switch(C){case"active":return"text-green-400 bg-green-500/20";case"revoked":return"text-red-400 bg-red-500/20";case"expired":return"text-yellow-400 bg-yellow-500/20";default:return"text-gray-400 bg-gray-500/20"}},k=C=>{switch(C){case"inbound":return"\u2190";case"outbound":return"\u2192";case"bidirectional":return"\u2194";default:return"\u2022"}};return(0,we.jsx)($e,{children:(0,we.jsxs)("div",{className:"min-h-screen bg-gradient-to-br from-slate-950 via-slate-900 to-slate-950 p-6",children:[(0,we.jsx)(G.div,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},className:"mb-8",children:(0,we.jsxs)("div",{className:"flex items-center justify-between",children:[(0,we.jsxs)("div",{children:[(0,we.jsxs)("div",{className:"flex items-center gap-3 mb-2",children:[(0,we.jsx)("div",{className:"p-3 rounded-xl bg-gradient-to-br from-amber-500/20 to-orange-500/20 backdrop-blur-sm border border-amber-500/20",children:(0,we.jsx)(Dr,{className:"w-6 h-6 text-amber-400"})}),(0,we.jsx)("h1",{className:"text-3xl font-bold bg-gradient-to-r from-amber-400 to-orange-400 bg-clip-text text-transparent",children:"Security Credentials"})]}),(0,we.jsx)("p",{className:"text-slate-400 ml-[60px]",children:"Manage API keys and integration credentials"})]}),(0,we.jsxs)(G.button,{whileHover:{scale:1.02},whileTap:{scale:.98},onClick:()=>{v(),o(!0)},className:"px-6 py-3 rounded-xl bg-gradient-to-r from-amber-500 to-orange-500 text-white font-medium shadow-lg shadow-amber-500/25 hover:shadow-amber-500/40 transition-all flex items-center gap-2",children:[(0,we.jsx)(Bt,{className:"w-5 h-5"}),"Add Credential"]})]})}),r?(0,we.jsx)("div",{className:"flex items-center justify-center h-64",children:(0,we.jsx)("div",{className:"w-8 h-8 border-4 border-amber-500/30 border-t-amber-500 rounded-full animate-spin"})}):e.length===0?(0,we.jsxs)(G.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},className:"text-center py-16 px-6 rounded-2xl bg-white/5 backdrop-blur-sm border border-white/10",children:[(0,we.jsx)(Qe,{className:"w-16 h-16 text-slate-600 mx-auto mb-4"}),(0,we.jsx)("h3",{className:"text-xl font-semibold text-slate-300 mb-2",children:"No credentials yet"}),(0,we.jsx)("p",{className:"text-slate-500 mb-6",children:"Add your first API credential to get started"}),(0,we.jsx)("button",{onClick:()=>o(!0),className:"px-6 py-3 rounded-xl bg-gradient-to-r from-amber-500 to-orange-500 text-white font-medium",children:"Add First Credential"})]}):(0,we.jsx)("div",{className:"grid gap-4",children:(0,we.jsx)(Ue,{mode:"popLayout",children:e.map((C,N)=>{let E=l.has(C.id),L=d===C.id,T=C.fieldValues["/attributes/@cred5"],q=T==="active";return(0,we.jsxs)(G.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,scale:.95},transition:{delay:N*.05},className:U("p-6 rounded-2xl backdrop-blur-sm border transition-all",q?"bg-white/5 border-white/10 hover:bg-white/[0.07]":"bg-white/[0.02] border-white/5 opacity-60"),children:[(0,we.jsxs)("div",{className:"flex items-start justify-between mb-4",children:[(0,we.jsxs)("div",{className:"flex-1",children:[(0,we.jsxs)("div",{className:"flex items-center gap-3 mb-2",children:[(0,we.jsx)("h3",{className:"text-lg font-semibold text-white",children:C.fieldValues["/text"]||"Unnamed Credential"}),(0,we.jsx)("span",{className:U("px-3 py-1 rounded-full text-xs font-medium",w(T)),children:T}),(0,we.jsxs)("span",{className:"px-2 py-1 rounded bg-slate-800/50 text-slate-400 text-xs font-mono",children:[k(C.fieldValues["/attributes/@cred4"])," ",C.fieldValues["/attributes/@cred4"]]})]}),(0,we.jsx)("p",{className:"text-sm text-slate-400 mb-3",children:C.fieldValues["/attributes/@cred1"]||"No integration name"}),C.fieldValues["/attributes/note"]&&(0,we.jsx)("p",{className:"text-sm text-slate-500 mb-3",children:C.fieldValues["/attributes/note"]})]}),(0,we.jsxs)("div",{className:"flex items-center gap-2",children:[(0,we.jsx)(G.button,{whileHover:{scale:1.05},whileTap:{scale:.95},onClick:()=>g(C),className:"p-2 rounded-lg bg-white/5 hover:bg-white/10 text-slate-400 hover:text-white transition-colors",children:(0,we.jsx)(ds,{className:"w-4 h-4"})}),(0,we.jsx)(G.button,{whileHover:{scale:1.05},whileTap:{scale:.95},onClick:()=>y(C.id),className:"p-2 rounded-lg bg-white/5 hover:bg-red-500/20 text-slate-400 hover:text-red-400 transition-colors",children:(0,we.jsx)(Kt,{className:"w-4 h-4"})})]})]}),(0,we.jsxs)("div",{className:"space-y-3",children:[(0,we.jsxs)("div",{className:"p-3 rounded-lg bg-black/20 border border-white/5",children:[(0,we.jsxs)("div",{className:"flex items-center justify-between mb-1",children:[(0,we.jsx)("span",{className:"text-xs text-slate-500 font-medium",children:"API Key"}),(0,we.jsxs)("div",{className:"flex items-center gap-1",children:[(0,we.jsx)("button",{onClick:()=>x(C.id),className:"p-1 rounded hover:bg-white/5 text-slate-500 hover:text-slate-300 transition-colors",children:E?(0,we.jsx)(qo,{className:"w-3 h-3"}):(0,we.jsx)(Yr,{className:"w-3 h-3"})}),(0,we.jsx)("button",{onClick:()=>S(C.fieldValues["/attributes/@cred2"],C.id),className:"p-1 rounded hover:bg-white/5 text-slate-500 hover:text-slate-300 transition-colors",children:L?(0,we.jsx)(mr,{className:"w-3 h-3 text-green-400"}):(0,we.jsx)(gt,{className:"w-3 h-3"})})]})]}),(0,we.jsx)("code",{className:"text-sm text-slate-300 font-mono",children:E?C.fieldValues["/attributes/@cred2"]:b(C.fieldValues["/attributes/@cred2"])})]}),C.fieldValues["/attributes/@cred3"]&&(0,we.jsxs)("div",{className:"p-3 rounded-lg bg-black/20 border border-white/5",children:[(0,we.jsxs)("div",{className:"flex items-center justify-between mb-1",children:[(0,we.jsx)("span",{className:"text-xs text-slate-500 font-medium",children:"API Secret"}),(0,we.jsx)("button",{onClick:()=>S(C.fieldValues["/attributes/@cred3"],`${C.id}-secret`),className:"p-1 rounded hover:bg-white/5 text-slate-500 hover:text-slate-300 transition-colors",children:d===`${C.id}-secret`?(0,we.jsx)(mr,{className:"w-3 h-3 text-green-400"}):(0,we.jsx)(gt,{className:"w-3 h-3"})})]}),(0,we.jsx)("code",{className:"text-sm text-slate-300 font-mono",children:b(C.fieldValues["/attributes/@cred3"])})]}),(0,we.jsxs)("div",{className:"flex items-center gap-4 text-xs text-slate-500 pt-2",children:[C.fieldValues["/attributes/@cred6"]&&(0,we.jsxs)("span",{children:["Created: ",Zr(yl(C.fieldValues["/attributes/@cred6"]),"MMM d, yyyy")]}),C.fieldValues["/attributes/@cred7"]&&(0,we.jsxs)("span",{children:["Last used: ",Zr(yl(C.fieldValues["/attributes/@cred7"]),"MMM d, yyyy")]})]})]})]},C.id)})})}),(0,we.jsx)(Ue,{children:n&&(0,we.jsx)(G.div,{initial:{opacity:0}
87,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 bg-black/60 backdrop-blur-sm flex items-center justify-center p-6 z-50",onClick:()=>o(!1),children:(0,we.jsxs)(G.div,{initial:{scale:.95,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.95,opacity:0},onClick:C=>C.stopPropagation(),className:"bg-slate-900 rounded-2xl border border-white/10 p-6 max-w-2xl w-full max-h-[90vh] overflow-y-auto",children:[(0,we.jsx)("h2",{className:"text-2xl font-bold text-white mb-6",children:i?"Edit Credential":"Add New Credential"}),(0,we.jsxs)("form",{onSubmit:h,className:"space-y-4",children:[(0,we.jsxs)("div",{children:[(0,we.jsx)("label",{className:"block text-sm font-medium text-slate-300 mb-2",children:"Credential Name *"}),(0,we.jsx)("input",{type:"text",required:!0,value:f.name,onChange:C=>p({...f,name:C.target.value}),className:"w-full px-4 py-3 rounded-xl bg-white/5 border border-white/10 text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-amber-500/50",placeholder:"e.g., Production API Key"})]}),(0,we.jsxs)("div",{children:[(0,we.jsx)("label",{className:"block text-sm font-medium text-slate-300 mb-2",children:"Integration Name *"}),(0,we.jsx)("input",{type:"text",required:!0,value:f.integrationName,onChange:C=>p({...f,integrationName:C.target.value}),className:"w-full px-4 py-3 rounded-xl bg-white/5 border border-white/10 text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-amber-500/50",placeholder:"e.g., Stripe, SendGrid, AWS"})]}),(0,we.jsxs)("div",{children:[(0,we.jsx)("label",{className:"block text-sm font-medium text-slate-300 mb-2",children:"API Key *"}),(0,we.jsx)("input",{type:"text",required:!0,value:f.apiKey,onChange:C=>p({...f,apiKey:C.target.value}),className:"w-full px-4 py-3 rounded-xl bg-white/5 border border-white/10 text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-amber-500/50 font-mono text-sm",placeholder:"sk_live_..."})]}),(0,we.jsxs)("div",{children:[(0,we.jsx)("label",{className:"block text-sm font-medium text-slate-300 mb-2",children:"API Secret (Optional)"}),(0,we.jsx)("input",{type:"text",value:f.apiSecret,onChange:C=>p({...f,apiSecret:C.target.value}),className:"w-full px-4 py-3 rounded-xl bg-white/5 border border-white/10 text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-amber-500/50 font-mono text-sm",placeholder:"Optional secret key"})]}),(0,we.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,we.jsxs)("div",{children:[(0,we.jsx)("label",{className:"block text-sm font-medium text-slate-300 mb-2",children:"Direction"}),(0,we.jsxs)("select",{value:f.direction,onChange:C=>p({...f,direction:C.target.value}),className:"w-full px-4 py-3 rounded-xl bg-white/5 border border-white/10 text-white focus:outline-none focus:ring-2 focus:ring-amber-500/50",children:[(0,we.jsx)("option",{value:"inbound",children:"Inbound"}),(0,we.jsx)("option",{value:"outbound",children:"Outbound"}),(0,we.jsx)("option",{value:"bidirectional",children:"Bidirectional"})]})]}),(0,we.jsxs)("div",{children:[(0,we.jsx)("label",{className:"block text-sm font-medium text-slate-300 mb-2",children:"Status"}),(0,we.jsxs)("select",{value:f.status,onChange:C=>p({...f,status:C.target.value}),className:"w-full px-4 py-3 rounded-xl bg-white/5 border border-white/10 text-white focus:outline-none focus:ring-2 focus:ring-amber-500/50",children:[(0,we.jsx)("option",{value:"active",children:"Active"}),(0,we.jsx)("option",{value:"revoked",children:"Revoked"}),(0,we.jsx)("option",{value:"expired",children:"Expired"})]})]})]}),(0,we.jsxs)("div",{children:[(0,we.jsx)("label",{className:"block text-sm font-medium text-slate-300 mb-2",children:"Description (Optional)"}),(0,we.jsx)("textarea",{value:f.description,onChange:C=>p({...f,description:C.target.value}),rows:3,className:"w-full px-4 py-3 rounded-xl bg-white/5 border border-white/10 text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-amber-500/50 resize-none",placeholder:"Add notes about this credential..."})]}),(0,we.jsxs)("div",{className:"flex items-center gap-3 pt-4",children:[(0,we.jsx)("button",{type:"submit",className:"flex-1 px-6 py-3 rounded-xl bg-gradient-to-r from-amber-500 to-orange-500 text-white font-medium hover:shadow-lg hover:shadow-amber-500/25 transition-all",children:i?"Update Credential":"Create Credential"}),(0,we.jsx)("button",{type:"button",onClick:()=>o(!1),className:"px-6 py-3 rounded-xl bg-white/5 hover:bg-white/10 text-slate-300 font-medium transition-colors",children:"Cancel"})]})]})]})})})]})})},hq=Rbe;var fo=R(Q());var xs=R(Q());var Te=R(ke()),Obe=[{id:"workspace_sync",label:"Workspace Sync",icon:et,color:"from-cyan-500 to-blue-500"},{id:"external_integration",label:"External Integration",icon:kt,color:"from-purple-500 to-pink-500"}
87,{id:"notification",label:"Notification",icon:hc,color:"from-amber-500 to-orange-500"},{id:"data_sync",label:"Data Sync",icon:Xa,color:"from-green-500 to-emerald-500"}],Dbe=["Taskade Projects","GitHub Issues","Stripe Webhooks","Slack Channels","Google Sheets","Shopify Orders","Twilio SMS","Discord Webhooks","Airtable","Notion","Trello","Asana","Monday.com","ClickUp"],Mbe=["Taskade Tasks","Slack Channels","Email Service","Discord Webhooks","Google Sheets","Notion Pages","Airtable Records","Webhook URL","SMS Service","Push Notifications","Database","API Endpoint"],_be=({isOpen:e,onClose:t,onSave:r})=>{let[a,n]=xs.useState(1),[o,i]=xs.useState(""),[s,l]=xs.useState(""),[c,d]=xs.useState(""),[u,f]=xs.useState(""),[p,m]=xs.useState("one_way"),[h,g]=xs.useState(""),[y,v]=xs.useState(""),[x,S]=xs.useState(!1),b=()=>{n(1),i(""),l(""),d(""),f(""),m("one_way"),g(""),v("")},w=()=>{b(),t()},k=async()=>{if(!o||!s||!c||!u){$.error("Please fill in all required fields");return}S(!0);try{let N=c==="custom"?h:c,E=u==="custom"?y:u;await Ye.post("/api/taskade/projects/YtYB9BVWyhVoi8uv/nodes",{text:o,attributes:{"@tmpl1":o,"@tmpl2":{type:"Select",optionId:s},"@tmpl3":{type:"Select",optionId:"draft"},"@tmpl4":N,"@tmpl5":E,"@tmpl6":{type:"Select",optionId:p}}}),$.success("Template created successfully!"),b(),r(),t()}catch(N){console.error("Failed to save template:",N),$.error("Failed to save template")}finally{S(!1)}},C=()=>{switch(a){case 1:return o.length>0&&s.length>0;case 2:return c.length>0&&(c!=="custom"||h.length>0);case 3:return u.length>0&&(u!=="custom"||y.length>0);default:return!1}};return e?(0,Te.jsx)(Ue,{children:(0,Te.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[(0,Te.jsx)(G.div,{initial:{opacity:0}
87,animate:{opacity:1},exit:{opacity:0},className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:w}),(0,Te.jsxs)(G.div,{initial:{opacity:0,scale:.95,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:20},className:"relative w-full max-w-2xl rounded-2xl backdrop-blur-xl bg-slate-900/95 border border-white/10 shadow-2xl overflow-hidden",children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between p-6 border-b border-white/10",children:[(0,Te.jsxs)("div",{children:[(0,Te.jsx)("h2",{className:"text-2xl font-bold text-white",children:"Create Template"}),(0,Te.jsxs)("p",{className:"text-slate-400 text-sm mt-1",children:["Step ",a," of 4"]})]}),(0,Te.jsx)("button",{onClick:w,className:"p-2 rounded-lg hover:bg-white/10 transition-colors",children:(0,Te.jsx)(Ir,{className:"w-5 h-5 text-slate-400"})})]}),(0,Te.jsx)("div",{className:"h-1 bg-white/5",children:(0,Te.jsx)(G.div,{className:"h-full bg-gradient-to-r from-cyan-500 via-purple-500 to-pink-500",initial:{width:"0%"},animate:{width:`${a/4*100}%`},transition:{duration:.3}})}),(0,Te.jsx)("div",{className:"p-6 min-h-[400px]",children:(0,Te.jsxs)(Ue,{mode:"wait",children:[a===1&&(0,Te.jsxs)(G.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},className:"space-y-6",children:[(0,Te.jsxs)("div",{children:[(0,Te.jsx)("label",{className:"block text-sm font-medium text-slate-300 mb-2",children:"Template Name *"}),(0,Te.jsx)("input",{type:"text",value:o,onChange:N=>i(N.target.value),placeholder:"e.g., Slack to Taskade Sync",className:"w-full px-4 py-3 rounded-lg bg-white/5 border border-white/10 text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-purple-500"})]}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("label",{className:"block text-sm font-medium text-slate-300 mb-3",children:"Category *"}),(0,Te.jsx)("div",{className:"grid grid-cols-2 gap-3",children:Obe.map(N=>{let E=N.icon,L=s===N.id;return(0,Te.jsxs)("button",{onClick:()=>l(N.id),className:U("p-4 rounded-xl border-2 transition-all text-left",L?"border-purple-500 bg-purple-500/10":"border-white/10 bg-white/5 hover:bg-white/10"),children:[(0,Te.jsx)("div",{className:U("w-10 h-10 rounded-lg bg-gradient-to-br flex items-center justify-center mb-2",N.color),children:(0,Te.jsx)(E,{className:"w-5 h-5 text-white"})}),(0,Te.jsx)("div",{className:"text-sm font-medium text-white",children:N.label})]},N.id)})})]})]},"step1"),a===2&&(0,Te.jsxs)(G.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},className:"space-y-6",children:[(0,Te.jsxs)("div",{children:[(0,Te.jsx)("label",{className:"block text-sm font-medium text-slate-300 mb-3",children:"Select Source *"}),(0,Te.jsxs)("div",{className:"grid grid-cols-2 gap-2 max-h-[300px] overflow-y-auto pr-2",children:[Dbe.map(N=>(0,Te.jsx)("button",{onClick:()=>d(N),className:U("px-4 py-2 rounded-lg text-sm transition-all text-left",c===N?"bg-cyan-500/20 text-cyan-400 border border-cyan-500/50":"bg-white/5 text-slate-300 border border-white/10 hover:bg-white/10"),children:N},N)),(0,Te.jsxs)("button",{onClick:()=>d("custom"),className:U("px-4 py-2 rounded-lg text-sm transition-all text-left flex items-center gap-2",c==="custom"?"bg-purple-500/20 text-purple-400 border border-purple-500/50":"bg-white/5 text-slate-300 border border-white/10 hover:bg-white/10"),children:[(0,Te.jsx)(Bt,{className:"w-4 h-4"}),"Custom Source"]})]})]}),c==="custom"&&(0,Te.jsx)(G.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},children:(0,Te.jsx)("input",{type:"text",value:h,onChange:N=>g(N.target.value),placeholder:"Enter custom source name",className:"w-full px-4 py-3 rounded-lg bg-white/5 border border-white/10 text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-purple-500"})})]},"step2"),a===3&&(0,Te.jsxs)(G.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},className:"space-y-6",children:[(0,Te.jsxs)("div",{children:[(0,Te.jsx)("label",{className:"block text-sm font-medium text-slate-300 mb-3",children:"Select Target *"}),(0,Te.jsxs)("div",{className:"grid grid-cols-2 gap-2 max-h-[300px] overflow-y-auto pr-2",children:[Mbe.map(N=>(0,Te.jsx)("button",{onClick:()=>f(N),className:U("px-4 py-2 rounded-lg text-sm transition-all text-left",u===N?"bg-pink-500/20 text-pink-400 border border-pink-500/50":"bg-white/5 text-slate-300 border border-white/10 hover:bg-white/10"),children:N},N)),(0,Te.jsxs)("button",{onClick:()=>f("custom"),className:U("px-4 py-2 rounded-lg text-sm transition-all text-left flex items-center gap-2",u==="custom"?"bg-purple-500/20 text-purple-400 border border-purple-500/50":"bg-white/5 text-slate-300 border border-white/10 hover:bg-white/10"),children:[(0,Te.jsx)(Bt,{className:"w-4 h-4"}),"Custom Target"]})]})]}),u==="custom"&&(0,Te.jsx)(G.div,{initial:{opacity:0,height:0}
87,animate:{opacity:1,height:"auto"},children:(0,Te.jsx)("input",{type:"text",value:y,onChange:N=>v(N.target.value),placeholder:"Enter custom target name",className:"w-full px-4 py-3 rounded-lg bg-white/5 border border-white/10 text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-purple-500"})})]},"step3"),a===4&&(0,Te.jsxs)(G.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},className:"space-y-6",children:[(0,Te.jsxs)("div",{children:[(0,Te.jsx)("label",{className:"block text-sm font-medium text-slate-300 mb-3",children:"Sync Type *"}),(0,Te.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Te.jsxs)("button",{onClick:()=>m("one_way"),className:U("p-6 rounded-xl border-2 transition-all",p==="one_way"?"border-purple-500 bg-purple-500/10":"border-white/10 bg-white/5 hover:bg-white/10"),children:[(0,Te.jsx)(Ka,{className:"w-8 h-8 text-purple-400 mb-3"}),(0,Te.jsx)("div",{className:"text-lg font-semibold text-white mb-1",children:"One-Way"}),(0,Te.jsx)("div",{className:"text-sm text-slate-400",children:"Data flows in one direction"})]}),(0,Te.jsxs)("button",{onClick:()=>m("bidirectional"),className:U("p-6 rounded-xl border-2 transition-all",p==="bidirectional"?"border-cyan-500 bg-cyan-500/10":"border-white/10 bg-white/5 hover:bg-white/10"),children:[(0,Te.jsxs)("div",{className:"flex items-center justify-center mb-3",children:[(0,Te.jsx)(Ka,{className:"w-6 h-6 text-cyan-400"}),(0,Te.jsx)(Ka,{className:"w-6 h-6 text-cyan-400 rotate-180 -ml-2"})]}),(0,Te.jsx)("div",{className:"text-lg font-semibold text-white mb-1",children:"Bidirectional"}),(0,Te.jsx)("div",{className:"text-sm text-slate-400",children:"Data syncs both ways"})]})]})]}),(0,Te.jsxs)("div",{className:"p-6 rounded-xl bg-white/5 border border-white/10",children:[(0,Te.jsx)("div",{className:"text-sm font-medium text-slate-300 mb-4",children:"Preview"}),(0,Te.jsxs)("div",{className:"space-y-3",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Te.jsx)("span",{className:"text-slate-400 text-sm",children:"Name:"}),(0,Te.jsx)("span",{className:"text-white font-medium",children:o})]}),(0,Te.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Te.jsx)("span",{className:"text-slate-400 text-sm",children:"Category:"}),(0,Te.jsx)("span",{className:"text-white capitalize",children:s.replace("_"," ")})]}),(0,Te.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Te.jsx)("span",{className:"text-slate-400 text-sm",children:"Flow:"}),(0,Te.jsx)("span",{className:"text-cyan-400",children:c==="custom"?h:c}),(0,Te.jsx)(Ka,{className:U("w-4 h-4",p==="bidirectional"?"text-cyan-400":"text-purple-400")}),(0,Te.jsx)("span",{className:"text-pink-400",children:u==="custom"?y:u})]})]})]})]},"step4")]})}),(0,Te.jsxs)("div",{className:"flex items-center justify-between p-6 border-t border-white/10",children:[(0,Te.jsx)("button",{onClick:()=>n(Math.max(1,a-1)),disabled:a===1,className:"px-4 py-2 rounded-lg bg-white/5 hover:bg-white/10 text-white transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:"Back"}),a<4?(0,Te.jsx)("button",{onClick:()=>n(a+1),disabled:!C(),className:"px-6 py-2 rounded-lg bg-gradient-to-r from-cyan-500 via-purple-500 to-pink-500 text-white font-medium hover:opacity-90 transition-opacity disabled:opacity-50 disabled:cursor-not-allowed",children:"Next"}):(0,Te.jsxs)("button",{onClick:k,disabled:x,className:"flex items-center gap-2 px-6 py-2 rounded-lg bg-gradient-to-r from-cyan-500 via-purple-500 to-pink-500 text-white font-medium hover:opacity-90 transition-opacity disabled:opacity-50",children:[(0,Te.jsx)(Vu,{className:"w-4 h-4"}),x?"Saving...":"Save Template"]})]})]})]})}):null},gq=_be;var Ju=R(Q());var le=R(ke()),Fbe=({isOpen:e,template:t,onClose:r,onActivate:a})=>{let[n,o]=Ju.useState(1),[i,s]=Ju.useState({apiKey:"",webhookUrl:"",frequency:"realtime",retryAttempts:"3",timeout:"30"}),[l,c]=Ju.useState("idle"),[d,u]=Ju.useState(!1),f=()=>{o(1),s({apiKey:"",webhookUrl:"",frequency:"realtime",retryAttempts:"3",timeout:"30"}),c("idle")},p=()=>{f(),r()},m=async()=>{c("testing"),await new Promise(w=>setTimeout(w,2e3)),c("success"),$.success("Configuration test passed!")},h=async()=>{u(!0);try{await new Promise(w=>setTimeout(w,1500)),$.success("Template activated successfully!"),f(),a(),r()}catch{$.error("Failed to activate template")}finally{u(!1)}},g=()=>{switch(n){case 1:return!0;case 2:return i.apiKey.length>0&&i.webhookUrl.length>0;case 3:return l==="success";default:return!1}};if(!e||!t)return null;let y=t.fieldValues?.["/attributes"]||{},v=t.fieldValues?.["/text"]||"Template",x=y["@tmpl4"],S=y["@tmpl5"],b=y["@tmpl2"]?.optionId||y["@tmpl2"];return(0,le.jsx)(Ue,{children:(0,le.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[(0,le.jsx)(G.div,{initial:{opacity:0}
87,animate:{opacity:1},exit:{opacity:0},className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:p}),(0,le.jsxs)(G.div,{initial:{opacity:0,scale:.95,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:20},className:"relative w-full max-w-2xl rounded-2xl backdrop-blur-xl bg-slate-900/95 border border-white/10 shadow-2xl overflow-hidden",children:[(0,le.jsxs)("div",{className:"flex items-center justify-between p-6 border-b border-white/10",children:[(0,le.jsxs)("div",{children:[(0,le.jsx)("h2",{className:"text-2xl font-bold text-white",children:"Activate Template"}),(0,le.jsx)("p",{className:"text-slate-400 text-sm mt-1",children:v})]}),(0,le.jsx)("button",{onClick:p,className:"p-2 rounded-lg hover:bg-white/10 transition-colors",children:(0,le.jsx)(Ir,{className:"w-5 h-5 text-slate-400"})})]}),(0,le.jsx)("div",{className:"flex items-center justify-between px-6 py-4 bg-white/5",children:[{num:1,label:"Review",icon:Oa},{num:2,label:"Configure",icon:Oa},{num:3,label:"Test",icon:ps},{num:4,label:"Activate",icon:fs}].map((w,k)=>{let C=w.icon,N=n===w.num,E=n>w.num;return(0,le.jsxs)(Ju.Fragment,{children:[(0,le.jsxs)("div",{className:"flex flex-col items-center gap-2",children:[(0,le.jsx)("div",{className:U("w-10 h-10 rounded-full flex items-center justify-center transition-all",E?"bg-green-500":N?"bg-gradient-to-r from-cyan-500 to-purple-500":"bg-white/10"),children:E?(0,le.jsx)(mr,{className:"w-5 h-5 text-white"}):(0,le.jsx)(C,{className:"w-5 h-5 text-white"})}),(0,le.jsx)("span",{className:U("text-xs font-medium",N?"text-white":"text-slate-400"),children:w.label})]}),k<3&&(0,le.jsx)("div",{className:U("flex-1 h-0.5 mx-2",n>w.num?"bg-green-500":"bg-white/10")})]},w.num)})}),(0,le.jsx)("div",{className:"p-6 min-h-[400px]",children:(0,le.jsxs)(Ue,{mode:"wait",children:[n===1&&(0,le.jsxs)(G.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},className:"space-y-6",children:[(0,le.jsxs)("div",{className:"p-6 rounded-xl bg-gradient-to-br from-cyan-500/10 to-purple-500/10 border border-cyan-500/20",children:[(0,le.jsx)("h3",{className:"text-lg font-semibold text-white mb-4",children:"Template Overview"}),(0,le.jsxs)("div",{className:"space-y-3",children:[(0,le.jsxs)("div",{className:"flex items-center justify-between",children:[(0,le.jsx)("span",{className:"text-slate-400",children:"Name:"}),(0,le.jsx)("span",{className:"text-white font-medium",children:v})]}),(0,le.jsxs)("div",{className:"flex items-center justify-between",children:[(0,le.jsx)("span",{className:"text-slate-400",children:"Category:"}),(0,le.jsx)("span",{className:"text-white capitalize",children:b?.replace("_"," ")})]}),(0,le.jsxs)("div",{className:"flex items-center justify-between",children:[(0,le.jsx)("span",{className:"text-slate-400",children:"Source:"}),(0,le.jsx)("span",{className:"text-cyan-400",children:x})]}),(0,le.jsxs)("div",{className:"flex items-center justify-between",children:[(0,le.jsx)("span",{className:"text-slate-400",children:"Target:"}),(0,le.jsx)("span",{className:"text-pink-400",children:S})]})]})]}),(0,le.jsxs)("div",{className:"space-y-3",children:[(0,le.jsx)("h4",{className:"text-sm font-medium text-slate-300",children:"What happens when activated:"}),(0,le.jsx)("div",{className:"space-y-2",children:["Creates a new automation workflow","Configures source and target connections","Sets up real-time data synchronization","Enables monitoring and logging"].map((w,k)=>(0,le.jsxs)("div",{className:"flex items-start gap-3",children:[(0,le.jsx)(mr,{className:"w-5 h-5 text-green-400 flex-shrink-0 mt-0.5"}),(0,le.jsx)("span",{className:"text-slate-300 text-sm",children:w})]},k))})]})]},"step1"),n===2&&(0,le.jsxs)(G.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},className:"space-y-6",children:[(0,le.jsxs)("div",{children:[(0,le.jsx)("label",{className:"block text-sm font-medium text-slate-300 mb-2",children:"API Key / Authentication *"}),(0,le.jsx)("input",{type:"password",value:i.apiKey,onChange:w=>s({...i,apiKey:w.target.value}),placeholder:"Enter your API key",className:"w-full px-4 py-3 rounded-lg bg-white/5 border border-white/10 text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-purple-500"}),(0,le.jsxs)("p",{className:"text-xs text-slate-400 mt-1",children:["Required for ",x," authentication"]})]}),(0,le.jsxs)("div",{children:[(0,le.jsx)("label",{className:"block text-sm font-medium text-slate-300 mb-2",children:"Webhook URL *"}),(0,le.jsx)("input",{type:"url",value:i.webhookUrl,onChange:w=>s({...i,webhookUrl:w.target.value}),placeholder:"https://your-webhook-url.com/endpoint",className:"w-full px-4 py-3 rounded-lg bg-white/5 border border-white/10 text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-purple-500"}),(0,le.jsxs)("p",{className:"text-xs text-slate-400 mt-1",children:["Endpoint for ",S," integration"]})]}),(0,le.jsxs)("div",{className:"grid grid-cols-3 gap-4",children:[(0,le.jsxs)("div",{children:[(0,le.jsx)("label",{className:"block text-sm font-medium text-slate-300 mb-2",children:"Frequency"}),(0,le.jsxs)("select",{value:i.frequency,onChange:w=>s({...i,frequency:w.target.value}),className:"w-full px-4 py-3 rounded-lg bg-white/5 border border-white/10 text-white focus:outline-none focus:ring-2 focus:ring-purple-500",children:[(0,le.jsx)("option",{value:"realtime",children:"Real-time"}),(0,le.jsx)("option",{value:"5min",children:"Every 5 min"}),(0,le.jsx)("option",{value:"15min",children:"Every 15 min"}),(0,le.jsx)("option",{value:"hourly",children:"Hourly"})]})]}),(0,le.jsxs)("div",{children:[(0,le.jsx)("label",{className:"block text-sm font-medium text-slate-300 mb-2",children:"Retry Attempts"}),(0,le.jsx)("input",{type:"number",value:i.retryAttempts,onChange:w=>s({...i,retryAttempts:w.target.value}),min:"1",max:"10",className:"w-full px-4 py-3 rounded-lg bg-white/5 border border-white/10 text-white focus:outline-none focus:ring-2 focus:ring-purple-500"})]}),(0,le.jsxs)("div",{children:[(0,le.jsx)("label",{className:"block text-sm font-medium text-slate-300 mb-2",children:"Timeout (s)"}),(0,le.jsx)("input",{type:"number",value:i.timeout,onChange:w=>s({...i,timeout:w.target.value}),min:"5",max:"300",className:"w-full px-4 py-3 rounded-lg bg-white/5 border border-white/10 text-white focus:outline-none focus:ring-2 focus:ring-purple-500"})]})]}),(0,le.jsxs)("div",{className:"p-4 rounded-lg bg-amber-500/10 border border-amber-500/20 flex items-start gap-3",children:[(0,le.jsx)(Dt,{className:"w-5 h-5 text-amber-400 flex-shrink-0 mt-0.5"}),(0,le.jsx)("div",{className:"text-sm text-amber-200",children:"Make sure you have the necessary permissions and credentials for both source and target systems."})]})]},"step2"),n===3&&(0,le.jsx)(G.div,{initial:{opacity:0,x:20}
87,animate:{opacity:1,x:0},exit:{opacity:0,x:-20},className:"space-y-6",children:(0,le.jsxs)("div",{className:"text-center py-8",children:[l==="idle"&&(0,le.jsxs)("div",{className:"space-y-4",children:[(0,le.jsx)(ps,{className:"w-16 h-16 text-slate-400 mx-auto"}),(0,le.jsx)("h3",{className:"text-xl font-semibold text-white",children:"Ready to Test"}),(0,le.jsx)("p",{className:"text-slate-400",children:"We'll verify your configuration and test the connection"}),(0,le.jsx)("button",{onClick:m,className:"px-6 py-3 rounded-lg bg-gradient-to-r from-cyan-500 to-purple-500 text-white font-medium hover:opacity-90 transition-opacity",children:"Run Test"})]}),l==="testing"&&(0,le.jsxs)("div",{className:"space-y-4",children:[(0,le.jsxs)("div",{className:"relative w-16 h-16 mx-auto",children:[(0,le.jsx)("div",{className:"absolute inset-0 rounded-full border-4 border-purple-500/20"}),(0,le.jsx)("div",{className:"absolute inset-0 rounded-full border-4 border-purple-500 border-t-transparent animate-spin"})]}),(0,le.jsx)("h3",{className:"text-xl font-semibold text-white",children:"Testing Configuration"}),(0,le.jsxs)("div",{className:"space-y-2 text-sm text-slate-400",children:[(0,le.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,le.jsx)("div",{className:"w-2 h-2 rounded-full bg-cyan-400 animate-pulse"}),"Verifying API credentials..."]}),(0,le.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,le.jsx)("div",{className:"w-2 h-2 rounded-full bg-purple-400 animate-pulse"}),"Testing webhook connection..."]}),(0,le.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,le.jsx)("div",{className:"w-2 h-2 rounded-full bg-pink-400 animate-pulse"}),"Validating permissions..."]})]})]}),l==="success"&&(0,le.jsxs)(G.div,{initial:{scale:.9,opacity:0},animate:{scale:1,opacity:1},className:"space-y-4",children:[(0,le.jsx)("div",{className:"w-16 h-16 mx-auto rounded-full bg-green-500/20 flex items-center justify-center",children:(0,le.jsx)(mr,{className:"w-8 h-8 text-green-400"})}),(0,le.jsx)("h3",{className:"text-xl font-semibold text-white",children:"Test Successful!"}),(0,le.jsx)("p",{className:"text-slate-400",children:"All checks passed. Your template is ready to activate."}),(0,le.jsx)("div",{className:"grid grid-cols-3 gap-4 mt-6",children:[{label:"API Connection",status:"Verified"},{label:"Webhook",status:"Active"},{label:"Permissions",status:"Valid"}].map(w=>(0,le.jsxs)("div",{className:"p-3 rounded-lg bg-white/5 border border-white/10",children:[(0,le.jsx)("div",{className:"text-xs text-slate-400 mb-1",children:w.label}),(0,le.jsx)("div",{className:"text-sm font-medium text-green-400",children:w.status})]},w.label))})]})]})},"step3"),n===4&&(0,le.jsx)(G.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},className:"space-y-6",children:(0,le.jsxs)("div",{className:"text-center py-8",children:[(0,le.jsx)(fs,{className:"w-16 h-16 text-purple-400 mx-auto mb-4"}),(0,le.jsx)("h3",{className:"text-2xl font-bold text-white mb-2",children:"Ready to Launch"}),(0,le.jsx)("p",{className:"text-slate-400 mb-6",children:"Your template is configured and tested. Click activate to go live."}),(0,le.jsxs)("div",{className:"p-6 rounded-xl bg-gradient-to-br from-cyan-500/10 to-purple-500/10 border border-cyan-500/20 text-left space-y-3",children:[(0,le.jsx)("h4",{className:"text-sm font-medium text-slate-300",children:"Final Configuration:"}),(0,le.jsxs)("div",{className:"space-y-2 text-sm",children:[(0,le.jsxs)("div",{className:"flex justify-between",children:[(0,le.jsx)("span",{className:"text-slate-400",children:"Template:"}),(0,le.jsx)("span",{className:"text-white",children:v})]}),(0,le.jsxs)("div",{className:"flex justify-between",children:[(0,le.jsx)("span",{className:"text-slate-400",children:"Frequency:"}),(0,le.jsx)("span",{className:"text-white capitalize",children:i.frequency})]}),(0,le.jsxs)("div",{className:"flex justify-between",children:[(0,le.jsx)("span",{className:"text-slate-400",children:"Retry Attempts:"}),(0,le.jsx)("span",{className:"text-white",children:i.retryAttempts})]}),(0,le.jsxs)("div",{className:"flex justify-between",children:[(0,le.jsx)("span",{className:"text-slate-400",children:"Timeout:"}),(0,le.jsxs)("span",{className:"text-white",children:[i.timeout,"s"]})]})]})]}),(0,le.jsxs)("button",{onClick:h,disabled:d,className:"mt-6 w-full flex items-center justify-center gap-2 px-6 py-3 rounded-lg bg-gradient-to-r from-cyan-500 via-purple-500 to-pink-500 text-white font-medium hover:opacity-90 transition-opacity disabled:opacity-50",children:[(0,le.jsx)(Nr,{className:"w-5 h-5"}),d?"Activating...":"Activate Template"]})]})},"step4")]})}),n<4&&(0,le.jsxs)("div",{className:"flex items-center justify-between p-6 border-t border-white/10",children:[(0,le.jsx)("button",{onClick:()=>o(Math.max(1,n-1)),disabled:n===1,className:"px-4 py-2 rounded-lg bg-white/5 hover:bg-white/10 text-white transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:"Back"}),(0,le.jsx)("button",{onClick:()=>o(n+1),disabled:!g(),className:"px-6 py-2 rounded-lg bg-gradient-to-r from-cyan-500 via-purple-500 to-pink-500 text-white font-medium hover:opacity-90 transition-opacity disabled:opacity-50 disabled:cursor-not-allowed",children:"Next"})]})]})]})})},vq=Fbe;var Ve=R(ke()),jbe=()=>{let[e,t]=fo.useState([]),[r,a]=fo.useState(!0),[n,o]=fo.useState(!1),[i,s]=fo.useState(!1),[l,c]=fo.useState(null),[d,u]=fo.useState(""),[f,p]=fo.useState("all"),[m,h]=fo.useState("all");fo.useEffect(()=>{g()},[]);let g=async()=>{try{let S=await Ye.get("/api/taskade/projects/YtYB9BVWyhVoi8uv/nodes");t(S.data.payload.nodes)}catch(S){console.error("Failed to load templates:",S)}finally{a(!1)}},y=S=>{switch(S){case"workspace_sync":return"from-cyan-500 to-blue-500";case"external_integration":return"from-purple-500 to-pink-500";case"notification":return"from-amber-500 to-orange-500";case"data_sync":return"from-green-500 to-emerald-500";default:return"from-slate-500 to-slate-600"}},v=S=>{c(S),s(!0)},x=fo.useMemo(()=>e.filter(S=>{let b=S.fieldValues?.["/attributes"]||{},w=b["@tmpl2"]?.optionId||b["@tmpl2"],k=b["@tmpl3"]?.optionId||b["@tmpl3"];return(S.fieldValues?.["/text"]||"").toLowerCase().includes(d.toLowerCase())&&(f==="all"||w===f)&&(m==="all"||k===m)}),[e,d,f,m]);return r?(0,Ve.jsx)($e,{children:(0,Ve.jsx)("div",{className:"flex items-center justify-center h-96",children:(0,Ve.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-t-2 border-b-2 border-purple-500"})})}):(0,Ve.jsxs)($e,{children:[(0,Ve.jsxs)("div",{className:"space-y-6",children:[(0,Ve.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ve.jsxs)("div",{children:[(0,Ve.jsx)("h1",{className:"text-3xl font-bold text-white",children:"Sync Templates"}),(0,Ve.jsx)("p",{className:"text-slate-400 mt-2",children:"Pre-built workflow templates for common sce
87narios"})]}),(0,Ve.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Ve.jsxs)("button",{onClick:g,disabled:r,className:"flex items-center gap-2 px-4 py-2 rounded-lg bg-white/5 hover:bg-white/10 text-white transition-colors disabled:opacity-50",children:[(0,Ve.jsx)(hn,{className:U("w-4 h-4",r&&"animate-spin")}),"Refresh"]}),(0,Ve.jsxs)("button",{onClick:()=>o(!0),className:"flex items-center gap-2 px-4 py-2 rounded-lg bg-gradient-to-r from-cyan-500 via-purple-500 to-pink-500 text-white font-medium hover:opacity-90 transition-opacity",children:[(0,Ve.jsx)(Bt,{className:"w-4 h-4"}),"Create Template"]})]})]}),(0,Ve.jsxs)("div",{className:"flex flex-col sm:flex-row gap-4",children:[(0,Ve.jsxs)("div",{className:"flex-1 relative",children:[(0,Ve.jsx)(zo,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-slate-400"}),(0,Ve.jsx)("input",{type:"text",value:d,onChange:S=>u(S.target.value),placeholder:"Search templates...",className:"w-full pl-10 pr-4 py-3 rounded-lg bg-white/5 border border-white/10 text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-purple-500"})]}),(0,Ve.jsxs)("div",{className:"flex gap-3",children:[(0,Ve.jsxs)("div",{className:"relative",children:[(0,Ve.jsx)(Bn,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-slate-400"}),(0,Ve.jsxs)("select",{value:f,onChange:S=>p(S.target.value),className:"pl-10 pr-8 py-3 rounded-lg bg-white/5 border border-white/10 text-white focus:outline-none focus:ring-2 focus:ring-purple-500 appearance-none cursor-pointer",children:[(0,Ve.jsx)("option",{value:"all",children:"All Categories"}),(0,Ve.jsx)("option",{value:"workspace_sync",children:"Workspace Sync"}),(0,Ve.jsx)("option",{value:"external_integration",children:"External Integration"}),(0,Ve.jsx)("option",{value:"notification",children:"Notification"}),(0,Ve.jsx)("option",{value:"data_sync",children:"Data Sync"})]})]}),(0,Ve.jsxs)("select",{value:m,onChange:S=>h(S.target.value),className:"px-4 py-3 rounded-lg bg-white/5 border border-white/10 text-white focus:outline-none focus:ring-2 focus:ring-purple-500 appearance-none cursor-pointer",children:[(0,Ve.jsx)("option",{value:"all",children:"All Status"}),(0,Ve.jsx)("option",{value:"active",children:"Active"}),(0,Ve.jsx)("option",{value:"draft",children:"Draft"}),(0,Ve.jsx)("option",{value:"inactive",children:"Inactive"})]})]})]}),(0,Ve.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,Ve.jsxs)("span",{className:"text-slate-400",children:["Showing ",x.length," of ",e.length," templates"]}),(d||f!=="all"||m!=="all")&&(0,Ve.jsx)("button",{onClick:()=>{u(""),p("all"),h("all")},className:"text-purple-400 hover:text-purple-300 transition-colors",children:"Clear filters"})]}),x.length===0?(0,Ve.jsxs)("div",{className:"col-span-2 text-center py-12",children:[(0,Ve.jsx)(jr,{className:"w-16 h-16 text-slate-600 mx-auto mb-4"}),(0,Ve.jsx)("p",{className:"text-slate-400 text-lg",children:e.length===0?"No templates available":"No templates match your filters"}),e.length===0&&(0,Ve.jsx)("button",{onClick:()=>o(!0),className:"mt-4 px-6 py-2 rounded-lg bg-gradient-to-r from-cyan-500 to-purple-500 text-white font-medium hover:opacity-90 transition-opacity",children:"Create Your First Template"})]}):(0,Ve.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:x.map((S,b)=>{let w=S.fieldValues?.["/attributes"]||{},k=w["@tmpl2"]?.optionId||w["@tmpl2"],C=w["@tmpl3"]?.optionId||w["@tmpl3"],N=w["@tmpl4"],E=w["@tmpl5"],L=w["@tmpl6"]?.optionId||w["@tmpl6"],T=S.fieldValues?.["/text"]||"Untitled Template";return(0,Ve.jsxs)(G.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{delay:b*.1},className:"rounded-2xl backdrop-blur-xl bg-white/5 border border-white/10 p-6 hover:bg-white/10 transition-colors",children:[(0,Ve.jsxs)("div",{className:"flex items-start gap-4 mb-4",children:[(0,Ve.jsx)("div",{className:U("p-3 rounded-xl bg-gradient-to-br",y(k)),children:(0,Ve.jsx)(jr,{className:"w-6 h-6 text-white"})}),(0,Ve.jsxs)("div",{className:"flex-1",children:[(0,Ve.jsx)("h3",{className:"text-lg font-semibold text-white mb-1",children:T}),(0,Ve.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ve.jsx)("span",{className:"text-xs px-2 py-1 rounded bg-white/10 text-slate-300 capitalize",children:k?.replace("_"," ")||"General"}),(0,Ve.jsx)("span",{className:U("text-xs px-2 py-1 rounded capitalize",C==="active"?"bg-green-500/20 text-green-400":"bg-slate-500/20 text-slate-400"),children:C||"draft"})]})]})]}),(0,Ve.jsxs)("div",{className:"space-y-3 mb-4",children:[(0,Ve.jsxs)("div",{className:"flex items-center gap-3 text-sm",children:[(0,Ve.jsx)("span",{className:"text-slate-400",children:"From:"}),(0,Ve.jsx)("span",{className:"text-white",children:N||"Source"})]}),(0,Ve.jsx)("div",{className:"flex items-center justify-center",children:(0,Ve.jsx)(Ka,{className:U("w-5 h-5",L==="bidirectional"?"text-cyan-400":"text-purple-400")})}),(0,Ve.jsxs)("div",{className:"flex items-center gap-3 text-sm",children:[(0,Ve.jsx)("span",{className:"text-slate-400",children:"To:"}),(0,Ve.jsx)("span",{className:"text-white",children:E||"Target"})]})]}),(0,Ve.jsxs)("button",{onClick:()=>v(S),className:"w-full flex items-center justify-center gap-2 px-4 py-2 rounded-lg bg-gradient-to-r from-cyan-500 via-purple-500 to-pink-500 text-white font-medium hover:opacity-90 transition-opacity",children:[(0,Ve.jsx)(Nr,{className:"w-4 h-4"}),"Activate Template"]})]},S.id)})})]}),(0,Ve.jsx)(gq,{isOpen:n,onClose:()=>o(!1),onSave:g}),(0,Ve.jsx)(vq,{isOpen:i,template:l,onClose:()=>{s(!1),c(null)},onActivate:g})]})},yq=jbe;var Un=R(Q());var F=R(ke()),Bbe=()=>{let[e,t]=Un.useState([]),[r,a]=Un.useState(!0),[n,o]=Un.useState(!1),[i,s]=Un.useState(null),[l,c]=Un.useState(!1),[d,u]=Un.useState(null),[f,p]=Un.useState("users"),[m,h]=Un.useState(new Set),[g,y]=Un.useState({username:"",password:"",role:"Manager",status:"active",permissions:[]}),v=[{value:"Administrator",label:"Administrator",color:"from-red-500 to-orange-500"},{value:"Security Officer",label:"Security Officer",color:"from-cyan-500 to-blue-500"},{value:"Manager",label:"Manager",color:"from-purple-500 to-pink-500"},{value:"Operator",label:"Operator",color:"from-green-500 to-emerald-500"},{value:"Auditor",label:"Auditor",color:"from-yellow-500 to-amber-500"}],x=[{id:"delete_events",label:"Delete Events",description:"Remove event log entries",category:"Events",icon:Kt,color:"red"},{id:"manage_connections",label:"Manage Connections",description:"Create, edit, delete webhook connections",category:"Webhooks",icon:Ya,color:"cyan"},{id:"view_logs",label:"View Logs",description:"Access event and API logs",category:"Monitoring",icon:jt,color:"slate"},{id:"manage_users",label:"Manage Users",description:"Add, edit, remove authorized users",category:"Security",icon:hs,color:"purple"},{id:"manage_credentials",label:"Manage Credentials",description:"Create and modify API credentials",category:"Security",icon:Dr,color:"amber"}
87,{id:"view_analytics",label:"View Analytics",description:"Access analytics and insights",category:"Monitoring",icon:nr,color:"green"},{id:"export_data",label:"Export Data",description:"Download logs and reports",category:"Data",icon:jt,color:"blue"},{id:"manage_security",label:"Manage Security",description:"Configure security settings",category:"Security",icon:Qe,color:"orange"},{id:"manage_templates",label:"Manage Templates",description:"Create and edit templates",category:"Configuration",icon:jr,color:"pink"},{id:"manage_rate_limits",label:"Manage Rate Limits",description:"Configure execution limits",category:"Configuration",icon:vc,color:"indigo"},{id:"test_api",label:"Test API",description:"Use API playground",category:"Development",icon:et,color:"yellow"},{id:"view_monitoring",label:"View Monitoring",description:"Access system health dashboard",category:"Monitoring",icon:Br,color:"teal"}],S={Administrator:{name:"Full Access",description:"Complete system access with all permissions",permissions:x.map(P=>P.id)},"Security Officer":{name:"Security Management",description:"Manage users, credentials, and security settings",permissions:["manage_users","manage_credentials","manage_security","view_logs","view_monitoring"]},Manager:{name:"Operations Manager",description:"Manage connections, templates, and view analytics",permissions:["manage_connections","manage_templates","view_analytics","view_logs","export_data","view_monitoring"]},Operator:{name:"Standard Operations",description:"Basic operational access",permissions:["manage_connections","view_logs","test_api"]},Auditor:{name:"Read-Only Access",description:"View-only access for compliance and auditing",permissions:["view_logs","view_analytics","export_data","view_monitoring"]}},b=Un.useMemo(()=>Array.from(new Set(x.map(P=>P.category))),[x]);Un.useEffect(()=>{w()},[]);let w=async()=>{try{let P=await Ye.get(`/api/taskade/projects/${wt.projects.userManagement}/nodes`);
87if(P.data?.ok&&P.data?.payload?.nodes){let j=P.data.payload.nodes.map(W=>{let ee=W.fieldValues["/attributes/@usr07"]||"",oe=ee?ee.split(",").map(he=>he.trim()).filter(Boolean):[];return{id:W.id,username:W.fieldValues["/text"]||"",password:W.fieldValues["/attributes/@usr02"]||"",role:W.fieldValues["/attributes/@usr03"]==="admin"?"Administrator":W.fieldValues["/attributes/@usr03"]==="security"?"Security Officer":W.fieldValues["/attributes/@usr03"]==="manager"?"Manager":W.fieldValues["/attributes/@usr03"]==="operator"?"Operator":W.fieldValues["/attributes/@usr03"]==="auditor"?"Auditor":"Manager",status:W.fieldValues["/attributes/@usr04"]||"active",createdAt:W.fieldValues["/attributes/@usr05"]||new Date().toISOString(),lastLogin:W.fieldValues["/attributes/@usr06"],permissions:oe}});t(j)}else t([])}catch(P){console.error("Failed to load users:",P),t([])}finally{a(!1)}},k=P=>{let O=S[P];O&&(y(j=>({...j,permissions:O.permissions})),$.success(`Applied ${O.name} template`))},C=()=>{s(null);let P="Manager",O=S[P];y({username:"",password:"",role:P,status:"active",permissions:O.permissions}),o(!0),c(!1)},N=P=>{let O=e.find(ee=>ee.id===P.id)||P,j=[...O.permissions];console.log("\u{1F4CB} Permissions being set in formData:",j),console.log("\u{1F3AF} Available permission IDs:",x.map(ee=>ee.id)),j.forEach(ee=>{let oe=x.find(he=>he.id===ee);console.log(` ${ee}: ${oe?"\u2713 exists":"\u2717 NOT FOUND"}`)}),s(O);let W={username:O.username,password:O.password,role:O.role,status:O.status,permissions:j};console.log("\u{1F3AF} Setting formData to:",W),y(W),o(!0),c(!1)},E=()=>{o(!1),s(null),y({username:"",password:"",role:"Manager",status:"active",permissions:[]}),c(!1)},L=()=>{let P="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*",O="";for(let j=0;j<12;j++)O+=P.charAt(Math.floor(Math.random()*P.length));y({...g,password:O}),$.success("Secure password generated")},T=P=>{let j=g.permissions.includes(P)?g.permissions.filter(W=>W!==P):[...g.permissions,P];y({...g,permissions:j})},q=async P=>{if(P.preventDefault(),!g.username.trim()||!g.password.trim()){$.error("Username and password are required");return}try{let O=g.permissions.join(",");if(i){let W=g.role==="Administrator"?"admin":g.role==="Security Officer"?"security":g.role==="Manager"?"manager":g.role==="Operator"?"operator":g.role==="Auditor"?"auditor":"manager";await Ye.patch(`/api/taskade/projects/${wt.projects.userManagement}/nodes/${i.id}`,{"/text":g.username,"/attributes/@usr01":g.username,"/attributes/@usr02":g.password,"/attributes/@usr03":W,"/attributes/@usr04":g.status,"/attributes/@usr06":new Date().toISOString(),"/attributes/@usr07":O});let ee=i.permissions,oe=g.permissions,he=oe.filter(Oe=>!ee.includes(Oe)),Le=ee.filter(Oe=>!oe.includes(Oe)),ae="User updated successfully";if(he.length>0||Le.length>0){let Oe=[];he.length>0&&Oe.push(`+${he.length} permission${he.length>1?"s":""}`),Le.length>0&&Oe.push(`-${Le.length} permission${Le.length>1?"s":""}`),ae+=` (${Oe.join(", ")})`}$.success(ae)}else{let W=g.role==="Administrator"?"admin":g.role==="Security Officer"?"security":g.role==="Manager"?"manager":g.role==="Operator"?"operator":g.role==="Auditor"?"auditor":"manager";await Ye.post(`/api/taskade/projects/${wt.projects.userManagement}/nodes`,{"/text":g.username,"/attributes/@usr01":g.username,"/attributes/@usr02":g.password,"/attributes/@usr03":W,"/attributes/@usr04":g.status,"/attributes/@usr05":new Date().toISOString(),"/attributes/@usr06":new Date().toISOString(),"/attributes/@usr07":O}),$.success("User created successfully")}let j=i?.id;console.log("\u2705 Save complete, closing dialog and reloading users..."),E(),await w(),console.log("\u{1F504} Users reloaded after save"),j&&(h(W=>new Set(W).add(j)),console.log("\u{1F4CC} Marked user as recently updated:",j),setTimeout(()=>{h(W=>{let ee=new Set(W);return ee.delete(j),ee})},3e3))}catch(O){console.error("Failed to save user:",O),$.error(O.response?.data?.message||"Failed to save user")}},_=async P=>{if(confirm(`Are you sure you want to delete user "${P.username}"? This action cannot be undone.`))try{await Ye.delete(`/api/taskade/projects/${wt.projects.userManagement}/nodes/${P.id}`),$.success("User deleted successfully"),await w()}catch(O){console.error("Failed to delete user:",O),$.error(O.response?.data?.message||"Failed to delete user")}},B=async P=>{let O=P.status==="active"?"inactive":"active";try{await Ye.patch(`/api/taskade/projects/${wt.projects.userManagement}/nodes/${P.id}`,{"/attributes/@usr04":O}),$.success(`User ${O==="active"?"activated":"deactivated"}`),await w()}catch(j){console.error("Failed to update user status:",j),$.error("Failed to update user status")}},I=(P,O)=>{navigator.clipboard.writeText(P),u(O),$.success("Copied to clipboard"),setTimeout(()=>u(null),2e3)},A=P=>v.find(j=>j.value===P)?.color||"from-slate-500 to-slate-600",M=P=>{switch(P){case"active":return"bg-green-500/20 text-green-400 border-green-500/30";case"inactive":return"bg-slate-500/20 text-slate-400 border-slate-500/30";case"suspended":return"bg-red-500/20 text-red-400 border-red-500/30";default:return"bg-slate-500/20 text-slate-400 border-slate-500/30"}},D=P=>x.find(O=>O.id===P),V=P=>({red:"bg-red-500/20 text-red-400 border-red-500/30",cyan:"bg-cyan-500/20 text-cyan-400 border-cyan-500/30",slate:"bg-slate-500/20 text-slate-400 border-slate-500/30",purple:"bg-purple-500/20 text-purple-400 border-purple-500/30",amber:"bg-amber-500/20 text-amber-400 border-amber-500/30",green:"bg-green-500/20 text-green-400 border-green-500/30",blue:"bg-blue-500/20 text-blue-400 border-blue-500/30",orange:"bg-orange-500/20 text-orange-400 border-orange-500/30",pink:"bg-pink-500/20 text-pink-400 border-pink-500/30",indigo:"bg-indigo-500/20 text-indigo-400 border-indigo-500/30",yellow:"bg-yellow-500/20 text-yellow-400 border-yellow-500/30",teal:"bg-teal-500/20 text-teal-400 border-teal-500/30"})[P]||"bg-slate-500/20 text-slate-400 border-slate-500/30";return r?(0,F.jsx)($e,{children:(0,F.jsx)("div",{className:"flex items-center justify-center h-96",children:(0,F.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-t-2 border-b-2 border-cyan-500"})})}):(0,F.jsxs)($e,{children:[(0,F.jsxs)("div",{className:"space-y-6",children:[(0,F.jsxs)("div",{className:"flex items-center justify-between",children:[(0,F.jsxs)("div",{children:[(0,F.jsx)("h1",{className:"text-3xl font-bold text-white",children:"Security Management"}),(0,F.jsx)("p",{className:"text-slate-400 mt-2",children:"Manage authorized users and access control"})]}),(0,F.jsxs)("div",{className:"flex items-center gap-3",children:[(0,F.jsxs)("div",{className:"flex items-center gap-1 p-1 rounded-lg bg-white/5 border border-white/10",children:[(0,F.jsxs)("button",{onClick:()=>p("users"),className:U("px-4 py-2 rounded-md text-sm font-medium transition-all",f==="users"?"bg-cyan-500/20 text-cyan-400":"text-slate-400 hover:text-white"),children:[(0,F.jsx)(hs,{className:"w-4 h-4 inline mr-2"}),"Users"]}),(0,F.jsxs)("button",{onClick:()=>p("matrix"),className:U("px-4 py-2 rounded-md text-sm font-medium transition-all",f==="matrix"?"bg-cyan-500/20 text-cyan-400":"text-slate-400 hover:text-white"),children:[(0,F.jsx)(Ti,{className:"w-4 h-4 inline mr-2"}),"Matrix"]})]}),(0,F.jsxs)("button",{onClick:()=>window.location.href="/bulk-import",className:"flex items-center gap-2 px-6 py-3 rounded-lg bg-purple-500/20 text-purple-400 border border-purple-500/30 hover:bg-purple-500/30 transition-colors font-medium",children:[(0,F.jsx)(ms,{className:"w-5 h-5"}),"Bulk Import"]}),(0,F.jsxs)("button",{onClick:C,className:"flex items-center gap-2 px-6 py-3 rounded-lg bg-gradient-to-r from-cyan-500 via-purple-500 to-pink-500 text-white font-medium hover:opacity-90 transition-opacity",children:[(0,F.jsx)(Bt,{className:"w-5 h-5"}),"Add User"]})]})]}),(0,F.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4",children:[(0,F.jsx)("div",{className:"rounded-xl backdrop-blur-xl bg-white/5 border border-white/10 p-4",children:(0,F.jsxs)("div",{className:"flex items-center gap-3",children:[(0,F.jsx)("div",{className:"p-2 rounded-lg bg-green-500/20",children:(0,F.jsx)(We,{className:"w-5 h-5 text-green-400"})}),(0,F.jsxs)("div",{children:[(0,F.jsx)("p",{className:"text-2xl font-bold text-white",children:e.filter(P=>P.status==="active").length}),(0,F.jsx)("p",{className:"text-sm text-slate-400",children:"Active Users"})]})]})}),(0,F.jsx)("div",{className:"rounded-xl backdrop-blur-xl bg-white/5 border border-white/10 p-4",children:(0,F.jsxs)("div",{className:"flex items-center gap-3",children:[(0,F.jsx)("div",{className:"p-2 rounded-lg bg-slate-500/20",children:(0,F.jsx)(hs,{className:"w-5 h-5 text-slate-400"})}),(0,F.jsxs)("div",{children:[(0,F.jsx)("p",{className:"text-2xl font-bold text-white",children:e.length}),(0,F.jsx)("p",{className:"text-sm text-slate-400",children:"Total Users"})]})]})}),(0,F.jsx)("div",{className:"rounded-xl backdrop-blur-xl bg-white/5 border border-white/10 p-4",children:(0,F.jsxs)("div",{className:"flex items-center gap-3",children:[(0,F.jsx)("div",{className:"p-2 rounded-lg bg-cyan-500/20",children:(0,F.jsx)(Qe,{className:"w-5 h-5 text-cyan-400"})}),(0,F.jsxs)("div",{children:[(0,F.jsx)("p",{className:"text-2xl font-bold text-white",children:e.filter(P=>P.role==="Administrator").length}),(0,F.jsx)("p",{className:"text-sm text-slate-400",children:"Administrators"})]})]})}),(0,F.jsx)("div",{className:"rounded-xl backdrop-blur-xl bg-white/5 border border-white/10 p-4",children:(0,F.jsxs)("div",{className:"flex items-center gap-3",children:[(0,F.jsx)("div",{className:"p-2 rounded-lg bg-red-500/20",children:(0,F.jsx)(hr,{className:"w-5 h-5 text-red-400"})}),(0,F.jsxs)("div",{children:[(0,F.jsx)("p",{className:"text-2xl font-bold text-white",children:e.filter(P=>P.status==="suspended").length}),(0,F.jsx)("p",{className:"text-sm text-slate-400",children:"Suspended"})]})]})})]}),f==="users"?e.length===0?(0,F.jsxs)("div",{className:"text-center py-12 rounded-2xl backdrop-blur-xl bg-white/5 border border-white/10",children:[(0,F.jsx)(Qe,{className:"w-16 h-16 text-slate-600 mx-auto mb-4"}),(0,F.jsx)("h3",{className:"text-xl font-semibold text-white mb-2",children:"No Users Yet"}),(0,F.jsx)("p",{className:"text-slate-400 mb-6",children:"Create your first authorized user to get started"}),(0,F.jsxs)("button",{onClick:C,className:"inline-flex items-center gap-2 px-6 py-3 rounded-lg bg-gradient-to-r from-cyan-500 via-purple-500 to-pink-500 text-white font-medium hover:opacity-90 transition-opacity",children:[(0,F.jsx)(Bt,{className:"w-5 h-5"}),"Create First User"]})]}):(0,F.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:e.map((P,O)=>{let j=P.status==="active",W=m.has(P.id);return(0,F.jsxs)(G.div,{initial:{opacity:0,y:20}
87,animate:{opacity:1,y:0,scale:W?[1,1.02,1]:1,boxShadow:W?["0 0 0 0 rgba(6, 182, 212, 0)","0 0 0 8px rgba(6, 182, 212, 0.3)","0 0 0 0 rgba(6, 182, 212, 0)"]:"0 0 0 0 rgba(6, 182, 212, 0)"},transition:{delay:O*.05,scale:{duration:.5,repeat:W?2:0},boxShadow:{duration:1,repeat:W?2:0}},className:U("rounded-xl backdrop-blur-xl bg-white/5 border p-5 hover:bg-white/10 transition-colors relative",W?"border-cyan-500/50 bg-cyan-500/10":"border-white/10"),children:[W&&(0,F.jsx)("div",{className:"absolute top-2 right-2",children:(0,F.jsxs)(G.div,{initial:{scale:0},animate:{scale:1},className:"px-2 py-1 rounded-full bg-cyan-500/20 border border-cyan-500/50 flex items-center gap-1",children:[(0,F.jsx)("div",{className:"w-2 h-2 rounded-full bg-cyan-400 animate-pulse"}),(0,F.jsx)("span",{className:"text-xs font-medium text-cyan-400",children:"Updated"})]})}),(0,F.jsxs)("div",{className:"flex items-start justify-between mb-4",children:[(0,F.jsxs)("div",{className:"flex items-center gap-3",children:[(0,F.jsx)("div",{className:U("p-2 rounded-lg bg-gradient-to-r",A(P.role)),children:(0,F.jsx)(Qe,{className:"w-5 h-5 text-white"})}),(0,F.jsxs)("div",{children:[(0,F.jsx)("h3",{className:"text-lg font-semibold text-white",children:P.username}),(0,F.jsx)("p",{className:"text-sm text-slate-400",children:P.role})]})]}),(0,F.jsx)("span",{className:U("px-2 py-1 rounded text-xs font-medium border",M(P.status)),children:P.status})]}),(0,F.jsxs)("div",{className:"space-y-2 mb-4",children:[(0,F.jsxs)("div",{className:"flex items-center justify-between p-2 rounded-lg bg-white/5",children:[(0,F.jsxs)("div",{className:"flex items-center gap-2",children:[(0,F.jsx)(hs,{className:"w-4 h-4 text-slate-400"}),(0,F.jsx)("span",{className:"text-sm text-slate-300",children:"Username:"}),(0,F.jsx)("span",{className:"text-sm text-white font-mono",children:P.username})]}),(0,F.jsx)("button",{onClick:()=>I(P.username,`${P.id}-username`),className:"p-1 rounded hover:bg-white/10 transition-colors",children:d===`${P.id}-username`?(0,F.jsx)(mr,{className:"w-4 h-4 text-green-400"}):(0,F.jsx)(gt,{className:"w-4 h-4 text-slate-400"})})]}),(0,F.jsxs)("div",{className:"flex items-center justify-between p-2 rounded-lg bg-white/5",children:[(0,F.jsxs)("div",{className:"flex items-center gap-2",children:[(0,F.jsx)(Ra,{className:"w-4 h-4 text-slate-400"}),(0,F.jsx)("span",{className:"text-sm text-slate-300",children:"Password:"}),(0,F.jsx)("span",{className:"text-sm text-white font-mono",children:l?P.password:"\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022"})]}),(0,F.jsxs)("div",{className:"flex items-center gap-1",children:[(0,F.jsx)("button",{onClick:()=>c(!l),className:"p-1 rounded hover:bg-white/10 transition-colors",children:l?(0,F.jsx)(qo,{className:"w-4 h-4 text-slate-400"}):(0,F.jsx)(Yr,{className:"w-4 h-4 text-slate-400"})}),(0,F.jsx)("button",{onClick:()=>I(P.password,`${P.id}-password`),className:"p-1 rounded hover:bg-white/10 transition-colors",children:d===`${P.id}-password`?(0,F.jsx)(mr,{className:"w-4 h-4 text-green-400"}):(0,F.jsx)(gt,{className:"w-4 h-4 text-slate-400"})})]})]})]}),P.permissions.length>0&&(0,F.jsxs)("div",{className:"mb-4",children:[(0,F.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,F.jsx)("p",{className:"text-xs font-medium text-slate-400",children:"Permissions"}),(0,F.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,F.jsx)("div",{className:"w-2 h-2 rounded-full bg-green-400 animate-pulse"}),(0,F.jsxs)("span",{className:"text-xs font-bold text-green-400",children:[P.permissions.length," Active"]})]})]}),(0,F.jsxs)("div",{className:"flex flex-wrap gap-1.5",children:[P.permissions.slice(0,6).map((ee,oe)=>{let he=D(ee);if(!he)return null;let Le=he.icon;return(0,F.jsxs)(G.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{delay:oe*.05},className:U("relative px-2 py-1 rounded text-xs font-medium border flex items-center gap-1",V(he.color)),children:[(0,F.jsx)("div",{className:"absolute inset-0 bg-gradient-to-r from-transparent via-white/5 to-transparent animate-shimmer"}),(0,F.jsx)(Le,{className:"w-3 h-3 relative z-10"}),(0,F.jsx)("span",{className:"relative z-10",children:he.label})]},ee)}),P.permissions.length>6&&(0,F.jsxs)("div",{className:"px-2 py-1 rounded text-xs font-medium bg-slate-500/20 text-slate-400 border border-slate-500/30",children:["+",P.permissions.length-6," more"]})]})]}),(0,F.jsxs)("div",{className:"text-xs text-slate-400 space-y-1 mb-4",children:[(0,F.jsxs)("p",{children:["Created: ",Zr(new Date(P.createdAt),"MMM d, yyyy \u2022 h:mm a")]}),P.lastLogin&&(0,F.jsxs)("p",{className:"flex items-center gap-1",children:[(0,F.jsx)("span",{children:"Last Modified:"}),(0,F.jsx)("span",{className:U("font-medium",W&&"text-cyan-400 animate-pulse"),children:Zr(new Date(P.lastLogin),"MMM d, yyyy \u2022 h:mm a")}),W&&(0,F.jsx)("span",{className:"text-cyan-400",children:"\u2022 Just now"})]})]}),(0,F.jsxs)("div",{className:"flex gap-2",children:[(0,F.jsx)("button",{onClick:()=>B(P),className:U("flex-1 px-3 py-2 rounded-lg text-sm font-medium transition-colors",j?"bg-slate-500/20 text-slate-300 hover:bg-slate-500/30":"bg-green-500/20 text-green-400 hover:bg-green-500/30"),children:j?"Deactivate":"Activate"}),(0,F.jsx)("button",{onClick:()=>N(P),className:"px-3 py-2 rounded-lg bg-cyan-500/20 text-cyan-400 hover:bg-cyan-500/30 transition-colors",children:(0,F.jsx)(ds,{className:"w-4 h-4"})}),(0,F.jsx)("button",{onClick:()=>_(P),className:"px-3 py-2 rounded-lg bg-red-500/20 text-red-400 hover:bg-red-500/30 transition-colors",children:(0,F.jsx)(Kt,{className:"w-4 h-4"})})]})]},P.id)})}):(0,F.jsxs)("div",{className:"space-y-6",children:[(0,F.jsxs)("div",{className:"rounded-xl backdrop-blur-xl bg-white/5 border border-white/10 p-6",children:[(0,F.jsx)("h2",{className:"text-xl font-bold text-white mb-2",children:"Permission Matrix"}),(0,F.jsx)("p",{className:"text-sm text-slate-400",children:"Visual overview of user permissions across the platform"})]}),(0,F.jsx)("div",{className:"rounded-xl backdrop-blur-xl bg-white/5 border border-white/10 overflow-hidden",children:(0,F.jsx)("div",{className:"overflow-x-auto",children:(0,F.jsxs)("table",{className:"w-full",children:[(0,F.jsx)("thead",{children:(0,F.jsxs)("tr",{className:"border-b border-white/10",children:[(0,F.jsx)("th",{className:"sticky left-0 z-10 bg-slate-900/95 backdrop-blur-xl px-4 py-3 text-left",children:(0,F.jsxs)("div",{className:"flex items-center gap-2",children:[(0,F.jsx)(hs,{className:"w-4 h-4 text-slate-400"}),(0,F.jsx)("span",{className:"text-sm font-semibold text-slate-300",children:"User"})]})}),x.map(P=>{let O=P.icon;return(0,F.jsx)("th",{className:"px-3 py-3 text-center min-w-[120px]",children:(0,F.jsxs)("div",{className:"flex flex-col items-center gap-1",children:[(0,F.jsx)(O,{className:"w-4 h-4 text-cyan-400"}),(0,F.jsx)("span",{className:"text-xs font-medium text-slate-300",children:P.label}),(0,F.jsx)("span",{className:"text-xs text-slate-500",children:P.category})]})},P.id)})]})}),(0,F.jsx)("tbody",{children:e.map((P,O)=>{let j=P.status==="active",W=m.has(P.id);return(0,F.jsxs)(G.tr,{initial:{opacity:0,x:-20}
87,animate:{opacity:1,x:0,backgroundColor:W?["rgba(6, 182, 212, 0)","rgba(6, 182, 212, 0.1)","rgba(6, 182, 212, 0)"]:"rgba(0, 0, 0, 0)"},transition:{delay:O*.05,backgroundColor:{duration:1,repeat:W?2:0}},className:U("border-b transition-colors",W?"border-cyan-500/30 bg-cyan-500/5":"border-white/5 hover:bg-white/5",!j&&"opacity-50"),children:[(0,F.jsx)("td",{className:"sticky left-0 z-10 bg-slate-900/95 backdrop-blur-xl px-4 py-3",children:(0,F.jsxs)("button",{onClick:()=>N(P),className:"flex items-center gap-3 w-full text-left hover:opacity-80 transition-opacity cursor-pointer",children:[(0,F.jsx)("div",{className:U("p-1.5 rounded-lg bg-gradient-to-r",A(P.role)),children:(0,F.jsx)(Qe,{className:"w-3.5 h-3.5 text-white"})}),(0,F.jsxs)("div",{children:[(0,F.jsx)("p",{className:"text-sm font-medium text-white",children:P.username}),(0,F.jsx)("p",{className:"text-xs text-slate-400",children:P.role})]})]})}),x.map(ee=>{let oe=P.permissions.includes(ee.id);return(0,F.jsx)("td",{className:"px-3 py-3 text-center",children:(0,F.jsx)(G.button,{initial:!1,animate:{scale:oe?[1,1.2,1]:1},whileHover:{scale:1.1},whileTap:{scale:.95},transition:{duration:.3},onClick:async()=>{if(!j){$.error("Cannot modify permissions for inactive users");return}try{let Le=(oe?P.permissions.filter(ae=>ae!==ee.id):[...P.permissions,ee.id]).join(",");await Ye.patch(`/api/taskade/projects/sJ6vadFuKowyC7Nf/nodes/${P.id}`,{"/attributes/@usr07":Le,"/attributes/@usr06":new Date().toISOString()}),$.success(oe?"Permission removed":"Permission granted"),await w(),h(ae=>new Set(ae).add(P.id)),setTimeout(()=>{h(ae=>{let Oe=new Set(ae);return Oe.delete(P.id),Oe})},3e3)}catch(he){console.error("Failed to toggle permission:",he),$.error("Failed to update permission")}},className:"flex justify-center cursor-pointer hover:opacity-80 transition-opacity",disabled:!j,children:oe?(0,F.jsxs)("div",{className:"relative",children:[(0,F.jsx)("div",{className:"absolute inset-0 bg-green-400/20 rounded-full blur-md animate-pulse"}),(0,F.jsx)(We,{className:"relative w-5 h-5 text-green-400"})]}):(0,F.jsx)("div",{className:"w-5 h-5 rounded-full border-2 border-slate-700 bg-slate-800/50 hover:border-cyan-500/50 hover:bg-cyan-500/10 transition-colors"})})},ee.id)})]},P.id)})})]})})}),(0,F.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:b.map(P=>{let O=x.filter(j=>j.category===P);return(0,F.jsxs)("div",{className:"rounded-xl backdrop-blur-xl bg-white/5 border border-white/10 p-4",children:[(0,F.jsx)("h3",{className:"text-sm font-semibold text-white mb-3",children:P}),(0,F.jsx)("div",{className:"space-y-2",children:O.map(j=>{let W=j.icon,ee=e.filter(oe=>oe.permissions.includes(j.id));return(0,F.jsxs)("div",{className:"flex items-center justify-between",children:[(0,F.jsxs)("div",{className:"flex items-center gap-2",children:[(0,F.jsx)(W,{className:"w-3.5 h-3.5 text-cyan-400"}),(0,F.jsx)("span",{className:"text-xs text-slate-300",children:j.label})]}),(0,F.jsxs)("span",{className:"text-xs font-medium text-slate-400",children:[ee.length,"/",e.length]})]},j.id)})})]},P)})})]})]}),(0,F.jsx)(Ue,{children:n&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(G.div,{initial:{opacity:0}
87,animate:{opacity:1},exit:{opacity:0},onClick:E,className:"fixed inset-0 bg-black/60 backdrop-blur-sm z-50"}),(0,F.jsx)(G.div,{initial:{opacity:0,scale:.95,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:20},className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:(0,F.jsxs)("div",{className:"w-full max-w-2xl rounded-2xl backdrop-blur-xl bg-slate-900/95 border border-cyan-500/30 shadow-2xl shadow-cyan-500/20 max-h-[90vh] overflow-y-auto",children:[(0,F.jsxs)("div",{className:"flex items-center justify-between p-6 border-b border-white/10 sticky top-0 bg-slate-900/95 backdrop-blur-xl",children:[(0,F.jsxs)("div",{className:"flex items-center gap-3",children:[(0,F.jsx)("div",{className:"p-2 rounded-lg bg-cyan-500/20",children:(0,F.jsx)(Qe,{className:"w-5 h-5 text-cyan-400"})}),(0,F.jsxs)("div",{children:[(0,F.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,F.jsx)("h2",{className:"text-xl font-bold text-white",children:i?"Edit User":"Create New User"}),i&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("span",{className:"px-2 py-0.5 rounded text-xs font-medium bg-cyan-500/20 text-cyan-400 border border-cyan-500/30",children:i.username}),(0,F.jsxs)("span",{className:"px-2 py-0.5 rounded text-xs font-medium bg-green-500/20 text-green-400 border border-green-500/30 flex items-center gap-1",children:[(0,F.jsx)(We,{className:"w-3 h-3"}),g.permissions.length," Active"]})]})]}),(0,F.jsx)("p",{className:"text-sm text-slate-400",children:i?"Update user credentials and permissions":"Add a new authorized user"})]})]}),(0,F.jsx)("button",{onClick:E,className:"p-2 rounded-lg hover:bg-white/10 transition-colors",children:(0,F.jsx)(Ir,{className:"w-5 h-5 text-slate-400"})})]}),(0,F.jsxs)("form",{onSubmit:q,className:"p-6 space-y-6",children:[(0,F.jsxs)("div",{children:[(0,F.jsx)("label",{className:"block text-sm font-medium text-slate-300 mb-2",children:"Username *"}),(0,F.jsxs)("div",{className:"relative",children:[(0,F.jsx)(hs,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-slate-400"}),(0,F.jsx)("input",{type:"text",value:g.username,onChange:P=>y({...g,username:P.target.value}),className:"w-full pl-10 pr-4 py-3 rounded-lg bg-white/5 border border-white/10 text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-cyan-500/50",placeholder:"Enter username",required:!0})]})]}),(0,F.jsxs)("div",{children:[(0,F.jsx)("label",{className:"block text-sm font-medium text-slate-300 mb-2",children:"Password *"}),(0,F.jsxs)("div",{className:"flex gap-2",children:[(0,F.jsxs)("div",{className:"relative flex-1",children:[(0,F.jsx)(Ra,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-slate-400"}),(0,F.jsx)("input",{type:l?"text":"password",value:g.password,onChange:P=>y({...g,password:P.target.value}),className:"w-full pl-10 pr-10 py-3 rounded-lg bg-white/5 border border-white/10 text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-cyan-500/50",placeholder:"Enter password",required:!0}),(0,F.jsx)("button",{type:"button",onClick:()=>c(!l),className:"absolute right-3 top-1/2 -translate-y-1/2 text-slate-400 hover:text-white transition-colors",children:l?(0,F.jsx)(qo,{className:"w-5 h-5"}):(0,F.jsx)(Yr,{className:"w-5 h-5"})})]}),(0,F.jsx)("button",{type:"button",onClick:L,className:"px-4 py-3 rounded-lg bg-purple-500/20 text-purple-400 hover:bg-purple-500/30 transition-colors whitespace-nowrap",children:(0,F.jsx)(Dr,{className:"w-5 h-5"})})]}),(0,F.jsx)("p",{className:"text-xs text-slate-400 mt-2",children:"Click the key icon to generate a secure password"})]}),(0,F.jsxs)("div",{children:[(0,F.jsx)("label",{className:"block text-sm font-medium text-slate-300 mb-2",children:"Role *"}),(0,F.jsx)("select",{value:g.role,onChange:P=>{let O=P.target.value;y({...g,role:O})},className:"w-full px-4 py-3 rounded-lg bg-white/5 border border-white/10 text-white focus:outline-none focus:ring-2 focus:ring-cyan-500/50",required:!0,children:v.map(P=>(0,F.jsx)("option",{value:P.value,children:P.label},P.value))}),S[g.role]&&(0,F.jsx)("div",{className:"mt-3 p-3 rounded-lg bg-gradient-to-r from-purple-500/10 to-pink-500/10 border border-purple-500/20",children:(0,F.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,F.jsxs)("div",{className:"flex-1",children:[(0,F.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,F.jsx)(jr,{className:"w-4 h-4 text-purple-400"}),(0,F.jsx)("p",{className:"text-sm font-semibold text-purple-300",children:S[g.role].name})]}),(0,F.jsx)("p",{className:"text-xs text-slate-400",children:S[g.role].description}),(0,F.jsxs)("p",{className:"text-xs text-purple-400 mt-1",children:[S[g.role].permissions.length," permissions included"]})]}),(0,F.jsx)("button",{type:"button",onClick:()=>k(g.role),className:"px-3 py-1.5 rounded-lg bg-purple-500/20 text-purple-300 hover:bg-purple-500/30 transition-colors text-xs font-medium whitespace-nowrap",children:"Apply Template"})]})})]}),(0,F.jsxs)("div",{children:[(0,F.jsx)("label",{className:"block text-sm font-medium text-slate-300 mb-2",children:"Status *"}),(0,F.jsxs)("select",{value:g.status,onChange:P=>y({...g,status:P.target.value}),className:"w-full px-4 py-3 rounded-lg bg-white/5 border border-white/10 text-white focus:outline-none focus:ring-2 focus:ring-cyan-500/50",required:!0,children:[(0,F.jsx)("option",{value:"active",children:"Active"}),(0,F.jsx)("option",{value:"inactive",children:"Inactive"}),(0,F.jsx)("option",{value:"suspended",children:"Suspended"})]})]}),(0,F.jsxs)("div",{children:[(0,F.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,F.jsx)("label",{className:"block text-sm font-medium text-slate-300",children:"Permissions"}),(0,F.jsxs)("div",{className:"flex items-center gap-2",children:[(0,F.jsx)("div",{className:"px-2 py-1 rounded bg-cyan-500/10 border border-cyan-500/30",children:(0,F.jsxs)("span",{className:"text-xs font-mono text-cyan-400",children:[g.permissions.length,"/",x.length]})}),(0,F.jsx)("button",{type:"button",onClick:()=>y({...g,permissions:x.map(P=>P.id)}),className:"text-xs text-cyan-400 hover:text-cyan-300 transition-colors",children:"Select All"}),(0,F.jsx)("span",{className:"text-slate-600",children:"\u2022"}),(0,F.jsx)("button",{type:"button",onClick:()=>y({...g,permissions:[]}),className:"text-xs text-slate-400 hover:text-slate-300 transition-colors",children:"Clear All"})]})]}),i&&(0,F.jsx)("div",{className:"mb-3 p-3 rounded-lg bg-slate-800/50 border border-slate-700",children:(0,F.jsx)("div",{className:"flex items-start gap-2",children:(0,F.jsxs)("div",{className:"flex-1",children:[(0,F.jsxs)("p",{className:"text-xs font-medium text-slate-400 mb-2",children:["Permission Status for ",i.username]}),(0,F.jsxs)("div",{className:"grid grid-cols-2 gap-2 text-xs mb-2",children:[(0,F.jsxs)("div",{className:"flex items-center gap-1",children:[(0,F.jsx)("div",{className:"w-2 h-2 rounded-full bg-green-500"}),(0,F.jsxs)("span",{className:"text-slate-300",children:["Granted: ",g.permissions.length]})]}),(0,F.jsxs)("div",{className:"flex items-center gap-1",children:[(0,F.jsx)("div",{className:"w-2 h-2 rounded-full bg-slate-600"}),(0,F.jsxs)("span",{className:"text-slate-300",children:["Not Granted: ",x.length-g.permissions.length]})]})]}),(0,F.jsxs)("div",{className:"text-[10px] font-mono text-slate-500 bg-slate-900/50 p-2 rounded max-h-20 overflow-y-auto",children:["Current: [",g.permissions.join(", "),"]"]})]})})}),g.permissions.length>0&&(0,F.jsx)("div",{className:"mb-3 p-3 rounded-lg bg-green-500/10 border border-green-500/30",children:(0,F.jsxs)("div",{className:"flex items-start gap-2",children:[(0,F.jsx)(We,{className:"w-4 h-4 text-green-400 mt-0.5 flex-shrink-0"}),(0,F.jsxs)("div",{className:"flex-1",children:[(0,F.jsxs)("p",{className:"text-sm font-medium text-green-300 mb
87-1",children:[g.permissions.length," Permission",g.permissions.length!==1?"s":""," Currently Granted"]}),(0,F.jsxs)("div",{className:"flex flex-wrap gap-1",children:[g.permissions.slice(0,5).map(P=>{let O=x.find(j=>j.id===P);return O?(0,F.jsx)("span",{className:"text-xs px-1.5 py-0.5 rounded bg-green-500/20 text-green-300 border border-green-500/30",children:O.label},P):null}),g.permissions.length>5&&(0,F.jsxs)("span",{className:"text-xs px-1.5 py-0.5 rounded bg-green-500/20 text-green-300 border border-green-500/30",children:["+",g.permissions.length-5," more"]})]})]})]})}),i&&(0,F.jsx)("div",{className:"mb-3 p-3 rounded bg-slate-800/50 border border-slate-700",children:(0,F.jsx)("div",{className:"flex items-center justify-between mb-2",children:(0,F.jsxs)("details",{className:"text-xs flex-1",children:[(0,F.jsx)("summary",{className:"cursor-pointer text-slate-400 hover:text-slate-300 font-medium",children:"\u{1F50D} Debug: Permission State Verification"}),(0,F.jsxs)("div",{className:"mt-3 space-y-3",children:[(0,F.jsxs)("div",{children:[(0,F.jsx)("p",{className:"text-slate-500 mb-1",children:"Original (from database):"}),(0,F.jsxs)("div",{className:"font-mono text-slate-300 bg-slate-900/50 p-2 rounded",children:["[",i.permissions.join(", "),"]"]})]}),(0,F.jsxs)("div",{children:[(0,F.jsx)("p",{className:"text-slate-500 mb-1",children:"Current (in form):"}),(0,F.jsxs)("div",{className:"font-mono text-slate-300 bg-slate-900/50 p-2 rounded",children:["[",g.permissions.join(", "),"]"]})]}),(0,F.jsxs)("div",{children:[(0,F.jsx)("p",{className:"text-slate-500 mb-1",children:"Verification:"}),(0,F.jsxs)("div",{className:"space-y-1",children:[(0,F.jsxs)("div",{className:"flex items-center gap-2",children:[(0,F.jsx)("span",{className:i.permissions.length===g.permissions.length?"text-green-400":"text-red-400",children:i.permissions.length===g.permissions.length?"\u2713":"\u2717"}),(0,F.jsxs)("span",{className:"text-slate-400",children:["Count match: ",i.permissions.length," = ",g.permissions.length]})]}),(0,F.jsxs)("div",{className:"flex items-center gap-2",children:[(0,F.jsx)("span",{className:i.permissions.every(P=>g.permissions.includes(P))?"text-green-400":"text-red-400",children:i.permissions.every(P=>g.permissions.includes(P))?"\u2713":"\u2717"}),(0,F.jsx)("span",{className:"text-slate-400",children:"All original permissions present"})]}),(0,F.jsxs)("div",{className:"flex items-center gap-2",children:[(0,F.jsx)("span",{className:g.permissions.every(P=>i.permissions.includes(P))?"text-green-400":"text-red-400",children:g.permissions.every(P=>i.permissions.includes(P))?"\u2713":"\u2717"}),(0,F.jsx)("span",{className:"text-slate-400",children:"No extra permissions added"})]})]})]}),(0,F.jsxs)("div",{children:[(0,F.jsx)("p",{className:"text-slate-500 mb-1",children:"Permission Matching:"}),(0,F.jsx)("div",{className:"space-y-1 max-h-40 overflow-y-auto",children:x.map(P=>{let O=i.permissions.includes(P.id),j=g.permissions.includes(P.id),W=O===j;return(0,F.jsxs)("div",{className:"flex items-center gap-2 text-[10px]",children:[(0,F.jsx)("span",{className:W?"text-green-400":"text-red-400",children:W?"\u2713":"\u2717"}),(0,F.jsx)("span",{className:"text-slate-500 w-32 truncate",children:P.id}),(0,F.jsx)("span",{className:j?"text-green-400":"text-slate-600",children:j?"GRANTED":"not granted"})]},P.id)})})]})]})]})})}),b.map(P=>{let O=x.filter(j=>j.category===P);return(0,F.jsxs)("div",{className:"mb-4 last:mb-0",children:[(0,F.jsx)("h4",{className:"text-xs font-semibold text-slate-400 uppercase tracking-wider mb-2",children:P}),(0,F.jsx)("div",{className:"grid grid-cols-1 gap-2",children:O.map((j,W)=>{let oe=(g.permissions||[]).includes(j.id),he=j.icon,Le=(Oe,ue)=>{if(!ue)return"bg-slate-800/30 text-slate-500 border-slate-700/50 hover:bg-slate-800/50 hover:border-slate-600";let Y={red:"bg-red-500/30 text-red-300 border-red-500/50 hover:bg-red-500/40 shadow-lg shadow-red-500/20",cyan:"bg-cyan-500/30 text-cyan-300 border-cyan-500/50 hover:bg-cyan-500/40 shadow-lg shadow-cyan-500/20",slate:"bg-slate-500/30 text-slate-300 border-slate-500/50 hover:bg-slate-500/40 shadow-lg shadow-slate-500/20",purple:"bg-purple-500/30 text-purple-300 border-purple-500/50 hover:bg-purple-500/40 shadow-lg shadow-purple-500/20",amber:"bg-amber-500/30 text-amber-300 border-amber-500/50 hover:bg-amber-500/40 shadow-lg shadow-amber-500/20",green:"bg-green-500/30 text-green-300 border-green-500/50 hover:bg-green-500/40 shadow-lg shadow-green-500/20",blue:"bg-blue-500/30 text-blue-300 border-blue-500/50 hover:bg-blue-500/40 shadow-lg shadow-blue-500/20",orange:"bg-orange-500/30 text-orange-300 border-orange-500/50 hover:bg-orange-500/40 shadow-lg shadow-orange-500/20",pink:"bg-pink-500/30 text-pink-300 border-pink-500/50 hover:bg-pink-500/40 shadow-lg shadow-pink-500/20",indigo:"bg-indigo-500/30 text-indigo-300 border-indigo-500/50 hover:bg-indigo-500/40 shadow-lg shadow-indigo-500/20",yellow:"bg-yellow-500/30 text-yellow-300 border-yellow-500/50 hover:bg-yellow-500/40 shadow-lg shadow-yellow-500/20",teal:"bg-teal-500/30 text-teal-300 border-teal-500/50 hover:bg-teal-500/40 shadow-lg shadow-teal-500/20"};return Y[Oe]||Y.slate},ae=(Oe,ue)=>{if(!ue)return"text-slate-600";let Y={red:"text-red-300",cyan:"text-cyan-300",slate:"text-slate-300",purple:"text-purple-300",amber:"text-amber-300",green:"text-green-300",blue:"text-blue-300",orange:"text-orange-300",pink:"text-pink-300",indigo:"text-indigo-300",yellow:"text-yellow-300",teal:"text-teal-300"};return Y[Oe]||Y.slate};return(0,F.jsxs)("button",{type:"button",onClick:()=>T(j.id),className:U("px-3 py-2.5 rounded-lg text-sm font-medium transition-all text-left group border relative overflow-hidden",Le(j.color,oe)),children:[oe&&(0,F.jsx)("div",{className:"absolute inset-0 bg-gradient-to-r from-transparent via-white/5 to-transparent animate-shimmer"}),(0,F.jsxs)("div",{className:"flex items-start gap-3 relative z-10",children:[(0,F.jsx)(he,{className:U("w-4 h-4 mt-0.5 flex-shrink-0",ae(j.color,oe))}),(0,F.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,F.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,F.jsx)("span",{className:"font-medium",children:j.label}),oe&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("span",{className:"px-1.5 py-0.5 rounded text-[10px] font-bold bg-green-500/30 text-green-300 border border-green-500/50 uppercase tracking-wider",children:"Granted"}),(0,F.jsx)(We,{className:"w-3.5 h-3.5 text-green-400"})]})]}),(0,F.jsx)("p",{className:U("text-xs mt-0.5",oe?"text-slate-300":"text-slate-600"),children:j.description})]})]})]},j.id)})})]},P)}),(0,F.jsx)("div",{className:"mt-3 p-3 rounded-lg bg-cyan-500/10 border border-cyan-500/20",children:(0,F.jsxs)("div",{className:"flex items-center justify-between",children:[(0,F.jsxs)("p",{className:"text-xs text-cyan-300",children:[(0,F.jsx)("strong",{children:g.permissions.length})," of ",x.length," permissions selected"]}),i&&(0,F.jsx)("p",{className:"text-xs text-slate-400",children:i.permissions.length===g.permissions.length&&i.permissions.every(P=>g.permissions.includes(P))?"\u2713 No changes":"\u2022 Modified"})]})})]}),(0,F.jsxs)("div",{className:"flex gap-3 pt-4 border-t border-white/10",children:[(0,F.jsx)("button",{type:"button",onClick:E,className:"flex-1 px-4 py-3 rounded-lg bg-white/5 text-white hover:bg-white/10 transition-colors",children:"Cancel"}),(0,F.jsx)("button",{type:"submit",className:"flex-1 px-4 py-3 rounded-lg bg-gradient-to-r from-cyan-500 via-purple-500 to-pink-500 text-white font-medium hover:opacity-90 transition-opacity",children:i?"Update User":"Create User"})]})]})]})})]})})]})},bq=Bbe;var wq=R(Q());var po=R(Q());var z=R(ke()),Pc="webhook_wizard_progress",Vbe=({isOpen:e,onClose:t,onComplete:r})=>{let[a,n]=po.useState(1),[o,i]=po.useState({apiKeyName:"",generatedKey:"",generatedSecret:"",connectionName:"",direction:"inbound",externalUrl:"",method:"POST",enableSignature:!0,signatureAlgorithm:"sha256",enableRateLimit:!0,rateLimit:"100",enableIPWhitelist:!1,ipWhitelist:"",testPayload:`{ 88 "event": "test", 89 "data": { 90 "message": "Hello World" 91 } 92}`,testResult:null}),[s,l]=po.useState(!1),[c,d]=po.useState(!1),[u,f]=po.useState(!1),[p,m]=po.useState(!1),[h,g]=po.useState(!1);po.useEffect(()=>{if(e){let L=localStorage.getItem(Pc);
92if(L)try{let T=JSON.parse(L),q=new Date(T.savedAt);(new Date().getTime()-q.getTime())/(1e3*60*60)<168?(f(!0),m(!0)):localStorage.removeItem(Pc)}catch(T){console.error("Failed to load saved progress:",T)}}},[e]),po.useEffect(()=>{if(e&&a>1){let L={step:a,config:o,savedAt:new Date().toISOString()};localStorage.setItem(Pc,JSON.stringify(L)),g(!0);let T=setTimeout(()=>g(!1),2e3);return()=>clearTimeout(T)}},[a,o,e]);let y=()=>{n(1),i({apiKeyName:"",generatedKey:"",generatedSecret:"",connectionName:"",direction:"inbound",externalUrl:"",method:"POST",enableSignature:!0,signatureAlgorithm:"sha256",enableRateLimit:!0,rateLimit:"100",enableIPWhitelist:!1,ipWhitelist:"",testPayload:`{ 93 "event": "test", 94 "data": { 95 "message": "Hello World" 96 } 97}`,testResult:null}),l(!1),d(!1),f(!1),m(!1)},v=()=>{t()},x=()=>{let L=localStorage.getItem(Pc);if(L)try{let T=JSON.parse(L);n(T.step),i(T.config),m(!1),$.success("Progress restored!")}catch{$.error("Failed to restore progress"),m(!1)}},S=()=>{localStorage.removeItem(Pc),y(),$.success("Starting fresh setup")},b=()=>{localStorage.removeItem(Pc),f(!1),$.success("Progress cleared")},w=async()=>{try{let T=(await Ye.post("/api/taskade/projects/YtYB9BVWyhVoi8uv/nodes",{text:o.apiKeyName||"API Key",attributes:{"@cred1":o.apiKeyName||"API Key","@cred2":{type:"Select",optionId:"active"},"@cred3":`key_${Math.random().toString(36).substr(2,16)}`,"@cred4":`secret_${Math.random().toString(36).substr(2,32)}`}})).data.attributes||{};i({...o,generatedKey:T["@cred3"]||`key_${Math.random().toString(36).substr(2,16)}`,generatedSecret:T["@cred4"]||`secret_${Math.random().toString(36).substr(2,32)}`}),$.success("Credentials generated successfully!")}catch{i({...o,generatedKey:`key_${Math.random().toString(36).substr(2,16)}`,generatedSecret:`secret_${Math.random().toString(36).substr(2,32)}`}),$.success("Credentials generated!")}},k=async()=>{l(!0);try{await new Promise(L=>setTimeout(L,2e3)),i({...o,testResult:{success:!0,statusCode:200,responseTime:145,message:"Connection successful"}}),$.success("Test successful!")}catch{i({...o,testResult:{success:!1,statusCode:500,message:"Connection failed"}}),$.error("Test failed")}finally{l(!1)}},C=async()=>{d(!0);try{await Ye.post("/api/taskade/projects/YtYB9BVWyhVoi8uv/nodes",{text:o.connectionName,attributes:{"@conn1":o.connectionName,"@conn2":{type:"Select",optionId:o.direction},"@conn3":{type:"Select",optionId:"active"},"@conn4":o.externalUrl,"@conn5":o.method}}),localStorage.removeItem(Pc),$.success("Webhook created successfully!"),y(),r(),t()}catch{$.error("Failed to create webhook")}finally{d(!1)}},N=L=>{navigator.clipboard.writeText(L),$.success("Copied to clipboard")},E=()=>{switch(a){case 1:return o.apiKeyName.length>0&&o.generatedKey.length>0;case 2:return o.connectionName.length>0&&o.externalUrl.length>0;case 3:return!0;case 4:return o.testResult?.success===!0;default:return!1}};if(!e)return null;if(p&&u){let L=localStorage.getItem(Pc),T=new Date,q=1;if(L)try{let _=JSON.parse(L);T=new Date(_.savedAt),q=_.step}catch{}return(0,z.jsx)(Ue,{children:(0,z.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[(0,z.jsx)(G.div,{initial:{opacity:0}
97,animate:{opacity:1},exit:{opacity:0},className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:v}),(0,z.jsxs)(G.div,{initial:{opacity:0,scale:.95,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:20},className:"relative w-full max-w-md rounded-2xl backdrop-blur-xl bg-slate-900/95 border border-white/10 shadow-2xl p-6",children:[(0,z.jsxs)("div",{className:"text-center mb-6",children:[(0,z.jsx)("div",{className:"w-16 h-16 rounded-full bg-gradient-to-br from-cyan-500 via-purple-500 to-pink-500 flex items-center justify-center mx-auto mb-4",children:(0,z.jsx)(Ai,{className:"w-8 h-8 text-white"})}),(0,z.jsx)("h3",{className:"text-2xl font-bold text-white mb-2",children:"Resume Setup?"}),(0,z.jsxs)("p",{className:"text-slate-400",children:["You have an unfinished webhook setup from ",T.toLocaleDateString()," at ",T.toLocaleTimeString()]})]}),(0,z.jsxs)("div",{className:"p-4 rounded-lg bg-white/5 border border-white/10 mb-6",children:[(0,z.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,z.jsx)("span",{className:"text-sm text-slate-400",children:"Progress"}),(0,z.jsxs)("span",{className:"text-sm font-medium text-white",children:["Step ",q," of 5"]})]}),(0,z.jsx)("div",{className:"w-full h-2 rounded-full bg-white/10 overflow-hidden",children:(0,z.jsx)(G.div,{initial:{width:0},animate:{width:`${q/5*100}%`},className:"h-full bg-gradient-to-r from-cyan-500 via-purple-500 to-pink-500"})})]}),(0,z.jsxs)("div",{className:"space-y-3",children:[(0,z.jsxs)("button",{onClick:x,className:"w-full flex items-center justify-center gap-2 px-6 py-3 rounded-lg bg-gradient-to-r from-cyan-500 via-purple-500 to-pink-500 text-white font-medium hover:opacity-90 transition-opacity",children:[(0,z.jsx)(Ka,{className:"w-5 h-5"}),"Resume Setup"]}),(0,z.jsx)("button",{onClick:S,className:"w-full px-6 py-3 rounded-lg bg-white/5 hover:bg-white/10 text-white font-medium transition-colors",children:"Start Fresh"}),(0,z.jsx)("button",{onClick:v,className:"w-full px-6 py-2 text-slate-400 hover:text-white text-sm transition-colors",children:"Cancel"})]})]})]})})}return(0,z.jsx)(Ue,{children:(0,z.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[(0,z.jsx)(G.div,{initial:{opacity:0}
97,animate:{opacity:1},exit:{opacity:0},className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:v}),(0,z.jsxs)(G.div,{initial:{opacity:0,scale:.95,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:20},className:"relative w-full max-w-3xl max-h-[90vh] overflow-y-auto rounded-2xl backdrop-blur-xl bg-slate-900/95 border border-white/10 shadow-2xl",children:[(0,z.jsxs)("div",{className:"sticky top-0 z-10 flex items-center justify-between p-6 border-b border-white/10 bg-slate-900/95 backdrop-blur-xl",children:[(0,z.jsxs)("div",{className:"flex-1",children:[(0,z.jsx)("h2",{className:"text-2xl font-bold text-white",children:"Webhook Setup Wizard"}),(0,z.jsxs)("div",{className:"flex items-center gap-3 mt-1",children:[(0,z.jsxs)("p",{className:"text-slate-400 text-sm",children:["Step ",a," of 5"]}),a>1&&(0,z.jsxs)(G.div,{initial:{opacity:0,scale:.8},animate:{opacity:h?1:.6,scale:h?1:.95},className:"flex items-center gap-2 text-xs text-green-400",children:[(0,z.jsx)(G.div,{animate:{scale:h?[1,1.2,1]:1},transition:{duration:.3},className:"w-2 h-2 rounded-full bg-green-400"}),h?"Saving...":"Saved"]})]})]}),(0,z.jsxs)("div",{className:"flex items-center gap-2",children:[a>1&&(0,z.jsx)("button",{onClick:b,className:"px-3 py-1.5 rounded-lg bg-white/5 hover:bg-white/10 text-slate-400 hover:text-white text-sm transition-colors",title:"Clear saved progress",children:"Clear Progress"}),(0,z.jsx)("button",{onClick:v,className:"p-2 rounded-lg hover:bg-white/10 transition-colors",title:"Save & Exit",children:(0,z.jsx)(Ir,{className:"w-5 h-5 text-slate-400"})})]})]}),(0,z.jsx)("div",{className:"flex items-center justify-between px-6 py-4 bg-white/5 overflow-x-auto",children:[{num:1,label:"Credentials",icon:Dr},{num:2,label:"Connection",icon:Ya},{num:3,label:"Security",icon:Qe},{num:4,label:"Test",icon:ps},{num:5,label:"Deploy",icon:fs}].map((L,T)=>{let q=L.icon,_=a===L.num,B=a>L.num;return(0,z.jsxs)(po.Fragment,{children:[(0,z.jsxs)("div",{className:"flex flex-col items-center gap-2 min-w-[80px]",children:[(0,z.jsx)("div",{className:U("w-10 h-10 rounded-full flex items-center justify-center transition-all",B?"bg-green-500":_?"bg-gradient-to-r from-cyan-500 to-purple-500":"bg-white/10"),children:B?(0,z.jsx)(mr,{className:"w-5 h-5 text-white"}):(0,z.jsx)(q,{className:"w-5 h-5 text-white"})}),(0,z.jsx)("span",{className:U("text-xs font-medium whitespace-nowrap",_?"text-white":"text-slate-400"),children:L.label})]}),T<4&&(0,z.jsx)("div",{className:U("flex-1 h-0.5 mx-2 min-w-[20px]",a>L.num?"bg-green-500":"bg-white/10")})]},L.num)})}),(0,z.jsx)("div",{className:"p-6",children:(0,z.jsxs)(Ue,{mode:"wait",children:[a===1&&(0,z.jsxs)(G.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},className:"space-y-6",children:[(0,z.jsxs)("div",{className:"text-center mb-6",children:[(0,z.jsx)(Dr,{className:"w-16 h-16 text-cyan-400 mx-auto mb-4"}),(0,z.jsx)("h3",{className:"text-2xl font-bold text-white mb-2",children:"Generate API Credentials"}),(0,z.jsx)("p",{className:"text-slate-400",children:"Secure keys for authenticating your webhook connections"})]}),(0,z.jsxs)("div",{className:"p-4 rounded-lg bg-cyan-500/10 border border-cyan-500/20 flex items-start gap-3",children:[(0,z.jsx)(Xa,{className:"w-5 h-5 text-cyan-400 flex-shrink-0 mt-0.5"}),(0,z.jsxs)("div",{className:"text-sm text-cyan-200",children:[(0,z.jsx)("strong",{children:"Auto-Save Enabled:"})," Your progress is automatically saved as you go. You can close this wizard anytime and resume later from where you left off."]})]}),(0,z.jsxs)("div",{children:[(0,z.jsx)("label",{className:"block text-sm font-medium text-slate-300 mb-2",children:"Credential Name *"}),(0,z.jsx)("input",{type:"text",value:o.apiKeyName,onChange:L=>i({...o,apiKeyName:L.target.value}),placeholder:"e.g., Production API Key",className:"w-full px-4 py-3 rounded-lg bg-white/5 border border-white/10 text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-purple-500"})]}),o.generatedKey?(0,z.jsxs)("div",{className:"space-y-4",children:[(0,z.jsxs)("div",{className:"p-4 rounded-lg bg-green-500/10 border border-green-500/20",children:[(0,z.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,z.jsx)(mr,{className:"w-5 h-5 text-green-400"}),(0,z.jsx)("span",{className:"text-green-400 font-medium",children:"Credentials Generated"})]}),(0,z.jsxs)("div",{className:"space-y-3",children:[(0,z.jsxs)("div",{children:[(0,z.jsx)("label",{className:"block text-xs text-slate-400 mb-1",children:"API Key"}),(0,z.jsxs)("div",{className:"flex items-center gap-2",children:[(0,z.jsx)("code",{className:"flex-1 px-3 py-2 rounded bg-black/30 text-cyan-400 text-sm font-mono",children:o.generatedKey}),(0,z.jsx)("button",{onClick:()=>N(o.generatedKey),className:"p-2 rounded-lg bg-white/10 hover:bg-white/20 transition-colors",children:(0,z.jsx)(gt,{className:"w-4 h-4 text-white"})})]})]}),(0,z.jsxs)("div",{children:[(0,z.jsx)("label",{className:"block text-xs text-slate-400 mb-1",children:"API Secret"}),(0,z.jsxs)("div",{className:"flex items-center gap-2",children:[(0,z.jsx)("code",{className:"flex-1 px-3 py-2 rounded bg-black/30 text-pink-400 text-sm font-mono",children:o.generatedSecret}),(0,z.jsx)("button",{onClick:()=>N(o.generatedSecret),className:"p-2 rounded-lg bg-white/10 hover:bg-white/20 transition-colors",children:(0,z.jsx)(gt,{className:"w-4 h-4 text-white"})})]})]})]})]}),(0,z.jsxs)("div",{className:"p-4 rounded-lg bg-amber-500/10 border border-amber-500/20 flex items-start gap-3",children:[(0,z.jsx)(Dt,{className:"w-5 h-5 text-amber-400 flex-shrink-0 mt-0.5"}),(0,z.jsxs)("div",{className:"text-sm text-amber-200",children:[(0,z.jsx)("strong",{children:"Important:"})," Save these credentials securely. The secret will not be shown again."]})]})]}):(0,z.jsxs)("button",{onClick:w,disabled:!o.apiKeyName,className:"w-full flex items-center justify-center gap-2 px-6 py-3 rounded-lg bg-gradient-to-r from-cyan-500 to-purple-500 text-white font-medium hover:opacity-90 transition-opacity disabled:opacity-50",children:[(0,z.jsx)(et,{className:"w-5 h-5"}),"Generate Credentials"]})]},"step1"),a===2&&(0,z.jsxs)(G.div,{initial:{opacity:0,x:20}
97,animate:{opacity:1,x:0},exit:{opacity:0,x:-20},className:"space-y-6",children:[(0,z.jsxs)("div",{className:"text-center mb-6",children:[(0,z.jsx)(Ya,{className:"w-16 h-16 text-purple-400 mx-auto mb-4"}),(0,z.jsx)("h3",{className:"text-2xl font-bold text-white mb-2",children:"Configure Connection"}),(0,z.jsx)("p",{className:"text-slate-400",children:"Set up your webhook endpoint details"})]}),(0,z.jsxs)("div",{children:[(0,z.jsx)("label",{className:"block text-sm font-medium text-slate-300 mb-2",children:"Connection Name *"}),(0,z.jsx)("input",{type:"text",value:o.connectionName,onChange:L=>i({...o,connectionName:L.target.value}),placeholder:"e.g., Stripe Payment Webhook",className:"w-full px-4 py-3 rounded-lg bg-white/5 border border-white/10 text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-purple-500"})]}),(0,z.jsxs)("div",{children:[(0,z.jsx)("label",{className:"block text-sm font-medium text-slate-300 mb-3",children:"Direction *"}),(0,z.jsx)("div",{className:"grid grid-cols-3 gap-3",children:[{value:"inbound",label:"Inbound",icon:Xa,desc:"Receive data"},{value:"outbound",label:"Outbound",icon:ia,desc:"Send data"},{value:"bidirectional",label:"Both",icon:Ka,desc:"Two-way sync"}].map(L=>{let T=L.icon,q=o.direction===L.value;return(0,z.jsxs)("button",{onClick:()=>i({...o,direction:L.value}),className:U("p-4 rounded-xl border-2 transition-all text-center",q?"border-purple-500 bg-purple-500/10":"border-white/10 bg-white/5 hover:bg-white/10"),children:[(0,z.jsx)(T,{className:"w-6 h-6 text-purple-400 mx-auto mb-2"}),(0,z.jsx)("div",{className:"text-sm font-medium text-white",children:L.label}),(0,z.jsx)("div",{className:"text-xs text-slate-400 mt-1",children:L.desc})]},L.value)})})]}),(0,z.jsxs)("div",{children:[(0,z.jsx)("label",{className:"block text-sm font-medium text-slate-300 mb-2",children:"External URL *"}),(0,z.jsx)("input",{type:"url",value:o.externalUrl,onChange:L=>i({...o,externalUrl:L.target.value}),placeholder:"https://api.example.com/webhook",className:"w-full px-4 py-3 rounded-lg bg-white/5 border border-white/10 text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-purple-500"})]}),(0,z.jsxs)("div",{children:[(0,z.jsx)("label",{className:"block text-sm font-medium text-slate-300 mb-2",children:"HTTP Method"}),(0,z.jsxs)("select",{value:o.method,onChange:L=>i({...o,method:L.target.value}),className:"w-full px-4 py-3 rounded-lg bg-white/5 border border-white/10 text-white focus:outline-none focus:ring-2 focus:ring-purple-500",children:[(0,z.jsx)("option",{value:"POST",children:"POST"}),(0,z.jsx)("option",{value:"GET",children:"GET"}),(0,z.jsx)("option",{value:"PUT",children:"PUT"}),(0,z.jsx)("option",{value:"PATCH",children:"PATCH"})]})]}),(0,z.jsx)("div",{className:"p-4 rounded-lg bg-cyan-500/10 border border-cyan-500/20",children:(0,z.jsxs)("div",{className:"text-sm text-cyan-200",children:[(0,z.jsx)("strong",{children:"Your Webhook URL:"}),(0,z.jsxs)("div",{className:"mt-2 flex items-center gap-2",children:[(0,z.jsxs)("code",{className:"flex-1 px-3 py-2 rounded bg-black/30 text-cyan-400 text-xs font-mono",children:["https://api.taskade.com/webhooks/",o.connectionName.toLowerCase().replace(/\s+/g,"-")||"your-endpoint"]}),(0,z.jsx)("button",{onClick:()=>N(`https://api.taskade.com/webhooks/${o.connectionName.toLowerCase().replace(/\s+/g,"-")}`),className:"p-2 rounded-lg bg-white/10 hover:bg-white/20 transition-colors",children:(0,z.jsx)(gt,{className:"w-4 h-4 text-white"})})]})]})})]},"step2"),a===3&&(0,z.jsxs)(G.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},className:"space-y-6",children:[(0,z.jsxs)("div",{className:"text-center mb-6",children:[(0,z.jsx)(Qe,{className:"w-16 h-16 text-green-400 mx-auto mb-4"}),(0,z.jsx)("h3",{className:"text-2xl font-bold text-white mb-2",children:"Security Configuration"}),(0,z.jsx)("p",{className:"text-slate-400",children:"Protect your webhook with security features"})]}),(0,z.jsxs)("div",{className:"p-4 rounded-xl bg-white/5 border border-white/10",children:[(0,z.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,z.jsxs)("div",{className:"flex items-center gap-3",children:[(0,z.jsx)(Ra,{className:"w-5 h-5 text-purple-400"}),(0,z.jsxs)("div",{children:[(0,z.jsx)("div",{className:"text-sm font-medium text-white",children:"Signature Verification"}),(0,z.jsx)("div",{className:"text-xs text-slate-400",children:"HMAC signature validation"})]})]}),(0,z.jsx)("button",{onClick:()=>i({...o,enableSignature:!o.enableSignature}),className:U("relative w-12 h-6 rounded-full transition-colors",o.enableSignature?"bg-green-500":"bg-white/20"),children:(0,z.jsx)("div",{className:U("absolute top-1 w-4 h-4 rounded-full bg-white transition-transform",o.enableSignature?"left-7":"left-1")})})]}),o.enableSignature&&(0,z.jsxs)("select",{value:o.signatureAlgorithm,onChange:L=>i({...o,signatureAlgorithm:L.target.value}),className:"w-full px-4 py-2 rounded-lg bg-white/5 border border-white/10 text-white text-sm focus:outline-none focus:ring-2 focus:ring-purple-500",children:[(0,z.jsx)("option",{value:"sha256",children:"SHA-256 (Recommended)"}),(0,z.jsx)("option",{value:"sha1",children:"SHA-1"}),(0,z.jsx)("option",{value:"sha512",children:"SHA-512"})]})]}),(0,z.jsxs)("div",{className:"p-4 rounded-xl bg-white/5 border border-white/10",children:[(0,z.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,z.jsxs)("div",{className:"flex items-center gap-3",children:[(0,z.jsx)(et,{className:"w-5 h-5 text-amber-400"}),(0,z.jsxs)("div",{children:[(0,z.jsx)("div",{className:"text-sm font-medium text-white",children:"Rate Limiting"}),(0,z.jsx)("div",{className:"text-xs text-slate-400",children:"Requests per minute"})]})]}),(0,z.jsx)("button",{onClick:()=>i({...o,enableRateLimit:!o.enableRateLimit}),className:U("relative w-12 h-6 rounded-full transition-colors",o.enableRateLimit?"bg-green-500":"bg-white/20"),children:(0,z.jsx)("div",{className:U("absolute top-1 w-4 h-4 rounded-full bg-white transition-transform",o.enableRateLimit?"left-7":"left-1")})})]}),o.enableRateLimit&&(0,z.jsx)("input",{type:"number",value:o.rateLimit,onChange:L=>i({...o,rateLimit:L.target.value}),min:"1",max:"1000",className:"w-full px-4 py-2 rounded-lg bg-white/5 border border-white/10 text-white text-sm focus:outline-none focus:ring-2 focus:ring-purple-500"})]}),(0,z.jsxs)("div",{className:"p-4 rounded-xl bg-white/5 border border-white/10",children:[(0,z.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,z.jsxs)("div",{className:"flex items-center gap-3",children:[(0,z.jsx)(ia,{className:"w-5 h-5 text-cyan-400"}),(0,z.jsxs)("div",{children:[(0,z.jsx)("div",{className:"text-sm font-medium text-white",children:"IP Whitelist"}),(0,z.jsx)("div",{className:"text-xs text-slate-400",children:"Restrict by IP address"})]})]}),(0,z.jsx)("button",{onClick:()=>i({...o,enableIPWhitelist:!o.enableIPWhitelist}),className:U("relative w-12 h-6 rounded-full transition-colors",o.enableIPWhitelist?"bg-green-500":"bg-white/20"),children:(0,z.jsx)("div",{className:U("absolute top-1 w-4 h-4 rounded-full bg-white transition-transform",o.enableIPWhitelist?"left-7":"left-1")})})]}),o.enableIPWhitelist&&(0,z.jsx)("textarea",{value:o.ipWhitelist,onChange:L=>i({...o,ipWhitelist:L.target.value}),placeholder:`192.168.1.1 9810.0.0.0/8`,rows:3,className:"w-full px-4 py-2 rounded-lg bg-white/5 border border-white/10 text-white text-sm placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-purple-500 resize-none"})]}),(0,z.jsxs)("div",{className:"p-4 rounded-lg bg-green-500/10 border border-green-500/20 flex items-start gap-3",children:[(0,z.jsx)(mr,{className:"w-5 h-5 text-green-400 flex-shrink-0 mt-0.5"}),(0,z.jsx)("div",{className:"text-sm text-green-200",children:"Security features configured. Your webhook will be protected against common threats."})]})]},"step3"),a===4&&(0,z.jsxs)(G.div,{initial:{opacity:0,x:20}
98,animate:{opacity:1,x:0},exit:{opacity:0,x:-20},className:"space-y-6",children:[(0,z.jsxs)("div",{className:"text-center mb-6",children:[(0,z.jsx)(ps,{className:"w-16 h-16 text-pink-400 mx-auto mb-4"}),(0,z.jsx)("h3",{className:"text-2xl font-bold text-white mb-2",children:"Test Connection"}),(0,z.jsx)("p",{className:"text-slate-400",children:"Verify your webhook configuration"})]}),(0,z.jsxs)("div",{children:[(0,z.jsx)("label",{className:"block text-sm font-medium text-slate-300 mb-2",children:"Test Payload"}),(0,z.jsx)("textarea",{value:o.testPayload,onChange:L=>i({...o,testPayload:L.target.value}),rows:8,className:"w-full px-4 py-3 rounded-lg bg-black/30 border border-white/10 text-white font-mono text-sm focus:outline-none focus:ring-2 focus:ring-purple-500 resize-none"})]}),o.testResult?(0,z.jsxs)("div",{className:U("p-6 rounded-xl border-2",o.testResult.success?"bg-green-500/10 border-green-500/30":"bg-red-500/10 border-red-500/30"),children:[(0,z.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[o.testResult.success?(0,z.jsx)(mr,{className:"w-6 h-6 text-green-400"}):(0,z.jsx)(Dt,{className:"w-6 h-6 text-red-400"}),(0,z.jsxs)("div",{children:[(0,z.jsx)("div",{className:U("text-lg font-semibold",o.testResult.success?"text-green-400":"text-red-400"),children:o.testResult.success?"Test Passed":"Test Failed"}),(0,z.jsx)("div",{className:"text-sm text-slate-400",children:o.testResult.message})]})]}),o.testResult.success&&(0,z.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,z.jsxs)("div",{className:"p-3 rounded-lg bg-white/5",children:[(0,z.jsx)("div",{className:"text-xs text-slate-400 mb-1",children:"Status Code"}),(0,z.jsx)("div",{className:"text-lg font-semibold text-green-400",children:o.testResult.statusCode})]}),(0,z.jsxs)("div",{className:"p-3 rounded-lg bg-white/5",children:[(0,z.jsx)("div",{className:"text-xs text-slate-400 mb-1",children:"Response Time"}),(0,z.jsxs)("div",{className:"text-lg font-semibold text-cyan-400",children:[o.testResult.responseTime,"ms"]})]})]}),(0,z.jsx)("button",{onClick:()=>i({...o,testResult:null}),className:"mt-4 w-full px-4 py-2 rounded-lg bg-white/10 hover:bg-white/20 text-white text-sm transition-colors",children:"Run Another Test"})]}):(0,z.jsx)("button",{onClick:k,disabled:s,className:"w-full flex items-center justify-center gap-2 px-6 py-3 rounded-lg bg-gradient-to-r from-pink-500 to-purple-500 text-white font-medium hover:opacity-90 transition-opacity disabled:opacity-50",children:s?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)("div",{className:"w-5 h-5 border-2 border-white/30 border-t-white rounded-full animate-spin"}),"Testing..."]}):(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(ps,{className:"w-5 h-5"}),"Run Test"]})})]},"step4"),a===5&&(0,z.jsxs)(G.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},className:"space-y-6",children:[(0,z.jsxs)("div",{className:"text-center mb-6",children:[(0,z.jsx)(fs,{className:"w-16 h-16 text-purple-400 mx-auto mb-4"}),(0,z.jsx)("h3",{className:"text-2xl font-bold text-white mb-2",children:"Ready to Deploy"}),(0,z.jsx)("p",{className:"text-slate-400",children:"Review and activate your webhook"})]}),(0,z.jsxs)("div",{className:"p-6 rounded-xl bg-gradient-to-br from-cyan-500/10 to-purple-500/10 border border-cyan-500/20 space-y-4",children:[(0,z.jsx)("h4",{className:"text-lg font-semibold text-white",children:"Configuration Summary"}),(0,z.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,z.jsxs)("div",{className:"flex justify-between",children:[(0,z.jsx)("span",{className:"text-slate-400",children:"Connection:"}),(0,z.jsx)("span",{className:"text-white font-medium",children:o.connectionName})]}),(0,z.jsxs)("div",{className:"flex justify-between",children:[(0,z.jsx)("span",{className:"text-slate-400",children:"Direction:"}),(0,z.jsx)("span",{className:"text-white capitalize",children:o.direction})]}),(0,z.jsxs)("div",{className:"flex justify-between",children:[(0,z.jsx)("span",{className:"text-slate-400",children:"Method:"}),(0,z.jsx)("span",{className:"text-white",children:o.method})]}),(0,z.jsxs)("div",{className:"flex justify-between",children:[(0,z.jsx)("span",{className:"text-slate-400",children:"Signature:"}),(0,z.jsx)("span",{className:U("font-medium",o.enableSignature?"text-green-400":"text-slate-400"),children:o.enableSignature?`Enabled (${o.signatureAlgorithm.toUpperCase()})`:"Disabled"})]}),(0,z.jsxs)("div",{className:"flex justify-between",children:[(0,z.jsx)("span",{className:"text-slate-400",children:"Rate Limit:"}),(0,z.jsx)("span",{className:U("font-medium",o.enableRateLimit?"text-green-400":"text-slate-400"),children:o.enableRateLimit?`${o.rateLimit}/min`:"Disabled"})]}),(0,z.jsxs)("div",{className:"flex justify-between",children:[(0,z.jsx)("span",{className:"text-slate-400",children:"IP Whitelist:"}),(0,z.jsx)("span",{className:U("font-medium",o.enableIPWhitelist?"text-green-400":"text-slate-400"),children:o.enableIPWhitelist?"Enabled":"Disabled"})]})]})]}),(0,z.jsxs)("div",{className:"space-y-3",children:[(0,z.jsx)("h4",{className:"text-sm font-medium text-slate-300",children:"Next Steps:"}),["Webhook will be created and activated","Credentials will be stored securely","Security rules will be applied","Monitoring will begin immediately"].map((L,T)=>(0,z.jsxs)("div",{className:"flex items-start gap-3",children:[(0,z.jsx)(mr,{className:"w-5 h-5 text-green-400 flex-shrink-0 mt-0.5"}),(0,z.jsx)("span",{className:"text-slate-300 text-sm",children:L})]},T))]}
98),(0,z.jsx)("button",{onClick:C,disabled:c,className:"w-full flex items-center justify-center gap-2 px-6 py-3 rounded-lg bg-gradient-to-r from-cyan-500 via-purple-500 to-pink-500 text-white font-medium hover:opacity-90 transition-opacity disabled:opacity-50",children:c?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)("div",{className:"w-5 h-5 border-2 border-white/30 border-t-white rounded-full animate-spin"}),"Creating..."]}):(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(fs,{className:"w-5 h-5"}),"Deploy Webhook"]})})]},"step5")]})}),a<5&&(0,z.jsxs)("div",{className:"sticky bottom-0 flex items-center justify-between p-6 border-t border-white/10 bg-slate-900/95 backdrop-blur-xl",children:[(0,z.jsx)("button",{onClick:()=>n(Math.max(1,a-1)),disabled:a===1,className:"px-4 py-2 rounded-lg bg-white/5 hover:bg-white/10 text-white transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:"Back"}),(0,z.jsx)("button",{onClick:()=>n(a+1),disabled:!E(),className:"px-6 py-2 rounded-lg bg-gradient-to-r from-cyan-500 via-purple-500 to-pink-500 text-white font-medium hover:opacity-90 transition-opacity disabled:opacity-50 disabled:cursor-not-allowed",children:"Next"})]})]})]})})},xq=Vbe;var it=R(ke()),Ube=()=>{let[e,t]=wq.useState(!1),r=n=>{navigator.clipboard.writeText(n),$.success("Copied to clipboard")},a=[{title:"Generate API Credentials",description:"Create secure API keys for your integrations",code:"Navigate to Credentials \u2192 Generate New \u2192 Copy Key & Secret"},{title:"Create Webhook Connection",description:"Set up your first webhook endpoint",code:`{ 99 "name": "My Integration", 100 "direction": "inbound", 101 "url": "https://api.example.com/webhook", 102 "method": "POST", 103 "apiKey": "your-api-key-here" 104}`},{title:"Configure External Service",description:"Point your external service to the webhook URL",code:`Webhook URL: https://api.taskade.com/webhooks/your-endpoint 105API Key: [Your Generated Key] 106Secret: [Your Generated Secret]`},{title:"Monitor Events",description:"Watch webhook activity in real-time",code:"Navigate to Event Log \u2192 Filter by status \u2192 Inspect payloads"},{title:"Set Up Security Rules",description:"Configure threat detection and rate limiting",code:"Navigate to Security \u2192 Configure Rules \u2192 Enable Monitoring"}];return(0,it.jsxs)($e,{children:[(0,it.jsxs)("div",{className:"space-y-8",children:[(0,it.jsxs)("div",{className:"flex items-start justify-between",children:[(0,it.jsxs)("div",{children:[(0,it.jsx)("h1",{className:"text-3xl font-bold text-white",children:"Setup Guide"}),(0,it.jsx)("p",{className:"text-slate-400 mt-2",children:"Get started with secure webhook automation"})]}),(0,it.jsxs)("button",{onClick:()=>t(!0),className:"flex items-center gap-2 px-6 py-3 rounded-lg bg-gradient-to-r from-cyan-500 via-purple-500 to-pink-500 text-white font-medium hover:opacity-90 transition-opacity shadow-lg shadow-purple-500/20",children:[(0,it.jsx)(kt,{className:"w-5 h-5"}),"Launch Setup Wizard"]})]}),(0,it.jsx)(G.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"rounded-2xl backdrop-blur-xl bg-gradient-to-br from-cyan-500/20 via-purple-500/20 to-pink-500/20 border border-cyan-500/30 p-8",children:(0,it.jsxs)("div",{className:"flex items-start gap-6",children:[(0,it.jsx)("div",{className:"flex-shrink-0 w-16 h-16 rounded-2xl bg-gradient-to-br from-cyan-500 via-purple-500 to-pink-500 flex items-center justify-center",children:(0,it.jsx)(et,{className:"w-8 h-8 text-white"})}),(0,it.jsxs)("div",{className:"flex-1",children:[(0,it.jsx)("h2",{className:"text-2xl font-bold text-white mb-2",children:"Quick Start with Wizard"}),(0,it.jsx)("p",{className:"text-slate-300 mb-4",children:"Skip the manual setup! Our interactive wizard guides you through creating your first webhook in 5 easy steps:"}),(0,it.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-5 gap-3 mb-4",children:["Generate Credentials","Configure Connection","Set Security","Test Setup","Deploy Live"].map((n,o)=>(0,it.jsxs)("div",{className:"flex items-center gap-2 text-sm text-slate-300",children:[(0,it.jsx)("div",{className:"w-6 h-6 rounded-full bg-white/10 flex items-center justify-center text-xs font-bold",children:o+1}),n]},o))}),(0,it.jsxs)("button",{onClick:()=>t(!0),className:"flex items-center gap-2 px-6 py-2 rounded-lg bg-white/10 hover:bg-white/20 text-white font-medium transition-colors",children:[(0,it.jsx)(kt,{className:"w-4 h-4"}),"Start Wizard"]})]})]})}),(0,it.jsx)("div",{className:"space-y-6",children:a.map((n,o)=>(0,it.jsx)(G.div,{initial:{opacity:0,y:20}
106,animate:{opacity:1,y:0},transition:{delay:o*.1},className:"rounded-2xl backdrop-blur-xl bg-white/5 border border-white/10 p-6",children:(0,it.jsxs)("div",{className:"flex items-start gap-4",children:[(0,it.jsx)("div",{className:"flex-shrink-0 w-10 h-10 rounded-full bg-gradient-to-br from-cyan-500 via-purple-500 to-pink-500 flex items-center justify-center text-white font-bold",children:o+1}),(0,it.jsxs)("div",{className:"flex-1",children:[(0,it.jsx)("h3",{className:"text-xl font-semibold text-white mb-2",children:n.title}),(0,it.jsx)("p",{className:"text-slate-400 mb-4",children:n.description}),(0,it.jsxs)("div",{className:"relative",children:[(0,it.jsx)("pre",{className:"bg-black/30 rounded-lg p-4 text-sm text-slate-300 overflow-x-auto",children:(0,it.jsx)("code",{children:n.code})}),(0,it.jsx)("button",{onClick:()=>r(n.code),className:"absolute top-2 right-2 p-2 rounded-lg bg-white/10 hover:bg-white/20 transition-colors",children:(0,it.jsx)(gt,{className:"w-4 h-4 text-white"})})]})]})]})},o))}),(0,it.jsx)(G.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.6},className:"rounded-2xl backdrop-blur-xl bg-gradient-to-br from-green-500/20 to-emerald-500/20 border border-green-500/30 p-6",children:(0,it.jsxs)("div",{className:"flex items-start gap-4",children:[(0,it.jsx)(We,{className:"w-6 h-6 text-green-400 flex-shrink-0 mt-1"}),(0,it.jsxs)("div",{children:[(0,it.jsx)("h3",{className:"text-lg font-semibold text-white mb-2",children:"Need Help?"}),(0,it.jsx)("p",{className:"text-slate-300 mb-4",children:"Our AI assistant is available 24/7 to help you with webhook setup, security configuration, and troubleshooting."}),(0,it.jsx)("p",{className:"text-sm text-slate-400",children:"Click the chat button in the bottom-right corner to get started!"})]})]})})]}),(0,it.jsx)(xq,{isOpen:e,onClose:()=>t(!1),onComplete:()=>{$.success("Webhook setup complete!"),t(!1)}})]})},Sq=Ube;var Lp=R(Q());var Je=R(ke()),qbe=()=>{let[e,t]=Lp.useState([]),[r,a]=Lp.useState(!0),[n,o]=Lp.useState(null);Lp.useEffect(()=>{i()},[]);let i=async()=>{try{let u=await Ye.get("/api/taskade/projects/2y1Qc1P4iAosew5d/nodes");t(u.data.payload.nodes)}catch(u){console.error("Failed to load endpoints:",u),$.error("Failed to load API endpoints")}finally{a(!1)}},s=async u=>{o(u.id);try{await new Promise(f=>setTimeout(f,1500)),$.success(`${u.fieldValues["/text"]} tested successfully`)}catch{$.error("Test failed")}finally{o(null)}},l=u=>{let f=`${window.location.origin}${u}`;navigator.clipboard.writeText(f),$.success("Endpoint URL copied")},c=u=>{switch(u){case"get":return"from-green-500 to-emerald-500";case"post":return"from-blue-500 to-cyan-500";case"put":return"from-amber-500 to-orange-500";case"patch":return"from-purple-500 to-pink-500";case"delete":return"from-red-500 to-rose-500";default:return"from-slate-500 to-slate-600"}},d=u=>{switch(u){case"api_key":return"bg-blue-500/20 text-blue-400";case"bearer":return"bg-purple-500/20 text-purple-400";case"basic":return"bg-amber-500/20 text-amber-400";default:return"bg-slate-500/20 text-slate-400"}};return r?(0,Je.jsx)($e,{children:(0,Je.jsx)("div",{className:"flex items-center justify-center h-96",children:(0,Je.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-t-2 border-b-2 border-purple-500"})})}):(0,Je.jsx)($e,{children:(0,Je.jsxs)("div",{className:"space-y-6",children:[(0,Je.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Je.jsxs)("div",{children:[(0,Je.jsx)("h1",{className:"text-3xl font-bold text-white",children:"API Endpoints"}),(0,Je.jsx)("p",{className:"text-slate-400 mt-2",children:"Manage and test your custom API endpoints"})]}),(0,Je.jsxs)("button",{className:"flex items-center gap-2 px-4 py-2 rounded-lg bg-gradient-to-r from-cyan-500 via-purple-500 to-pink-500 text-white font-medium hover:opacity-90 transition-opacity",children:[(0,Je.jsx)(Bt,{className:"w-5 h-5"}),"New Endpoint"]})]}),(0,Je.jsx)("div",{className:"grid gap-4",children:e.map((u,f)=>{let p=u.fieldValues["/attributes/@api3"],m=u.fieldValues["/attributes/@api4"],h=u.fieldValues["/attributes/@api5"],g=n===u.id,y=m==="active";return(0,Je.jsxs)(G.div,{initial:{opacity:0,y:20}
106,animate:{opacity:1,y:0},transition:{delay:f*.1},className:"rounded-2xl backdrop-blur-xl bg-white/5 border border-white/10 p-6 hover:bg-white/10 transition-colors",children:[(0,Je.jsx)("div",{className:"flex items-start justify-between mb-4",children:(0,Je.jsxs)("div",{className:"flex-1",children:[(0,Je.jsxs)("div",{className:"flex items-center gap-3 mb-2",children:[(0,Je.jsx)("div",{className:U("px-3 py-1 rounded-lg text-sm font-bold bg-gradient-to-r text-white",c(p)),children:p?.toUpperCase()}),(0,Je.jsx)("h3",{className:"text-lg font-semibold text-white",children:u.fieldValues["/text"]}),(0,Je.jsx)("span",{className:U("px-2 py-1 rounded text-xs font-medium",y?"bg-green-500/20 text-green-400":"bg-slate-500/20 text-slate-400"),children:m})]}),(0,Je.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,Je.jsx)("code",{className:"text-sm text-slate-300 font-mono bg-black/30 px-3 py-1 rounded",children:u.fieldValues["/attributes/@api2"]}),(0,Je.jsx)("button",{onClick:()=>l(u.fieldValues["/attributes/@api2"]),className:"p-1.5 rounded hover:bg-white/10 transition-colors",children:(0,Je.jsx)(gt,{className:"w-4 h-4 text-slate-400"})})]}),(0,Je.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 text-sm",children:[(0,Je.jsxs)("div",{children:[(0,Je.jsx)("span",{className:"text-slate-400",children:"Auth:"}),(0,Je.jsx)("span",{className:U("ml-2 px-2 py-0.5 rounded text-xs font-medium",d(h)),children:h?.replace("_"," ")})]}),(0,Je.jsxs)("div",{children:[(0,Je.jsx)("span",{className:"text-slate-400",children:"Rate Limit:"}),(0,Je.jsxs)("span",{className:"ml-2 text-white",children:[u.fieldValues["/attributes/@api7"]," req/min"]})]}),(0,Je.jsxs)("div",{className:"col-span-2",children:[(0,Je.jsx)("span",{className:"text-slate-400",children:"Response Schema:"}),(0,Je.jsx)("code",{className:"ml-2 text-xs text-slate-300 font-mono",children:u.fieldValues["/attributes/@api6"]})]})]})]})}),(0,Je.jsxs)("div",{className:"flex gap-2 pt-4 border-t border-white/10",children:[(0,Je.jsx)("button",{onClick:()=>s(u),disabled:g||!y,className:"flex-1 flex items-center justify-center gap-2 px-4 py-2 rounded-lg bg-gradient-to-r from-green-500 to-emerald-500 text-white font-medium hover:opacity-90 transition-opacity disabled:opacity-50 disabled:cursor-not-allowed",children:g?(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)("div",{className:"animate-spin rounded-full h-4 w-4 border-t-2 border-b-2 border-white"}),"Testing..."]}):(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(Nr,{className:"w-4 h-4"}),"Test Endpoint"]})}),(0,Je.jsxs)("button",{className:"flex items-center justify-center gap-2 px-4 py-2 rounded-lg bg-white/5 hover:bg-white/10 text-white transition-colors",children:[(0,Je.jsx)(Yr,{className:"w-4 h-4"}),"View Docs"]})]})]},u.id)})}),e.length===0&&(0,Je.jsxs)("div",{className:"text-center py-12 rounded-xl bg-white/5 border border-white/10",children:[(0,Je.jsx)(mn,{className:"w-12 h-12 text-slate-400 mx-auto mb-4"}),(0,Je.jsx)("p",{className:"text-white font-medium",children:"No API endpoints yet"}),(0,Je.jsx)("p",{className:"text-slate-400 text-sm mt-2",children:"Create your first endpoint to get started"})]})]})})},Cq=qbe;var Tp=R(Q());var tt=R(ke()),zbe=()=>{let[e,t]=Tp.useState([]),[r,a]=Tp.useState(!0),[n,o]=Tp.useState("all");Tp.useEffect(()=>{i()},[]);let i=async()=>{try{let u=await Ye.get("/api/taskade/projects/hHrioxS222SWLwKR/nodes");t(u.data.payload.nodes)}catch(u){console.error("Failed to load API logs:",u)}finally{a(!1)}},s=u=>{let f=parseInt(u);return f>=200&&f<300?(0,tt.jsx)(We,{className:"w-5 h-5 text-green-400"}):f>=400&&f<500?(0,tt.jsx)(Ct,{className:"w-5 h-5 text-orange-400"}):f>=500?(0,tt.jsx)(Ct,{className:"w-5 h-5 text-red-400"}):(0,tt.jsx)(vt,{className:"w-5 h-5 text-yellow-400"})},l=u=>{let f=parseInt(u);return f>=200&&f<300?"bg-green-500/20 text-green-400 border-green-500/30":f>=400&&f<500?"bg-orange-500/20 text-orange-400 border-orange-500/30":f>=500?"bg-red-500/20 text-red-400 border-red-500/30":"bg-yellow-500/20 text-yellow-400 border-yellow-500/30"},c=u=>{switch(u?.toLowerCase()){case"get":return"bg-green-500/20 text-green-400";case"post":return"bg-blue-500/20 text-blue-400";case"put":return"bg-amber-500/20 text-amber-400";case"patch":return"bg-purple-500/20 text-purple-400";case"delete":return"bg-red-500/20 text-red-400";default:return"bg-slate-500/20 text-slate-400"}},d=n==="all"?e:e.filter(u=>{let f=parseInt(u.fieldValues["/attributes/@req4"]);return n==="success"?f>=200&&f<300:n==="error"?f>=400:!0});return r?(0,tt.jsx)($e,{children:(0,tt.jsx)("div",{className:"flex items-center justify-center h-96",children:(0,tt.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-t-2 border-b-2 border-purple-500"})})}):(0,tt.jsx)($e,{children:(0,tt.jsxs)("div",{className:"space-y-6",children:[(0,tt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,tt.jsxs)("div",{children:[(0,tt.jsx)("h1",{className:"text-3xl font-bold text-white",children:"API Request Logs"}),(0,tt.jsx)("p",{className:"text-slate-400 mt-2",children:"Monitor all API calls and responses"})]}),(0,tt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,tt.jsx)(Bn,{className:"w-5 h-5 text-slate-400"}),(0,tt.jsxs)("select",{value:n,onChange:u=>o(u.target.value),className:"bg-white/5 border border-white/10 rounded-lg px-4 py-2 text-white text-sm focus:outline-none focus:ring-2 focus:ring-purple-500/50",children:[(0,tt.jsx)("option",{value:"all",children:"All Requests"}),(0,tt.jsx)("option",{value:"success",children:"Success (2xx)"}),(0,tt.jsx)("option",{value:"error",children:"Errors (4xx, 5xx)"})]})]})]}),(0,tt.jsx)("div",{className:"space-y-3",children:d.length===0?(0,tt.jsxs)("div",{className:"text-center py-12 rounded-xl bg-white/5 border border-white/10",children:[(0,tt.jsx)(jt,{className:"w-12 h-12 text-slate-400 mx-auto mb-4"}),(0,tt.jsx)("p",{className:"text-white font-medium",children:"No API requests yet"}),(0,tt.jsx)("p",{className:"text-slate-400 text-sm mt-2",children:"API calls will appear here"})]}):d.map((u,f)=>{let p=u.fieldValues["/attributes/@req4"],m=u.fieldValues["/attributes/@req3"];return(0,tt.jsx)(G.div,{initial:{opacity:0,x:-20}
106,animate:{opacity:1,x:0},transition:{delay:f*.05},className:"rounded-xl backdrop-blur-xl bg-white/5 border border-white/10 p-4 hover:bg-white/10 transition-colors",children:(0,tt.jsxs)("div",{className:"flex items-start gap-4",children:[(0,tt.jsx)("div",{className:"mt-1",children:s(p)}),(0,tt.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,tt.jsxs)("div",{className:"flex items-center gap-2 mb-2 flex-wrap",children:[(0,tt.jsx)("span",{className:U("px-2 py-0.5 rounded text-xs font-bold",c(m)),children:m?.toUpperCase()}),(0,tt.jsx)("code",{className:"text-white font-mono text-sm",children:u.fieldValues["/attributes/@req2"]}),(0,tt.jsx)("span",{className:U("px-2 py-0.5 rounded text-xs font-medium border",l(p)),children:p})]}),(0,tt.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 text-sm",children:[(0,tt.jsxs)("div",{children:[(0,tt.jsx)("span",{className:"text-slate-400",children:"Client IP:"}),(0,tt.jsx)("p",{className:"text-white font-mono text-xs",children:u.fieldValues["/attributes/@req5"]})]}),(0,tt.jsxs)("div",{children:[(0,tt.jsx)("span",{className:"text-slate-400",children:"Response Time:"}),(0,tt.jsxs)("p",{className:"text-white",children:[u.fieldValues["/attributes/@req6"],"ms"]})]}),(0,tt.jsxs)("div",{className:"col-span-2",children:[(0,tt.jsx)("span",{className:"text-slate-400",children:"User Agent:"}),(0,tt.jsx)("p",{className:"text-white text-xs truncate",children:u.fieldValues["/attributes/@req7"]})]})]}),u.fieldValues["/attributes/@req8"]&&(0,tt.jsxs)("div",{className:"mt-2 p-2 rounded bg-black/30 border border-white/10",children:[(0,tt.jsx)("p",{className:"text-xs text-slate-400 mb-1",children:"Request Body:"}),(0,tt.jsx)("code",{className:"text-xs text-slate-300 font-mono",children:u.fieldValues["/attributes/@req8"]})]})]})]})},u.id)})})]})})},kq=zbe;var on=R(Q());var Nq=e=>{try{return{valid:!0,parsed:JSON.parse(e)}}catch(t){return{valid:!1,error:t instanceof Error?t.message:"Invalid JSON"}}},Iq=(e,t)=>{let r=[],a=(n,o,i="root")=>{if(o.type){let s=Array.isArray(n)?"array":typeof n;s!==o.type&&n!==null&&r.push({path:i,message:`Expected type ${o.type}, got ${s}`,type:"type"})}o.required&&Array.isArray(o.required)&&o.required.forEach(s=>{s in n||r.push({path:`${i}.${s}`,message:`Required field "${s}" is missing`,type:"required"})}),o.properties&&typeof n=="object"&&n!==null&&Object.keys(o.properties).forEach(s=>{s in n&&a(n[s],o.properties[s],`${i}.${s}`)}),o.type==="string"&&typeof n=="string"&&(o.minLength&&n.length<o.minLength&&r.push({path:i,message:`String length ${n.length} is less than minimum ${o.minLength}`,type:"minLength"}),o.maxLength&&n.length>o.maxLength&&r.push({path:i,message:`String length ${n.length} exceeds maximum ${o.maxLength}`,type:"maxLength"}),o.pattern&&(new RegExp(o.pattern).test(n)||r.push({path:i,message:`String does not match pattern ${o.pattern}`,type:"pattern"}))),o.type==="number"&&typeof n=="number"&&(o.minimum!==void 0&&n<o.minimum&&r.push({path:i,message:`Value ${n} is less than minimum ${o.minimum}`,type:"minimum"}),o.maximum!==void 0&&n>o.maximum&&r.push({path:i,message:`Value ${n} exceeds maximum ${o.maximum}`,type:"maximum"})),o.type==="array"&&Array.isArray(n)&&(o.minItems&&n.length<o.minItems&&r.push({path:i,message:`Array length ${n.length} is less than minimum ${o.minItems}`,type:"minItems"}),o.maxItems&&n.length>o.maxItems&&r.push({path:i,message:`Array length ${n.length} exceeds maximum ${o.maxItems}`,type:"maxItems"}),o.items&&n.forEach((s,l)=>{a(s,o.items,`${i}[${l}]`)}))};return a(e,t),{valid:r.length===0,errors:r}},Pq={userEvent:{type:"object",required:["event","user"],properties:{event:{type:"string"},user:{type:"object",required:["id","email"],properties:{id:{type:"string"},email:{type:"string",pattern:"^[^@]+@[^@]+\\.[^@]+$"},name:{type:"string"}}}}},paymentEvent:{type:"object",required:["event","amount","currency"],properties:{event:{type:"string"},amount:{type:"number",minimum:0},currency:{type:"string",minLength:3,maxLength:3},orderId:{type:"string"}}},taskEvent:{type:"object",required:["event","task"],properties:{event:{type:"string"},task:{type:"object",required:["id","title"],properties:{id:{type:"string"},title:{type:"string",minLength:1},status:{type:"string"}}}}}};var Eq=e=>{let t=JSON.stringify(e,null,2);q1(t,"webhook-tests.json","application/json")},Aq=e=>{let t=["Timestamp","Method","URL","Status","Status Text","Response Time (ms)","Request Body","Response Body"],r=e.map(n=>[n.timestamp.toISOString(),n.method,n.url,n.status.toString(),n.statusText,n.responseTime.toString(),n.requestBody.replace(/\n/g," "),n.responseBody.replace(/\n/g," ")]),a=[t.join(","),...r.map(n=>n.map(o=>`"${o}"`).join(","))].join(` 107`);q1(a,"webhook-tests.csv","text/csv")},Lq=e=>{let t={info:{name:"Webhook Tests",description:"Exported from Webhook Testing Playground",schema:"https://schema.getpostman.com/json/collection/v2.1.0/collection.json"},item:e.map(r=>{let a;try{let n=JSON.parse(r.requestBody);a={mode:"raw",raw:JSON.stringify(n,null,2),options:{raw:{language:"json"}}}}catch{a={mode:"raw",raw:r.requestBody}}return{name:`${r.method} ${r.url}`,request:{method:r.method,header:Object.entries(r.headers).map(([n,o])=>({key:n,value:o,type:"text"})),body:a,url:{raw:r.url,protocol:r.url.startsWith("https")?"https":"http",host:r.url.split("/")[2]?.split(":")||[],path:r.url.split("/").slice(3)}},response:[{name:`${r.status} ${r.statusText}`,originalRequest:{method:r.method,header:Object.entries(r.headers).map(([n,o])=>({key:n,value:o,type:"text"})),body:a,url:r.url},status:r.statusText,code:r.status,_postman_previewlanguage:"json",header:[{key:"Content-Type",value:"application/json"}],body:r.responseBody}]}})};q1(JSON.stringify(t,null,2),"webhook-tests-postman.json","application/json")},Tq=e=>{let t=["# Webhook Test Results","",`Generated: ${new Date().toLocaleStr
107ing()}`,"","## Test Summary","",`Total Tests: ${e.length}`,`Successful: ${e.filter(r=>r.status>=200&&r.status<300).length}`,`Failed: ${e.filter(r=>r.status>=400).length}`,`Average Response Time: ${Math.round(e.reduce((r,a)=>r+a.responseTime,0)/e.length)}ms`,"","## Test Details","",...e.map(r=>[`### ${r.method} ${r.url}`,"",`**Timestamp:** ${r.timestamp.toLocaleString()}`,`**Status:** ${r.status} ${r.statusText}`,`**Response Time:** ${r.responseTime}ms`,"","**Request Body:**","```json",r.requestBody,"```","","**Response Body:**","```json",r.responseBody,"```","","---",""]).flat()].join(` 108`);q1(t,"webhook-tests.md","text/markdown")},q1=(e,t,r)=>{let a=new Blob([e],{type:r}),n=URL.createObjectURL(a),o=document.createElement("a");o.href=n,o.download=t,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL(n)};var Rp=R(Q());var qe=R(ke()),Hbe=({onSelectEndpoint:e})=>{let[t,r]=Rp.useState([{id:"1",path:"/mock/success",method:"POST",statusCode:200,delay:200,response:JSON.stringify({success:!0,message:"Mock response",timestamp:"{{timestamp}}"},null,2),enabled:!0},{id:"2",path:"/mock/error",method:"POST",statusCode:500,delay:300,response:JSON.stringify({error:"Internal Server Error",message:"Mock error response"},null,2),enabled:!0},{id:"3",path:"/mock/slow",method:"GET",statusCode:200,delay:2e3,response:JSON.stringify({message:"Slow response simulation",data:[]},null,2),enabled:!0}]),[a,n]=Rp.useState(!1),[o,i]=Rp.useState({path:"/mock/custom",method:"POST",statusCode:200,delay:200,response:`{ 109 "message": "Custom mock response" 110}`,enabled:!0});Rp.useEffect(()=>{let m=localStorage.getItem("mock-endpoints");m&&r(JSON.parse(m))},[]);let s=m=>{r(m),localStorage.setItem("mock-endpoints",JSON.stringify(m))},l=()=>{if(!o.path){$.error("Path is required");return}let m={id:Date.now().toString(),path:o.path,method:o.method||"POST",statusCode:o.statusCode||200,delay:o.delay||200,response:o.response||"{}",enabled:!0};s([...t,m]),n(!1),i({path:"/mock/custom",method:"POST",statusCode:200,delay:200,response:`{ 111 "message": "Custom mock response" 112}`,enabled:!0}),$.success("Mock endpoint added")},c=m=>{s(t.filter(h=>h.id!==m)),$.success("Mock endpoint deleted")},d=m=>{s(t.map(h=>h.id===m?{...h,enabled:!h.enabled}:h))},u=m=>{let h=`${window.location.origin}${m}`;navigator.clipboard.writeText(h),$.success("Mock URL copied")},f=m=>{let h=`${window.location.origin}${m}`;e(h),$.success("Mock endpoint selected")},p=m=>m>=200&&m<300?"text-green-400 bg-green-500/20":m>=400&&m<500?"text-orange-400 bg-orange-500/20":m>=500?"text-red-400 bg-red-500/20":"text-slate-400 bg-slate-500/20";return(0,qe.jsxs)("div",{className:"space-y-4",children:[(0,qe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,qe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,qe.jsx)(Oi,{className:"w-5 h-5 text-purple-400"}),(0,qe.jsx)("h3",{className:"text-lg font-semibold text-white",children:"Mock Server"})]}),(0,qe.jsxs)("button",{onClick:()=>n(!a),className:"flex items-center gap-2 px-3 py-1.5 rounded-lg bg-purple-500/20 hover:bg-purple-500/30 text-purple-400 text-sm transition-colors",children:[(0,qe.jsx)(Bt,{className:"w-4 h-4"}),"Add Mock"]})]}),(0,qe.jsx)(Ue,{children:a&&(0,qe.jsxs)(G.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"rounded-lg bg-white/5 border border-white/10 p-4 space-y-3",children:[(0,qe.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,qe.jsxs)("div",{children:[(0,qe.jsx)("label",{className:"block text-xs text-slate-400 mb-1",children:"Path"}),(0,qe.jsx)("input",{type:"text",value:o.path,onChange:m=>i({...o,path:m.target.value}),className:"w-full bg-black/30 border border-white/10 rounded px-3 py-1.5 text-sm text-white focus:outline-none focus:ring-2 focus:ring-purple-500/50"})]}),(0,qe.jsxs)("div",{children:[(0,qe.jsx)("label",{className:"block text-xs text-slate-400 mb-1",children:"Method"}),(0,qe.jsxs)("select",{value:o.method,onChange:m=>i({...o,method:m.target.value}),className:"w-full bg-black/30 border border-white/10 rounded px-3 py-1.5 text-sm text-white focus:outline-none focus:ring-2 focus:ring-purple-500/50",children:[(0,qe.jsx)("option",{value:"GET",children:"GET"}),(0,qe.jsx)("option",{value:"POST",children:"POST"}),(0,qe.jsx)("option",{value:"PUT",children:"PUT"}),(0,qe.jsx)("option",{value:"PATCH",children:"PATCH"}),(0,qe.jsx)("option",{value:"DELETE",children:"DELETE"})]})]}),(0,qe.jsxs)("div",{children:[(0,qe.jsx)("label",{className:"block text-xs text-slate-400 mb-1",children:"Status Code"}),(0,qe.jsx)("input",{type:"number",value:o.statusCode,onChange:m=>i({...o,statusCode:parseInt(m.target.value)}),className:"w-full bg-black/30 border border-white/10 rounded px-3 py-1.5 text-sm text-white focus:outline-none focus:ring-2 focus:ring-purple-500/50"})]}),(0,qe.jsxs)("div",{children:[(0,qe.jsx)("label",{className:"block text-xs text-slate-400 mb-1",children:"Delay (ms)"}),(0,qe.jsx)("input",{type:"number",value:o.delay,onChange:m=>i({...o,delay:parseInt(m.target.value)}),className:"w-full bg-black/30 border border-white/10 rounded px-3 py-1.5 text-sm text-white focus:outline-none focus:ring-2 focus:ring-purple-500/50"})]})]}),(0,qe.jsxs)("div",{children:[(0,qe.jsx)("label",{className:"block text-xs text-slate-400 mb-1",children:"Response (JSON)"}),(0,qe.jsx)("textarea",{value:o.response,onChange:m=>i({...o,response:m.target.value}),rows:4,className:"w-full bg-black/30 border border-white/10 rounded px-3 py-2 text-sm text-white font-mono focus:outline-none focus:ring-2 focus:ring-purple-500/50"})]}),(0,qe.jsxs)("div",{className:"flex gap-2",children:[(0,qe.jsx)("button",{onClick:l,className:"flex-1 px-4 py-2 rounded-lg bg-purple-500 hover:bg-purple-600 text-white text-sm font-medium transition-colors",children:"Add Endpoint"}),(0,qe.jsx)("button",{onClick:()=>n(!1),className:"px-4 py-2 rounded-lg bg-white/5 hover:bg-white/10 text-white text-sm transition-colors",children:"Cancel"})]})]})}),(0,qe.jsx)("div",{className:"space-y-2",children:t.map((m,h)=>(0,qe.jsx)(G.div,{initial:{opacity:0,y:10}
112,animate:{opacity:1,y:0},transition:{delay:h*.05},className:U("rounded-lg border p-3 transition-all",m.enabled?"bg-white/5 border-white/10":"bg-white/5 border-white/10 opacity-50"),children:(0,qe.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,qe.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,qe.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,qe.jsx)("span",{className:"px-2 py-0.5 rounded text-xs font-bold bg-purple-500/20 text-purple-400",children:m.method}),(0,qe.jsx)("code",{className:"text-sm text-white font-mono truncate",children:m.path}),(0,qe.jsx)("span",{className:U("px-2 py-0.5 rounded text-xs font-medium",p(m.statusCode)),children:m.statusCode})]}),(0,qe.jsxs)("div",{className:"flex items-center gap-4 text-xs text-slate-400",children:[(0,qe.jsxs)("span",{children:["Delay: ",m.delay,"ms"]}),(0,qe.jsx)("span",{className:m.enabled?"text-green-400":"text-slate-500",children:m.enabled?"\u25CF Active":"\u25CB Disabled"})]})]}),(0,qe.jsxs)("div",{className:"flex gap-1",children:[(0,qe.jsx)("button",{onClick:()=>f(m.path),className:"p-1.5 rounded hover:bg-white/10 transition-colors",title:"Use in playground",children:(0,qe.jsx)(Nr,{className:"w-4 h-4 text-green-400"})}),(0,qe.jsx)("button",{onClick:()=>u(m.path),className:"p-1.5 rounded hover:bg-white/10 transition-colors",title:"Copy URL",children:(0,qe.jsx)(gt,{className:"w-4 h-4 text-slate-400"})}),(0,qe.jsx)("button",{onClick:()=>d(m.id),className:"p-1.5 rounded hover:bg-white/10 transition-colors",title:m.enabled?"Disable":"Enable",children:(0,qe.jsx)(Oi,{className:U("w-4 h-4",m.enabled?"text-green-400":"text-slate-500")})}),(0,qe.jsx)("button",{onClick:()=>c(m.id),className:"p-1.5 rounded hover:bg-red-500/20 transition-colors",title:"Delete",children:(0,qe.jsx)(Kt,{className:"w-4 h-4 text-red-400"})})]})]})},m.id))}),t.length===0&&(0,qe.jsxs)("div",{className:"text-center py-8 text-slate-400 text-sm",children:[(0,qe.jsx)(Oi,{className:"w-8 h-8 mx-auto mb-2 opacity-50"}),(0,qe.jsx)("p",{children:"No mock endpoints configured"})]})]})},Rq=Hbe;var Ky=R(Q());var dS=R(Q());var HA=R(Ac()),Bp=R(qn()),_8=R(X1()),F8=R(ir()),j8=R(Jo()),Vp=R(Q()),B8=R(x8());var Fp=R(X1()),BA=R(iS()),C8=R(Ac()),k8=R(jA()),N8=R(qn()),Vr=function(t){return t===0?0:t>0?1:-1},bl=function(t){return(0,Fp.default)(t)&&t.indexOf("%")===t.length-1},me=function(t){return(0,k8.default)(t)&&!(0,BA.default)(t)},I8=function(t){return(0,N8.default)(t)},Xt=function(t){return me(t)||(0,Fp.default)(t)},W1e=0,zn=function(t){var r=++W1e;return"".concat(t||"").concat(r)},Ur=function(t,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!me(t)&&!(0,Fp.default)(t))return a;var o;if(bl(t)){var i=t.indexOf("%");o=r*parseFloat(t.slice(0,i))/100}else o=+t;return(0,BA.default)(o)&&(o=a),n&&o>r&&(o=r),o},Cs=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},P8=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,a={},n=0;n<r;n++)if(!a[t[n]])a[t[n]]=!0;else return!0;return!1},Er=function(t,r){return me(t)&&me(r)?function(a){return t+a*(r-t)}:function(){return r}};function jp(e,t,r){return!e||!e.length?null:e.find(function(a){return a&&(typeof t=="function"?t(a):(0,C8.default)(a,t))===r})}var E8=function(t,r){return me(t)&&me(r)?t-r:(0,Fp.default)(t)&&(0,Fp.default)(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function xl(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var a in t)if({}.hasOwnProperty.call(t,a)&&!{}.hasOwnProperty.call(e,a))return!1;return!0}var L8=R(Q()),UA=R(Jo());function VA(e){"@babel/helpers - typeof";return VA=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},VA(e)}var G1e=["viewBox","children"],T8=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRen
112dering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],A8=["points","pathLength"],sS={svg:G1e,polygon:A8,polyline:A8},lS=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDrag
112Capture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],Qu=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var a=t;if((0,L8.isValidElement)(t)&&(a=t.props),!(0,UA.default)(a))return null;var n={};return Object.keys(a).forEach(function(o){lS.includes(o)&&(n[o]=r||function(i){return a[o](a,i)})}),n},$1e=function(t,r,a){return function(n){return t(r,a,n),null}},mo=function(t,r,a){if(!(0,UA.default)(t)||VA(t)!=="object")return null;var n=null;return Object.keys(t).forEach(function(o){var i=t[o];lS.includes(o)&&typeof i=="function"&&(n||(n={}),n[o]=$1e(i,r,a))}),n};var K1e=["children"],X1e=["children"];function R8(e,t){if(e==null)return{};var r=Y1e(e,t),a,n;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)a=o[n],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function Y1e(e,t){if(e==null)return{};var r={};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;r[a]=e[a]}return r}function zA(e){"@babel/helpers - typeof";return zA=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zA(e)}var O8={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"};var Qo=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},D8=null,qA=null,WA=function e(t){if(t===D8&&Array.isArray(qA))return qA;var r=[];return Vp.Children.forEach(t,function(a){(0,Bp.default)(a)||((0,B8.isFragment)(a)?r=r.concat(e(a.props.children)):r.push(a))}),qA=r,D8=t,r};function qr(e,t){var r=[],a=[];return Array.isArray(t)?a=t.map(function(n){return Qo(n)}):a=[Qo(t)],WA(e).forEach(function(n){var o=(0,HA.default)(n,"type.displayName")||(0,HA.default)(n,"type.name");a.indexOf(o)!==-1&&r.push(n)}),r}function Qa(e,t){var r=qr(e,t);return r&&r[0]}var GA=function(t){if(!t||!t.props)return!1;var r=t.props,a=r.width,n=r.height;return!(!me(a)||a<=0||!me(n)||n<=0)},J1e=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],Z1e=function(t){return t&&t.type&&(0,_8.default)(t.type)&&J1e.indexOf(t.type)>=0},cS=function(t){return t&&zA(t)==="object"&&"clipDot"in t},Q1e=function(t,r,a,n){var o,i=(o=sS===null||sS===void 0?void 0:sS[n])!==null&&o!==void 0?o:[];return r.startsWith("data-")||!(0,F8.default)(t)&&(n&&i.includes(r)||T8.includes(r))||a&&lS.includes(r)};var Ne=function(t,r,a){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if((0,Vp.isValidElement)(t)&&(n=t.props),!(0,j8.default)(n))return null;var o={};
112return Object.keys(n).forEach(function(i){var s;Q1e((s=n)===null||s===void 0?void 0:s[i],i,r,a)&&(o[i]=n[i])}),o},uS=function e(t,r){if(t===r)return!0;var a=Vp.Children.count(t);if(a!==Vp.Children.count(r))return!1;if(a===0)return!0;if(a===1)return M8(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var n=0;n<a;n++){var o=t[n],i=r[n];if(Array.isArray(o)||Array.isArray(i)){if(!e(o,i))return!1}else if(!M8(o,i))return!1}return!0},M8=function(t,r){if((0,Bp.default)(t)&&(0,Bp.default)(r))return!0;if(!(0,Bp.default)(t)&&!(0,Bp.default)(r)){var a=t.props||{},n=a.children,o=R8(a,K1e),i=r.props||{},s=i.children,l=R8(i,X1e);return n&&s?xl(o,l)&&uS(n,s):!n&&!s?xl(o,l):!1}return!1},$A=function(t,r){var a=[],n={};return WA(t).forEach(function(o,i){if(Z1e(o))a.push(o);else if(o){var s=Qo(o.type),l=r[s]||{},c=l.handler,d=l.once;if(c&&(!d||!n[s])){var u=c(o,s,i);a.push(u),n[s]=!0}}}),a},V8=function(t){var r=t&&t.type;return r&&O8[r]?O8[r]:null},U8=function(t,r){return WA(r).indexOf(t)};var eSe=["children","width","height","viewBox","className","style","title","desc"];function KA(){return KA=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},KA.apply(this,arguments)}function tSe(e,t){if(e==null)return{};var r=rSe(e,t),a,n;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)a=o[n],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function rSe(e,t){if(e==null)return{};var r={};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;r[a]=e[a]}return r}function fv(e){var t=e.children,r=e.width,a=e.height,n=e.viewBox,o=e.className,i=e.style,s=e.title,l=e.desc,c=tSe(e,eSe),d=n||{width:r,height:a,x:0,y:0},u=Me("recharts-surface",o);return dS.default.createElement("svg",KA({},Ne(c,!0,"svg"),{className:u,width:r,height:a,style:i,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height)}),dS.default.createElement("title",null,s),dS.default.createElement("desc",null,l),t)}var YA=R(Q());var aSe=["children","className"];function XA(){return XA=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},XA.apply(this,arguments)}function nSe(e,t){if(e==null)return{};var r=oSe(e,t),a,n;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)a=o[n],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function oSe(e,t){if(e==null)return{};var r={};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;r[a]=e[a]}return r}var Ke=YA.default.forwardRef(function(e,t){var r=e.children,a=e.className,n=nSe(e,aSe),o=Me("recharts-layer",a);return YA.default.createElement("g",XA({className:o},Ne(n,!0),{ref:t}),r)});var Tc=R(Q());var ho=R(Q()),R5=R(ir());var iSe=!1,ka=function(t,r){for(var a=arguments.length,n=new Array(a>2?a-2:0),o=2;o<a;o++)n[o-2]=arguments[o];if(iSe&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var i=0;console.warn(r.replace(/%s/g,function(){return n[i++]}))}};var I9=R(Q()),A5=R(fS());function Lt(e){return function(){return e}}var e5=Math.cos;var pv=Math.sin,Na=Math.sqrt;var ed=Math.PI,Mmt=ed/2,Up=2*ed;var t5=Math.PI,r5=2*t5,td=1e-6,HSe=r5-td;function l9(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function WSe(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return l9;let r=10**t;return function(a){this._+=a[0];for(let n=1,o=a.length;n<o;++n)this._+=Math.round(arguments[n]*r)/r+a[n]}}var rd=class{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?l9:WSe(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,a,n){this._append`Q${+t},${+r},${this._x1=+a},${this._y1=+n}`}bezierCurveTo(t,r,a,n,o,i){this._append`C${+t},${+r},${+a},${+n},${this._x1=+o},${this._y1=+i}`}arcTo(t,r,a,n,o){if(t=+t,r=+r,a=+a,n=+n,o=+o,o<0)throw new Error(`negative radius: ${o}`);let i=this._x1,s=this._y1,l=a-t,c=n-r,d=i-t,u=s-r,f=d*d+u*u;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(f>td)if(!(Math.abs(u*l-c*d)>td)||!o)this._append`L${this._x1=t},${this._y1=r}`;else{let p=a-i,m=n-s,h=l*l+c*c,g=p*p+m*m,y=Math.sqrt(h),v=Math.sqrt(f),x=o*Math.tan((t5-Math.acos((h+f-g)/(2*y*v)))/2),S=x/v,b=x/y;Math.abs(S-1)>td&&this._append`L${t+S*d},${r+S*u}`,this._append`A${o},${o},0,0,${+(u*p>d*m)},${this._x1=t+b*l},${this._y1=r+b*c}
112`}}arc(t,r,a,n,o,i){if(t=+t,r=+r,a=+a,i=!!i,a<0)throw new Error(`negative radius: ${a}`);let s=a*Math.cos(n),l=a*Math.sin(n),c=t+s,d=r+l,u=1^i,f=i?n-o:o-n;this._x1===null?this._append`M${c},${d}`:(Math.abs(this._x1-c)>td||Math.abs(this._y1-d)>td)&&this._append`L${c},${d}`,a&&(f<0&&(f=f%r5+r5),f>HSe?this._append`A${a},${a},0,1,${u},${t-s},${r-l}A${a},${a},0,1,${u},${this._x1=c},${this._y1=d}`:f>td&&this._append`A${a},${a},0,${+(f>=t5)},${u},${this._x1=t+a*Math.cos(o)},${this._y1=r+a*Math.sin(o)}`)}rect(t,r,a,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${a=+a}v${+n}h${-a}Z`}toString(){return this._}};function c9(){return new rd}c9.prototype=rd.prototype;function qp(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{let a=Math.floor(r);if(!(a>=0))throw new RangeError(`invalid digits: ${r}`);t=a}return e},()=>new rd(t)}var zmt=Array.prototype.slice;function zp(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function u9(e){this._context=e}u9.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Lc(e){return new u9(e)}function pS(e){return e[0]}function mS(e){return e[1]}function mv(e,t){var r=Lt(!0),a=null,n=Lc,o=null,i=qp(s);e=typeof e=="function"?e:e===void 0?pS:Lt(e),t=typeof t=="function"?t:t===void 0?mS:Lt(t);function s(l){var c,d=(l=zp(l)).length,u,f=!1,p;for(a==null&&(o=n(p=i())),c=0;c<=d;++c)!(c<d&&r(u=l[c],c,l))===f&&((f=!f)?o.lineStart():o.lineEnd()),f&&o.point(+e(u,c,l),+t(u,c,l));if(p)return o=null,p+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:Lt(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:Lt(+l),s):t},s.defined=function(l){return arguments.length?(r=typeof l=="function"?l:Lt(!!l),s):r},s.curve=function(l){return arguments.length?(n=l,a!=null&&(o=n(a)),s):n},s.context=function(l){return arguments.length?(l==null?a=o=null:o=n(a=l),s):a},s}function Hp(e,t,r){var a=null,n=Lt(!0),o=null,i=Lc,s=null,l=qp(c);e=typeof e=="function"?e:e===void 0?pS:Lt(+e),t=typeof t=="function"?t:t===void 0?Lt(0):Lt(+t),r=typeof r=="function"?r:r===void 0?mS:Lt(+r);function c(u){var f,p,m,h=(u=zp(u)).length,g,y=!1,v,x=new Array(h),S=new Array(h);for(o==null&&(s=i(v=l())),f=0;f<=h;++f){if(!(f<h&&n(g=u[f],f,u))===y)if(y=!y)p=f,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),m=f-1;m>=p;--m)s.point(x[m],S[m]);s.lineEnd(),s.areaEnd()}y&&(x[f]=+e(g,f,u),S[f]=+t(g,f,u),s.point(a?+a(g,f,u):x[f],r?+r(g,f,u):S[f]))}if(v)return s=null,v+""||null}function d(){return mv().defined(n).curve(i).context(o)}return c.x=function(u){return arguments.length?(e=typeof u=="function"?u:Lt(+u),a=null,c):e},c.x0=function(u){return arguments.length?(e=typeof u=="function"?u:Lt(+u),c):e},c.x1=function(u){return arguments.length?(a=u==null?null:typeof u=="function"?u:Lt(+u),c):a},c.y=function(u){return arguments.length?(t=typeof u=="function"?u:Lt(+u),r=null,c):t},c.y0=function(u){return arguments.length?(t=typeof u=="function"?u:Lt(+u),c):t},c.y1=function(u){return arguments.length?(r=u==null?null:typeof u=="function"?u:Lt(+u),c):r},c.lineX0=c.lineY0=function(){return d().x(e).y(t)},c.lineY1=function(){return d().x(e).y(r)},c.lineX1=function(){return d().x(a).y(t)},c.defined=function(u){return arguments.length?(n=typeof u=="function"?u:Lt(!!u),c):n},c.curve=function(u){return arguments.length?(i=u,o!=null&&(s=i(o)),c):i},c.context=function(u){return arguments.length?(u==null?o=s=null:s=i(o=u),c):o},c}var hS=class{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}};function a5(e){return new hS(e,!0)}function n5(e){return new hS(e,!1)}var Wp={draw(e,t){let r=Na(t/ed);e.moveTo(r,0),e.arc(0,0,r,0,Up)}};var o5={draw(e,t){let r=Na(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}};var d9=Na(1/3),GSe=d9*2,i5={draw(e,t){let r=Na(t/GSe),a=r*d9;e.moveTo(0,-r),e.lineTo(a,0),e.lineTo(0,r),e.lineTo(-a,0),e.closePath()}};var s5={draw(e,t){let r=Na(t),a=-r/2;e.rect(a,a,r,r)}};var $Se=.8908130915292852,f9=pv(ed/10)/pv(7*ed/10),KSe=pv(Up/10)*f9,XSe=-e5(Up
112/10)*f9,l5={draw(e,t){let r=Na(t*$Se),a=KSe*r,n=XSe*r;e.moveTo(0,-r),e.lineTo(a,n);for(let o=1;o<5;++o){let i=Up*o/5,s=e5(i),l=pv(i);e.lineTo(l*r,-s*r),e.lineTo(s*a-l*n,l*a+s*n)}e.closePath()}};var c5=Na(3),u5={draw(e,t){let r=-Na(t/(c5*3));e.moveTo(0,r*2),e.lineTo(-c5*r,-r),e.lineTo(c5*r,-r),e.closePath()}};var ei=-.5,ti=Na(3)/2,d5=1/Na(12),YSe=(d5/2+1)*3,f5={draw(e,t){let r=Na(t/YSe),a=r/2,n=r*d5,o=a,i=r*d5+r,s=-o,l=i;e.moveTo(a,n),e.lineTo(o,i),e.lineTo(s,l),e.lineTo(ei*a-ti*n,ti*a+ei*n),e.lineTo(ei*o-ti*i,ti*o+ei*i),e.lineTo(ei*s-ti*l,ti*s+ei*l),e.lineTo(ei*a+ti*n,ei*n-ti*a),e.lineTo(ei*o+ti*i,ei*i-ti*o),e.lineTo(ei*s+ti*l,ei*l-ti*s),e.closePath()}};function gS(e,t){let r=null,a=qp(n);e=typeof e=="function"?e:Lt(e||Wp),t=typeof t=="function"?t:Lt(t===void 0?64:+t);function n(){let o;if(r||(r=o=a()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),o)return r=null,o+""||null}return n.type=function(o){return arguments.length?(e=typeof o=="function"?o:Lt(o),n):e},n.size=function(o){return arguments.length?(t=typeof o=="function"?o:Lt(+o),n):t},n.context=function(o){return arguments.length?(r=o??null,n):r},n}function Gp(){}function $p(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function p9(e){this._context=e}p9.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:$p(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:$p(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function p5(e){return new p9(e)}function m9(e){this._context=e}m9.prototype={areaStart:Gp,areaEnd:Gp,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:$p(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function m5(e){return new m9(e)}function h9(e){this._context=e}h9.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,a=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,a):this._context.moveTo(r,a);break;case 3:this._point=4;default:$p(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function h5(e){return new h9(e)}function g9(e){this._context=e}g9.prototype={areaStart:Gp,areaEnd:Gp,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function g5(e){return new g9(e)}function v9(e){return e<0?-1:1}function y9(e,t,r){var a=e._x1-e._x0,n=t-e._x1,o=(e._y1-e._y0)/(a||n<0&&-0),i=(r-e._y1)/(n||a<0&&-0),s=(o*n+i*a)/(a+n);return(v9(o)+v9(i))*Math.min(Math.abs(o),Math.abs(i),.5*Math.abs(s))||0}function b9(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function v5(e,t,r){var a=e._x0,n=e._y0,o=e._x1,i=e._y1,s=(o-a)/3;e._context.bezierCurveTo(a+s,n+s*t,o-s,i-s*r,o,i)}function vS(e){this._context=e}vS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:v5(this,this._t0,b9(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,v5(this,b9(this,r=y9(this,e,t)),r);break;default:v5(this,this._t0,r=y9(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function x9(e){this._context=new w9(e)}(x9.prototype=Object.create(vS.prototype)).point=function(e,t){vS.prototype.point.call(this,t,e)};function w9(e){this._context=e}w9.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,a,n,o){this._context.bezierCurveTo(t,e,a,r,o,n)}};function y5(e){return new vS(e)}function b5(e){return new x9(e)}function C9(e){this._context=e}C9.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var a=S9(e),n=S9(t),o=0,i=1;i<r;++o,++i)this._context.bezierCurveTo(a[0][o],n[0][o],a[1][o],n[1][o],e[i],t[i]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function S9(e){var t,r=e.length-1,a,n=new Array(r),o=new Array(r),i=new Array(r);for(n[0]=0,o[0]=2,i[0]=e[0]+2*e[1],t=1;t<r-1;++t)n[t]=1,o[t]=4,i[t]=4*e[t]+2*e[t+1];for(n[r-1]=2,o[r-1]=7,i[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)a=n[t]/o[t-1],o[t]-=a,i[t]-=a*i[t-1];for(n[r-1]=i[r-1]/o[r-1],t=r-2;t>=0;--t)n[t]=(i[t]-n[t+1])/o[t];for(o[r-1]=(e[r]+n[r-1])/2,t=0;t<r-1;++t)o[t]=2*e[t+1]-n[t+1];return[n,o]}function x5(e){return new C9(e)}function yS(e,t){this._context=e,this._t=t}yS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;
112default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function w5(e){return new yS(e,.5)}function S5(e){return new yS(e,0)}function C5(e){return new yS(e,1)}function ri(e,t){if((i=e.length)>1)for(var r=1,a,n,o=e[t[0]],i,s=o.length;r<i;++r)for(n=o,o=e[t[r]],a=0;a<s;++a)o[a][1]+=o[a][0]=isNaN(n[a][1])?n[a][0]:n[a][1]}function Kp(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function JSe(e,t){return e[t]}function ZSe(e){let t=[];return t.key=e,t}function k5(){var e=Lt([]),t=Kp,r=ri,a=JSe;function n(o){var i=Array.from(e.apply(this,arguments),ZSe),s,l=i.length,c=-1,d;for(let u of o)for(s=0,++c;s<l;++s)(i[s][c]=[0,+a(u,i[s].key,c,o)]).data=u;for(s=0,d=zp(t(i));s<l;++s)i[d[s]].index=s;return r(i,d),i}return n.keys=function(o){return arguments.length?(e=typeof o=="function"?o:Lt(Array.from(o)),n):e},n.value=function(o){return arguments.length?(a=typeof o=="function"?o:Lt(+o),n):a},n.order=function(o){return arguments.length?(t=o==null?Kp:typeof o=="function"?o:Lt(Array.from(o)),n):t},n.offset=function(o){return arguments.length?(r=o??ri,n):r},n}function N5(e,t){if((a=e.length)>0){for(var r,a,n=0,o=e[0].length,i;n<o;++n){for(i=r=0;r<a;++r)i+=e[r][n][1]||0;if(i)for(r=0;r<a;++r)e[r][n][1]/=i}ri(e,t)}}function I5(e,t){if((n=e.length)>0){for(var r=0,a=e[t[0]],n,o=a.length;r<o;++r){for(var i=0,s=0;i<n;++i)s+=e[i][r][1]||0;a[r][1]+=a[r][0]=-s/2}ri(e,t)}}function P5(e,t){if(!(!((i=e.length)>0)||!((o=(n=e[t[0]]).length)>0))){for(var r=0,a=1,n,o,i;a<o;++a){for(var s=0,l=0,c=0;s<i;++s){for(var d=e[t[s]],u=d[a][1]||0,f=d[a-1][1]||0,p=(u-f)/2,m=0;m<s;++m){var h=e[t[m]],g=h[a][1]||0,y=h[a-1][1]||0;p+=g-y}l+=u,c+=p*u}n[a-1][1]+=n[a-1][0]=r,l&&(r-=c/l)}n[a-1][1]+=n[a-1][0]=r,ri(e,t)}}function hv(e){"@babel/helpers - typeof";return hv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hv(e)}var e2e=["type","size","sizeType"];function E5(){return E5=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},E5.apply(this,arguments)}function k9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function N9(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?k9(Object(r),!0).forEach(function(a){t2e(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k9(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function t2e(e,t,r){return t=r2e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r2e(e){var t=a2e(e,"string");return hv(t)=="symbol"?t:t+""}function a2e(e,t){if(hv(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(hv(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function n2e(e,t){if(e==null)return{};var r=o2e(e,t),a,n;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)a=o[n],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function o2e(e,t){if(e==null)return{};var r={};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;r[a]=e[a]}return r}var P9={symbolCircle:Wp,symbolCross:o5,symbolDiamond:i5,symbolSquare:s5,symbolStar:l5,symbolTriangle:u5,symbolWye:f5},i2e=Math.PI/180,s2e=function(t){var r="symbol".concat((0,A5.default)(t));return P9[r]||Wp},l2e=function(t,r,a){if(r==="area")return t;switch(a){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var n=18*i2e;return 1.25*t*t*(Math.tan(n)-Math.tan(n*2)*Math.pow(Math.tan(n),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},c2e=function(t,r){P9["symbol".concat((0,A5.default)(t))]=r},gv=function(t){var r=t.type,a=r===void 0?"circle":r,n=t.size,o=n===void 0?64:n,i=t.sizeType,s=i===void 0?"area":i,l=n2e(t,e2e),c=N9(N9({},l),{},{type:a,size:o,sizeType:s}),d=function(){var g=s2e(a),y=gS().type(g).size(l2e(o,s,a));return y()},u=c.className,f=c.cx,p=c.cy,m=Ne(c,!0);return f===+f&&p===+p&&o===+o?I9.default.createElement("path",E5({}
112,m,{className:Me("recharts-symbols",u),transform:"translate(".concat(f,", ").concat(p,")"),d:d()})):null};gv.registerSymbol=c2e;function Xp(e){"@babel/helpers - typeof";return Xp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xp(e)}function L5(){return L5=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},L5.apply(this,arguments)}function E9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function u2e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?E9(Object(r),!0).forEach(function(a){vv(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E9(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function d2e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A9(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,T9(a.key),a)}}function f2e(e,t,r){return t&&A9(e.prototype,t),r&&A9(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function p2e(e,t,r){return t=bS(t),m2e(e,L9()?Reflect.construct(t,r||[],bS(e).constructor):t.apply(e,r))}function m2e(e,t){if(t&&(Xp(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return h2e(e)}function h2e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function L9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(L9=function(){return!!e})()}function bS(e){return bS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},bS(e)}function g2e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&T5(e,t)}function T5(e,t){return T5=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},T5(e,t)}function vv(e,t,r){return t=T9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function T9(e){var t=v2e(e,"string");return Xp(t)=="symbol"?t:t+""}function v2e(e,t){if(Xp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(Xp(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ai=32,xS=(function(e){function t(){return d2e(this,t),p2e(this,t,arguments)}return g2e(t,e),f2e(t,[{key:"renderIcon",value:function(a){var n=this.props.inactiveColor,o=ai/2,i=ai/6,s=ai/3,l=a.inactive?n:a.color;if(a.type==="plainline")return ho.default.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:a.payload.strokeDasharray,x1:0,y1:o,x2:ai,y2:o,className:"recharts-legend-icon"});if(a.type==="line")return ho.default.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(o,"h").concat(s,` 113 A`).concat(i,",").concat(i,",0,1,1,").concat(2*s,",").concat(o,` 114 H`).concat(ai,"M").concat(2*s,",").concat(o,` 115 A`).concat(i,",").concat(i,",0,1,1,").concat(s,",").concat(o),className:"recharts-legend-icon"});if(a.type==="rect")return ho.default.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(ai/8,"h").concat(ai,"v").concat(ai*3/4,"h").concat(-ai,"z"),className:"recharts-legend-icon"});if(ho.default.isValidElement(a.legendIcon)){var c=u2e({},a);return delete c.legendIcon,ho.default.cloneElement(a.legendIcon,c)}return ho.default.createElement(gv,{fill:l,cx:o,cy:o,size:ai,sizeType:"diameter",type:a.type})}},{key:"renderItems",value:function(){var a=this,n=this.props,o=n.payload,i=n.iconSize,s=n.layout,l=n.formatter,c=n.inactiveColor,d={x:0,y:0,width:ai,height:ai}
115,u={display:s==="horizontal"?"inline-block":"block",marginRight:10},f={display:"inline-block",verticalAlign:"middle",marginRight:4};return o.map(function(p,m){var h=p.formatter||l,g=Me(vv(vv({"recharts-legend-item":!0},"legend-item-".concat(m),!0),"inactive",p.inactive));if(p.type==="none")return null;var y=(0,R5.default)(p.value)?null:p.value;ka(!(0,R5.default)(p.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var v=p.inactive?c:p.color;return ho.default.createElement("li",L5({className:g,style:u,key:"legend-item-".concat(m)},mo(a.props,p,m)),ho.default.createElement(fv,{width:i,height:i,viewBox:d,style:f},a.renderIcon(p)),ho.default.createElement("span",{className:"recharts-legend-item-text",style:{color:v}},h?h(y,p,m):y))})}},{key:"render",value:function(){var a=this.props,n=a.payload,o=a.layout,i=a.align;if(!n||!n.length)return null;var s={padding:0,margin:0,textAlign:o==="horizontal"?i:"left"};return ho.default.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])})(ho.PureComponent);vv(xS,"displayName","Legend");vv(xS,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var rL=R(h7()),g7=R(ir());function ES(e,t,r){return t===!0?(0,rL.default)(e,r):(0,g7.default)(t)?(0,rL.default)(e,t):e}function tm(e){"@babel/helpers - typeof";return tm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tm(e)}var aPe=["ref"];function v7(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function wl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?v7(Object(r),!0).forEach(function(a){LS(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v7(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function nPe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y7(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,w7(a.key),a)}}function oPe(e,t,r){return t&&y7(e.prototype,t),r&&y7(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function iPe(e,t,r){return t=AS(t),sPe(e,x7()?Reflect.construct(t,r||[],AS(e).constructor):t.apply(e,r))}function sPe(e,t){if(t&&(tm(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lPe(e)}function lPe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(x7=function(){return!!e})()}function AS(e){return AS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},AS(e)}function cPe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&aL(e,t)}function aL(e,t){return aL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},aL(e,t)}function LS(e,t,r){return t=w7(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w7(e){var t=uPe(e,"string");return tm(t)=="symbol"?t:t+""}function uPe(e,t){if(tm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(tm(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dPe(e,t){if(e==null)return{};var r=fPe(e,t),a,n;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)a=o[n],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function fPe(e,t){if(e==null)return{};var r={};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;r[a]=e[a]}return r}function pPe(e){return e.value}function mPe(e,t){if(Tc.default.isValidElement(e))return Tc.default.cloneElement(e,t);if(typeof e=="function")return Tc.default.createElement(e,t);var r=t.ref,a=dPe(t,aPe);return Tc.default.createElement(xS,a)}var b7=1,ni=(function(e){function t(){var r;nPe(this,t);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return r=iPe(this,t,[].concat(n)),LS(r,"lastBoundingBox",{width:-1,height:-1}),r}
vendor: 4,253 bytes, lines 115-116
115return cPe(t,e),oPe(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var a=this.wrapperNode.getBoundingClientRect();return a.height=this.wrapperNode.offsetHeight,a.width=this.wrapperNode.offsetWidth,a}return null}},{key:"updateBBox",value:function(){var a=this.props.onBBoxUpdate,n=this.getBBox();n?(Math.abs(n.width-this.lastBoundingBox.width)>b7||Math.abs(n.height-this.lastBoundingBox.height)>b7)&&(this.lastBoundingBox.width=n.width,this.lastBoundingBox.height=n.height,a&&a(n)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,a&&a(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?wl({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(a){var n=this.props,o=n.layout,i=n.align,s=n.verticalAlign,l=n.margin,c=n.chartWidth,d=n.chartHeight,u,f;if(!a||(a.left===void 0||a.left===null)&&(a.right===void 0||a.right===null))if(i==="center"&&o==="vertical"){var p=this.getBBoxSnapshot();u={left:((c||0)-p.width)/2}}else u=i==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!a||(a.top===void 0||a.top===null)&&(a.bottom===void 0||a.bottom===null))if(s==="middle"){var m=this.getBBoxSnapshot();f={top:((d||0)-m.height)/2}}else f=s==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return wl(wl({},u),f)}},{key:"render",value:function(){var a=this,n=this.props,o=n.content,i=n.width,s=n.height,l=n.wrapperStyle,c=n.payloadUniqBy,d=n.payload,u=wl(wl({position:"absolute",width:i||"auto",height:s||"auto"},this.getDefaultPosition(l)),l);return Tc.default.createElement("div",{className:"recharts-legend-wrapper",style:u,ref:function(p){a.wrapperNode=p}},mPe(o,wl(wl({},this.props),{},{payload:ES(d,c,pPe)})))}}],[{key:"getWithHeight",value:function(a,n){var o=wl(wl({},this.defaultProps),a.props),i=o.layout;return i==="vertical"&&me(a.props.height)?{height:a.props.height}:i==="horizontal"?{width:a.props.width||n}:null}}])})(Tc.PureComponent);LS(ni,"displayName","Legend");LS(ni,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Rc=R(Q());var ks=R(Q()),mG=R(RS()),hG=R(qn());function Cv(e){"@babel/helpers - typeof";return Cv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cv(e)}function uL(){return uL=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},uL.apply(this,arguments)}function SEe(e,t){return IEe(e)||NEe(e,t)||kEe(e,t)||CEe()}function CEe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 116In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kEe(e,t){if(e){if(typeof e=="string")return fG(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fG(e,t)}}function fG(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function NEe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a,n,o,i,s=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(a=o.call(r)).done)&&(s.push(a.value),s.length!==t);l=!0);}catch(d){c=!0,n=d}finally{try{if(!l&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw n}}return s}}function IEe(e){if(Array.isArray(e))return e}function pG(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function cL(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
116t%2?pG(Object(r),!0).forEach(function(a){PEe(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pG(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function PEe(e,t,r){return t=EEe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EEe(e){var t=AEe(e,"string");return Cv(t)=="symbol"?t:t+""}function AEe(e,t){if(Cv(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(Cv(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function LEe(e){return Array.isArray(e)&&Xt(e[0])&&Xt(e[1])?e.join(" ~ "):e}var gG=function(t){var r=t.separator,a=r===void 0?" : ":r,n=t.contentStyle,o=n===void 0?{}:n,i=t.itemStyle,s=i===void 0?{}:i,l=t.labelStyle,c=l===void 0?{}:l,d=t.payload,u=t.formatter,f=t.itemSorter,p=t.wrapperClassName,m=t.labelClassName,h=t.label,g=t.labelFormatter,y=t.accessibilityLayer,v=y===void 0?!1:y,x=function(){if(d&&d.length){var T={padding:0,margin:0},q=(f?(0,mG.default)(d,f):d).map(function(_,B){if(_.type==="none")return null;var I=cL({display:"block",paddingTop:4,paddingBottom:4,color:_.color||"#000"},s),A=_.formatter||u||LEe,M=_.value,D=_.name,V=M,P=D;if(A&&V!=null&&P!=null){var O=A(M,D,_,B,d);if(Array.isArray(O)){var j=SEe(O,2);V=j[0],P=j[1]}else V=O}return ks.default.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(B),style:I},Xt(P)?ks.default.createElement("span",{className:"recharts-tooltip-item-name"},P):null,Xt(P)?ks.default.createElement("span",{className:"recharts-tooltip-item-separator"},a):null,ks.default.createElement("span",{className:"recharts-tooltip-item-value"},V),ks.default.createElement("span",{className:"recharts-tooltip-item-unit"},_.unit||""))});return ks.default.createElement("ul",{className:"recharts-tooltip-item-list",style:T},q)}return null},S=cL({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},o),b=cL({margin:0},c),w=!(0,hG.default)(h),k=w?h:"",C=Me("recharts-default-tooltip",p),N=Me("recharts-tooltip-label",m);w&&g&&d!==void 0&&d!==null&&(k=g(h,d));var E=v?{role:"status","aria-live":"assertive"}:{};return ks.default.createElement("div",uL({className:C,style:S},E),ks.default.createElement("p",{className:N,style:b},ks.default.isValidElement(k)?k:"".concat(k)),x())};var MS=R(Q());function Nv(e){"@babel/helpers - typeof";return Nv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nv(e)}function OS(e,t,r){return t=TEe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TEe(e){var t=REe(e,"string");return Nv(t)=="symbol"?t:t+""}function REe(e,t){if(Nv(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(Nv(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var kv="recharts-tooltip-wrapper",OEe={visibility:"hidden"};function DEe(e){var t=e.coordinate,r=e.translateX,a=e.translateY;return Me(kv,OS(OS(OS(OS({},"".concat(kv,"-right"),me(r)&&t&&me(t.x)&&r>=t.x),"".concat(kv,"-left"),me(r)&&t&&me(t.x)&&r<t.x),"".concat(kv,"-bottom"),me(a)&&t&&me(t.y)&&a>=t.y),"".concat(kv,"-top"),me(a)&&t&&me(t.y)&&a<t.y))}function vG(e){var t=e.allowEscapeViewBox,r=e.coordinate,a=e.key,n=e.offsetTopLeft,o=e.position,i=e.reverseDirection,s=e.tooltipDimension,l=e.viewBox,c=e.viewBoxDimension;if(o&&me(o[a]))return o[a];var d=r[a]-s-n,u=r[a]+n;if(t[a])return i[a]?d:u;if(i[a]){var f=d,p=l[a];return f<p?Math.max(u,l[a]):Math.max(d,l[a])}var m=u+s,h=l[a]+c;return m>h?Math.max(d,l[a]):Math.max(u,l[a])}function MEe(e){var t=e.translateX,r=e.translateY,a=e.useTranslate3d;return{transform:a?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function yG(e){var t=e.allowEscapeViewBox,r=e.coordinate,a=e.offsetTopLeft,n=e.position,o=e.reverseDirection,i=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,c,d,u;return i.height>0&&i.width>0&&r?(d=vG({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:a,position:n,reverseDirection:o,tooltipDimension:i.width,viewBox:l,viewBoxDimension:l.width}),u=vG({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:a,position:n,reverseDirection:o,tooltipDimension:i.height,viewBox:l,viewBoxDimension:l.height}),c=MEe({translateX:d,translateY:u,useTranslate3d:s}
vendor: 4,876 bytes, line 116
116)):c=OEe,{cssProperties:c,cssClasses:DEe({translateX:d,translateY:u,coordinate:r})}}function rm(e){"@babel/helpers - typeof";return rm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rm(e)}function bG(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function xG(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bG(Object(r),!0).forEach(function(a){fL(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bG(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function _Ee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wG(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,kG(a.key),a)}}function FEe(e,t,r){return t&&wG(e.prototype,t),r&&wG(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function jEe(e,t,r){return t=DS(t),BEe(e,CG()?Reflect.construct(t,r||[],DS(e).constructor):t.apply(e,r))}function BEe(e,t){if(t&&(rm(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return VEe(e)}function VEe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function CG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(CG=function(){return!!e})()}function DS(e){return DS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},DS(e)}function UEe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dL(e,t)}function dL(e,t){return dL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},dL(e,t)}function fL(e,t,r){return t=kG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kG(e){var t=qEe(e,"string");return rm(t)=="symbol"?t:t+""}function qEe(e,t){if(rm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(rm(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var SG=1,NG=(function(e){function t(){var r;_Ee(this,t);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return r=jEe(this,t,[].concat(n)),fL(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),fL(r,"handleKeyDown",function(i){if(i.key==="Escape"){var s,l,c,d;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(l=r.props.coordinate)===null||l===void 0?void 0:l.x)!==null&&s!==void 0?s:0,y:(c=(d=r.props.coordinate)===null||d===void 0?void 0:d.y)!==null&&c!==void 0?c:0}})}}),r}return UEe(t,e),FEe(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var a=this.wrapperNode.getBoundingClientRect();(Math.abs(a.width-this.state.lastBoundingBox.width)>SG||Math.abs(a.height-this.state.lastBoundingBox.height)>SG)&&this.setState({lastBoundingBox:{width:a.width,height:a.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var a,n;this.props.active&&this.updateBBox(),this.state.dismissed&&(((a=this.props.coordinate)===null||a===void 0?void 0:a.x)!==this.state.dismissedAtCoordinate.x||((n=this.props.coordinate)===null||n===void 0?void 0:n.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var a=this,n=this.props,o=n.active,i=n.allowEscapeViewBox,s=n.animationDuration,l=n.animationEasing,c=n.children,d=n.coordinate,u=n.hasPayload,f=n.isAnimationActive,p=n.offset,m=n.position,h=n.reverseDirection,g=n.useTranslate3d,y=n.viewBox,v=n.wrapperStyle,x=yG({allowEscapeViewBox:i,coordinate:d,offsetTopLeft:p,position:m,reverseDirection:h,tooltipBox:this.state.lastBoundingBox,useTranslate3d:g,viewBox:y}
116),S=x.cssClasses,b=x.cssProperties,w=xG(xG({transition:f&&o?"transform ".concat(s,"ms ").concat(l):void 0},b),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&u?"visible":"hidden",position:"absolute",top:0,left:0},v);return MS.default.createElement("div",{tabIndex:-1,className:S,style:w,ref:function(C){a.wrapperNode=C}},c)}}])})(MS.PureComponent);var zEe=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},la={isSsr:zEe(),get:function(t){return la[t]},set:function(t,r){if(typeof t=="string")la[t]=r;else{var a=Object.keys(t);a&&a.length&&a.forEach(function(n){la[n]=t[n]})}}};function am(e){"@babel/helpers - typeof";return am=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},am(e)}function IG(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function PG(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?IG(Object(r),!0).forEach(function(a){mL(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):IG(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function HEe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function EG(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,LG(a.key),a)}}function WEe(e,t,r){return t&&EG(e.prototype,t),r&&EG(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function GEe(e,t,r){return t=_S(t),$Ee(e,AG()?Reflect.construct(t,r||[],_S(e).constructor):t.apply(e,r))}function $Ee(e,t){if(t&&(am(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return KEe(e)}function KEe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function AG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(AG=function(){return!!e})()}function _S(e){return _S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_S(e)}function XEe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pL(e,t)}function pL(e,t){return pL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},pL(e,t)}function mL(e,t,r){return t=LG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LG(e){var t=YEe(e,"string");return am(t)=="symbol"?t:t+""}function YEe(e,t){if(am(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(am(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function JEe(e){return e.dataKey}function ZEe(e,t){return Rc.default.isValidElement(e)?Rc.default.cloneElement(e,t):typeof e=="function"?Rc.default.createElement(e,t):Rc.default.createElement(gG,t)}var lr=(function(e){function t(){return HEe(this,t),GEe(this,t,arguments)}return XEe(t,e),WEe(t,[{key:"render",value:function(){var a=this,n=this.props,o=n.active,i=n.allowEscapeViewBox,s=n.animationDuration,l=n.animationEasing,c=n.content,d=n.coordinate,u=n.filterNull,f=n.isAnimationActive,p=n.offset,m=n.payload,h=n.payloadUniqBy,g=n.position,y=n.reverseDirection,v=n.useTranslate3d,x=n.viewBox,S=n.wrapperStyle,b=m??[];u&&b.length&&(b=ES(m.filter(function(k){return k.value!=null&&(k.hide!==!0||a.props.includeHidden)}),h,JEe));var w=b.length>0;return Rc.default.createElement(NG,{allowEscapeViewBox:i,animationDuration:s,animationEasing:l,isAnimationActive:f,active:o,coordinate:d,hasPayload:w,offset:p,position:g,reverseDirection:y,useTranslate3d:v,viewBox:x,wrapperStyle:S},ZEe(c,PG(PG({},this.props),{},{payload:b})))}}])})(Rc.PureComponent);mL(lr,"displayName","Tooltip");mL(lr,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!la.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var zr=R(Q()),GG=R(vL());function Iv(e){"@babel/helpers - typeof";
116return Iv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Iv(e)}function HG(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function FS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?HG(Object(r),!0).forEach(function(a){SAe(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):HG(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function SAe(e,t,r){return t=CAe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CAe(e){var t=kAe(e,"string");return Iv(t)=="symbol"?t:t+""}function kAe(e,t){if(Iv(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(Iv(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function NAe(e,t){return AAe(e)||EAe(e,t)||PAe(e,t)||IAe()}function IAe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 117In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PAe(e,t){if(e){if(typeof e=="string")return WG(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return WG(e,t)}}function WG(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function EAe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a,n,o,i,s=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(a=o.call(r)).done)&&(s.push(a.value),s.length!==t);l=!0);}catch(d){c=!0,n=d}finally{try{if(!l&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw n}}return s}}function AAe(e){if(Array.isArray(e))return e}var xn=(0,zr.forwardRef)(function(e,t){var r=e.aspect,a=e.initialDimension,n=a===void 0?{width:-1,height:-1}:a,o=e.width,i=o===void 0?"100%":o,s=e.height,l=s===void 0?"100%":s,c=e.minWidth,d=c===void 0?0:c,u=e.minHeight,f=e.maxHeight,p=e.children,m=e.debounce,h=m===void 0?0:m,g=e.id,y=e.className,v=e.onResize,x=e.style,S=x===void 0?{}:x,b=(0,zr.useRef)(null),w=(0,zr.useRef)();w.current=v,(0,zr.useImperativeHandle)(t,function(){return Object.defineProperty(b.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),b.current},configurable:!0})});var k=(0,zr.useState)({containerWidth:n.width,containerHeight:n.height}),C=NAe(k,2),N=C[0],E=C[1],L=(0,zr.useCallback)(function(q,_){E(function(B){var I=Math.round(q),A=Math.round(_);return B.containerWidth===I&&B.containerHeight===A?B:{containerWidth:I,containerHeight:A}})},[]);(0,zr.useEffect)(function(){var q=function(D){var V,P=D[0].contentRect,O=P.width,j=P.height;L(O,j),(V=w.current)===null||V===void 0||V.call(w,O,j)};h>0&&(q=(0,GG.default)(q,h,{trailing:!0,leading:!1}));var _=new ResizeObserver(q),B=b.current.getBoundingClientRect(),I=B.width,A=B.height;return L(I,A),_.observe(b.current),function(){_.disconnect()}},[L,h]);var T=(0,zr.useMemo)(function(){var q=N.containerWidth,_=N.containerHeight;if(q<0||_<0)return null;ka(bl(i)||bl(l),`The width(%s) and height(%s) are both fixed numbers, 118 maybe you don't need to use a ResponsiveContainer.`,i,l),ka(!r||r>0,"The aspect(%s) must be greater than zero.",r);var B=bl(i)?q:i,I=bl(l)?_:l;r&&r>0&&(B?I=B/r:I&&(B=I*r),f&&I>f&&(I=f)),ka(B>0||I>0,`The width(%s) and height(%s) of chart should be greater than 0, 119 please check the style of container, or the props width(%s) and height(%s), 120 or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the 121 height and width.`,B,I,i,l,d,u,r);var A=!Array.isArray(p)&&Qo(p.type).endsWith("Chart");return zr.default.Children.map(p,function(M){return zr.default.isValidElement(M)?(0,zr.cloneElement)(M,FS({width:B,height:I},A?{style:FS({height:"100%",width:"100%",maxHeight:I,maxWidth:B},M.props.style)}:{})):M})},[r,p,l,f,u,d,N,i]);return zr.default.createElement("div",{id:g?"".concat(g):void 0,className:Me("recharts-responsive-container",y),style:FS(FS({},S),{},{width:i,height:l,minWidth:d,minHeight:u,maxHeight:f}),ref:b},T)});var Ns=function(t){return null};Ns.displayName="Cell";var Av=R(Q()),xL=R(qn());function Pv(e){"@babel/helpers - typeof";return Pv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pv(e)}function $G(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function yL(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
vendor: 6,904 bytes, lines 121-122
121t%2?$G(Object(r),!0).forEach(function(a){LAe(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$G(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function LAe(e,t,r){return t=TAe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TAe(e){var t=RAe(e,"string");return Pv(t)=="symbol"?t:t+""}function RAe(e,t){if(Pv(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(Pv(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var nm={widthCache:{},cacheCount:0},OAe=2e3,DAe={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"};var KG="recharts_measurement_span";function MAe(e){var t=yL({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var od=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||la.isSsr)return{width:0,height:0};var a=MAe(r),n=JSON.stringify({text:t,copyStyle:a});if(nm.widthCache[n])return nm.widthCache[n];try{var o=document.getElementById(KG);o||(o=document.createElement("span"),o.setAttribute("id",KG),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var i=yL(yL({},DAe),a);Object.assign(o.style,i),o.textContent="".concat(t);var s=o.getBoundingClientRect(),l={width:s.width,height:s.height};return nm.widthCache[n]=l,++nm.cacheCount>OAe&&(nm.cacheCount=0,nm.widthCache={}),l}catch{return{width:0,height:0}}},XG=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Ev(e){"@babel/helpers - typeof";return Ev=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ev(e)}function BS(e,t){return BAe(e)||jAe(e,t)||FAe(e,t)||_Ae()}function _Ae(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 122In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FAe(e,t){if(e){if(typeof e=="string")return YG(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return YG(e,t)}}function YG(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function jAe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a,n,o,i,s=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(a=o.call(r)).done)&&(s.push(a.value),s.length!==t);l=!0);}catch(d){c=!0,n=d}finally{try{if(!l&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw n}}return s}}function BAe(e){if(Array.isArray(e))return e}function VAe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JG(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,qAe(a.key),a)}}function UAe(e,t,r){return t&&JG(e.prototype,t),r&&JG(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function qAe(e){var t=zAe(e,"string");return Ev(t)=="symbol"?t:t+""}function zAe(e,t){if(Ev(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(Ev(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ZG=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,QG=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,HAe=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,WAe=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,t$={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},GAe=Object.keys(t$),om="NaN";function $Ae(e,t){return e*t$[t]}var jS=(function(){function e(t,r){VAe(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!HAe.test(r)&&(this.num=NaN,this.unit=""),GAe.includes(r)&&(this.num=$Ae(t,r),this.unit="px")}return UAe(e,[{key:"add",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num/r.num,this.unit||r.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(r){var a,n=(a=WAe.exec(r))!==null&&a!==void 0?a:[],o=BS(n,3),i=o[1],s=o[2];return new e(parseFloat(i),s??"")}}])})();function r$(e){if(e.includes(om))return om;for(var t=e;t.includes("*")||t.includes("/");){var r,a=(r=ZG.exec(t))!==null&&r!==void 0?r:[],n=BS(a,4),o=n[1],i=n[2],s=n[3],l=jS.parse(o??""),c=jS.parse(s??""),d=i==="*"?l.multiply(c):l.divide(c);if(d.isNaN())return om;t=t.replace(ZG,d.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var u,f=(u=QG.exec(t))!==null&&u!==void 0?u:[],p=BS(f,4),m=p[1],h=p[2],g=p[3],y=jS.parse(m??""),v=jS.parse(g??""),x=h==="+"?y.add(v):y.subtract(v);if(x.isNaN())return om;t=t.replace(QG,x.toString())}return t}var e$=/\(([^()]*)\)/;function KAe(e){for(var t=e;t.includes("(");){var r=e$.exec(t),a=BS(r,2),n=a[1];t=t.replace(e$,r$(n))}return t}function XAe(e){var t=e.replace(/\s+/g,"");return t=KAe(t),t=r$(t),t}function YAe(e){try{return XAe(e)}catch{return om}}function VS(e){var t=YAe(e.slice(5,-1));return t===om?"":t}var JAe=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],ZAe=["dx","dy","angle","className","breakAll"];function bL(){return bL=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},bL.apply(this,arguments)}function a$(e,t){if(e==null)return{};var r=QAe(e,t),a,n;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)a=o[n],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function QAe(e,t){if(e==null)return{};var r={};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;r[a]=e[a]}return r}function n$(e,t){return a5e(e)||r5e(e,t)||t5e(e,t)||e5e()}
122function e5e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 123In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function t5e(e,t){if(e){if(typeof e=="string")return o$(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o$(e,t)}}function o$(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function r5e(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a,n,o,i,s=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(a=o.call(r)).done)&&(s.push(a.value),s.length!==t);l=!0);}catch(d){c=!0,n=d}finally{try{if(!l&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw n}}return s}}function a5e(e){if(Array.isArray(e))return e}var l$=/[ \f\n\r\t\v\u2028\u2029]+/,c$=function(t){var r=t.children,a=t.breakAll,n=t.style;try{var o=[];(0,xL.default)(r)||(a?o=r.toString().split(""):o=r.toString().split(l$));var i=o.map(function(l){return{word:l,width:od(l,n).width}}),s=a?0:od("\xA0",n).width;return{wordsWithComputedWidth:i,spaceWidth:s}}catch{return null}},n5e=function(t,r,a,n,o){var i=t.maxLines,s=t.children,l=t.style,c=t.breakAll,d=me(i),u=s,f=function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return B.reduce(function(I,A){var M=A.word,D=A.width,V=I[I.length-1];if(V&&(n==null||o||V.width+D+a<Number(n)))V.words.push(M),V.width+=D+a;else{var P={words:[M],width:D};I.push(P)}return I},[])},p=f(r),m=function(B){return B.reduce(function(I,A){return I.width>A.width?I:A})};if(!d)return p;for(var h="\u2026",g=function(B){var I=u.slice(0,B),A=c$({breakAll:c,style:l,children:I+h}).wordsWithComputedWidth,M=f(A),D=M.length>i||m(M).width>Number(n);return[D,M]},y=0,v=u.length-1,x=0,S;y<=v&&x<=u.length-1;){var b=Math.floor((y+v)/2),w=b-1,k=g(w),C=n$(k,2),N=C[0],E=C[1],L=g(b),T=n$(L,1),q=T[0];if(!N&&!q&&(y=b+1),N&&q&&(v=b-1),!N&&q){S=E;break}x++}return S||p},i$=function(t){var r=(0,xL.default)(t)?[]:t.toString().split(l$);return[{words:r}]},o5e=function(t){var r=t.width,a=t.scaleToFit,n=t.children,o=t.style,i=t.breakAll,s=t.maxLines;if((r||a)&&!la.isSsr){var l,c,d=c$({breakAll:i,children:n,style:o});if(d){var u=d.wordsWithComputedWidth,f=d.spaceWidth;l=u,c=f}else return i$(n);return n5e({breakAll:i,children:n,maxLines:s,style:o},l,c,r,a)}return i$(n)},s$="#808080",go=function(t){var r=t.x,a=r===void 0?0:r,n=t.y,o=n===void 0?0:n,i=t.lineHeight,s=i===void 0?"1em":i,l=t.capHeight,c=l===void 0?"0.71em":l,d=t.scaleToFit,u=d===void 0?!1:d,f=t.textAnchor,p=f===void 0?"start":f,m=t.verticalAnchor,h=m===void 0?"end":m,g=t.fill,y=g===void 0?s$:g,v=a$(t,JAe),x=(0,Av.useMemo)(function(){return o5e({breakAll:v.breakAll,children:v.children,maxLines:v.maxLines,scaleToFit:u,style:v.style,width:v.width})},[v.breakAll,v.children,v.maxLines,u,v.style,v.width]),S=v.dx,b=v.dy,w=v.angle,k=v.className,C=v.breakAll,N=a$(v,ZAe);if(!Xt(a)||!Xt(o))return null;var E=a+(me(S)?S:0),L=o+(me(b)?b:0),T;switch(h){case"start":T=VS("calc(".concat(c,")"));break;case"middle":T=VS("calc(".concat((x.length-1)/2," * -").concat(s," + (").concat(c," / 2))"));break;default:T=VS("calc(".concat(x.length-1," * -").concat(s,")"));break}var q=[];if(u){var _=x[0].width,B=v.width;q.push("scale(".concat((me(B)?B/_:1)/_,")"))}return w&&q.push("rotate(".concat(w,", ").concat(E,", ").concat(L,")")),q.length&&(N.transform=q.join(" ")),Av.default.createElement("text",bL({},Ne(N,!0),{x:E,y:L,className:Me("recharts-text",k),textAnchor:p,fill:y.includes("url")?s$:y}),x.map(function(I,A){var M=I.words.join(C?"":" ");return Av.default.createElement("tspan",{x:E,dy:A===0?T:s,key:"".concat(M,"-").concat(A)},M)}))};var _r=R(Q()),uy=R(qn()),dy=R(ir()),AT=R(Jo());var NX=R(qn()),IX=R(Q()),PX=R(ir());var S2={};UO(S2,{scaleBand:()=>Oc,scaleDiverging:()=>x2,scaleDivergingLog:()=>eT,scaleDivergingPow:()=>w2,scaleDivergingSqrt:()=>LK,scaleDivergingSymlog:()=>tT,scaleIdentity:()=>n2,scaleImplicit:()=>$S,scaleLinear:()=>md,scaleLog:()=>o2,scaleOrdinal:()=>lm,scalePoint:()=>Dc,scalePow:()=>qv,scaleQuantile:()=>l2,scaleQuantize:()=>c2,scaleRadial:()=>s2,scaleSequential:()=>g2,scaleSequentialLog:()=>ZL,scaleSequentialPow:()=>v2,scaleSequentialQuantile:()=>y2,scaleSequentialSqrt:()=>AK,scaleSequentialSymlog:()=>QL,scaleSqrt:()=>J$,scaleSymlog:()=>i2,scaleThreshold:()=>u2,scaleTime:()=>YL,scaleUtc:()=>JL,tickFormat:()=>Fv});function wn(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function wL(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function id(e){let t,r,a;e.length!==2?(t=wn,r=(s,l)=>wn(e(s),l),a=(s,l)=>e(s)-l):(t=e===wn||e===wL?e:i5e,r=e,a=e);
123function n(s,l,c=0,d=s.length){if(c<d){if(t(l,l)!==0)return d;do{let u=c+d>>>1;r(s[u],l)<0?c=u+1:d=u}while(c<d)}return c}function o(s,l,c=0,d=s.length){if(c<d){if(t(l,l)!==0)return d;do{let u=c+d>>>1;r(s[u],l)<=0?c=u+1:d=u}while(c<d)}return c}function i(s,l,c=0,d=s.length){let u=n(s,l,c,d-1);return u>c&&a(s[u-1],l)>-a(s[u],l)?u-1:u}return{left:n,center:i,right:o}}function i5e(){return 0}function Lv(e){return e===null?NaN:+e}function*u$(e,t){if(t===void 0)for(let r of e)r!=null&&(r=+r)>=r&&(yield r);else{let r=-1;for(let a of e)(a=t(a,++r,e))!=null&&(a=+a)>=a&&(yield a)}}var d$=id(wn),f$=d$.right,s5e=d$.left,l5e=id(Lv).center,ji=f$;var im=class extends Map{constructor(t,r=d5e){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(let[a,n]of t)this.set(a,n)}get(t){return super.get(p$(this,t))}has(t){return super.has(p$(this,t))}set(t,r){return super.set(c5e(this,t),r)}delete(t){return super.delete(u5e(this,t))}};function p$({_intern:e,_key:t},r){let a=t(r);return e.has(a)?e.get(a):r}function c5e({_intern:e,_key:t},r){let a=t(r);return e.has(a)?e.get(a):(e.set(a,r),r)}function u5e({_intern:e,_key:t},r){let a=t(r);return e.has(a)&&(r=e.get(a),e.delete(a)),r}function d5e(e){return e!==null&&typeof e=="object"?e.valueOf():e}function m$(e=wn){if(e===wn)return SL;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{let a=e(t,r);return a||a===0?a:(e(r,r)===0)-(e(t,t)===0)}}function SL(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}var f5e=Math.sqrt(50),p5e=Math.sqrt(10),m5e=Math.sqrt(2);function US(e,t,r){let a=(t-e)/Math.max(0,r),n=Math.floor(Math.log10(a)),o=a/Math.pow(10,n),i=o>=f5e?10:o>=p5e?5:o>=m5e?2:1,s,l,c;return n<0?(c=Math.pow(10,-n)/i,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&++s,l/c>t&&--l,c=-c):(c=Math.pow(10,n)*i,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=r&&r<2?US(e,t,r*2):[s,l,c]}function sd(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];let a=t<e,[n,o,i]=a?US(t,e,r):US(e,t,r);if(!(o>=n))return[];let s=o-n+1,l=new Array(s);if(a)if(i<0)for(let c=0;c<s;++c)l[c]=(o-c)/-i;else for(let c=0;c<s;++c)l[c]=(o-c)*i;else if(i<0)for(let c=0;c<s;++c)l[c]=(n+c)/-i;else for(let c=0;c<s;++c)l[c]=(n+c)*i;return l}function Tv(e,t,r){return t=+t,e=+e,r=+r,US(e,t,r)[2]}function sm(e,t,r){t=+t,e=+e,r=+r;let a=t<e,n=a?Tv(t,e,r):Tv(e,t,r);return(a?-1:1)*(n<0?1/-n:n)}function qS(e,t){let r;if(t===void 0)for(let a of e)a!=null&&(r<a||r===void 0&&a>=a)&&(r=a);else{let a=-1;for(let n of e)(n=t(n,++a,e))!=null&&(r<n||r===void 0&&n>=n)&&(r=n)}return r}function zS(e,t){let r;if(t===void 0)for(let a of e)a!=null&&(r>a||r===void 0&&a>=a)&&(r=a);else{let a=-1;for(let n of e)(n=t(n,++a,e))!=null&&(r>n||r===void 0&&n>=n)&&(r=n)}return r}function HS(e,t,r=0,a=1/0,n){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),a=Math.floor(Math.min(e.length-1,a)),!(r<=t&&t<=a))return e;for(n=n===void 0?SL:m$(n);a>r;){if(a-r>600){let l=a-r+1,c=t-r+1,d=Math.log(l),u=.5*Math.exp(2*d/3),f=.5*Math.sqrt(d*u*(l-u)/l)*(c-l/2<0?-1:1),p=Math.max(r,Math.floor(t-c*u/l+f)),m=Math.min(a,Math.floor(t+(l-c)*u/l+f));HS(e,t,p,m,n)}let o=e[t],i=r,s=a;for(Rv(e,r,t),n(e[a],o)>0&&Rv(e,r,a);i<s;){for(Rv(e,i,s),++i,--s;n(e[i],o)<0;)++i;for(;n(e[s],o)>0;)--s}n(e[r],o)===0?Rv(e,r,s):(++s,Rv(e,s,a)),s<=t&&(r=s+1),t<=s&&(a=s-1)}return e}function Rv(e,t,r){let a=e[t];e[t]=e[r],e[r]=a}function WS(e,t,r){if(e=Float64Array.from(u$(e,r)),!(!(a=e.length)||isNaN(t=+t))){if(t<=0||a<2)return zS(e);if(t>=1)return qS(e);var a,n=(a-1)*t,o=Math.floor(n),i=qS(HS(e,o).subarray(0,o+1)),s=zS(e.subarray(o+1));return i+(s-i)*(n-o)}}function CL(e,t,r=Lv){if(!(!(a=e.length)||isNaN(t=+t))){if(t<=0||a<2)return+r(e[0],0,e);if(t>=1)return+r(e[a-1],a-1,e);var a,n=(a-1)*t,o=Math.floor(n),i=+r(e[o],o,e),s=+r(e[o+1],o+1,e);return i+(s-i)*(n-o)}}function GS(e,t,r){e=+e,t=+t,r=(n=arguments.length)<2?(t=e,e=0,1):n<3?1:+r;for(var a=-1,n=Math.max(0,Math.ceil((t-e)/r))|0,o=new Array(n);++a<n;)o[a]=e+a*r;return o}function gr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function oi(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}
123var $S=Symbol("implicit");function lm(){var e=new im,t=[],r=[],a=$S;function n(o){let i=e.get(o);if(i===void 0){if(a!==$S)return a;e.set(o,i=t.push(o)-1)}return r[i%r.length]}return n.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new im;for(let i of o)e.has(i)||e.set(i,t.push(i)-1);return n},n.range=function(o){return arguments.length?(r=Array.from(o),n):r.slice()},n.unknown=function(o){return arguments.length?(a=o,n):a},n.copy=function(){return lm(t,r).unknown(a)},gr.apply(n,arguments),n}function Oc(){var e=lm().unknown(void 0),t=e.domain,r=e.range,a=0,n=1,o,i,s=!1,l=0,c=0,d=.5;delete e.unknown;function u(){var f=t().length,p=n<a,m=p?n:a,h=p?a:n;o=(h-m)/Math.max(1,f-l+c*2),s&&(o=Math.floor(o)),m+=(h-m-o*(f-l))*d,i=o*(1-l),s&&(m=Math.round(m),i=Math.round(i));var g=GS(f).map(function(y){return m+o*y});return r(p?g.reverse():g)}return e.domain=function(f){return arguments.length?(t(f),u()):t()},e.range=function(f){return arguments.length?([a,n]=f,a=+a,n=+n,u()):[a,n]},e.rangeRound=function(f){return[a,n]=f,a=+a,n=+n,s=!0,u()},e.bandwidth=function(){return i},e.step=function(){return o},e.round=function(f){return arguments.length?(s=!!f,u()):s},e.padding=function(f){return arguments.length?(l=Math.min(1,c=+f),u()):l},e.paddingInner=function(f){return arguments.length?(l=Math.min(1,f),u()):l},e.paddingOuter=function(f){return arguments.length?(c=+f,u()):c},e.align=function(f){return arguments.length?(d=Math.max(0,Math.min(1,f)),u()):d},e.copy=function(){return Oc(t(),[a,n]).round(s).paddingInner(l).paddingOuter(c).align(d)},gr.apply(u(),arguments)}function h$(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return h$(t())},e}function Dc(){return h$(Oc.apply(null,arguments).paddingInner(1))}function KS(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function kL(e,t){var r=Object.create(e.prototype);for(var a in t)r[a]=t[a];return r}function Mv(){}var Ov=.7,JS=1/Ov,cm="\\s*([+-]?\\d+)\\s*",Dv="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Is="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",h5e=/^#([0-9a-f]{3,8})$/,g5e=new RegExp(`^rgb\\(${cm},${cm},${cm}\\)$`),v5e=new RegExp(`^rgb\\(${Is},${Is},${Is}\\)$`),y5e=new RegExp(`^rgba\\(${cm},${cm},${cm},${Dv}\\)$`),b5e=new RegExp(`^rgba\\(${Is},${Is},${Is},${Dv}\\)$`),x5e=new RegExp(`^hsl\\(${Dv},${Is},${Is}\\)$`),w5e=new RegExp(`^hsla\\(${Dv},${Is},${Is},${Dv}\\)$`),g$={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};KS(Mv,Mc,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:v$,formatHex:v$,formatHex8:S5e,formatHsl:C5e,formatRgb:y$,toString:y$});function v$(){return this.rgb().formatHex()}function S5e(){return this.rgb().formatHex8()}function C5e(){return k$(this).formatHsl()}function y$(){return this.rgb().formatRgb()}function Mc(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=h5e.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?b$(t):r===3?new Hn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?XS(t>>
vendor: 16,079 bytes, line 123
12324&255,t>>16&255,t>>8&255,(t&255)/255):r===4?XS(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=g5e.exec(e))?new Hn(t[1],t[2],t[3],1):(t=v5e.exec(e))?new Hn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=y5e.exec(e))?XS(t[1],t[2],t[3],t[4]):(t=b5e.exec(e))?XS(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=x5e.exec(e))?S$(t[1],t[2]/100,t[3]/100,1):(t=w5e.exec(e))?S$(t[1],t[2]/100,t[3]/100,t[4]):g$.hasOwnProperty(e)?b$(g$[e]):e==="transparent"?new Hn(NaN,NaN,NaN,0):null}function b$(e){return new Hn(e>>16&255,e>>8&255,e&255,1)}function XS(e,t,r,a){return a<=0&&(e=t=r=NaN),new Hn(e,t,r,a)}function k5e(e){return e instanceof Mv||(e=Mc(e)),e?(e=e.rgb(),new Hn(e.r,e.g,e.b,e.opacity)):new Hn}function um(e,t,r,a){return arguments.length===1?k5e(e):new Hn(e,t,r,a??1)}function Hn(e,t,r,a){this.r=+e,this.g=+t,this.b=+r,this.opacity=+a}KS(Hn,um,kL(Mv,{brighter(e){return e=e==null?JS:Math.pow(JS,e),new Hn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Ov:Math.pow(Ov,e),new Hn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Hn(cd(this.r),cd(this.g),cd(this.b),ZS(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:x$,formatHex:x$,formatHex8:N5e,formatRgb:w$,toString:w$}));function x$(){return`#${ld(this.r)}${ld(this.g)}${ld(this.b)}`}function N5e(){return`#${ld(this.r)}${ld(this.g)}${ld(this.b)}${ld((isNaN(this.opacity)?1:this.opacity)*255)}`}function w$(){let e=ZS(this.opacity);return`${e===1?"rgb(":"rgba("}${cd(this.r)}, ${cd(this.g)}, ${cd(this.b)}${e===1?")":`, ${e})`}`}function ZS(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function cd(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ld(e){return e=cd(e),(e<16?"0":"")+e.toString(16)}function S$(e,t,r,a){return a<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Bi(e,t,r,a)}function k$(e){if(e instanceof Bi)return new Bi(e.h,e.s,e.l,e.opacity);if(e instanceof Mv||(e=Mc(e)),!e)return new Bi;if(e instanceof Bi)return e;e=e.rgb();var t=e.r/255,r=e.g/255,a=e.b/255,n=Math.min(t,r,a),o=Math.max(t,r,a),i=NaN,s=o-n,l=(o+n)/2;return s?(t===o?i=(r-a)/s+(r<a)*6:r===o?i=(a-t)/s+2:i=(t-r)/s+4,s/=l<.5?o+n:2-o-n,i*=60):s=l>0&&l<1?0:i,new Bi(i,s,l,e.opacity)}function N$(e,t,r,a){return arguments.length===1?k$(e):new Bi(e,t,r,a??1)}function Bi(e,t,r,a){this.h=+e,this.s=+t,this.l=+r,this.opacity=+a}KS(Bi,N$,kL(Mv,{brighter(e){return e=e==null?JS:Math.pow(JS,e),new Bi(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ov:Math.pow(Ov,e),new Bi(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,a=r+(r<.5?r:1-r)*t,n=2*r-a;return new Hn(NL(e>=240?e-240:e+120,n,a),NL(e,n,a),NL(e<120?e+240:e-120,n,a),this.opacity)},clamp(){return new Bi(C$(this.h),YS(this.s),YS(this.l),ZS(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=ZS(this.opacity);return`${e===1?"hsl(":"hsla("}${C$(this.h)}, ${YS(this.s)*100}%, ${YS(this.l)*100}%${e===1?")":`, ${e})`}`}}));function C$(e){return e=(e||0)%360,e<0?e+360:e}function YS(e){return Math.max(0,Math.min(1,e||0))}function NL(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}function IL(e,t,r,a,n){var o=e*e,i=o*e;return((1-3*e+3*o-i)*t+(4-6*o+3*i)*r+(1+3*e+3*o-3*i)*a+i*n)/6}function I$(e){var t=e.length-1;return function(r){var a=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),n=e[a],o=e[a+1],i=a>0?e[a-1]:2*n-o,s=a<t-1?e[a+2]:2*o-n;return IL((r-a/t)*t,i,n,o,s)}}function P$(e){var t=e.length;return function(r){var a=Math.floor(((r%=1)<0?++r:r)*t),n=e[(a+t-1)%t],o=e[a%t],i=e[(a+1)%t],s=e[(a+2)%t];return IL((r-a/t)*t,n,o,i,s)}}var _v=e=>()=>e;function I5e(e,t){return function(r){return e+r*t}}function P5e(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(a){return Math.pow(e+a*t,r)}}function E$(e){return(e=+e)==1?QS:function(t,r){return r-t?P5e(t,r,e):_v(isNaN(t)?r:t)}}function QS(e,t){var r=t-e;return r?I5e(e,r):_v(isNaN(e)?t:e)}var PL=(function e(t){var r=E$(t);function a(n,o){var i=r((n=um(n)).r,(o=um(o)).r),s=r(n.g,o.g),l=r(n.b,o.b),c=QS(n.opacity,o.opacity);return function(d){return n.r=i(d),n.g=s(d),n.b=l(d),n.opacity=c(d),n+""}}return a.gamma=e,a})(1);function A$(e){return function(t){var r=t.length,a=new Array(r),n=new Array(r),o=new Array(r),i,s;for(i=0;i<r;++i)s=um(t[i]),a[i]=s.r||0,n[i]=s.g||0,o[i]=s.b||0;return a=e(a),n=e(n),o=e(o),s.opacity=1,function(l){return s.r=a(l),s.g=n(l),s.b=o(l),s+""}}}var cbt=A$(I$),ubt=A$(P$);function L$(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,a=t.slice(),n;return function(o){for(n=0;n<r;++n)a[n]=e[n]*(1-o)+t[n]*o;return a}}function T$(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function R$(e,t){var r=t?t.length:0,a=e?Math.min(r,e.length):0,n=new Array(a),o=new Array(r),i;for(i=0;i<a;++i)n[i]=vo(e[i],t[i]);for(;i<r;++i)o[i]=t[i];return function(s){for(i=0;i<a;++i)o[i]=n[i](s);return o}}function O$(e,t){var r=new Date;return e=+e,t=+t,function(a){return r.setTime(e*(1-a)+t*a),r}}function _c(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function D$(e,t){var r={},a={},n;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(n in t)n in e?r[n]=vo(e[n],t[n]):a[n]=t[n];return function(o){for(n in r)a[n]=r[n](o);return a}}var AL=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,EL=new RegExp(AL.source,"g");function E5e(e){return function(){return e}}function A5e(e){return function(t){return e(t)+""}}function M$(e,t){var r=AL.lastIndex=EL.lastIndex=0,a,n,o,i=-1,s=[],l=[];for(e=e+"",t=t+"";(a=AL.exec(e))&&(n=EL.exec(t));)(o=n.index)>r&&(o=t.slice(r,o),s[i]?s[i]+=o:s[++i]=o),(a=a[0])===(n=n[0])?s[i]?s[i]+=n:s[++i]=n:(s[++i]=null,l.push({i,x:_c(a,n)})),r=EL.lastIndex;return r<t.length&&(o=t.slice(r),s[i]?s[i]+=o:s[++i]=o),s.length<2?l[0]?A5e(l[0].x):E5e(t):(t=l.length,function(c){for(var d=0,u;d<t;++d)s[(u=l[d]).i]=u.x(c);return s.join("")})}function vo(e,t){var r=typeof t,a;return t==null||r==="boolean"?_v(t):(r==="number"?_c:r==="string"?(a=Mc(t))?(t=a,PL):M$:t instanceof Mc?PL:t instanceof Date?O$:T$(t)?L$:Array.isArray(t)?R$:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?D$:_c)(e,t)}function ud(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function e2(e,t){t===void 0&&(t=e,e=vo);for(var r=0,a=t.length-1,n=t[0],o=new Array(a<0?0:a);r<a;)o[r]=e(n,n=t[++r]);return function(i){var s=Math.max(0,Math.min(a-1,Math.floor(i*=a)));return o[s](i-s)}}function LL(e){return function(){return e}}function Fc(e){return+e}var _$=[0,1];function ca(e){return e}function TL(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:LL(isNaN(t)?NaN:.5)}function L5e(e,t){var r;return e>t&&(r=e,e=t,t=r),function(a){return Math.max(e,Math.min(t,a))}}function T5e(e,t,r){var a=e[0],n=e[1],o=t[0],i=t[1];return n<a?(a=TL(n,a),o=r(i,o)):(a=TL(a,n),o=r(o,i)),function(s){return o(a(s))}}function R5e(e,t,r){var a=Math.min(e.length,t.length)-1,n=new Array(a),o=new Array(a),i=-1;for(e[a]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++i<a;)n[i]=TL(e[i],e[i+1]),o[i]=r(t[i],t[i+1]);return function(s){var l=ji(e,s,1,a)-1;return o[l](n[l](s))}}function Ps(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function dd(){var e=_$,t=_$,r=vo,a,n,o,i=ca,s,l,c;function d(){var f=Math.min(e.length,t.length);return i!==ca&&(i=L5e(e[0],e[f-1])),s=f>2?R5e:T5e,l=c=null,u}function u(f){return f==null||isNaN(f=+f)?o:(l||(l=s(e.map(a),t,r)))(a(i(f)))}return u.invert=function(f){return i(n((c||(c=s(t,e.map(a),_c)))(f)))},u.domain=function(f){return arguments.length?(e=Array.from(f,Fc),d()):e.slice()},u.range=function(f){return arguments.length?(t=Array.from(f),d()):t.slice()},u.rangeRound=function(f){return t=Array.from(f),r=ud,d()},u.clamp=function(f){return arguments.length?(i=f?!0:ca,d()):i!==ca},u.interpolate=function(f){return arguments.length?(r=f,d()):r},u.unknown=function(f){return arguments.length?(o=f,u):o},function(f,p){return a=f,n=p,d()}}function fd(){return dd()(ca,ca)}function F$(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function pd(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,a=e.slice(0,r);return[a.length>1?a[0]+a.slice(2):a,+e.slice(r+1)]}function Es(e){return e=pd(Math.abs(e)),e?e[1]:NaN}function j$(e,t){return function(r,a){for(var n=r.length,o=[],i=0,s=e[0],l=0;n>0&&s>0&&(l+s+1>a&&(s=Math.max(1,a-l)),o.push(r.substring(n-=s,n+s)),!((l+=s+1)>a));)s=e[i=(i+1)%e.length];return o.reverse().join(t)}}function B$(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var O5e=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function As(e){if(!(t=O5e.exec(e)))throw new Error("invalid format: "+e);var t;return new t2({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}As.prototype=t2.prototype;function t2(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}t2.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function V$(e){e:for(var t=e.length,r=1,a=-1,n;r<t;++r)switch(e[r]){case".":a=n=r;break;case"0":a===0&&(a=r),n=r;break;default:if(!+e[r])break e;a>0&&(a=0);break}return a>0?e.slice(0,a)+e.slice(n+1):e}var RL;function U$(e,t){var r=pd(e,t);if(!r)return e+"";var a=r[0],n=r[1],o=n-(RL=Math.max(-8,Math.min(8,Math.floor(n/3)))*3)+1,i=a.length;return o===i?a:o>i?a+new Array(o-i+1).join("0"):o>0?a.slice(0,o)+"."+a.slice(o):"0."+new Array(1-o).join("0")+pd(e,Math.max(0,t+o-1))[0]}function OL(e,t){var r=pd(e,t);if(!r)return e+"";var a=r[0],n=r[1];return n<0?"0."+new Array(-n).join("0")+a:a.length>n+1?a.slice(0,n+1)+"."+a.slice(n+1):a+new Array(n-a.length+2).join("0")}var DL={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:F$,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>OL(e*100,t),r:OL,s:U$,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function ML(e){return e}var q$=Array.prototype.map,z$=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function H$(e){var t=e.grouping===void 0||e.thousands===void 0?ML:j$(q$.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",a=e.currency===void 0?"":e.currency[1]+"",n=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?ML:B$(q$.call(e.numerals,String)),i=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"\u2212":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(u){u=As(u);var f=u.fill,p=u.align,m=u.sign,h=u.symbol,g=u.zero,y=u.width,v=u.comma,x=u.precision,S=u.trim,b=u.type;b==="n"?(v=!0,b="g"):DL[b]||(x===void 0&&(x=12),S=!0,b="g"),(g||f==="0"&&p==="=")&&(g=!0,f="0",p="=");var w=h==="$"?r:h==="#"&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",k=h==="$"?a:/[%p]/.test(b)?i:"",C=DL[b],N=/[defgprs%]/.test(b);x=x===void 0?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function E(L){var T=w,q=k,_,B,I;if(b==="c")q=C(L)+q,L="";else{L=+L;var A=L<0||1/L<0;if(L=isNaN(L)?l:C(Math.abs(L),x),S&&(L=V$(L)),A&&+L==0&&m!=="+"&&(A=!1),T=(A?m==="("?m:s:m==="-"||m==="("?"":m)+T,q=(b==="s"?z$[8+RL/3]:"")+q+(A&&m==="("?")":""),N){for(_=-1,B=L.length;++_<B;)if(I=L.charCodeAt(_),48>I||I>57){q=(I===46?n+L.slice(_+1):L.slice(_))+q,L=L.slice(0,_);break}}}v&&!g&&(L=t(L,1/0));var M=T.length+L.length+q.length,D=M<y?new Array(y-M+1).join(f):"";switch(v&&g&&(L=t(D+L,D.length?y-q.length:1/0),D=""),p){case"<":L=T+L+q+D;break;case"=":L=T+D+L+q;break;case"^":L=D.slice(0,M=D.length>>1)+T+L+q+D.slice(M);break;default:L=D+T+L+q;break}return o(L)}return E.toString=function(){return u+""},E}function d(u,f){var p=c((u=As(u),u.type="f",u)),m=Math.max(-8,Math.min(8,Math.floor(Es(f)/3)))*3,h=Math.pow(10,-m),g=z$[8+m/3];return function(y){return p(h*y)+g}}return{format:c,formatPrefix:d}}var r2,dm,a2;_L({thousands:",",grouping:[3],currency:["$",""]});function _L(e){return r2=H$(e),dm=r2.format,a2=r2.formatPrefix,r2}function FL(e){return Math.max(0,-Es(Math.abs(e)))}function jL(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Es(t)/3)))*3-Es(Math.abs(e)))}function BL(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Es(t)-Es(e))+1}function Fv(e,t,r,a){var n=sm(e,t,r),o;switch(a=As(a??",f"),a.type){case"s":{var i=Math.max(Math.abs(e),Math.abs(t));return a.precision==null&&!isNaN(o=jL(n,i))&&(a.precision=o),a2(a,i)}case"":case"e":case"g":case"p":case"r":{a.precision==null&&!isNaN(o=BL(n,Math.max(Math.abs(e),Math.abs(t))))&&(a.precision=o-(a.type==="e"));break}case"f":case"%":{a.precision==null&&!isNaN(o=FL(n))&&(a.precision=o-(a.type==="%")*2);break}}return dm(a)}function Sn(e){var t=e.domain;return e.ticks=function(r){var a=t();return sd(a[0],a[a.length-1],r??10)},e.tickFormat=function(r,a){var n=t();return Fv(n[0],n[n.length-1],r??10,a)},e.nice=function(r){r==null&&(r=10);var a=t(),n=0,o=a.length-1,i=a[n],s=a[o],l,c,d=10;for(s<i&&(c=i,i=s,s=c,c=n,n=o,o=c);d-- >0;){if(c=Tv(i,s,r),c===l)return a[n]=i,a[o]=s,t(a);if(c>0)i=Math.floor(i/c)*c,s=Math.ceil(s/c)*c;else if(c<0)i=Math.ceil(i*c)/c,s=Math.floor(s*c)/c;else break;l=c}return e},e}function md(){var e=fd();return e.copy=function(){return Ps(e,md())},gr.apply(e,arguments),Sn(e)}function n2(e){var t;function r(a){return a==null||isNaN(a=+a)?t:a}return r.invert=r,r.domain=r.range=function(a){return arguments.length?(e=Array.from(a,Fc),r):e.slice()},r.unknown=function(a){return arguments.length?(t=a,r):t},r.copy=function(){return n2(e).unknown(t)},e=arguments.length?Array.from(e,Fc):[0,1],Sn(r)}function jv(e,t){e=e.slice();var r=0,a=e.length-1,n=e[r],o=e[a],i;return o<n&&(i=r,r=a,a=i,i=n,n=o,o=i),e[r]=t.floor(n),e[a]=t.ceil(o),e}function W$(e){return Math.log(e)}function G$(e){return Math.exp(e)}function D5e(e){return-Math.log(-e)}function M5e(e){return-Math.exp(-e)}function _5e(e){return isFinite(e)?+("1e"+e):e<0?0:e}function F5e(e){return e===10?_5e:e===Math.E?Math.exp:t=>Math.pow(e,t)}function j5e(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function $$(e){return(t,r)=>-e(-t,r)}function Bv(e){let t=e(W$,G$),r=t.domain,a=10,n,o;function i(){return n=j5e(a),o=F5e(a),r()[0]<0?(n=$$(n),o=$$(o),e(D5e,M5e)):e(W$,G$),t}return t.base=function(s){return arguments.length?(a=+s,i()):a},t.domain=function(s){return arguments.length?(r(s),i()):r()},t.ticks=s=>{let l=r(),c=l[0],d=l[l.length-1],u=d<c;u&&([c,d]=[d,c]);let f=n(c),p=n(d),m,h,g=s==null?10:+s,y=[];if(!(a%1)&&p-f<g){if(f=Math.floor(f),p=Math.ceil(p),c>0){for(;f<=p;++f)for(m=1;m<a;++m)if(h=f<0?m/o(-f):m*o(f),!(h<c)){if(h>d)break;y.push(h)}}else for(;f<=p;++f)for(m=a-1;m>=1;--m)if(h=f>0?m/o(-f):m*o(f),!(h<c)){if(h>d)break;y.push(h)}y.length*2<g&&(y=sd(c,d,g))}else y=sd(f,p,Math.min(p-f,g)).map(o);return u?y.reverse():y},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=a===10?"s":","),typeof l!="function"&&(!(a%1)&&(l=As(l)).precision==null&&(l.trim=!0),l=dm(l)),s===1/0)return l;let c=Math.max(1,a*s/t.ticks().length);return d=>{let u=d/o(Math.round(n(d)));return u*a<a-.5&&(u*=a),u<=c?l(d):""}},t.nice=()=>r(jv(r(),{floor:s=>o(Math.floor(n(s))),ceil:s=>o(Math.ceil(n(s)))})),t}function o2(){let e=Bv(dd()).domain([1,10]);return e.copy=()=>Ps(e,o2()).base(e.base()),gr.apply(e,arguments),e}
123function K$(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function X$(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Vv(e){var t=1,r=e(K$(t),X$(t));return r.constant=function(a){return arguments.length?e(K$(t=+a),X$(t)):t},Sn(r)}function i2(){var e=Vv(dd());return e.copy=function(){return Ps(e,i2()).constant(e.constant())},gr.apply(e,arguments)}function Y$(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function B5e(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function V5e(e){return e<0?-e*e:e*e}function Uv(e){var t=e(ca,ca),r=1;function a(){return r===1?e(ca,ca):r===.5?e(B5e,V5e):e(Y$(r),Y$(1/r))}return t.exponent=function(n){return arguments.length?(r=+n,a()):r},Sn(t)}function qv(){var e=Uv(dd());return e.copy=function(){return Ps(e,qv()).exponent(e.exponent())},gr.apply(e,arguments),e}function J$(){return qv.apply(null,arguments).exponent(.5)}function Z$(e){return Math.sign(e)*e*e}function U5e(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function s2(){var e=fd(),t=[0,1],r=!1,a;function n(o){var i=U5e(e(o));return isNaN(i)?a:r?Math.round(i):i}return n.invert=function(o){return e.invert(Z$(o))},n.domain=function(o){return arguments.length?(e.domain(o),n):e.domain()},n.range=function(o){return arguments.length?(e.range((t=Array.from(o,Fc)).map(Z$)),n):t.slice()},n.rangeRound=function(o){return n.range(o).round(!0)},n.round=function(o){return arguments.length?(r=!!o,n):r},n.clamp=function(o){return arguments.length?(e.clamp(o),n):e.clamp()},n.unknown=function(o){return arguments.length?(a=o,n):a},n.copy=function(){return s2(e.domain(),t).round(r).clamp(e.clamp()).unknown(a)},gr.apply(n,arguments),Sn(n)}function l2(){var e=[],t=[],r=[],a;function n(){var i=0,s=Math.max(1,t.length);for(r=new Array(s-1);++i<s;)r[i-1]=CL(e,i/s);return o}function o(i){return i==null||isNaN(i=+i)?a:t[ji(r,i)]}return o.invertExtent=function(i){var s=t.indexOf(i);return s<0?[NaN,NaN]:[s>0?r[s-1]:e[0],s<r.length?r[s]:e[e.length-1]]},o.domain=function(i){if(!arguments.length)return e.slice();e=[];for(let s of i)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(wn),n()},o.range=function(i){return arguments.length?(t=Array.from(i),n()):t.slice()},o.unknown=function(i){return arguments.length?(a=i,o):a},o.quantiles=function(){return r.slice()},o.copy=function(){return l2().domain(e).range(t).unknown(a)},gr.apply(o,arguments)}function c2(){var e=0,t=1,r=1,a=[.5],n=[0,1],o;function i(l){return l!=null&&l<=l?n[ji(a,l,0,r)]:o}function s(){var l=-1;for(a=new Array(r);++l<r;)a[l]=((l+1)*t-(l-r)*e)/(r+1);return i}return i.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},i.range=function(l){return arguments.length?(r=(n=Array.from(l)).length-1,s()):n.slice()},i.invertExtent=function(l){var c=n.indexOf(l);return c<0?[NaN,NaN]:c<1?[e,a[0]]:c>=r?[a[r-1],t]:[a[c-1],a[c]]},i.unknown=function(l){return arguments.length&&(o=l),i},i.thresholds=function(){return a.slice()},i.copy=function(){return c2().domain([e,t]).range(n).unknown(o)},gr.apply(Sn(i),arguments)}function u2(){var e=[.5],t=[0,1],r,a=1;function n(o){return o!=null&&o<=o?t[ji(e,o,0,a)]:r}return n.domain=function(o){return arguments.length?(e=Array.from(o),a=Math.min(e.length,t.length-1),n):e.slice()},n.range=function(o){return arguments.length?(t=Array.from(o),a=Math.min(e.length,t.length-1),n):t.slice()},n.invertExtent=function(o){var i=t.indexOf(o);return[e[i-1],e[i]]},n.unknown=function(o){return arguments.length?(r=o,n):r},n.copy=function(){return u2().domain(e).range(t).unknown(r)},gr.apply(n,arguments)}var VL=new Date,UL=new Date;function zt(e,t,r,a){function n(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return n.floor=o=>(e(o=new Date(+o)),o),n.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),n.round=o=>{let i=n(o),s=n.ceil(o);return o-i<s-o?i:s},n.offset=(o,i)=>(t(o=new Date(+o),i==null?1:Math.floor(i)),o),n.range=(o,i,s)=>{let l=[];if(o=n.ceil(o),s=s==null?1:Math.floor(s),!(o<i)||!(s>0))return l;let c;do l.push(c=new Date(+o)),t(o,s),e(o);while(c<o&&o<i);return l},n.filter=o=>zt(i=>{if(i>=i)for(;e(i),!o(i);)i.setTime(i-1)},(i,s)=>{if(i>=i)if(s<0)for(;++s<=0;)for(;
vendor: 5,569 bytes, line 123
123t(i,-1),!o(i););else for(;--s>=0;)for(;t(i,1),!o(i););}),r&&(n.count=(o,i)=>(VL.setTime(+o),UL.setTime(+i),e(VL),e(UL),Math.floor(r(VL,UL))),n.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?n.filter(a?i=>a(i)%o===0:i=>n.count(0,i)%o===0):n)),n}var zv=zt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);zv.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?zt(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):zv);var xwt=zv.range;var ii=zt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*1e3)},(e,t)=>(t-e)/1e3,e=>e.getUTCSeconds()),Q$=ii.range;var fm=zt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*1e3)},(e,t)=>{e.setTime(+e+t*6e4)},(e,t)=>(t-e)/6e4,e=>e.getMinutes()),q5e=fm.range,pm=zt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*6e4)},(e,t)=>(t-e)/6e4,e=>e.getUTCMinutes()),z5e=pm.range;var mm=zt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*1e3-e.getMinutes()*6e4)},(e,t)=>{e.setTime(+e+t*36e5)},(e,t)=>(t-e)/36e5,e=>e.getHours()),H5e=mm.range,hm=zt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*36e5)},(e,t)=>(t-e)/36e5,e=>e.getUTCHours()),W5e=hm.range;var Sl=zt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/864e5,e=>e.getDate()-1),G5e=Sl.range,vd=zt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>e.getUTCDate()-1),$5e=vd.range,d2=zt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>Math.floor(e/864e5)),K5e=d2.range;function yd(e){return zt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/6048e5)}var Cl=yd(0),gm=yd(1),tK=yd(2),rK=yd(3),jc=yd(4),aK=yd(5),nK=yd(6),oK=Cl.range,X5e=gm.range,Y5e=tK.range,J5e=rK.range,Z5e=jc.range,Q5e=aK.range,eLe=nK.range;function bd(e){return zt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/6048e5)}var kl=bd(0),vm=bd(1),iK=bd(2),sK=bd(3),Bc=bd(4),lK=bd(5),cK=bd(6),uK=kl.range,tLe=vm.range,rLe=iK.range,aLe=sK.range,nLe=Bc.range,oLe=lK.range,iLe=cK.range;var ym=zt(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth()),sLe=ym.range,bm=zt(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth()),lLe=bm.range;var yo=zt(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());yo.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:zt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});var cLe=yo.range,bo=zt(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());bo.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:zt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});var uLe=bo.range;function fK(e,t,r,a,n,o){let i=[[ii,1,1e3],[ii,5,5*1e3],[ii,15,15*1e3],[ii,30,30*1e3],[o,1,6e4],[o,5,5*6e4],[o,15,15*6e4],[o,30,30*6e4],[n,1,36e5],[n,3,3*36e5],[n,6,6*36e5],[n,12,12*36e5],[a,1,864e5],[a,2,2*864e5],[r,1,6048e5],[t,1,2592e6],[t,3,3*2592e6],[e,1,31536e6]];function s(c,d,u){let f=d<c;f&&([c,d]=[d,c]);let p=u&&typeof u.range=="function"?u:l(c,d,u),m=p?p.range(c,+d+1):[];return f?m.reverse():m}function l(c,d,u){let f=Math.abs(d-c)/u,p=id(([,,g])=>g).right(i,f);if(p===i.length)return e.every(sm(c/31536e6,d/31536e6,u));if(p===0)return zv.every(Math.max(sm(c,d,u),1));let[m,h]=i[f/i[p-1][2]<i[p][2]/f?p-1:p];return m.every(h)}return[s,l]}var[qL,zL]=fK(bo,bm,kl,d2,hm,pm),[HL,WL]=fK(yo,ym,Cl,Sl,mm,fm);function GL(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function $L(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Wv(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function KL(e){var t=e.dateTime,r=e.date,a=e.time,n=e.periods,o=e.days,i=e.shortDays,s=e.months,l=e.shortMonths,c=Gv(n),d=$v(n),u=Gv(o),f=$v(o),p=Gv(i),m=$v(i),h=Gv(s),g=$v(s),y=Gv(l),v=$v(l),x={a:A,A:M,b:D,B:V,c:null,d:yK,e:yK,f:DLe,g:HLe,G:GLe,H:TLe,I:RLe,j:OLe,L:CK,m:MLe,M:_Le,p:P,q:O,Q:wK,s:SK,S:FLe,u:jLe,U:BLe,V:VLe,w:ULe,W:qLe,x:null,X:null,y:zLe,Y:WLe,Z:$Le,"%":xK},S={a:j,A:W,b:ee,B:oe,c:null,d:bK,e:bK,f:JLe,g:sTe,G:cTe,H:KLe,I:XLe,j:YLe,L:NK,m:ZLe,M:QLe,p:he,q:Le,Q:wK,s:SK,S:eTe,u:tTe,U:rTe,V:aTe,w:nTe,W:oTe,x:null,X:null,y:iTe,Y:lTe,Z:uTe,"%":xK},b={a:E,A:L,b:T,B:q,c:_,d:gK,e:gK,f:PLe,g:hK,G:mK,H:vK,I:vK,j:CLe,L:ILe,m:SLe,M:kLe,p:N,q:wLe,Q:ALe,s:LLe,S:NLe,u:gLe,U:vLe,V:yLe,w:hLe,W:bLe,x:B,X:I,y:hK,Y:mK,Z:xLe,"%":ELe};x.x=w(r,x),x.X=w(a,x),x.c=w(t,x),S.x=w(r,S),S.X=w(a,S),S.c=w(t,S);function w(ae,Oe){return function(ue){var Y=[],st=-1,Ge=0,Rt=ae.length,Et,Qt,ln;for(ue instanceof Date||(ue=new Date(+ue));++st<Rt;)ae.charCodeAt(st)===37&&(Y.push(ae.slice(Ge,st)),(Qt=pK[Et=ae.charAt(++st)])!=null?Et=ae.charAt(++st):Qt=Et==="e"?" ":"0",(ln=Oe[Et])&&(Et=ln(ue,Qt)),Y.push(Et),Ge=st
vendor: 7,477 bytes, line 123
123+1);return Y.push(ae.slice(Ge,st)),Y.join("")}}function k(ae,Oe){return function(ue){var Y=Wv(1900,void 0,1),st=C(Y,ae,ue+="",0),Ge,Rt;if(st!=ue.length)return null;if("Q"in Y)return new Date(Y.Q);if("s"in Y)return new Date(Y.s*1e3+("L"in Y?Y.L:0));if(Oe&&!("Z"in Y)&&(Y.Z=0),"p"in Y&&(Y.H=Y.H%12+Y.p*12),Y.m===void 0&&(Y.m="q"in Y?Y.q:0),"V"in Y){if(Y.V<1||Y.V>53)return null;"w"in Y||(Y.w=1),"Z"in Y?(Ge=$L(Wv(Y.y,0,1)),Rt=Ge.getUTCDay(),Ge=Rt>4||Rt===0?vm.ceil(Ge):vm(Ge),Ge=vd.offset(Ge,(Y.V-1)*7),Y.y=Ge.getUTCFullYear(),Y.m=Ge.getUTCMonth(),Y.d=Ge.getUTCDate()+(Y.w+6)%7):(Ge=GL(Wv(Y.y,0,1)),Rt=Ge.getDay(),Ge=Rt>4||Rt===0?gm.ceil(Ge):gm(Ge),Ge=Sl.offset(Ge,(Y.V-1)*7),Y.y=Ge.getFullYear(),Y.m=Ge.getMonth(),Y.d=Ge.getDate()+(Y.w+6)%7)}else("W"in Y||"U"in Y)&&("w"in Y||(Y.w="u"in Y?Y.u%7:"W"in Y?1:0),Rt="Z"in Y?$L(Wv(Y.y,0,1)).getUTCDay():GL(Wv(Y.y,0,1)).getDay(),Y.m=0,Y.d="W"in Y?(Y.w+6)%7+Y.W*7-(Rt+5)%7:Y.w+Y.U*7-(Rt+6)%7);return"Z"in Y?(Y.H+=Y.Z/100|0,Y.M+=Y.Z%100,$L(Y)):GL(Y)}}function C(ae,Oe,ue,Y){for(var st=0,Ge=Oe.length,Rt=ue.length,Et,Qt;st<Ge;){if(Y>=Rt)return-1;if(Et=Oe.charCodeAt(st++),Et===37){if(Et=Oe.charAt(st++),Qt=b[Et in pK?Oe.charAt(st++):Et],!Qt||(Y=Qt(ae,ue,Y))<0)return-1}else if(Et!=ue.charCodeAt(Y++))return-1}return Y}function N(ae,Oe,ue){var Y=c.exec(Oe.slice(ue));return Y?(ae.p=d.get(Y[0].toLowerCase()),ue+Y[0].length):-1}function E(ae,Oe,ue){var Y=p.exec(Oe.slice(ue));return Y?(ae.w=m.get(Y[0].toLowerCase()),ue+Y[0].length):-1}function L(ae,Oe,ue){var Y=u.exec(Oe.slice(ue));return Y?(ae.w=f.get(Y[0].toLowerCase()),ue+Y[0].length):-1}function T(ae,Oe,ue){var Y=y.exec(Oe.slice(ue));return Y?(ae.m=v.get(Y[0].toLowerCase()),ue+Y[0].length):-1}function q(ae,Oe,ue){var Y=h.exec(Oe.slice(ue));return Y?(ae.m=g.get(Y[0].toLowerCase()),ue+Y[0].length):-1}function _(ae,Oe,ue){return C(ae,t,Oe,ue)}function B(ae,Oe,ue){return C(ae,r,Oe,ue)}function I(ae,Oe,ue){return C(ae,a,Oe,ue)}function A(ae){return i[ae.getDay()]}function M(ae){return o[ae.getDay()]}function D(ae){return l[ae.getMonth()]}function V(ae){return s[ae.getMonth()]}function P(ae){return n[+(ae.getHours()>=12)]}function O(ae){return 1+~~(ae.getMonth()/3)}function j(ae){return i[ae.getUTCDay()]}function W(ae){return o[ae.getUTCDay()]}function ee(ae){return l[ae.getUTCMonth()]}function oe(ae){return s[ae.getUTCMonth()]}function he(ae){return n[+(ae.getUTCHours()>=12)]}function Le(ae){return 1+~~(ae.getUTCMonth()/3)}return{format:function(ae){var Oe=w(ae+="",x);return Oe.toString=function(){return ae},Oe},parse:function(ae){var Oe=k(ae+="",!1);return Oe.toString=function(){return ae},Oe},utcFormat:function(ae){var Oe=w(ae+="",S);return Oe.toString=function(){return ae},Oe},utcParse:function(ae){var Oe=k(ae+="",!0);return Oe.toString=function(){return ae},Oe}}}var pK={"-":"",_:" ",0:"0"},Ia=/^\s*\d+/,fLe=/^%/,pLe=/[\\^$*+?|[\]().{}]/g;function St(e,t,r){var a=e<0?"-":"",n=(a?-e:e)+"",o=n.length;return a+(o<r?new Array(r-o+1).join(t)+n:n)}function mLe(e){return e.replace(pLe,"\\$&")}function Gv(e){return new RegExp("^(?:"+e.map(mLe).join("|")+")","i")}function $v(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function hLe(e,t,r){var a=Ia.exec(t.slice(r,r+1));return a?(e.w=+a[0],r+a[0].length):-1}function gLe(e,t,r){var a=Ia.exec(t.slice(r,r+1));return a?(e.u=+a[0],r+a[0].length):-1}function vLe(e,t,r){var a=Ia.exec(t.slice(r,r+2));return a?(e.U=+a[0],r+a[0].length):-1}function yLe(e,t,r){var a=Ia.exec(t.slice(r,r+2));return a?(e.V=+a[0],r+a[0].length):-1}function bLe(e,t,r){var a=Ia.exec(t.slice(r,r+2));return a?(e.W=+a[0],r+a[0].length):-1}function mK(e,t,r){var a=Ia.exec(t.slice(r,r+4));return a?(e.y=+a[0],r+a[0].length):-1}function hK(e,t,r){var a=Ia.exec(t.slice(r,r+2));return a?(e.y=+a[0]+(+a[0]>68?1900:2e3),r+a[0].length):-1}function xLe(e,t,r){var a=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return a?(e.Z=a[1]?0:-(a[2]+(a[3]||"00")),r+a[0].length):-1}function wLe(e,t,r){var a=Ia.exec(t.slice(r,r+1));return a?(e.q=a[0]*3-3,r+a[0].length):-1}function SLe(e,t,r){var a=Ia.exec(t.slice(r,r+2));return a?(e.m=a[0]-1,r+a[0].length):-1}function gK(e,t,r){var a=Ia.exec(t.slice(r,r+2));return a?(e.d=+a[0],r+a[0].length):-1}function CLe(e,t,r){var a=Ia.exec(t.slice(r,r+3));return a?(e.m=0,e.d=+a[0],r+a[0].length):-1}function vK(e,t,r){var a=Ia.exec(t.slice(r,r+2));return a?(e.H=+a[0],r+a[0].length):-1}function kLe(e,t,r){var a=Ia.exec(t.slice(r,r+2));return a?(e.M=+a[0],r+a[0].length):-1}function NLe(e,t,r){var a=Ia.exec(t.slice(r,r+2));return a?(e.S=+a[0],r+a[0].length):-1}function ILe(e,t,r){var a=Ia.exec(t.slice(r,r+3));return a?(e.L=+a[0],r+a[0].length):-1}function PLe(e,t,r){var a=Ia.exec(t.slice(r,r+6));return a?(e.L=Math.floor(a[0]/1e3),r+a[0].length):-1}function ELe(e,t,r){var a=fLe.exec(t.slice(r,r+1));return a?r+a[0].length:-1}function ALe(e,t,r){var a=Ia.exec(t.slice(r));return a?(e.Q=+a[0],r+a[0].length):-1}function LLe(e,t,r){var a=Ia.exec(t.slice(r));return a?(e.s=+a[0],r+a[0].length):-1}function yK(e,t){return St(e.getDate(),t,2)}function TLe(e,t){return St(e.getHours(),t,2)}function RLe(e,t){return St(e.getHours()%12||12,t,2)}function OLe(e,t){return St(1+Sl.count(yo(e),e),t,3)}function CK(e,t){return St(e.getMilliseconds(),t,3)}function DLe(e,t){return CK(e,t)+"000"}function MLe(e,t){return St(e.getMonth()+1,t,2)}function _Le(e,t){return St(e.getMinutes(),t,2)}function FLe(e,t){return St(e.getSeconds(),t,2)}function jLe(e){var t=e.getDay();return t===0?7:t}function BLe(e,t){return St(Cl.count(yo(e)-1,e),t,2)}function kK(e){var t=e.getDay();return t>=4||t===0?jc(e):jc.ceil(e)}function VLe(e,t){return e=kK(e),St(jc.count(yo(e),e)+(yo(e).getDay()===4),t,2)}function ULe(e){return e.getDay()}function qLe(e,t){return St(gm.count(yo(e)-1,e),t,2)}function zLe(e,t){return St(e.getFullYear()%100,t,2)}function HLe(e,t){return e=kK(e),St(e.getFullYear()%100,t,2)}function WLe(e,t){return St(e.getFullYear()%1e4,t,4)}function GLe(e,t){var r=e.getDay();return e=r>=4||r===0?jc(e):jc.ceil(e),St(e.getFullYear()%1e4,t,4)}function $Le(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+St(t/60|0,"0",2)+St(t%60,"0",2)}function bK(e,t){return St(e.getUTCDate(),t,2)}function KLe(e,t){return St(e.getUTCHours(),t,2)}function XLe(e,t){return St(e.getUTCHours()%12||12,t,2)}function YLe(e,t){return St(1+vd.count(bo(e),e),t,3)}function NK(e,t){return St(e.getUTCMilliseconds(),t,3)}function JLe(e,t){return NK(e,t)+"000"}function ZLe(e,t){return St(e.getUTCMonth()+1,t,2)}function QLe(e,t){return St(e.getUTCMinutes(),t,2)}function eTe(e,t){return St(e.getUTCSeconds(),t,2)}function tTe(e){var t=e.getUTCDay();return t===0?7:t}function rTe(e,t){return St(kl.count(bo(e)-1,e),t,2)}function IK(e){var t=e.getUTCDay();return t>=4||t===0?Bc(e):Bc.ceil(e)}function aTe(e,t){return e=IK(e),St(Bc.count(bo(e),e)+(bo(e).getUTCDay()===4),t,2)}function nTe(e){return e.getUTCDay()}function oTe(e,t){return St(vm.count(bo(e)-1,e),t,2)}function iTe(e,t){return St(e.getUTCFullYear()%100,t,2)}function sTe(e,t){return e=IK(e),St(e.getUTCFullYear()%100,t,2)}function lTe(e,t){return St(e.getUTCFullYear()%1e4,t,4)}function cTe(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Bc(e):Bc.ceil(e),St(e.getUTCFullYear()%1e4,t,4)}function uTe(){return"+0000"}function xK(){return"%"}function wK(e){return+e}function SK(e){return Math.floor(+e/1e3)}var xm,f2,PK,p2,EK;XL({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
123ay","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function XL(e){return xm=KL(e),f2=xm.format,PK=xm.parse,p2=xm.utcFormat,EK=xm.utcParse,xm}function dTe(e){return new Date(e)}function fTe(e){return e instanceof Date?+e:+new Date(+e)}function m2(e,t,r,a,n,o,i,s,l,c){var d=fd(),u=d.invert,f=d.domain,p=c(".%L"),m=c(":%S"),h=c("%I:%M"),g=c("%I %p"),y=c("%a %d"),v=c("%b %d"),x=c("%B"),S=c("%Y");function b(w){return(l(w)<w?p:s(w)<w?m:i(w)<w?h:o(w)<w?g:a(w)<w?n(w)<w?y:v:r(w)<w?x:S)(w)}return d.invert=function(w){return new Date(u(w))},d.domain=function(w){return arguments.length?f(Array.from(w,fTe)):f().map(dTe)},d.ticks=function(w){var k=f();return e(k[0],k[k.length-1],w??10)},d.tickFormat=function(w,k){return k==null?b:c(k)},d.nice=function(w){var k=f();return(!w||typeof w.range!="function")&&(w=t(k[0],k[k.length-1],w??10)),w?f(jv(k,w)):d},d.copy=function(){return Ps(d,m2(e,t,r,a,n,o,i,s,l,c))},d}function YL(){return gr.apply(m2(HL,WL,yo,ym,Cl,Sl,mm,fm,ii,f2).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function JL(){return gr.apply(m2(qL,zL,bo,bm,kl,vd,hm,pm,ii,p2).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function h2(){var e=0,t=1,r,a,n,o,i=ca,s=!1,l;function c(u){return u==null||isNaN(u=+u)?l:i(n===0?.5:(u=(o(u)-r)*n,s?Math.max(0,Math.min(1,u)):u))}c.domain=function(u){return arguments.length?([e,t]=u,r=o(e=+e),a=o(t=+t),n=r===a?0:1/(a-r),c):[e,t]},c.clamp=function(u){return arguments.length?(s=!!u,c):s},c.interpolator=function(u){return arguments.length?(i=u,c):i};function d(u){return function(f){var p,m;return arguments.length?([p,m]=f,i=u(p,m),c):[i(0),i(1)]}}return c.range=d(vo),c.rangeRound=d(ud),c.unknown=function(u){return arguments.length?(l=u,c):l},function(u){return o=u,r=u(e),a=u(t),n=r===a?0:1/(a-r),c}}function Nl(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function g2(){var e=Sn(h2()(ca));return e.copy=function(){return Nl(e,g2())},oi.apply(e,arguments)}function ZL(){var e=Bv(h2()).domain([1,10]);return e.copy=function(){return Nl(e,ZL()).base(e.base())},oi.apply(e,arguments)}function QL(){var e=Vv(h2());return e.copy=function(){return Nl(e,QL()).constant(e.constant())},oi.apply(e,arguments)}function v2(){var e=Uv(h2());return e.copy=function(){return Nl(e,v2()).exponent(e.exponent())},oi.apply(e,arguments)}function AK(){return v2.apply(null,arguments).exponent(.5)}function y2(){var e=[],t=ca;function r(a){if(a!=null&&!isNaN(a=+a))return t((ji(e,a,1)-1)/(e.length-1))}return r.domain=function(a){if(!arguments.length)return e.slice();e=[];for(let n of a)n!=null&&!isNaN(n=+n)&&e.push(n);return e.sort(wn),r},r.interpolator=function(a){return arguments.length?(t=a,r):t},r.range=function(){return e.map((a,n)=>t(n/(e.length-1)))},r.quantiles=function(a){return Array.from({length:a+1},(n,o)=>WS(e,o/a))},r.copy=function(){return y2(t).domain(e)},oi.apply(r,arguments)}function b2(){var e=0,t=.5,r=1,a=1,n,o,i,s,l,c=ca,d,u=!1,f;function p(h){return isNaN(h=+h)?f:(h=.5+((h=+d(h))-o)*(a*h<a*o?s:l),c(u?Math.max(0,Math.min(1,h)):h))}p.domain=function(h){return arguments.length?([e,t,r]=h,n=d(e=+e),o=d(t=+t),i=d(r=+r),s=n===o?0:.5/(o-n),l=o===i?0:.5/(i-o),a=o<n?-1:1,p):[e,t,r]},p.clamp=function(h){return arguments.length?(u=!!h,p):u},p.interpolator=function(h){return arguments.length?(c=h,p):c};function m(h){return function(g){var y,v,x;return arguments.length?([y,v,x]=g,c=e2(h,[y,v,x]),p):[c(0),c(.5),c(1)]}}return p.range=m(vo),p.rangeRound=m(ud),p.unknown=function(h){return arguments.length?(f=h,p):f},function(h){return d=h,n=h(e),o=h(t),i=h(r),s=n===o?0:.5/(o-n),l=o===i?0:.5/(i-o),a=o<n?-1:1,p}}function x2(){var e=Sn(b2()(ca));return e.copy=function(){return Nl(e,x2())},oi.apply(e,arguments)}function eT(){var e=Bv(b2()).domain([.1,1,10]);return e.copy=function(){return Nl(e,eT()).base(e.base())},oi.apply(e,arguments)}function tT(){var e=Vv(b2());return e.copy=function(){return Nl(e,tT()).constant(e.constant())},oi.apply(e,arguments)}function w2(){var e=Uv(b2());return e.copy=function(){return Nl(e,w2()).exponent(e.exponent())},oi.apply(e,arguments)}function LK(){return w2.apply(null,arguments).exponent(.5)}var ay=R(aT()),ny=R(_K()),xo=R(qn()),Cm=R(ir()),iX=R(X1()),bT=R(Ac()),sX=R(VK()),E2=R(iS()),lX=R(fS()),cX=R(xd()),uX=R(RS());var Tt=R(oT());function MTe(e){return BTe(e)||jTe(e)||FTe(e)||_Te()}function _Te(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 124In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FTe(e,t){if(e){if(typeof e=="string")return iT(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return iT(e,t)}}function jTe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function BTe(e){if(Array.isArray(e))return iT(e)}function iT(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}var VTe=function(t){return t},HK={"@@functional/placeholder":!0},WK=function(t){return t===HK},zK=function(t){return function r(){return arguments.length===0||arguments.length===1&&WK(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},UTe=function e(t,r){return t===1?r:zK(function(){for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];var i=n.filter(function(s){return s!==HK}).length;return i>
124=t?r.apply(void 0,n):e(t-i,zK(function(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];var d=n.map(function(u){return WK(u)?l.shift():u});return r.apply(void 0,MTe(d).concat(l))}))})},Xv=function(t){return UTe(t.length,t)},Yv=function(t,r){for(var a=[],n=t;n<r;++n)a[n-t]=n;return a},sT=Xv(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),lT=function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];if(!r.length)return VTe;var n=r.reverse(),o=n[0],i=n.slice(1);return function(){return i.reduce(function(s,l){return l(s)},o.apply(void 0,arguments))}},Jv=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},k2=function(t){var r=null,a=null;return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return r&&o.every(function(s,l){return s===r[l]})||(r=o,a=t.apply(void 0,o)),a}};var cT=R(oT());function qTe(e){var t;return e===0?t=1:t=Math.floor(new cT.default(e).abs().log(10).toNumber())+1,t}function zTe(e,t,r){for(var a=new cT.default(e),n=0,o=[];a.lt(t)&&n<1e5;)o.push(a.toNumber()),a=a.add(r),n++;return o}var HTe=Xv(function(e,t,r){var a=+e,n=+t;return a+r*(n-a)}),WTe=Xv(function(e,t,r){var a=t-+e;return a=a||1/0,(r-e)/a}),GTe=Xv(function(e,t,r){var a=t-+e;return a=a||1/0,Math.max(0,Math.min(1,(r-e)/a))}),Zv={rangeStep:zTe,getDigitCount:qTe,interpolateNumber:HTe,uninterpolateNumber:WTe,uninterpolateTruncation:GTe};function uT(e){return XTe(e)||KTe(e)||GK(e)||$Te()}function $Te(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 125In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function KTe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function XTe(e){if(Array.isArray(e))return dT(e)}function wd(e,t){return ZTe(e)||JTe(e,t)||GK(e,t)||YTe()}function YTe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 126In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GK(e,t){if(e){if(typeof e=="string")return dT(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return dT(e,t)}}function dT(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function JTe(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],a=!0,n=!1,o=void 0;try{for(var i=e[Symbol.iterator](),s;!(a=(s=i.next()).done)&&(r.push(s.value),!(t&&r.length===t));a=!0);}catch(l){n=!0,o=l}finally{try{!a&&i.return!=null&&i.return()}finally{if(n)throw o}}return r}}function ZTe(e){if(Array.isArray(e))return e}function fT(e){var t=wd(e,2),r=t[0],a=t[1],n=r,o=a;return r>a&&(n=a,o=r),[n,o]}function pT(e,t,r){if(e.lte(0))return new Tt.default(0);var a=Zv.getDigitCount(e.toNumber()),n=new Tt.default(10).pow(a),o=e.div(n),i=a!==1?.05:.1,s=new Tt.default(Math.ceil(o.div(i).toNumber())).add(r).mul(i),l=s.mul(n);return t?l:new Tt.default(Math.ceil(l))}function $K(e,t,r){var a=1,n=new Tt.default(e);if(!n.isint()&&r){var o=Math.abs(e);o<1?(a=new Tt.default(10).pow(Zv.getDigitCount(e)-1),n=new Tt.default(Math.floor(n.div(a).toNumber())).mul(a)):o>1&&(n=new Tt.default(Math.floor(e)))}else e===0?n=new Tt.default(Math.floor((t-1)/2)):r||(n=new Tt.default(Math.floor(e)));var i=Math.floor((t-1)/2),s=lT(sT(function(l){return n.add(new Tt.default(l-i).mul(a)).toNumber()}),Yv);return s(0,t)}function KK(e,t,r,a){var n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new Tt.default(0),tickMin:new Tt.default(0),tickMax:new Tt.default(0)};var o=pT(new Tt.default(t).sub(e).div(r-1),a,n),i;e<=0&&t>=0?i=new Tt.default(0):(i=new Tt.default(e).add(t).div(2),i=i.sub(new Tt.default(i).mod(o)));var s=Math.ceil(i.sub(e).div(o).toNumber()),l=Math.ceil(new Tt.default(t).sub(i).div(o).toNumber()),c=s+l+1;return c>r?KK(e,t,r,a,n+1):(c<r&&(l=t>0?l+(r-c):l,s=t>0?s:s+(r-c)),{step:o,tickMin:i.sub(new Tt.default(s).mul(o)),tickMax:i.add(new Tt.default(l).mul(o))})}function QTe(e){var t=wd(e,2),r=t[0],a=t[1],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,i=Math.max(n,2),s=fT([r,a
126]),l=wd(s,2),c=l[0],d=l[1];if(c===-1/0||d===1/0){var u=d===1/0?[c].concat(uT(Yv(0,n-1).map(function(){return 1/0}))):[].concat(uT(Yv(0,n-1).map(function(){return-1/0})),[d]);return r>a?Jv(u):u}if(c===d)return $K(c,n,o);var f=KK(c,d,i,o),p=f.step,m=f.tickMin,h=f.tickMax,g=Zv.rangeStep(m,h.add(new Tt.default(.1).mul(p)),p);return r>a?Jv(g):g}function eRe(e){var t=wd(e,2),r=t[0],a=t[1],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,i=Math.max(n,2),s=fT([r,a]),l=wd(s,2),c=l[0],d=l[1];if(c===-1/0||d===1/0)return[r,a];if(c===d)return $K(c,n,o);var u=pT(new Tt.default(d).sub(c).div(i-1),o,0),f=lT(sT(function(m){return new Tt.default(c).add(new Tt.default(m).mul(u)).toNumber()}),Yv),p=f(0,i).filter(function(m){return m>=c&&m<=d});return r>a?Jv(p):p}function tRe(e,t){var r=wd(e,2),a=r[0],n=r[1],o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,i=fT([a,n]),s=wd(i,2),l=s[0],c=s[1];if(l===-1/0||c===1/0)return[a,n];if(l===c)return[l];var d=Math.max(t,2),u=pT(new Tt.default(c).sub(l).div(d-1),o,0),f=[].concat(uT(Zv.rangeStep(new Tt.default(l),new Tt.default(c).sub(new Tt.default(.99).mul(u)),u)),[c]);return a>n?Jv(f):f}var mT=k2(QTe),rRe=k2(eRe),hT=k2(tRe);var Qv=R(Q());var aRe=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function wm(e){"@babel/helpers - typeof";return wm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wm(e)}function N2(){return N2=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},N2.apply(this,arguments)}function nRe(e,t){return lRe(e)||sRe(e,t)||iRe(e,t)||oRe()}function oRe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 127In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iRe(e,t){if(e){if(typeof e=="string")return XK(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return XK(e,t)}}function XK(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function sRe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a,n,o,i,s=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(a=o.call(r)).done)&&(s.push(a.value),s.length!==t);l=!0);}catch(d){c=!0,n=d}finally{try{if(!l&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw n}}return s}}function lRe(e){if(Array.isArray(e))return e}function cRe(e,t){if(e==null)return{};var r=uRe(e,t),a,n;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)a=o[n],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function uRe(e,t){if(e==null)return{};var r={};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;r[a]=e[a]}return r}function dRe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YK(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,QK(a.key),a)}}function fRe(e,t,r){return t&&YK(e.prototype,t),r&&YK(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function pRe(e,t,r){return t=I2(t),mRe(e,JK()?Reflect.construct(t,r||[],I2(e).constructor):t.apply(e,r))}function mRe(e,t){if(t&&(wm(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hRe(e)}function hRe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function JK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(JK=function(){return!!e})()}function I2(e){return I2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},I2(e)}function gRe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gT(e,t)}function gT(e,t){return gT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},gT(e,t)}function ZK(e,t,r){return t=QK(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QK(e){var t=vRe(e,"string");return wm(t)=="symbol"?t:t+""}function vRe(e,t){if(wm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(wm(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Vc=(function(e){function t(){return dRe(this,t),pRe(this,t,arguments)}return gRe(t,e),fRe(t,[{key:"render",value:function(){var a=this.props,n=a.offset,o=a.layout,i=a.width,s=a.dataKey,l=a.data,c=a.dataPointFormatter,d=a.xAxis,u=a.yAxis,f=cRe(a,aRe),p=Ne(f,!1);this.props.direction==="x"&&d.type!=="number"&&so(!1);var m=l.map(function(h){var g=c(h,s),y=g.x,v=g.y,x=g.value,S=g.errorVal;if(!S)return null;var b=[],w,k;if(Array.isArray(S)){var C=nRe(S,2);w=C[0],k=C[1]}else w=k=S;
127if(o==="vertical"){var N=d.scale,E=v+n,L=E+i,T=E-i,q=N(x-w),_=N(x+k);b.push({x1:_,y1:L,x2:_,y2:T}),b.push({x1:q,y1:E,x2:_,y2:E}),b.push({x1:q,y1:L,x2:q,y2:T})}else if(o==="horizontal"){var B=u.scale,I=y+n,A=I-i,M=I+i,D=B(x-w),V=B(x+k);b.push({x1:A,y1:V,x2:M,y2:V}),b.push({x1:I,y1:D,x2:I,y2:V}),b.push({x1:A,y1:D,x2:M,y2:D})}return Qv.default.createElement(Ke,N2({className:"recharts-errorBar",key:"bar-".concat(b.map(function(P){return"".concat(P.x1,"-").concat(P.x2,"-").concat(P.y1,"-").concat(P.y2)}))},p),b.map(function(P){return Qv.default.createElement("line",N2({},P,{key:"line-".concat(P.x1,"-").concat(P.x2,"-").concat(P.y1,"-").concat(P.y2)}))}))});return Qv.default.createElement(Ke,{className:"recharts-errorBars"},m)}}])})(Qv.default.Component);ZK(Vc,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});ZK(Vc,"displayName","ErrorBar");function ey(e){"@babel/helpers - typeof";return ey=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ey(e)}function eX(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function Sd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?eX(Object(r),!0).forEach(function(a){yRe(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eX(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function yRe(e,t,r){return t=bRe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bRe(e){var t=xRe(e,"string");return ey(t)=="symbol"?t:t+""}function xRe(e,t){if(ey(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(ey(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var P2=function(t){var r=t.children,a=t.formattedGraphicalItems,n=t.legendWidth,o=t.legendContent,i=Qa(r,ni);if(!i)return null;var s=ni.defaultProps,l=s!==void 0?Sd(Sd({},s),i.props):{},c;return i.props&&i.props.payload?c=i.props&&i.props.payload:o==="children"?c=(a||[]).reduce(function(d,u){var f=u.item,p=u.props,m=p.sectors||p.data||[];return d.concat(m.map(function(h){return{type:i.props.iconType||f.props.legendType,value:h.name,color:h.fill,payload:h}}))},[]):c=(a||[]).map(function(d){var u=d.item,f=u.type.defaultProps,p=f!==void 0?Sd(Sd({},f),u.props):{},m=p.dataKey,h=p.name,g=p.legendType,y=p.hide;return{inactive:y,dataKey:m,type:l.iconType||g||"square",color:ty(u),value:h||m,payload:p}}),Sd(Sd(Sd({},l),ni.getWithHeight(i,n)),{},{payload:c,item:i})};function ry(e){"@babel/helpers - typeof";return ry=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ry(e)}function tX(e){return kRe(e)||CRe(e)||SRe(e)||wRe()}function wRe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 128In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function SRe(e,t){if(e){if(typeof e=="string")return yT(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return yT(e,t)}}function CRe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function kRe(e){if(Array.isArray(e))return yT(e)}function yT(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function rX(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function Mr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
vendor: 19,264 bytes, lines 128-130
128t%2?rX(Object(r),!0).forEach(function(a){Sm(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rX(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function Sm(e,t,r){return t=NRe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NRe(e){var t=IRe(e,"string");return ry(t)=="symbol"?t:t+""}function IRe(e,t){if(ry(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(ry(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ht(e,t,r){return(0,xo.default)(e)||(0,xo.default)(t)?r:Xt(t)?(0,bT.default)(e,t,r):(0,Cm.default)(t)?t(e):r}function km(e,t,r,a){var n=(0,sX.default)(e,function(s){return Ht(s,t)});if(r==="number"){var o=n.filter(function(s){return me(s)||parseFloat(s)});return o.length?[(0,ny.default)(o),(0,ay.default)(o)]:[1/0,-1/0]}var i=a?n.filter(function(s){return!(0,xo.default)(s)}):n;return i.map(function(s){return Xt(s)||s instanceof Date?s:""})}var dX=function(t){var r,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=-1,s=(r=a?.length)!==null&&r!==void 0?r:0;if(s<=1)return 0;if(o&&o.axisType==="angleAxis"&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var l=o.range,c=0;c<s;c++){var d=c>0?n[c-1].coordinate:n[s-1].coordinate,u=n[c].coordinate,f=c>=s-1?n[0].coordinate:n[c+1].coordinate,p=void 0;if(Vr(u-d)!==Vr(f-u)){var m=[];if(Vr(f-u)===Vr(l[1]-l[0])){p=f;var h=u+l[1]-l[0];m[0]=Math.min(h,(h+d)/2),m[1]=Math.max(h,(h+d)/2)}else{p=d;var g=f+l[1]-l[0];m[0]=Math.min(u,(g+u)/2),m[1]=Math.max(u,(g+u)/2)}var y=[Math.min(u,(p+u)/2),Math.max(u,(p+u)/2)];if(t>y[0]&&t<=y[1]||t>=m[0]&&t<=m[1]){i=n[c].index;break}}else{var v=Math.min(d,f),x=Math.max(d,f);if(t>(v+u)/2&&t<=(x+u)/2){i=n[c].index;break}}}else for(var S=0;S<s;S++)if(S===0&&t<=(a[S].coordinate+a[S+1].coordinate)/2||S>0&&S<s-1&&t>(a[S].coordinate+a[S-1].coordinate)/2&&t<=(a[S].coordinate+a[S+1].coordinate)/2||S===s-1&&t>(a[S].coordinate+a[S-1].coordinate)/2){i=a[S].index;break}return i},ty=function(t){var r,a=t,n=a.type.displayName,o=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Mr(Mr({},t.type.defaultProps),t.props):t.props,i=o.stroke,s=o.fill,l;switch(n){case"Line":l=i;break;case"Area":case"Radar":l=i&&i!=="none"?i:s;break;default:l=s;break}return l},fX=function(t){var r=t.barSize,a=t.totalSize,n=t.stackGroups,o=n===void 0?{}:n;if(!o)return{};for(var i={},s=Object.keys(o),l=0,c=s.length;l<c;l++)for(var d=o[s[l]].stackGroups,u=Object.keys(d),f=0,p=u.length;f<p;f++){var m=d[u[f]],h=m.items,g=m.cateAxisId,y=h.filter(function(k){return Qo(k.type).indexOf("Bar")>=0});if(y&&y.length){var v=y[0].type.defaultProps,x=v!==void 0?Mr(Mr({},v),y[0].props):y[0].props,S=x.barSize,b=x[g];i[b]||(i[b]=[]);var w=(0,xo.default)(S)?r:S;i[b].push({item:y[0],stackList:y.slice(1),barSize:(0,xo.default)(w)?void 0:Ur(w,a,0)})}}return i},pX=function(t){var r=t.barGap,a=t.barCategoryGap,n=t.bandSize,o=t.sizeList,i=o===void 0?[]:o,s=t.maxBarSize,l=i.length;if(l<1)return null;var c=Ur(r,n,0,!0),d,u=[];if(i[0].barSize===+i[0].barSize){var f=!1,p=n/l,m=i.reduce(function(S,b){return S+b.barSize||0},0);m+=(l-1)*c,m>=n&&(m-=(l-1)*c,c=0),m>=n&&p>0&&(f=!0,p*=.9,m=l*p);var h=(n-m)/2>>0,g={offset:h-c,size:0};d=i.reduce(function(S,b){var w={item:b.item,position:{offset:g.offset+g.size+c,size:f?p:b.barSize}},k=[].concat(tX(S),[w]);return g=k[k.length-1].position,b.stackList&&b.stackList.length&&b.stackList.forEach(function(C){k.push({item:C,position:g})}),k},u)}else{var y=Ur(a,n,0,!0);n-2*y-(l-1)*c<=0&&(c=0);var v=(n-2*y-(l-1)*c)/l;v>1&&(v>>=0);var x=s===+s?Math.min(v,s):v;d=i.reduce(function(S,b,w){var k=[].concat(tX(S),[{item:b.item,position:{offset:y+(v+c)*w+(v-x)/2,size:x}}]);return b.stackList&&b.stackList.length&&b.stackList.forEach(function(C){k.push({item:C,position:k[k.length-1].position})}),k},u)}return d},mX=function(t,r,a,n){var o=a.children,i=a.width,s=a.margin,l=i-(s.left||0)-(s.right||0),c=P2({children:o,legendWidth:l});if(c){var d=n||{},u=d.width,f=d.height,p=c.align,m=c.verticalAlign,h=c.layout;if((h==="vertical"||h==="horizontal"&&m==="middle")&&p!=="center"&&me(t[p]))return Mr(Mr({},t),{},Sm({},p,t[p]+(u||0)));if((h==="horizontal"||h==="vertical"&&p==="center")&&m!=="middle"&&me(t[m]))return Mr(Mr({},t),{},Sm({},m,t[m]+(f||0)))}return t},PRe=function(t,r,a){return(0,xo.default)(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||a==="x"?r==="xAxis":a==="y"?r==="yAxis":!0},hX=function(t,r,a,n,o){var i=r.props.children,s=qr(i,Vc).filter(function(c){return PRe(n,o,c.props.direction)});if(s&&s.length){var l=s.map(function(c){return c.props.dataKey});return t.reduce(function(c,d){var u=Ht(d,a);if((0,xo.default)(u))return c;var f=Array.isArray(u)?[(0,ny.default)(u),(0,ay.default)(u)]:[u,u],p=l.reduce(function(m,h){var g=Ht(d,h,0),y=f[0]-Math.abs(Array.isArray(g)?g[0]:g),v=f[1]+Math.abs(Array.isArray(g)?g[1]:g);return[Math.min(y,m[0]),Math.max(v,m[1])]},[1/0,-1/0]);return[Math.min(p[0],c[0]),Math.max(p[1],c[1])]},[1/0,-1/0])}return null},gX=function(t,r,a,n,o){var i=r.map(function(s){return hX(t,s,a,o,n)}).filter(function(s){return!(0,xo.default)(s)});return i&&i.length?i.reduce(function(s,l){return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]):null},xT=function(t,r,a,n,o){var i=r.map(function(l){var c=l.props.dataKey;return a==="number"&&c&&hX(t,l,c,n)||km(t,c,a,o)});if(a==="number")return i.reduce(function(l,c){return[Math.min(l[0],c[0]),Math.max(l[1],c[1])]},[1/0,-1/0]);var s={};return i.reduce(function(l,c){for(var d=0,u=c.length;d<u;d++)s[c[d]]||(s[c[d]]=!0,l.push(c[d]));return l},[])},wT=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},ST=function(t,r,a,n){if(n)return t.map(function(l){return l.coordinate});var o,i,s=t.map(function(l){return l.coordinate===r&&(o=!0),l.coordinate===a&&(i=!0),l.coordinate});return o||s.push(r),i||s.push(a),s},wo=function(t,r,a){if(!t)return null;var n=t.scale,o=t.duplicateDomain,i=t.type,s=t.range,l=t.realScaleType==="scaleBand"?n.bandwidth()/2:2,c=(r||a)&&i==="category"&&n.bandwidth?n.bandwidth()/l:0;if(c=t.axisType==="angleAxis"&&s?.length>=2?Vr(s[0]-s[1])*2*c:c,r&&(t.ticks||t.niceTicks)){var d=(t.ticks||t.niceTicks).map(function(u){var f=o?o.indexOf(u):u;return{coordinate:n(f)+c,value:u,offset:c}});return d.filter(function(u){return!(0,E2.default)(u.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(u,f){return{coordinate:n(u)+c,value:u,index:f,offset:c}}):n.ticks&&!a?n.ticks(t.tickCount).map(function(u){return{coordinate:n(u)+c,value:u,offset:c}}):n.domain().map(function(u,f){return{coordinate:n(u)+c,value:o?o[u]:u,index:f,offset:c}})},vT=new WeakMap,oy=function(t,r){if(typeof r!="function")return t;vT.has(t)||vT.set(t,new WeakMap);var a=vT.get(t);if(a.has(r))return a.get(r);var n=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return a.set(r,n),n},A2=function(t,r,a){var n=t.scale,o=t.type,i=t.layout,s=t.axisType;if(n==="auto")return i==="radial"&&s==="radiusAxis"?{scale:Oc(),realScaleType:"band"}:i==="radial"&&s==="angleAxis"?{scale:md(),realScaleType:"linear"}:o==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!a)?{scale:Dc(),realScaleType:"point"}:o==="category"?{scale:Oc(),realScaleType:"band"}:{scale:md(),realScaleType:"linear"};if((0,iX.default)(n)){var l="scale".concat((0,lX.default)(n));return{scale:(S2[l]||Dc)(),realScaleType:S2[l]?l:"point"}}return(0,Cm.default)(n)?{scale:n}:{scale:Dc(),realScaleType:"point"}},aX=1e-4,L2=function(t){var r=t.domain();if(!(!r||r.length<=2)){var a=r.length,n=t.range(),o=Math.min(n[0],n[1])-aX,i=Math.max(n[0],n[1])+aX,s=t(r[0]),l=t(r[a-1]);(s<o||s>i||l<o||l>i)&&t.domain([r[0],r[a-1]])}},vX=function(t,r){if(!t)return null;for(var a=0,n=t.length;a<n;a++)if(t[a].item===r)return t[a].position;return null},yX=function(t,r){if(!r||r.length!==2||!me(r[0])||!me(r[1]))return t;var a=Math.min(r[0],r[1]),n=Math.max(r[0],r[1]),o=[t[0],t[1]];return(!me(t[0])||t[0]<a)&&(o[0]=a),(!me(t[1])||t[1]>n)&&(o[1]=n),o[0]>n&&(o[0]=n),o[1]<a&&(o[1]=a),o},ERe=function(t){var r=t.length;if(!(r<=0))for(var a=0,n=t[0].length;a<n;++a)for(var o=0,i=0,s=0;s<r;++s){var l=(0,E2.default)(t[s][a][1])?t[s][a][0]:t[s][a][1];l>=0?(t[s][a][0]=o,t[s][a][1]=o+l,o=t[s][a][1]):(t[s][a][0]=i,t[s][a][1]=i+l,i=t[s][a][1])}},ARe=function(t){var r=t.length;if(!(r<=0))for(var a=0,n=t[0].length;a<n;++a)for(var o=0,i=0;i<r;++i){var s=(0,E2.default)(t[i][a][1])?t[i][a][0]:t[i][a][1];s>=0?(t[i][a][0]=o,t[i][a][1]=o+s,o=t[i][a][1]):(t[i][a][0]=0,t[i][a][1]=0)}},LRe={sign:ERe,expand:N5,none:ri,silhouette:I5,wiggle:P5,positive:ARe},TRe=function(t,r,a){var n=r.map(function(s){return s.props.dataKey}),o=LRe[a],i=k5().keys(n).value(function(s,l){return+Ht(s,l,0)}).order(Kp).offset(o);return i(t)},bX=function(t,r,a,n,o,i){if(!t)return null;var s=i?r.reverse():r,l={},c=s.reduce(function(u,f){var p,m=(p=f.type)!==null&&p!==void 0&&p.defaultProps?Mr(Mr({},f.type.defaultProps),f.props):f.props,h=m.stackId,g=m.hide;if(g)return u;var y=m[a],v=u[y]||{hasStack:!1,stackGroups:{}};if(Xt(h)){var x=v.stackGroups[h]||{numericAxisId:a,cateAxisId:n,items:[]};x.items.push(f),v.hasStack=!0,v.stackGroups[h]=x}else v.stackGroups[zn("_stackId_")]={numericAxisId:a,cateAxisId:n,items:[f]};return Mr(Mr({},u),{},Sm({},y,v))},l),d={};return Object.keys(c).reduce(function(u,f){var p=c[f];if(p.hasStack){var m={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(h,g){var y=p.stackGroups[g];return Mr(Mr({},h),{},Sm({},g,{numericAxisId:a,cateAxisId:n,items:y.items,stackedData:TRe(t,y.items,o)}))},m)}return Mr(Mr({},u),{},Sm({},f,p))},d)},T2=function(t,r){var a=r.realScaleType,n=r.type,o=r.tickCount,i=r.originalDomain,s=r.allowDecimals,l=a||r.scale;if(l!=="auto"&&l!=="linear")return null;if(o&&n==="number"&&i&&(i[0]==="auto"||i[1]==="auto")){var c=t.domain();if(!c.length)return null;var d=mT(c,o,s);return t.domain([(0,ny.default)(d),(0,ay.default)(d)]),{niceTicks:d}}if(o&&n==="number"){var u=t.domain(),f=hT(u,o,s);return{niceTicks:f}}return null};function Nm(e){var t=e.axis,r=e.ticks,a=e.bandSize,n=e.entry,o=e.index,i=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!(0,xo.default)(n[t.dataKey])){var s=jp(r,"value",n[t.dataKey]);if(s)return s.coordinate+a/2}return r[o]?r[o].coordinate+a/2:null}var l=Ht(n,(0,xo.default)(i)?t.dataKey:i);return(0,xo.default)(l)?null:t.scale(l)}var CT=function(t){var r=t.axis,a=t.ticks,n=t.offset,o=t.bandSize,i=t.entry,s=t.index;if(r.type==="category")return a[s]?a[s].coordinate+n:null;var l=Ht(i,r.dataKey,r.domain[s]);return(0,xo.default)(l)?null:r.scale(l)-o/2+n},xX=function(t){var r=t.numericAxis,a=r.scale.domain();if(r.type==="number"){var n=Math.min(a[0],a[1]),o=Math.max(a[0],a[1]);return n<=0&&o>=0?0:o<0?o:n}return a[0]},wX=function(t,r){var a,n=(a=t.type)!==null&&a!==void 0&&a.defaultProps?Mr(Mr({},t.type.defaultProps),t.props):t.props,o=n.stackId;if(Xt(o)){var i=r[o];if(i){var s=i.items.indexOf(t);return s>=0?i.stackedData[s]:null}}return null},RRe=function(t){return t.reduce(function(r,a){return[(0,ny.default)(a.concat([r[0]]).filter(me)),(0,ay.default)(a.concat([r[1]]).filter(me))]},[1/0,-1/0])},kT=function(t,r,a){return Object.keys(t).reduce(function(n,o){var i=t[o],s=i.stackedData,l=s.reduce(function(c,d){var u=RRe(d.slice(r,a+1));return[Math.min(c[0],u[0]),Math.max(c[1],u[1])]},[1/0,-1/0]);return[Math.min(l[0],n[0]),Math.max(l[1],n[1])]},[1/0,-1/0]).map(function(n){return n===1/0||n===-1/0?0:n})},nX=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,oX=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,R2=function(t,r,a){if((0,Cm.default)(t))return t(r,a);if(!Array.isArray(t))return r;var n=[];if(me(t[0]))n[0]=a?t[0]:Math.min(t[0],r[0]);else if(nX.test(t[0])){var o=+nX.exec(t[0])[1];n[0]=r[0]-o}else(0,Cm.default)(t[0])?n[0]=t[0](r[0]):n[0]=r[0];if(me(t[1]))n[1]=a?t[1]:Math.max(t[1],r[1]);else if(oX.test(t[1])){var i=+oX.exec(t[1])[1];n[1]=r[1]+i}else(0,Cm.default)(t[1])?n[1]=t[1](r[1]):n[1]=r[1];return n},Im=function(t,r,a){if(t&&t.scale&&t.scale.bandwidth){var n=t.scale.bandwidth();if(!a||n>0)return n}if(t&&r&&r.length>=2){for(var o=(0,uX.default)(r,function(u){return u.coordinate}),i=1/0,s=1,l=o.length;s<l;s++){var c=o[s],d=o[s-1];i=Math.min((c.coordinate||0)-(d.coordinate||0),i)}return i===1/0?0:i}return a?void 0:0},NT=function(t,r,a){return!t||!t.length||(0,cX.default)(t,(0,bT.default)(a,"type.defaultProps.domain"))?r:t},O2=function(t,r){var a=t.type.defaultProps?Mr(Mr({},t.type.defaultProps),t.props):t.props,n=a.dataKey,o=a.name,i=a.unit,s=a.formatter,l=a.tooltipType,c=a.chartType,d=a.hide;return Mr(Mr({},Ne(t,!1)),{},{dataKey:n,unit:i,formatter:s,name:o||n,color:ty(t),value:Ht(r,n),type:l,payload:r,chartType:c,hide:d})};function iy(e){"@babel/helpers - typeof";return iy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},iy(e)}function SX(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function Il(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?SX(Object(r),!0).forEach(function(a){kX(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):SX(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function kX(e,t,r){return t=ORe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ORe(e){var t=DRe(e,"string");return iy(t)=="symbol"?t:t+""}function DRe(e,t){if(iy(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(iy(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function MRe(e,t){return BRe(e)||jRe(e,t)||FRe(e,t)||_Re()}function _Re(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 129In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FRe(e,t){if(e){if(typeof e=="string")return CX(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return CX(e,t)}}function CX(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function jRe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a,n,o,i,s=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(a=o.call(r)).done)&&(s.push(a.value),s.length!==t);l=!0);}catch(d){c=!0,n=d}finally{try{if(!l&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw n}}return s}}function BRe(e){if(Array.isArray(e))return e}var sy=Math.PI/180;var VRe=function(t){return t*180/Math.PI},bt=function(t,r,a,n){return{x:t+Math.cos(-sy*n)*a,y:r+Math.sin(-sy*n)*a}},IT=function(t,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(a.left||0)-(a.right||0)),Math.abs(r-(a.top||0)-(a.bottom||0)))/2},EX=function(t,r,a,n,o){var i=t.width,s=t.height,l=t.startAngle,c=t.endAngle,d=Ur(t.cx,i,i/2),u=Ur(t.cy,s,s/2),f=IT(i,s,a),p=Ur(t.innerRadius,f,0),m=Ur(t.outerRadius,f,f*.8),h=Object.keys(r);return h.reduce(function(g,y){var v=r[y],x=v.domain,S=v.reversed,b;if((0,NX.default)(v.range))n==="angleAxis"?b=[l,c]:n==="radiusAxis"&&(b=[p,m]),S&&(b=[b[1],b[0]]);else{b=v.range;var w=b,k=MRe(w,2);l=k[0],c=k[1]}var C=A2(v,o),N=C.realScaleType,E=C.scale;E.domain(x).range(b),L2(E);var L=T2(E,Il(Il({},v),{},{realScaleType:N})),T=Il(Il(Il({},v),L),{},{range:b,radius:m,realScaleType:N,scale:E,cx:d,cy:u,innerRadius:p,outerRadius:m,startAngle:l,endAngle:c});return Il(Il({},g),{},kX({},y,T))},{})},URe=function(t,r){var a=t.x,n=t.y,o=r.x,i=r.y;return Math.sqrt(Math.pow(a-o,2)+Math.pow(n-i,2))},qRe=function(t,r){var a=t.x,n=t.y,o=r.cx,i=r.cy,s=URe({x:a,y:n},{x:o,y:i});if(s<=0)return{radius:s};var l=(a-o)/s,c=Math.acos(l);return n>i&&(c=2*Math.PI-c),{radius:s,angle:VRe(c),angleInRadian:c}},zRe=function(t){var r=t.startAngle,a=t.endAngle,n=Math.floor(r/360),o=Math.floor(a/360),i=Math.min(n,o);return{startAngle:r-i*360,endAngle:a-i*360}},HRe=function(t,r){var a=r.startAngle,n=r.endAngle,o=Math.floor(a/360),i=Math.floor(n/360),s=Math.min(o,i);return t+s*360},PT=function(t,r){var a=t.x,n=t.y,o=qRe({x:a,y:n},r),i=o.radius,s=o.angle,l=r.innerRadius,c=r.outerRadius;if(i<l||i>c)return!1;if(i===0)return!0;var d=zRe(r),u=d.startAngle,f=d.endAngle,p=s,m;if(u<=f){for(;p>f;)p-=360;for(;p<u;)p+=360;m=p>=u&&p<=f}else{for(;p>u;)p-=360;for(;p<f;)p+=360;m=p>=f&&p<=u}return m?Il(Il({},r),{},{radius:i,angle:HRe(p,r)}):null},D2=function(t){return!(0,IX.isValidElement)(t)&&!(0,PX.default)(t)&&typeof t!="boolean"?t.className:""};function ly(e){"@babel/helpers - typeof";return ly=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ly(e)}var WRe=["offset"];function GRe(e){return YRe(e)||XRe(e)||KRe(e)||$Re()}function $Re(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 130In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function KRe(e,t){if(e){if(typeof e=="string")return ET(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ET(e,t)}}function XRe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function YRe(e){if(Array.isArray(e))return ET(e)}function ET(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function JRe(e,t){if(e==null)return{};var r=ZRe(e,t),a,n;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)a=o[n],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function ZRe(e,t){if(e==null)return{};var r={};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;r[a]=e[a]}return r}function AX(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function ua(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
130t%2?AX(Object(r),!0).forEach(function(a){QRe(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):AX(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function QRe(e,t,r){return t=eOe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eOe(e){var t=tOe(e,"string");return ly(t)=="symbol"?t:t+""}function tOe(e,t){if(ly(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(ly(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cy(){return cy=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},cy.apply(this,arguments)}var rOe=function(t){var r=t.value,a=t.formatter,n=(0,uy.default)(t.children)?r:t.children;return(0,dy.default)(a)?a(n):n},aOe=function(t,r){var a=Vr(r-t),n=Math.min(Math.abs(r-t),360);return a*n},nOe=function(t,r,a){var n=t.position,o=t.viewBox,i=t.offset,s=t.className,l=o,c=l.cx,d=l.cy,u=l.innerRadius,f=l.outerRadius,p=l.startAngle,m=l.endAngle,h=l.clockWise,g=(u+f)/2,y=aOe(p,m),v=y>=0?1:-1,x,S;n==="insideStart"?(x=p+v*i,S=h):n==="insideEnd"?(x=m-v*i,S=!h):n==="end"&&(x=m+v*i,S=h),S=y<=0?S:!S;var b=bt(c,d,g,x),w=bt(c,d,g,x+(S?1:-1)*359),k="M".concat(b.x,",").concat(b.y,` 131 A`).concat(g,",").concat(g,",0,1,").concat(S?0:1,`, 132 `).concat(w.x,",").concat(w.y),C=(0,uy.default)(t.id)?zn("recharts-radial-line-"):t.id;return _r.default.createElement("text",cy({},a,{dominantBaseline:"central",className:Me("recharts-radial-bar-label",s)}),_r.default.createElement("defs",null,_r.default.createElement("path",{id:C,d:k})),_r.default.createElement("textPath",{xlinkHref:"#".concat(C)},r))},oOe=function(t){var r=t.viewBox,a=t.offset,n=t.position,o=r,i=o.cx,s=o.cy,l=o.innerRadius,c=o.outerRadius,d=o.startAngle,u=o.endAngle,f=(d+u)/2;if(n==="outside"){var p=bt(i,s,c+a,f),m=p.x,h=p.y;return{x:m,y:h,textAnchor:m>=i?"start":"end",verticalAnchor:"middle"}}if(n==="center")return{x:i,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(n==="centerTop")return{x:i,y:s,textAnchor:"middle",verticalAnchor:"start"};if(n==="centerBottom")return{x:i,y:s,textAnchor:"middle",verticalAnchor:"end"};var g=(l+c)/2,y=bt(i,s,g,f),v=y.x,x=y.y;return{x:v,y:x,textAnchor:"middle",verticalAnchor:"middle"}},iOe=function(t){var r=t.viewBox,a=t.parentViewBox,n=t.offset,o=t.position,i=r,s=i.x,l=i.y,c=i.width,d=i.height,u=d>=0?1:-1,f=u*n,p=u>0?"end":"start",m=u>0?"start":"end",h=c>=0?1:-1,g=h*n,y=h>0?"end":"start",v=h>0?"start":"end";if(o==="top"){var x={x:s+c/2,y:l-u*n,textAnchor:"middle",verticalAnchor:p};return ua(ua({},x),a?{height:Math.max(l-a.y,0),width:c}:{})}if(o==="bottom"){var S={x:s+c/2,y:l+d+f,textAnchor:"middle",verticalAnchor:m};return ua(ua({},S),a?{height:Math.max(a.y+a.height-(l+d),0),width:c}:{})}if(o==="left"){var b={x:s-g,y:l+d/2,textAnchor:y,verticalAnchor:"middle"};return ua(ua({},b),a?{width:Math.max(b.x-a.x,0),height:d}:{})}if(o==="right"){var w={x:s+c+g,y:l+d/2,textAnchor:v,verticalAnchor:"middle"};return ua(ua({},w),a?{width:Math.max(a.x+a.width-w.x,0),height:d}:{})}var k=a?{width:c,height:d}:{};return o==="insideLeft"?ua({x:s+g,y:l+d/2,textAnchor:v,verticalAnchor:"middle"},k):o==="insideRight"?ua({x:s+c-g,y:l+d/2,textAnchor:y,verticalAnchor:"middle"},k):o==="insideTop"?ua({x:s+c/2,y:l+f,textAnchor:"middle",verticalAnchor:m},k):o==="insideBottom"?ua({x:s+c/2,y:l+d-f,textAnchor:"middle",verticalAnchor:p},k):o==="insideTopLeft"?ua({x:s+g,y:l+f,textAnchor:v,verticalAnchor:m},k):o==="insideTopRight"?ua({x:s+c-g,y:l+f,textAnchor:y,verticalAnchor:m},k):o==="insideBottomLeft"?ua({x:s+g,y:l+d-f,textAnchor:v,verticalAnchor:p},k):o==="insideBottomRight"?ua({x:s+c-g,y:l+d-f,textAnchor:y,verticalAnchor:p},k):(0,AT.default)(o)&&(me(o.x)||bl(o.x))&&(me(o.y)||bl(o.y))?ua({x:s+Ur(o.x,c),y:l+Ur(o.y,d),textAnchor:"end",verticalAnchor:"end"},k):ua({x:s+c/2,y:l+d/2,textAnchor:"middle",verticalAnchor:"middle"},k)},sOe=function(t){return"cx"in t&&me(t.cx)};function cr(e){var t=e.offset,r=t===void 0?5:t,a=JRe(e,WRe),n=ua({offset:r},a),o=n.viewBox,i=n.position,s=n.value,l=n.children,c=n.content,d=n.className,u=d===void 0?"":d,f=n.textBreakAll;if(!o||(0,uy.default)(s)&&(0,uy.default)(l)&&!(0,_r.isValidElement)(c)&&!(0,dy.default)(c))return null;if((0,_r.isValidElement)(c))return(0,_r.cloneElement)(c,n);var p;
132if((0,dy.default)(c)){if(p=(0,_r.createElement)(c,n),(0,_r.isValidElement)(p))return p}else p=rOe(n);var m=sOe(o),h=Ne(n,!0);if(m&&(i==="insideStart"||i==="insideEnd"||i==="end"))return nOe(n,p,h);var g=m?oOe(n):iOe(n);return _r.default.createElement(go,cy({className:Me("recharts-label",u)},h,g,{breakAll:f}),p)}cr.displayName="Label";var LX=function(t){var r=t.cx,a=t.cy,n=t.angle,o=t.startAngle,i=t.endAngle,s=t.r,l=t.radius,c=t.innerRadius,d=t.outerRadius,u=t.x,f=t.y,p=t.top,m=t.left,h=t.width,g=t.height,y=t.clockWise,v=t.labelViewBox;if(v)return v;if(me(h)&&me(g)){if(me(u)&&me(f))return{x:u,y:f,width:h,height:g};if(me(p)&&me(m))return{x:p,y:m,width:h,height:g}}return me(u)&&me(f)?{x:u,y:f,width:0,height:0}:me(r)&&me(a)?{cx:r,cy:a,startAngle:o||n||0,endAngle:i||n||0,innerRadius:c||0,outerRadius:d||l||s||0,clockWise:y}:t.viewBox?t.viewBox:{}},lOe=function(t,r){return t?t===!0?_r.default.createElement(cr,{key:"label-implicit",viewBox:r}):Xt(t)?_r.default.createElement(cr,{key:"label-implicit",viewBox:r,value:t}):(0,_r.isValidElement)(t)?t.type===cr?(0,_r.cloneElement)(t,{key:"label-implicit",viewBox:r}):_r.default.createElement(cr,{key:"label-implicit",content:t,viewBox:r}):(0,dy.default)(t)?_r.default.createElement(cr,{key:"label-implicit",content:t,viewBox:r}):(0,AT.default)(t)?_r.default.createElement(cr,cy({viewBox:r},t,{key:"label-implicit"})):null:null},cOe=function(t,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&a&&!t.label)return null;var n=t.children,o=LX(t),i=qr(n,cr).map(function(l,c){return(0,_r.cloneElement)(l,{viewBox:r||o,key:"label-".concat(c)})});if(!a)return i;var s=lOe(t.label,r||o);return[s].concat(GRe(i))};cr.parseViewBox=LX;cr.renderCallByParent=cOe;var Pl=R(Q()),M2=R(qn()),_X=R(Jo()),FX=R(ir()),jX=R(RX());function fy(e){"@babel/helpers - typeof";return fy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fy(e)}var dOe=["valueAccessor"],fOe=["data","dataKey","clockWise","id","textBreakAll"];function pOe(e){return vOe(e)||gOe(e)||hOe(e)||mOe()}function mOe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 133In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hOe(e,t){if(e){if(typeof e=="string")return LT(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return LT(e,t)}}function gOe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function vOe(e){if(Array.isArray(e))return LT(e)}function LT(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function _2(){return _2=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},_2.apply(this,arguments)}function OX(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function DX(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?OX(Object(r),!0).forEach(function(a){yOe(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):OX(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function yOe(e,t,r){return t=bOe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bOe(e){var t=xOe(e,"string");return fy(t)=="symbol"?t:t+""}function xOe(e,t){if(fy(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(fy(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function MX(e,t){if(e==null)return{};var r=wOe(e,t),a,n;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)a=o[n],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function wOe(e,t){if(e==null)return{};var r={};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;r[a]=e[a]}return r}var SOe=function(t){return Array.isArray(t.value)?(0,jX.default)(t.value):t.value};function Wn(e){var t=e.valueAccessor,r=t===void 0?SOe:t,a=MX(e,dOe),n=a.data,o=a.dataKey,i=a.clockWise,s=a.id,l=a.textBreakAll,c=MX(a,fOe);return!n||!n.length?null:Pl.default.createElement(Ke,{className:"recharts-label-list"},n.map(function(d,u){var f=(0,M2.default)(o)?r(d,u):Ht(d&&d.payload,o),p=(0,M2.default)(s)?{}:{id:"".concat(s,"-").concat(u)};return Pl.default.createElement(cr,_2({},Ne(d,!0),c,p,{parentViewBox:d.parentViewBox,value:f,textBreakAll:l,viewBox:cr.parseViewBox((0,M2.default)(i)?d:DX(DX({},d),{},{clockWise:i})),key:"label-".concat(u),index:u}))}))}Wn.displayName="LabelList";function COe(e,t){return e?e===!0?Pl.default.createElement(Wn,{key:"labelList-implicit",data:t}):Pl.default.isValidElement(e)||(0,FX.default)(e)?Pl.default.createElement(Wn,{key:"labelList-implicit",data:t,content:e}):(0,_X.default)(e)?Pl.default.createElement(Wn,_2({data:t},e,{key:"labelList-implicit"})):null:null}function kOe(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var a=e.children,n=qr(a,Wn).map(function(i,s){return(0,Pl.cloneElement)(i,{data:t,key:"labelList-".concat(s)})});if(!r)return n;var o=COe(e.label,t);return[o].concat(pOe(n))}Wn.renderCallByParent=kOe;var UX=R(Q());function py(e){"@babel/helpers - typeof";return py=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},py(e)}function TT(){return TT=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},TT.apply(this,arguments)}function BX(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function VX(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
vendor: 5,019 bytes, lines 133-150
133t%2?BX(Object(r),!0).forEach(function(a){NOe(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):BX(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function NOe(e,t,r){return t=IOe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IOe(e){var t=POe(e,"string");return py(t)=="symbol"?t:t+""}function POe(e,t){if(py(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(py(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var EOe=function(t,r){var a=Vr(r-t),n=Math.min(Math.abs(r-t),359.999);return a*n},F2=function(t){var r=t.cx,a=t.cy,n=t.radius,o=t.angle,i=t.sign,s=t.isExternal,l=t.cornerRadius,c=t.cornerIsExternal,d=l*(s?1:-1)+n,u=Math.asin(l/d)/sy,f=c?o:o+i*u,p=bt(r,a,d,f),m=bt(r,a,n,f),h=c?o-i*u:o,g=bt(r,a,d*Math.cos(u*sy),h);return{center:p,circleTangency:m,lineTangency:g,theta:u}},qX=function(t){var r=t.cx,a=t.cy,n=t.innerRadius,o=t.outerRadius,i=t.startAngle,s=t.endAngle,l=EOe(i,s),c=i+l,d=bt(r,a,o,i),u=bt(r,a,o,c),f="M ".concat(d.x,",").concat(d.y,` 134 A `).concat(o,",").concat(o,`,0, 135 `).concat(+(Math.abs(l)>180),",").concat(+(i>c),`, 136 `).concat(u.x,",").concat(u.y,` 137 `);if(n>0){var p=bt(r,a,n,i),m=bt(r,a,n,c);f+="L ".concat(m.x,",").concat(m.y,` 138 A `).concat(n,",").concat(n,`,0, 139 `).concat(+(Math.abs(l)>180),",").concat(+(i<=c),`, 140 `).concat(p.x,",").concat(p.y," Z")}else f+="L ".concat(r,",").concat(a," Z");return f},AOe=function(t){var r=t.cx,a=t.cy,n=t.innerRadius,o=t.outerRadius,i=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,c=t.startAngle,d=t.endAngle,u=Vr(d-c),f=F2({cx:r,cy:a,radius:o,angle:c,sign:u,cornerRadius:i,cornerIsExternal:l}),p=f.circleTangency,m=f.lineTangency,h=f.theta,g=F2({cx:r,cy:a,radius:o,angle:d,sign:-u,cornerRadius:i,cornerIsExternal:l}),y=g.circleTangency,v=g.lineTangency,x=g.theta,S=l?Math.abs(c-d):Math.abs(c-d)-h-x;if(S<0)return s?"M ".concat(m.x,",").concat(m.y,` 141 a`).concat(i,",").concat(i,",0,0,1,").concat(i*2,`,0 142 a`).concat(i,",").concat(i,",0,0,1,").concat(-i*2,`,0 143 `):qX({cx:r,cy:a,innerRadius:n,outerRadius:o,startAngle:c,endAngle:d});var b="M ".concat(m.x,",").concat(m.y,` 144 A`).concat(i,",").concat(i,",0,0,").concat(+(u<0),",").concat(p.x,",").concat(p.y,` 145 A`).concat(o,",").concat(o,",0,").concat(+(S>180),",").concat(+(u<0),",").concat(y.x,",").concat(y.y,` 146 A`).concat(i,",").concat(i,",0,0,").concat(+(u<0),",").concat(v.x,",").concat(v.y,` 147 `);if(n>0){var w=F2({cx:r,cy:a,radius:n,angle:c,sign:u,isExternal:!0,cornerRadius:i,cornerIsExternal:l}),k=w.circleTangency,C=w.lineTangency,N=w.theta,E=F2({cx:r,cy:a,radius:n,angle:d,sign:-u,isExternal:!0,cornerRadius:i,cornerIsExternal:l}),L=E.circleTangency,T=E.lineTangency,q=E.theta,_=l?Math.abs(c-d):Math.abs(c-d)-N-q;if(_<0&&i===0)return"".concat(b,"L").concat(r,",").concat(a,"Z");b+="L".concat(T.x,",").concat(T.y,` 148 A`).concat(i,",").concat(i,",0,0,").concat(+(u<0),",").concat(L.x,",").concat(L.y,` 149 A`).concat(n,",").concat(n,",0,").concat(+(_>180),",").concat(+(u>0),",").concat(k.x,",").concat(k.y,` 150 A`).concat(i,",").concat(i,",0,0,").concat(+(u<0),",").concat(C.x,",").concat(C.y,"Z")}else b+="L".concat(r,",").concat(a,"Z");return b},LOe={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},j2=function(t){var r=VX(VX({},LOe),t),a=r.cx,n=r.cy,o=r.innerRadius,i=r.outerRadius,s=r.cornerRadius,l=r.forceCornerRadius,c=r.cornerIsExternal,d=r.startAngle,u=r.endAngle,f=r.className;if(i<o||d===u)return null;var p=Me("recharts-sector",f),m=i-o,h=Ur(s,m,0,!0),g;return h>0&&Math.abs(d-u)<360?g=AOe({cx:a,cy:n,innerRadius:o,outerRadius:i,cornerRadius:Math.min(h,m/2),forceCornerRadius:l,cornerIsExternal:c,startAngle:d,endAngle:u}):g=qX({cx:a,cy:n,innerRadius:o,outerRadius:i,startAngle:d,endAngle:u}),UX.default.createElement("path",TT({},Ne(r,!0),{className:p,d:g,role:"img"}))};var GX=R(Q());var $X=R(fS()),KX=R(ir());function gy(e){"@babel/helpers - typeof";return gy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gy(e)}function RT(){return RT=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},RT.apply(this,arguments)}function zX(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function HX(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
150t%2?zX(Object(r),!0).forEach(function(a){TOe(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zX(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function TOe(e,t,r){return t=ROe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ROe(e){var t=OOe(e,"string");return gy(t)=="symbol"?t:t+""}function OOe(e,t){if(gy(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(gy(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var WX={curveBasisClosed:m5,curveBasisOpen:h5,curveBasis:p5,curveBumpX:a5,curveBumpY:n5,curveLinearClosed:g5,curveLinear:Lc,curveMonotoneX:y5,curveMonotoneY:b5,curveNatural:x5,curveStep:w5,curveStepAfter:C5,curveStepBefore:S5},B2=function(t){return t.x===+t.x&&t.y===+t.y},my=function(t){return t.x},hy=function(t){return t.y},DOe=function(t,r){if((0,KX.default)(t))return t;var a="curve".concat((0,$X.default)(t));return(a==="curveMonotone"||a==="curveBump")&&r?WX["".concat(a).concat(r==="vertical"?"Y":"X")]:WX[a]||Lc},MOe=function(t){var r=t.type,a=r===void 0?"linear":r,n=t.points,o=n===void 0?[]:n,i=t.baseLine,s=t.layout,l=t.connectNulls,c=l===void 0?!1:l,d=DOe(a,s),u=c?o.filter(function(h){return B2(h)}):o,f;if(Array.isArray(i)){var p=c?i.filter(function(h){return B2(h)}):i,m=u.map(function(h,g){return HX(HX({},h),{},{base:p[g]})});return s==="vertical"?f=Hp().y(hy).x1(my).x0(function(h){return h.base.x}):f=Hp().x(my).y1(hy).y0(function(h){return h.base.y}),f.defined(B2).curve(d),f(m)}return s==="vertical"&&me(i)?f=Hp().y(hy).x1(my).x0(i):me(i)?f=Hp().x(my).y1(hy).y0(i):f=mv().x(my).y(hy),f.defined(B2).curve(d),f(u)},Vi=function(t){var r=t.className,a=t.points,n=t.path,o=t.pathRef;if((!a||!a.length)&&!n)return null;var i=a&&a.length?MOe(t):n;return GX.createElement("path",RT({},Ne(t,!1),Qu(t),{className:Me("recharts-curve",r),d:i,ref:o}))};var qi=R(Q());var Ts=R(Q()),It=R(rY());var jOe=Object.getOwnPropertyNames,BOe=Object.getOwnPropertySymbols,VOe=Object.prototype.hasOwnProperty;function aY(e,t){return function(a,n,o){return e(a,n,o)&&t(a,n,o)}}function V2(e){return function(r,a,n){if(!r||!a||typeof r!="object"||typeof a!="object")return e(r,a,n);var o=n.cache,i=o.get(r),s=o.get(a);if(i&&s)return i===a&&s===r;o.set(r,a),o.set(a,r);var l=e(r,a,n);return o.delete(r),o.delete(a),l}}function nY(e){return jOe(e).concat(BOe(e))}var UOe=Object.hasOwn||(function(e,t){return VOe.call(e,t)});function Cd(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var qOe="__v",zOe="__o",HOe="_owner",oY=Object.getOwnPropertyDescriptor,iY=Object.keys;function WOe(e,t,r){var a=e.length;if(t.length!==a)return!1;for(;a-- >0;)if(!r.equals(e[a],t[a],a,a,e,t,r))return!1;return!0}function GOe(e,t){return Cd(e.getTime(),t.getTime())}function $Oe(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function KOe(e,t){return e===t}function sY(e,t,r){var a=e.size;if(a!==t.size)return!1;if(!a)return!0;for(var n=new Array(a),o=e.entries(),i,s,l=0;(i=o.next())&&!i.done;){for(var c=t.entries(),d=!1,u=0;(s=c.next())&&!s.done;){if(n[u]){u++;continue}var f=i.value,p=s.value;if(r.equals(f[0],p[0],l,u,e,t,r)&&r.equals(f[1],p[1],f[0],p[0],e,t,r)){d=n[u]=!0;break}u++}if(!d)return!1;l++}return!0}var XOe=Cd;function YOe(e,t,r){var a=iY(e),n=a.length;if(iY(t).length!==n)return!1;for(;n-- >0;)if(!dY(e,t,r,a[n]))return!1;return!0}function vy(e,t,r){var a=nY(e),n=a.length;if(nY(t).length!==n)return!1;for(var o,i,s;n-- >0;)if(o=a[n],!dY(e,t,r,o)||(i=oY(e,o),s=oY(t,o),(i||s)&&(!i||!s||i.configurable!==s.configurable||i.enumerable!==s.enumerable||i.writable!==s.writable)))return!1;return!0}function JOe(e,t){return Cd(e.valueOf(),t.valueOf())}function ZOe(e,t){return e.source===t.source&&e.flags===t.flags}function lY(e,t,r){var a=e.size;if(a!==t.size)return!1;if(!a)return!0;for(var n=new Array(a),o=e.values(),i,s;(i=o.next())&&!i.done;){for(var l=t.values(),c=!1,d=0;(s=l.next())&&!s.done;){if(!n[d]&&r.equals(i.value,s.value,i.value,s.value,e,t,r)){c=n[d]=!0;break}d++}if(!c)return!1}return!0}function QOe(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function eDe(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function dY(e,t,r,a){return(a===HOe||a===zOe||a===qOe)&&(e.$$typeof||t.$$typeof)?!0:UOe(t,a)&&r.equals(e[a],t[a],a,a,e,t,r)}var tDe="[object Arguments]",rDe="[object Boolean]",aDe="[object Date]",nDe="[object Error]",oDe="[object Map]",iDe="[object Number]",
150sDe="[object Object]",lDe="[object RegExp]",cDe="[object Set]",uDe="[object String]",dDe="[object URL]",fDe=Array.isArray,cY=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,uY=Object.assign,pDe=Object.prototype.toString.call.bind(Object.prototype.toString);function mDe(e){var t=e.areArraysEqual,r=e.areDatesEqual,a=e.areErrorsEqual,n=e.areFunctionsEqual,o=e.areMapsEqual,i=e.areNumbersEqual,s=e.areObjectsEqual,l=e.arePrimitiveWrappersEqual,c=e.areRegExpsEqual,d=e.areSetsEqual,u=e.areTypedArraysEqual,f=e.areUrlsEqual;return function(m,h,g){if(m===h)return!0;if(m==null||h==null)return!1;var y=typeof m;if(y!==typeof h)return!1;if(y!=="object")return y==="number"?i(m,h,g):y==="function"?n(m,h,g):!1;var v=m.constructor;if(v!==h.constructor)return!1;if(v===Object)return s(m,h,g);if(fDe(m))return t(m,h,g);if(cY!=null&&cY(m))return u(m,h,g);if(v===Date)return r(m,h,g);if(v===RegExp)return c(m,h,g);if(v===Map)return o(m,h,g);if(v===Set)return d(m,h,g);var x=pDe(m);return x===aDe?r(m,h,g):x===lDe?c(m,h,g):x===oDe?o(m,h,g):x===cDe?d(m,h,g):x===sDe?typeof m.then!="function"&&typeof h.then!="function"&&s(m,h,g):x===dDe?f(m,h,g):x===nDe?a(m,h,g):x===tDe?s(m,h,g):x===rDe||x===iDe||x===uDe?l(m,h,g):!1}}function hDe(e){var t=e.circular,r=e.createCustomConfig,a=e.strict,n={areArraysEqual:a?vy:WOe,areDatesEqual:GOe,areErrorsEqual:$Oe,areFunctionsEqual:KOe,areMapsEqual:a?aY(sY,vy):sY,areNumbersEqual:XOe,areObjectsEqual:a?vy:YOe,arePrimitiveWrappersEqual:JOe,areRegExpsEqual:ZOe,areSetsEqual:a?aY(lY,vy):lY,areTypedArraysEqual:a?vy:QOe,areUrlsEqual:eDe};if(r&&(n=uY({},n,r(n))),t){var o=V2(n.areArraysEqual),i=V2(n.areMapsEqual),s=V2(n.areObjectsEqual),l=V2(n.areSetsEqual);n=uY({},n,{areArraysEqual:o,areMapsEqual:i,areObjectsEqual:s,areSetsEqual:l})}return n}function gDe(e){return function(t,r,a,n,o,i,s){return e(t,r,s)}}function vDe(e){var t=e.circular,r=e.comparator,a=e.createState,n=e.equals,o=e.strict;if(a)return function(l,c){var d=a(),u=d.cache,f=u===void 0?t?new WeakMap:void 0:u,p=d.meta;return r(l,c,{cache:f,equals:n,meta:p,strict:o})};if(t)return function(l,c){return r(l,c,{cache:new WeakMap,equals:n,meta:void 0,strict:o})};var i={cache:void 0,equals:n,meta:void 0,strict:o};return function(l,c){return r(l,c,i)}}var fY=Uc(),f2t=Uc({strict:!0}),p2t=Uc({circular:!0}),m2t=Uc({circular:!0,strict:!0}),h2t=Uc({createInternalComparator:function(){return Cd}}),g2t=Uc({strict:!0,createInternalComparator:function(){return Cd}}),v2t=Uc({circular:!0,createInternalComparator:function(){return Cd}}),y2t=Uc({circular:!0,createInternalComparator:function(){return Cd},strict:!0});function Uc(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,a=e.createInternalComparator,n=e.createState,o=e.strict,i=o===void 0?!1:o,s=hDe(e),l=mDe(s),c=a?a(l):gDe(l);return vDe({circular:r,comparator:l,createState:n,equals:c,strict:i})}function yDe(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function U2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,a=function n(o){r<0&&(r=o),o-r>t?(e(o),r=-1):yDe(n)};requestAnimationFrame(a)}function OT(e){"@babel/helpers - typeof";return OT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},OT(e)}function bDe(e){return CDe(e)||SDe(e)||wDe(e)||xDe()}function xDe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 151In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wDe(e,t){if(e){if(typeof e=="string")return pY(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pY(e,t)}}function pY(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function SDe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function CDe(e){if(Array.isArray(e))return e}function DT(){var e={},t=function(){return null},r=!1,a=function n(o){if(!r){if(Array.isArray(o)){if(!o.length)return;var i=o,s=bDe(i),l=s[0],c=s.slice(1);if(typeof l=="number"){U2(n.bind(null,c),l);return}n(l),U2(n.bind(null,c));return}OT(o)==="object"&&(e=o,t(e)),typeof o=="function"&&o()}};return{stop:function(){r=!0},start:function(o){r=!1,a(o)},subscribe:function(o){return t=o,function(){t=function(){return null}}}}}function yy(e){"@babel/helpers - typeof";return yy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yy(e)}function mY(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function hY(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
151t%2?mY(Object(r),!0).forEach(function(a){gY(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mY(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function gY(e,t,r){return t=kDe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kDe(e){var t=NDe(e,"string");return yy(t)==="symbol"?t:String(t)}function NDe(e,t){if(yy(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(yy(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var vY=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(a,n){return a.filter(function(o){return n.includes(o)})})},yY=function(t){return t},IDe=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})};var Pm=function(t,r){return Object.keys(r).reduce(function(a,n){return hY(hY({},a),{},gY({},n,t(n,r[n])))},{})},MT=function(t,r,a){return t.map(function(n){return"".concat(IDe(n)," ").concat(r,"ms ").concat(a)}).join(",")},PDe=!1,by=function(t,r,a,n,o,i,s,l){if(PDe&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[a,n,o,i,s,l],d=0;console.warn(r.replace(/%s/g,function(){return c[d++]}))}};function EDe(e,t){return TDe(e)||LDe(e,t)||wY(e,t)||ADe()}function ADe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 152In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LDe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a,n,o,i,s=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(a=o.call(r)).done)&&(s.push(a.value),s.length!==t);l=!0);}catch(d){c=!0,n=d}finally{try{if(!l&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw n}}return s}}function TDe(e){if(Array.isArray(e))return e}function RDe(e){return MDe(e)||DDe(e)||wY(e)||ODe()}function ODe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 153In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wY(e,t){if(e){if(typeof e=="string")return _T(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _T(e,t)}}function DDe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function MDe(e){if(Array.isArray(e))return _T(e)}function _T(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}var q2=1e-4,SY=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},CY=function(t,r){return t.map(function(a,n){return a*Math.pow(r,n)}).reduce(function(a,n){return a+n})},bY=function(t,r){return function(a){var n=SY(t,r);return CY(n,a)}},_De=function(t,r){return function(a){var n=SY(t,r),o=[].concat(RDe(n.map(function(i,s){return i*s}).slice(1)),[0]);return CY(o,a)}},xY=function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];var n=r[0],o=r[1],i=r[2],s=r[3];if(r.length===1)switch(r[0]){case"linear":n=0,o=0,i=1,s=1;break;case"ease":n=.25,o=.1,i=.25,s=1;break;case"ease-in":n=.42,o=0,i=1,s=1;break;case"ease-out":n=.42,o=0,i=.58,s=1;break;case"ease-in-out":n=0,o=0,i=.58,s=1;break;default:{var l=r[0].split("(");if(l[0]==="cubic-bezier"&&l[1].split(")")[0].split(",").length===4){var c=l[1].split(")")[0].split(",").map(function(g){return parseFloat(g)}),d=EDe(c,4);n=d[0],o=d[1],i=d[2],s=d[3]}else by(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",r)}}by([n,i,o,s].every(function(g){return typeof g=="number"&&g>=0&&g<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",r);var u=bY(n,i),f=bY(o,s),p=_De(n,i),m=function(y){return y>1?1:y<0?0:y},h=function(y){for(var v=y>1?1:y,x=v,S=0;S<8;++S){var b=u(x)-v,w=p(x);if(Math.abs(b-v)<q2||w<q2)return f(x);x=m(x-b/w)}return f(x)};return h.isStepper=!1,h},FDe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,a=r===void 0?100:r,n=t.damping,o=n===void 0?8:n,i=t.dt,s=i===void 0?17:i,l=function(d,u,f){var p=-(d-u)*a,m=f*o,h=f+(p-m)*s/1e3,g=f*s/1e3+d;return Math.abs(g-u)<q2&&Math.abs(h)<q2?[u,0]:[g,h]};return l.isStepper=!0,l.dt=s,l},kY=function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];var n=r[0];if(typeof n=="string")switch(n){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return xY(n);case"spring":return FDe();default:if(n.split("(")[0]==="cubic-bezier")return xY(n);by(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s",r)}return typeof n=="function"?n:(by(!1,"[configEasing]: first argument type should be function or string, instead received %s",r),null)};function xy(e){"@babel/helpers - typeof";return xy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xy(e)}function NY(e){return VDe(e)||BDe(e)||PY(e)||jDe()}function jDe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 154In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BDe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function VDe(e){if(Array.isArray(e))return jT(e)}function IY(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function Ma(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
vendor: 7,860 bytes, lines 154-156
154t%2?IY(Object(r),!0).forEach(function(a){FT(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):IY(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function FT(e,t,r){return t=UDe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UDe(e){var t=qDe(e,"string");return xy(t)==="symbol"?t:String(t)}function qDe(e,t){if(xy(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(xy(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zDe(e,t){return GDe(e)||WDe(e,t)||PY(e,t)||HDe()}function HDe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 155In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PY(e,t){if(e){if(typeof e=="string")return jT(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return jT(e,t)}}function jT(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function WDe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a,n,o,i,s=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(a=o.call(r)).done)&&(s.push(a.value),s.length!==t);l=!0);}catch(d){c=!0,n=d}finally{try{if(!l&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw n}}return s}}function GDe(e){if(Array.isArray(e))return e}var z2=function(t,r,a){return t+(r-t)*a},BT=function(t){var r=t.from,a=t.to;return r!==a},$De=function e(t,r,a){var n=Pm(function(o,i){if(BT(i)){var s=t(i.from,i.to,i.velocity),l=zDe(s,2),c=l[0],d=l[1];return Ma(Ma({},i),{},{from:c,velocity:d})}return i},r);return a<1?Pm(function(o,i){return BT(i)?Ma(Ma({},i),{},{velocity:z2(i.velocity,n[o].velocity,a),from:z2(i.from,n[o].from,a)}):i},r):e(t,n,a-1)},EY=(function(e,t,r,a,n){var o=vY(e,t),i=o.reduce(function(g,y){return Ma(Ma({},g),{},FT({},y,[e[y],t[y]]))},{}),s=o.reduce(function(g,y){return Ma(Ma({},g),{},FT({},y,{from:e[y],velocity:0,to:t[y]}))},{}),l=-1,c,d,u=function(){return null},f=function(){return Pm(function(y,v){return v.from},s)},p=function(){return!Object.values(s).filter(BT).length},m=function(y){c||(c=y);var v=y-c,x=v/r.dt;s=$De(r,s,x),n(Ma(Ma(Ma({},e),t),f(s))),c=y,p()||(l=requestAnimationFrame(u))},h=function(y){d||(d=y);var v=(y-d)/a,x=Pm(function(b,w){return z2.apply(void 0,NY(w).concat([r(v)]))},i);if(n(Ma(Ma(Ma({},e),t),x)),v<1)l=requestAnimationFrame(u);else{var S=Pm(function(b,w){return z2.apply(void 0,NY(w).concat([r(1)]))},i);n(Ma(Ma(Ma({},e),t),S))}};return u=r.isStepper?m:h,function(){return requestAnimationFrame(u),function(){cancelAnimationFrame(l)}}});function Em(e){"@babel/helpers - typeof";return Em=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Em(e)}var KDe=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function XDe(e,t){if(e==null)return{};var r=YDe(e,t),a,n;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)a=o[n],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function YDe(e,t){if(e==null)return{};var r={},a=Object.keys(e),n,o;for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}function VT(e){return eMe(e)||QDe(e)||ZDe(e)||JDe()}function JDe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 156In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZDe(e,t){if(e){if(typeof e=="string")return UT(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return UT(e,t)}}function QDe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function eMe(e){if(Array.isArray(e))return UT(e)}function UT(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function AY(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function Ui(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?AY(Object(r),!0).forEach(function(a){wy(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):AY(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function wy(e,t,r){return t=TY(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tMe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function LY(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,TY(a.key),a)}}function rMe(e,t,r){return t&&LY(e.prototype,t),r&&LY(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function TY(e){var t=aMe(e,"string");return Em(t)==="symbol"?t:String(t)}function aMe(e,t){if(Em(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(Em(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nMe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qT(e,t)}function qT(e,t){return qT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},qT(e,t)}function oMe(e){var t=iMe();return function(){var a=H2(e),n;if(t){var o=H2(this).constructor;n=Reflect.construct(a,arguments,o)}else n=a.apply(this,arguments);return zT(this,n)}}function zT(e,t){if(t&&(Em(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return HT(e)}function HT(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iMe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function H2(e){return H2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},H2(e)}var W2=(function(e){nMe(r,e);var t=oMe(r);function r(a,n){var o;tMe(this,r),o=t.call(this,a,n);var i=o.props,s=i.isActive,l=i.attributeName,c=i.from,d=i.to,u=i.steps,f=i.children,p=i.duration;if(o.handleStyleChange=o.handleStyleChange.bind(HT(o)),o.changeStyle=o.changeStyle.bind(HT(o)),!s||p<=0)return o.state={style:{}},typeof f=="function"&&(o.state={style:d}),zT(o);if(u&&u.length)o.state={style:u[0].style};else if(c){if(typeof f=="function")return o.state={style:c},zT(o);o.state={style:l?wy({},l,c):c}}else o.state={style:{}};return o}
156return rMe(r,[{key:"componentDidMount",value:function(){var n=this.props,o=n.isActive,i=n.canBegin;this.mounted=!0,!(!o||!i)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(n){var o=this.props,i=o.isActive,s=o.canBegin,l=o.attributeName,c=o.shouldReAnimate,d=o.to,u=o.from,f=this.state.style;if(s){if(!i){var p={style:l?wy({},l,d):d};this.state&&f&&(l&&f[l]!==d||!l&&f!==d)&&this.setState(p);return}if(!(fY(n.to,d)&&n.canBegin&&n.isActive)){var m=!n.canBegin||!n.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var h=m||c?u:n.to;if(this.state&&f){var g={style:l?wy({},l,h):h};(l&&f[l]!==h||!l&&f!==h)&&this.setState(g)}this.runAnimation(Ui(Ui({},this.props),{},{from:h,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var n=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),n&&n()}},{key:"handleStyleChange",value:function(n){this.changeStyle(n)}},{key:"changeStyle",value:function(n){this.mounted&&this.setState({style:n})}},{key:"runJSAnimation",value:function(n){var o=this,i=n.from,s=n.to,l=n.duration,c=n.easing,d=n.begin,u=n.onAnimationEnd,f=n.onAnimationStart,p=EY(i,s,kY(c),l,this.changeStyle),m=function(){o.stopJSAnimation=p()};this.manager.start([f,d,m,l,u])}},{key:"runStepAnimation",value:function(n){var o=this,i=n.steps,s=n.begin,l=n.onAnimationStart,c=i[0],d=c.style,u=c.duration,f=u===void 0?0:u,p=function(h,g,y){if(y===0)return h;var v=g.duration,x=g.easing,S=x===void 0?"ease":x,b=g.style,w=g.properties,k=g.onAnimationEnd,C=y>0?i[y-1]:g,N=w||Object.keys(b);if(typeof S=="function"||S==="spring")return[].concat(VT(h),[o.runJSAnimation.bind(o,{from:C.style,to:b,duration:v,easing:S}),v]);var E=MT(N,v,S),L=Ui(Ui(Ui({},C.style),b),{},{transition:E});return[].concat(VT(h),[L,v,k]).filter(yY)};return this.manager.start([l].concat(VT(i.reduce(p,[d,Math.max(f,s)])),[n.onAnimationEnd]))}},{key:"runAnimation",value:function(n){this.manager||(this.manager=DT());var o=n.begin,i=n.duration,s=n.attributeName,l=n.to,c=n.easing,d=n.onAnimationStart,u=n.onAnimationEnd,f=n.steps,p=n.children,m=this.manager;if(this.unSubscribe=m.subscribe(this.handleStyleChange),typeof c=="function"||typeof p=="function"||c==="spring"){this.runJSAnimation(n);return}if(f.length>1){this.runStepAnimation(n);return}var h=s?wy({},s,l):l,g=MT(Object.keys(h),i,c);m.start([d,o,Ui(Ui({},h),{},{transition:g}),i,u])}},{key:"render",value:function(){var n=this.props,o=n.children,i=n.begin,s=n.duration,l=n.attributeName,c=n.easing,d=n.isActive,u=n.steps,f=n.from,p=n.to,m=n.canBegin,h=n.onAnimationEnd,g=n.shouldReAnimate,y=n.onAnimationReStart,v=XDe(n,KDe),x=Ts.Children.count(o),S=this.state.style;if(typeof o=="function")return o(S);if(!d||x===0||s<=0)return o;var b=function(k){var C=k.props,N=C.style,E=N===void 0?{}:N,L=C.className,T=(0,Ts.cloneElement)(k,Ui(Ui({},v),{},{style:Ui(Ui({},E),S),className:L}));return T};return x===1?b(Ts.Children.only(o)):Ts.default.createElement("div",null,Ts.Children.map(o,function(w){return b(w)}))}}]),r})(Ts.PureComponent);W2.displayName="Animate";W2.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};W2.propTypes={from:It.default.oneOfType([It.default.object,It.default.string]),to:It.default.oneOfType([It.default.object,It.default.string]),attributeName:It.default.string,duration:It.default.number,begin:It.default.number,easing:It.default.oneOfType([It.default.string,It.default.func]),steps:It.default.arrayOf(It.default.shape({duration:It.default.number.isRequired,style:It.default.object.isRequired,easing:It.default.oneOfType([It.default.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),It.default.func]),properties:It.default.arrayOf("string"),onAnimationEnd:It.default.func})),children:It.default.oneOfType([It.default.node,It.default.func]),isActive:It.default.bool,canBegin:It.default.bool,onAnimationEnd:It.default.func,shouldReAnimate:It.default.bool,onAnimationStart:It.default.func,onAnimationReStart:It.default.func};var RY=W2;var Gn=RY;function Sy(e){"@babel/helpers - typeof";return Sy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sy(e)}function G2(){return G2=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},G2.apply(this,arguments)}function sMe(e,t){return dMe(e)||uMe(e,t)||cMe(e,t)||lMe()}
vendor: 6,977 bytes, lines 156-168
156function lMe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 157In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cMe(e,t){if(e){if(typeof e=="string")return OY(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return OY(e,t)}}function OY(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function uMe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a,n,o,i,s=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(a=o.call(r)).done)&&(s.push(a.value),s.length!==t);l=!0);}catch(d){c=!0,n=d}finally{try{if(!l&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw n}}return s}}function dMe(e){if(Array.isArray(e))return e}function DY(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function MY(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?DY(Object(r),!0).forEach(function(a){fMe(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):DY(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function fMe(e,t,r){return t=pMe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pMe(e){var t=mMe(e,"string");return Sy(t)=="symbol"?t:t+""}function mMe(e,t){if(Sy(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(Sy(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _Y=function(t,r,a,n,o){var i=Math.min(Math.abs(a)/2,Math.abs(n)/2),s=n>=0?1:-1,l=a>=0?1:-1,c=n>=0&&a>=0||n<0&&a<0?1:0,d;if(i>0&&o instanceof Array){for(var u=[0,0,0,0],f=0,p=4;f<p;f++)u[f]=o[f]>i?i:o[f];d="M".concat(t,",").concat(r+s*u[0]),u[0]>0&&(d+="A ".concat(u[0],",").concat(u[0],",0,0,").concat(c,",").concat(t+l*u[0],",").concat(r)),d+="L ".concat(t+a-l*u[1],",").concat(r),u[1]>0&&(d+="A ".concat(u[1],",").concat(u[1],",0,0,").concat(c,`, 158 `).concat(t+a,",").concat(r+s*u[1])),d+="L ".concat(t+a,",").concat(r+n-s*u[2]),u[2]>0&&(d+="A ".concat(u[2],",").concat(u[2],",0,0,").concat(c,`, 159 `).concat(t+a-l*u[2],",").concat(r+n)),d+="L ".concat(t+l*u[3],",").concat(r+n),u[3]>0&&(d+="A ".concat(u[3],",").concat(u[3],",0,0,").concat(c,`, 160 `).concat(t,",").concat(r+n-s*u[3])),d+="Z"}else if(i>0&&o===+o&&o>0){var m=Math.min(i,o);d="M ".concat(t,",").concat(r+s*m,` 161 A `).concat(m,",").concat(m,",0,0,").concat(c,",").concat(t+l*m,",").concat(r,` 162 L `).concat(t+a-l*m,",").concat(r,` 163 A `).concat(m,",").concat(m,",0,0,").concat(c,",").concat(t+a,",").concat(r+s*m,` 164 L `).concat(t+a,",").concat(r+n-s*m,` 165 A `).concat(m,",").concat(m,",0,0,").concat(c,",").concat(t+a-l*m,",").concat(r+n,` 166 L `).concat(t+l*m,",").concat(r+n,` 167 A `).concat(m,",").concat(m,",0,0,").concat(c,",").concat(t,",").concat(r+n-s*m," Z")}else d="M ".concat(t,",").concat(r," h ").concat(a," v ").concat(n," h ").concat(-a," Z");return d},FY=function(t,r){if(!t||!r)return!1;var a=t.x,n=t.y,o=r.x,i=r.y,s=r.width,l=r.height;if(Math.abs(s)>0&&Math.abs(l)>0){var c=Math.min(o,o+s),d=Math.max(o,o+s),u=Math.min(i,i+l),f=Math.max(i,i+l);return a>=c&&a<=d&&n>=u&&n<=f}return!1},hMe={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Am=function(t){var r=MY(MY({},hMe),t),a=(0,qi.useRef)(),n=(0,qi.useState)(-1),o=sMe(n,2),i=o[0],s=o[1];(0,qi.useEffect)(function(){if(a.current&&a.current.getTotalLength)try{var S=a.current.getTotalLength();S&&s(S)}catch{}},[]);var l=r.x,c=r.y,d=r.width,u=r.height,f=r.radius,p=r.className,m=r.animationEasing,h=r.animationDuration,g=r.animationBegin,y=r.isAnimationActive,v=r.isUpdateAnimationActive;if(l!==+l||c!==+c||d!==+d||u!==+u||d===0||u===0)return null;var x=Me("recharts-rectangle",p);return v?qi.default.createElement(Gn,{canBegin:i>0,from:{width:d,height:u,x:l,y:c},to:{width:d,height:u,x:l,y:c},duration:h,animationEasing:m,isActive:v},function(S){var b=S.width,w=S.height,k=S.x,C=S.y;return qi.default.createElement(Gn,{canBegin:i>0,from:"0px ".concat(i===-1?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:h,isActive:y,easing:m},qi.default.createElement("path",G2({},Ne(r,!0),{className:x,d:_Y(k,C,b,w,f),ref:a})))}):qi.default.createElement("path",G2({},Ne(r,!0),{className:x,d:_Y(l,c,d,u,f)}))};var Lm=R(Q());var gMe=["points","className","baseLinePoints","connectNulls"];function Tm(){return Tm=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},Tm.apply(this,arguments)}function vMe(e,t){if(e==null)return{};var r=yMe(e,t),a,n;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)a=o[n],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function yMe(e,t){if(e==null)return{};var r={};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;r[a]=e[a]}return r}function jY(e){return SMe(e)||wMe(e)||xMe(e)||bMe()}function bMe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 168In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xMe(e,t){if(e){if(typeof e=="string")return WT(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return WT(e,t)}}function wMe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function SMe(e){if(Array.isArray(e))return WT(e)}function WT(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}var BY=function(t){return t&&t.x===+t.x&&t.y===+t.y},CMe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(a){BY(a)?r[r.length-1].push(a):r[r.length-1].length>0&&r.push([])}),BY(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},Cy=function(t,r){var a=CMe(t);r&&(a=[a.reduce(function(o,i){return[].concat(jY(o),jY(i))},[])]);var n=a.map(function(o){return o.reduce(function(i,s,l){return"".concat(i).c
168oncat(l===0?"M":"L").concat(s.x,",").concat(s.y)},"")}).join("");return a.length===1?"".concat(n,"Z"):n},kMe=function(t,r,a){var n=Cy(t,a);return"".concat(n.slice(-1)==="Z"?n.slice(0,-1):n,"L").concat(Cy(r.reverse(),a).slice(1))},VY=function(t){var r=t.points,a=t.className,n=t.baseLinePoints,o=t.connectNulls,i=vMe(t,gMe);if(!r||!r.length)return null;var s=Me("recharts-polygon",a);if(n&&n.length){var l=i.stroke&&i.stroke!=="none",c=kMe(r,n,o);return Lm.default.createElement("g",{className:s},Lm.default.createElement("path",Tm({},Ne(i,!0),{fill:c.slice(-1)==="Z"?i.fill:"none",stroke:"none",d:c})),l?Lm.default.createElement("path",Tm({},Ne(i,!0),{fill:"none",d:Cy(r,o)})):null,l?Lm.default.createElement("path",Tm({},Ne(i,!0),{fill:"none",d:Cy(n,o)})):null)}var d=Cy(r,o);return Lm.default.createElement("path",Tm({},Ne(i,!0),{fill:d.slice(-1)==="Z"?i.fill:"none",className:s,d}))};var UY=R(Q());function GT(){return GT=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},GT.apply(this,arguments)}var Rs=function(t){var r=t.cx,a=t.cy,n=t.r,o=t.className,i=Me("recharts-dot",o);return r===+r&&a===+a&&n===+n?UY.createElement("circle",GT({},Ne(t,!1),Qu(t),{className:i,cx:r,cy:a,r:n})):null};var zY=R(Q());function ky(e){"@babel/helpers - typeof";return ky=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ky(e)}var NMe=["x","y","top","left","width","height","className"];function $T(){return $T=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},$T.apply(this,arguments)}function qY(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function IMe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qY(Object(r),!0).forEach(function(a){PMe(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qY(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function PMe(e,t,r){return t=EMe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EMe(e){var t=AMe(e,"string");return ky(t)=="symbol"?t:t+""}function AMe(e,t){if(ky(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(ky(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function LMe(e,t){if(e==null)return{};var r=TMe(e,t),a,n;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)a=o[n],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function TMe(e,t){if(e==null)return{};var r={};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;r[a]=e[a]}return r}var RMe=function(t,r,a,n,o,i){return"M".concat(t,",").concat(o,"v").concat(n,"M").concat(i,",").concat(r,"h").concat(a)},HY=function(t){var r=t.x,a=r===void 0?0:r,n=t.y,o=n===void 0?0:n,i=t.top,s=i===void 0?0:i,l=t.left,c=l===void 0?0:l,d=t.width,u=d===void 0?0:d,f=t.height,p=f===void 0?0:f,m=t.className,h=LMe(t,NMe),g=IMe({x:a,y:o,top:s,left:c,width:u,height:p},h);return!me(a)||!me(o)||!me(u)||!me(p)||!me(s)||!me(c)?null:zY.default.createElement("path",$T({},Ne(g,!0),{className:Me("recharts-cross",m),d:RMe(a,o,u,p,s,c)}))};var Os=R(Q()),eJ=R(GY()),tJ=R(KY()),rJ=R(ir());var UMe=["cx","cy","angle","ticks","axisLine"],qMe=["ticks","tick","angle","tickFormatter","stroke"];function Rm(e){"@babel/helpers - typeof";return Rm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rm(e)}function Ny(){return Ny=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},Ny.apply(this,arguments)}function XY(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function kd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
vendor: 4,231 bytes, line 168
168t%2?XY(Object(r),!0).forEach(function(a){K2(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):XY(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function YY(e,t){if(e==null)return{};var r=zMe(e,t),a,n;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)a=o[n],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function zMe(e,t){if(e==null)return{};var r={};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;r[a]=e[a]}return r}function HMe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JY(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,QY(a.key),a)}}function WMe(e,t,r){return t&&JY(e.prototype,t),r&&JY(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function GMe(e,t,r){return t=$2(t),$Me(e,ZY()?Reflect.construct(t,r||[],$2(e).constructor):t.apply(e,r))}function $Me(e,t){if(t&&(Rm(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return KMe(e)}function KMe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ZY(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ZY=function(){return!!e})()}function $2(e){return $2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},$2(e)}function XMe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&KT(e,t)}function KT(e,t){return KT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},KT(e,t)}function K2(e,t,r){return t=QY(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QY(e){var t=YMe(e,"string");return Rm(t)=="symbol"?t:t+""}function YMe(e,t){if(Rm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(Rm(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Iy=(function(e){function t(){return HMe(this,t),GMe(this,t,arguments)}return XMe(t,e),WMe(t,[{key:"getTickValueCoord",value:function(a){var n=a.coordinate,o=this.props,i=o.angle,s=o.cx,l=o.cy;return bt(s,l,n,i)}},{key:"getTickTextAnchor",value:function(){var a=this.props.orientation,n;switch(a){case"left":n="end";break;case"right":n="start";break;default:n="middle";break}return n}},{key:"getViewBox",value:function(){var a=this.props,n=a.cx,o=a.cy,i=a.angle,s=a.ticks,l=(0,eJ.default)(s,function(d){return d.coordinate||0}),c=(0,tJ.default)(s,function(d){return d.coordinate||0});return{cx:n,cy:o,startAngle:i,endAngle:i,innerRadius:c.coordinate||0,outerRadius:l.coordinate||0}}},{key:"renderAxisLine",value:function(){var a=this.props,n=a.cx,o=a.cy,i=a.angle,s=a.ticks,l=a.axisLine,c=YY(a,UMe),d=s.reduce(function(m,h){return[Math.min(m[0],h.coordinate),Math.max(m[1],h.coordinate)]},[1/0,-1/0]),u=bt(n,o,d[0],i),f=bt(n,o,d[1],i),p=kd(kd(kd({},Ne(c,!1)),{},{fill:"none"},Ne(l,!1)),{},{x1:u.x,y1:u.y,x2:f.x,y2:f.y});return Os.default.createElement("line",Ny({className:"recharts-polar-radius-axis-line"},p))}},{key:"renderTicks",value:function(){var a=this,n=this.props,o=n.ticks,i=n.tick,s=n.angle,l=n.tickFormatter,c=n.stroke,d=YY(n,qMe),u=this.getTickTextAnchor(),f=Ne(d,!1),p=Ne(i,!1),m=o.map(function(h,g){var y=a.getTickValueCoord(h),v=kd(kd(kd(kd({textAnchor:u,transform:"rotate(".concat(90-s,", ").concat(y.x,", ").concat(y.y,")")},f),{},{stroke:"none",fill:c},p),{},{index:g},y),{},{payload:h});return Os.default.createElement(Ke,Ny({className:Me("recharts-polar-radius-axis-tick",D2(i)),key:"tick-".concat(h.coordinate)}
168,mo(a.props,h,g)),t.renderTickItem(i,v,l?l(h.value,g):h.value))});return Os.default.createElement(Ke,{className:"recharts-polar-radius-axis-ticks"},m)}},{key:"render",value:function(){var a=this.props,n=a.ticks,o=a.axisLine,i=a.tick;return!n||!n.length?null:Os.default.createElement(Ke,{className:Me("recharts-polar-radius-axis",this.props.className)},o&&this.renderAxisLine(),i&&this.renderTicks(),cr.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(a,n,o){var i;return Os.default.isValidElement(a)?i=Os.default.cloneElement(a,n):(0,rJ.default)(a)?i=a(n):i=Os.default.createElement(go,Ny({},n,{className:"recharts-polar-radius-axis-tick-value"}),o),i}}])})(Os.PureComponent);K2(Iy,"displayName","PolarRadiusAxis");K2(Iy,"axisType","radiusAxis");K2(Iy,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});var si=R(Q()),lJ=R(ir());function Om(e){"@babel/helpers - typeof";return Om=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Om(e)}function Id(){return Id=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},Id.apply(this,arguments)}function aJ(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function Nd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?aJ(Object(r),!0).forEach(function(a){Y2(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aJ(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function JMe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nJ(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,sJ(a.key),a)}}function ZMe(e,t,r){return t&&nJ(e.prototype,t),r&&nJ(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function QMe(e,t,r){return t=X2(t),e4e(e,iJ()?Reflect.construct(t,r||[],X2(e).constructor):t.apply(e,r))}function e4e(e,t){if(t&&(Om(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return t4e(e)}function t4e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iJ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(iJ=function(){return!!e})()}function X2(e){return X2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},X2(e)}function r4e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&XT(e,t)}function XT(e,t){return XT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},XT(e,t)}function Y2(e,t,r){return t=sJ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sJ(e){var t=a4e(e,"string");return Om(t)=="symbol"?t:t+""}function a4e(e,t){if(Om(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(Om(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var n4e=Math.PI/180,oJ=1e-5,Py=(function(e){function t(){return JMe(this,t),QMe(this,t,arguments)}
168return r4e(t,e),ZMe(t,[{key:"getTickLineCoord",value:function(a){var n=this.props,o=n.cx,i=n.cy,s=n.radius,l=n.orientation,c=n.tickSize,d=c||8,u=bt(o,i,s,a.coordinate),f=bt(o,i,s+(l==="inner"?-1:1)*d,a.coordinate);return{x1:u.x,y1:u.y,x2:f.x,y2:f.y}}},{key:"getTickTextAnchor",value:function(a){var n=this.props.orientation,o=Math.cos(-a.coordinate*n4e),i;return o>oJ?i=n==="outer"?"start":"end":o<-oJ?i=n==="outer"?"end":"start":i="middle",i}},{key:"renderAxisLine",value:function(){var a=this.props,n=a.cx,o=a.cy,i=a.radius,s=a.axisLine,l=a.axisLineType,c=Nd(Nd({},Ne(this.props,!1)),{},{fill:"none"},Ne(s,!1));if(l==="circle")return si.default.createElement(Rs,Id({className:"recharts-polar-angle-axis-line"},c,{cx:n,cy:o,r:i}));var d=this.props.ticks,u=d.map(function(f){return bt(n,o,i,f.coordinate)});return si.default.createElement(VY,Id({className:"recharts-polar-angle-axis-line"},c,{points:u}))}},{key:"renderTicks",value:function(){var a=this,n=this.props,o=n.ticks,i=n.tick,s=n.tickLine,l=n.tickFormatter,c=n.stroke,d=Ne(this.props,!1),u=Ne(i,!1),f=Nd(Nd({},d),{},{fill:"none"},Ne(s,!1)),p=o.map(function(m,h){var g=a.getTickLineCoord(m),y=a.getTickTextAnchor(m),v=Nd(Nd(Nd({textAnchor:y},d),{},{stroke:"none",fill:c},u),{},{index:h,payload:m,x:g.x2,y:g.y2});return si.default.createElement(Ke,Id({className:Me("recharts-polar-angle-axis-tick",D2(i)),key:"tick-".concat(m.coordinate)},mo(a.props,m,h)),s&&si.default.createElement("line",Id({className:"recharts-polar-angle-axis-tick-line"},f,g)),i&&t.renderTickItem(i,v,l?l(m.value,h):m.value))});return si.default.createElement(Ke,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var a=this.props,n=a.ticks,o=a.radius,i=a.axisLine;return o<=0||!n||!n.length?null:si.default.createElement(Ke,{className:Me("recharts-polar-angle-axis",this.props.className)},i&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(a,n,o){var i;return si.default.isValidElement(a)?i=si.default.cloneElement(a,n):(0,lJ.default)(a)?i=a(n):i=si.default.createElement(go,Id({},n,{className:"recharts-polar-angle-axis-tick-value"}),o),i}}])})(si.PureComponent);Y2(Py,"displayName","PolarAngleAxis");Y2(Py,"axisType","angleAxis");Y2(Py,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var _a=R(Q());var RJ=R(Ac()),OJ=R(xd()),Pd=R(qn()),Mm=R(ir());var So=R(Q()),CJ=R(ir()),kJ=R(pJ()),NJ=R(hJ()),IJ=R(xd());var li=R(Q());function Ey(e){"@babel/helpers - typeof";return Ey=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ey(e)}function J2(){return J2=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},J2.apply(this,arguments)}function x4e(e,t){return k4e(e)||C4e(e,t)||S4e(e,t)||w4e()}function w4e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 169In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function S4e(e,t){if(e){if(typeof e=="string")return gJ(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gJ(e,t)}}function gJ(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function C4e(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a,n,o,i,s=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(a=o.call(r)).done)&&(s.push(a.value),s.length!==t);l=!0);}catch(d){c=!0,n=d}finally{try{if(!l&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw n}}return s}}function k4e(e){if(Array.isArray(e))return e}function vJ(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function yJ(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
169t%2?vJ(Object(r),!0).forEach(function(a){N4e(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vJ(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function N4e(e,t,r){return t=I4e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I4e(e){var t=P4e(e,"string");return Ey(t)=="symbol"?t:t+""}function P4e(e,t){if(Ey(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(Ey(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var bJ=function(t,r,a,n,o){var i=a-n,s;return s="M ".concat(t,",").concat(r),s+="L ".concat(t+a,",").concat(r),s+="L ".concat(t+a-i/2,",").concat(r+o),s+="L ".concat(t+a-i/2-n,",").concat(r+o),s+="L ".concat(t,",").concat(r," Z"),s},E4e={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},xJ=function(t){var r=yJ(yJ({},E4e),t),a=(0,li.useRef)(),n=(0,li.useState)(-1),o=x4e(n,2),i=o[0],s=o[1];(0,li.useEffect)(function(){if(a.current&&a.current.getTotalLength)try{var x=a.current.getTotalLength();x&&s(x)}catch{}},[]);var l=r.x,c=r.y,d=r.upperWidth,u=r.lowerWidth,f=r.height,p=r.className,m=r.animationEasing,h=r.animationDuration,g=r.animationBegin,y=r.isUpdateAnimationActive;if(l!==+l||c!==+c||d!==+d||u!==+u||f!==+f||d===0&&u===0||f===0)return null;var v=Me("recharts-trapezoid",p);return y?li.default.createElement(Gn,{canBegin:i>0,from:{upperWidth:0,lowerWidth:0,height:f,x:l,y:c},to:{upperWidth:d,lowerWidth:u,height:f,x:l,y:c},duration:h,animationEasing:m,isActive:y},function(x){var S=x.upperWidth,b=x.lowerWidth,w=x.height,k=x.x,C=x.y;return li.default.createElement(Gn,{canBegin:i>0,from:"0px ".concat(i===-1?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:h,easing:m},li.default.createElement("path",J2({},Ne(r,!0),{className:v,d:bJ(k,C,S,b,w),ref:a})))}):li.default.createElement("g",null,li.default.createElement("path",J2({},Ne(r,!0),{className:v,d:bJ(l,c,d,u,f)})))};var A4e=["option","shapeType","propTransformer","activeClassName","isActive"];function Ay(e){"@babel/helpers - typeof";return Ay=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ay(e)}function L4e(e,t){if(e==null)return{};var r=T4e(e,t),a,n;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)a=o[n],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function T4e(e,t){if(e==null)return{};var r={};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;r[a]=e[a]}return r}function wJ(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function Z2(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wJ(Object(r),!0).forEach(function(a){R4e(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wJ(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function R4e(e,t,r){return t=O4e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function O4e(e){var t=D4e(e,"string");return Ay(t)=="symbol"?t:t+""}function D4e(e,t){if(Ay(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(Ay(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function M4e(e,t){return Z2(Z2({},t),e)}function _4e(e,t){return e==="symbols"}function SJ(e){var t=e.shapeType,r=e.elementProps;
169switch(t){case"rectangle":return So.default.createElement(Am,r);case"trapezoid":return So.default.createElement(xJ,r);case"sector":return So.default.createElement(j2,r);case"symbols":if(_4e(t,r))return So.default.createElement(gv,r);break;default:return null}}function F4e(e){return(0,So.isValidElement)(e)?e.props:e}function Q2(e){var t=e.option,r=e.shapeType,a=e.propTransformer,n=a===void 0?M4e:a,o=e.activeClassName,i=o===void 0?"recharts-active-shape":o,s=e.isActive,l=L4e(e,A4e),c;if((0,So.isValidElement)(t))c=(0,So.cloneElement)(t,Z2(Z2({},l),F4e(t)));else if((0,CJ.default)(t))c=t(l);else if((0,kJ.default)(t)&&!(0,NJ.default)(t)){var d=n(t,l);c=So.default.createElement(SJ,{shapeType:r,elementProps:d})}else{var u=l;c=So.default.createElement(SJ,{shapeType:r,elementProps:u})}return s?So.default.createElement(Ke,{className:i},c):c}function Ly(e,t){return t!=null&&"trapezoids"in e.props}function Ty(e,t){return t!=null&&"sectors"in e.props}function Dm(e,t){return t!=null&&"points"in e.props}function j4e(e,t){var r,a,n=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,o=e.y===(t==null||(a=t.labelViewBox)===null||a===void 0?void 0:a.y)||e.y===t.y;return n&&o}function B4e(e,t){var r=e.endAngle===t.endAngle,a=e.startAngle===t.startAngle;return r&&a}function V4e(e,t){var r=e.x===t.x,a=e.y===t.y,n=e.z===t.z;return r&&a&&n}function U4e(e,t){var r;return Ly(e,t)?r=j4e:Ty(e,t)?r=B4e:Dm(e,t)&&(r=V4e),r}function q4e(e,t){var r;return Ly(e,t)?r="trapezoids":Ty(e,t)?r="sectors":Dm(e,t)&&(r="points"),r}function z4e(e,t){if(Ly(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}if(Ty(e,t)){var a;return(a=t.tooltipPayload)===null||a===void 0||(a=a[0])===null||a===void 0||(a=a.payload)===null||a===void 0?void 0:a.payload}return Dm(e,t)?t.payload:{}}function PJ(e){var t=e.activeTooltipItem,r=e.graphicalItem,a=e.itemData,n=q4e(r,t),o=z4e(r,t),i=a.filter(function(l,c){var d=(0,IJ.default)(o,l),u=r.props[n].filter(function(m){var h=U4e(r,t);return h(m,t)}),f=r.props[n].indexOf(u[u.length-1]),p=c===f;return d&&p}),s=a.indexOf(i[i.length-1]);return s}var eC;function Fm(e){"@babel/helpers - typeof";return Fm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fm(e)}function _m(){return _m=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},_m.apply(this,arguments)}function EJ(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function Yt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?EJ(Object(r),!0).forEach(function(a){ci(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):EJ(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function H4e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function AJ(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,TJ(a.key),a)}}function W4e(e,t,r){return t&&AJ(e.prototype,t),r&&AJ(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function G4e(e,t,r){return t=tC(t),$4e(e,LJ()?Reflect.construct(t,r||[],tC(e).constructor):t.apply(e,r))}function $4e(e,t){if(t&&(Fm(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return K4e(e)}function K4e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function LJ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(LJ=function(){return!!e})()}
169function tC(e){return tC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},tC(e)}function X4e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&YT(e,t)}function YT(e,t){return YT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},YT(e,t)}function ci(e,t,r){return t=TJ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TJ(e){var t=Y4e(e,"string");return Fm(t)=="symbol"?t:t+""}function Y4e(e,t){if(Fm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(Fm(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $n=(function(e){function t(r){var a;return H4e(this,t),a=G4e(this,t,[r]),ci(a,"pieRef",null),ci(a,"sectorRefs",[]),ci(a,"id",zn("recharts-pie-")),ci(a,"handleAnimationEnd",function(){var n=a.props.onAnimationEnd;a.setState({isAnimationFinished:!0}),(0,Mm.default)(n)&&n()}),ci(a,"handleAnimationStart",function(){var n=a.props.onAnimationStart;a.setState({isAnimationFinished:!1}),(0,Mm.default)(n)&&n()}),a.state={isAnimationFinished:!r.isAnimationActive,prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,sectorToFocus:0},a}return X4e(t,e),W4e(t,[{key:"isActiveIndex",value:function(a){var n=this.props.activeIndex;return Array.isArray(n)?n.indexOf(a)!==-1:a===n}},{key:"hasActiveIndex",value:function(){var a=this.props.activeIndex;return Array.isArray(a)?a.length!==0:a||a===0}},{key:"renderLabels",value:function(a){var n=this.props.isAnimationActive;if(n&&!this.state.isAnimationFinished)return null;var o=this.props,i=o.label,s=o.labelLine,l=o.dataKey,c=o.valueKey,d=Ne(this.props,!1),u=Ne(i,!1),f=Ne(s,!1),p=i&&i.offsetRadius||20,m=a.map(function(h,g){var y=(h.startAngle+h.endAngle)/2,v=bt(h.cx,h.cy,h.outerRadius+p,y),x=Yt(Yt(Yt(Yt({},d),h),{},{stroke:"none"},u),{},{index:g,textAnchor:t.getTextAnchor(v.x,h.cx)},v),S=Yt(Yt(Yt(Yt({},d),h),{},{fill:"none",stroke:h.fill},f),{},{index:g,points:[bt(h.cx,h.cy,h.outerRadius,y),v]}),b=l;return(0,Pd.default)(l)&&(0,Pd.default)(c)?b="value":(0,Pd.default)(l)&&(b=c),_a.default.createElement(Ke,{key:"label-".concat(h.startAngle,"-").concat(h.endAngle,"-").concat(h.midAngle,"-").concat(g)},s&&t.renderLabelLineItem(s,S,"line"),t.renderLabelItem(i,x,Ht(h,b)))});return _a.default.createElement(Ke,{className:"recharts-pie-labels"},m)}},{key:"renderSectorsStatically",value:function(a){var n=this,o=this.props,i=o.activeShape,s=o.blendStroke,l=o.inactiveShape;return a.map(function(c,d){if(c?.startAngle===0&&c?.endAngle===0&&a.length!==1)return null;var u=n.isActiveIndex(d),f=l&&n.hasActiveIndex()?l:null,p=u?i:f,m=Yt(Yt({},c),{},{stroke:s?c.fill:c.stroke,tabIndex:-1});return _a.default.createElement(Ke,_m({ref:function(g){g&&!n.sectorRefs.includes(g)&&n.sectorRefs.push(g)},tabIndex:-1,className:"recharts-pie-sector"},mo(n.props,c,d),{key:"sector-".concat(c?.startAngle,"-").concat(c?.endAngle,"-").concat(c.midAngle,"-").concat(d)}),_a.default.createElement(Q2,_m({option:p,isActive:u,shapeType:"sector"},m)))})}},{key:"renderSectorsWithAnimation",value:function(){var a=this,n=this.props,o=n.sectors,i=n.isAnimationActive,s=n.animationBegin,l=n.animationDuration,c=n.animationEasing,d=n.animationId,u=this.state,f=u.prevSectors,p=u.prevIsAnimationActive;return _a.default.createElement(Gn,{begin:s,duration:l,isActive:i,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(d,"-").concat(p),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(m){var h=m.t,g=[],y=o&&o[0],v=y.startAngle;return o.forEach(function(x,S){var b=f&&f[S],w=S>0?(0,RJ.default)(x,"paddingAngle",0):0;if(b){var k=Er(b.endAngle-b.startAngle,x.endAngle-x.startAngle),C=Yt(Yt({},x),{},{startAngle:v+w,endAngle:v+k(h)+w});g.push(C),v=C.endAngle}else{var N=x.endAngle,E=x.startAngle,L=Er(0,N-E),T=L(h),q=Yt(Yt({},x),{},{startAngle:v+w,endAngle:v+T+w});g.push(q),v=q.endAngle}}),_a.default.createElement(Ke,null,a.renderSectorsStatically(g))})}},{key:"attachKeyboardHandlers",value:function(a){var n=this;
169a.onkeydown=function(o){if(!o.altKey)switch(o.key){case"ArrowLeft":{var i=++n.state.sectorToFocus%n.sectorRefs.length;n.sectorRefs[i].focus(),n.setState({sectorToFocus:i});break}case"ArrowRight":{var s=--n.state.sectorToFocus<0?n.sectorRefs.length-1:n.state.sectorToFocus%n.sectorRefs.length;n.sectorRefs[s].focus(),n.setState({sectorToFocus:s});break}case"Escape":{n.sectorRefs[n.state.sectorToFocus].blur(),n.setState({sectorToFocus:0});break}default:}}}},{key:"renderSectors",value:function(){var a=this.props,n=a.sectors,o=a.isAnimationActive,i=this.state.prevSectors;return o&&n&&n.length&&(!i||!(0,OJ.default)(i,n))?this.renderSectorsWithAnimation():this.renderSectorsStatically(n)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var a=this,n=this.props,o=n.hide,i=n.sectors,s=n.className,l=n.label,c=n.cx,d=n.cy,u=n.innerRadius,f=n.outerRadius,p=n.isAnimationActive,m=this.state.isAnimationFinished;if(o||!i||!i.length||!me(c)||!me(d)||!me(u)||!me(f))return null;var h=Me("recharts-pie",s);return _a.default.createElement(Ke,{tabIndex:this.props.rootTabIndex,className:h,ref:function(y){a.pieRef=y}},this.renderSectors(),l&&this.renderLabels(i),cr.renderCallByParent(this.props,null,!1),(!p||m)&&Wn.renderCallByParent(this.props,i,!1))}}],[{key:"getDerivedStateFromProps",value:function(a,n){return n.prevIsAnimationActive!==a.isAnimationActive?{prevIsAnimationActive:a.isAnimationActive,prevAnimationId:a.animationId,curSectors:a.sectors,prevSectors:[],isAnimationFinished:!0}:a.isAnimationActive&&a.animationId!==n.prevAnimationId?{prevAnimationId:a.animationId,curSectors:a.sectors,prevSectors:n.curSectors,isAnimationFinished:!0}:a.sectors!==n.curSectors?{curSectors:a.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(a,n){return a>n?"start":a<n?"end":"middle"}},{key:"renderLabelLineItem",value:function(a,n,o){if(_a.default.isValidElement(a))return _a.default.cloneElement(a,n);if((0,Mm.default)(a))return a(n);var i=Me("recharts-pie-label-line",typeof a!="boolean"?a.className:"");return _a.default.createElement(Vi,_m({},n,{key:o,type:"linear",className:i}))}},{key:"renderLabelItem",value:function(a,n,o){if(_a.default.isValidElement(a))return _a.default.cloneElement(a,n);var i=o;if((0,Mm.default)(a)&&(i=a(n),_a.default.isValidElement(i)))return i;var s=Me("recharts-pie-label-text",typeof a!="boolean"&&!(0,Mm.default)(a)?a.className:"");return _a.default.createElement(go,_m({},n,{alignmentBaseline:"middle",className:s}),i)}}])})(_a.PureComponent);eC=$n;ci($n,"displayName","Pie");ci($n,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!la.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});ci($n,"parseDeltaAngle",function(e,t){var r=Vr(t-e),a=Math.min(Math.abs(t-e),360);return r*a});ci($n,"getRealPieData",function(e){var t=e.data,r=e.children,a=Ne(e,!1),n=qr(r,Ns);return t&&t.length?t.map(function(o,i){return Yt(Yt(Yt({payload:o},a),o),n&&n[i]&&n[i].props)}):n&&n.length?n.map(function(o){return Yt(Yt({},a),o.props)}):[]});ci($n,"parseCoordinateOfPie",function(e,t){var r=t.top,a=t.left,n=t.width,o=t.height,i=IT(n,o),s=a+Ur(e.cx,n,n/2),l=r+Ur(e.cy,o,o/2),c=Ur(e.innerRadius,i,0),d=Ur(e.outerRadius,i,i*.8),u=e.maxRadius||Math.sqrt(n*n+o*o)/2;return{cx:s,cy:l,innerRadius:c,outerRadius:d,maxRadius:u}});ci($n,"getComposedData",function(e){var t=e.item,r=e.offset,a=t.type.defaultProps!==void 0?Yt(Yt({},t.type.defaultProps),t.props):t.props,n=eC.getRealPieData(a);if(!n||!n.length)return null;var o=a.cornerRadius,i=a.startAngle,s=a.endAngle,l=a.paddingAngle,c=a.dataKey,d=a.nameKey,u=a.valueKey,f=a.tooltipType,p=Math.abs(a.minAngle),m=eC.parseCoordinateOfPie(a,r),h=eC.parseDeltaAngle(i,s),g=Math.abs(h),y=c;(0,Pd.default)(c)&&(0,Pd.default)(u)?(ka(!1,`Use "dataKey" to specify the value of pie,
170 the props "valueKey" will be deprecated in 1.1.0`),y="value"):(0,Pd.default)(c)&&(ka(!1,`Use "dataKey" to specify the value of pie, 171 the props "valueKey" will be deprecated in 1.1.0`),y=u);var v=n.filter(function(C){return Ht(C,y,0)!==0}).length,x=(g>=360?v:v-1)*l,S=g-v*p-x,b=n.reduce(function(C,N){var E=Ht(N,y,0);return C+(me(E)?E:0)},0),w;if(b>0){var k;w=n.map(function(C,N){var E=Ht(C,y,0),L=Ht(C,d,N),T=(me(E)?E:0)/b,q;N?q=k.endAngle+Vr(h)*l*(E!==0?1:0):q=i;var _=q+Vr(h)*((E!==0?p:0)+T*S),B=(q+_)/2,I=(m.innerRadius+m.outerRadius)/2,A=[{name:L,value:E,payload:C,dataKey:y,type:f}],M=bt(m.cx,m.cy,I,B);return k=Yt(Yt(Yt({percent:T,cornerRadius:o,name:L,tooltipPayload:A,midAngle:B,middleRadius:I,tooltipPosition:M},C),m),{},{value:Ht(C,y),startAngle:q,endAngle:_,payload:C,paddingAngle:Vr(h)*l}),k})}return Yt(Yt({},m),{},{sectors:w,data:n})});var Hr=R(Q());var rR=R(ir()),YJ=R(QT());function Ry(e){"@babel/helpers - typeof";return Ry=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ry(e)}function UJ(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function qJ(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?UJ(Object(r),!0).forEach(function(a){zJ(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):UJ(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function zJ(e,t,r){return t=l_e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l_e(e){var t=c_e(e,"string");return Ry(t)=="symbol"?t:t+""}function c_e(e,t){if(Ry(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(Ry(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var u_e=["Webkit","Moz","O","ms"],HJ=function(t,r){if(!t)return null;var a=t.replace(/(\w)/,function(o){return o.toUpperCase()}),n=u_e.reduce(function(o,i){return qJ(qJ({},o),{},zJ({},i+a,r))},{});return n[t]=r,n};function jm(e){"@babel/helpers - typeof";return jm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jm(e)}function rC(){return rC=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},rC.apply(this,arguments)}function WJ(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function eR(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?WJ(Object(r),!0).forEach(function(a){Co(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):WJ(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function d_e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GJ(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,XJ(a.key),a)}}function f_e(e,t,r){return t&&GJ(e.prototype,t),r&&GJ(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function p_e(e,t,r){return t=aC(t),m_e(e,KJ()?Reflect.construct(t,r||[],aC(e).constructor):t.apply(e,r))}function m_e(e,t){if(t&&(jm(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return h_e(e)}function h_e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function KJ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(KJ=function(){return!!e})()}
vendor: 4,828 bytes, line 171
171function aC(e){return aC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},aC(e)}function g_e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tR(e,t)}function tR(e,t){return tR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},tR(e,t)}function Co(e,t,r){return t=XJ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XJ(e){var t=v_e(e,"string");return jm(t)=="symbol"?t:t+""}function v_e(e,t){if(jm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(jm(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var y_e=function(t){var r=t.data,a=t.startIndex,n=t.endIndex,o=t.x,i=t.width,s=t.travellerWidth;if(!r||!r.length)return{};var l=r.length,c=Dc().domain((0,YJ.default)(0,l)).range([o,o+i-s]),d=c.domain().map(function(u){return c(u)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(a),endX:c(n),scale:c,scaleValues:d}},$J=function(t){return t.changedTouches&&!!t.changedTouches.length},Ed=(function(e){function t(r){var a;return d_e(this,t),a=p_e(this,t,[r]),Co(a,"handleDrag",function(n){a.leaveTimer&&(clearTimeout(a.leaveTimer),a.leaveTimer=null),a.state.isTravellerMoving?a.handleTravellerMove(n):a.state.isSlideMoving&&a.handleSlideDrag(n)}),Co(a,"handleTouchMove",function(n){n.changedTouches!=null&&n.changedTouches.length>0&&a.handleDrag(n.changedTouches[0])}),Co(a,"handleDragEnd",function(){a.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var n=a.props,o=n.endIndex,i=n.onDragEnd,s=n.startIndex;i?.({endIndex:o,startIndex:s})}),a.detachDragEndListener()}),Co(a,"handleLeaveWrapper",function(){(a.state.isTravellerMoving||a.state.isSlideMoving)&&(a.leaveTimer=window.setTimeout(a.handleDragEnd,a.props.leaveTimeOut))}),Co(a,"handleEnterSlideOrTraveller",function(){a.setState({isTextActive:!0})}),Co(a,"handleLeaveSlideOrTraveller",function(){a.setState({isTextActive:!1})}),Co(a,"handleSlideDragStart",function(n){var o=$J(n)?n.changedTouches[0]:n;a.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:o.pageX}),a.attachDragEndListener()}),a.travellerDragStartHandlers={startX:a.handleTravellerDragStart.bind(a,"startX"),endX:a.handleTravellerDragStart.bind(a,"endX")},a.state={},a}return g_e(t,e),f_e(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(a){var n=a.startX,o=a.endX,i=this.state.scaleValues,s=this.props,l=s.gap,c=s.data,d=c.length-1,u=Math.min(n,o),f=Math.max(n,o),p=t.getIndexInRange(i,u),m=t.getIndexInRange(i,f);return{startIndex:p-p%l,endIndex:m===d?d:m-m%l}}},{key:"getTextOfTick",value:function(a){var n=this.props,o=n.data,i=n.tickFormatter,s=n.dataKey,l=Ht(o[a],s,a);return(0,rR.default)(i)?i(l,a):l}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(a){var n=this.state,o=n.slideMoveStartX,i=n.startX,s=n.endX,l=this.props,c=l.x,d=l.width,u=l.travellerWidth,f=l.startIndex,p=l.endIndex,m=l.onChange,h=a.pageX-o;h>0?h=Math.min(h,c+d-u-s,c+d-u-i):h<0&&(h=Math.max(h,c-i,c-s));var g=this.getIndex({startX:i+h,endX:s+h});(g.startIndex!==f||g.endIndex!==p)&&m&&m(g),this.setState({startX:i+h,endX:s+h,slideMoveStartX:a.pageX})}},{key:"handleTravellerDragStart",value:function(a,n){var o=$J(n)?n.changedTouches[0]:n;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:a,brushMoveStartX:o.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(a){var n=this.state,o=n.brushMoveStartX,i=n.movingTravellerId,s=n.endX,l=n.startX,c=this.state[i],d=this.props,u=d.x,f=d.width,p=d.travellerWidth,m=d.onChange,h=d.gap,g=d.data,y={startX:this.state.startX,endX:this.state.endX},v=a.pageX-o;v>0?v=Math.min(v,u+f-p-c):v<0&&(v=Math.max(v,u-c)),y[i]=c+v;var x=this.getIndex(y),S=x.startIndex,b=x.endIndex,w=function(){var C=g.length-1;return i==="startX"&&(s>l?S%h===0:b%h===0)||s<l&&b===C||i==="endX"&&(s>l?b%h===0:S%h===0)||s>l&&b===C}
171;this.setState(Co(Co({},i,c+v),"brushMoveStartX",a.pageX),function(){m&&w()&&m(x)})}},{key:"handleTravellerMoveKeyboard",value:function(a,n){var o=this,i=this.state,s=i.scaleValues,l=i.startX,c=i.endX,d=this.state[n],u=s.indexOf(d);if(u!==-1){var f=u+a;if(!(f===-1||f>=s.length)){var p=s[f];n==="startX"&&p>=c||n==="endX"&&p<=l||this.setState(Co({},n,p),function(){o.props.onChange(o.getIndex({startX:o.state.startX,endX:o.state.endX}))})}}}},{key:"renderBackground",value:function(){var a=this.props,n=a.x,o=a.y,i=a.width,s=a.height,l=a.fill,c=a.stroke;return Hr.default.createElement("rect",{stroke:c,fill:l,x:n,y:o,width:i,height:s})}},{key:"renderPanorama",value:function(){var a=this.props,n=a.x,o=a.y,i=a.width,s=a.height,l=a.data,c=a.children,d=a.padding,u=Hr.Children.only(c);return u?Hr.default.cloneElement(u,{x:n,y:o,width:i,height:s,margin:d,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(a,n){var o,i,s=this,l=this.props,c=l.y,d=l.travellerWidth,u=l.height,f=l.traveller,p=l.ariaLabel,m=l.data,h=l.startIndex,g=l.endIndex,y=Math.max(a,this.props.x),v=eR(eR({},Ne(this.props,!1)),{},{x:y,y:c,width:d,height:u}),x=p||"Min value: ".concat((o=m[h])===null||o===void 0?void 0:o.name,", Max value: ").concat((i=m[g])===null||i===void 0?void 0:i.name);return Hr.default.createElement(Ke,{tabIndex:0,role:"slider","aria-label":x,"aria-valuenow":a,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[n],onTouchStart:this.travellerDragStartHandlers[n],onKeyDown:function(b){["ArrowLeft","ArrowRight"].includes(b.key)&&(b.preventDefault(),b.stopPropagation(),s.handleTravellerMoveKeyboard(b.key==="ArrowRight"?1:-1,n))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(f,v))}},{key:"renderSlide",value:function(a,n){var o=this.props,i=o.y,s=o.height,l=o.stroke,c=o.travellerWidth,d=Math.min(a,n)+c,u=Math.max(Math.abs(n-a)-c,0);return Hr.default.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:l,fillOpacity:.2,x:d,y:i,width:u,height:s})}},{key:"renderText",value:function(){var a=this.props,n=a.startIndex,o=a.endIndex,i=a.y,s=a.height,l=a.travellerWidth,c=a.stroke,d=this.state,u=d.startX,f=d.endX,p=5,m={pointerEvents:"none",fill:c};return Hr.default.createElement(Ke,{className:"recharts-brush-texts"},Hr.default.createElement(go,rC({textAnchor:"end",verticalAnchor:"middle",x:Math.min(u,f)-p,y:i+s/2},m),this.getTextOfTick(n)),Hr.default.createElement(go,rC({textAnchor:"start",verticalAnchor:"middle",x:Math.max(u,f)+l+p,y:i+s/2},m),this.getTextOfTick(o)))}},{key:"render",value:function(){var a=this.props,n=a.data,o=a.className,i=a.children,s=a.x,l=a.y,c=a.width,d=a.height,u=a.alwaysShowText,f=this.state,p=f.startX,m=f.endX,h=f.isTextActive,g=f.isSlideMoving,y=f.isTravellerMoving,v=f.isTravellerFocused;if(!n||!n.length||!me(s)||!me(l)||!me(c)||!me(d)||c<=0||d<=0)return null;var x=Me("recharts-brush",o),S=Hr.default.Children.count(i)===1,b=HJ("userSelect","none");return Hr.default.createElement(Ke,{className:x,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:b},this.renderBackground(),S&&this.renderPanorama(),this.renderSlide(p,m),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(m,"endX"),(h||g||y||v||u)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(a){var n=a.x,o=a.y,i=a.width,s=a.height,l=a.stroke,c=Math.floor(o+s/2)-1;return Hr.default.createElement(Hr.default.Fragment,null,Hr.default.createElement("rect",{x:n,y:o,width:i,height:s,fill:l,stroke:"none"}),Hr.default.createElement("line",{x1:n+1,y1:c,x2:n+i-1,y2:c,fill:"none",stroke:"#fff"}),Hr.default.createElement("line",{x1:n+1,y1:c+2,x2:n+i-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(a,n){var o;return Hr.default.isValidElement(a)?o=Hr.default.cloneElement(a,n):(0,rR.default)(a)?o=a(n):o=t.renderDefaultTraveller(n),o}},{key:"getDerivedStateFromProps",value:function(a,n){var o=a.data,i=a.width,s=a.x,l=a.travellerWidth,c=a.updateId,d=a.startIndex,u=a.endIndex;if(o!==n.prevData||c!==n.prevUpdateId)return eR({prevData:o,prevTravellerWidth:l,prevUpdateId:c,prevX:s,prevWidth:i},o&&o.length?y_e({data:o,width:i,x:s,travellerWidth:l,startIndex:d,endIndex:u}):{scale:null,scaleValues:null});if(n.scale&&(i!==n.prevWidth||s!==n.prevX||l!==n.prevTravellerWidth)){n.scale.range([s,s+i-l]);var f=n.scale.domain().map(function(p){return n.scale(p)});return{prevData:o,prevTravellerWidth:l,prevUpdateId:c,prevX:s,prevWidth:i,startX:n.scale(a.startIndex),endX:n.scale(a.endIndex),scaleValues:f}}return null}},{key:"getIndexInRange",value:function(a,n){for(var o=a.length,i=0,s=o-1;s-i>1;){var l=Math.floor((i+s)/2);a[l]>n?s=l:i=l}return n>=a[s]?s:i}}])})(Hr.PureComponent);Co(Ed,"displayName","Brush");Co(Ed,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var Ad=R(Q()),aQ=R(ir()),nQ=R(eZ());var Kn=function(t,r){var a=t.alwaysShow,n=t.ifOverflow;return a&&(n="extendDomain"),n===r};var kZ=R(oZ()),NZ=R(aR());var Cn=R(Q());var bZ=R(xd()),xZ=R(qn());var fZ=R(Q());var U_e=["x","y"];function Dy(e){"@babel/helpers - typeof";return Dy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dy(e)}function nR(){return nR=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},nR.apply(this,arguments)}function dZ(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function Oy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
171t%2?dZ(Object(r),!0).forEach(function(a){q_e(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dZ(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function q_e(e,t,r){return t=z_e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function z_e(e){var t=H_e(e,"string");return Dy(t)=="symbol"?t:t+""}function H_e(e,t){if(Dy(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(Dy(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function W_e(e,t){if(e==null)return{};var r=G_e(e,t),a,n;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)a=o[n],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function G_e(e,t){if(e==null)return{};var r={};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;r[a]=e[a]}return r}function $_e(e,t){var r=e.x,a=e.y,n=W_e(e,U_e),o="".concat(r),i=parseInt(o,10),s="".concat(a),l=parseInt(s,10),c="".concat(t.height||n.height),d=parseInt(c,10),u="".concat(t.width||n.width),f=parseInt(u,10);return Oy(Oy(Oy(Oy(Oy({},t),n),i?{x:i}:{}),l?{y:l}:{}),{},{height:d,width:f,name:t.name,radius:t.radius})}function oR(e){return fZ.default.createElement(Q2,nR({shapeType:"rectangle",propTransformer:$_e,activeClassName:"recharts-active-bar"},e))}var pZ=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(a,n){if(typeof t=="number")return t;var o=me(a)||I8(a);return o?t(a,n):(o||so(!1),r)}};var K_e=["value","background"],gZ;function Bm(e){"@babel/helpers - typeof";return Bm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bm(e)}function X_e(e,t){if(e==null)return{};var r=Y_e(e,t),a,n;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)a=o[n],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function Y_e(e,t){if(e==null)return{};var r={};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;r[a]=e[a]}return r}function nC(){return nC=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},nC.apply(this,arguments)}function mZ(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function Qr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mZ(Object(r),!0).forEach(function(a){qc(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mZ(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function J_e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hZ(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,yZ(a.key),a)}}function Z_e(e,t,r){return t&&hZ(e.prototype,t),r&&hZ(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Q_e(e,t,r){return t=oC(t),e3e(e,vZ()?Reflect.construct(t,r||[],oC(e).constructor):t.apply(e,r))}function e3e(e,t){if(t&&(Bm(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return t3e(e)}function t3e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vZ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(vZ=function(){return!!e})()}
171function oC(e){return oC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},oC(e)}function r3e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&iR(e,t)}function iR(e,t){return iR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},iR(e,t)}function qc(e,t,r){return t=yZ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yZ(e){var t=a3e(e,"string");return Bm(t)=="symbol"?t:t+""}function a3e(e,t){if(Bm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(Bm(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var kn=(function(e){function t(){var r;J_e(this,t);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return r=Q_e(this,t,[].concat(n)),qc(r,"state",{isAnimationFinished:!1}),qc(r,"id",zn("recharts-bar-")),qc(r,"handleAnimationEnd",function(){var i=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),i&&i()}),qc(r,"handleAnimationStart",function(){var i=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),i&&i()}),r}return r3e(t,e),Z_e(t,[{key:"renderRectanglesStatically",value:function(a){var n=this,o=this.props,i=o.shape,s=o.dataKey,l=o.activeIndex,c=o.activeBar,d=Ne(this.props,!1);return a&&a.map(function(u,f){var p=f===l,m=p?c:i,h=Qr(Qr(Qr({},d),u),{},{isActive:p,option:m,index:f,dataKey:s,onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd});return Cn.default.createElement(Ke,nC({className:"recharts-bar-rectangle"},mo(n.props,u,f),{key:"rectangle-".concat(u?.x,"-").concat(u?.y,"-").concat(u?.value,"-").concat(f)}),Cn.default.createElement(oR,h))})}},{key:"renderRectanglesWithAnimation",value:function(){var a=this,n=this.props,o=n.data,i=n.layout,s=n.isAnimationActive,l=n.animationBegin,c=n.animationDuration,d=n.animationEasing,u=n.animationId,f=this.state.prevData;return Cn.default.createElement(Gn,{begin:l,duration:c,isActive:s,easing:d,from:{t:0},to:{t:1},key:"bar-".concat(u),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var m=p.t,h=o.map(function(g,y){var v=f&&f[y];if(v){var x=Er(v.x,g.x),S=Er(v.y,g.y),b=Er(v.width,g.width),w=Er(v.height,g.height);return Qr(Qr({},g),{},{x:x(m),y:S(m),width:b(m),height:w(m)})}if(i==="horizontal"){var k=Er(0,g.height),C=k(m);return Qr(Qr({},g),{},{y:g.y+g.height-C,height:C})}var N=Er(0,g.width),E=N(m);return Qr(Qr({},g),{},{width:E})});return Cn.default.createElement(Ke,null,a.renderRectanglesStatically(h))})}},{key:"renderRectangles",value:function(){var a=this.props,n=a.data,o=a.isAnimationActive,i=this.state.prevData;return o&&n&&n.length&&(!i||!(0,bZ.default)(i,n))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(n)}},{key:"renderBackground",value:function(){var a=this,n=this.props,o=n.data,i=n.dataKey,s=n.activeIndex,l=Ne(this.props.background,!1);return o.map(function(c,d){var u=c.value,f=c.background,p=X_e(c,K_e);if(!f)return null;var m=Qr(Qr(Qr(Qr(Qr({},p),{},{fill:"#eee"},f),l),mo(a.props,c,d)),{},{onAnimationStart:a.handleAnimationStart,onAnimationEnd:a.handleAnimationEnd,dataKey:i,index:d,className:"recharts-bar-background-rectangle"});return Cn.default.createElement(oR,nC({key:"background-bar-".concat(d),option:a.props.background,isActive:d===s},m))})}},{key:"renderErrorBar",value:function(a,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,i=o.data,s=o.xAxis,l=o.yAxis,c=o.layout,d=o.children,u=qr(d,Vc);if(!u)return null;var f=c==="vertical"?i[0].height/2:i[0].width/2,p=function(g,y){var v=Array.isArray(g.value)?g.value[1]:g.value;return{x:g.x,y:g.y,value:v,errorVal:Ht(g,y)}},m={clipPath:a?"url(#clipPath-".concat(n,")"):null};return Cn.default.createElement(Ke,m,u.map(function(h){return Cn.default.cloneElement(h,{key:"error-bar-".concat(n,"-").concat(h.props.dataKey),data:i,xAxis:s,yAxis:l,layout:c,offset:f,dataPointFormatter:p})}))}},{key:"render",value:function(){var a=this.props,n=a.hide,o=a.data,i=a.className,s=a.xAxis,l=a.yAxis,c=a.left,d=a.top,u=a.width,f=a.height,p=a.isAnimationActive,m=a.background,h=a.id;if(n||!o||!o.length)return null;var g=this.state.isAnimationFinished,y=Me("recharts-bar",i),v=s&&s.allowDataOverflow,x=l&&l.allowDataOverflow,S=v||x,b=(0,xZ.default)(h)?this.id:h;return Cn.default.createElement(Ke,{className:y},v||x?Cn.default.createElement("defs",null,Cn.default.createElement("clipPath",{id:"clipPath-".concat(b)},Cn.default.createElement("rect",{x:v?c:c-u/2,y:x?d:d-f/2,width:v?u:u*2,height:x?f:f*2}
vendor: 7,102 bytes, line 171
171))):null,Cn.default.createElement(Ke,{className:"recharts-bar-rectangles",clipPath:S?"url(#clipPath-".concat(b,")"):null},m?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(S,b),(!p||g)&&Wn.renderCallByParent(this.props,o))}}],[{key:"getDerivedStateFromProps",value:function(a,n){return a.animationId!==n.prevAnimationId?{prevAnimationId:a.animationId,curData:a.data,prevData:n.curData}:a.data!==n.curData?{curData:a.data}:null}}])})(Cn.PureComponent);gZ=kn;qc(kn,"displayName","Bar");qc(kn,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!la.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});qc(kn,"getComposedData",function(e){var t=e.props,r=e.item,a=e.barPosition,n=e.bandSize,o=e.xAxis,i=e.yAxis,s=e.xAxisTicks,l=e.yAxisTicks,c=e.stackedData,d=e.dataStartIndex,u=e.displayedData,f=e.offset,p=vX(a,r);if(!p)return null;var m=t.layout,h=r.type.defaultProps,g=h!==void 0?Qr(Qr({},h),r.props):r.props,y=g.dataKey,v=g.children,x=g.minPointSize,S=m==="horizontal"?i:o,b=c?S.scale.domain():null,w=xX({numericAxis:S}),k=qr(v,Ns),C=u.map(function(N,E){var L,T,q,_,B,I;c?L=yX(c[d+E],b):(L=Ht(N,y),Array.isArray(L)||(L=[w,L]));var A=pZ(x,gZ.defaultProps.minPointSize)(L[1],E);if(m==="horizontal"){var M,D=[i.scale(L[0]),i.scale(L[1])],V=D[0],P=D[1];T=CT({axis:o,ticks:s,bandSize:n,offset:p.offset,entry:N,index:E}),q=(M=P??V)!==null&&M!==void 0?M:void 0,_=p.size;var O=V-P;if(B=Number.isNaN(O)?0:O,I={x:T,y:i.y,width:_,height:i.height},Math.abs(A)>0&&Math.abs(B)<Math.abs(A)){var j=Vr(B||A)*(Math.abs(A)-Math.abs(B));q-=j,B+=j}}else{var W=[o.scale(L[0]),o.scale(L[1])],ee=W[0],oe=W[1];if(T=ee,q=CT({axis:i,ticks:l,bandSize:n,offset:p.offset,entry:N,index:E}),_=oe-ee,B=p.size,I={x:o.x,y:q,width:o.width,height:B},Math.abs(A)>0&&Math.abs(_)<Math.abs(A)){var he=Vr(_||A)*(Math.abs(A)-Math.abs(_));_+=he}}return Qr(Qr(Qr({},N),{},{x:T,y:q,width:_,height:B,value:c?L:L[1],payload:N,background:I},k&&k[E]&&k[E].props),{},{tooltipPayload:[O2(r,N)],tooltipPosition:{x:T+_/2,y:q+B/2}})});return Qr({data:C,layout:m},f)});function My(e){"@babel/helpers - typeof";return My=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},My(e)}function n3e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wZ(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,CZ(a.key),a)}}function o3e(e,t,r){return t&&wZ(e.prototype,t),r&&wZ(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function SZ(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function zi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?SZ(Object(r),!0).forEach(function(a){iC(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):SZ(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function iC(e,t,r){return t=CZ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CZ(e){var t=i3e(e,"string");return My(t)=="symbol"?t:t+""}function i3e(e,t){if(My(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(My(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Vm=function(t,r,a,n,o){var i=t.width,s=t.height,l=t.layout,c=t.children,d=Object.keys(r),u={left:a.left,leftMirror:a.left,right:i-a.right,rightMirror:i-a.right,top:a.top,topMirror:a.top,bottom:s-a.bottom,bottomMirror:s-a.bottom},f=!!Qa(c,kn);return d.reduce(function(p,m){var h=r[m],g=h.orientation,y=h.domain,v=h.padding,x=v===void 0?{}:v,S=h.mirror,b=h.reversed,w="".concat(g).concat(S?"Mirror":""),k,C,N,E,L;if(h.type==="number"&&(h.padding==="gap"||h.padding==="no-gap")){var T=y[1]-y[0],q=1/0,_=h.categoricalDomain.sort(E8);if(_.forEach(function(W,ee){ee>0&&(q=Math.min((W||0)-(_[ee-1]||0),q))}),Number.isFinite(q)){var B=q/T,I=h.layout==="vertical"?a.height:a.width;if(h.padding==="gap"&&(k=B*I/2),h.padding==="no-gap"){var A=Ur(t.barCategoryGap,B*I),M=B*I/2;k=M-A-(M-A)/I*A}}}n==="xAxis"?C=[a.left+(x.left||0)+(k||0),a.left+a.width-(x.right||0)-(k||0)]:n==="yAxis"?C=l==="horizontal"?[a.top+a.height-(x.bottom||0),a.top+(x.top||0)]:[a.top+(x.top||0)+(k||0),a.top+a.height-(x.bottom||0)-(k||0)]:C=h.range,b&&(C=[C[1],C[0]]);var D=A2(h,o,f),V=D.scale,P=D.realScaleType;V.domain(y).range(C),L2(V);var O=T2(V,zi(zi({},h),{},{realScaleType:P}));n==="xAxis"?(L=g==="top"&&!S||g==="bottom"&&S,N=a.left,E=u[w]-L*h.height):n==="yAxis"&&(L=g==="left"&&!S||g==="right"&&S,N=u[w]-L*h.width,E=a.top);var j=zi(zi(zi({},h),O),{},{realScaleType:P,x:N,y:E,scale:V,width:n==="xAxis"?a.width:h.width,height:n==="yAxis"?a.height:h.height});return j.bandSize=Im(j,O),!h.hide&&n==="xAxis"?u[w]+=(L?-1:1)*j.height:h.hide||(u[w]+=(L?-1:1)*j.width),zi(zi({},p),{},iC({},m,j))},{})},sR=function(t,r){var a=t.x,n=t.y,o=r.x,i=r.y;return{x:Math.min(a,o),y:Math.min(n,i),width:Math.abs(o-a),height:Math.abs(i-n)}},IZ=function(t){var r=t.x1,a=t.y1,n=t.x2,o=t.y2;return sR({x:r,y:a},{x:n,y:o})},PZ=(function(){function e(t){n3e(this,e),this.scale=t}return o3e(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=a.bandAware,o=a.position;if(r!==void 0){if(o)switch(o){case"start":return this.scale(r);case"middle":{var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+i}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(r)+s}default:return this.scale(r)}if(n){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+l}return this.scale(r)}}},{key:"isInRange",value:function(r){var a=this.range(),n=a[0],o=a[a.length-1];return n<=o?r>=n&&r<=o:r>=o&&r<=n}}],[{key:"create",value:function(r){return new e(r)}}])})();iC(PZ,"EPS",1e-4);var Um=function(t){var r=Object.keys(t).reduce(function(a,n){return zi(zi({},a),{},iC({},n,PZ.create(t[n])))},{});return zi(zi({},r),{},{apply:function(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=o.bandAware,s=o.position;return(0,kZ.default)(n,function(l,c){return r[c].apply(l,{bandAware:i,position:s})})},isInRange:function(n){return(0,NZ.default)(n,function(o,i){return r[i].isInRange(o)})}})};function s3e(e){return(e%180+180)%180}var EZ=function(t){var r=t.width,a=t.height,n=arguments.length>
1711&&arguments[1]!==void 0?arguments[1]:0,o=s3e(n),i=o*Math.PI/180,s=Math.atan(a/r),l=i>s&&i<Math.PI-s?a/Math.sin(i):r/Math.cos(i);return Math.abs(l)};var Jt=R(Q());var BZ=R(_Z()),VZ=R(aR());var FZ=R(OA()),jZ=(0,FZ.default)(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")});var lR=(0,Jt.createContext)(void 0),cR=(0,Jt.createContext)(void 0),UZ=(0,Jt.createContext)(void 0),qZ=(0,Jt.createContext)({}),zZ=(0,Jt.createContext)(void 0),HZ=(0,Jt.createContext)(0),WZ=(0,Jt.createContext)(0),uR=function(t){var r=t.state,a=r.xAxisMap,n=r.yAxisMap,o=r.offset,i=t.clipPathId,s=t.children,l=t.width,c=t.height,d=jZ(o);return Jt.default.createElement(lR.Provider,{value:a},Jt.default.createElement(cR.Provider,{value:n},Jt.default.createElement(qZ.Provider,{value:o},Jt.default.createElement(UZ.Provider,{value:d},Jt.default.createElement(zZ.Provider,{value:i},Jt.default.createElement(HZ.Provider,{value:c},Jt.default.createElement(WZ.Provider,{value:l},s)))))))},GZ=function(){return(0,Jt.useContext)(zZ)};var sC=function(t){var r=(0,Jt.useContext)(lR);r==null&&so(!1);var a=r[t];return a==null&&so(!1),a},$Z=function(){var t=(0,Jt.useContext)(lR);return Cs(t)};var KZ=function(){var t=(0,Jt.useContext)(cR),r=(0,BZ.default)(t,function(a){return(0,VZ.default)(a.domain,Number.isFinite)});return r||Cs(t)},lC=function(t){var r=(0,Jt.useContext)(cR);r==null&&so(!1);var a=r[t];return a==null&&so(!1),a},XZ=function(){var t=(0,Jt.useContext)(UZ);return t},YZ=function(){return(0,Jt.useContext)(qZ)},qm=function(){return(0,Jt.useContext)(WZ)},zm=function(){return(0,Jt.useContext)(HZ)};function Hm(e){"@babel/helpers - typeof";return Hm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hm(e)}function S3e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JZ(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,rQ(a.key),a)}}function C3e(e,t,r){return t&&JZ(e.prototype,t),r&&JZ(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function k3e(e,t,r){return t=cC(t),N3e(e,tQ()?Reflect.construct(t,r||[],cC(e).constructor):t.apply(e,r))}function N3e(e,t){if(t&&(Hm(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return I3e(e)}function I3e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tQ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(tQ=function(){return!!e})()}function cC(e){return cC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},cC(e)}function P3e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dR(e,t)}function dR(e,t){return dR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},dR(e,t)}function ZZ(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function QZ(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ZZ(Object(r),!0).forEach(function(a){pR(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ZZ(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function pR(e,t,r){return t=rQ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rQ(e){var t=E3e(e,"string");return Hm(t)=="symbol"?t:t+""}function E3e(e,t){if(Hm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(Hm(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function A3e(e,t){return O3e(e)||R3e(e,t)||T3e(e,t)||L3e()}
171function L3e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 172In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function T3e(e,t){if(e){if(typeof e=="string")return eQ(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return eQ(e,t)}}function eQ(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function R3e(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a,n,o,i,s=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(a=o.call(r)).done)&&(s.push(a.value),s.length!==t);l=!0);}catch(d){c=!0,n=d}finally{try{if(!l&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw n}}return s}}function O3e(e){if(Array.isArray(e))return e}function fR(){return fR=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},fR.apply(this,arguments)}var D3e=function(t,r){var a;return Ad.default.isValidElement(t)?a=Ad.default.cloneElement(t,r):(0,aQ.default)(t)?a=t(r):a=Ad.default.createElement("line",fR({},r,{className:"recharts-reference-line-line"})),a},M3e=function(t,r,a,n,o,i,s,l,c){var d=o.x,u=o.y,f=o.width,p=o.height;if(a){var m=c.y,h=t.y.apply(m,{position:i});if(Kn(c,"discard")&&!t.y.isInRange(h))return null;var g=[{x:d+f,y:h},{x:d,y:h}];return l==="left"?g.reverse():g}if(r){var y=c.x,v=t.x.apply(y,{position:i});if(Kn(c,"discard")&&!t.x.isInRange(v))return null;var x=[{x:v,y:u+p},{x:v,y:u}];return s==="top"?x.reverse():x}if(n){var S=c.segment,b=S.map(function(w){return t.apply(w,{position:i})});return Kn(c,"discard")&&(0,nQ.default)(b,function(w){return!t.isInRange(w)})?null:b}return null};function _3e(e){var t=e.x,r=e.y,a=e.segment,n=e.xAxisId,o=e.yAxisId,i=e.shape,s=e.className,l=e.alwaysShow,c=GZ(),d=sC(n),u=lC(o),f=XZ();if(!c||!f)return null;ka(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=Um({x:d.scale,y:u.scale}),m=Xt(t),h=Xt(r),g=a&&a.length===2,y=M3e(p,m,h,g,f,e.position,d.orientation,u.orientation,e);if(!y)return null;var v=A3e(y,2),x=v[0],S=x.x,b=x.y,w=v[1],k=w.x,C=w.y,N=Kn(e,"hidden")?"url(#".concat(c,")"):void 0,E=QZ(QZ({clipPath:N},Ne(e,!0)),{},{x1:S,y1:b,x2:k,y2:C});return Ad.default.createElement(Ke,{className:Me("recharts-reference-line",s)},D3e(i,E),cr.renderCallByParent(e,IZ({x1:S,y1:b,x2:k,y2:C})))}var uC=(function(e){function t(){return S3e(this,t),k3e(this,t,arguments)}return P3e(t,e),C3e(t,[{key:"render",value:function(){return Ad.default.createElement(_3e,this.props)}}])})(Ad.default.Component);pR(uC,"displayName","ReferenceLine");pR(uC,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});var Wm=R(Q()),uQ=R(ir());function mR(){return mR=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},mR.apply(this,arguments)}function Gm(e){"@babel/helpers - typeof";return Gm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gm(e)}function oQ(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function iQ(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oQ(Object(r),!0).forEach(function(a){fC(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oQ(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function F3e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sQ(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,cQ(a.key),a)}}function j3e(e,t,r){return t&&sQ(e.prototype,t),r&&sQ(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function B3e(e,t,r){return t=dC(t),V3e(e,lQ()?Reflect.construct(t,r||[],dC(e).constructor):t.apply(e,r))}function V3e(e,t){if(t&&(Gm(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return U3e(e)}function U3e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lQ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lQ=function(){return!!e})()}
172function dC(e){return dC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},dC(e)}function q3e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hR(e,t)}function hR(e,t){return hR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},hR(e,t)}function fC(e,t,r){return t=cQ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cQ(e){var t=z3e(e,"string");return Gm(t)=="symbol"?t:t+""}function z3e(e,t){if(Gm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(Gm(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var H3e=function(t){var r=t.x,a=t.y,n=t.xAxis,o=t.yAxis,i=Um({x:n.scale,y:o.scale}),s=i.apply({x:r,y:a},{bandAware:!0});return Kn(t,"discard")&&!i.isInRange(s)?null:s},_y=(function(e){function t(){return F3e(this,t),B3e(this,t,arguments)}return q3e(t,e),j3e(t,[{key:"render",value:function(){var a=this.props,n=a.x,o=a.y,i=a.r,s=a.alwaysShow,l=a.clipPathId,c=Xt(n),d=Xt(o);if(ka(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!d)return null;var u=H3e(this.props);if(!u)return null;var f=u.x,p=u.y,m=this.props,h=m.shape,g=m.className,y=Kn(this.props,"hidden")?"url(#".concat(l,")"):void 0,v=iQ(iQ({clipPath:y},Ne(this.props,!0)),{},{cx:f,cy:p});return Wm.default.createElement(Ke,{className:Me("recharts-reference-dot",g)},t.renderDot(h,v),cr.renderCallByParent(this.props,{x:f-i,y:p-i,width:2*i,height:2*i}))}}])})(Wm.default.Component);fC(_y,"displayName","ReferenceDot");fC(_y,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});fC(_y,"renderDot",function(e,t){var r;return Wm.default.isValidElement(e)?r=Wm.default.cloneElement(e,t):(0,uQ.default)(e)?r=e(t):r=Wm.default.createElement(Rs,mR({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});var $m=R(Q()),gQ=R(ir());function gR(){return gR=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},gR.apply(this,arguments)}function Km(e){"@babel/helpers - typeof";return Km=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Km(e)}function dQ(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function fQ(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dQ(Object(r),!0).forEach(function(a){mC(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dQ(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function W3e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pQ(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,hQ(a.key),a)}}function G3e(e,t,r){return t&&pQ(e.prototype,t),r&&pQ(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function $3e(e,t,r){return t=pC(t),K3e(e,mQ()?Reflect.construct(t,r||[],pC(e).constructor):t.apply(e,r))}function K3e(e,t){if(t&&(Km(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return X3e(e)}function X3e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mQ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mQ=function(){return!!e})()}
172function pC(e){return pC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},pC(e)}function Y3e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vR(e,t)}function vR(e,t){return vR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},vR(e,t)}function mC(e,t,r){return t=hQ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hQ(e){var t=J3e(e,"string");return Km(t)=="symbol"?t:t+""}function J3e(e,t){if(Km(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(Km(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Z3e=function(t,r,a,n,o){var i=o.x1,s=o.x2,l=o.y1,c=o.y2,d=o.xAxis,u=o.yAxis;if(!d||!u)return null;var f=Um({x:d.scale,y:u.scale}),p={x:t?f.x.apply(i,{position:"start"}):f.x.rangeMin,y:a?f.y.apply(l,{position:"start"}):f.y.rangeMin},m={x:r?f.x.apply(s,{position:"end"}):f.x.rangeMax,y:n?f.y.apply(c,{position:"end"}):f.y.rangeMax};return Kn(o,"discard")&&(!f.isInRange(p)||!f.isInRange(m))?null:sR(p,m)},Fy=(function(e){function t(){return W3e(this,t),$3e(this,t,arguments)}return Y3e(t,e),G3e(t,[{key:"render",value:function(){var a=this.props,n=a.x1,o=a.x2,i=a.y1,s=a.y2,l=a.className,c=a.alwaysShow,d=a.clipPathId;ka(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var u=Xt(n),f=Xt(o),p=Xt(i),m=Xt(s),h=this.props.shape;if(!u&&!f&&!p&&!m&&!h)return null;var g=Z3e(u,f,p,m,this.props);if(!g&&!h)return null;var y=Kn(this.props,"hidden")?"url(#".concat(d,")"):void 0;return $m.default.createElement(Ke,{className:Me("recharts-reference-area",l)},t.renderRect(h,fQ(fQ({clipPath:y},Ne(this.props,!0)),g)),cr.renderCallByParent(this.props,g))}}])})($m.default.Component);mC(Fy,"displayName","ReferenceArea");mC(Fy,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});mC(Fy,"renderRect",function(e,t){var r;return $m.default.isValidElement(e)?r=$m.default.cloneElement(e,t):(0,gQ.default)(e)?r=e(t):r=$m.default.createElement(Am,gR({},t,{className:"recharts-reference-area-rect"})),r});var Hi=R(Q()),gC=R(ir()),xR=R(Ac());var SQ=R(ir());function hC(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var a=[],n=0;n<e.length;n+=t)if(r===void 0||r(e[n])===!0)a.push(e[n]);else return;return a}function vQ(e,t,r){var a={width:e.width+t.width,height:e.height+t.height};return EZ(a,r)}function yQ(e,t,r){var a=r==="width",n=e.x,o=e.y,i=e.width,s=e.height;return t===1?{start:a?n:o,end:a?n+i:o+s}:{start:a?n+i:o+s,end:a?n:o}}function Xm(e,t,r,a,n){if(e*t<e*a||e*t>e*n)return!1;var o=r();return e*(t-e*o/2-a)>=0&&e*(t+e*o/2-n)<=0}function bQ(e,t){return hC(e,t+1)}function xQ(e,t,r,a,n){for(var o=(a||[]).slice(),i=t.start,s=t.end,l=0,c=1,d=i,u=function(){var m=a?.[l];if(m===void 0)return{v:hC(a,c)};var h=l,g,y=function(){return g===void 0&&(g=r(m,h)),g},v=m.coordinate,x=l===0||Xm(e,v,y,d,s);x||(l=0,d=i,c+=1),x&&(d=v+e*(y()/2+n),l+=c)},f;c<=o.length;)if(f=u(),f)return f.v;return[]}function jy(e){"@babel/helpers - typeof";return jy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jy(e)}function wQ(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function en(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wQ(Object(r),!0).forEach(function(a){Q3e(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wQ(Object(r)).forEac
vendor: 4,901 bytes, line 172
172h(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function Q3e(e,t,r){return t=eFe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eFe(e){var t=tFe(e,"string");return jy(t)=="symbol"?t:t+""}function tFe(e,t){if(jy(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(jy(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rFe(e,t,r,a,n){for(var o=(a||[]).slice(),i=o.length,s=t.start,l=t.end,c=function(f){var p=o[f],m,h=function(){return m===void 0&&(m=r(p,f)),m};if(f===i-1){var g=e*(p.coordinate+e*h()/2-l);o[f]=p=en(en({},p),{},{tickCoord:g>0?p.coordinate-g*e:p.coordinate})}else o[f]=p=en(en({},p),{},{tickCoord:p.coordinate});var y=Xm(e,p.tickCoord,h,s,l);y&&(l=p.tickCoord-e*(h()/2+n),o[f]=en(en({},p),{},{isShow:!0}))},d=i-1;d>=0;d--)c(d);return o}function aFe(e,t,r,a,n,o){var i=(a||[]).slice(),s=i.length,l=t.start,c=t.end;if(o){var d=a[s-1],u=r(d,s-1),f=e*(d.coordinate+e*u/2-c);i[s-1]=d=en(en({},d),{},{tickCoord:f>0?d.coordinate-f*e:d.coordinate});var p=Xm(e,d.tickCoord,function(){return u},l,c);p&&(c=d.tickCoord-e*(u/2+n),i[s-1]=en(en({},d),{},{isShow:!0}))}for(var m=o?s-1:s,h=function(v){var x=i[v],S,b=function(){return S===void 0&&(S=r(x,v)),S};if(v===0){var w=e*(x.coordinate-e*b()/2-l);i[v]=x=en(en({},x),{},{tickCoord:w<0?x.coordinate-w*e:x.coordinate})}else i[v]=x=en(en({},x),{},{tickCoord:x.coordinate});var k=Xm(e,x.tickCoord,b,l,c);k&&(l=x.tickCoord+e*(b()/2+n),i[v]=en(en({},x),{},{isShow:!0}))},g=0;g<m;g++)h(g);return i}function By(e,t,r){var a=e.tick,n=e.ticks,o=e.viewBox,i=e.minTickGap,s=e.orientation,l=e.interval,c=e.tickFormatter,d=e.unit,u=e.angle;if(!n||!n.length||!a)return[];if(me(l)||la.isSsr)return bQ(n,typeof l=="number"&&me(l)?l:0);var f=[],p=s==="top"||s==="bottom"?"width":"height",m=d&&p==="width"?od(d,{fontSize:t,letterSpacing:r}):{width:0,height:0},h=function(x,S){var b=(0,SQ.default)(c)?c(x.value,S):x.value;return p==="width"?vQ(od(b,{fontSize:t,letterSpacing:r}),m,u):od(b,{fontSize:t,letterSpacing:r})[p]},g=n.length>=2?Vr(n[1].coordinate-n[0].coordinate):1,y=yQ(o,g,p);return l==="equidistantPreserveStart"?xQ(g,y,h,n,i):(l==="preserveStart"||l==="preserveStartEnd"?f=aFe(g,y,h,n,i,l==="preserveStartEnd"):f=rFe(g,y,h,n,i),f.filter(function(v){return v.isShow}))}var nFe=["viewBox"],oFe=["viewBox"],iFe=["ticks"];function Jm(e){"@babel/helpers - typeof";return Jm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jm(e)}function Ym(){return Ym=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},Ym.apply(this,arguments)}function CQ(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function da(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?CQ(Object(r),!0).forEach(function(a){wR(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):CQ(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function yR(e,t){if(e==null)return{};var r=sFe(e,t),a,n;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)a=o[n],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function sFe(e,t){if(e==null)return{};var r={};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;r[a]=e[a]}return r}function lFe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kQ(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,IQ(a.key),a)}}function cFe(e,t,r){return t&&kQ(e.prototype,t),r&&kQ(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function uFe(e,t,r){return t=vC(t),dFe(e,NQ()?Reflect.construct(t,r||[],vC(e).constructor):t.apply(e,r))}function dFe(e,t){if(t&&(Jm(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fFe(e)}function fFe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function NQ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(NQ=function(){return!!e})()}
172function vC(e){return vC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},vC(e)}function pFe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bR(e,t)}function bR(e,t){return bR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},bR(e,t)}function wR(e,t,r){return t=IQ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IQ(e){var t=mFe(e,"string");return Jm(t)=="symbol"?t:t+""}function mFe(e,t){if(Jm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(Jm(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var El=(function(e){function t(r){var a;return lFe(this,t),a=uFe(this,t,[r]),a.state={fontSize:"",letterSpacing:""},a}return pFe(t,e),cFe(t,[{key:"shouldComponentUpdate",value:function(a,n){var o=a.viewBox,i=yR(a,nFe),s=this.props,l=s.viewBox,c=yR(s,oFe);return!xl(o,l)||!xl(i,c)||!xl(n,this.state)}},{key:"componentDidMount",value:function(){var a=this.layerReference;if(a){var n=a.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];n&&this.setState({fontSize:window.getComputedStyle(n).fontSize,letterSpacing:window.getComputedStyle(n).letterSpacing})}}},{key:"getTickLineCoord",value:function(a){var n=this.props,o=n.x,i=n.y,s=n.width,l=n.height,c=n.orientation,d=n.tickSize,u=n.mirror,f=n.tickMargin,p,m,h,g,y,v,x=u?-1:1,S=a.tickSize||d,b=me(a.tickCoord)?a.tickCoord:a.coordinate;switch(c){case"top":p=m=a.coordinate,g=i+ +!u*l,h=g-x*S,v=h-x*f,y=b;break;case"left":h=g=a.coordinate,m=o+ +!u*s,p=m-x*S,y=p-x*f,v=b;break;case"right":h=g=a.coordinate,m=o+ +u*s,p=m+x*S,y=p+x*f,v=b;break;default:p=m=a.coordinate,g=i+ +u*l,h=g+x*S,v=h+x*f,y=b;break}return{line:{x1:p,y1:h,x2:m,y2:g},tick:{x:y,y:v}}}},{key:"getTickTextAnchor",value:function(){var a=this.props,n=a.orientation,o=a.mirror,i;switch(n){case"left":i=o?"start":"end";break;case"right":i=o?"end":"start";break;default:i="middle";break}return i}},{key:"getTickVerticalAnchor",value:function(){var a=this.props,n=a.orientation,o=a.mirror,i="end";switch(n){case"left":case"right":i="middle";break;case"top":i=o?"start":"end";break;default:i=o?"end":"start";break}return i}},{key:"renderAxisLine",value:function(){var a=this.props,n=a.x,o=a.y,i=a.width,s=a.height,l=a.orientation,c=a.mirror,d=a.axisLine,u=da(da(da({},Ne(this.props,!1)),Ne(d,!1)),{},{fill:"none"});if(l==="top"||l==="bottom"){var f=+(l==="top"&&!c||l==="bottom"&&c);u=da(da({},u),{},{x1:n,y1:o+f*s,x2:n+i,y2:o+f*s})}else{var p=+(l==="left"&&!c||l==="right"&&c);u=da(da({},u),{},{x1:n+p*i,y1:o,x2:n+p*i,y2:o+s})}return Hi.default.createElement("line",Ym({},u,{className:Me("recharts-cartesian-axis-line",(0,xR.default)(d,"className"))}))}},{key:"renderTicks",value:function(a,n,o){var i=this,s=this.props,l=s.tickLine,c=s.stroke,d=s.tick,u=s.tickFormatter,f=s.unit,p=By(da(da({},this.props),{},{ticks:a}),n,o),m=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),g=Ne(this.props,!1),y=Ne(d,!1),v=da(da({},g),{},{fill:"none"},Ne(l,!1)),x=p.map(function(S,b){var w=i.getTickLineCoord(S),k=w.line,C=w.tick,N=da(da(da(da({textAnchor:m,verticalAnchor:h},g),{},{stroke:"none",fill:c},y),C),{},{index:b,payload:S,visibleTicksCount:p.length,tickFormatter:u});return Hi.default.createElement(Ke,Ym({className:"recharts-cartesian-axis-tick",key:"tick-".concat(S.value,"-").concat(S.coordinate,"-").concat(S.tickCoord)},mo(i.props,S,b)),l&&Hi.default.createElement("line",Ym({},v,k,{className:Me("recharts-cartesian-axis-tick-line",(0,xR.default)(l,"className"))})),d&&t.renderTickItem(d,N,"".concat((0,gC.default)(u)?u(S.value,b):S.value).concat(f||"")))});return Hi.default.createElement("g",{className:"recharts-cartesian-axis-ticks"},x)}},{key:"render",value:function(){var a=this,n=this.props,o=n.axisLine,i=n.width,s=n.height,l=n.ticksGenerator,c=n.className,d=n.hide;if(d)return null;var u=this.props,f=u.ticks,p=yR(u,iFe),m=f;return(0,gC.default)(l)&&(m=f&&f.length>0?l(this.props):l(p)),i<=0||s<=0||!m||!m.length?null:Hi.default.createElement(Ke,{className:Me("recharts-cartesian-axis",c),ref:function(g){a.layerReference=g}},o&&this.renderAxisLine(),this.renderTicks(m,this.state.fontSize,this.state.letterSpacing),cr.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(a,n,o){var i,s=Me(n.className,"recharts-cartesian-axis-tick-value");return Hi.default.isValidElement(a)?i=Hi.default.cloneElement(a,da(da({},n),{},{className:s})):(0,gC.default)(a)?i=a(da(da({},n),{},{className:s})):i=Hi.default.createElement(go,Ym({},n,{className:"recharts-cartesian-axis-tick-value"}),o),i}}])})(Hi.Component);wR(El,"displayName","CartesianAxis");wR(El,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine
172:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var Fa=R(Q()),yC=R(ir());var hFe=["x1","y1","x2","y2","key"],gFe=["offset"];function Td(e){"@babel/helpers - typeof";return Td=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Td(e)}function PQ(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function tn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?PQ(Object(r),!0).forEach(function(a){vFe(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):PQ(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function vFe(e,t,r){return t=yFe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yFe(e){var t=bFe(e,"string");return Td(t)=="symbol"?t:t+""}function bFe(e,t){if(Td(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(Td(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ld(){return Ld=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},Ld.apply(this,arguments)}function EQ(e,t){if(e==null)return{};var r=xFe(e,t),a,n;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)a=o[n],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function xFe(e,t){if(e==null)return{};var r={};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;r[a]=e[a]}return r}var wFe=function(t){var r=t.fill;if(!r||r==="none")return null;var a=t.fillOpacity,n=t.x,o=t.y,i=t.width,s=t.height,l=t.ry;return Fa.default.createElement("rect",{x:n,y:o,ry:l,width:i,height:s,stroke:"none",fill:r,fillOpacity:a,className:"recharts-cartesian-grid-bg"})};function AQ(e,t){var r;if(Fa.default.isValidElement(e))r=Fa.default.cloneElement(e,t);else if((0,yC.default)(e))r=e(t);else{var a=t.x1,n=t.y1,o=t.x2,i=t.y2,s=t.key,l=EQ(t,hFe),c=Ne(l,!1),d=c.offset,u=EQ(c,gFe);r=Fa.default.createElement("line",Ld({},u,{x1:a,y1:n,x2:o,y2:i,fill:"none",key:s}))}return r}function SFe(e){var t=e.x,r=e.width,a=e.horizontal,n=a===void 0?!0:a,o=e.horizontalPoints;if(!n||!o||!o.length)return null;var i=o.map(function(s,l){var c=tn(tn({},e),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(l),index:l});return AQ(n,c)});return Fa.default.createElement("g",{className:"recharts-cartesian-grid-horizontal"},i)}function CFe(e){var t=e.y,r=e.height,a=e.vertical,n=a===void 0?!0:a,o=e.verticalPoints;if(!n||!o||!o.length)return null;var i=o.map(function(s,l){var c=tn(tn({},e),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(l),index:l});return AQ(n,c)});return Fa.default.createElement("g",{className:"recharts-cartesian-grid-vertical"},i)}function kFe(e){var t=e.horizontalFill,r=e.fillOpacity,a=e.x,n=e.y,o=e.width,i=e.height,s=e.horizontalPoints,l=e.horizontal,c=l===void 0?!0:l;if(!c||!t||!t.length)return null;var d=s.map(function(f){return Math.round(f+n-n)}).sort(function(f,p){return f-p});n!==d[0]&&d.unshift(0);var u=d.map(function(f,p){var m=!d[p+1],h=m?n+i-f:d[p+1]-f;if(h<=0)return null;var g=p%t.length;return Fa.default.createElement("rect",{key:"react-".concat(p),y:f,x:a,height:h,width:o,stroke:"none",fill:t[g],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return Fa.default.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},u)}function NFe(e){var t=e.vertical,r=t===void 0?!0:t,a=e.verticalFill,n=e.fillOpacity,o=e.x,i=e.y,s=e.width,l=e.height,c=e.verticalPoints;if(!r||!a||!a.length)return null;var d=c.map(function(f){return Math.round(f+o-o)}).sort(function(f,p){return f-p});o!==d[0]&&d.unshift(0);var u=d.map(function(f,p){var m=!d[p+1],h=m?o+s-f:d[p+1]-f;if(h<=0)return null;var g=p%a.length;return Fa.default.createElement("rect",{key:"react-".concat(p),x:f,y:i,width:h,height:l,stroke:"none",fill:a[g],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return Fa.default.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},u)}var IFe=function(t,r){var a=t.xAxis,n=t.width,o=t.height,i=t.offset;return ST(By(tn(tn(tn({},El.defaultProps),a),{}
172,{ticks:wo(a,!0),viewBox:{x:0,y:0,width:n,height:o}})),i.left,i.left+i.width,r)},PFe=function(t,r){var a=t.yAxis,n=t.width,o=t.height,i=t.offset;return ST(By(tn(tn(tn({},El.defaultProps),a),{},{ticks:wo(a,!0),viewBox:{x:0,y:0,width:n,height:o}})),i.top,i.top+i.height,r)},Zm={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function Xn(e){var t,r,a,n,o,i,s=qm(),l=zm(),c=YZ(),d=tn(tn({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Zm.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:Zm.fill,horizontal:(a=e.horizontal)!==null&&a!==void 0?a:Zm.horizontal,horizontalFill:(n=e.horizontalFill)!==null&&n!==void 0?n:Zm.horizontalFill,vertical:(o=e.vertical)!==null&&o!==void 0?o:Zm.vertical,verticalFill:(i=e.verticalFill)!==null&&i!==void 0?i:Zm.verticalFill,x:me(e.x)?e.x:c.left,y:me(e.y)?e.y:c.top,width:me(e.width)?e.width:c.width,height:me(e.height)?e.height:c.height}),u=d.x,f=d.y,p=d.width,m=d.height,h=d.syncWithTicks,g=d.horizontalValues,y=d.verticalValues,v=$Z(),x=KZ();if(!me(p)||p<=0||!me(m)||m<=0||!me(u)||u!==+u||!me(f)||f!==+f)return null;var S=d.verticalCoordinatesGenerator||IFe,b=d.horizontalCoordinatesGenerator||PFe,w=d.horizontalPoints,k=d.verticalPoints;if((!w||!w.length)&&(0,yC.default)(b)){var C=g&&g.length,N=b({yAxis:x?tn(tn({},x),{},{ticks:C?g:x.ticks}):void 0,width:s,height:l,offset:c},C?!0:h);ka(Array.isArray(N),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Td(N),"]")),Array.isArray(N)&&(w=N)}if((!k||!k.length)&&(0,yC.default)(S)){var E=y&&y.length,L=S({xAxis:v?tn(tn({},v),{},{ticks:E?y:v.ticks}):void 0,width:s,height:l,offset:c},E?!0:h);ka(Array.isArray(L),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Td(L),"]")),Array.isArray(L)&&(k=L)}return Fa.default.createElement("g",{className:"recharts-cartesian-grid"},Fa.default.createElement(wFe,{fill:d.fill,fillOpacity:d.fillOpacity,x:d.x,y:d.y,width:d.width,height:d.height,ry:d.ry}),Fa.default.createElement(SFe,Ld({},d,{offset:c,horizontalPoints:w,xAxis:v,yAxis:x})),Fa.default.createElement(CFe,Ld({},d,{offset:c,verticalPoints:k,xAxis:v,yAxis:x})),Fa.default.createElement(kFe,Ld({},d,{horizontalPoints:w})),Fa.default.createElement(NFe,Ld({},d,{verticalPoints:k})))}Xn.displayName="CartesianGrid";var ja=R(Q());var MQ=R(ir()),xC=R(qn()),_Q=R(xd());var EFe=["type","layout","connectNulls","ref"],AFe=["key"];function eh(e){"@babel/helpers - typeof";return eh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},eh(e)}function LQ(e,t){if(e==null)return{};var r=LFe(e,t),a,n;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)a=o[n],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function LFe(e,t){if(e==null)return{};var r={};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;r[a]=e[a]}return r}function Vy(){return Vy=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},Vy.apply(this,arguments)}function TQ(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function ko(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?TQ(Object(r),!0).forEach(function(a){Wi(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):TQ(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function Qm(e){return DFe(e)||OFe(e)||RFe(e)||TFe()}function TFe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 173In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function RFe(e,t){if(e){if(typeof e=="string")return SR(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return SR(e,t)}}function OFe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function DFe(e){if(Array.isArray(e))return SR(e)}function SR(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function MFe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RQ(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,DQ(a.key),a)}}function _Fe(e,t,r){return t&&RQ(e.prototype,t),r&&RQ(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function FFe(e,t,r){return t=bC(t),jFe(e,OQ()?Reflect.construct(t,r||[],bC(e).constructor):t.apply(e,r))}function jFe(e,t){if(t&&(eh(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return BFe(e)}function BFe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function OQ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(OQ=function(){return!!e})()}
173function bC(e){return bC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},bC(e)}function VFe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&CR(e,t)}function CR(e,t){return CR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},CR(e,t)}function Wi(e,t,r){return t=DQ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DQ(e){var t=UFe(e,"string");return eh(t)=="symbol"?t:t+""}function UFe(e,t){if(eh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(eh(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var No=(function(e){function t(){var r;MFe(this,t);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return r=FFe(this,t,[].concat(n)),Wi(r,"state",{isAnimationFinished:!0,totalLength:0}),Wi(r,"generateSimpleStrokeDasharray",function(i,s){return"".concat(s,"px ").concat(i-s,"px")}),Wi(r,"getStrokeDasharray",function(i,s,l){var c=l.reduce(function(y,v){return y+v});if(!c)return r.generateSimpleStrokeDasharray(s,i);for(var d=Math.floor(i/c),u=i%c,f=s-i,p=[],m=0,h=0;m<l.length;h+=l[m],++m)if(h+l[m]>u){p=[].concat(Qm(l.slice(0,m)),[u-h]);break}var g=p.length%2===0?[0,f]:[f];return[].concat(Qm(t.repeat(l,d)),Qm(p),g).map(function(y){return"".concat(y,"px")}).join(", ")}),Wi(r,"id",zn("recharts-line-")),Wi(r,"pathRef",function(i){r.mainCurve=i}),Wi(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),Wi(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return VFe(t,e),_Fe(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var a=this.getTotalLength();this.setState({totalLength:a})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var a=this.getTotalLength();a!==this.state.totalLength&&this.setState({totalLength:a})}}},{key:"getTotalLength",value:function(){var a=this.mainCurve;try{return a&&a.getTotalLength&&a.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(a,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,i=o.points,s=o.xAxis,l=o.yAxis,c=o.layout,d=o.children,u=qr(d,Vc);if(!u)return null;var f=function(h,g){return{x:h.x,y:h.y,value:h.value,errorVal:Ht(h.payload,g)}},p={clipPath:a?"url(#clipPath-".concat(n,")"):null};return ja.default.createElement(Ke,p,u.map(function(m){return ja.default.cloneElement(m,{key:"bar-".concat(m.props.dataKey),data:i,xAxis:s,yAxis:l,layout:c,dataPointFormatter:f})}))}},{key:"renderDots",value:function(a,n,o){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var s=this.props,l=s.dot,c=s.points,d=s.dataKey,u=Ne(this.props,!1),f=Ne(l,!0),p=c.map(function(h,g){var y=ko(ko(ko({key:"dot-".concat(g),r:3},u),f),{},{index:g,cx:h.x,cy:h.y,value:h.value,dataKey:d,payload:h.payload,points:c});return t.renderDotItem(l,y)}),m={clipPath:a?"url(#clipPath-".concat(n?"":"dots-").concat(o,")"):null};return ja.default.createElement(Ke,Vy({className:"recharts-line-dots",key:"dots"},m),p)}},{key:"renderCurveStatically",value:function(a,n,o,i){var s=this.props,l=s.type,c=s.layout,d=s.connectNulls,u=s.ref,f=LQ(s,EFe),p=ko(ko(ko({},Ne(f,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:n?"url(#clipPath-".concat(o,")"):null,points:a},i),{},{type:l,layout:c,connectNulls:d});return ja.default.createElement(Vi,Vy({},p,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(a,n){var o=this,i=this.props,s=i.points,l=i.strokeDasharray,c=i.isAnimationActive,d=i.animationBegin,u=i.animationDuration,f=i.animationEasing,p=i.animationId,m=i.animateNewValues,h=i.width,g=i.height,y=this.state,v=y.prevPoints,x=y.totalLength;return ja.default.createElement(Gn,{begin:d,duration:u,isActive:c,easing:f,from:{t:0},to:{t:1},key:"line-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(S){var b=S.t;if(v){var w=v.length/s.length,k=s.map(function(T,q){var _=Math.floor(q*w);if(v[_]){var B=v[_],I=Er(B.x,T.x),A=Er(B.y,T.y);return ko(ko({},T),{},{x:I(b),y:A(b)})}if(m){var M=Er(h*2,T.x),D=Er(g/2,T.y);return ko(ko({},T),{},{x:M(b),y:D(b)})}return ko(ko({},T),{},{x:T.x,y:T.y})});return o.renderCurveStatically(k,a,n)}var C=Er(0,x),N=C(b),E;if(l){var L="".concat(l).split(/[,\s]+/gim).map(function(T){return parseFloat(T)});E=o.getStrokeDasharray(N,x,L)}else E=o.generateSimpleStrokeDasharray(x,N);return o.renderCurveStatically(s,a,n,{strokeDasharray:E})})}},{key:"renderCurve",value:function(a,n){var o=this.props,i=o.points,s=o.isAnimationActive,l=this.state,c=l.prevPoints,d=l.totalLength;return s&&i&&i.length&&(!c&&d>0||!(0,_Q.default)(c,i))?this.renderCurveWithAnimation(a,n):this.renderCurveStatically(i,a,n)}},{key:"render",value:function(){var a,n=this.props,o=n.hide,i=n.dot,s=n.points,l=n.className,c=n.xAxis,d=n.yAxis,u=n.top,f=n.left,p=n.width,m=n.height,h=n.isAnimationActive,g=n.id;if(o||!s||!s.length)return null;var y=this.state.isAnimationFinished,v=s.length===1,x=Me("recharts-line",l),S=c&&c.allowDataOverflow,b=d&&d.allowDataOverflow,w=S||b,k=(0,xC.default)(g)?this.id:g,C=(a=Ne(i,!1))!==null&&a!==void 0?a:{r:3,strokeWidth:2},N=C.r,E=N===void 0?3:N,L=C.strokeWidth,T=L===void 0?2:L,q=cS(i)?i:{},_=q.clipDot,B=_===void 0?!0:_,I=E*2+T;return ja.default.createElement(Ke,{className:x},S||b?ja.default.createElement("defs",null,ja.default.createElement("clipPath",{id:"clipPath-".concat(k)},ja.default.createElement("rect",{x:S?f:f-p/2,y:b?u:u-m/2,width:S?p:p*2,height:b?m:m*2})),!B&&ja.default.createElement("clipPath",{id:"clipPath-dots-".concat(k)},ja.default.createElement("rect",{x:f-I/2,y:u-I/2,width:p+I,height:m+I}))):null,!v&&this.renderCurve(w,k),this.renderErrorBar(w,k),(v||i)&&this.renderDots(w,B,k),(!h||y)&&Wn.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(a,n){return a.animationId!==n.prevAnimationId?{prevAnimationId:a.animationId,curPoints:a.points,prevPoints:n.curPoints}:a.points!==n.curPoints?{curPoints:a.points}:null}},{key:"repeat",value:function(a,n){for(var o=a.length%2!==0?[].concat(Qm(a),[0]):a,i=[],s=0;s<n;++s)i=[].concat(Qm(i),Qm(o));return i}},{key:"renderDotItem",value:function(a,n){var o;if(ja.default.isValidElement(a))o=ja.default.cloneElement(a,n);else if((0,MQ.default)(a))o=a(n);else{var i=n.key,s=LQ(n,AFe),l=Me("recharts-line-dot",typeof a!="boolean"?a.className:"");o=ja.default.createElement(Rs,Vy({key:i},s,{className:l}))}return o}}])}
173)(ja.PureComponent);Wi(No,"displayName","Line");Wi(No,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!la.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});Wi(No,"getComposedData",function(e){var t=e.props,r=e.xAxis,a=e.yAxis,n=e.xAxisTicks,o=e.yAxisTicks,i=e.dataKey,s=e.bandSize,l=e.displayedData,c=e.offset,d=t.layout,u=l.map(function(f,p){var m=Ht(f,i);return d==="horizontal"?{x:Nm({axis:r,ticks:n,bandSize:s,entry:f,index:p}),y:(0,xC.default)(m)?null:a.scale(m),value:m,payload:f}:{x:(0,xC.default)(m)?null:r.scale(m),y:Nm({axis:a,ticks:o,bandSize:s,entry:f,index:p}),value:m,payload:f}});return ko({points:u,layout:d},c)});var vr=R(Q());var SC=R(ir()),Uy=R(aT()),NR=R(qn()),zQ=R(iS()),IR=R(xd());var qFe=["layout","type","stroke","connectNulls","isRange","ref"],zFe=["key"],BQ;function th(e){"@babel/helpers - typeof";return th=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},th(e)}function VQ(e,t){if(e==null)return{};var r=HFe(e,t),a,n;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)a=o[n],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function HFe(e,t){if(e==null)return{};var r={};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;r[a]=e[a]}return r}function Rd(){return Rd=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},Rd.apply(this,arguments)}function FQ(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function zc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?FQ(Object(r),!0).forEach(function(a){Ds(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):FQ(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function WFe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jQ(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,qQ(a.key),a)}}function GFe(e,t,r){return t&&jQ(e.prototype,t),r&&jQ(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function $Fe(e,t,r){return t=wC(t),KFe(e,UQ()?Reflect.construct(t,r||[],wC(e).constructor):t.apply(e,r))}function KFe(e,t){if(t&&(th(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return XFe(e)}function XFe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function UQ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(UQ=function(){return!!e})()}function wC(e){return wC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},wC(e)}function YFe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kR(e,t)}function kR(e,t){return kR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},kR(e,t)}function Ds(e,t,r){return t=qQ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qQ(e){var t=JFe(e,"string");return th(t)=="symbol"?t:t+""}function JFe(e,t){if(th(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(th(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Gi=(function(e){function t(){var r;WFe(this,t);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return r=$Fe(this,t,[].concat(n)),Ds(r,"state",{isAnimationFinished:!0}),Ds(r,"id",zn("recharts-area-")),Ds(r,"handleAnimationEnd",function(){var i=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),(0,SC.default)(i)&&i()}),Ds(r,"handleAnimationStart",function(){var i=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),(0,SC.default)(i)&&i()}),r}return YFe(t,e),GFe(t,[{key:"renderDots",value:function(a,n,o){var i=this.props.isAnimationActive,s=this.state.isAnimationFinished;if(i&&!s)return null;var l=this.props,c=l.dot,d=l.points,u=l.dataKey,f=Ne(this.props,!1),p=Ne(c,!0),m=d.map(function(g,y){var v=zc(zc(zc({key:"dot-".concat(y),r:3},f),p),{},{index:y,cx:g.x,cy:g.y,dataKey:u,value:g.value,payload:g.payload,points:d});return t.renderDotItem(c,v)}),h={clipPath:a?"url(#clipPath-".concat(n?"":"dots-").concat(o,")"):null};return vr.default.createElement(Ke,Rd({className:"recharts-area-dots"},h),m)}},{key:"renderHorizontalRect",value:function(a){var n=this.props,o=n.baseLine,i=n.points,s=n.strokeWidth,l=i[0].x,c=i[i.length-1].x,d=a*Math.abs(l-c),u=(0,Uy.default)(i.map(function(f){return f.y||0}
173));return me(o)&&typeof o=="number"?u=Math.max(o,u):o&&Array.isArray(o)&&o.length&&(u=Math.max((0,Uy.default)(o.map(function(f){return f.y||0})),u)),me(u)?vr.default.createElement("rect",{x:l<c?l:l-d,y:0,width:d,height:Math.floor(u+(s?parseInt("".concat(s),10):1))}):null}},{key:"renderVerticalRect",value:function(a){var n=this.props,o=n.baseLine,i=n.points,s=n.strokeWidth,l=i[0].y,c=i[i.length-1].y,d=a*Math.abs(l-c),u=(0,Uy.default)(i.map(function(f){return f.x||0}));return me(o)&&typeof o=="number"?u=Math.max(o,u):o&&Array.isArray(o)&&o.length&&(u=Math.max((0,Uy.default)(o.map(function(f){return f.x||0})),u)),me(u)?vr.default.createElement("rect",{x:0,y:l<c?l:l-d,width:u+(s?parseInt("".concat(s),10):1),height:Math.floor(d)}):null}},{key:"renderClipRect",value:function(a){var n=this.props.layout;return n==="vertical"?this.renderVerticalRect(a):this.renderHorizontalRect(a)}},{key:"renderAreaStatically",value:function(a,n,o,i){var s=this.props,l=s.layout,c=s.type,d=s.stroke,u=s.connectNulls,f=s.isRange,p=s.ref,m=VQ(s,qFe);return vr.default.createElement(Ke,{clipPath:o?"url(#clipPath-".concat(i,")"):null},vr.default.createElement(Vi,Rd({},Ne(m,!0),{points:a,connectNulls:u,type:c,baseLine:n,layout:l,stroke:"none",className:"recharts-area-area"})),d!=="none"&&vr.default.createElement(Vi,Rd({},Ne(this.props,!1),{className:"recharts-area-curve",layout:l,type:c,connectNulls:u,fill:"none",points:a})),d!=="none"&&f&&vr.default.createElement(Vi,Rd({},Ne(this.props,!1),{className:"recharts-area-curve",layout:l,type:c,connectNulls:u,fill:"none",points:n})))}},{key:"renderAreaWithAnimation",value:function(a,n){var o=this,i=this.props,s=i.points,l=i.baseLine,c=i.isAnimationActive,d=i.animationBegin,u=i.animationDuration,f=i.animationEasing,p=i.animationId,m=this.state,h=m.prevPoints,g=m.prevBaseLine;return vr.default.createElement(Gn,{begin:d,duration:u,isActive:c,easing:f,from:{t:0},to:{t:1},key:"area-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(y){var v=y.t;if(h){var x=h.length/s.length,S=s.map(function(C,N){var E=Math.floor(N*x);if(h[E]){var L=h[E],T=Er(L.x,C.x),q=Er(L.y,C.y);return zc(zc({},C),{},{x:T(v),y:q(v)})}return C}),b;if(me(l)&&typeof l=="number"){var w=Er(g,l);b=w(v)}else if((0,NR.default)(l)||(0,zQ.default)(l)){var k=Er(g,0);b=k(v)}else b=l.map(function(C,N){var E=Math.floor(N*x);if(g[E]){var L=g[E],T=Er(L.x,C.x),q=Er(L.y,C.y);return zc(zc({},C),{},{x:T(v),y:q(v)})}return C});return o.renderAreaStatically(S,b,a,n)}return vr.default.createElement(Ke,null,vr.default.createElement("defs",null,vr.default.createElement("clipPath",{id:"animationClipPath-".concat(n)},o.renderClipRect(v))),vr.default.createElement(Ke,{clipPath:"url(#animationClipPath-".concat(n,")")},o.renderAreaStatically(s,l,a,n)))})}},{key:"renderArea",value:function(a,n){var o=this.props,i=o.points,s=o.baseLine,l=o.isAnimationActive,c=this.state,d=c.prevPoints,u=c.prevBaseLine,f=c.totalLength;return l&&i&&i.length&&(!d&&f>0||!(0,IR.default)(d,i)||!(0,IR.default)(u,s))?this.renderAreaWithAnimation(a,n):this.renderAreaStatically(i,s,a,n)}},{key:"render",value:function(){var a,n=this.props,o=n.hide,i=n.dot,s=n.points,l=n.className,c=n.top,d=n.left,u=n.xAxis,f=n.yAxis,p=n.width,m=n.height,h=n.isAnimationActive,g=n.id;if(o||!s||!s.length)return null;var y=this.state.isAnimationFinished,v=s.length===1,x=Me("recharts-area",l),S=u&&u.allowDataOverflow,b=f&&f.allowDataOverflow,w=S||b,k=(0,NR.default)(g)?this.id:g,C=(a=Ne(i,!1))!==null&&a!==void 0?a:{r:3,strokeWidth:2},N=C.r,E=N===void 0?3:N,L=C.strokeWidth,T=L===void 0?2:L,q=cS(i)?i:{},_=q.clipDot,B=_===void 0?!0:_,I=E*2+T;return vr.default.createElement(Ke,{className:x},S||b?vr.default.createElement("defs",null,vr.default.createElement("clipPath",{id:"clipPath-".concat(k)},vr.default.createElement("rect",{x:S?d:d-p/2,y:b?c:c-m/2,width:S?p:p*2,height:b?m:m*2})),!B&&vr.default.createElement("clipPath",{id:"clipPath-dots-".concat(k)},vr.default.createElement("rect",{x:d-I/2,y:c-I/2,width:p+I,height:m+I}))):null,v?null:this.renderArea(w,k),(i||v)&&this.renderDots(w,B,k),(!h||y)&&Wn.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(a,n){return a.animationId!==n.prevAnimationId?{prevAnimationId:a.animationId,curPoints:a.points,curBaseLine:a.baseLine,prevPoints:n.curPoints,prevBaseLine:n.curBaseLine}:a.points!==n.curPoints||a.baseLine!==n.curBaseLine?{curPoints:a.points,curBaseLine:a.baseLine}:null}}])})(vr.PureComponent);BQ=Gi;Ds(Gi,"displayName","Area");Ds(Gi,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendT
173ype:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!la.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});Ds(Gi,"getBaseValue",function(e,t,r,a){var n=e.layout,o=e.baseValue,i=t.props.baseValue,s=i??o;if(me(s)&&typeof s=="number")return s;var l=n==="horizontal"?a:r,c=l.scale.domain();if(l.type==="number"){var d=Math.max(c[0],c[1]),u=Math.min(c[0],c[1]);return s==="dataMin"?u:s==="dataMax"||d<0?d:Math.max(Math.min(c[0],c[1]),0)}return s==="dataMin"?c[0]:s==="dataMax"?c[1]:c[0]});Ds(Gi,"getComposedData",function(e){var t=e.props,r=e.item,a=e.xAxis,n=e.yAxis,o=e.xAxisTicks,i=e.yAxisTicks,s=e.bandSize,l=e.dataKey,c=e.stackedData,d=e.dataStartIndex,u=e.displayedData,f=e.offset,p=t.layout,m=c&&c.length,h=BQ.getBaseValue(t,r,a,n),g=p==="horizontal",y=!1,v=u.map(function(S,b){var w;m?w=c[d+b]:(w=Ht(S,l),Array.isArray(w)?y=!0:w=[h,w]);var k=w[1]==null||m&&Ht(S,l)==null;return g?{x:Nm({axis:a,ticks:o,bandSize:s,entry:S,index:b}),y:k?null:n.scale(w[1]),value:w,payload:S}:{x:k?null:a.scale(w[1]),y:Nm({axis:n,ticks:i,bandSize:s,entry:S,index:b}),value:w,payload:S}}),x;return m||y?x=v.map(function(S){var b=Array.isArray(S.value)?S.value[0]:null;return g?{x:S.x,y:b!=null&&S.y!=null?n.scale(b):null}:{x:b!=null?a.scale(b):null,y:S.y}}):x=g?n.scale(h):a.scale(h),zc({points:v,baseLine:x,layout:p,isRange:y},f)});Ds(Gi,"renderDotItem",function(e,t){var r;if(vr.default.isValidElement(e))r=vr.default.cloneElement(e,t);else if((0,SC.default)(e))r=e(t);else{var a=Me("recharts-area-dot",typeof e!="boolean"?e.className:""),n=t.key,o=VQ(t,zFe);r=vr.default.createElement(Rs,Rd({},o,{key:n,className:a}))}return r});var qy=R(Q());function rh(e){"@babel/helpers - typeof";return rh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rh(e)}function ZFe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HQ(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,$Q(a.key),a)}}function QFe(e,t,r){return t&&HQ(e.prototype,t),r&&HQ(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function eje(e,t,r){return t=CC(t),tje(e,WQ()?Reflect.construct(t,r||[],CC(e).constructor):t.apply(e,r))}function tje(e,t){if(t&&(rh(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rje(e)}function rje(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function WQ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(WQ=function(){return!!e})()}function CC(e){return CC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},CC(e)}function aje(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&PR(e,t)}function PR(e,t){return PR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},PR(e,t)}function GQ(e,t,r){return t=$Q(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $Q(e){var t=nje(e,"string");return rh(t)=="symbol"?t:t+""}function nje(e,t){if(rh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(rh(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ER(){return ER=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},ER.apply(this,arguments)}
vendor: 7,362 bytes, lines 173-174
173function oje(e){var t=e.xAxisId,r=qm(),a=zm(),n=sC(t);return n==null?null:qy.createElement(El,ER({},n,{className:Me("recharts-".concat(n.axisType," ").concat(n.axisType),n.className),viewBox:{x:0,y:0,width:r,height:a},ticksGenerator:function(i){return wo(i,!0)}}))}var Wr=(function(e){function t(){return ZFe(this,t),eje(this,t,arguments)}return aje(t,e),QFe(t,[{key:"render",value:function(){return qy.createElement(oje,this.props)}}])})(qy.Component);GQ(Wr,"displayName","XAxis");GQ(Wr,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});var zy=R(Q());function ah(e){"@babel/helpers - typeof";return ah=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ah(e)}function ije(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KQ(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,JQ(a.key),a)}}function sje(e,t,r){return t&&KQ(e.prototype,t),r&&KQ(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function lje(e,t,r){return t=kC(t),cje(e,XQ()?Reflect.construct(t,r||[],kC(e).constructor):t.apply(e,r))}function cje(e,t){if(t&&(ah(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uje(e)}function uje(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function XQ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(XQ=function(){return!!e})()}function kC(e){return kC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},kC(e)}function dje(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&AR(e,t)}function AR(e,t){return AR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},AR(e,t)}function YQ(e,t,r){return t=JQ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JQ(e){var t=fje(e,"string");return ah(t)=="symbol"?t:t+""}function fje(e,t){if(ah(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(ah(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function LR(){return LR=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},LR.apply(this,arguments)}var pje=function(t){var r=t.yAxisId,a=qm(),n=zm(),o=lC(r);return o==null?null:zy.createElement(El,LR({},o,{className:Me("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:a,height:n},ticksGenerator:function(s){return wo(s,!0)}}))},Gr=(function(e){function t(){return ije(this,t),lje(this,t,arguments)}return dje(t,e),sje(t,[{key:"render",value:function(){return zy.createElement(pje,this.props)}}])})(zy.Component);YQ(Gr,"displayName","YAxis");YQ(Gr,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});var Pt=R(Q()),ih=R(qn()),$i=R(ir()),OC=R(QT()),sh=R(Ac()),xee=R(RS()),wee=R(vL());function ZQ(e){return vje(e)||gje(e)||hje(e)||mje()}function mje(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 174In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hje(e,t){if(e){if(typeof e=="string")return TR(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return TR(e,t)}}function gje(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function vje(e){if(Array.isArray(e))return TR(e)}function TR(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}var NC=function(t,r,a,n,o){var i=qr(t,uC),s=qr(t,_y),l=[].concat(ZQ(i),ZQ(s)),c=qr(t,Fy),d="".concat(n,"Id"),u=n[0],f=r;if(l.length&&(f=l.reduce(function(h,g){if(g.props[d]===a&&Kn(g.props,"extendDomain")&&me(g.props[u])){var y=g.props[u];return[Math.min(h[0],y),Math.max(h[1],y)]}return h},f)),c.length){var p="".concat(u,"1"),m="".concat(u,"2");f=c.reduce(function(h,g){if(g.props[d]===a&&Kn(g.props,"extendDomain")&&me(g.props[p])&&me(g.props[m])){var y=g.props[p],v=g.props[m];return[Math.min(h[0],y,v),Math.max(h[1],y,v)]}return h},f)}return o&&o.length&&(f=o.reduce(function(h,g){return me(g)?[Math.min(h[0],g),Math.max(h[1],g)]:h},f)),f};var tee=R(eee()),PC=new tee.default;var EC="recharts.syncMouseEvents";function Wy(e){"@babel/helpers - typeof";return Wy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wy(e)}function xje(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ree(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,aee(a.key),a)}}function wje(e,t,r){return t&&ree(e.prototype,t),r&&ree(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function OR(e,t,r){return t=aee(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aee(e){var t=Sje(e,"string");return Wy(t)=="symbol"?t:t+""}function Sje(e,t){if(Wy(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(Wy(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var nee=(function(){function e(){xje(this,e),OR(this,"activeIndex",0),OR(this,"coordinateList",[]),OR(this,"layout","horizontal")}return wje(e,[{key:"setDetails",value:function(r){var a,n=r.coordinateList,o=n===void 0?null:n,i=r.container,s=i===void 0?null:i,l=r.layout,c=l===void 0?null:l,d=r.offset,u=d===void 0?null:d,f=r.mouseHandlerCallback,p=f===void 0?null:f;this.coordinateList=(a=o??this.coordinateList)!==null&&a!==void 0?a:[],this.container=s??this.container,this.layout=c??this.layout,this.offset=u??this.offset,this.mouseHandlerCallback=p??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if
174(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}default:break}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,a;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var n=this.container.getBoundingClientRect(),o=n.x,i=n.y,s=n.height,l=this.coordinateList[this.activeIndex].coordinate,c=((r=window)===null||r===void 0?void 0:r.scrollX)||0,d=((a=window)===null||a===void 0?void 0:a.scrollY)||0,u=o+l+c,f=i+this.offset.top+s/2+d;this.mouseHandlerCallback({pageX:u,pageY:f})}}}])})();function oee(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var a=e?.[0],n=e?.[1];if(a&&n&&me(a)&&me(n))return!0}return!1}var nh=R(Q());function iee(e,t,r,a){var n=a/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-n:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-n,width:e==="horizontal"?a:r.width-1,height:e==="horizontal"?r.height-1:a}}function AC(e){var t=e.cx,r=e.cy,a=e.radius,n=e.startAngle,o=e.endAngle,i=bt(t,r,a,n),s=bt(t,r,a,o);return{points:[i,s],cx:t,cy:r,radius:a,startAngle:n,endAngle:o}}function see(e,t,r){var a,n,o,i;if(e==="horizontal")a=t.x,o=a,n=r.top,i=r.top+r.height;else if(e==="vertical")n=t.y,i=n,a=r.left,o=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var s=t.cx,l=t.cy,c=t.innerRadius,d=t.outerRadius,u=t.angle,f=bt(s,l,c,u),p=bt(s,l,d,u);a=f.x,n=f.y,o=p.x,i=p.y}else return AC(t);return[{x:a,y:n},{x:o,y:i}]}function Gy(e){"@babel/helpers - typeof";return Gy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gy(e)}function lee(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function LC(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lee(Object(r),!0).forEach(function(a){Cje(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lee(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function Cje(e,t,r){return t=kje(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kje(e){var t=Nje(e,"string");return Gy(t)=="symbol"?t:t+""}function Nje(e,t){if(Gy(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(Gy(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cee(e){var t,r,a=e.element,n=e.tooltipEventType,o=e.isActive,i=e.activeCoordinate,s=e.activePayload,l=e.offset,c=e.activeTooltipIndex,d=e.tooltipAxisBandSize,u=e.layout,f=e.chartName,p=(t=a.props.cursor)!==null&&t!==void 0?t:(r=a.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!a||!p||!o||!i||f!=="ScatterChart"&&n!=="axis")return null;var m,h=Vi;if(f==="ScatterChart")m=i,h=HY;else if(f==="BarChart")m=iee(u,i,l,d),h=Am;else if(u==="radial"){var g=AC(i),y=g.cx,v=g.cy,x=g.radius,S=g.startAngle,b=g.endAngle;m={cx:y,cy:v,startAngle:S,endAngle:b,innerRadius:x,outerRadius:x},h=j2}else m={points:see(u,i,l)},h=Vi;var w=LC(LC(LC(LC({stroke:"#ccc",pointerEvents:"none"},l),m),Ne(p,!1)),{},{payload:s,payloadIndex:c,className:Me("recharts-tooltip-cursor",p.className)});return(0,nh.isValidElement)(p)?(0,nh.cloneElement)(p,w):(0,nh.createElement)(h,w)}var Ije=["item"],Pje=["children","className","width","height","style","compact","title","desc"];function lh(e){"@babel/helpers - typeof";return lh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lh(e)}function oh(){return oh=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},oh.apply(this,arguments)}function uee(e,t){return Lje(e)||Aje(e,t)||yee(e,t)||Eje()}
vendor: 15,629 bytes, lines 174-176
174function Eje(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 175In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Aje(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a,n,o,i,s=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(a=o.call(r)).done)&&(s.push(a.value),s.length!==t);l=!0);}catch(d){c=!0,n=d}finally{try{if(!l&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw n}}return s}}function Lje(e){if(Array.isArray(e))return e}function dee(e,t){if(e==null)return{};var r=Tje(e,t),a,n;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)a=o[n],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function Tje(e,t){if(e==null)return{};var r={};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;r[a]=e[a]}return r}function Rje(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fee(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,bee(a.key),a)}}function Oje(e,t,r){return t&&fee(e.prototype,t),r&&fee(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dje(e,t,r){return t=RC(t),Mje(e,vee()?Reflect.construct(t,r||[],RC(e).constructor):t.apply(e,r))}function Mje(e,t){if(t&&(lh(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _je(e)}function _je(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vee(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(vee=function(){return!!e})()}function RC(e){return RC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},RC(e)}function Fje(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&DR(e,t)}function DR(e,t){return DR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},DR(e,t)}function ch(e){return Vje(e)||Bje(e)||yee(e)||jje()}function jje(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 176In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yee(e,t){if(e){if(typeof e=="string")return MR(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return MR(e,t)}}function Bje(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Vje(e){if(Array.isArray(e))return MR(e)}function MR(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function pee(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function ie(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pee(Object(r),!0).forEach(function(a){Ze(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pee(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function Ze(e,t,r){return t=bee(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bee(e){var t=Uje(e,"string");return lh(t)=="symbol"?t:t+""}function Uje(e,t){if(lh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(lh(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qje={xAxis:["bottom","top"],yAxis:["left","right"]},zje={width:"100%",height:"100%"},See={x:0,y:0};function TC(e){return e}var Hje=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},Wje=function(t,r,a,n){var o=r.find(function(d){return d&&d.index===a});if(o){if(t==="horizontal")return{x:o.coordinate,y:n.y};if(t==="vertical")return{x:n.x,y:o.coordinate};if(t==="centric"){var i=o.coordinate,s=n.radius;return ie(ie(ie({},n),bt(n.cx,n.cy,s,i)),{},{angle:i,radius:s})}var l=o.coordinate,c=n.angle;return ie(ie(ie({},n),bt(n.cx,n.cy,l,c)),{},{angle:c,radius:l})}return See},DC=function(t,r){var a=r.graphicalItems,n=r.dataStartIndex,o=r.dataEndIndex,i=(a??[]).reduce(function(s,l){var c=l.props.data;return c&&c.length?[].concat(ch(s),ch(c)):s},[]);return i.length>0?i:t&&t.length&&me(n)&&me(o)?t.slice(n,o+1):[]};function Cee(e){return e==="number"?[0,"auto"]:void 0}var _R=function(t,r,a,n){var o=t.graphicalItems,i=t.tooltipAxis,s=DC(r,t);return a<0||!o||!o.length||a>=s.length?null:o.reduce(function(l,c){var d,u=(d=c.props.data)!==null&&d!==void 0?d:r;u&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=a&&(u=u.slice(t.dataStartIndex,t.dataEndIndex+1));var f;if(i.dataKey&&!i.allowDuplicatedCategory){var p=u===void 0?s:u;f=jp(p,i.dataKey,n)}else f=u&&u[a]||s[a];return f?[].concat(ch(l),[O2(c,f)]):l},[])},mee=function(t,r,a,n){var o=n||{x:t.chartX,y:t.chartY},i=Hje(o,a),s=t.orderedTooltipTicks,l=t.tooltipAxis,c=t.tooltipTicks,d=dX(i,s,c,l);if(d>=0&&c){var u=c[d]&&c[d].value,f=_R(t,r,d,u),p=Wje(a,s,d,o);return{activeTooltipIndex:d,activeLabel:u,activePayload:f,activeCoordinate:p}}return null},Gje=function(t,r){var a=r.axes,n=r.graphicalItems,o=r.axisType,i=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,c=r.dataEndIndex,d=t.layout,u=t.children,f=t.stackOffset,p=wT(d,o);return a.reduce(function(m,h){var g,y=h.type.defaultProps!==void 0?ie(ie({},h.type.defaultProps),h.props):h.props,v=y.type,x=y.dataKey,S=y.allowDataOverflow,b=y.allowDuplicatedCategory,w=y.scale,k=y.ticks,C=y.includeHidden,N=y[i];if(m[N])return m;var E=DC(t.data,{graphicalItems:n.filter(function(O){var j,W=i in O.props?O.props[i]:(j=O.type.defaultProps)===null||j===void 0?void 0:j[i];return W===N}),dataStartIndex:l,dataEndIndex:c}),L=E.length,T,q,_;oee(y.domain,S,v)&&(T=R2(y.domain,null,S),p&&(v==="number"||w!=="auto")&&(_=km(E,x,"category")));var B=Cee(v);if(!T||T.length===0){var I,A=(I=y.domain)!==null&&I!==void 0?I:B;if(x){if(T=km(E,x,v),v==="category"&&p){var M=P8(T);b&&M?(q=T,T=(0,OC.default)(0,L)):b||(T=NT(A,T,h).reduce(function(O,j){return O.indexOf(j)>=0?O:[].concat(ch(O),[j])},[]))}else if(v==="category")b?T=T.filter(function(O){return O!==""&&!(0,ih.default)(O)}):T=NT(A,T,h).reduce(function(O,j){return O.indexOf(j)>=0||j===""||(0,ih.default)(j)?O:[].concat(ch(O),[j])},[]);else if(v==="number"){var D=gX(E,n.filter(function(O){var j,W,ee=i in O.props?O.props[i]:(j=O.type.defaultProps)===null||j===void 0?void 0:j[i],oe="hide"in O.props?O.props.hide:(W=O.type.defaultProps)===null||W===void 0?void 0:W.hide;return ee===N&&(C||!oe)}),x,o,d);D&&(T=D)}p&&(v==="number"||w!=="auto")&&(_=km(E,x,"category"))}else p?T=(0,OC.default)(0,L):s&&s[N]&&s[N].hasStack&&v==="number"?T=f==="expand"?[0,1]:kT(s[N].stackGroups,l,c):T=xT(E,n.filter(function(O){var j=i in O.props?O.props[i]:O.type.defaultProps[i],W="hide"in O.props?O.props.hide:O.type.defaultProps.hide;return j===N&&(C||!W)}),v,d,!0);if(v==="number")T=NC(u,T,N,o,k),A&&(T=R2(A,T,S));else if(v==="category"&&A){var V=A,P=T.every(function(O){return V.indexOf(O)>=0});P&&(T=V)}}return ie(ie({},m),{},Ze({},N,ie(ie({},y),{},{axisType:o,domain:T,categoricalDomain:_,duplicateDomain:q,originalDomain:(g=y.domain)!==null&&g!==void 0?g:B,isCategorical:p,layout:d})))},{})},$je=function(t,r){var a=r.graphicalItems,n=r.Axis,o=r.axisType,i=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,c=r.dataEndIndex,d=t.layout,u=t.children,f=DC(t.data,{graphicalItems:a,dataStartIndex:l,dataEndIndex:c}),p=f.length,m=wT(d,o),h=-1;return a.reduce(function(g,y){var v=y.type.defaultProps!==void 0?ie(ie({},y.type.defaultProps),y.props):y.props,x=v[i],S=Cee("number");if(!g[x]){h++;var b;return m?b=(0,OC.default)(0,p):s&&s[x]&&s[x].hasStack?(b=kT(s[x].stackGroups,l,c),b=NC(u,b,x,o)):(b=R2(S,xT(f,a.filter(function(w){var k,C,N=i in w.props?w.props[i]:(k=w.type.defaultProps)===null||k===void 0?void 0:k[i],E="hide"in w.props?w.props.hide:(C=w.type.defaultProps)===null||C===void 0?void 0:C.hide;return N===x&&!E}),"number",d),n.defaultProps.allowDataOverflow),b=NC(u,b,x,o)),ie(ie({},g),{},Ze({},x,ie(ie({axisType:o},n.defaultProps),{},{hide:!0,orientation:(0,sh.default)(qje,"".concat(o,".").concat(h%2),null),domain:b,originalDomain:S,isCategorical:m,layout:d})))}return g},{})},Kje=function(t,r){var a=r.axisType,n=a===void 0?"xAxis":a,o=r.AxisComp,i=r.graphicalItems,s=r.stackGroups,l=r.dataStartIndex,c=r.dataEndIndex,d=t.children,u="".concat(n,"Id"),f=qr(d,o),p={};return f&&f.length?p=Gje(t,{axes:f,graphicalItems:i,axisType:n,axisIdKey:u,stackGroups:s,dataStartIndex:l,dataEndIndex:c}):i&&i.length&&(p=$je(t,{Axis:o,graphicalItems:i,axisType:n,axisIdKey:u,stackGroups:s,dataStartIndex:l,dataEndIndex:c})),p},Xje=function(t){var r=Cs(t),a=wo(r,!1,!0);return{tooltipTicks:a,orderedTooltipTicks:(0,xee.default)(a,function(n){return n.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Im(r,a)}},hee=function(t){var r=t.children,a=t.defaultShowTooltip,n=Qa(r,Ed),o=0,i=0;return t.data&&t.data.length!==0&&(i=t.data.length-1),n&&n.props&&(n.props.startIndex>=0&&(o=n.props.startIndex),n.props.endIndex>=0&&(i=n.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:i,activeTooltipIndex:-1,isTooltipActive:!!a}},Yje=function(t){return!t||!t.length?!1:t.some(function(r){var a=Qo(r&&r.type);return a&&a.indexOf("Bar")>=0})},gee=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},Jje=function(t,r){var a=t.props,n=t.graphicalItems,o=t.xAxisMap,i=o===void 0?{}:o,s=t.yAxisMap,l=s===void 0?{}:s,c=a.width,d=a.height,u=a.children,f=a.margin||{},p=Qa(u,Ed),m=Qa(u,ni),h=Object.keys(l).reduce(function(b,w){var k=l[w],C=k.orientation;return!k.mirror&&!k.hide?ie(ie({},b),{},Ze({},C,b[C]+k.width)):b},{left:f.left||0,right:f.right||0}),g=Object.keys(i).reduce(function(b,w){var k=i[w],C=k.orientation;return!k.mirror&&!k.hide?ie(ie({},b),{},Ze({},C,(0,sh.default)(b,"".concat(C))+k.height)):b},{top:f.top||0,bottom:f.bottom||0}),y=ie(ie({},g),h),v=y.bottom;p&&(y.bottom+=p.props.height||Ed.defaultProps.height),m&&r&&(y=mX(y,n,a,r));var x=c-y.left-y.right,S=d-y.top-y.bottom;return ie(ie({brushBottom:v},y),{},{width:Math.max(x,0),height:Math.max(S,0)})},Zje=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},Hc=function(t){var r=t.chartName,a=t.GraphicalChild,n=t.defaultTooltipEventType,o=n===void 0?"axis":n,i=t.validateTooltipEventTypes,s=i===void 0?["axis"]:i,l=t.axisComponents,c=t.legendContent,d=t.formatAxisMap,u=t.defaultProps,f=function(y,v){var x=v.graphicalItems,S=v.stackGroups,b=v.offset,w=v.updateId,k=v.dataStartIndex,C=v.dataEndIndex,N=y.barSize,E=y.layout,L=y.barGap,T=y.barCategoryGap,q=y.maxBarSize,_=gee(E),B=_.numericAxisName,I=_.cateAxisName,A=Yje(x),M=[];return x.forEach(function(D,V){var P=DC(y.data,{graphicalItems:[D],dataStartIndex:k,dataEndIndex:C}),O=D.type.defaultProps!==void 0?ie(ie({},D.type.defaultProps),D.props):D.props,j=O.dataKey,W=O.maxBarSize,ee=O["".concat(B,"Id")],oe=O["".concat(I,"Id")],he={},Le=l.reduce(function(Pn,yr){var pa,br,wh=v["".concat(yr.axisType,"Map")],Zc=O["".concat(yr.axisType,"Id")];wh&&wh[Zc]||yr.axisType==="zAxis"||so(!1);var ib=wh[Zc];return ie(ie({},Pn),{},Ze(Ze({},yr.axisType,ib),"".concat(yr.axisType,"Ticks"),wo(ib)))},he),ae=Le[I],Oe=Le["".concat(I,"Ticks")],ue=S&&S[ee]&&S[ee].hasStack&&wX(D,S[ee].stackGroups),Y=Qo(D.type).indexOf("Bar")>=0,st=Im(ae,Oe),Ge=[],Rt=A&&fX({barSize:N,stackGroups:S,totalSize:Zje(Le,I)});if(Y){var Et,Qt,ln=(0,ih.default)(W)?q:W,_t=(Et=(Qt=Im(ae,Oe,!0))!==null&&Qt!==void 0?Qt:ln)!==null&&Et!==void 0?Et:0;Ge=pX({barGap:L,barCategoryGap:T,bandSize:_t!==st?_t:st,sizeList:Rt[oe],maxBarSize:ln}),_t!==st&&(Ge=Ge.map(function(Pn){return ie(ie({},Pn),{},{position:ie(ie({},Pn.position),{},{offset:Pn.position.offset-_t/2})})}))}var pi=D&&D.type&&D.type.getComposedData;pi&&M.push({props:ie(ie({},pi(ie(ie({},Le),{},{displayedData:P,props:y,dataKey:j,item:D,bandSize:st,barPosition:Ge,offset:b,stackedData:ue,layout:E,dataStartIndex:k,dataEndIndex:C}))),{},Ze(Ze(Ze({key:D.key||"item-".concat(V)},B,Le[B]),I,Le[I]),"animationId",w)),childIndex:U8(D,y.children),item:D})}),M},p=function(y,v){var x=y.props,S=y.dataStartIndex,b=y.dataEndIndex,w=y.updateId;if(!GA({props:x}))return null;var k=x.children,C=x.layout,N=x.stackOffset,E=x.data,L=x.reverseStackOrder,T=gee(C),q=T.numericAxisName,_=T.cateAxisName,B=qr(k,a),I=bX(E,B,"".concat(q,"Id"),"".concat(_,"Id"),N,L),A=l.reduce(function(O,j){var W="".concat(j.axisType,"Map");return ie(ie({},O),{},Ze({},W,Kje(x,ie(ie({},j),{},{graphicalItems:B,stackGroups:j.axisType===q&&I,dataStartIndex:S,dataEndIndex:b}))))},{}),M=Jje(ie(ie({},A),{},{props:x,graphicalItems:B}),v?.legendBBox);Object.keys(A).forEach(function(O){A[O]=d(x,A[O],M,O.replace("Map",""),r)});var D=A["".concat(_,"Map")],V=Xje(D),P=f(x,ie(ie({},A),{},{dataStartIndex:S,dataEndIndex:b,updateId:w,graphicalItems:B,stackGroups:I,offset:M}));return ie(ie({formattedGraphicalItems:P,graphicalItems:B,offset:M,stackGroups:I},V),A)},m=(function(g){function y(v){var x,S,b;return Rje(this,y),b=Dje(this,y,[v]),Ze(b,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Ze(b,"accessibilityManager",new nee),Ze(b,"handleLegendBBoxUpdate",function(w){if(w){var k=b.state,C=k.dataStartIndex,N=k.dataEndIndex,E=k.updateId;b.setState(ie({legendBBox:w},p({props:b.props,dataStartIndex:C,dataEndIndex:N,updateId:E},ie(ie({},b.state),{},{legendBBox:w}))))}}),Ze(b,"handleReceiveSyncEvent",function(w,k,C){if(b.props.syncId===w){if(C===b.eventEmitterSymbol&&typeof b.props.syncMethod!="function")return;b.applySyncEvent(k)}}),Ze(b,"handleBrushChange",function(w){var k=w.startIndex,C=w.endIndex;if(k!==b.state.dataStartIndex||C!==b.state.dataEndIndex){var N=b.state.updateId;b.setState(function(){return ie({dataStartIndex:k,dataEndIndex:C},p({props:b.props,dataStartIndex:k,dataEndIndex:C,updateId:N},b.state))}),b.triggerSyncEvent({dataStartIndex:k,dataEndIndex:C})}}),Ze(b,"handleMouseEnter",function(w){var k=b.getMouseInfo(w);if(k){var C=ie(ie({},k),{},{isTooltipActive:!0});b.setState(C),b.triggerSyncEvent(C);var N=b.props.onMouseEnter;(0,$i.default)(N)&&N(C,w)}}),Ze(b,"triggeredAfterMouseMove",function(w){var k=b.getMouseInfo(w),C=k?ie(ie({},k),{},{isTooltipActive:!0}):{isTooltipActive:!1};b.setState(C),b.triggerSyncEvent(C);var N=b.props.onMouseMove;(0,$i.default)(N)&&N(C,w)}),Ze(b,"handleItemMouseEnter",function(w){b.setState(function(){return{isTooltipActive:!0,activeItem:w,activePayload:w.tooltipPayload,activeCoordinate:w.tooltipPosition||{x:w.cx,y:w.cy}}})}),Ze(b,"handleItemMouseLeave",function(){b.setState(function(){return{isTooltipActive:!1}})}
176),Ze(b,"handleMouseMove",function(w){w.persist(),b.throttleTriggeredAfterMouseMove(w)}),Ze(b,"handleMouseLeave",function(w){b.throttleTriggeredAfterMouseMove.cancel();var k={isTooltipActive:!1};b.setState(k),b.triggerSyncEvent(k);var C=b.props.onMouseLeave;(0,$i.default)(C)&&C(k,w)}),Ze(b,"handleOuterEvent",function(w){var k=V8(w),C=(0,sh.default)(b.props,"".concat(k));if(k&&(0,$i.default)(C)){var N,E;/.*touch.*/i.test(k)?E=b.getMouseInfo(w.changedTouches[0]):E=b.getMouseInfo(w),C((N=E)!==null&&N!==void 0?N:{},w)}}),Ze(b,"handleClick",function(w){var k=b.getMouseInfo(w);if(k){var C=ie(ie({},k),{},{isTooltipActive:!0});b.setState(C),b.triggerSyncEvent(C);var N=b.props.onClick;(0,$i.default)(N)&&N(C,w)}}),Ze(b,"handleMouseDown",function(w){var k=b.props.onMouseDown;if((0,$i.default)(k)){var C=b.getMouseInfo(w);k(C,w)}}),Ze(b,"handleMouseUp",function(w){var k=b.props.onMouseUp;if((0,$i.default)(k)){var C=b.getMouseInfo(w);k(C,w)}}),Ze(b,"handleTouchMove",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&b.throttleTriggeredAfterMouseMove(w.changedTouches[0])}),Ze(b,"handleTouchStart",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&b.handleMouseDown(w.changedTouches[0])}),Ze(b,"handleTouchEnd",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&b.handleMouseUp(w.changedTouches[0])}),Ze(b,"handleDoubleClick",function(w){var k=b.props.onDoubleClick;if((0,$i.default)(k)){var C=b.getMouseInfo(w);k(C,w)}}),Ze(b,"handleContextMenu",function(w){var k=b.props.onContextMenu;if((0,$i.default)(k)){var C=b.getMouseInfo(w);k(C,w)}}),Ze(b,"triggerSyncEvent",function(w){b.props.syncId!==void 0&&PC.emit(EC,b.props.syncId,w,b.eventEmitterSymbol)}),Ze(b,"applySyncEvent",function(w){var k=b.props,C=k.layout,N=k.syncMethod,E=b.state.updateId,L=w.dataStartIndex,T=w.dataEndIndex;if(w.dataStartIndex!==void 0||w.dataEndIndex!==void 0)b.setState(ie({dataStartIndex:L,dataEndIndex:T},p({props:b.props,dataStartIndex:L,dataEndIndex:T,updateId:E},b.state)));else if(w.activeTooltipIndex!==void 0){var q=w.chartX,_=w.chartY,B=w.activeTooltipIndex,I=b.state,A=I.offset,M=I.tooltipTicks;if(!A)return;if(typeof N=="function")B=N(M,w);else if(N==="value"){B=-1;for(var D=0;D<M.length;D++)if(M[D].value===w.activeLabel){B=D;break}}var V=ie(ie({},A),{},{x:A.left,y:A.top}),P=Math.min(q,V.x+V.width),O=Math.min(_,V.y+V.height),j=M[B]&&M[B].value,W=_R(b.state,b.props.data,B),ee=M[B]?{x:C==="horizontal"?M[B].coordinate:P,y:C==="horizontal"?O:M[B].coordinate}:See;b.setState(ie(ie({},w),{},{activeLabel:j,activeCoordinate:ee,activePayload:W,activeTooltipIndex:B}))}else b.setState(w)}),Ze(b,"renderCursor",function(w){var k,C=b.state,N=C.isTooltipActive,E=C.activeCoordinate,L=C.activePayload,T=C.offset,q=C.activeTooltipIndex,_=C.tooltipAxisBandSize,B=b.getTooltipEventType(),I=(k=w.props.active)!==null&&k!==void 0?k:N,A=b.props.layout,M=w.key||"_recharts-cursor";return Pt.default.createElement(cee,{key:M,activeCoordinate:E,activePayload:L,activeTooltipIndex:q,chartName:r,element:w,isActive:I,layout:A,offset:T,tooltipAxisBandSize:_,tooltipEventType:B})}),Ze(b,"renderPolarAxis",function(w,k,C){var N=(0,sh.default)(w,"type.axisType"),E=(0,sh.default)(b.state,"".concat(N,"Map")),L=w.type.defaultProps,T=L!==void 0?ie(ie({},L),w.props):w.props,q=E&&E[T["".concat(N,"Id")]];return(0,Pt.cloneElement)(w,ie(ie({},q),{},{className:Me(N,q.className),key:w.key||"".concat(k,"-").concat(C),ticks:wo(q,!0)}))}),Ze(b,"renderPolarGrid",function(w){var k=w.props,C=k.radialLines,N=k.polarAngles,E=k.polarRadius,L=b.state,T=L.radiusAxisMap,q=L.angleAxisMap,_=Cs(T),B=Cs(q),I=B.cx,A=B.cy,M=B.innerRadius,D=B.outerRadius;return(0,Pt.cloneElement)(w,{polarAngles:Array.isArray(N)?N:wo(B,!0).map(function(V){return V.coordinate}),polarRadius:Array.isArray(E)?E:wo(_,!0).map(function(V){return V.coordinate}),cx:I,cy:A,innerRadius:M,outerRadius:D,key:w.key||"polar-grid",radialLines:C})}),Ze(b,"renderLegend",function(){var w=b.state.formattedGraphicalItems,k=b.props,C=k.children,N=k.width,E=k.height,L=b.props.margin||{},T=N-(L.left||0)-(L.right||0),q=P2({children:C,formattedGraphicalItems:w,legendWidth:T,legendContent:c});if(!q)return null;var _=q.item,B=dee(q,Ije);return(0,Pt.cloneElement)(_,ie(ie({},B),{}
176,{chartWidth:N,chartHeight:E,margin:L,onBBoxUpdate:b.handleLegendBBoxUpdate}))}),Ze(b,"renderTooltip",function(){var w,k=b.props,C=k.children,N=k.accessibilityLayer,E=Qa(C,lr);if(!E)return null;var L=b.state,T=L.isTooltipActive,q=L.activeCoordinate,_=L.activePayload,B=L.activeLabel,I=L.offset,A=(w=E.props.active)!==null&&w!==void 0?w:T;return(0,Pt.cloneElement)(E,{viewBox:ie(ie({},I),{},{x:I.left,y:I.top}),active:A,label:B,payload:A?_:[],coordinate:q,accessibilityLayer:N})}),Ze(b,"renderBrush",function(w){var k=b.props,C=k.margin,N=k.data,E=b.state,L=E.offset,T=E.dataStartIndex,q=E.dataEndIndex,_=E.updateId;return(0,Pt.cloneElement)(w,{key:w.key||"_recharts-brush",onChange:oy(b.handleBrushChange,w.props.onChange),data:N,x:me(w.props.x)?w.props.x:L.left,y:me(w.props.y)?w.props.y:L.top+L.height+L.brushBottom-(C.bottom||0),width:me(w.props.width)?w.props.width:L.width,startIndex:T,endIndex:q,updateId:"brush-".concat(_)})}),Ze(b,"renderReferenceElement",function(w,k,C){if(!w)return null;var N=b,E=N.clipPathId,L=b.state,T=L.xAxisMap,q=L.yAxisMap,_=L.offset,B=w.type.defaultProps||{},I=w.props,A=I.xAxisId,M=A===void 0?B.xAxisId:A,D=I.yAxisId,V=D===void 0?B.yAxisId:D;return(0,Pt.cloneElement)(w,{key:w.key||"".concat(k,"-").concat(C),xAxis:T[M],yAxis:q[V],viewBox:{x:_.left,y:_.top,width:_.width,height:_.height},clipPathId:E})}),Ze(b,"renderActivePoints",function(w){var k=w.item,C=w.activePoint,N=w.basePoint,E=w.childIndex,L=w.isRange,T=[],q=k.props.key,_=k.item.type.defaultProps!==void 0?ie(ie({},k.item.type.defaultProps),k.item.props):k.item.props,B=_.activeDot,I=_.dataKey,A=ie(ie({index:E,dataKey:I,cx:C.x,cy:C.y,r:4,fill:ty(k.item),strokeWidth:2,stroke:"#fff",payload:C.payload,value:C.value},Ne(B,!1)),Qu(B));return T.push(y.renderActiveDot(B,A,"".concat(q,"-activePoint-").concat(E))),N?T.push(y.renderActiveDot(B,ie(ie({},A),{},{cx:N.x,cy:N.y}),"".concat(q,"-basePoint-").concat(E))):L&&T.push(null),T}),Ze(b,"renderGraphicChild",function(w,k,C){var N=b.filterFormatItem(w,k,C);if(!N)return null;var E=b.getTooltipEventType(),L=b.state,T=L.isTooltipActive,q=L.tooltipAxis,_=L.activeTooltipIndex,B=L.activeLabel,I=b.props.children,A=Qa(I,lr),M=N.props,D=M.points,V=M.isRange,P=M.baseLine,O=N.item.type.defaultProps!==void 0?ie(ie({},N.item.type.defaultProps),N.item.props):N.item.props,j=O.activeDot,W=O.hide,ee=O.activeBar,oe=O.activeShape,he=!!(!W&&T&&A&&(j||ee||oe)),Le={};E!=="axis"&&A&&A.props.trigger==="click"?Le={onClick:oy(b.handleItemMouseEnter,w.props.onClick)}:E!=="axis"&&(Le={onMouseLeave:oy(b.handleItemMouseLeave,w.props.onMouseLeave),onMouseEnter:oy(b.handleItemMouseEnter,w.props.onMouseEnter)});var ae=(0,Pt.cloneElement)(w,ie(ie({},N.props),Le));function Oe(yr){return typeof q.dataKey=="function"?q.dataKey(yr.payload):null}if(he)if(_>=0){var ue,Y;if(q.dataKey&&!q.allowDuplicatedCategory){var st=typeof q.dataKey=="function"?Oe:"payload.".concat(q.dataKey.toString());ue=jp(D,st,B),Y=V&&P&&jp(P,st,B)}else ue=D?.[_],Y=V&&P&&P[_];if(oe||ee){var Ge=w.props.activeIndex!==void 0?w.props.activeIndex:_;return[(0,Pt.cloneElement)(w,ie(ie(ie({},N.props),Le),{},{activeIndex:Ge})),null,null]}if(!(0,ih.default)(ue))return[ae].concat(ch(b.renderActivePoints({item:N,activePoint:ue,basePoint:Y,childIndex:_,isRange:V})))}else{var Rt,Et=(Rt=b.getItemByXY(b.state.activeCoordinate))!==null&&Rt!==void 0?Rt:{graphicalItem:ae},Qt=Et.graphicalItem,ln=Qt.item,_t=ln===void 0?w:ln,pi=Qt.childIndex,Pn=ie(ie(ie({},N.props),Le),{},{activeIndex:pi});return[(0,Pt.cloneElement)(_t,Pn),null,null]}return V?[ae,null,null]:[ae,null]}),Ze(b,"renderCustomized",function(w,k,C){return(0,Pt.cloneElement)(w,ie(ie({key:"recharts-customized-".concat(C)},b.props),b.state))}),Ze(b,"renderMap",{CartesianGrid:{handler:TC,once:!0},ReferenceArea:{handler:b.renderReferenceElement},ReferenceLine:{handler:TC},ReferenceDot:{handler:b.renderReferenceElement},XAxis:{handler:TC},YAxis:{handler:TC},Brush:{handler:b.renderBrush,once:!0},Bar:{handler:b.renderGraphicChild},Line:{handler:b.renderGraphicChild},Area:{handler:b.renderGraphicChild},Radar:{handler:b.renderGraphicChild},RadialBar:{handler:b.renderGraphicChild},Scatter:{handler:b.renderGraphicChild},Pie:{handler:b.renderGraphicChild},Funnel:{handler:b.renderGraphicChild},Tooltip:{handler:b.renderCursor,once:!0},PolarGrid:{handler:b.renderPolarGrid,once:!0},PolarAngleAxis:{handler:b.renderPolarAxis},PolarRadiusAxis:{handler:b.renderPolarAxis},Customized:{handler:b.renderCustomized}}),b.clipPathId="".concat((x=v.id)!==null&&x!==void 0?x:zn("recharts"),"-clip"),b.throttleTriggeredAfterMouseMove=(0,wee.default)(b.triggeredAfterMouseMove,(S=v.throttleDelay)!==null&&S!==void 0?S:1e3/60),b.state={},b}
vendor: 6,754 bytes, line 176
176return Fje(y,g),Oje(y,[{key:"componentDidMount",value:function(){var x,S;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(S=this.props.margin.top)!==null&&S!==void 0?S:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var x=this.props,S=x.children,b=x.data,w=x.height,k=x.layout,C=Qa(S,lr);if(C){var N=C.props.defaultIndex;if(!(typeof N!="number"||N<0||N>this.state.tooltipTicks.length-1)){var E=this.state.tooltipTicks[N]&&this.state.tooltipTicks[N].value,L=_R(this.state,b,N,E),T=this.state.tooltipTicks[N].coordinate,q=(this.state.offset.top+w)/2,_=k==="horizontal",B=_?{x:T,y:q}:{y:T,x:q},I=this.state.formattedGraphicalItems.find(function(M){var D=M.item;return D.type.name==="Scatter"});I&&(B=ie(ie({},B),I.props.points[N].tooltipPosition),L=I.props.points[N].tooltipPayload);var A={activeTooltipIndex:N,isTooltipActive:!0,activeLabel:E,activePayload:L,activeCoordinate:B};this.setState(A),this.renderCursor(C),this.accessibilityManager.setIndex(N)}}}},{key:"getSnapshotBeforeUpdate",value:function(x,S){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==S.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==x.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==x.margin){var b,w;this.accessibilityManager.setDetails({offset:{left:(b=this.props.margin.left)!==null&&b!==void 0?b:0,top:(w=this.props.margin.top)!==null&&w!==void 0?w:0}})}return null}},{key:"componentDidUpdate",value:function(x){uS([Qa(x.children,lr)],[Qa(this.props.children,lr)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var x=Qa(this.props.children,lr);if(x&&typeof x.props.shared=="boolean"){var S=x.props.shared?"axis":"item";return s.indexOf(S)>=0?S:o}return o}},{key:"getMouseInfo",value:function(x){if(!this.container)return null;var S=this.container,b=S.getBoundingClientRect(),w=XG(b),k={chartX:Math.round(x.pageX-w.left),chartY:Math.round(x.pageY-w.top)},C=b.width/S.offsetWidth||1,N=this.inRange(k.chartX,k.chartY,C);if(!N)return null;var E=this.state,L=E.xAxisMap,T=E.yAxisMap,q=this.getTooltipEventType(),_=mee(this.state,this.props.data,this.props.layout,N);if(q!=="axis"&&L&&T){var B=Cs(L).scale,I=Cs(T).scale,A=B&&B.invert?B.invert(k.chartX):null,M=I&&I.invert?I.invert(k.chartY):null;return ie(ie({},k),{},{xValue:A,yValue:M},_)}return _?ie(ie({},k),_):null}},{key:"inRange",value:function(x,S){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,w=this.props.layout,k=x/b,C=S/b;if(w==="horizontal"||w==="vertical"){var N=this.state.offset,E=k>=N.left&&k<=N.left+N.width&&C>=N.top&&C<=N.top+N.height;return E?{x:k,y:C}:null}var L=this.state,T=L.angleAxisMap,q=L.radiusAxisMap;if(T&&q){var _=Cs(T);return PT({x:k,y:C},_)}return null}},{key:"parseEventsOfWrapper",value:function(){var x=this.props.children,S=this.getTooltipEventType(),b=Qa(x,lr),w={};b&&S==="axis"&&(b.props.trigger==="click"?w={onClick:this.handleClick}:w={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var k=Qu(this.props,this.handleOuterEvent);return ie(ie({},k),w)}},{key:"addListener",value:function(){PC.on(EC,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){PC.removeListener(EC,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(x,S,b){for(var w=this.state.formattedGraphicalItems,k=0,C=w.length;k<C;k++){var N=w[k];if(N.item===x||N.props.key===x.key||S===Qo(N.item.type)&&b===N.childIndex)return N}return null}},{key:"renderClipPath",value:function(){var x=this.clipPathId,S=this.state.offset,b=S.left,w=S.top,k=S.height,C=S.width;return Pt.default.createElement("defs",null,Pt.default.createElement("clipPath",{id:x},Pt.default.createElement("rect",{x:b,y:w,height:k,width:C})))}},{key:"getXScales",value:function(){var x=this.state.xAxisMap;return x?Object.entries(x).reduce(function(S,b){var w=uee(b,2),k=w[0],C=w[1];return ie(ie({},S),{},Ze({},k,C.scale))},{}):null}},{key:"getYScales",value:function(){var x=this.state.yAxisMap;return x?Object.entries(x).reduce(function(S,b){var w=uee(b,2),k=w[0],C=w[1];return ie(ie({},S),{},Ze({},k,C.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(x){var S;return(S=this.state.xAxisMap)===null||S===void 0||(S=S[x])===null||S===void 0?void 0:S.scale}},{key:"getYScaleByAxisId",value:function(x){var S;return(S=this.state.yAxisMap)===null||S===void 0||(S=S[x])===null||S===void 0?void 0:S.scale}},{key:"getItemByXY",value:function(x){var S=this.state,b=S.formattedGraphicalItems,w=S.activeItem;if(b&&b.length)for(var k=0,C=b.length;k<C;k++){var N=b[k],E=N.props,L=N.item,T=L.type.defaultProps!==void 0?ie(ie({},L.type.defaultProps),L.props):L.props,q=Qo(L.type);if(q==="Bar"){var _=(E.data||[]).find(function(M){return FY(x,M)});if(_)return{graphicalItem:N,payload:_}}else if(q==="RadialBar"){var B=(E.data||[]).find(function(M){return PT(x,M)});if(B)return{graphicalItem:N,payload:B}}else if(Ly(N,w)||Ty(N,w)||Dm(N,w)){var I=PJ({graphicalItem:N,activeTooltipItem:w,itemData:T.data}),A=T.activeIndex===void 0?I:T.activeIndex;return{graphicalItem:ie(ie({},N),{},{childIndex:A}),payload:Dm(N,w)?T.data[I]:N.props.data[I]}}}return null}},{key:"render",value:function(){var x=this;if(!GA(this))return null;var S=this.props,b=S.children,w=S.className,k=S.width,C=S.height,N=S.style,E=S.compact,L=S.title,T=S.desc,q=dee(S,Pje),_=Ne(q,!1);if(E)return Pt.default.createElement(uR,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},Pt.default.createElement(fv,oh({},_,{width:k,height:C,title:L,desc:T}),this.renderClipPath(),$A(b,this.renderMap)));if(this.props.accessibilityLayer){var B,I;_.tabIndex=(B=this.props.tabIndex)!==null&&B!==void 0?B:0,_.role=(I=this.props.role)!==null&&I!==void 0?I:"application",_.onKeyDown=function(M){x.accessibilityManager.keyboardEvent(M)},_.onFocus=function(){x.accessibilityManager.focus()}}var A=this.parseEventsOfWrapper();return Pt.default.createElement(uR,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},Pt.default.createElement("div",oh({className:Me("recharts-wrapper",w),style:ie({position:"relative",curs
176or:"default",width:k,height:C},N)},A,{ref:function(D){x.container=D}}),Pt.default.createElement(fv,oh({},_,{width:k,height:C,title:L,desc:T,style:zje}),this.renderClipPath(),$A(b,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(Pt.Component);Ze(m,"displayName",r),Ze(m,"defaultProps",ie({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},u)),Ze(m,"getDerivedStateFromProps",function(g,y){var v=g.dataKey,x=g.data,S=g.children,b=g.width,w=g.height,k=g.layout,C=g.stackOffset,N=g.margin,E=y.dataStartIndex,L=y.dataEndIndex;if(y.updateId===void 0){var T=hee(g);return ie(ie(ie({},T),{},{updateId:0},p(ie(ie({props:g},T),{},{updateId:0}),y)),{},{prevDataKey:v,prevData:x,prevWidth:b,prevHeight:w,prevLayout:k,prevStackOffset:C,prevMargin:N,prevChildren:S})}if(v!==y.prevDataKey||x!==y.prevData||b!==y.prevWidth||w!==y.prevHeight||k!==y.prevLayout||C!==y.prevStackOffset||!xl(N,y.prevMargin)){var q=hee(g),_={chartX:y.chartX,chartY:y.chartY,isTooltipActive:y.isTooltipActive},B=ie(ie({},mee(y,x,k)),{},{updateId:y.updateId+1}),I=ie(ie(ie({},q),_),B);return ie(ie(ie({},I),p(ie({props:g},I),y)),{},{prevDataKey:v,prevData:x,prevWidth:b,prevHeight:w,prevLayout:k,prevStackOffset:C,prevMargin:N,prevChildren:S})}if(!uS(S,y.prevChildren)){var A,M,D,V,P=Qa(S,Ed),O=P&&(A=(M=P.props)===null||M===void 0?void 0:M.startIndex)!==null&&A!==void 0?A:E,j=P&&(D=(V=P.props)===null||V===void 0?void 0:V.endIndex)!==null&&D!==void 0?D:L,W=O!==E||j!==L,ee=!(0,ih.default)(x),oe=ee&&!W?y.updateId:y.updateId+1;return ie(ie({updateId:oe},p(ie(ie({props:g},y),{},{updateId:oe,dataStartIndex:O,dataEndIndex:j}),y)),{},{prevChildren:S,dataStartIndex:O,dataEndIndex:j})}return null}),Ze(m,"renderActiveDot",function(g,y,v){var x;return(0,Pt.isValidElement)(g)?x=(0,Pt.cloneElement)(g,y):(0,$i.default)(g)?x=g(y):x=Pt.default.createElement(Rs,y),Pt.default.createElement(Ke,{className:"recharts-active-dot",key:v},x)});var h=(0,Pt.forwardRef)(function(y,v){return Pt.default.createElement(m,oh({},y,{ref:v}))});return h.displayName=m.displayName,h};var Od=Hc({chartName:"LineChart",GraphicalChild:No,axisComponents:[{axisType:"xAxis",AxisComp:Wr},{axisType:"yAxis",AxisComp:Gr}],formatAxisMap:Vm});var Dd=Hc({chartName:"BarChart",GraphicalChild:kn,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Wr},{axisType:"yAxis",AxisComp:Gr}],formatAxisMap:Vm});var $y=Hc({chartName:"PieChart",GraphicalChild:$n,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Py},{axisType:"radiusAxis",AxisComp:Iy}],formatAxisMap:EX,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});var FR=Hc({chartName:"AreaChart",GraphicalChild:Gi,axisComponents:[{axisType:"xAxis",AxisComp:Wr},{axisType:"yAxis",AxisComp:Gr}],formatAxisMap:Vm});var Fe=R(ke()),Qje=({url:e,method:t,headers:r,payload:a})=>{let[n,o]=Ky.useState(!1),[i,s]=Ky.useState(10),[l,c]=Ky.useState([]),[d,u]=Ky.useState(null),f=async()=>{if(!e){$.error("Please enter a URL");return}o(!0),c([]),u(null);let m=[];for(let v=0;v<i;v++){let x=Date.now();try{let S=200+Math.random()*300,b=(Math.random()-.5)*100,w=Math.max(50,S+b);await new Promise(E=>setTimeout(E,w));let k=Date.now()-x,C=Math.random()>.05,N={iteration:v+1,responseTime:k,status:C?200:500,timestamp:new Date};m.push(N),c([...m]),await new Promise(E=>setTimeout(E,100))}catch(S){console.error("Test iteration failed:",S)}}let h=m.map(v=>v.responseTime).sort((v,x)=>v-x),g=m.filter(v=>v.status===200).length,y={min:Math.min(...h),max:Math.max(...h),avg:Math.round(h.reduce((v,x)=>v+x,0)/h.length),median:h[Math.floor(h.length/2)],p95:h[Math.floor(h.length*.95)],p99:h[Math.floor(h.length*.99)],successRate:g/m.length*100};u(y),o(!1),$.success(`Performance test completed: ${i} iterations`)},p=l.map(m=>({iteration:m.iteration,responseTime:m.responseTime,status:m.status}));return(0,Fe.jsxs)("div",{className:"space-y-6",children:[(0,Fe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Fe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Fe.jsx)(Br,{className:"w-5 h-5 text-cyan-400"}),(0,Fe.jsx)("h3",{className:"text-lg font-semibold text-white",children:"Performance Testing"})]}),(0,Fe.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Fe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Fe.jsx)("label",{className:"text-sm text-slate-400",children:"Iterations:"}),(0,Fe.jsx)("input",{type:"number",value:i,onChange:m=>s(Math.max(1,Math.min(100,parseInt(m.target.value)||10))),min:"1",max:"100",disabled:n,className:"w-20 bg-black/30 border border-white/10 rounded px-3 py-1.5 text-sm text-white focus:outline-none focus:ring-2 focus:ring-cyan-500/50 disabled:opacity-50"})]}),(0,Fe.jsx)("button",{onClick:f,disabled:n,className:"flex items-center gap-2 px-4 py-2 rounded-lg bg-gradient-to-r from-cyan-500 to-blue-500 text-white font-medium hover:opacity-90 transition-opacity disabled:opacity-50 disabled:cursor-not-allowed",children:n?(0,Fe.jsxs)(Fe.Fragment,{children:[(0,Fe.jsx)(xa,{className:"w-4 h-4 animate-spin"}),"Running ",l.length,"/",i]}):(0,Fe.jsxs)(Fe.Fragment,{children:[(0,Fe.jsx)(Nr,{className:"w-4 h-4"}),"Run Test"]})})]})]}),d&&(0,Fe.jsxs)(G.div,{initial:{opacity:0,y:20}
176,animate:{opacity:1,y:0},className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[(0,Fe.jsxs)("div",{className:"rounded-lg bg-gradient-to-br from-green-500/20 to-emerald-500/20 border border-green-500/30 p-4",children:[(0,Fe.jsx)("p",{className:"text-xs text-green-400 mb-1",children:"Min Response"}),(0,Fe.jsxs)("p",{className:"text-2xl font-bold text-white",children:[d.min,"ms"]})]}),(0,Fe.jsxs)("div",{className:"rounded-lg bg-gradient-to-br from-blue-500/20 to-cyan-500/20 border border-blue-500/30 p-4",children:[(0,Fe.jsx)("p",{className:"text-xs text-blue-400 mb-1",children:"Avg Response"}),(0,Fe.jsxs)("p",{className:"text-2xl font-bold text-white",children:[d.avg,"ms"]})]}),(0,Fe.jsxs)("div",{className:"rounded-lg bg-gradient-to-br from-orange-500/20 to-amber-500/20 border border-orange-500/30 p-4",children:[(0,Fe.jsx)("p",{className:"text-xs text-orange-400 mb-1",children:"P95 Response"}),(0,Fe.jsxs)("p",{className:"text-2xl font-bold text-white",children:[d.p95,"ms"]})]}),(0,Fe.jsxs)("div",{className:"rounded-lg bg-gradient-to-br from-red-500/20 to-rose-500/20 border border-red-500/30 p-4",children:[(0,Fe.jsx)("p",{className:"text-xs text-red-400 mb-1",children:"Max Response"}),(0,Fe.jsxs)("p",{className:"text-2xl font-bold text-white",children:[d.max,"ms"]})]}),(0,Fe.jsxs)("div",{className:"rounded-lg bg-gradient-to-br from-purple-500/20 to-pink-500/20 border border-purple-500/30 p-4",children:[(0,Fe.jsx)("p",{className:"text-xs text-purple-400 mb-1",children:"Median"}),(0,Fe.jsxs)("p",{className:"text-2xl font-bold text-white",children:[d.median,"ms"]})]}),(0,Fe.jsxs)("div",{className:"rounded-lg bg-gradient-to-br from-indigo-500/20 to-violet-500/20 border border-indigo-500/30 p-4",children:[(0,Fe.jsx)("p",{className:"text-xs text-indigo-400 mb-1",children:"P99 Response"}),(0,Fe.jsxs)("p",{className:"text-2xl font-bold text-white",children:[d.p99,"ms"]})]}),(0,Fe.jsxs)("div",{className:"rounded-lg bg-gradient-to-br from-teal-500/20 to-cyan-500/20 border border-teal-500/30 p-4",children:[(0,Fe.jsx)("p",{className:"text-xs text-teal-400 mb-1",children:"Success Rate"}),(0,Fe.jsxs)("p",{className:"text-2xl font-bold text-white",children:[d.successRate.toFixed(1),"%"]})]}),(0,Fe.jsxs)("div",{className:"rounded-lg bg-gradient-to-br from-slate-500/20 to-gray-500/20 border border-slate-500/30 p-4",children:[(0,Fe.jsx)("p",{className:"text-xs text-slate-400 mb-1",children:"Total Tests"}),(0,Fe.jsx)("p",{className:"text-2xl font-bold text-white",children:l.length})]})]}),l.length>0&&(0,Fe.jsxs)(G.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"rounded-2xl backdrop-blur-xl bg-white/5 border border-white/10 p-6",children:[(0,Fe.jsx)("h4",{className:"text-sm font-medium text-white mb-4",children:"Response Time Trend"}),(0,Fe.jsx)(xn,{width:"100%",height:300,children:(0,Fe.jsxs)(Od,{data:p,children:[(0,Fe.jsx)(Xn,{strokeDasharray:"3 3",stroke:"#ffffff10"}),(0,Fe.jsx)(Wr,{dataKey:"iteration",stroke:"#94a3b8",tick:{fill:"#94a3b8",fontSize:12}}),(0,Fe.jsx)(Gr,{stroke:"#94a3b8",tick:{fill:"#94a3b8",fontSize:12},label:{value:"Response Time (ms)",angle:-90,position:"insideLeft",fill:"#94a3b8"}}),(0,Fe.jsx)(lr,{contentStyle:{backgroundColor:"rgba(0, 0, 0, 0.9)",border:"1px solid rgba(255, 255, 255, 0.1)",borderRadius:"8px",color:"#fff"}}),(0,Fe.jsx)(ni,{}),(0,Fe.jsx)(No,{type:"monotone",dataKey:"responseTime",stroke:"#06b6d4",strokeWidth:2,dot:{fill:"#06b6d4",r:4},activeDot:{r:6},name:"Response Time (ms)"})]})})]}),l.length>0&&(0,Fe.jsxs)(G.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:"rounded-2xl backdrop-blur-xl bg-white/5 border border-white/10 p-6",children:[(0,Fe.jsx)("h4",{className:"text-sm font-medium text-white mb-4",children:"Response Time Distribution"}),(0,Fe.jsx)(xn,{width:"100%",height:300,children:(0,Fe.jsxs)(Dd,{data:p,children:[(0,Fe.jsx)(Xn,{strokeDasharray:"3 3",stroke:"#ffffff10"}),(0,Fe.jsx)(Wr,{dataKey:"iteration",stroke:"#94a3b8",tick:{fill:"#94a3b8",fontSize:12}}),(0,Fe.jsx)(Gr,{stroke:"#94a3b8",tick:{fill:"#94a3b8",fontSize:12},label:{value:"Response Time (ms)",angle:-90,position:"insideLeft",fill:"#94a3b8"}}),(0,Fe.jsx)(lr,{contentStyle:{backgroundColor:"rgba(0, 0, 0, 0.9)",border:"1px solid rgba(255, 255, 255, 0.1)",borderRadius:"8px",color:"#fff"}}),(0,Fe.jsx)(ni,{}),(0,Fe.jsx)(kn,{dataKey:"responseTime",fill:"#8b5cf6",radius:[8,8,0,0],name:"Response Time (ms)"})]})})]}),l.length===0&&!n&&(0,Fe.jsxs)("div",{className:"text-center py-12 rounded-xl bg-white/5 border border-white/10",children:[(0,Fe.jsx)(Br,{className:"w-12 h-12 text-slate-400 mx-auto mb-4"}),(0,Fe.jsx)("p",{className:"text-white font-medium",children:"No performance data yet"}),(0,Fe.jsx)("p",{className:"text-slate-400 text-sm mt-2",children:"Run a performance test to see response time trends"})]})]})},kee=Qje;var Ar=R(Q());var Tl=R(Q(),1);var SEt=!!(typeof window<"u"&&window.document&&window.document.createElement);function $r(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}var ui=R(Q(),1),jR=R(ke(),1);function Nee(e,t){let r=ui.createContext(t),a=o=>{let{children:i,...s}=o,l=ui.useMemo(()=>s,Object.values(s));return(0,jR.jsx)(r.Provider,{value:l,children:i})};a.displayName=e+"Provider";function n(o){let i=ui.useContext(r);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return[a,n]}function Wc(e,t=[]){let r=[];function a(o,i){let s=ui.createContext(i),l=r.length;r=[...r,i];let c=u=>{let{scope:f,children:p,...m}=u,h=f?.[e]?.[l]||s,g=ui.useMemo(()=>m,Object.values(m));return(0,jR.jsx)(h.Provider,{value:g,children:p})};c.displayName=o+"Provider";function d(u,f){let p=f?.[e]?.[l]||s,m=ui.useContext(p);if(m)return m;if(i!==void 0)return i;throw new Error(`\`${u}\` must be used within \`${o}\``)}return[c,d]}let n=()=>{let o=r.map(i=>ui.createContext(i));return function(s){let l=s?.[e]||o;return ui.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return n.scopeName=e,[a,eBe(n,...t)]}function eBe(...e){let t=e[0];if(e.length===1)return t;let r=()=>{let a=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(o){let i=a.reduce((s,{useScope:l,scopeName:c}
vendor: 9,266 bytes, line 176
176)=>{let u=l(o)[`__scope${c}`];return{...s,...u}},{});return ui.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}var Pa=R(Q(),1);var Gc=R(Q(),1);var Pee=R(Q(),1);function Iee(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function BR(...e){return t=>{let r=!1,a=e.map(n=>{let o=Iee(n,t);return!r&&typeof o=="function"&&(r=!0),o});if(r)return()=>{for(let n=0;n<a.length;n++){let o=a[n];typeof o=="function"?o():Iee(e[n],null)}}}}function an(...e){return Pee.useCallback(BR(...e),e)}var fa=R(Q(),1);var MC=R(ke(),1);function Md(e){let t=tBe(e),r=fa.forwardRef((a,n)=>{let{children:o,...i}=a,s=fa.Children.toArray(o),l=s.find(aBe);if(l){let c=l.props.children,d=s.map(u=>u===l?fa.Children.count(c)>1?fa.Children.only(null):fa.isValidElement(c)?c.props.children:null:u);return(0,MC.jsx)(t,{...i,ref:n,children:fa.isValidElement(c)?fa.cloneElement(c,void 0,d):null})}return(0,MC.jsx)(t,{...i,ref:n,children:o})});return r.displayName=`${e}.Slot`,r}function tBe(e){let t=fa.forwardRef((r,a)=>{let{children:n,...o}=r;if(fa.isValidElement(n)){let i=oBe(n),s=nBe(o,n.props);return n.type!==fa.Fragment&&(s.ref=a?BR(a,i):i),fa.cloneElement(n,s)}return fa.Children.count(n)>1?fa.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var rBe=Symbol("radix.slottable");function aBe(e){return fa.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===rBe}function nBe(e,t){let r={...t};for(let a in t){let n=e[a],o=t[a];/^on[A-Z]/.test(a)?n&&o?r[a]=(...s)=>{let l=o(...s);return n(...s),l}:n&&(r[a]=n):a==="style"?r[a]={...n,...o}:a==="className"&&(r[a]=[n,o].filter(Boolean).join(" "))}return{...e,...r}}function oBe(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var _C=R(ke(),1),iBe=R(Q(),1);var sBe=R(ke(),1);function Eee(e){let t=e+"CollectionProvider",[r,a]=Wc(t),[n,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),i=h=>{let{scope:g,children:y}=h,v=Gc.default.useRef(null),x=Gc.default.useRef(new Map).current;return(0,_C.jsx)(n,{scope:g,itemMap:x,collectionRef:v,children:y})};i.displayName=t;let s=e+"CollectionSlot",l=Md(s),c=Gc.default.forwardRef((h,g)=>{let{scope:y,children:v}=h,x=o(s,y),S=an(g,x.collectionRef);return(0,_C.jsx)(l,{ref:S,children:v})});c.displayName=s;let d=e+"CollectionItemSlot",u="data-radix-collection-item",f=Md(d),p=Gc.default.forwardRef((h,g)=>{let{scope:y,children:v,...x}=h,S=Gc.default.useRef(null),b=an(g,S),w=o(d,y);return Gc.default.useEffect(()=>(w.itemMap.set(S,{ref:S,...x}),()=>{w.itemMap.delete(S)})),(0,_C.jsx)(f,{[u]:"",ref:b,children:v})});p.displayName=d;function m(h){let g=o(e+"CollectionConsumer",h);return Gc.default.useCallback(()=>{let v=g.collectionRef.current;if(!v)return[];let x=Array.from(v.querySelectorAll(`[${u}]`));return Array.from(g.itemMap.values()).sort((w,k)=>x.indexOf(w.ref.current)-x.indexOf(k.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:i,Slot:c,ItemSlot:p},m,a]}var VR=R(Q(),1);var Aee=R(Q(),1),Al=globalThis?.document?Aee.useLayoutEffect:()=>{};var lBe=VR[" useId ".trim().toString()]||(()=>{}),cBe=0;function $c(e){let[t,r]=VR.useState(lBe());return Al(()=>{e||r(a=>a??String(cBe++))},[e]),e||(t?`radix-${t}`:"")}var Lee=R(Q(),1),Tee=R(hu(),1);var Ree=R(ke(),1),uBe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Kr=uBe.reduce((e,t)=>{let r=Md(`Primitive.${t}`),a=Lee.forwardRef((n,o)=>{let{asChild:i,...s}=n,l=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,Ree.jsx)(l,{...s,ref:o})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{});function Oee(e,t){e&&Tee.flushSync(()=>e.dispatchEvent(t))}var uh=R(Q(),1);function Ms(e){let t=uh.useRef(e);return uh.useEffect(()=>{t.current=e}),uh.useMemo(()=>(...r)=>t.current?.(...r),[])}var di=R(Q(),1);var FC=R(Q(),1);var dBe=di[" useInsertionEffect ".trim().toString()]||Al;function dh({prop:e,defaultProp:t,onChange:r=()=>{},caller:a}){let[n,o,i]=fBe({defaultProp:t,onChange:r}),s=e!==void 0,l=s?e:n;{let d=di.useRef(e!==void 0);di.useEffect(()=>{let u=d.current;u!==s&&console.warn(`${a} is changing from ${u?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=s},[s,a])}let c=di.useCallback(d=>{if(s){let u=pBe(d)?d(e):d;u!==e&&i.current?.(u)}else o(d)},[s,e,o,i]);return[l,c]}function fBe({defaultProp:e,onChange:t}){let[r,a]=di.useState(e),n=di.useRef(r),o=di.useRef(t);return dBe(()=>{o.current=t},[t]),di.useEffect(()=>{n.current!==r&&(o.current?.(r),n.current=r)},[r,n]),[r,a,o]}function pBe(e){return typeof e=="function"}var jC=R(Q(),1),mBe=R(ke(),1),hBe=jC.createContext(void 0);function BC(e){let t=jC.useContext(hBe);return e||t||"ltr"}var Kc=R(ke(),1),UR="rovingFocusGroup.onEntryFocus",gBe={bubbles:!1,cancelable:!0},Xy="RovingFocusGroup",[qR,Dee,vBe]=Eee(Xy),[yBe,zR]=Wc(Xy,[vBe]),[bBe,xBe]=yBe(Xy),Mee=Pa.forwardRef((e,t)=>(0,Kc.jsx)(qR.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,Kc.jsx)(qR.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,Kc.jsx)(wBe,{...e,ref:t})})}));Mee.displayName=Xy;var wBe=Pa.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:a,loop:n=!1,dir:o,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:d=!1,...u}=e,f=Pa.useRef(null),p=an(t,f),m=BC(o),[h,g]=dh({prop:i,defaultProp:s??null,onChange:l,caller:Xy}),[y,v]=Pa.useState(!1),x=Ms(c),S=Dee(r),b=Pa.useRef(!1),[w,k]=Pa.useState(0);return Pa.useEffect(()=>{let C=f.current;if(C)return C.addEventListener(UR,x),()=>C.removeEventListener(UR,x)},[x]),(0,Kc.jsx)(bBe,{scope:r,orientation:a,dir:m,loop:n,currentTabStopId:h,onItemFocus:Pa.useCallback(C=>g(C),[g]),onItemShiftTab:Pa.useCallback(()=>v(!0),[]),onFocusableItemAdd:Pa.useCallback(()=>k(C=>C+1),[]),onFocusableItemRemove:Pa.useCallback(()=>k(C=>C-1),[]),children:(0,Kc.jsx)(Kr.div,{tabIndex:y||w===0?-1:0,"data-orientation":a,...u,ref:p,style:{outline:"none",...e.style},onMouseDown:$r(e.onMouseDown,()=>{b.current=!0}),onFocus:$r(e.onFocus,C=>{let N=!b.current;if(C.target===C.currentTarget&&N&&!y){let E=new CustomEvent(UR,gBe);if(C.currentTarget.dispatchEvent(E),!E.defaultPrevented){let L=S().filter(I=>I.focusable),T=L.find(I=>I.active),q=L.find(I=>I.id===h),B=[T,q,...L].filter(Boolean).map(I=>I.ref.current);jee(B,d)}}b.current=!1}),onBlur:$r(e.onBlur,()=>v(!1))})})}),_ee="RovingFocusGroupItem",Fee=Pa.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:a=!0,active:n=!1,tabStopId:o,children:i,...s}=e,l=$c(),c=o||l,d=xBe(_ee,r),u=d.currentTabStopId===c,f=Dee(r),{onFocusableItemAdd:p,onFocusableItemRemove:m,currentTabStopId:h}=d;return Pa.useEffect(()=>{if(a)return p(),()=>m()},[a,p,m]),(0,Kc.jsx)(qR.ItemSlot,{scope:r,id:c,focusable:a,active:n,children:(0,Kc.jsx)(Kr.span,{tabIndex:u?0:-1,"data-orientation":d.orientation,...s,ref:t,onMouseDown:$r(e.onMouseDown,g=>{a?d.onItemFocus(c):g.preventDefault()}),onFocus:$r(e.onFocus,()=>d.onItemFocus(c)),onKeyDown:$r(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){d.onItemShiftTab();return}if(g.target!==g.currentTarget)return;let y=kBe(g,d.orientation,d.dir);if(y!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let x=f().filter(S=>S.focusable).map(S=>S.ref.current);if(y==="last")x.reverse();else if(y==="prev"||y==="next"){y==="prev"&&x.reverse();let S=x.indexOf(g.currentTarget);x=d.loop?NBe(x,S+1):x.slice(S+1)}setTimeout(()=>jee(x))}}),children:typeof i=="function"?i({isCurrentTabStop:u,hasTabStop:h!=null}):i})})});Fee.displayName=_ee;var SBe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function CBe(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function kBe(e,t,r){let a=CBe(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(a))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(a)))return SBe[a]}function jee(e,t=!1){let r=document.activeElement;for(let a of e)if(a===r||(a.focus({preventScroll:t}),document.activeElement!==r))return}function NBe(e,t){return e.map((r,a)=>e[(t+a)%e.length])}var Bee=Mee,Vee=Fee;var Yn=R(Q(),1);var Uee=R(Q(),1);function PBe(e,t){return Uee.useReducer((r,a)=>t[r][a]??r,e)}var _d=e=>{let{present:t,children:r}=e,a=EBe(t),n=typeof r=="function"?r({present:a.isPresent}):Yn.Children.only(r),o=an(a.ref,ABe(n));return typeof r=="function"||a.isPresent?Yn.cloneElement(n,{ref:o}):null};_d.displayName="Presence";function EBe(e){let[t,r]=Yn.useState(),a=Yn.useRef(null),n=Yn.useRef(e),o=Yn.useRef("none"),i=e?"mounted":"unmounted",[s,l]=PBe(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return Yn.useEffect(()=>{let c=VC(a.current);o.current=s==="mounted"?c:"none"},[s]),Al(()=>{let c=a.current,d=n.current;if(d!==e){let f=o.current,p=VC(c);
176e?l("MOUNT"):p==="none"||c?.display==="none"?l("UNMOUNT"):l(d&&f!==p?"ANIMATION_OUT":"UNMOUNT"),n.current=e}},[e,l]),Al(()=>{if(t){let c,d=t.ownerDocument.defaultView??window,u=p=>{let h=VC(a.current).includes(CSS.escape(p.animationName));if(p.target===t&&h&&(l("ANIMATION_END"),!n.current)){let g=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},f=p=>{p.target===t&&(o.current=VC(a.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:Yn.useCallback(c=>{a.current=c?getComputedStyle(c):null,r(c)},[])}}function VC(e){return e?.animationName||"none"}function ABe(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Ll=R(ke(),1),UC="Tabs",[LBe,sAt]=Wc(UC,[zR]),qee=zR(),[TBe,HR]=LBe(UC),zee=Tl.forwardRef((e,t)=>{let{__scopeTabs:r,value:a,onValueChange:n,defaultValue:o,orientation:i="horizontal",dir:s,activationMode:l="automatic",...c}=e,d=BC(s),[u,f]=dh({prop:a,onChange:n,defaultProp:o??"",caller:UC});return(0,Ll.jsx)(TBe,{scope:r,baseId:$c(),value:u,onValueChange:f,orientation:i,dir:d,activationMode:l,children:(0,Ll.jsx)(Kr.div,{dir:d,"data-orientation":i,...c,ref:t})})});zee.displayName=UC;var Hee="TabsList",Wee=Tl.forwardRef((e,t)=>{let{__scopeTabs:r,loop:a=!0,...n}=e,o=HR(Hee,r),i=qee(r);return(0,Ll.jsx)(Bee,{asChild:!0,...i,orientation:o.orientation,dir:o.dir,loop:a,children:(0,Ll.jsx)(Kr.div,{role:"tablist","aria-orientation":o.orientation,...n,ref:t})})});Wee.displayName=Hee;var Gee="TabsTrigger",$ee=Tl.forwardRef((e,t)=>{let{__scopeTabs:r,value:a,disabled:n=!1,...o}=e,i=HR(Gee,r),s=qee(r),l=Yee(i.baseId,a),c=Jee(i.baseId,a),d=a===i.value;return(0,Ll.jsx)(Vee,{asChild:!0,...s,focusable:!n,active:d,children:(0,Ll.jsx)(Kr.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":c,"data-state":d?"active":"inactive","data-disabled":n?"":void 0,disabled:n,id:l,...o,ref:t,onMouseDown:$r(e.onMouseDown,u=>{!n&&u.button===0&&u.ctrlKey===!1?i.onValueChange(a):u.preventDefault()}),onKeyDown:$r(e.onKeyDown,u=>{[" ","Enter"].includes(u.key)&&i.onValueChange(a)}),onFocus:$r(e.onFocus,()=>{let u=i.activationMode!=="manual";!d&&!n&&u&&i.onValueChange(a)})})})});$ee.displayName=Gee;var Kee="TabsContent",Xee=Tl.forwardRef((e,t)=>{let{__scopeTabs:r,value:a,forceMount:n,children:o,...i}=e,s=HR(Kee,r),l=Yee(s.baseId,a),c=Jee(s.baseId,a),d=a===s.value,u=Tl.useRef(d);return Tl.useEffect(()=>{let f=requestAnimationFrame(()=>u.current=!1);return()=>cancelAnimationFrame(f)},[]),(0,Ll.jsx)(_d,{present:n||d,children:({present:f})=>(0,Ll.jsx)(Kr.div,{"data-state":d?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":l,hidden:!f,id:c,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:u.current?"0s":void 0},children:f&&o})})});Xee.displayName=Kee;function Yee(e,t){return`${e}-trigger-${t}`}function Jee(e,t){return`${e}-content-${t}`}var fh=zee,ph=Wee,Io=$ee,Po=Xee;var Eo=R(Q());var KR=async()=>{let e=await crypto.subtle.generateKey({name:"AES-GCM",length:256},!0,["encrypt","decrypt"]),t=await crypto.subtle.exportKey("raw",e);return mh(t)},Zee=()=>crypto.getRandomValues(new Uint8Array(12)),XR=async(e,t)=>{try{let a=new TextEncoder().encode(e),n=Zee(),o=Fd(t),i=await crypto.subtle.importKey("raw",o,{name:"AES-GCM"},!1,["encrypt"]),s=await crypto.subtle.encrypt({name:"AES-GCM",iv:n},i,a);return{encrypted:mh(s),iv:mh(n)}}catch(r){throw new Error(`AES encryption failed: ${r instanceof Error?r.message:"Unknown error"}`)}},YR=async(e,t,r)=>{try{let a=Fd(e),n=Fd(r),o=Fd(t),i=await crypto.subtle.importKey("raw",o,{name:"AES-GCM"}
176,!1,["decrypt"]),s=await crypto.subtle.decrypt({name:"AES-GCM",iv:n},i,a);return{decrypted:new TextDecoder().decode(s),success:!0}}catch(a){return{decrypted:"",success:!1,error:a instanceof Error?a.message:"Decryption failed"}}},Qee=async()=>{let e=await crypto.subtle.generateKey({name:"RSA-OAEP",modulusLength:2048,publicExponent:new Uint8Array([1,0,1]),hash:"SHA-256"},!0,["encrypt","decrypt"]),t=await crypto.subtle.exportKey("spki",e.publicKey),r=await crypto.subtle.exportKey("pkcs8",e.privateKey);return{publicKey:GR(t),privateKey:GR(r)}},JR=async(e,t)=>{try{let a=new TextEncoder().encode(e),n=$R(t),o=await crypto.subtle.importKey("spki",n,{name:"RSA-OAEP",hash:"SHA-256"},!1,["encrypt"]),i=await crypto.subtle.encrypt({name:"RSA-OAEP"},o,a);return{encrypted:GR(i)}}catch(r){throw new Error(`RSA encryption failed: ${r instanceof Error?r.message:"Unknown error"}`)}},ZR=async(e,t)=>{try{let r=$R(e),a=$R(t),n=await crypto.subtle.importKey("pkcs8",a,{name:"RSA-OAEP",hash:"SHA-256"},!1,["decrypt"]),o=await crypto.subtle.decrypt({name:"RSA-OAEP"},n,r);return{decrypted:new TextDecoder().decode(o),success:!0}}catch(r){return{decrypted:"",success:!1,error:r instanceof Error?r.message:"Decryption failed"}}},mh=e=>Array.from(new Uint8Array(e)).map(t=>t.toString(16).padStart(2,"0")).join(""),Fd=e=>{let t=new Uint8Array(e.length/2);for(let r=0;r<e.length;r+=2)t[r/2]=parseInt(e.substr(r,2),16);return t.buffer},GR=e=>{let t=new Uint8Array(e),r="";for(let a=0;a<t.byteLength;a++)r+=String.fromCharCode(t[a]);return btoa(r)},$R=e=>{let t=atob(e),r=new Uint8Array(t.length);for(let a=0;a<t.length;a++)r[a]=t.charCodeAt(a);return r.buffer},ete=async(e,t)=>{let r=await KR(),a=await XR(e,r),n=await JR(r,t);return{encrypted:a.encrypted,iv:a.iv,key:n.encrypted}},tte=async(e,t,r,a)=>{try{let n=await ZR(t,a);return n.success?await YR(e,n.decrypted,r):n}catch(n){return{decrypted:"",success:!1,error:n instanceof Error?n.message:"Hybrid decryption failed"}}},rte=async(e,t)=>{let r=new TextEncoder,a=r.encode(t),n=await crypto.subtle.importKey("raw",a,{name:"PBKDF2"},!1,["deriveBits","deriveKey"]),o=crypto.getRandomValues(new Uint8Array(16)),i=await crypto.subtle.deriveKey({name:"PBKDF2",salt:o,iterations:1e5,hash:"SHA-256"},n,{name:"AES-GCM",length:256},!1,["encrypt"]),s=Zee(),l=r.encode(e),c=await crypto.subtle.encrypt({name:"AES-GCM",iv:s},i,l);return{encrypted:mh(c),iv:mh(s),key:mh(o)}},ate=async(e,t,r,a)=>{try{let o=new TextEncoder().encode(t),i=await crypto.subtle.importKey("raw",o,{name:"PBKDF2"},!1,["deriveBits","deriveKey"]),s=Fd(a),l=await crypto.subtle.deriveKey({name:"PBKDF2",salt:s,iterations:1e5,hash:"SHA-256"},i,{name:"AES-GCM",length:256},!1,["decrypt"]),c=Fd(e),d=Fd(r),u=await crypto.subtle.decrypt({name:"AES-GCM",iv:d},l,c);return{decrypted:new TextDecoder().decode(u),success:!0}}catch(n){return{decrypted:"",success:!1,error:n instanceof Error?n.message:"Decryption failed"}}};var QR=class{events=[];maxEvents=1e3;storageKey="webhook-audit-log";constructor(){this.loadFromStorage()}loadFromStorage(){try{let t=localStorage.getItem(this.storageKey);if(t){let r=JSON.parse(t);this.events=r.map(a=>({...a,timestamp:new Date(a.timestamp)}))}}catch(t){console.error("Failed to load audit log:",t)}}saveToStorage(){try{localStorage.setItem(this.storageKey,JSON.stringify(this.events))}catch(t){console.error("Failed to save audit log:",t)}}log(t,r,a={},n="info"){let o={id:this.generateId(),timestamp:new Date,type:t,severity:n,message:r,details:a,ipAddress:this.getClientIP(),userAgent:navigator.userAgent};return this.events.unshift(o),this.events.length>this.maxEvents&&(this.events=this.events.slice(0,this.maxEvents)),this.saveToStorage(),o}logSignatureGenerated(t,r){this.log("signature_generated",`HMAC signature generated using ${t}`,{algorithm:t,includeTimestamp:r},"info")}logSignatureVerified(t,r){this.log("signature_verified",t?"Signature verification passed":"Signature verification failed",{success:t,algorithm:r},t?"info":"warning")}logEncryption(t,r){this.log("encryption_performed",`Payload encrypted using ${t}`,{method:t,success:r},"info")}logDecryption(t,r){this.log("decryption_performed",r?`Payload decrypted using ${t}`:`Decryption failed using ${t}`,{method:t,success:r},r?"info":"error")}logReplayAttack(t,r){this.log(t?"replay_attack_detected":"replay_attack_prevented",t?"Replay attack detected and blocked":"Replay attack check passed",{nonce:r,detected:t},t?"critical":"info")}logIPWhitelist(t,r){this.log("ip_whitelist_check",r?`IP ${t} is whitelisted`:`IP ${t} blocked (not in whitelist)`,{ip:t,allowed:r},r?"info":"warning")}logRateLimit(t,r,a,n){this.log(r?"rate_limit_exceeded":"rate_limit_check",r?`Rate limit exceeded for ${t}`:`Rate limit check passed for ${t}`,{identifier:t,count:a,limit:n,exceeded:r},r?"warning":"info")}logWebhookSent(t,r,a){this.log("webhook_sent",`Webhook sent to ${t}`,{url:t,method:r,statusCode:a},a>=200&&a<300?"info":"error")}logSecurityTest(t,r,a){this.log(r?"security_test_passed":"security_test_failed",`Security test "${t}" ${r?"passed":"failed"}`,{testName:t,...a},r?"info":"warning")}getEvents(t){let r=[...this.events];return t?.type&&(r=r.filter(a=>a.type===t.type)),t?.severity&&(r=r.filter(a=>
176a.severity===t.severity)),t?.startDate&&(r=r.filter(a=>a.timestamp>=t.startDate)),t?.endDate&&(r=r.filter(a=>a.timestamp<=t.endDate)),t?.limit&&(r=r.slice(0,t.limit)),r}getStats(){let t={},r={};this.events.forEach(s=>{t[s.type]=(t[s.type]||0)+1,r[s.severity]=(r[s.severity]||0)+1});let a=this.events.filter(s=>s.type==="replay_attack_detected"||s.type==="rate_limit_exceeded"||s.severity==="critical").length,n=this.events.filter(s=>s.type==="security_test_passed"||s.type==="security_test_failed"),o=n.filter(s=>s.type==="security_test_passed").length,i=n.length>0?o/n.length*100:0;return{totalEvents:this.events.length,byType:t,bySeverity:r,recentEvents:this.events.slice(0,10),securityIncidents:a,successRate:i}}exportToJSON(){return JSON.stringify(this.events,null,2)}exportToCSV(){let t=["Timestamp","Type","Severity","Message","IP Address","Details"],r=this.events.map(a=>[a.timestamp.toISOString(),a.type,a.severity,a.message,a.ipAddress||"N/A",JSON.stringify(a.details)]);return[t.join(","),...r.map(a=>a.map(n=>`"${n}"`).join(","))].join(` 177`)}exportToMarkdown(){let t=this.getStats();return["# Security Audit Log","",`Generated: ${new Date().toLocaleString()}`,"","## Summary Statistics","",`- **Total Events**: ${t.totalEvents}`,`- **Security Incidents**: ${t.securityIncidents}`,`- **Success Rate**: ${t.successRate.toFixed(1)}%`,"","### Events by Type","",...Object.entries(t.byType).map(([r,a])=>`- **${r}**: ${a}`),"","### Events by Severity","",...Object.entries(t.bySeverity).map(([r,a])=>`- **${r}**: ${a}`),"","## Recent Events","",...t.recentEvents.map(r=>[`### ${r.message}`,"",`**Time**: ${r.timestamp.toLocaleString()}`,`**Type**: ${r.type}`,`**Severity**: ${r.severity}`,`**IP**: ${r.ipAddress||"N/A"}`,"","**Details**:","```json",JSON.stringify(r.details,null,2),"```","","---",""]).flat()].join(` 178`)}clear(){this.events=[],this.saveToStorage()}generateId(){return`${Date.now()}-${Math.random().toString(36).substr(2,9)}`}getClientIP(){return"127.0.0.1"}},In=new QR;var Ie=R(ke()),RBe=({payload:e,onEncryptedPayload:t})=>{let[r,a]=Eo.useState("encrypt"),[n,o]=Eo.useState("aes"),[i,s]=Eo.useState(""),[l,c]=Eo.useState(""),[d,u]=Eo.useState(""),[f,p]=Eo.useState(""),[m,h]=Eo.useState(""),[g,y]=Eo.useState(""),[v,x]=Eo.useState(""),[S,b]=Eo.useState(""),[w,k]=Eo.useState(!1),[C,N]=Eo.useState(""),E=async()=>{try{let B=await KR();s(B),$.success("AES-256 key generated")}catch{$.error("Failed to generate AES key")}},L=async()=>{try{k(!0);let{publicKey:B,privateKey:I}=await Qee();u(B),p(I),$.success("RSA-2048 key pair generated")}catch{$.error("Failed to generate RSA keys")}finally{k(!1)}},T=async()=>{N(""),k(!0);try{let B;switch(n){case"aes":if(!i)throw new Error("AES key is required");B=await XR(e,i),x(B.encrypted),c(B.iv),In.logEncryption("AES-256-GCM",!0);break;case"rsa":if(!d)throw new Error("RSA public key is required");B=await JR(e,d),x(B.encrypted),In.logEncryption("RSA-2048-OAEP",!0);break;case"hybrid":if(!d)throw new Error("RSA public key is required");B=await ete(e,d),x(B.encrypted),c(B.iv),s(B.key),In.logEncryption("Hybrid (RSA + AES)",!0);break;case"password":if(!m)throw new Error("Password is required");B=await rte(e,m),x(B.encrypted),c(B.iv),y(B.key),In.logEncryption("Password-based (PBKDF2 + AES)",!0);break}t(B.encrypted),$.success("Payload encrypted successfully")}catch(B){let I=B instanceof Error?B.message:"Encryption failed";N(I),In.logEncryption(n.toUpperCase(),!1),$.error(I)}finally{k(!1)}},q=async()=>{N(""),k(!0);try{let B;switch(n){case"aes":if(!i||!l)throw new Error("AES key and IV are required");B=await YR(v,i,l);break;case"rsa":if(!f)throw new Error("RSA private key is required");B=await ZR(v,f);break;case"hybrid":if(!f||!l||!i)throw new Error("RSA private key, encrypted AES key, and IV are required");B=await tte(v,i,l,f);break;case"password":if(!m||!l||!g)throw new Error("Password, IV, and salt are required");B=await ate(v,m,l,g);break;default:throw new Error("Unknown decryption method")}if(!B.success)throw new Error(B.error||"Decryption failed");b(B.decrypted),In.logDecryption(n.toUpperCase(),!0),$.success("Payload decrypted successfully")}catch(B){let I=B instanceof Error?B.message:"Decryption failed";N(I),In.logDecryption(n.toUpperCase(),!1),$.error(I)}finally{k(!1)}},_=(B,I)=>{navigator.clipboard.writeText(B),$.success(`${I} copied to clipboard`)};return(0,Ie.jsxs)("div",{className:"space-y-6",children:[(0,Ie.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ie.jsx)(Ra,{className:"w-5 h-5 text-cyan-400"}),(0,Ie.jsx)("h3",{className:"text-lg font-semibold text-white",children:"Payload Encryption"})]}),(0,Ie.jsxs)("div",{className:"flex gap-2",children:[(0,Ie.jsxs)("button",{onClick:()=>a("encrypt"),className:U("flex-1 px-4 py-2 rounded-lg text-sm font-medium transition-colors",r==="encrypt"?"bg-gradient-to-r from-cyan-500 to-blue-500 text-white":"bg-white/5 text-slate-400 hover:bg-white/10"),children:[(0,Ie.jsx)(Ra,{className:"w-4 h-4 inline mr-2"}),"Encrypt"]}),(0,Ie.jsxs)("button",{onClick:()=>a("decrypt"),className:U("flex-1 px-4 py-2 rounded-lg text-sm font-medium transition-colors",r==="decrypt"?"bg-gradient-to-r from-purple-500 to-pink-500 text-white":"bg-white/5 text-slate-400 hover:bg-white/10"),children:[(0,Ie.jsx)(cl,{className:"w-4 h-4 inline mr-2"}),"Decrypt"]})]}),(0,Ie.jsxs)("div",{className:"rounded-2xl backdrop-blur-xl bg-white/5 border border-white/10 p-6 space-y-4",children:[(0,Ie.jsx)("h4",{className:"text-sm font-medium text-white",children:"Encryption Method"}),(0,Ie.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,Ie.jsx)("button",{onClick:()=>o("aes"),className:U("px-4 py-2 rounded-lg text-sm font-medium transition-colors",n==="aes"?"bg-cyan-500 text-white":"bg-white/5 text-slate-400 hover:bg-white/10"),children:"AES-256"}),(0,Ie.jsx)("button",{onClick:()=>o("rsa"),className:U("px-4 py-2 rounded-lg text-sm font-medium transition-colors",n==="rsa"?"bg-cyan-500 text-white":"bg-white/5 text-slate-400 hover:bg-white/10"),children:"RSA-2048"}),(0,Ie.jsx)("button",{onClick:()=>o("hybrid"),className:U("px-4 py-2 rounded-lg text-sm font-medium transition-colors",n==="hybrid"?"bg-cyan-500 text-white":"bg-white/5 text-slate-400 hover:bg-white/10"),children:"Hybrid (RSA+AES)"}),(0,Ie.jsx)("button",{onClick:()=>o("password"),className:U("px-4 py-2 rounded-lg text-sm font-medium transition-colors",n==="password"?"bg-cyan-500 text-white":"bg-white/5 text-slate-400 hover:bg-white/10"),children:"Password"})]}),(n==="aes"||n==="hybrid")&&(0,Ie.jsxs)("div",{className:"space-y-3",children:[(0,Ie.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ie.jsx)("label",{className:"text-xs text-slate-400",children:"AES-256 Key"}),(0,Ie.jsxs)("button",{onClick:E,className:"text-xs text-cyan-400 hover:text-cyan-300 flex items-center gap-1",children:[(0,Ie.jsx)(hn,{className:"w-3 h-3"}),"Generate"]})]}),(0,Ie.jsxs)("div",{className:"relative",children:[(0,Ie.jsx)("input",{type:"text",value:i,onChange:B=>s(B.target.value),placeholder:"Click Generate or paste your key",className:"w-full bg-black/30 border border-white/10 rounded-lg px-4 py-2 pr-10 text-white font-mono text-xs focus:outline-none focus:ring-2 focus:ring-cyan-500/50"}),i&&(0,Ie.jsx)("button",{onClick:()=>_(i,"AES key"),className:"absolute right-2 top-1/2 -translate-y-1/2 p-1.5 rounded hover:bg-white/10",children:(0,Ie.jsx)(gt,{className:"w-4 h-4 text-slate-400"})})]}),l&&(0,Ie.jsxs)("div",{children:[(0,Ie.jsx)("label",{className:"block text-xs text-slate-400 mb-2",children:"IV (Initialization Vector)"}),(0,Ie.jsx)("code",{className:"block bg-black/30 border border-white/10 rounded-lg px-4 py-2 text-xs text-white font-mono break-all",children:l})]})]}),(n==="rsa"||n==="hybrid")&&(0,Ie.jsxs)("div",{className:"space-y-3",children:[(0,Ie.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ie.jsx)("label",{className:"text-xs text-slate-400",children:"RSA Key Pair"}),(0,Ie.jsxs)("button",{onClick:L,disabled:w,className:"text-xs text-cyan-400 hover:text-cyan-300 flex items-center gap-1 disabled:opacity-50",children:[(0,Ie.jsx)(hn,{className:U("w-3 h-3",w&&"animate-spin")}),"Generate"]})]}),(0,Ie.jsxs)("div",{children:[(0,Ie.jsx)("label",{className:"block text-xs text-slate-400 mb-2",children:"Public Key"}),(0,Ie.jsx)("textarea",{value:d,onChange:B=>u(B.target.value),rows:3,placeholder:"Click Generate or paste public key",className:"w-full bg-black/30 border border-white/10 rounded-lg px-4 py-2 text-white font-mono text-xs focus:outline-none focus:ring-2 focus:ring-cyan-500/50"})]}),(0,Ie.jsxs)("div",{children:[(0,Ie.jsx)("label",{className:"block text-xs text-slate-400 mb-2",children:"Private Key"}),(0,Ie.jsx)("textarea",{value:f,onChange:B=>p(B.target.value),rows:3,placeholder:"Click Generate or paste private key",className:"w-full bg-black/30 border border-white/10 rounded-lg px-4 py-2 text-white font-mono text-xs focus:outline-none focus:ring-2 focus:ring-cyan-500/50"})]})]}),n==="password"&&(0,Ie.jsxs)("div",{className:"space-y-3",children:[(0,Ie.jsxs)("div",{children:[(0,Ie.jsx)("label",{className:"block text-xs text-slate-400 mb-2",children:"Password"}),(0,Ie.jsx)("input",{type:"password",value:m,onChange:B=>h(B.target.value),placeholder:"Enter encryption password",className:"w-full bg-black/30 border border-white/10 rounded-lg px-4 py-2 text-white focus:outline-none focus:ring-2 focus:ring-cyan-500/50"})]}),g&&(0,Ie.jsxs)("div",{children:[(0,Ie.jsx)("label",{className:"block text-xs text-slate-400 mb-2",children:"Salt (save this!)"}),(0,Ie.jsx)("code",{className:"block bg-black/30 border border-white/10 rounded-lg px-4 py-2 text-xs text-white font-mono break-all",children:g})]}),l&&(0,Ie.jsxs)("div",{children:[(0,Ie.jsx)("label",{className:"block text-xs text-slate-400 mb-2",children:"IV (save this!)"}),(0,Ie.jsx)("code",{className:"block bg-black/30 border border-white/10 rounded-lg px-4 py-2 text-xs text-white font-mono break-all",children:l})]})]}),(0,Ie.jsx)("button",{onClick:r==="encrypt"?T:q,disabled:w,className:"w-full flex items-center justify-center gap-2 px-6 py-3 rounded-lg bg-gradient-to-r from-cyan-500 to-blue-500 text-white font-medium hover:opacity-90 transition-opacity disabled:opacity-50",children:w?(0,Ie.jsxs)(Ie.Fragment,{children:[(0,Ie.jsx)(hn,{className:"w-5 h-5 animate-spin"}),"Processing..."]}):r==="encrypt"?(0,Ie.jsxs)(Ie.Fragment,{children:[(0,Ie.jsx)(Ra,{className:"w-5 h-5"}),"Encrypt Payload"]}):(0,Ie.jsxs)(Ie.Fragment,{children:[(0,Ie.jsx)(cl,{className:"w-5 h-5"}),"Decrypt Payload"]})})]}),(0,Ie.jsx)(Ue,{children:C&&(0,Ie.jsxs)(G.div,{initial:{opacity:0,y:-10}
178,animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"rounded-lg bg-red-500/10 border border-red-500/30 p-4 flex items-start gap-3",children:[(0,Ie.jsx)(Dt,{className:"w-5 h-5 text-red-400 flex-shrink-0 mt-0.5"}),(0,Ie.jsxs)("div",{children:[(0,Ie.jsx)("p",{className:"text-sm font-medium text-red-300",children:"Encryption Error"}),(0,Ie.jsx)("p",{className:"text-xs text-red-400 mt-1",children:C})]})]})}),(0,Ie.jsxs)(Ue,{children:[v&&r==="encrypt"&&(0,Ie.jsxs)(G.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},className:"rounded-2xl backdrop-blur-xl bg-gradient-to-br from-cyan-500/10 to-blue-500/10 border border-cyan-500/30 p-6 space-y-3",children:[(0,Ie.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ie.jsxs)("h4",{className:"text-sm font-medium text-white flex items-center gap-2",children:[(0,Ie.jsx)(We,{className:"w-4 h-4 text-green-400"}),"Encrypted Data"]}),(0,Ie.jsx)("button",{onClick:()=>_(v,"Encrypted data"),className:"p-2 rounded-lg bg-white/10 hover:bg-white/20 transition-colors",children:(0,Ie.jsx)(gt,{className:"w-4 h-4 text-white"})})]}),(0,Ie.jsx)("code",{className:"block bg-black/30 border border-white/10 rounded-lg px-4 py-3 text-sm text-white font-mono break-all max-h-40 overflow-y-auto",children:v})]}),S&&r==="decrypt"&&(0,Ie.jsxs)(G.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},className:"rounded-2xl backdrop-blur-xl bg-gradient-to-br from-green-500/10 to-emerald-500/10 border border-green-500/30 p-6 space-y-3",children:[(0,Ie.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ie.jsxs)("h4",{className:"text-sm font-medium text-white flex items-center gap-2",children:[(0,Ie.jsx)(We,{className:"w-4 h-4 text-green-400"}),"Decrypted Data"]}),(0,Ie.jsx)("button",{onClick:()=>_(S,"Decrypted data"),className:"p-2 rounded-lg bg-white/10 hover:bg-white/20 transition-colors",children:(0,Ie.jsx)(gt,{className:"w-4 h-4 text-white"})})]}),(0,Ie.jsx)("code",{className:"block bg-black/30 border border-white/10 rounded-lg px-4 py-3 text-sm text-white font-mono break-all max-h-40 overflow-y-auto",children:S})]})]})]})},nte=RBe;var jd=R(Q());var Re=R(ke()),OBe=()=>{let[e,t]=jd.useState([]),[r,a]=jd.useState("all"),[n,o]=jd.useState("all"),[i,s]=jd.useState(!1);jd.useEffect(()=>{l();let m=setInterval(l,2e3);return()=>clearInterval(m)},[r,n]);let l=()=>{let m={};r!=="all"&&(m.type=r),n!=="all"&&(m.severity=n),m.limit=50,t(In.getEvents(m))},c=In.getStats(),d=m=>{let h,g,y;switch(m){case"json":h=In.exportToJSON(),g="audit-log.json",y="application/json";break;case"csv":h=In.exportToCSV(),g="audit-log.csv",y="text/csv";break;case"markdown":h=In.exportToMarkdown(),g="audit-log.md",y="text/markdown";break}let v=new Blob([h],{type:y}),x=URL.createObjectURL(v),S=document.createElement("a");S.href=x,S.download=g,document.body.appendChild(S),S.click(),document.body.removeChild(S),URL.revokeObjectURL(x),$.success(`Audit log exported as ${m.toUpperCase()}`),s(!1)},u=()=>{confirm("Are you sure you want to clear the audit log? This cannot be undone.")&&(In.clear(),t([]),$.success("Audit log cleared"))},f=m=>{switch(m){case"info":return(0,Re.jsx)(l0,{className:"w-4 h-4 text-blue-400"});case"warning":return(0,Re.jsx)(hr,{className:"w-4 h-4 text-amber-400"});case"error":return(0,Re.jsx)(Dt,{className:"w-4 h-4 text-orange-400"});case"critical":return(0,Re.jsx)(Ct,{className:"w-4 h-4 text-red-400"})}},p=m=>{switch(m){case"info":return"bg-blue-500/10 border-blue-500/30";case"warning":return"bg-amber-500/10 border-amber-500/30";case"error":return"bg-orange-500/10 border-orange-500/30";case"critical":return"bg-red-500/10 border-red-500/30"}};return(0,Re.jsxs)("div",{className:"space-y-6",children:[(0,Re.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Re.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Re.jsx)(jt,{className:"w-5 h-5 text-amber-400"}),(0,Re.jsx)("h3",{className:"text-lg font-semibold text-white",children:"Security Audit Log"})]}),(0,Re.jsxs)("div",{className:"flex gap-2",children:[(0,Re.jsxs)("div",{className:"relative",children:[(0,Re.jsxs)("button",{onClick:()=>s(!i),className:"flex items-center gap-2 px-4 py-2 rounded-lg bg-gradient-to-r from-purple-500 to-pink-500 text-white font-medium hover:opacity-90 transition-opacity",children:[(0,Re.jsx)(ll,{className:"w-4 h-4"}),"Export"]}),(0,Re.jsx)(Ue,{children:i&&(0,Re.jsxs)(G.div,{initial:{opacity:0,y:-10}
178,animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"absolute right-0 top-full mt-2 w-48 rounded-lg bg-slate-900 border border-white/10 shadow-xl z-10",children:[(0,Re.jsx)("button",{onClick:()=>d("json"),className:"w-full text-left px-4 py-2 hover:bg-white/5 text-white text-sm first:rounded-t-lg",children:"Export as JSON"}),(0,Re.jsx)("button",{onClick:()=>d("csv"),className:"w-full text-left px-4 py-2 hover:bg-white/5 text-white text-sm",children:"Export as CSV"}),(0,Re.jsx)("button",{onClick:()=>d("markdown"),className:"w-full text-left px-4 py-2 hover:bg-white/5 text-white text-sm last:rounded-b-lg",children:"Export as Markdown"})]})})]}),(0,Re.jsxs)("button",{onClick:u,className:"flex items-center gap-2 px-4 py-2 rounded-lg bg-red-500/20 hover:bg-red-500/30 text-red-400 font-medium transition-colors",children:[(0,Re.jsx)(Kt,{className:"w-4 h-4"}),"Clear"]})]})]}),(0,Re.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[(0,Re.jsxs)("div",{className:"rounded-lg bg-gradient-to-br from-blue-500/20 to-cyan-500/20 border border-blue-500/30 p-4",children:[(0,Re.jsx)("p",{className:"text-xs text-blue-400 mb-1",children:"Total Events"}),(0,Re.jsx)("p",{className:"text-2xl font-bold text-white",children:c.totalEvents})]}),(0,Re.jsxs)("div",{className:"rounded-lg bg-gradient-to-br from-red-500/20 to-rose-500/20 border border-red-500/30 p-4",children:[(0,Re.jsx)("p",{className:"text-xs text-red-400 mb-1",children:"Security Incidents"}),(0,Re.jsx)("p",{className:"text-2xl font-bold text-white",children:c.securityIncidents})]}),(0,Re.jsxs)("div",{className:"rounded-lg bg-gradient-to-br from-green-500/20 to-emerald-500/20 border border-green-500/30 p-4",children:[(0,Re.jsx)("p",{className:"text-xs text-green-400 mb-1",children:"Success Rate"}),(0,Re.jsxs)("p",{className:"text-2xl font-bold text-white",children:[c.successRate.toFixed(1),"%"]})]}),(0,Re.jsxs)("div",{className:"rounded-lg bg-gradient-to-br from-purple-500/20 to-pink-500/20 border border-purple-500/30 p-4",children:[(0,Re.jsx)("p",{className:"text-xs text-purple-400 mb-1",children:"Recent Events"}),(0,Re.jsx)("p",{className:"text-2xl font-bold text-white",children:c.recentEvents.length})]})]}),(0,Re.jsxs)("div",{className:"rounded-2xl backdrop-blur-xl bg-white/5 border border-white/10 p-4",children:[(0,Re.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,Re.jsx)(Bn,{className:"w-4 h-4 text-slate-400"}),(0,Re.jsx)("span",{className:"text-sm font-medium text-white",children:"Filters"})]}),(0,Re.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,Re.jsxs)("div",{children:[(0,Re.jsx)("label",{className:"block text-xs text-slate-400 mb-2",children:"Event Type"}),(0,Re.jsxs)("select",{value:r,onChange:m=>a(m.target.value),className:"w-full bg-black/30 border border-white/10 rounded-lg px-3 py-2 text-sm text-white focus:outline-none focus:ring-2 focus:ring-purple-500/50",children:[(0,Re.jsx)("option",{value:"all",children:"All Types"}),(0,Re.jsx)("option",{value:"signature_generated",children:"Signature Generated"}),(0,Re.jsx)("option",{value:"signature_verified",children:"Signature Verified"}),(0,Re.jsx)("option",{value:"encryption_performed",children:"Encryption"}),(0,Re.jsx)("option",{value:"decryption_performed",children:"Decryption"}),(0,Re.jsx)("option",{value:"replay_attack_detected",children:"Replay Attack"}),(0,Re.jsx)("option",{value:"rate_limit_exceeded",children:"Rate Limit"}),(0,Re.jsx)("option",{value:"webhook_sent",children:"Webhook Sent"})]})]}),(0,Re.jsxs)("div",{children:[(0,Re.jsx)("label",{className:"block text-xs text-slate-400 mb-2",children:"Severity"}),(0,Re.jsxs)("select",{value:n,onChange:m=>o(m.target.value),className:"w-full bg-black/30 border border-white/10 rounded-lg px-3 py-2 text-sm text-white focus:outline-none focus:ring-2 focus:ring-purple-500/50",children:[(0,Re.jsx)("option",{value:"all",children:"All Severities"}),(0,Re.jsx)("option",{value:"info",children:"Info"}),(0,Re.jsx)("option",{value:"warning",children:"Warning"}),(0,Re.jsx)("option",{value:"error",children:"Error"}),(0,Re.jsx)("option",{value:"critical",children:"Critical"})]})]})]})]}),(0,Re.jsxs)("div",{className:"space-y-2",children:[(0,Re.jsx)(Ue,{children:e.map((m,h)=>(0,Re.jsx)(G.div,{initial:{opacity:0,y:10}
178,animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{delay:h*.02},className:U("rounded-lg border p-4",p(m.severity)),children:(0,Re.jsxs)("div",{className:"flex items-start gap-3",children:[f(m.severity),(0,Re.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Re.jsxs)("div",{className:"flex items-start justify-between gap-2 mb-1",children:[(0,Re.jsx)("p",{className:"text-sm font-medium text-white",children:m.message}),(0,Re.jsx)("span",{className:"text-xs text-slate-400 whitespace-nowrap",children:m.timestamp.toLocaleTimeString()})]}),(0,Re.jsxs)("div",{className:"flex items-center gap-3 text-xs text-slate-400 mb-2",children:[(0,Re.jsx)("span",{className:"px-2 py-0.5 rounded bg-white/10",children:m.type}),(0,Re.jsx)("span",{children:m.ipAddress})]}),Object.keys(m.details).length>0&&(0,Re.jsxs)("details",{className:"mt-2",children:[(0,Re.jsx)("summary",{className:"text-xs text-slate-400 cursor-pointer hover:text-white",children:"View Details"}),(0,Re.jsx)("pre",{className:"mt-2 text-xs text-slate-300 bg-black/30 rounded p-2 overflow-x-auto",children:JSON.stringify(m.details,null,2)})]})]})]})},m.id))}),e.length===0&&(0,Re.jsxs)("div",{className:"text-center py-12 rounded-xl bg-white/5 border border-white/10",children:[(0,Re.jsx)(jt,{className:"w-12 h-12 text-slate-400 mx-auto mb-4"}),(0,Re.jsx)("p",{className:"text-white font-medium",children:"No audit events"}),(0,Re.jsx)("p",{className:"text-slate-400 text-sm mt-2",children:"Security events will appear here"})]})]})]})},ote=OBe;var Bd=R(Q());var gte={"payment_intent.succeeded":()=>({id:`evt_${ea()}`,object:"event",api_version:"2023-10-16",created:Math.floor(Date.now()/1e3),type:"payment_intent.succeeded",data:{object:{id:`pi_${ea()}`,object:"payment_intent",amount:Math.floor(Math.random()*1e4)+1e3,currency:"usd",status:"succeeded",customer:`cus_${ea()}`,description:"Payment for order #"+Math.floor(Math.random()*1e4),metadata:{order_id:ea(),customer_email:`customer${Math.floor(Math.random()*1e3)}@example.com`}}}}),"customer.created":()=>({id:`evt_${ea()}`,object:"event",type:"customer.created",created:Math.floor(Date.now()/1e3),data:{object:{id:`cus_${ea()}`,object:"customer",email:`customer${Math.floor(Math.random()*1e3)}@example.com`,name:_s(),created:Math.floor(Date.now()/1e3),metadata:{}}}}),"charge.succeeded":()=>({id:`evt_${ea()}`,object:"event",type:"charge.succeeded",created:Math.floor(Date.now()/1e3),data:{object:{id:`ch_${ea()}`,object:"charge",amount:Math.floor(Math.random()*1e4)+1e3,currency:"usd",status:"succeeded",paid:!0,receipt_url:`https://pay.stripe.com/receipts/${ea()}`}}})},vte={push:()=>({ref:"refs/heads/main",before:qC(),after:qC(),repository:{id:Math.floor(Math.random()*1e6),name:"awesome-project",full_name:`user${Math.floor(Math.random()*1e3)}/awesome-project`,private:!1,html_url:"https://github.com/user/awesome-project"},pusher:{name:_s().toLowerCase().replace(" ",""),email:`dev${Math.floor(Math.random()*100)}@example.com`},commits:[{id:qC(),message:DBe(),timestamp:new Date().toISOString(),author:{name:_s(),email:`dev${Math.floor(Math.random()*100)}@example.com`}}]}),pull_request:()=>({action:"opened",number:Math.floor(Math.random()*1e3),pull_request:{id:Math.floor(Math.random()*1e6),title:MBe(),state:"open",user:{login:_s().toLowerCase().replace(" ",""),id:Math.floor(Math.random()*1e5)},body:"This PR implements new features and fixes bugs.",created_at:new Date().toISOString(),html_url:`https://github.com/user/repo/pull/${Math.floor(Math.random()*1e3)}`},repository:{name:"awesome-project",full_name:"user/awesome-project"}}),issues:()=>({action:"opened",issue:{id:Math.floor(Math.random()*1e6),number:Math.floor(Math.random()*1e3),title:_Be(),state:"open",user:{login:_s().toLowerCase().replace(" ",""),id:Math.floor(Math.random()*1e5)},body:"Issue description goes here.",created_at:new Date().toISOString(),html_url:`https://github.com/user/repo/issues/${Math.floor(Math.random()*1e3)}`}})},yte={"orders/create":()=>({id:Math.floor(Math.random()*1e6),email:`customer${Math.floor(Math.random()*1e3)}@example.com`,created_at:new Date().toISOString(),total_price:(Math.random()*500+50).toFixed(2),currency:"USD",financial_status:"paid",fulfillment_status:null,line_items:[{id:Math.floor(Math.random()*1e6),title:dte(),quantity:Math.floor(Math.random()*5)+1,price:(Math.random()*100+10).toFixed(2)}],customer:{id:Math.floor(Math.random()*1e5),email:`customer${Math.floor(Math.random()*1e3)}@example.com`,first_name:_s().split(" ")[0],last_name:_s().split(" ")[1]}}),"products/create":()=>({id:Math.floor(Math.random()*1e6),title:dte(),vendor:"Awesome Store",product_type:"Electronics",created_at:new Date().toISOString(),variants:[{id:Math.floor(Math.random()*1e6),price:(Math.random()*200+20).toFixed(2),sku:`SKU-${ea().substr(0,8).toUpperCase()}`,inventory_quantity:Math.floor(Math.random()*100)}]}),"customers/create":()=>({id:Math.floor(Math.random()*1e5),email:`customer${Math.floor(Math.random()*1e3)}@example.com`,first_name:_s().split(" ")[0],last_name:_s().split(" ")[1],created_at:new Date().toISOString(),orders_count:0,total_spent:"0.00",verified_email:!0})},bte={message:()=>({type:"message",channel:"C1234567890",user:"U1234567890",text:pte(),ts:(Date.now()/1e3).toFixed(6),team:"T1234567890"}),app_mention:()=>({type:"app_mention",user:"U1234567890",text:`<@U0987654321> ${pte()}`,ts:(Date.now()/1e3).toFixed(6),channel:"C1234567890",event_ts:(Date.now()/1e3).toFixed(6)})},xte={message_received:()=>({MessageSid:`SM${ea()}`,AccountSid:`AC${ea()}`,From:`+1${Math.floor(Math.random()*9e9)+1e9}`,To:`+1${Math.floor(Math.random()*9e9)+1e9}`,Body:FBe(),NumMedia:"0",MessageStatus:"received",ApiVersion:"2010-04-01"}),call_initiated:()=>({CallSid:`CA${ea()}`,AccountSid:`AC${ea()}`,From:`+1${Math.floor(Math.random()*9e9)+1e9}`,To:`+1${Math.floor(Math.random()*9e9)+1e9}`,CallStatus:"ringing",Direction:"inbound",ApiVersion:"2010-04-01"})},wte={message_create:()=>({id:eO(),type:0,content:jBe(),channel_id:eO(),author:{id:eO(),username:_s().toLowerCase().replace(" ","_"),discriminator:String(Math.floor(Math.random()*1e4)).padStart(4,"0"),avatar:ea()},timestamp:new Date().toISOString(),edited_timestamp:null,tts:!1,mention_everyone:!1})},ea=()=>Math.random().toString(36).substr(2,16),qC=()=>Array.from({length:40},()=>Math.floor(Math.random()*16).toString(16)).join(""),eO=()=>
178String(Date.now()*4194304+Math.floor(Math.random()*4194304)),ite=["John Smith","Jane Doe","Alice Johnson","Bob Williams","Charlie Brown","Diana Prince","Eve Adams","Frank Miller","Grace Lee","Henry Davis"],_s=()=>ite[Math.floor(Math.random()*ite.length)],ste=["Fix bug in authentication","Add new feature for user profiles","Update dependencies","Refactor database queries","Improve error handling","Add unit tests","Update documentation","Optimize performance"],DBe=()=>ste[Math.floor(Math.random()*ste.length)],lte=["Add user authentication","Fix memory leak in worker","Implement dark mode","Update API endpoints","Refactor component structure","Add integration tests"],MBe=()=>lte[Math.floor(Math.random()*lte.length)],cte=["Bug: Login fails on mobile","Feature Request: Add export functionality","Performance issue with large datasets","UI glitch in dashboard","Documentation needs update"],_Be=()=>cte[Math.floor(Math.random()*cte.length)],ute=["Wireless Headphones","Smart Watch","Laptop Stand","USB-C Cable","Mechanical Keyboard","Gaming Mouse","Monitor Arm","Webcam"],dte=()=>ute[Math.floor(Math.random()*ute.length)],fte=["Hey team, just pushed the latest changes!","Can someone review my PR?","Meeting in 10 minutes","Great work on the release!","Anyone available for a quick call?"],pte=()=>fte[Math.floor(Math.random()*fte.length)],mte=["Your verification code is 123456","Your order has been shipped!","Reminder: Appointment tomorrow at 2 PM","Thank you for your purchase!","Your package will arrive today"],FBe=()=>mte[Math.floor(Math.random()*mte.length)],hte=["Hey everyone! \u{1F44B}","Check out this cool feature!","Anyone up for gaming later?","Just deployed the new update","Thanks for the help!"],jBe=()=>hte[Math.floor(Math.random()*hte.length)],Yy={stripe:{name:"Stripe",events:Object.keys(gte),color:"from-purple-500 to-indigo-500"},github:{name:"GitHub",events:Object.keys(vte),color:"from-gray-700 to-gray-900"},shopify:{name:"Shopify",events:Object.keys(yte),color:"from-green-500 to-emerald-500"},slack:{name:"Slack",events:Object.keys(bte),color:"from-purple-600 to-pink-600"},twilio:{name:"Twilio",events:Object.keys(xte),color:"from-red-500 to-rose-500"},discord:{name:"Discord",events:Object.keys(wte),color:"from-indigo-500 to-blue-500"}},Ste=(e,t)=>{let r,a={"Content-Type":"application/json","User-Agent":`${e}-webhook/1.0`};switch(e){case"stripe":r=gte[t](),a["Stripe-Signature"]=`t=${Math.floor(Date.now()/1e3)},v1=${ea()}`;break;case"github":r=vte[t](),a["X-GitHub-Event"]=t,a["X-Hub-Signature-256"]=`sha256=${qC()}`;break;case"shopify":r=yte[t](),a["X-Shopify-Topic"]=t,a["X-Shopify-Hmac-SHA256"]=ea();break;case"slack":r=bte[t](),a["X-Slack-Signature"]=`v0=${ea()}`,a["X-Slack-Request-Timestamp"]=String(Math.floor(Date.now()/1e3));break;case"twilio":r=xte[t](),a["X-Twilio-Signature"]=ea();break;case"discord":r=wte[t](),a["X-Signature-Ed25519"]=ea(),a["X-Signature-Timestamp"]=String(Math.floor(Date.now()/1e3));break;default:r={error:"Unknown provider"}}return{provider:e,eventType:t,payload:r,headers:a}};var ft=R(ke()),BBe=({onEventGenerated:e})=>{let[t,r]=Bd.useState("stripe"),[a,n]=Bd.useState(""),[o,i]=Bd.useState(""),[s,l]=Bd.useState({});Bd.useEffect(()=>{let p=Yy[t];p&&p.events.length>0&&n(p.events[0])},[t]);let c=()=>{let p=Ste(t,a),m=JSON.stringify(p.payload,null,2);i(m),l(p.headers),e(m,p.headers),$.success(`${Yy[t].name} event generated`)},d=()=>{navigator.clipboard.writeText(o),$.success("Payload copied to clipboard")},u=()=>{navigator.clipboard.writeText(JSON.stringify(s,null,2)),$.success("Headers copied to clipboard")},f=Yy[t];return(0,ft.jsxs)("div",{className:"space-y-6",children:[(0,ft.jsxs)("div",{className:"flex items-center gap-2",children:[(0,ft.jsx)(et,{className:"w-5 h-5 text-yellow-400"}),(0,ft.jsx)("h3",{className:"text-lg font-semibold text-white",children:"Webhook Event Simulator"})]}),(0,ft.jsxs)("div",{className:"rounded-2xl backdrop-blur-xl bg-white/5 border border-white/10 p-6 space-y-4",children:[(0,ft.jsx)("h4",{className:"text-sm font-medium text-white",children:"Select Provider"}),(0,ft.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-3",children:Object.entries(Yy).map(([p,m])=>(0,ft.jsxs)("button",{onClick:()=>r(p),className:U("p-4 rounded-lg text-left transition-all",t===p?`bg-gradient-to-r ${m.color} text-white shadow-lg`:"bg-white/5 text-slate-400 hover:bg-white/10"),children:[(0,ft.jsx)("p",{className:"font-medium",children:m.name}),(0,ft.jsxs)("p",{className:"text-xs mt-1 opacity-75",children:[m.events.length," events"]})]},p))})]}),f&&(0,ft.jsxs)("div",{className:"rounded-2xl backdrop-blur-xl bg-white/5 border border-white/10 p-6 space-y-4",children:[(0,ft.jsx)("h4",{className:"text-sm font-medium text-white",children:"Select Event Type"}),(0,ft.jsx)("select",{value:a,onChange:p=>n(p.target.value),className:"w-full bg-black/30 border border-white/10 rounded-lg px-4 py-3 text-white focus:outline-none focus:ring-2 focus:ring-purple-500/50",children:f.events.map(p=>(0,ft.jsx)("option",{value:p,children:p},p))}),(0,ft.jsxs)("button",{onClick:c,className:U("w-full flex items-center justify-center gap-2 px-6 py-3 rounded-lg text-white font-medium hover:opacity-90 transition-opacity",`bg-gradient-to-r ${f.color}`),children:[(0,ft.jsx)(Nr,{className:"w-5 h-5"}),"Generate ",f.name," Event"]})]}),(0,ft.jsx)(Ue,{children:o&&(0,ft.jsxs)(G.div,{initial:{opacity:0,y:20}
178,animate:{opacity:1,y:0},exit:{opacity:0,y:-20},className:"space-y-4",children:[(0,ft.jsxs)("div",{className:"rounded-2xl backdrop-blur-xl bg-gradient-to-br from-purple-500/10 to-pink-500/10 border border-purple-500/30 p-6 space-y-3",children:[(0,ft.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ft.jsx)("h4",{className:"text-sm font-medium text-white",children:"Generated Payload"}),(0,ft.jsx)("button",{onClick:d,className:"p-2 rounded-lg bg-white/10 hover:bg-white/20 transition-colors",children:(0,ft.jsx)(gt,{className:"w-4 h-4 text-white"})})]}),(0,ft.jsx)("pre",{className:"bg-black/30 border border-white/10 rounded-lg px-4 py-3 text-sm text-white font-mono overflow-x-auto max-h-96",children:o})]}),(0,ft.jsxs)("div",{className:"rounded-2xl backdrop-blur-xl bg-gradient-to-br from-cyan-500/10 to-blue-500/10 border border-cyan-500/30 p-6 space-y-3",children:[(0,ft.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ft.jsx)("h4",{className:"text-sm font-medium text-white",children:"Generated Headers"}),(0,ft.jsx)("button",{onClick:u,className:"p-2 rounded-lg bg-white/10 hover:bg-white/20 transition-colors",children:(0,ft.jsx)(gt,{className:"w-4 h-4 text-white"})})]}),(0,ft.jsx)("div",{className:"space-y-2",children:Object.entries(s).map(([p,m])=>(0,ft.jsxs)("div",{className:"flex items-start gap-3 text-sm",children:[(0,ft.jsxs)("span",{className:"text-cyan-400 font-medium min-w-[200px]",children:[p,":"]}),(0,ft.jsx)("span",{className:"text-white font-mono break-all",children:m})]},p))})]})]})}),!o&&(0,ft.jsxs)("div",{className:"text-center py-12 rounded-xl bg-white/5 border border-white/10",children:[(0,ft.jsx)(et,{className:"w-12 h-12 text-slate-400 mx-auto mb-4"}),(0,ft.jsx)("p",{className:"text-white font-medium",children:"No event generated yet"}),(0,ft.jsx)("p",{className:"text-slate-400 text-sm mt-2",children:"Select a provider and event type to generate realistic webhook data"})]})]})},Cte=BBe;var VBe=e=>{let t=0;for(let r=0;r<e.length;r++){let a=e.charCodeAt(r);t=(t<<5)-t+a,t=t&t}return Math.abs(t).toString(16).padStart(64,"0")};var Nte=(e,t,r="sha256")=>VBe(e+t+r),UBe=(e,t,r,a="sha256")=>{try{let n=Nte(e,r,a),o=n===t;return{passed:o,message:o?"HMAC signature is valid":"HMAC signature mismatch",details:{expected:n,received:t,algorithm:a}}}catch(n){return{passed:!1,message:"HMAC verification failed",details:{error:n instanceof Error?n.message:"Unknown error"}}}},zC=()=>Math.floor(Date.now()/1e3),Ite=(e,t=300)=>{let r=zC(),a=Math.abs(r-e),n=a<=t;return{passed:n,message:n?`Timestamp is valid (within ${t}s tolerance)`:`Timestamp is outside tolerance window (${a}s difference)`,details:{provided:e,current:r,difference:a,tolerance:t}}},Pte=(e,t)=>{let r=zC(),a=e;t.includeTimestamp&&(a=`${r}.${e}`);let n=Nte(a,t.secret,t.algorithm),o={[t.headerName]:n};return t.includeTimestamp&&(o["X-Webhook-Timestamp"]=r.toString()),{payload:e,headers:o}},Ete=(e,t,r,a)=>{let n=[];a.includeTimestamp&&r!==null&&n.push(Ite(r,a.timestampTolerance));let o=e;return a.includeTimestamp&&r!==null&&(o=`${r}.${e}`),n.push(UBe(o,t,a.secret,a.algorithm)),n},Ate={stripe:{algorithm:"sha256",headerName:"Stripe-Signature",includeTimestamp:!0,format:"t={timestamp},v1={signature}"},github:{algorithm:"sha256",headerName:"X-Hub-Signature-256",includeTimestamp:!1,format:"sha256={signature}"},shopify:{algorithm:"sha256",headerName:"X-Shopify-Hmac-SHA256",includeTimestamp:!1,format:"{signature}"},twilio:{algorithm:"sha1",headerName:"X-Twilio-Signature",includeTimestamp:!1,format:"{signature}"},slack:{algorithm:"sha256",headerName:"X-Slack-Signature",includeTimestamp:!0,format:"v0={signature}"}};var aO=()=>{let e=new Uint8Array(16);return crypto.getRandomValues(e),Array.from(e,t=>t.toString(16).padStart(2,"0")).join("")},tO=new Set,rO=new Map,Lte=(e,t,r=300)=>{let a=zC();for(let[o,i]of rO.entries())a>i&&(tO.delete(o),rO.delete(o));if(tO.has(e))return{passed:!1,message:"Replay attack detected: Nonce already used",details:{nonce:e}};let n=Ite(t,r);return n.passed?(tO.add(e),rO.set(e,a+r),{passed:!0,message:"No replay attack detected",details:{nonce:e,timestamp:t}}):{passed:!1,message:"Replay attack detected: Timestamp outside tolerance",details:n.details}},Tte=(e,t)=>
178{let r=t.includes(e)||t.includes("*");return{passed:r,message:r?"IP address is whitelisted":"IP address not in whitelist",details:{ip:e,whitelist:t}}},kte=new Map,Rte=(e,t,r)=>{let a=zC(),n=kte.get(e);if(!n||a>n.resetTime)return kte.set(e,{count:1,resetTime:a+r}),{passed:!0,message:"Rate limit OK",details:{count:1,limit:t,remaining:t-1}};n.count++;let o=n.count<=t;return{passed:o,message:o?"Rate limit OK":"Rate limit exceeded",details:{count:n.count,limit:t,remaining:Math.max(0,t-n.count),resetIn:n.resetTime-a}}};var re=R(ke()),qBe=({payload:e,onUpdateHeaders:t})=>{let[r,a]=Ar.useState("signing"),[n,o]=Ar.useState("preset"),[i,s]=Ar.useState("stripe"),[l,c]=Ar.useState("sha256"),[d,u]=Ar.useState("your_webhook_secret_key"),[f,p]=Ar.useState("X-Webhook-Signature"),[m,h]=Ar.useState(!0),[g,y]=Ar.useState(300),[v,x]=Ar.useState(""),[S,b]=Ar.useState(0),[w,k]=Ar.useState([]),[C,N]=Ar.useState(""),[E,L]=Ar.useState(!1),[T,q]=Ar.useState(!1),[_,B]=Ar.useState(`127.0.0.1 179192.168.1.1`),[I,A]=Ar.useState("127.0.0.1"),[M,D]=Ar.useState(!1),[V,P]=Ar.useState(100),[O,j]=Ar.useState(60),[W,ee]=Ar.useState("test-client");Ar.useEffect(()=>{if(n==="preset"){let ue=Ate[i];ue&&(c(ue.algorithm),p(ue.headerName),h(ue.includeTimestamp))}},[n,i]);let oe=()=>{let Y=Pte(e,{algorithm:l,secret:d,headerName:f,includeTimestamp:m,timestampTolerance:g}),st=Y.headers[f],Ge=Y.headers["X-Webhook-Timestamp"];x(st),b(Ge?parseInt(Ge):0);let Rt={[f]:st};if(m&&Ge&&(Rt["X-Webhook-Timestamp"]=Ge),E){let Et=aO();N(Et),Rt["X-Webhook-Nonce"]=Et}t(Rt),$.success("Signature generated and headers updated")},he=()=>{let Y=Ete(e,v,m?S:null,{algorithm:l,secret:d,headerName:f,includeTimestamp:m,timestampTolerance:g});if(E&&C&&Y.push(Lte(C,S,g)),T){let st=_.split(` 180`).map(Ge=>Ge.trim()).filter(Boolean);Y.push(Tte(I,st))}M&&Y.push(Rte(W,V,O)),k(Y)},Le=()=>{navigator.clipboard.writeText(v),$.success("Signature copied to clipboard")},ae=()=>{let ue=aO();N(ue),$.success("New nonce generated")},Oe=(ue,Y)=>{t(Y)};return(0,re.jsxs)("div",{className:"space-y-6",children:[(0,re.jsxs)("div",{className:"flex items-center gap-2",children:[(0,re.jsx)(Qe,{className:"w-5 h-5 text-purple-400"}),(0,re.jsx)("h3",{className:"text-lg font-semibold text-white",children:"Webhook Security Testing"})]}),(0,re.jsxs)(fh,{value:r,onValueChange:a,children:[(0,re.jsxs)(ph,{className:"flex gap-2 border-b border-white/10 mb-6",children:[(0,re.jsxs)(Io,{value:"signing",className:U("px-4 py-2 text-sm font-medium transition-colors relative",r==="signing"?"text-white":"text-slate-400 hover:text-white"),children:[(0,re.jsx)(Dr,{className:"w-4 h-4 inline mr-2"}),"Signing & HMAC",r==="signing"&&(0,re.jsx)(G.div,{layoutId:"activeSecurityTab",className:"absolute bottom-0 left-0 right-0 h-0.5 bg-gradient-to-r from-purple-500 to-pink-500"})]}),(0,re.jsxs)(Io,{value:"encryption",className:U("px-4 py-2 text-sm font-medium transition-colors relative",r==="encryption"?"text-white":"text-slate-400 hover:text-white"),children:[(0,re.jsx)(Ra,{className:"w-4 h-4 inline mr-2"}),"Encryption",r==="encryption"&&(0,re.jsx)(G.div,{layoutId:"activeSecurityTab",className:"absolute bottom-0 left-0 right-0 h-0.5 bg-gradient-to-r from-purple-500 to-pink-500"})]}),(0,re.jsxs)(Io,{value:"simulator",className:U("px-4 py-2 text-sm font-medium transition-colors relative",r==="simulator"?"text-white":"text-slate-400 hover:text-white"),children:[(0,re.jsx)(et,{className:"w-4 h-4 inline mr-2"}),"Event Simulator",r==="simulator"&&(0,re.jsx)(G.div,{layoutId:"activeSecurityTab",className:"absolute bottom-0 left-0 right-0 h-0.5 bg-gradient-to-r from-purple-500 to-pink-500"})]}),(0,re.jsxs)(Io,{value:"audit",className:U("px-4 py-2 text-sm font-medium transition-colors relative",r==="audit"?"text-white":"text-slate-400 hover:text-white"),children:[(0,re.jsx)(jt,{className:"w-4 h-4 inline mr-2"}),"Audit Log",r==="audit"&&(0,re.jsx)(G.div,{layoutId:"activeSecurityTab",className:"absolute bottom-0 left-0 right-0 h-0.5 bg-gradient-to-r from-purple-500 to-pink-500"})]})]}),(0,re.jsx)(Po,{value:"signing",children:(0,re.jsxs)("div",{className:"space-y-6",children:[(0,re.jsxs)("div",{className:"rounded-2xl backdrop-blur-xl bg-white/5 border border-white/10 p-6 space-y-4",children:[(0,re.jsxs)("h4",{className:"text-sm font-medium text-white flex items-center gap-2",children:[(0,re.jsx)(Dr,{className:"w-4 h-4 text-cyan-400"}),"Signature Configuration"]}),(0,re.jsxs)("div",{className:"flex gap-2",children:[(0,re.jsx)("button",{onClick:()=>o("preset"),className:U("flex-1 px-4 py-2 rounded-lg text-sm font-medium transition-colors",n==="preset"?"bg-purple-500 text-white":"bg-white/5 text-slate-400 hover:bg-white/10"),children:"Preset Formats"}),(0,re.jsx)("button",{onClick:()=>o("custom"),className:U("flex-1 px-4 py-2 rounded-lg text-sm font-medium transition-colors",n==="custom"?"bg-purple-500 text-white":"bg-white/5 text-slate-400 hover:bg-white/10"),children:"Custom Configuration"})]}),n==="preset"&&(0,re.jsxs)("div",{children:[(0,re.jsx)("label",{className:"block text-xs text-slate-400 mb-2",children:"Provider Format"}),(0,re.jsxs)("select",{value:i,onChange:ue=>s(ue.target.value),className:"w-full bg-black/30 border border-white/10 rounded-lg px-4 py-2 text-white focus:outline-none focus:ring-2 focus:ring-purple-500/50",children:[(0,re.jsx)("option",{value:"stripe",children:"Stripe (SHA-256 with timestamp)"}),(0,re.jsx)("option",{value:"github",children:"GitHub (SHA-256)"}),(0,re.jsx)("option",{value:"shopify",children:"Shopify (SHA-256)"}),(0,re.jsx)("option",{value:"twilio",children:"Twilio (SHA-1)"}),(0,re.jsx)("option",{value:"slack",children:"Slack (SHA-256 with timestamp)"})]})]}),n==="custom"&&(0,re.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,re.jsxs)("div",{children:[(0,re.jsx)("label",{className:"block text-xs text-slate-400 mb-2",children:"Algorithm"}
180),(0,re.jsxs)("select",{value:l,onChange:ue=>c(ue.target.value),className:"w-full bg-black/30 border border-white/10 rounded-lg px-4 py-2 text-white focus:outline-none focus:ring-2 focus:ring-purple-500/50",children:[(0,re.jsx)("option",{value:"sha256",children:"SHA-256"}),(0,re.jsx)("option",{value:"sha1",children:"SHA-1"}),(0,re.jsx)("option",{value:"sha512",children:"SHA-512"}),(0,re.jsx)("option",{value:"md5",children:"MD5"})]})]}),(0,re.jsxs)("div",{children:[(0,re.jsx)("label",{className:"block text-xs text-slate-400 mb-2",children:"Header Name"}),(0,re.jsx)("input",{type:"text",value:f,onChange:ue=>p(ue.target.value),className:"w-full bg-black/30 border border-white/10 rounded-lg px-4 py-2 text-white focus:outline-none focus:ring-2 focus:ring-purple-500/50"})]})]}),(0,re.jsxs)("div",{children:[(0,re.jsx)("label",{className:"block text-xs text-slate-400 mb-2",children:"Secret Key"}),(0,re.jsx)("input",{type:"password",value:d,onChange:ue=>u(ue.target.value),className:"w-full bg-black/30 border border-white/10 rounded-lg px-4 py-2 text-white font-mono focus:outline-none focus:ring-2 focus:ring-purple-500/50"})]}),(0,re.jsxs)("div",{className:"flex items-center justify-between",children:[(0,re.jsxs)("div",{className:"flex items-center gap-2",children:[(0,re.jsx)(vt,{className:"w-4 h-4 text-slate-400"}),(0,re.jsx)("label",{className:"text-sm text-slate-300",children:"Include Timestamp"})]}),(0,re.jsx)("button",{onClick:()=>h(!m),className:U("relative w-11 h-6 rounded-full transition-colors",m?"bg-purple-500":"bg-slate-600"),children:(0,re.jsx)("span",{className:U("absolute top-0.5 left-0.5 w-5 h-5 bg-white rounded-full transition-transform",m&&"translate-x-5")})})]}),m&&(0,re.jsxs)("div",{children:[(0,re.jsx)("label",{className:"block text-xs text-slate-400 mb-2",children:"Timestamp Tolerance (seconds)"}),(0,re.jsx)("input",{type:"number",value:g,onChange:ue=>y(parseInt(ue.target.value)),className:"w-full bg-black/30 border border-white/10 rounded-lg px-4 py-2 text-white focus:outline-none focus:ring-2 focus:ring-purple-500/50"})]}),(0,re.jsxs)("button",{onClick:oe,className:"w-full flex items-center justify-center gap-2 px-6 py-3 rounded-lg bg-gradient-to-r from-purple-500 to-pink-500 text-white font-medium hover:opacity-90 transition-opacity",children:[(0,re.jsx)(Ra,{className:"w-5 h-5"}),"Generate Signature"]})]}),(0,re.jsx)(Ue,{children:v&&(0,re.jsxs)(G.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},className:"rounded-2xl backdrop-blur-xl bg-gradient-to-br from-purple-500/10 to-pink-500/10 border border-purple-500/30 p-6 space-y-4",children:[(0,re.jsxs)("div",{className:"flex items-center justify-between",children:[(0,re.jsx)("h4",{className:"text-sm font-medium text-white",children:"Generated Signature"}),(0,re.jsx)("button",{onClick:Le,className:"p-2 rounded-lg bg-white/10 hover:bg-white/20 transition-colors",children:(0,re.jsx)(gt,{className:"w-4 h-4 text-white"})})]}),(0,re.jsxs)("div",{className:"space-y-2",children:[(0,re.jsxs)("div",{children:[(0,re.jsx)("label",{className:"block text-xs text-purple-300 mb-1",children:"Signature"}),(0,re.jsx)("code",{className:"block bg-black/30 border border-white/10 rounded-lg px-4 py-2 text-sm text-white font-mono break-all",children:v})]}),m&&S>0&&(0,re.jsxs)("div",{children:[(0,re.jsx)("label",{className:"block text-xs text-purple-300 mb-1",children:"Timestamp"}),(0,re.jsxs)("code",{className:"block bg-black/30 border border-white/10 rounded-lg px-4 py-2 text-sm text-white font-mono",children:[S," (",new Date(S*1e3).toLocaleString(),")"]})]})]}),(0,re.jsxs)("button",{onClick:he,className:"w-full flex items-center justify-center gap-2 px-6 py-2 rounded-lg bg-white/10 hover:bg-white/20 text-white font-medium transition-colors",children:[(0,re.jsx)(Qe,{className:"w-4 h-4"}),"Verify Signature"]})]})}),(0,re.jsxs)("div",{className:"rounded-2xl backdrop-blur-xl bg-white/5 border border-white/10 p-6 space-y-4",children:[(0,re.jsxs)("h4",{className:"text-sm font-medium text-white flex items-center gap-2",children:[(0,re.jsx)(hr,{className:"w-4 h-4 text-amber-400"}),"Advanced Security Features"]}),(0,re.jsxs)("div",{className:"space-y-3",children:[(0,re.jsxs)("div",{className:"flex items-center justify-between",children:[(0,re.jsx)("label",{className:"text-sm text-slate-300",children:"Replay Attack Prevention"}),(0,re.jsx)("button",{onClick:()=>L(!E),className:U("relative w-11 h-6 rounded-full transition-colors",E?"bg-green-500":"bg-slate-600"),children:(0,re.jsx)("span",{className:U("absolute top-0.5 left-0.5 w-
1805 h-5 bg-white rounded-full transition-transform",E&&"translate-x-5")})})]}),E&&(0,re.jsxs)("div",{children:[(0,re.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,re.jsx)("label",{className:"block text-xs text-slate-400",children:"Nonce"}),(0,re.jsxs)("button",{onClick:ae,className:"text-xs text-purple-400 hover:text-purple-300 flex items-center gap-1",children:[(0,re.jsx)(hn,{className:"w-3 h-3"}),"Regenerate"]})]}),(0,re.jsx)("code",{className:"block bg-black/30 border border-white/10 rounded-lg px-4 py-2 text-sm text-white font-mono break-all",children:C||'Click "Generate Signature" to create nonce'})]})]}),(0,re.jsxs)("div",{className:"space-y-3",children:[(0,re.jsxs)("div",{className:"flex items-center justify-between",children:[(0,re.jsx)("label",{className:"text-sm text-slate-300",children:"IP Whitelist Validation"}),(0,re.jsx)("button",{onClick:()=>q(!T),className:U("relative w-11 h-6 rounded-full transition-colors",T?"bg-green-500":"bg-slate-600"),children:(0,re.jsx)("span",{className:U("absolute top-0.5 left-0.5 w-5 h-5 bg-white rounded-full transition-transform",T&&"translate-x-5")})})]}),T&&(0,re.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,re.jsxs)("div",{children:[(0,re.jsx)("label",{className:"block text-xs text-slate-400 mb-2",children:"Whitelist (one per line)"}),(0,re.jsx)("textarea",{value:_,onChange:ue=>B(ue.target.value),rows:3,className:"w-full bg-black/30 border border-white/10 rounded-lg px-4 py-2 text-white font-mono text-sm focus:outline-none focus:ring-2 focus:ring-purple-500/50"})]}),(0,re.jsxs)("div",{children:[(0,re.jsx)("label",{className:"block text-xs text-slate-400 mb-2",children:"Test IP Address"}),(0,re.jsx)("input",{type:"text",value:I,onChange:ue=>A(ue.target.value),className:"w-full bg-black/30 border border-white/10 rounded-lg px-4 py-2 text-white font-mono focus:outline-none focus:ring-2 focus:ring-purple-500/50"})]})]})]}),(0,re.jsxs)("div",{className:"space-y-3",children:[(0,re.jsxs)("div",{className:"flex items-center justify-between",children:[(0,re.jsx)("label",{className:"text-sm text-slate-300",children:"Rate Limiting"}),(0,re.jsx)("button",{onClick:()=>D(!M),className:U("relative w-11 h-6 rounded-full transition-colors",M?"bg-green-500":"bg-slate-600"),children:(0,re.jsx)("span",{className:U("absolute top-0.5 left-0.5 w-5 h-5 bg-white rounded-full transition-transform",M&&"translate-x-5")})})]}),M&&(0,re.jsxs)("div",{className:"grid grid-cols-3 gap-3",children:[(0,re.jsxs)("div",{children:[(0,re.jsx)("label",{className:"block text-xs text-slate-400 mb-2",children:"Max Requests"}),(0,re.jsx)("input",{type:"number",value:V,onChange:ue=>P(parseInt(ue.target.value)),className:"w-full bg-black/30 border border-white/10 rounded-lg px-4 py-2 text-white focus:outline-none focus:ring-2 focus:ring-purple-500/50"})]}),(0,re.jsxs)("div",{children:[(0,re.jsx)("label",{className:"block text-xs text-slate-400 mb-2",children:"Window (seconds)"}),(0,re.jsx)("input",{type:"number",value:O,onChange:ue=>j(parseInt(ue.target.value)),className:"w-full bg-black/30 border border-white/10 rounded-lg px-4 py-2 text-white focus:outline-none focus:ring-2 focus:ring-purple-500/50"})]}),(0,re.jsxs)("div",{children:[(0,re.jsx)("label",{className:"block text-xs text-slate-400 mb-2",children:"Identifier"}),(0,re.jsx)("input",{type:"text",value:W,onChange:ue=>ee(ue.target.value),className:"w-full bg-black/30 border border-white/10 rounded-lg px-4 py-2 text-white focus:outline-none focus:ring-2 focus:ring-purple-500/50"})]})]})]})]}),(0,re.jsx)(Ue,{children:w.length>0&&(0,re.jsxs)(G.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},className:"rounded-2xl backdrop-blur-xl bg-white/5 border border-white/10 p-6 space-y-3",children:[(0,re.jsx)("h4",{className:"text-sm font-medium text-white",children:"Verification Results"}),w.map((ue,Y)=>(0,re.jsx)(G.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:Y*.1},className:U("rounded-lg border p-4",ue.passed?"bg-green-500/10 border-green-500/30":"bg-red-500/10 border-red-500/30"),children:(0,re.jsxs)("div",{className:"flex items-start gap-3",children:[ue.passed?(0,re.jsx)(We,{className:"w-5 h-5 text-green-400 flex-shrink-0 mt-0.5"}):(0,re.jsx)(Ct,{className:"w-5 h-5 text-red-400 flex-shrink-0 mt-0.5"}),(0,re.jsxs)("div",{className:"flex-1",children:[(0,re.jsx)("p",{className:U("text-sm font-medium",ue.passed?"text-green-300":"text-red-300"),children:ue.message}),ue.details&&(0,re.jsx)("pre",{className:"mt-2 text-xs text-slate-400 overflow-x-auto",children:JSON.stringify(ue.details,null,2)})]})]})},Y))]})})]})}),(0,re.jsx)(Po,{value:"encryption",children:(0,re.jsx)(nte,{payload:e,onEncryptedPayload:ue=>{}})}),(0,re.jsx)(Po,{value:"simulator",children:(0,re.jsx)(Cte,{onEventGenerated:Oe})}),(0,re.jsx)(Po,{value:"audit",children:(0,re.jsx)(ote,{})})]})]})},Ote=qBe;var Zt=R(Q(),1);var Lr=R(Q(),1);var Dte=R(Q(),1);function Mte(e,t=globalThis?.document){let r=Ms(e);Dte.useEffect(()=>{let a=n=>{n.key==="Escape"&&r(n)};return t.addEventListener("keydown",a,{capture:!0}),()=>t.removeEventListener("keydown",a,{capture:!0})},[r,t])}
vendor: 9,431 bytes, line 180
180var oO=R(ke(),1),zBe="DismissableLayer",nO="dismissableLayer.update",HBe="dismissableLayer.pointerDownOutside",WBe="dismissableLayer.focusOutside",_te,jte=Lr.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),iO=Lr.forwardRef((e,t)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:a,onPointerDownOutside:n,onFocusOutside:o,onInteractOutside:i,onDismiss:s,...l}=e,c=Lr.useContext(jte),[d,u]=Lr.useState(null),f=d?.ownerDocument??globalThis?.document,[,p]=Lr.useState({}),m=an(t,k=>u(k)),h=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=h.indexOf(g),v=d?h.indexOf(d):-1,x=c.layersWithOutsidePointerEventsDisabled.size>0,S=v>=y,b=KBe(k=>{let C=k.target,N=[...c.branches].some(E=>E.contains(C));!S||N||(n?.(k),i?.(k),k.defaultPrevented||s?.())},f),w=XBe(k=>{let C=k.target;[...c.branches].some(E=>E.contains(C))||(o?.(k),i?.(k),k.defaultPrevented||s?.())},f);return Mte(k=>{v===c.layers.size-1&&(a?.(k),!k.defaultPrevented&&s&&(k.preventDefault(),s()))},f),Lr.useEffect(()=>{if(d)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(_te=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),Fte(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=_te)}},[d,f,r,c]),Lr.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),Fte())},[d,c]),Lr.useEffect(()=>{let k=()=>p({});return document.addEventListener(nO,k),()=>document.removeEventListener(nO,k)},[]),(0,oO.jsx)(Kr.div,{...l,ref:m,style:{pointerEvents:x?S?"auto":"none":void 0,...e.style},onFocusCapture:$r(e.onFocusCapture,w.onFocusCapture),onBlurCapture:$r(e.onBlurCapture,w.onBlurCapture),onPointerDownCapture:$r(e.onPointerDownCapture,b.onPointerDownCapture)})});iO.displayName=zBe;var GBe="DismissableLayerBranch",$Be=Lr.forwardRef((e,t)=>{let r=Lr.useContext(jte),a=Lr.useRef(null),n=an(t,a);return Lr.useEffect(()=>{let o=a.current;if(o)return r.branches.add(o),()=>{r.branches.delete(o)}},[r.branches]),(0,oO.jsx)(Kr.div,{...e,ref:n})});$Be.displayName=GBe;function KBe(e,t=globalThis?.document){let r=Ms(e),a=Lr.useRef(!1),n=Lr.useRef(()=>{});return Lr.useEffect(()=>{let o=s=>{if(s.target&&!a.current){let c=function(){Bte(HBe,r,d,{discrete:!0})};var l=c;let d={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",n.current),n.current=c,t.addEventListener("click",n.current,{once:!0})):c()}else t.removeEventListener("click",n.current);a.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",o),t.removeEventListener("click",n.current)}},[t,r]),{onPointerDownCapture:()=>a.current=!0}}function XBe(e,t=globalThis?.document){let r=Ms(e),a=Lr.useRef(!1);return Lr.useEffect(()=>{let n=o=>{o.target&&!a.current&&Bte(WBe,r,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",n),()=>t.removeEventListener("focusin",n)},[t,r]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}function Fte(){let e=new CustomEvent(nO);document.dispatchEvent(e)}function Bte(e,t,r,{discrete:a}){let n=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&n.addEventListener(e,t,{once:!0}),a?Oee(n,o):n.dispatchEvent(o)}var fi=R(Q(),1);var Hte=R(ke(),1),sO="focusScope.autoFocusOnMount",lO="focusScope.autoFocusOnUnmount",Vte={bubbles:!1,cancelable:!0},YBe="FocusScope",cO=fi.forwardRef((e,t)=>{let{loop:r=!1,trapped:a=!1,onMountAutoFocus:n,onUnmountAutoFocus:o,...i}=e,[s,l]=fi.useState(null),c=Ms(n),d=Ms(o),u=fi.useRef(null),f=an(t,h=>l(h)),p=fi.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;fi.useEffect(()=>{if(a){let v=function(w){if(p.paused||!s)return;let k=w.target;s.contains(k)?u.current=k:Xc(u.current,{select:!0})},x=function(w){if(p.paused||!s)return;let k=w.relatedTarget;k!==null&&(s.contains(k)||Xc(u.current,{select:!0}))},S=function(w){if(document.activeElement===document.body)for(let C of w)C.removedNodes.length>0&&Xc(s)};var h=v,g=x,y=S;document.addEventListener("focusin",v),document.addEventListener("focusout",x);let b=new MutationObserver(S);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",x),b.disconnect()}}},[a,s,p.paused]),fi.useEffect(()=>{if(s){qte.add(p);let h=document.activeElement;if(!s.contains(h)){let y=new CustomEvent(sO,Vte);s.addEventListener(sO,c),s.dispatchEvent(y),y.defaultPrevented||(JBe(r6e(Wte(s)),{select:!0}),document.activeElement===h&&Xc(s))}return()=>{s.removeEventListener(sO,c),setTimeout(()=>{let y=new CustomEvent(lO,Vte);s.addEventListener(lO,d),s.dispatchEvent(y),y.defaultPrevented||Xc(h??document.body,{select:!0}),s.removeEventListener(lO,d),qte.remove(p)},0)}}},[s,c,d,p]);let m=fi.useCallback(h=>{if(!r&&!a||p.paused)return;let g=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,y=document.activeElement;if(g&&y){let v=h.currentTarget,[x,S]=ZBe(v);x&&S?!h.shiftKey&&y===S?(h.preventDefault(),r&&Xc(x,{select:!0})):h.shiftKey&&y===x&&(h.preventDefault(),r&&Xc(S,{select:!0})):y===v&&h.preventDefault()}},[r,a,p.paused]);return(0,Hte.jsx)(Kr.div,{tabIndex:-1,...i,ref:f,onKeyDown:m})});cO.displayName=YBe;function JBe(e,{select:t=!1}={}){let r=document.activeElement;for(let a of e)if(Xc(a,{select:t}),document.activeElement!==r)return}function ZBe(e){let t=Wte(e),r=Ute(t,e),a=Ute(t.reverse(),e);return[r,a]}function Wte(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{let n=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||n?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Ute(e,t){for(let r of e)if(!QBe(r,{upTo:t}))return r}function QBe(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function e6e(e){return e instanceof HTMLInputElement&&"select"in e}function Xc(e,{select:t=!1}={}){if(e&&e.focus){let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&e6e(e)&&t&&e.select()}}var qte=t6e();function t6e(){let e=[];return{add(t){let r=e[0];t!==r&&r?.pause(),e=zte(e,t),e.unshift(t)},remove(t){e=zte(e,t),e[0]?.resume()}}}function zte(e,t){let r=[...e],a=r.indexOf(t);return a!==-1&&r.splice(a,1),r}function r6e(e){return e.filter(t=>t.tagName!=="A")}var HC=R(Q(),1),Gte=R(hu(),1);var $te=R(ke(),1),a6e="Portal",uO=HC.forwardRef((e,t)=>{let{container:r,...a}=e,[n,o]=HC.useState(!1);Al(()=>o(!0),[]);let i=r||n&&globalThis?.document?.body;return i?Gte.default.createPortal((0,$te.jsx)(Kr.div,{...a,ref:t}),i):null});uO.displayName=a6e;var Xte=R(Q(),1),dO=0;function Yte(){Xte.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Kte()),document.body.insertAdjacentElement("beforeend",e[1]??Kte()),dO++,()=>{dO===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),dO--}},[])}function Kte(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Jn=function(){return Jn=Object.assign||function(t){for(var r,a=1,n=arguments.length;a<n;a++){r=arguments[a];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Jn.apply(this,arguments)};function WC(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(e);n<a.length;n++)t.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(r[a[n]]=e[a[n]]);return r}function Jte(e,t,r){if(r||arguments.length===2)for(var a=0,n=t.length,o;a<n;a++)(o||!(a in t))&&(o||(o=Array.prototype.slice.call(t,0,a)),o[a]=t[a]);return e.concat(o||Array.prototype.slice.call(t))}var YC=R(Q());var nn=R(Q());var Vd="right-scroll-bar-position",Ud="width-before-scroll-bar",fO="with-scroll-bars-hidden",pO="--removed-body-scroll-bar-size";function GC(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}var Zte=R(Q());function Qte(e,t){var r=(0,Zte.useState)(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(a){var n=r.value;n!==a&&(r.value=a,r.callback(a,n))}}}})[0];return r.callback=t,r.facade}var $C=R(Q());var n6e=typeof window<"u"?$C.useLayoutEffect:$C.useEffect,ere=new WeakMap;function mO(e,t){var r=Qte(t||null,function(a){return e.forEach(function(n){return GC(n,a)})});return n6e(function(){var a=ere.get(r);if(a){var n=new Set(a),o=new Set(e),i=r.current;n.forEach(function(s){o.has(s)||GC(s,null)}),o.forEach(function(s){n.has(s)||GC(s,i)})}ere.set(r,e)},[e]),r}function o6e(e){return e}function i6e(e,t){t===void 0&&(t=o6e);var r=[],a=!1,n={read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(o){var i=t(o,a);return r.push(i),function(){r=r.filter(function(s){return s!==i})}},assignSyncMedium:function(o){for(a=!0;r.length;){var i=r;
vendor: 10,186 bytes, lines 180-220
180r=[],i.forEach(o)}r={push:function(s){return o(s)},filter:function(){return r}}},assignMedium:function(o){a=!0;var i=[];if(r.length){var s=r;r=[],s.forEach(o),i=r}var l=function(){var d=i;i=[],d.forEach(o)},c=function(){return Promise.resolve().then(l)};c(),r={push:function(d){i.push(d),c()},filter:function(d){return i=i.filter(d),r}}}};return n}function hO(e){e===void 0&&(e={});var t=i6e(null);return t.options=Jn({async:!0,ssr:!1},e),t}var tre=R(Q()),rre=function(e){var t=e.sideCar,r=WC(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=t.read();if(!a)throw new Error("Sidecar medium not found");return tre.createElement(a,Jn({},r))};rre.isSideCarExport=!0;function gO(e,t){return e.useMedium(t),rre}var KC=hO();var vO=function(){},Jy=nn.forwardRef(function(e,t){var r=nn.useRef(null),a=nn.useState({onScrollCapture:vO,onWheelCapture:vO,onTouchMoveCapture:vO}),n=a[0],o=a[1],i=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,d=e.enabled,u=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,y=e.as,v=y===void 0?"div":y,x=e.gapMode,S=WC(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),b=f,w=mO([r,t]),k=Jn(Jn({},S),n);return nn.createElement(nn.Fragment,null,d&&nn.createElement(b,{sideCar:KC,removeScrollBar:c,shards:u,noRelative:p,noIsolation:m,inert:h,setCallbacks:o,allowPinchZoom:!!g,lockRef:r,gapMode:x}),i?nn.cloneElement(nn.Children.only(s),Jn(Jn({},k),{ref:w})):nn.createElement(v,Jn({},k,{className:l,ref:w}),s))});Jy.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Jy.classNames={fullWidth:Ud,zeroRight:Vd};var ur=R(Q());var gh=R(Q());var ore=R(Q());var are;var nre=function(){if(are)return are;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function s6e(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=nre();return t&&e.setAttribute("nonce",t),e}function l6e(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function c6e(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var yO=function(){var e=0,t=null;return{add:function(r){e==0&&(t=s6e())&&(l6e(t,r),c6e(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}};var bO=function(){var e=yO();return function(t,r){ore.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}};var Zy=function(){var e=bO(),t=function(r){var a=r.styles,n=r.dynamic;return e(a,n),null};return t};var u6e={left:0,top:0,right:0,gap:0},xO=function(e){return parseInt(e||"",10)||0},d6e=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],a=t[e==="padding"?"paddingTop":"marginTop"],n=t[e==="padding"?"paddingRight":"marginRight"];return[xO(r),xO(a),xO(n)]},wO=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return u6e;var t=d6e(e),r=document.documentElement.clientWidth,a=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,a-r+t[2]-t[0])}};var f6e=Zy(),hh="data-scroll-locked",p6e=function(e,t,r,a){var n=e.left,o=e.top,i=e.right,s=e.gap;return r===void 0&&(r="margin"),` 181 .`.concat(fO,` { 182 overflow: hidden `).concat(a,`; 183 padding-right: `).concat(s,"px ").concat(a,`; 184 } 185 body[`).concat(hh,`] { 186 overflow: hidden `).concat(a,`; 187 overscroll-behavior: contain; 188 `).concat([t&&"position: relative ".concat(a,";"),r==="margin"&&` 189 padding-left: `.concat(n,`px; 190 padding-top: `).concat(o,`px; 191 padding-right: `).concat(i,`px; 192 margin-left:0; 193 margin-top:0; 194 margin-right: `).concat(s,"px ").concat(a,`; 195 `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(a,";")].filter(Boolean).join(""),` 196 } 197 198 .`).concat(Vd,` { 199 right: `).concat(s,"px ").concat(a,`; 200 } 201 202 .`).concat(Ud,` { 203 margin-right: `).concat(s,"px ").concat(a,`; 204 } 205 206 .`).concat(Vd," .").concat(Vd,` { 207 right: 0 `).concat(a,`; 208 } 209 210 .`).concat(Ud," .").concat(Ud,` { 211 margin-right: 0 `).concat(a,`; 212 } 213 214 body[`).concat(hh,`] { 215 `).concat(pO,": ").concat(s,`px; 216 } 217`)},ire=function(){var e=parseInt(document.body.getAttribute(hh)||"0",10);return isFinite(e)?e:0},m6e=function(){gh.useEffect(function(){return document.body.setAttribute(hh,(ire()+1).toString()),function(){var e=ire()-1;e<=0?document.body.removeAttribute(hh):document.body.setAttribute(hh,e.toString())}},[])},SO=function(e){var t=e.noRelative,r=e.noImportant,a=e.gapMode,n=a===void 0?"margin":a;m6e();var o=gh.useMemo(function(){return wO(n)},[n]);return gh.createElement(f6e,{styles:p6e(o,!t,n,r?"":"!important")})};var CO=!1;if(typeof window<"u")try{Qy=Object.defineProperty({},"passive",{get:function(){return CO=!0,!0}}),window.addEventListener("test",Qy,Qy),window.removeEventListener("test",Qy,Qy)}catch{CO=!1}var Qy,qd=CO?{passive:!1}:!1;var h6e=function(e){return e.tagName==="TEXTAREA"},sre=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!h6e(e)&&r[t]==="visible")},g6e=function(e){return sre(e,"overflowY")},v6e=function(e){return sre(e,"overflowX")},kO=function(e,t){var r=t.ownerDocument,a=t;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var n=lre(e,a);if(n){var o=cre(e,a),i=o[1],s=o[2];if(i>s)return!0}a=a.parentNode}while(a&&a!==r.body);return!1},y6e=function(e){var t=e.scrollTop,r=e.scrollHeight,a=e.clientHeight;return[t,r,a]},b6e=function(e){var t=e.scrollLeft,r=e.scrollWidth,a=e.clientWidth;return[t,r,a]},lre=function(e,t){return e==="v"?g6e(t):v6e(t)},cre=function(e,t){return e==="v"?y6e(t):b6e(t)},x6e=function(e,t){return e==="h"&&t==="rtl"?-1:1},ure=function(e,t,r,a,n){var o=x6e(e,window.getComputedStyle(t).direction),i=o*a,s=r.target,l=t.contains(s),c=!1,d=i>0,u=0,f=0;do{var p=cre(e,s),m=p[0],h=p[1],g=p[2],y=h-g-o*m;(m||y)&&lre(e,s)&&(u+=y,f+=m),s=s.parentNode.host||s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(d&&(n&&Math.abs(u)<1||!n&&i>u)||!d&&(n&&Math.abs(f)<1||!n&&-i>f))&&(c=!0),c};var XC=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},dre=function(e){return[e.deltaX,e.deltaY]},fre=function(e){return e&&"current"in e?e.current:e},w6e=function(e,t){return e[0]===t[0]&&e[1]===t[1]},S6e=function(e){return` 218 .block-interactivity-`.concat(e,` {pointer-events: none;} 219 .allow-interactivity-`).concat(e,` {pointer-events: all;} 220`)},C6e=0,vh=[];function pre(e){var t=ur.useRef([]),r=ur.useRef([0,0]),a=ur.useRef(),n=ur.useState(C6e++)[0],o=ur.useState(Zy)[0],i=ur.useRef(e);ur.useEffect(function(){i.current=e},[e]),ur.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(n));var h=Jte([e.lockRef.current],(e.shards||[]).map(fre),!0).filter(Boolean);return h.forEach(function(g){return g.classList.add("allow-interactivity-".concat(n))}),function(){document.body.classList.remove("block-interactivity-".concat(n)),h.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(n))})}}},[e.inert,e.lockRef.current,e.shards]);var s=ur.useCallback(function(h,g){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!i.current.allowPinchZoom;var y=XC(h),v=r.current,x="deltaX"in h?h.deltaX:v[0]-y[0],S="deltaY"in h?h.deltaY:v[1]-y[1],b,w=h.target,k=Math.abs(x)>Math.abs(S)?"h":"v";if("touches"in h&&k==="h"&&w.type==="range")return!1;var C=kO(k,w);if(!C)return!0;if(C?b=k:(b=k==="v"?"h":"v",C=kO(k,w)),!C)return!1;if(!a.current&&"changedTouches"in h&&(x||S)&&(a.current=b),!b)return!0;var N=a.current||b;return ure(N,g,h,N==="h"?x:S,!0)},[]),l=ur.useCallback(function(h){var g=h;if(!(!vh.length||vh[vh.length-1]!==o)){var y="deltaY"in g?dre(g):XC(g),v=t.current.filter(function(b){return b.name===g.type&&(b.target===g.target||g.target===b.shadowParent)&&w6e(b.delta,y)})[0];if(v&&v.should){g.cancelable&&g.preventDefault();return}if(!v){var x=(i.current.shards||[]).map(fre).filter(Boolean).filter(function(b){return b.contains(g.target)}),S=x.length>0?s(g,x[0]):!i.current.noIsolation;S&&g.cancelable&&g.preventDefault()}}},[]),c=ur.useCallback(function(h,g,y,v){var x={name:h,delta:g,target:y,should:v,shadowParent:k6e(y)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(S){return S!==x})},1)},[]),d=ur.useCallback(function(h){r.current=XC(h),a.current=void 0},[]),u=ur.useCallback(function(h){c(h.type,dre(h),h.target,s(h,e.lockRef.current))},[]),f=ur.useCallback(function(h){c(h.type,XC(h),h.target,s(h,e.lockRef.current))},[]);ur.useEffect(function(){return vh.push(o),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:f}),document.addEventListener("wheel",l,qd),document.addEventListener("touchmove",l,qd),document.addEventListener("touchstart",d,qd),function(){vh=vh.filter(function(h){return h!==o}),document.removeEventListener("wheel",l,qd),document.removeEventListener("touchmove",l,qd),document.removeEventListener("touchstart",d,qd)}},[]);var p=e.removeScrollBar,m=e.inert;return ur.createElement(ur.Fragment,null,m?ur.createElement(o,{styles:S6e(n)}):null,p?ur.createElement(SO,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function k6e(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var mre=gO(KC,pre);var hre=YC.forwardRef(function(e,t){return YC.createElement(Jy,Jn({},e,{ref:t,sideCar:mre}))});hre.classNames=Jy.classNames;var NO=hre;var N6e=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},yh=new WeakMap,JC=new WeakMap,ZC={},IO=0,gre=function(e){return e&&(e.host||gre(e.parentNode))},I6e=function(e,t){return t.map(function(r){if(e.contains(r))return r;var a=gre(r);return a&&e.contains(a)?a:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},P6e=function(e,t,r,a){var n=I6e(t,Array.isArray(e)?e:[e]);ZC[r]||(ZC[r]=new WeakMap);var o=ZC[r],i=[],s=new Set,l=new Set(n),c=function(u){!u||s.has(u)||(s.add(u),c(u.parentNode))};
vendor: 4,367 bytes, line 220
220n.forEach(c);var d=function(u){!u||l.has(u)||Array.prototype.forEach.call(u.children,function(f){if(s.has(f))d(f);else try{var p=f.getAttribute(a),m=p!==null&&p!=="false",h=(yh.get(f)||0)+1,g=(o.get(f)||0)+1;yh.set(f,h),o.set(f,g),i.push(f),h===1&&m&&JC.set(f,!0),g===1&&f.setAttribute(r,"true"),m||f.setAttribute(a,"true")}catch(y){console.error("aria-hidden: cannot operate on ",f,y)}})};return d(t),s.clear(),IO++,function(){i.forEach(function(u){var f=yh.get(u)-1,p=o.get(u)-1;yh.set(u,f),o.set(u,p),f||(JC.has(u)||u.removeAttribute(a),JC.delete(u)),p||u.removeAttribute(r)}),IO--,IO||(yh=new WeakMap,yh=new WeakMap,JC=new WeakMap,ZC={})}},vre=function(e,t,r){r===void 0&&(r="data-aria-hidden");var a=Array.from(Array.isArray(e)?e:[e]),n=t||N6e(e);return n?(a.push.apply(a,Array.from(n.querySelectorAll("[aria-live], script"))),P6e(a,n,r,"aria-hidden")):function(){return null}};var Vt=R(ke(),1),ek="Dialog",[yre,OLt]=Wc(ek),[E6e,Ki]=yre(ek),bre=e=>{let{__scopeDialog:t,children:r,open:a,defaultOpen:n,onOpenChange:o,modal:i=!0}=e,s=Zt.useRef(null),l=Zt.useRef(null),[c,d]=dh({prop:a,defaultProp:n??!1,onChange:o,caller:ek});return(0,Vt.jsx)(E6e,{scope:t,triggerRef:s,contentRef:l,contentId:$c(),titleId:$c(),descriptionId:$c(),open:c,onOpenChange:d,onOpenToggle:Zt.useCallback(()=>d(u=>!u),[d]),modal:i,children:r})};bre.displayName=ek;var xre="DialogTrigger",A6e=Zt.forwardRef((e,t)=>{let{__scopeDialog:r,...a}=e,n=Ki(xre,r),o=an(t,n.triggerRef);return(0,Vt.jsx)(Kr.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":AO(n.open),...a,ref:o,onClick:$r(e.onClick,n.onOpenToggle)})});A6e.displayName=xre;var PO="DialogPortal",[L6e,wre]=yre(PO,{forceMount:void 0}),Sre=e=>{let{__scopeDialog:t,forceMount:r,children:a,container:n}=e,o=Ki(PO,t);return(0,Vt.jsx)(L6e,{scope:t,forceMount:r,children:Zt.Children.map(a,i=>(0,Vt.jsx)(_d,{present:r||o.open,children:(0,Vt.jsx)(uO,{asChild:!0,container:n,children:i})}))})};Sre.displayName=PO;var QC="DialogOverlay",Cre=Zt.forwardRef((e,t)=>{let r=wre(QC,e.__scopeDialog),{forceMount:a=r.forceMount,...n}=e,o=Ki(QC,e.__scopeDialog);return o.modal?(0,Vt.jsx)(_d,{present:a||o.open,children:(0,Vt.jsx)(R6e,{...n,ref:t})}):null});Cre.displayName=QC;var T6e=Md("DialogOverlay.RemoveScroll"),R6e=Zt.forwardRef((e,t)=>{let{__scopeDialog:r,...a}=e,n=Ki(QC,r);return(0,Vt.jsx)(NO,{as:T6e,allowPinchZoom:!0,shards:[n.contentRef],children:(0,Vt.jsx)(Kr.div,{"data-state":AO(n.open),...a,ref:t,style:{pointerEvents:"auto",...a.style}})})}),zd="DialogContent",kre=Zt.forwardRef((e,t)=>{let r=wre(zd,e.__scopeDialog),{forceMount:a=r.forceMount,...n}=e,o=Ki(zd,e.__scopeDialog);return(0,Vt.jsx)(_d,{present:a||o.open,children:o.modal?(0,Vt.jsx)(O6e,{...n,ref:t}):(0,Vt.jsx)(D6e,{...n,ref:t})})});kre.displayName=zd;var O6e=Zt.forwardRef((e,t)=>{let r=Ki(zd,e.__scopeDialog),a=Zt.useRef(null),n=an(t,r.contentRef,a);return Zt.useEffect(()=>{let o=a.current;if(o)return vre(o)},[]),(0,Vt.jsx)(Nre,{...e,ref:n,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:$r(e.onCloseAutoFocus,o=>{o.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:$r(e.onPointerDownOutside,o=>{let i=o.detail.originalEvent,s=i.button===0&&i.ctrlKey===!0;(i.button===2||s)&&o.preventDefault()}),onFocusOutside:$r(e.onFocusOutside,o=>o.preventDefault())})}),D6e=Zt.forwardRef((e,t)=>{let r=Ki(zd,e.__scopeDialog),a=Zt.useRef(!1),n=Zt.useRef(!1);return(0,Vt.jsx)(Nre,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{e.onCloseAutoFocus?.(o),o.defaultPrevented||(a.current||r.triggerRef.current?.focus(),o.preventDefault()),a.current=!1,n.current=!1},onInteractOutside:o=>{e.onInteractOutside?.(o),o.defaultPrevented||(a.current=!0,o.detail.originalEvent.type==="pointerdown"&&(n.current=!0));let i=o.target;r.triggerRef.current?.contains(i)&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&n.current&&o.preventDefault()}})}),Nre=Zt.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:a,onOpenAutoFocus:n,onCloseAutoFocus:o,...i}=e,s=Ki(zd,r),l=Zt.useRef(null),c=an(t,l);return Yte(),(0,Vt.jsxs)(Vt.Fragment,{children:[(0,Vt.jsx)(cO,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:n,onUnmountAutoFocus:o,children:(0,Vt.jsx)(iO,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":AO(s.open
220),...i,ref:c,onDismiss:()=>s.onOpenChange(!1)})}),(0,Vt.jsxs)(Vt.Fragment,{children:[(0,Vt.jsx)(M6e,{titleId:s.titleId}),(0,Vt.jsx)(F6e,{contentRef:l,descriptionId:s.descriptionId})]})]})}),EO="DialogTitle",Ire=Zt.forwardRef((e,t)=>{let{__scopeDialog:r,...a}=e,n=Ki(EO,r);return(0,Vt.jsx)(Kr.h2,{id:n.titleId,...a,ref:t})});Ire.displayName=EO;var Pre="DialogDescription",Ere=Zt.forwardRef((e,t)=>{let{__scopeDialog:r,...a}=e,n=Ki(Pre,r);return(0,Vt.jsx)(Kr.p,{id:n.descriptionId,...a,ref:t})});Ere.displayName=Pre;var Are="DialogClose",Lre=Zt.forwardRef((e,t)=>{let{__scopeDialog:r,...a}=e,n=Ki(Are,r);return(0,Vt.jsx)(Kr.button,{type:"button",...a,ref:t,onClick:$r(e.onClick,()=>n.onOpenChange(!1))})});Lre.displayName=Are;function AO(e){return e?"open":"closed"}var Tre="DialogTitleWarning",[DLt,Rre]=Nee(Tre,{contentName:zd,titleName:EO,docsSlug:"dialog"}),M6e=({titleId:e})=>{let t=Rre(Tre),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 221 222If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 223 224For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return Zt.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},_6e="DialogDescriptionWarning",F6e=({contentRef:e,descriptionId:t})=>{let a=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Rre(_6e).contentName}}.`;return Zt.useEffect(()=>{let n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(a))},[a,e,t]),null},eb=bre;var tb=Sre,rb=Cre,ab=kre,nb=Ire,Ore=Ere,Dre=Lre;var Z=R(ke()),j6e=()=>{let[e,t]=on.useState([]),[r,a]=on.useState(""),[n,o]=on.useState("POST"),[i,s]=on.useState(""),[l,c]=on.useState(`{ 225 "Content-Type": "application/json" 226}`),[d,u]=on.useState(`{ 227 "event": "test", 228 "data": { 229 "message": "Hello from Playground" 230 } 231}`),[f,p]=on.useState(!1),[m,h]=on.useState([]),[g,y]=on.useState(null),[v,x]=on.useState([]),[S,b]=on.useState("none"),[w,k]=on.useState(!1),[C,N]=on.useState("testing");on.useEffect(()=>{E(),L()},[]);let E=async()=>{try{let O=await Ye.get("/api/taskade/projects/FfZeQuibioM5w9eZ/nodes");t(O.data.payload.nodes)}catch(O){console.error("Failed to load connections:",O)}},L=()=>{let O=localStorage.getItem("playground-tests");if(O){let j=JSON.parse(O);h(j.map(W=>({...W,timestamp:new Date(W.timestamp)})))}},T=()=>{let O={method:n,url:i||r,headers:l,payload:d};localStorage.setItem("playground-current",JSON.stringify(O)),$.success("Test configuration saved")},q=()=>{let O=localStorage.getItem("playground-current");if(O){let j=JSON.parse(O);o(j.method),s(j.url),c(j.headers),u(j.payload),$.success("Test configuration loaded")}},_=()=>{let O=Nq(d);if(!O.valid)return x([{path:"root",message:O.error||"Invalid JSON",type:"syntax"}]),!1;if(S!=="none"){let j=Pq[S];if(j){let W=Iq(O.parsed,j);if(!W.valid)return x(W.errors),!1}}return x([]),!0},B=async()=>{if(!_()){$.error("Payload validation failed");return}p(!0);let O=Date.now();try{let j={};try{j=JSON.parse(l)}catch{$.error("Invalid JSON in headers"),p(!1);return}let W=i||e.find(Le=>Le.id===r)?.fieldValues["/attributes/@conn3"];if(!W){$.error("Please select a connection or enter a custom URL"),p(!1);return}await new Promise(Le=>setTimeout(Le,800+Math.random()*1200));let ee=Date.now()-O,oe=Math.random()>.2,he={id:Date.now().toString(),timestamp:new Date,method:n,url:W,status:oe?200:500,statusText:oe?"OK":"Internal Server Error",responseTime:ee,requestBody:d,responseBody:JSON.stringify(oe?{success:!0,message:"Webhook received",timestamp:new Date().toISOString()}:{error:"Internal server error",message:"Failed to process webhook"},null,2),headers:j};h(Le=>[he,...Le.slice(0,9)]),y(he),localStorage.setItem("playground-tests",JSON.stringify([he,...m.slice(0,9)])),await Ye.post("/api/taskade/projects/hHrioxS222SWLwKR/nodes",{"/text":`${n} ${W} - ${he.statusText}`,"/attributes/@req1":new Date().toISOString(),"/attributes/@req2":W,"/attributes/@req3":n.toLowerCase(),"/attributes/@req4":he.status.toString(),"/attributes/@req5":"127.0.0.1","/attributes/@req6":ee,"/attributes/@req7":"Playground Test","/attributes/@req8":d}),$.success(`Test completed in ${ee}ms`)}catch(j){console.error("Test failed:",j),$.error("Test failed")}finally{p(!1)}},I=()=>{h([]),y(null),localStorage.removeItem("playground-tests"),$.success("Test history cleared")},A=O=>{navigator.clipboard.writeText(O),$.success("Copied to clipboard")},M=O=>{if(m.length===0){$.error("No test results to export");return}switch(O){case"json":Eq(m),$.success("Exported as JSON");break;case"csv":Aq(m),$.success("Exported as CSV");break;case"postman":Lq(m),$.success("Exported as Postman Collection");break;case"markdown":Tq(m),$.success("Exported as Markdown");break}k(!1)},D=O=>{try{let W={...JSON.parse(l),...O};c(JSON.stringify(W,null,2)),$.success("Security headers added")}catch(j){console.error("Failed to update headers:",j),$.error("Failed to update headers")}},V=O=>{switch(O.toUpperCase()){case"GET":return"from-green-500 to-emerald-500";case"POST":return"from-blue-500 to-cyan-500";case"PUT":return"from-amber-500 to-orange-500";case"PATCH":return"from-purple-500 to-pink-500";case"DELETE":return"from-red-500 to-rose-500";default:return"from-slate-500 to-slate-600"}},P=O=>O>=200&&O<300?"text-green-400 bg-green-500/20":O>=400&&O<500?"text-orange-400 bg-orange-500/20":O>=500?"text-red-400 bg-red-500/20":"text-yellow-400 bg-yellow-500/20";return(0,Z.jsx)($e,{children:(0,Z.jsxs)("div",{className:"space-y-6",children:[(0,Z.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Z.jsxs)("div",{children:[(0,Z.jsx)("h1",{className:"text-3xl font-bold bg-gradient-to-r from-cyan-400 via-purple-400 to-pink-400 bg-clip-text text-transparent",children:"Webhook Testing Playground"}),(0,Z.jsx)("p",{className:"text-slate-400 mt-2",children:"Send custom payloads and see real-time responses"})]}),m.length>0&&(0,Z.jsxs)("button",{onClick:()=>k(!0),className:"flex items-center gap-2 px-4 py-2 rounded-lg bg-gradient-to-r from-purple-500 to-pink-500 text-white font-medium hover:opacity-90 transition-opacity",children:[(0,Z.jsx)(ll,{className:"w-4 h-4"}),"Export Results"]})]}),(0,Z.jsxs)(fh,{value:C,onValueChange:N,children:[(0,Z.jsxs)(ph,{className:"flex gap-2 border-b border-white/10 mb-6",children:[(0,Z.jsxs)(Io,{value:"testing",className:U("px-4 py-2 text-sm font-medium transition-colors relative",C==="testing"?"text-white":"text-slate-400 hover:text-white"),children:[(0,Z.jsx)(et,{className:"w-4 h-4 inline mr-2"}),"Testing",C==="testing"&&(0,Z.jsx)(G.div,{layoutId:"activeTab",className:"absolute bottom-0 left-0 right-0 h-0.5 bg-gradient-to-r from-cyan-500 to-purple-500"})]}),(0,Z.jsxs)(Io,{value:"mock",className:U("px-4 py-2 text-sm font-medium transition-colors relative",C==="mock"?"text-white":"text-slate-400 hover:text-white"),children:[(0,Z.jsx)(Oi,{className:"w-4 h-4 inline mr-2"}),"Mock Server",C==="mock"&&(0,Z.jsx)(G.div,{layoutId:"activeTab",className:"absolute bottom-0 left-0 right-0 h-0.5 bg-gradient-to-r from-cyan-500 to-purple-500"})]}),(0,Z.jsxs)(Io,{value:"performance",className:U("px-4 py-2 text-sm font-medium transition-colors relative",C==="performance"?"text-white":"text-slate-400 hover:text-white"),children:[(0,Z.jsx)(Br,{className:"w-4 h-4 inline mr-2"}),"Performance",C==="performance"&&(0,Z.jsx)(G.div,{layoutId:"activeTab",className:"absolute bottom-0 left-0 right-0 h-0.5 bg-gradient-to-r from-cyan-500 to-purple-500"})]}),(0,Z.jsxs)(Io,{value:"security",className:U("px-4 py-2 text-sm font-medium transition-colors relative",C==="security"?"text-white":"text-slate-400 hover:text-white"),children:[(0,Z.jsx)(Qe,{className:"w-4 h-4 inline mr-2"}),"Security",C==="security"&&(0,Z.jsx)(G.div,{layoutId:"activeTab",className:"absolute bottom-0 left-0 right-0 h-0.5 bg-gradient-to-r from-cyan-500 to-purple-500"})]})]}),(0,Z.jsx)(Po,{value:"testing",children:(0,Z.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[(0,Z.jsxs)("div",{className:"lg:col-span-2 space-y-6",children:[(0,Z.jsxs)(G.div,{initial:{opacity:0,y:20}
231,animate:{opacity:1,y:0},className:"rounded-2xl backdrop-blur-xl bg-white/5 border border-white/10 p-6",children:[(0,Z.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,Z.jsx)("h2",{className:"text-xl font-semibold text-white",children:"Request Configuration"}),(0,Z.jsxs)("div",{className:"flex gap-2",children:[(0,Z.jsx)("button",{onClick:T,className:"p-2 rounded-lg bg-white/5 hover:bg-white/10 transition-colors",title:"Save configuration",children:(0,Z.jsx)(Vu,{className:"w-4 h-4 text-slate-400"})}),(0,Z.jsx)("button",{onClick:q,className:"p-2 rounded-lg bg-white/5 hover:bg-white/10 transition-colors",title:"Load saved configuration",children:(0,Z.jsx)(gt,{className:"w-4 h-4 text-slate-400"})})]})]}),(0,Z.jsxs)("div",{className:"space-y-4",children:[(0,Z.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Z.jsxs)("div",{children:[(0,Z.jsx)("label",{className:"block text-sm font-medium text-slate-300 mb-2",children:"Method"}),(0,Z.jsxs)("select",{value:n,onChange:O=>o(O.target.value),className:"w-full bg-black/30 border border-white/10 rounded-lg px-4 py-2 text-white focus:outline-none focus:ring-2 focus:ring-purple-500/50",children:[(0,Z.jsx)("option",{value:"GET",children:"GET"}),(0,Z.jsx)("option",{value:"POST",children:"POST"}),(0,Z.jsx)("option",{value:"PUT",children:"PUT"}),(0,Z.jsx)("option",{value:"PATCH",children:"PATCH"}),(0,Z.jsx)("option",{value:"DELETE",children:"DELETE"})]})]}),(0,Z.jsxs)("div",{children:[(0,Z.jsx)("label",{className:"block text-sm font-medium text-slate-300 mb-2",children:"Connection"}),(0,Z.jsxs)("select",{value:r,onChange:O=>a(O.target.value),className:"w-full bg-black/30 border border-white/10 rounded-lg px-4 py-2 text-white focus:outline-none focus:ring-2 focus:ring-purple-500/50",children:[(0,Z.jsx)("option",{value:"",children:"Custom URL"}),e.map(O=>(0,Z.jsx)("option",{value:O.id,children:O.fieldValues["/text"]},O.id))]})]})]}),!r&&(0,Z.jsxs)("div",{children:[(0,Z.jsx)("label",{className:"block text-sm font-medium text-slate-300 mb-2",children:"Custom URL"}),(0,Z.jsx)("input",{type:"text",value:i,onChange:O=>s(O.target.value),placeholder:"https://api.example.com/webhook",className:"w-full bg-black/30 border border-white/10 rounded-lg px-4 py-2 text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-purple-500/50"})]}),(0,Z.jsxs)("div",{children:[(0,Z.jsx)("label",{className:"block text-sm font-medium text-slate-300 mb-2",children:"Headers (JSON)"}),(0,Z.jsx)("textarea",{value:l,onChange:O=>c(O.target.value),rows:4,className:"w-full bg-black/30 border border-white/10 rounded-lg px-4 py-2 text-white font-mono text-sm focus:outline-none focus:ring-2 focus:ring-purple-500/50"})]}),(0,Z.jsxs)("div",{children:[(0,Z.jsx)("label",{className:"block text-sm font-medium text-slate-300 mb-2",children:"Validation Schema (Optional)"}),(0,Z.jsxs)("select",{value:S,onChange:O=>b(O.target.value),className:"w-full bg-black/30 border border-white/10 rounded-lg px-4 py-2 text-white focus:outline-none focus:ring-2 focus:ring-purple-500/50",children:[(0,Z.jsx)("option",{value:"none",children:"No Validation"}),(0,Z.jsx)("option",{value:"userEvent",children:"User Event Schema"}),(0,Z.jsx)("option",{value:"paymentEvent",children:"Payment Event Schema"}),(0,Z.jsx)("option",{value:"taskEvent",children:"Task Event Schema"})]})]}),(0,Z.jsxs)("div",{children:[(0,Z.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,Z.jsx)("label",{className:"block text-sm font-medium text-slate-300",children:"Request Body (JSON)"}),v.length>0&&(0,Z.jsxs)("span",{className:"text-xs text-red-400 flex items-center gap-1",children:[(0,Z.jsx)(Dt,{className:"w-3 h-3"}),v.length," validation error(s)"]})]}),(0,Z.jsx)("textarea",{value:d,onChange:O=>{u(O.target.value),x([])},rows:8,className:U("w-full bg-black/30 border rounded-lg px-4 py-2 text-white font-mono text-sm focus:outline-none focus:ring-2",v.length>0?"border-red-500/50 focus:ring-red-500/50":"border-white/10 focus:ring-purple-500/50")}),v.length>0&&(0,Z.jsx)("div",{className:"mt-2 space-y-1",children:v.map((O,j)=>(0,Z.jsxs)("div",{className:"text-xs text-red-400 flex items-start gap-2",children:[(0,Z.jsx)(Dt,{className:"w-3 h-3 mt-0.5 flex-shrink-0"}),(0,Z.jsxs)("span",{children:[(0,Z.jsxs)("strong",{children:[O.path,":"]})," ",O.message]})]},j))})]}),(0,Z.jsx)("div",{className:"flex gap-3",children:(0,Z.jsx)("button",{onClick:B,disabled:f,className:"flex-1 flex items-center justify-center gap-2 px-6 py-3 rounded-lg bg-gradient-to-r from-cyan-500 via-purple-500 to-pink-500 text-white font-medium hover:opacity-90 transition-opacity disabled:opacity-50 disabled:cursor-not-allowed",children:f?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)("div",{className:"animate-spin rounded-full h-5 w-5 border-t-2 border-b-2 border-white"}),"Testing..."]}):(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(Nr,{className:"w-5 h-5"}),"Send Request"]})})})]})]}),(0,Z.jsx)(Ue,{children:g&&(0,Z.jsxs)(G.div,{initial:{opacity:0,y:20}
231,animate:{opacity:1,y:0},exit:{opacity:0,y:-20},className:"rounded-2xl backdrop-blur-xl bg-white/5 border border-white/10 p-6",children:[(0,Z.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,Z.jsx)("h2",{className:"text-xl font-semibold text-white",children:"Response"}),(0,Z.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Z.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Z.jsx)(vt,{className:"w-4 h-4 text-slate-400"}),(0,Z.jsxs)("span",{className:"text-sm text-slate-300",children:[g.responseTime,"ms"]})]}),(0,Z.jsxs)("span",{className:U("px-3 py-1 rounded-lg text-sm font-medium",P(g.status)),children:[g.status," ",g.statusText]})]})]}),(0,Z.jsx)("div",{className:"space-y-4",children:(0,Z.jsxs)("div",{children:[(0,Z.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,Z.jsx)("label",{className:"text-sm font-medium text-slate-300",children:"Response Body"}),(0,Z.jsx)("button",{onClick:()=>A(g.responseBody),className:"p-1.5 rounded hover:bg-white/10 transition-colors",children:(0,Z.jsx)(gt,{className:"w-4 h-4 text-slate-400"})})]}),(0,Z.jsx)("pre",{className:"bg-black/30 border border-white/10 rounded-lg p-4 text-sm text-slate-300 overflow-x-auto",children:g.responseBody})]})})]})})]}),(0,Z.jsxs)("div",{className:"space-y-6",children:[(0,Z.jsxs)(G.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},className:"rounded-2xl backdrop-blur-xl bg-white/5 border border-white/10 p-6",children:[(0,Z.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,Z.jsx)("h2",{className:"text-lg font-semibold text-white",children:"Test History"}),m.length>0&&(0,Z.jsx)("button",{onClick:I,className:"p-2 rounded-lg bg-red-500/20 hover:bg-red-500/30 transition-colors",title:"Clear history",children:(0,Z.jsx)(Kt,{className:"w-4 h-4 text-red-400"})})]}),(0,Z.jsx)("div",{className:"space-y-2 max-h-[600px] overflow-y-auto",children:m.length===0?(0,Z.jsxs)("div",{className:"text-center py-8",children:[(0,Z.jsx)(et,{className:"w-8 h-8 text-slate-400 mx-auto mb-2"}),(0,Z.jsx)("p",{className:"text-sm text-slate-400",children:"No tests yet"})]}):m.map((O,j)=>{let W=O.status>=200&&O.status<300,ee=g?.id===O.id;return(0,Z.jsxs)(G.button,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{delay:j*.05},onClick:()=>y(O),className:U("w-full text-left p-3 rounded-lg border transition-all",ee?"bg-white/10 border-purple-500/50":"bg-white/5 border-white/10 hover:bg-white/10"),children:[(0,Z.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[W?(0,Z.jsx)(We,{className:"w-4 h-4 text-green-400 flex-shrink-0"}):(0,Z.jsx)(Ct,{className:"w-4 h-4 text-red-400 flex-shrink-0"}),(0,Z.jsx)("span",{className:U("px-2 py-0.5 rounded text-xs font-bold bg-gradient-to-r text-white",V(O.method)),children:O.method}),(0,Z.jsxs)("span",{className:"text-xs text-slate-400",children:[O.responseTime,"ms"]})]}),(0,Z.jsx)("p",{className:"text-xs text-slate-300 truncate font-mono",children:O.url}),(0,Z.jsx)("p",{className:"text-xs text-slate-500 mt-1",children:O.timestamp.toLocaleTimeString()})]},O.id)})})]}),(0,Z.jsxs)(G.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{delay:.1},className:"rounded-2xl backdrop-blur-xl bg-white/5 border border-white/10 p-6",children:[(0,Z.jsx)("h2",{className:"text-lg font-semibold text-white mb-4",children:"Quick Templates"}),(0,Z.jsxs)("div",{className:"space-y-2",children:[(0,Z.jsxs)("button",{onClick:()=>u(`{ 232 "event": "user.created", 233 "user": { 234 "id": "123", 235 "email": "[email protected]" 236 } 237}`),className:"w-full text-left p-3 rounded-lg bg-white/5 hover:bg-white/10 border border-white/10 transition-colors",children:[(0,Z.jsx)("p",{className:"text-sm font-medium text-white",children:"User Created"}),(0,Z.jsx)("p",{className:"text-xs text-slate-400 mt-1",children:"Standard user event"})]}),(0,Z.jsxs)("button",{onClick:()=>u(`{ 238 "event": "payment.success", 239 "amount": 99.99, 240 "currency": "USD", 241 "orderId": "ORD-12345" 242}`),className:"w-full text-left p-3 rounded-lg bg-white/5 hover:bg-white/10 border border-white/10 transition-colors",children:[(0,Z.jsx)("p",{className:"text-sm font-medium text-white",children:"Payment Success"}),(0,Z.jsx)("p",{className:"text-xs text-slate-400 mt-1",children:"Payment webhook"})]}),(0,Z.jsxs)("button",{onClick:()=>u(`{ 243 "event": "task.completed", 244 "task": { 245 "id": "task-789", 246 "title": "Deploy to production" 247 } 248}`),className:"w-full text-left p-3 rounded-lg bg-white/5 hover:bg-white/10 border border-white/10 transition-colors",children:[(0,Z.jsx)("p",{className:"text-sm font-medium text-white",children:"Task Completed"}),(0,Z.jsx)("p",{className:"text-xs text-slate-400 mt-1",children:"Task event"})]})]})]})]})]})}),(0,Z.jsx)(Po,{value:"mock",children:(0,Z.jsx)("div",{className:"rounded-2xl backdrop-blur-xl bg-white/5 border border-white/10 p-6",children:(0,Z.jsx)(Rq,{onSelectEndpoint:O=>{s(O),N("testing")}})})}),(0,Z.jsx)(Po,{value:"performance",children:(0,Z.jsx)(kee,{url:i||e.find(O=>O.id===r)?.fieldValues["/attributes/@conn3"]||"",method:n,headers:l,payload:d})}),(0,Z.jsx)(Po,{value:"security",children:(0,Z.jsx)(Ote,{payload:d,onUpdateHeaders:D})})]}),(0,Z.jsx)(eb,{open:w,onOpenChange:k,children:(0,Z.jsxs)(tb,{children:[(0,Z.jsx)(rb,{className:"fixed inset-0 bg-black/50 backdrop-blur-sm z-50"}),(0,Z.jsxs)(ab,{className:"fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-full max-w-md rounded-2xl backdrop-blur-xl bg-slate-900/95 border border-white/10 p-6 z-50",children:[(0,Z.jsx)(nb,{className:"text-xl font-semibold text-white mb-4",children:"Export Test Results"}),(0,Z.jsxs)(Ore,{className:"text-slate-400 text-sm mb-6",children:["Choose a format to export your ",m.length," test result(s)"]}),(0,Z.jsxs)("div",{className:"space-y-3",children:[(0,Z.jsxs)("button",{onClick:()=>M("json"),className:"w-full text-left p-4 rounded-lg bg-white/5 hover:bg-white/10 border border-white/10 transition-colors",children:[(0,Z.jsx)("p",{className:"text-white font-medium",children:"JSON"}),(0,Z.jsx)("p",{className:"text-xs text-slate-400 mt-1",children:"Complete test data in JSON format"})]}),(0,Z.jsxs)("button",{onClick:()=>M("csv"),className:"w-full text-left p-4 rounded-lg bg-white/5 hover:bg-white/10 border border-white/10 transition-colors",children:[(0,Z.jsx)("p",{className:"text-white font-medium",children:"CSV"}),(0,Z.jsx)("p",{className:"text-xs text-slate-400 mt-1",children:"Spreadsheet-compatible format"})]}),(0,Z.jsxs)("button",{onClick:()=>M("postman"),className:"w-full text-left p-4 rounded-lg bg-white/5 hover:bg-white/10 border border-white/10 transition-colors",children:[(0,Z.jsx)("p",{className:"text-white font-medium",children:"Postman Collection"}),(0,Z.jsx)("p",{className:"text-xs text-slate-400 mt-1",children:"Import into Postman for testing"})]}),(0,Z.jsxs)("button",{onClick:()=>M("markdown"),className:"w-full text-left p-4 rounded-lg bg-white/5 hover:bg-white/10 border border-white/10 transition-colors",children:[(0,Z.jsx)("p",{className:"text-white font-medium",children:"Markdown"}),(0,Z.jsx)("p",{className:"text-xs text-slate-400 mt-1",children:"Documentation-ready format"})]})]}),(0,Z.jsx)("div",{className:"flex gap-3 mt-6",children:(0,Z.jsx)(Dre,{asChild:!0,children:(0,Z.jsx)("button",{className:"flex-1 px-4 py-2 rounded-lg bg-white/5 hover:bg-white/10 text-white transition-colors",children:"Cancel"})})})]})]})})]})})},_re=j6e;var Fs=R(Q());var tk=()=>Math.random().toString(36).substr(2,9),bh=wp()(Sp((e,t)=>({endpoints:[],healthChecks:[],alerts:[],alertRules:[],isMonitoring:!1,addEndpoint:r=>{let a={...r,id:tk(),createdAt:new Date};e(n=>({endpoints:[...n.endpoints,a]}))},updateEndpoint:(r,a)=>{e(n=>({endpoints:n.endpoints.map(o=>o.id===r?{...o,...a}:o)}))},removeEndpoint:r=>{e(a=>({endpoints:a.endpoints.filter(n=>n.id!==r),healthChecks:a.healthChecks.filter(n=>n.endpointId!==r),alerts:a.alerts.filter(n=>n.endpointId!==r),alertRules:a.alertRules.filter(n=>n.endpointId!==r)}))},toggleEndpoint:r=>{e(a=>({endpoints:a.endpoints.map(n=>n.id===r?{...n,enabled:!n.enabled}:n)}))},addHealthCheck:r=>{let a={...r,id:tk(),timestamp:new Date(r.timestamp)};e(o=>{let i=[...o.healthChecks,a],s=i.filter(l=>l.endpointId===r.endpointId);if(s.length>1e3){let l=s.slice(0,s.length-1e3);return{healthChecks:i.filter(c=>!l.includes(c))}}return{healthChecks:i}}),t().updateEndpoint(r.endpointId,{lastChecked:new Date});let n=t().endpoints.find(o=>o.id===r.endpointId);n&&t().checkAlertRules(n,a)},getEndpointHealthChecks:(r,a)=>{let n=t().healthChecks.filter(o=>o.endpointId===r).sort((o,i)=>new Date(i.timestamp).getTime()-new Date(o.timestamp).getTime());return a?n.slice(0,a):n},getUptimeStats:r=>{let a=t().getEndpointHealthChecks(r),n=new Date,o=new Date(n.getTime()-3600*1e3),i=new Date(n.getTime()-1440*60*1e3),s=a.filter(h=>new Date(h.timestamp)>=o),l=a.filter(h=>new Date(h.timestamp)>=i),c=a.filter(h=>h.status==="success").length,d=a.filter(h=>h.status==="failure").length,u=a.length,f=u>0?c/u*100:0,p=a.filter(h=>h.status==="success").reduce((h,g)=>h+g.responseTime,0),m=c>0?p/c:0;return{endpointId:r,uptime:f,totalChecks:u,successfulChecks:c,failedChecks:d,averageResponseTime:m,lastHourChecks:s,last24HourChecks:l}},addAlert:r=>{let a={...r,id:tk(),timestamp:new Date,acknowledged:!1};e(n=>({alerts:[a,...n.alerts]}))},acknowledgeAlert:r=>{e(a=>({alerts:a.alerts.map(n=>n.id===r?{...n,acknowledged:!0}:n)}))},clearAlerts:r=>{e(a=>({alerts:r?a.alerts.filter(n=>n.endpointId!==r):[]}))},getUnacknowledgedAlerts:()=>t().alerts.filter(r=>!r.acknowledged),addAlertRule:r=>{let a={...r,id:tk()};e(n=>({alertRules:[...n.alertRules,a]}))},updateAlertRule:(r,a)=>{e(n=>({alertRules:n.alertRules.map(o=>o.id===r?{...o,...a}:o)}))},removeAlertRule:r=>{e(a=>({alertRules:a.alertRules.filter(n=>n.id!==r)}))},checkAlertRules:(r,a)=>{t().alertRules.filter(o=>
248o.endpointId===r.id&&o.enabled).forEach(o=>{let i=!1,s="down",l="warning",c="";switch(o.type){case"downtime":a.status==="failure"||a.status==="timeout"?t().getEndpointHealthChecks(r.id,o.condition.duration||3).every(f=>f.status==="failure"||f.status==="timeout")&&(i=!0,s=a.status==="timeout"?"timeout":"down",l="critical",c=`${r.name} is down (${o.condition.duration||3} consecutive failures)`):a.status==="success"&&t().alerts.filter(u=>u.endpointId===r.id&&!u.acknowledged).slice(0,5).some(u=>u.type==="down"||u.type==="timeout")&&(i=!0,s="recovered",l="info",c=`${r.name} has recovered`);break;case"response_time":a.status==="success"&&o.condition.threshold&&a.responseTime>o.condition.threshold&&(i=!0,s="slow",l="warning",c=`${r.name} response time is slow (${a.responseTime}ms > ${o.condition.threshold}ms)`);break;case"status_code":a.statusCode&&o.condition.statusCodes&&o.condition.statusCodes.includes(a.statusCode)&&(i=!0,s="down",l="warning",c=`${r.name} returned unexpected status code ${a.statusCode}`);break}i&&t().addAlert({endpointId:r.id,type:s,severity:l,message:c})})},startMonitoring:()=>{e({isMonitoring:!0})},stopMonitoring:()=>{e({isMonitoring:!1})},clearOldData:r=>{let a=new Date;a.setDate(a.getDate()-r),e(n=>({healthChecks:n.healthChecks.filter(o=>new Date(o.timestamp)>=a),alerts:n.alerts.filter(o=>new Date(o.timestamp)>=a)}))}}),{name:"webhook-monitoring-storage",partialize:e=>({endpoints:e.endpoints,healthChecks:e.healthChecks.slice(-5e3),alerts:e.alerts.slice(-1e3),alertRules:e.alertRules})}));var LO=class{intervals=new Map;isRunning=!1;start(){if(this.isRunning)return;this.isRunning=!0;let t=bh.getState();t.startMonitoring(),t.endpoints.forEach(r=>{r.enabled&&this.startEndpointMonitoring(r)}),console.log("Monitoring service started")}stop(){if(!this.isRunning)return;this.isRunning=!1,bh.getState().stopMonitoring(),this.intervals.forEach(r=>clearInterval(r)),this.intervals.clear(),console.log("Monitoring service stopped")}startEndpointMonitoring(t){this.stopEndpointMonitoring(t.id),this.performHealthCheck(t);let r=setInterval(()=>{this.performHealthCheck(t)},t.checkInterval*1e3);this.intervals.set(t.id,r)}stopEndpointMonitoring(t){let r=this.intervals.get(t);r&&(clearInterval(r),this.intervals.delete(t))}async performHealthCheck(t){let r=Date.now(),a=bh.getState();try{let n=await Ye({method:t.method,url:t.url,headers:t.headers,data:t.payload?JSON.parse(t.payload):void 0,timeout:t.timeout,validateStatus:()=>!0}),o=Date.now()-r,i=t.expectedStatus.includes(n.status),s={endpointId:t.id,timestamp:new Date,status:i?"success":"failure",statusCode:n.status,responseTime:o,error:i?void 0:`Unexpected status code: ${n.status}`};a.addHealthCheck(s)}catch(n){let o=Date.now()-r,i="failure",s="Unknown error";Ye.isAxiosError(n)&&(n.code==="ECONNABORTED"?(i="timeout",s=`Request timeout after ${t.timeout}ms`):n.code==="ENOTFOUND"?s="DNS lookup failed":n.code==="ECONNREFUSED"?s="Connection refused":s=n.message);let l={endpointId:t.id,timestamp:new Date,status:i,responseTime:o,error:s};a.addHealthCheck(l)}}updateEndpoint(t){t.enabled&&this.isRunning?this.startEndpointMonitoring(t):this.stopEndpointMonitoring(t.id)}removeEndpoint(t){this.stopEndpointMonitoring(t)}},ob=new LO;var J=R(ke()),B6e=()=>{let{endpoints:e,isMonitoring:t,getUptimeStats:r,getUnacknowledgedAlerts:a,acknowledgeAlert:n,clearAlerts:o,addEndpoint:i,updateEndpoint:s,removeEndpoint:l,toggleEndpoint:c,addAlertRule:d,alertRules:u}=bh(),[f,p]=Fs.useState(!1),[m,h]=Fs.useState(!1),[g,y]=Fs.useState(null),[v,x]=Fs.useState(0);Fs.useEffect(()=>{let N=setInterval(()=>{x(E=>E+1)},5e3);return()=>clearInterval(N)},[]),Fs.useEffect(()=>{e.length>0&&!t&&S()},[]);let S=()=>{ob.start(),$.success("Monitoring started")},b=()=>{ob.stop(),$.warning("Monitoring stopped")},w=N=>{i({name:N.name,url:N.url,method:N.method,enabled:!0,checkInterval:parseInt(N.checkInterval),timeout:parseInt(N.timeout),expectedStatus:N.expectedStatus.split(",").map(L=>parseInt(L.trim())),headers:{},payload:N.payload||""});let E=e[e.length]?.id;E&&(d({endpointId:E,type:"downtime",condition:{duration:3},enabled:!0}),d({endpointId:E,type:"response_time",condition:{threshold:5e3},enabled:!0})),$.success("Endpoint added"),p(!1)},k=a(),C=Fs.useMemo(()=>{let N=e.map(_=>r(_.id)),E=N.reduce((_,B)=>_+B.uptime,0)/(N.length||1),L=N.reduce((_,B)=>_+B.totalChecks,0),T=N.reduce((_,B)=>_+B.averageResponseTime,0)/(N.length||1),q=e.filter(_=>_.enabled).length;return{totalUptime:E,totalChecks:L,avgResponseTime:T,activeEndpoints:q,totalEndpoints:e.length}},[e,v]);return(0,J.jsx)($e,{children:(0,J.jsxs)("div",{className:"space-y-6",children:[(0,J.jsxs)("div",{className:"flex items-center justify-between",children:[(0,J.jsxs)("div",{children:[(0,J.jsx)("h1",{className:"text-3xl font-bold bg-gradient-to-r from-green-400 via-cyan-400 to-blue-400 bg-clip-text text-transparent",children:"Webhook Monitoring"}),(0,J.jsx)("p",{className:"text-slate-400 mt-2",children:"Real-time uptime tracking and alerting"})]}),(0,J.jsxs)("div",{className:"flex gap-3",children:[(0,J.jsxs)("button",{onClick:()=>h(!0),className:"relative flex items-center gap-2 px-4 py-2 rounded-lg bg-amber-500/20 hover:bg-amber-500/30 text-amber-400 font-medium transition-colors",children:[(0,J.jsx)(hc,{className:"w-5 h-5"}),"Alerts",k.length>0&&(0,J.jsx)("span",{className:"absolute -top-1 -right-1 w-5 h-5 bg-red-500 text-white text-xs rounded-full flex items-center justify-center",children:k.length})]}),t?(0,J.jsxs)("button",{onClick:b,className:"flex items-center gap-2 px-4 py-2 rounded-lg bg-red-500/20 hover:bg-red-500/30 text-red-400 font-medium transition-colors",children:[(0,J.jsx)(Bu,{className:"w-5 h-5"}),"Stop Monitoring"]}):(0,J.jsxs)("button",{onClick:S,className:"flex items-center gap-2 px-4 py-2 rounded-lg bg-green-500/20 hover:bg-green-500/30 text-green-400 font-medium transition-colors",children:[(0,J.jsx)(Nr,{className:"w-5 h-5"}),"Start Monitoring"]}),(0,J.jsxs)("button",{onClick:()=>p(!0),className:"flex items-center gap-2 px-4 py-2 rounded-lg bg-gradient-to-r from-cyan-500 to-blue-500 text-white font-medium hover:opacity-90 transition-opacity",children:[(0,J.jsx)(Bt,{className:"w-5 h-5"}),"Add Endpoint"]})]})]}),(0,J.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4",children:[(0,J.jsxs)(G.div,{initial:{opacity:0,y:20}
248,animate:{opacity:1,y:0},className:"rounded-2xl backdrop-blur-xl bg-gradient-to-br from-green-500/20 to-emerald-500/20 border border-green-500/30 p-6",children:[(0,J.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,J.jsx)(qt,{className:"w-8 h-8 text-green-400"}),(0,J.jsx)("span",{className:U("px-2 py-1 rounded text-xs font-medium",t?"bg-green-500/20 text-green-400":"bg-slate-500/20 text-slate-400"),children:t?"Active":"Paused"})]}),(0,J.jsxs)("p",{className:"text-3xl font-bold text-white",children:[C.totalUptime.toFixed(2),"%"]}),(0,J.jsx)("p",{className:"text-sm text-green-300 mt-1",children:"Overall Uptime"})]}),(0,J.jsxs)(G.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:"rounded-2xl backdrop-blur-xl bg-gradient-to-br from-cyan-500/20 to-blue-500/20 border border-cyan-500/30 p-6",children:[(0,J.jsx)("div",{className:"flex items-center justify-between mb-2",children:(0,J.jsx)(et,{className:"w-8 h-8 text-cyan-400"})}),(0,J.jsxs)("p",{className:"text-3xl font-bold text-white",children:[C.avgResponseTime.toFixed(0),"ms"]}),(0,J.jsx)("p",{className:"text-sm text-cyan-300 mt-1",children:"Avg Response Time"})]}),(0,J.jsxs)(G.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"rounded-2xl backdrop-blur-xl bg-gradient-to-br from-purple-500/20 to-pink-500/20 border border-purple-500/30 p-6",children:[(0,J.jsx)("div",{className:"flex items-center justify-between mb-2",children:(0,J.jsx)(nr,{className:"w-8 h-8 text-purple-400"})}),(0,J.jsx)("p",{className:"text-3xl font-bold text-white",children:C.totalChecks}),(0,J.jsx)("p",{className:"text-sm text-purple-300 mt-1",children:"Total Health Checks"})]}),(0,J.jsxs)(G.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3},className:"rounded-2xl backdrop-blur-xl bg-gradient-to-br from-amber-500/20 to-orange-500/20 border border-amber-500/30 p-6",children:[(0,J.jsx)("div",{className:"flex items-center justify-between mb-2",children:(0,J.jsx)(qt,{className:"w-8 h-8 text-amber-400"})}),(0,J.jsxs)("p",{className:"text-3xl font-bold text-white",children:[C.activeEndpoints,"/",C.totalEndpoints]}),(0,J.jsx)("p",{className:"text-sm text-amber-300 mt-1",children:"Active Endpoints"})]})]}),(0,J.jsxs)("div",{className:"space-y-4",children:[(0,J.jsx)("h2",{className:"text-xl font-semibold text-white",children:"Monitored Endpoints"}),e.length===0?(0,J.jsxs)("div",{className:"text-center py-16 rounded-2xl bg-white/5 border border-white/10",children:[(0,J.jsx)(qt,{className:"w-16 h-16 text-slate-400 mx-auto mb-4"}),(0,J.jsx)("p",{className:"text-white font-medium text-lg",children:"No endpoints configured"}),(0,J.jsx)("p",{className:"text-slate-400 mt-2",children:"Add your first webhook endpoint to start monitoring"}),(0,J.jsxs)("button",{onClick:()=>p(!0),className:"mt-6 px-6 py-3 rounded-lg bg-gradient-to-r from-cyan-500 to-blue-500 text-white font-medium hover:opacity-90 transition-opacity",children:[(0,J.jsx)(Bt,{className:"w-5 h-5 inline mr-2"}),"Add Endpoint"]})]}):(0,J.jsx)("div",{className:"grid grid-cols-1 gap-4",children:(0,J.jsx)(Ue,{children:e.map((N,E)=>{let L=r(N.id),T=L.uptime>=99,q=L.uptime>=95&&L.uptime<99,_=L.uptime<95;return(0,J.jsxs)(G.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{delay:E*.05},className:U("rounded-2xl backdrop-blur-xl border p-6",T&&"bg-green-500/5 border-green-500/30",q&&"bg-amber-500/5 border-amber-500/30",_&&"bg-red-500/5 border-red-500/30",!N.enabled&&"bg-slate-500/5 border-slate-500/30 opacity-60"),children:[(0,J.jsxs)("div",{className:"flex items-start justify-between mb-4",children:[(0,J.jsxs)("div",{className:"flex-1",children:[(0,J.jsxs)("div",{className:"flex items-center gap-3 mb-2",children:[(0,J.jsx)("h3",{className:"text-lg font-semibold text-white",children:N.name}),N.enabled?(0,J.jsxs)("span",{className:U("px-2 py-1 rounded text-xs font-medium flex items-center gap-1",T&&"bg-green-500/20 text-green-400",q&&"bg-amber-500/20 text-amber-400",_&&"bg-red-500/20 text-red-400"),children:[T&&(0,J.jsx)(We,{className:"w-3 h-3"}),q&&(0,J.jsx)(hr,{className:"w-3 h-3"}),_&&(0,J.jsx)(Ct,{className:"w-3 h-3"}),T?"Healthy":q?"Degraded":"Down"]}):(0,J.jsx)("span",{className:"px-2 py-1 rounded text-xs font-medium bg-slate-500/20 text-slate-400",children:"Disabled"})]}),(0,J.jsx)("p",{className:"text-sm text-slate-400 font-mono",children:N.url}),(0,J.jsxs)("div",{className:"flex items-center gap-4 mt-2 text-xs text-slate-400",children:[(0,J.jsxs)("span",{children:["Check every ",N.checkInterval,"s"]}),(0,J.jsx)("span",{children:"\u2022"}),(0,J.jsxs)("span",{children:["Timeout: ",N.timeout,"ms"]}),N.lastChecked&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)("span",{children:"\u2022"}),(0,J.jsxs)("span",{children:["Last checked: ",new Date(N.lastChecked).toLocaleTimeString()]})]})]})]}),(0,J.jsxs)("div",{className:"flex gap-2",children:[(0,J.jsx)("button",{onClick:()=>{c(N.id),N.enabled?ob.removeEndpoint(N.id):ob.updateEndpoint({...N,enabled:!0})},className:"p-2 rounded-lg bg-white/10 hover:bg-white/20 transition-colors",children:N.enabled?(0,J.jsx)(qo,{className:"w-4 h-4 text-white"}):(0,J.jsx)(Yr,{className:"w-4 h-4 text-white"})}),(0,J.jsx)("button",{onClick:()=>
248y(N.id),className:"p-2 rounded-lg bg-white/10 hover:bg-white/20 transition-colors",children:(0,J.jsx)(Oa,{className:"w-4 h-4 text-white"})})]})]}),(0,J.jsxs)("div",{className:"grid grid-cols-4 gap-4 mb-4",children:[(0,J.jsxs)("div",{children:[(0,J.jsxs)("p",{className:"text-2xl font-bold text-white",children:[L.uptime.toFixed(2),"%"]}),(0,J.jsx)("p",{className:"text-xs text-slate-400",children:"Uptime"})]}),(0,J.jsxs)("div",{children:[(0,J.jsxs)("p",{className:"text-2xl font-bold text-white",children:[L.averageResponseTime.toFixed(0),"ms"]}),(0,J.jsx)("p",{className:"text-xs text-slate-400",children:"Avg Response"})]}),(0,J.jsxs)("div",{children:[(0,J.jsx)("p",{className:"text-2xl font-bold text-green-400",children:L.successfulChecks}),(0,J.jsx)("p",{className:"text-xs text-slate-400",children:"Successful"})]}),(0,J.jsxs)("div",{children:[(0,J.jsx)("p",{className:"text-2xl font-bold text-red-400",children:L.failedChecks}),(0,J.jsx)("p",{className:"text-xs text-slate-400",children:"Failed"})]})]}),L.last24HourChecks.length>0&&(0,J.jsx)("div",{className:"h-32",children:(0,J.jsx)(xn,{width:"100%",height:"100%",children:(0,J.jsxs)(FR,{data:L.last24HourChecks.slice(-50).reverse(),children:[(0,J.jsx)("defs",{children:(0,J.jsxs)("linearGradient",{id:`gradient-${N.id}`,x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,J.jsx)("stop",{offset:"5%",stopColor:"#06b6d4",stopOpacity:.3}),(0,J.jsx)("stop",{offset:"95%",stopColor:"#06b6d4",stopOpacity:0})]})}),(0,J.jsx)(Xn,{strokeDasharray:"3 3",stroke:"#334155",opacity:.3}),(0,J.jsx)(Wr,{dataKey:"timestamp",tickFormatter:B=>new Date(B).toLocaleTimeString(),stroke:"#64748b",fontSize:10}),(0,J.jsx)(Gr,{stroke:"#64748b",fontSize:10}),(0,J.jsx)(lr,{contentStyle:{backgroundColor:"#1e293b",border:"1px solid #334155",borderRadius:"8px"},labelFormatter:B=>new Date(B).toLocaleString()}),(0,J.jsx)(Gi,{type:"monotone",dataKey:"responseTime",stroke:"#06b6d4",fill:`url(#gradient-${N.id})`,strokeWidth:2})]})})})]},N.id)})})})]}),(0,J.jsx)(eb,{open:f,onOpenChange:p,children:(0,J.jsxs)(tb,{children:[(0,J.jsx)(rb,{className:"fixed inset-0 bg-black/50 backdrop-blur-sm z-50"}),(0,J.jsxs)(ab,{className:"fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-full max-w-2xl max-h-[90vh] overflow-y-auto rounded-2xl backdrop-blur-xl bg-slate-900/95 border border-white/10 p-6 z-50",children:[(0,J.jsx)(nb,{className:"text-2xl font-semibold text-white mb-6",children:"Add Webhook Endpoint"}),(0,J.jsxs)("form",{onSubmit:N=>{N.preventDefault();let E=new FormData(N.currentTarget);w(Object.fromEntries(E))},className:"space-y-4",children:[(0,J.jsxs)("div",{children:[(0,J.jsx)("label",{className:"block text-sm text-slate-300 mb-2",children:"Endpoint Name"}),(0,J.jsx)("input",{name:"name",required:!0,placeholder:"My API Endpoint",className:"w-full bg-black/30 border border-white/10 rounded-lg px-4 py-3 text-white focus:outline-none focus:ring-2 focus:ring-cyan-500/50"})]}),(0,J.jsxs)("div",{children:[(0,J.jsx)("label",{className:"block text-sm text-slate-300 mb-2",children:"URL"}),(0,J.jsx)("input",{name:"url",type:"url",required:!0,placeholder:"https://api.example.com/webhook",className:"w-full bg-black/30 border border-white/10 rounded-lg px-4 py-3 text-white font-mono focus:outline-none focus:ring-2 focus:ring-cyan-500/50"})]}),(0,J.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,J.jsxs)("div",{children:[(0,J.jsx)("label",{className:"block text-sm text-slate-300 mb-2",children:"Method"}),(0,J.jsxs)("select",{name:"method",defaultValue:"GET",className:"w-full bg-black/30 border border-white/10 rounded-lg px-4 py-3 text-white focus:outline-none focus:ring-2 focus:ring-cyan-500/50",children:[(0,J.jsx)("option",{value:"GET",children:"GET"}),(0,J.jsx)("option",{value:"POST",children:"POST"}),(0,J.jsx)("option",{value:"PUT",children:"PUT"}),(0,J.jsx)("option",{value:"PATCH",children:"PATCH"})]})]}),(0,J.jsxs)("div",{children:[(0,J.jsx)("label",{className:"block text-sm text-slate-300 mb-2",children:"Check Interval (seconds)"}),(0,J.jsx)("input",{name:"checkInterval",type:"number",defaultValue:"60",min:"10",required:!0,className:"w-full bg-black/30 border border-white/10 rounded-lg px-4 py-3 text-white focus:outline-none focus:ring-2 focus:ring-cyan-500/50"})]})]}),(0,J.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,J.jsxs)("div",{children:[(0,J.jsx)("label",{className:"block text-sm text-slate-300 mb-2",children:"Timeout (ms)"}),(0,J.jsx)("input",{name:"timeout",type:"number",defaultValue:"5000",min:"1000",required:!0,className:"w-full bg-black/30 border border-white/10 rounded-lg px-4 py-3 text-white focus:outline-none focus:ring-2 focus:ring-cyan-500/50"})]}),(0,J.jsxs)("div",{children:[(0,J.jsx)("label",{className:"block text-sm text-slate-300 mb-2",children:"Expected Status Codes"}),(0,J.jsx)("input",{name:"expectedStatus",defaultValue:"200, 201, 204",placeholder:"200, 201, 204",required:!0,className:"w-full bg-black/30 border border-white/10 rounded-lg px-4 py-3 text-white focus:outline-none focus:ring-2 focus:ring-cyan-500/50"})]})]}),(0,J.jsxs)("div",{children:[(0,J.jsx)("label",{className:"block text-sm text-slate-300 mb-2",children:"Payload (optional)"}),(0,J.jsx)("textarea",{name:"payload",rows:4,placeholder:'{"key": "value"}',className:"w-full bg-black/30 border border-white/10 rounded-lg px-4 py-3 text-white font-mono focus:outline-none focus:ring-2 focus:ring-cyan-500/50"})]}),(0,J.jsxs)("div",{className:"flex gap-3 pt-4",children:[(0,J.jsx)("button",{type:"submit",className:"flex-1 px-6 py-3 rounded-lg bg-gradient-to-r from-cyan-500 to-blue-500 text-white font-medium hover:opacity-90 transition-opacity",children:"Add Endpoint"}),(0,J.jsx)("button",{type:"button",onClick:()=>p(!1),className:"px-6 py-3 rounded-lg bg-white/10 hover:bg-white/20 text-white font-medium transition-colors",children:"Cancel"})]})]})]})]})}),(0,J.jsx)(eb,{open:m,onOpenChange:h,children:(0,J.jsxs)(tb,{children:[(0,J.jsx)(rb,{className:"fixed inset-0 bg-black/50 backdrop-blur-sm z-50"}),(0,J.jsxs)(ab,{className:"fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-full max-w-2xl max-h-[90vh] overflow-y-auto rounded-2xl backdrop-blur-xl bg-slate-900/95 border border-white/10 p-6 z-50",children:[(0,J.jsxs)(nb,{className:"text-2xl font-semibold text-white mb-6 flex items-center justify-between",children:[(0,J.jsx)("span",{children:"Alerts"}),k.length>0&&(0,J.jsx)("button",{onClick:()=>
248{k.forEach(N=>n(N.id)),$.success("All alerts acknowledged")},className:"text-sm px-4 py-2 rounded-lg bg-cyan-500/20 hover:bg-cyan-500/30 text-cyan-400 transition-colors",children:"Acknowledge All"})]}),(0,J.jsx)("div",{className:"space-y-3",children:k.length===0?(0,J.jsxs)("div",{className:"text-center py-12",children:[(0,J.jsx)(hc,{className:"w-16 h-16 text-slate-400 mx-auto mb-4"}),(0,J.jsx)("p",{className:"text-white font-medium",children:"No active alerts"}),(0,J.jsx)("p",{className:"text-slate-400 text-sm mt-2",children:"All systems operational"})]}):k.map(N=>(0,J.jsx)("div",{className:U("rounded-lg border p-4",N.severity==="critical"&&"bg-red-500/10 border-red-500/30",N.severity==="warning"&&"bg-amber-500/10 border-amber-500/30",N.severity==="info"&&"bg-blue-500/10 border-blue-500/30"),children:(0,J.jsxs)("div",{className:"flex items-start justify-between",children:[(0,J.jsxs)("div",{className:"flex-1",children:[(0,J.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[N.severity==="critical"&&(0,J.jsx)(Ct,{className:"w-4 h-4 text-red-400"}),N.severity==="warning"&&(0,J.jsx)(hr,{className:"w-4 h-4 text-amber-400"}),N.severity==="info"&&(0,J.jsx)(We,{className:"w-4 h-4 text-blue-400"}),(0,J.jsx)("span",{className:U("text-sm font-medium",N.severity==="critical"&&"text-red-300",N.severity==="warning"&&"text-amber-300",N.severity==="info"&&"text-blue-300"),children:N.message})]}),(0,J.jsx)("p",{className:"text-xs text-slate-400",children:new Date(N.timestamp).toLocaleString()})]}),(0,J.jsx)("button",{onClick:()=>{n(N.id),$.success("Alert acknowledged")},className:"px-3 py-1 rounded text-xs bg-white/10 hover:bg-white/20 text-white transition-colors",children:"Acknowledge"})]})},N.id))})]})]})})]})})},Fre=B6e;var Rl=R(Q());var Bre={maxRetries:3,initialDelay:1e3,maxDelay:3e4,backoffMultiplier:2,jitterType:"full",retryableStatusCodes:[408,429,500,502,503,504],timeout:5e3},V6e=(e,t)=>Math.min(t.initialDelay*Math.pow(t.backoffMultiplier,e-1),t.maxDelay),U6e=(e,t,r)=>{switch(t){case"none":return e;case"full":return Math.random()*e;case"equal":return e/2+Math.random()*(e/2);case"decorrelated":let a=r||e;return Math.min(e,Math.random()*a*3);default:return e}},Vre=(e,t,r)=>{let a=V6e(e,t);return Math.round(U6e(a,t.jitterType,r))},jre=(e,t)=>e?t.retryableStatusCodes.includes(e):!0,q6e=async(e,t,r)=>{let a=Date.now(),n=Math.random()*1e3+500;await new Promise(i=>setTimeout(i,n));let o=Date.now()-a;return r&&Math.random()<r.failureRate?{status:r.type==="timeout"?"timeout":"failure",statusCode:r.statusCode,responseTime:o,error:r.error}:o>t.timeout?{status:"timeout",responseTime:o,error:"Request timeout"}:{status:"success",statusCode:200,responseTime:o}},Ure=async(e,t,r)=>{let a=[],n=0,o,i=0;for(;n<=t.maxRetries;){n++;let s=n===1?0:Vre(n-1,t,o);o=s,s>0&&(await new Promise(f=>setTimeout(f,s)),i+=s);let l=await q6e(e,t,r);i+=l.responseTime;let d=n<t.maxRetries+1&&l.status!=="success"&&jre(l.statusCode,t),u={attemptNumber:n,timestamp:new Date,delay:s,status:l.status,statusCode:l.statusCode,responseTime:l.responseTime,error:l.error,willRetry:d};if(a.push(u),l.status==="success")return{totalAttempts:n,successfulAttempt:n,totalTime:i,attempts:a,finalStatus:"success"};if(!d)return{totalAttempts:n,totalTime:i,attempts:a,finalStatus:jre(l.statusCode,t)?"exhausted":"non_retryable"}}return{totalAttempts:n,totalTime:i,attempts:a,finalStatus:"exhausted"}},qre=[{name:"Intermittent Network",description:"30% chance of network failure",type:"network",failureRate:.3,error:"Network connection failed"},{name:"Flaky Server",description:"50% chance of 503 Service Unavailable",type:"server",failureRate:.5,statusCode:503,error:"Service temporarily unavailable"},{name:"Rate Limited",description:"70% chance of 429 Too Many Requests",type:"rate_limit",failureRate:.7,statusCode:429,error:"Rate limit exceeded"},{name:"Timeout Prone",description:"40% chance of request timeout",type:"timeout",failureRate:.4,error:"Request timeout"},{name:"Gateway Error",description:"60% chance of 502 Bad Gateway",type:"server",failureRate:.6,statusCode:502,error:"Bad gateway"},{name:"Overloaded",description:"80% chance of 500 Internal Server Error",type:"server",failureRate:.8,statusCode:500,error:"Internal server error"}],TO=[{name:"Conservative",description:"Few retries, long delays - for critical operations",config:{maxRetries:2,initialDelay:2e3,maxDelay:1e4,backoffMultiplier:2,jitterType:"equal",retryableStatusCodes:[500,502,503,504],timeout:1e4}},{name:"Balanced",description:"Standard retry logic - recommended for most cases",config:{maxRetries:3,initialDelay:1e3,maxDelay:3e4,backoffMultiplier:2,jitterType:"full",retryableStatusCodes:[408,429,500,502,503,504],timeout:5e3}},{name:"Aggressive",description:"Many retries, short delays - for non-critical operations",config:{maxRetries:5,initialDelay:500,maxDelay:15e3,backoffMultiplier:1.5,jitterType:"full",retryableStatusCodes:[408,429,500,502,503,504],timeout:3e3}},{name:"AWS Recommended",description:"AWS best practices with decorrelated jitter",config:{maxRetries:3,initialDelay:1e3,maxDelay:2e4,backoffMultiplier:2,jitterType:"decorrelated",retryableStatusCodes:[429,500,502,503,504],timeout:5e3}},{name:"Fast Fail",description:"Quick retries, fail fast - for real-time operations",config:{maxRetries:2,initialDelay:200,maxDelay:2e3,backoffMultiplier:2,jitterType:"none",retryableStatusCodes:[503,504],timeout:2e3}}],zre=e=>{let t=[],r=0,a;for(let n=0;n<=e.maxRetries;n++){let o=n===0?0:Vre(n,e,a);a=o,r+=o,t.push({attempt:n+1,delay:o,cumulativeTime:r})}return t};var ve=R(ke()),z6e=()=>{let[e,t]=Rl.useState(Bre),[r,a]=Rl.useState("balanced"),[n,o]=Rl.useState(null),[i,s]=Rl.useState(!1),[l,c]=Rl.useState(null),[d,u]=Rl.useState([]);Rl.useEffect(()=>{u(zre(e))},[e]);let f=m=>{let h=TO.find(g=>g.name.toLowerCase()===m);h&&(t(h.config),a(m))},p=async()=>{s(!0),c(null);try{let m=await Ure("https://api.example.com/webhook",e,n||void 0);c(m),$.success("Simulation complete")}catch{$.error("Simulation failed")}finally{s(!1)}};return(0,ve.jsx)($e,{children:(0,ve.jsxs)("div",{className:"space-y-6",children:[(0,ve.jsxs)("div",{children:[(0,ve.jsx)("h1",{className:"text-3xl font-bold bg-gradient-to-r from-purple-400 via-pink-400 to-rose-400 bg-clip-text text-transparent",children:"Retry Logic Simulator"}),(0,ve.jsx)("p",{className:"text-slate-400 mt-2",children:"Test exponential backoff strategies and failure scenarios"})]}),(0,ve.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[(0,ve.jsxs)("div",{className:"lg:col-span-1 space-y-6",children:[(0,ve.jsxs)("div",{className:"rounded-2xl backdrop-blur-xl bg-white/5 border border-white/10 p-6 space-y-4",children:[(0,ve.jsxs)("h3",{className:"text-lg font-semibold text-white flex items-center gap-2",children:[(0,ve.jsx)(Oa,{className:"w-5 h-5 text-purple-400"}),"Retry Strategy"]}
248),(0,ve.jsx)("div",{className:"space-y-2",children:TO.map(m=>(0,ve.jsxs)("button",{onClick:()=>f(m.name.toLowerCase()),className:U("w-full text-left p-4 rounded-lg transition-all",r===m.name.toLowerCase()?"bg-gradient-to-r from-purple-500 to-pink-500 text-white":"bg-white/5 hover:bg-white/10 text-slate-300"),children:[(0,ve.jsx)("p",{className:"font-medium",children:m.name}),(0,ve.jsx)("p",{className:"text-xs mt-1 opacity-75",children:m.description})]},m.name))})]}),(0,ve.jsxs)("div",{className:"rounded-2xl backdrop-blur-xl bg-white/5 border border-white/10 p-6 space-y-4",children:[(0,ve.jsxs)("h3",{className:"text-lg font-semibold text-white flex items-center gap-2",children:[(0,ve.jsx)(Dt,{className:"w-5 h-5 text-amber-400"}),"Failure Scenario"]}),(0,ve.jsxs)("div",{className:"space-y-2",children:[(0,ve.jsx)("button",{onClick:()=>o(null),className:U("w-full text-left p-3 rounded-lg transition-all text-sm",n?"bg-white/5 hover:bg-white/10 text-slate-300":"bg-green-500/20 border border-green-500/30 text-green-300"),children:"No Failures (Success)"}),qre.map(m=>(0,ve.jsxs)("button",{onClick:()=>o(m),className:U("w-full text-left p-3 rounded-lg transition-all text-sm",n?.name===m.name?"bg-red-500/20 border border-red-500/30 text-red-300":"bg-white/5 hover:bg-white/10 text-slate-300"),children:[(0,ve.jsx)("p",{className:"font-medium",children:m.name}),(0,ve.jsx)("p",{className:"text-xs mt-1 opacity-75",children:m.description})]},m.name))]})]}),(0,ve.jsx)("button",{onClick:p,disabled:i,className:"w-full flex items-center justify-center gap-2 px-6 py-4 rounded-lg bg-gradient-to-r from-purple-500 to-pink-500 text-white font-medium hover:opacity-90 transition-opacity disabled:opacity-50",children:i?(0,ve.jsxs)(ve.Fragment,{children:[(0,ve.jsx)(Ri,{className:"w-5 h-5 animate-spin"}),"Simulating..."]}):(0,ve.jsxs)(ve.Fragment,{children:[(0,ve.jsx)(Nr,{className:"w-5 h-5"}),"Run Simulation"]})})]}),(0,ve.jsxs)("div",{className:"lg:col-span-2 space-y-6",children:[(0,ve.jsxs)("div",{className:"rounded-2xl backdrop-blur-xl bg-gradient-to-br from-purple-500/10 to-pink-500/10 border border-purple-500/30 p-6",children:[(0,ve.jsx)("h3",{className:"text-lg font-semibold text-white mb-4",children:"Current Configuration"}),(0,ve.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-4",children:[(0,ve.jsxs)("div",{children:[(0,ve.jsx)("p",{className:"text-xs text-slate-400",children:"Max Retries"}),(0,ve.jsx)("p",{className:"text-xl font-bold text-white",children:e.maxRetries})]}),(0,ve.jsxs)("div",{children:[(0,ve.jsx)("p",{className:"text-xs text-slate-400",children:"Initial Delay"}),(0,ve.jsxs)("p",{className:"text-xl font-bold text-white",children:[e.initialDelay,"ms"]})]}),(0,ve.jsxs)("div",{children:[(0,ve.jsx)("p",{className:"text-xs text-slate-400",children:"Max Delay"}),(0,ve.jsxs)("p",{className:"text-xl font-bold text-white",children:[e.maxDelay,"ms"]})]}),(0,ve.jsxs)("div",{children:[(0,ve.jsx)("p",{className:"text-xs text-slate-400",children:"Backoff Multiplier"}),(0,ve.jsxs)("p",{className:"text-xl font-bold text-white",children:[e.backoffMultiplier,"x"]})]}),(0,ve.jsxs)("div",{children:[(0,ve.jsx)("p",{className:"text-xs text-slate-400",children:"Jitter Type"}),(0,ve.jsx)("p",{className:"text-xl font-bold text-white capitalize",children:e.jitterType})]}),(0,ve.jsxs)("div",{children:[(0,ve.jsx)("p",{className:"text-xs text-slate-400",children:"Timeout"}),(0,ve.jsxs)("p",{className:"text-xl font-bold text-white",children:[e.timeout,"ms"]})]})]})]}),(0,ve.jsxs)("div",{className:"rounded-2xl backdrop-blur-xl bg-white/5 border border-white/10 p-6",children:[(0,ve.jsxs)("h3",{className:"text-lg font-semibold text-white mb-4 flex items-center gap-2",children:[(0,ve.jsx)(vt,{className:"w-5 h-5 text-cyan-400"}),"Retry Timeline"]}),(0,ve.jsx)("div",{className:"h-64",children:(0,ve.jsx)(xn,{width:"100%",height:"100%",children:(0,ve.jsxs)(Dd,{data:d,children:[(0,ve.jsx)(Xn,{strokeDasharray:"3 3",stroke:"#334155",opacity:.3}),(0,ve.jsx)(Wr,{dataKey:"attempt",stroke:"#64748b",label:{value:"Attempt Number",position:"insideBottom",offset:-5}}),(0,ve.jsx)(Gr,{stroke:"#64748b",label:{value:"Cumulative Time (ms)",angle:-90,position:"insideLeft"}}),(0,ve.jsx)(lr,{contentStyle:{backgroundColor:"#1e293b",border:"1px solid #334155",borderRadius:"8px"}}
248),(0,ve.jsx)(kn,{dataKey:"cumulativeTime",fill:"#a855f7"})]})})})]}),(0,ve.jsx)(Ue,{children:l&&(0,ve.jsxs)(G.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},className:"space-y-4",children:[(0,ve.jsxs)("div",{className:U("rounded-2xl backdrop-blur-xl border p-6",l.finalStatus==="success"&&"bg-green-500/10 border-green-500/30",l.finalStatus==="exhausted"&&"bg-red-500/10 border-red-500/30",l.finalStatus==="non_retryable"&&"bg-amber-500/10 border-amber-500/30"),children:[(0,ve.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,ve.jsxs)("h3",{className:"text-lg font-semibold text-white flex items-center gap-2",children:[l.finalStatus==="success"&&(0,ve.jsx)(We,{className:"w-5 h-5 text-green-400"}),l.finalStatus==="exhausted"&&(0,ve.jsx)(Ct,{className:"w-5 h-5 text-red-400"}),l.finalStatus==="non_retryable"&&(0,ve.jsx)(Dt,{className:"w-5 h-5 text-amber-400"}),"Simulation Result"]}),(0,ve.jsxs)("span",{className:U("px-3 py-1 rounded-full text-sm font-medium",l.finalStatus==="success"&&"bg-green-500/20 text-green-300",l.finalStatus==="exhausted"&&"bg-red-500/20 text-red-300",l.finalStatus==="non_retryable"&&"bg-amber-500/20 text-amber-300"),children:[l.finalStatus==="success"&&"Success",l.finalStatus==="exhausted"&&"Retries Exhausted",l.finalStatus==="non_retryable"&&"Non-Retryable Error"]})]}),(0,ve.jsxs)("div",{className:"grid grid-cols-3 gap-4",children:[(0,ve.jsxs)("div",{children:[(0,ve.jsx)("p",{className:"text-xs text-slate-400",children:"Total Attempts"}),(0,ve.jsx)("p",{className:"text-2xl font-bold text-white",children:l.totalAttempts})]}),(0,ve.jsxs)("div",{children:[(0,ve.jsx)("p",{className:"text-xs text-slate-400",children:"Total Time"}),(0,ve.jsxs)("p",{className:"text-2xl font-bold text-white",children:[(l.totalTime/1e3).toFixed(2),"s"]})]}),(0,ve.jsxs)("div",{children:[(0,ve.jsx)("p",{className:"text-xs text-slate-400",children:"Success Attempt"}),(0,ve.jsx)("p",{className:"text-2xl font-bold text-white",children:l.successfulAttempt||"N/A"})]})]})]}),(0,ve.jsxs)("div",{className:"rounded-2xl backdrop-blur-xl bg-white/5 border border-white/10 p-6",children:[(0,ve.jsx)("h3",{className:"text-lg font-semibold text-white mb-4",children:"Attempt Details"}),(0,ve.jsx)("div",{className:"space-y-3",children:l.attempts.map(m=>(0,ve.jsxs)("div",{className:U("rounded-lg border p-4",m.status==="success"&&"bg-green-500/10 border-green-500/30",m.status==="failure"&&"bg-red-500/10 border-red-500/30",m.status==="timeout"&&"bg-amber-500/10 border-amber-500/30"),children:[(0,ve.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,ve.jsxs)("span",{className:"text-white font-medium",children:["Attempt #",m.attemptNumber]}),(0,ve.jsx)("span",{className:U("px-2 py-1 rounded text-xs font-medium",m.status==="success"&&"bg-green-500/20 text-green-300",m.status==="failure"&&"bg-red-500/20 text-red-300",m.status==="timeout"&&"bg-amber-500/20 text-amber-300"),children:m.status})]}),(0,ve.jsxs)("div",{className:"grid grid-cols-3 gap-4 text-sm",children:[(0,ve.jsxs)("div",{children:[(0,ve.jsx)("p",{className:"text-slate-400",children:"Delay"}),(0,ve.jsxs)("p",{className:"text-white",children:[m.delay,"ms"]})]}),(0,ve.jsxs)("div",{children:[(0,ve.jsx)("p",{className:"text-slate-400",children:"Response Time"}),(0,ve.jsxs)("p",{className:"text-white",children:[m.responseTime,"ms"]})]}),(0,ve.jsxs)("div",{children:[(0,ve.jsx)("p",{className:"text-slate-400",children:"Will Retry"}),(0,ve.jsx)("p",{className:"text-white",children:m.willRetry?"Yes":"No"})]})]}),m.error&&(0,ve.jsx)("p",{className:"text-xs text-red-400 mt-2",children:m.error})]},m.attemptNumber))})]})]})}),!l&&!i&&(0,ve.jsxs)("div",{className:"text-center py-16 rounded-2xl bg-white/5 border border-white/10",children:[(0,ve.jsx)(Ri,{className:"w-16 h-16 text-slate-400 mx-auto mb-4"}),(0,ve.jsx)("p",{className:"text-white font-medium text-lg",children:"No simulation results yet"}),(0,ve.jsx)("p",{className:"text-slate-400 mt-2",children:"Configure your retry strategy and run a simulation"})]})]})]})]})})},Hre=z6e;var Ol=R(Q());var te=R(ke()),H6e=()=>{let[e,t]=Ol.useState("scanner"),[r,a]=Ol.useState(!1),[n,o]=Ol.useState(0),[i,s]=Ol.useState(null),[l,c]=Ol.useState([]),[d,u]=Ol.useState(24),f=Cp();Ol.useEffect(()=>{let k=[{id:"1",severity:"high",category:"Authentication",title:"Weak API Key Detected",description:'API key "sk_test_123..." does not meet minimum entropy requirements',affectedEndpoints:["/api/webhooks/stripe"],recommendation:"Regenerate with a stronger key (min 32 characters, mixed case)",detectedAt:new Date(Date.now()-72e5),status:"open"},{id:"2",severity:"medium",category:"Rate Limiting",title:"Missing Rate Limit Configuration",description:"Endpoint /api/public/webhook has no rate limiting configured",affectedEndpoints:["/api/public/webhook"],recommendation:"Apply rate limiting: 100 requests per 15 minutes recommended",detectedAt:new Date(Date.now()-18e6),status:"investigating"},{id:"3",severity:"low",category:"Monitoring",title:"Inactive Webhook Connection",description:'Webhook "Legacy Payment System" has not received events in 30 days',affectedEndpoints:["/webhooks/legacy-payments"],recommendation:"Review if still needed, c
248onsider archiving or removing",detectedAt:new Date(Date.now()-864e5),status:"open"}];c(k)},[]);let p=async()=>{a(!0),o(0);let k=[{progress:20,delay:500,message:"Checking API endpoints..."},{progress:40,delay:700,message:"Validating credentials..."},{progress:60,delay:600,message:"Analyzing rate limits..."},{progress:80,delay:500,message:"Scanning for vulnerabilities..."},{progress:100,delay:400,message:"Generating report..."}];for(let N of k)await new Promise(E=>setTimeout(E,N.delay)),o(N.progress),$.info(N.message);s({totalChecks:47,passed:42,failed:2,warnings:3,duration:3.2,timestamp:new Date}),a(!1),$.success("Security scan completed!")},m=k=>{switch(k){case"critical":return"from-red-500 to-rose-600";case"high":return"from-orange-500 to-amber-600";case"medium":return"from-yellow-500 to-amber-500";case"low":return"from-blue-500 to-cyan-500";default:return"from-slate-500 to-slate-600"}},h=k=>{switch(k){case"critical":case"high":return(0,te.jsx)(hr,{className:"w-5 h-5"});case"medium":return(0,te.jsx)(Yr,{className:"w-5 h-5"});case"low":return(0,te.jsx)(We,{className:"w-5 h-5"});default:return(0,te.jsx)(Qe,{className:"w-5 h-5"})}},g=f.getSummary(),y=f.getTimeSeriesData(d),v=f.getProviderStats(),x=f.getGeographicData(),S=f.getStatusCodeDistribution(),b=["#06b6d4","#8b5cf6","#ec4899","#f59e0b","#10b981"],w=l.some(k=>k.severity==="critical"||k.severity==="high");return(0,te.jsx)($e,{children:(0,te.jsxs)("div",{className:"space-y-6",children:[(0,te.jsxs)("div",{children:[(0,te.jsx)("h1",{className:"text-3xl font-bold bg-gradient-to-r from-cyan-400 via-blue-400 to-purple-400 bg-clip-text text-transparent",children:"Advanced Tools"}),(0,te.jsx)("p",{className:"text-slate-400 mt-2",children:"Security scanning and analytics insights for power users"})]}),(0,te.jsxs)(fh,{value:e,onValueChange:t,children:[(0,te.jsxs)(ph,{className:"flex gap-2 border-b border-white/10 mb-6",children:[(0,te.jsxs)(Io,{value:"scanner",className:U("px-6 py-3 text-sm font-medium transition-colors relative",e==="scanner"?"text-white":"text-slate-400 hover:text-white"),children:[(0,te.jsx)(Qe,{className:"w-4 h-4 inline mr-2"}),"Security Scanner",e==="scanner"&&(0,te.jsx)(G.div,{layoutId:"activeAdvancedTab",className:"absolute bottom-0 left-0 right-0 h-0.5 bg-gradient-to-r from-cyan-500 to-blue-500"})]}),(0,te.jsxs)(Io,{value:"analytics",className:U("px-6 py-3 text-sm font-medium transition-colors relative",e==="analytics"?"text-white":"text-slate-400 hover:text-white"),children:[(0,te.jsx)(nr,{className:"w-4 h-4 inline mr-2"}),"Analytics Dashboard",e==="analytics"&&(0,te.jsx)(G.div,{layoutId:"activeAdvancedTab",className:"absolute bottom-0 left-0 right-0 h-0.5 bg-gradient-to-r from-purple-500 to-pink-500"})]})]}),(0,te.jsx)(Po,{value:"scanner",className:"data-[state=active]:block data-[state=inactive]:hidden",children:(0,te.jsxs)("div",{className:"space-y-6",children:[(0,te.jsxs)("div",{className:"rounded-2xl backdrop-blur-xl bg-white/5 border border-white/10 p-6",children:[(0,te.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,te.jsxs)("div",{children:[(0,te.jsx)("h3",{className:"text-lg font-semibold text-white mb-1",children:"Security Health Check"}),(0,te.jsx)("p",{className:"text-sm text-slate-400",children:"Comprehensive security audit of your API infrastructure"})]}),(0,te.jsx)("button",{onClick:p,disabled:r,className:U("px-6 py-3 rounded-xl font-medium transition-all duration-300","bg-gradient-to-r from-cyan-500 to-blue-500","hover:from-cyan-400 hover:to-blue-400","text-white shadow-lg shadow-cyan-500/25","disabled:opacity-50 disabled:cursor-not-allowed","flex items-center gap-2"),children:r?(0,te.jsxs)(te.Fragment,{children:[(0,te.jsx)(hn,{className:"w-4 h-4 animate-spin"}),"Scanning..."]}):(0,te.jsxs)(te.Fragment,{children:[(0,te.jsx)(zo,{className:"w-4 h-4"}),"Run Security Scan"]})})]}),r&&(0,te.jsxs)("div",{className:"space-y-2",children:[(0,te.jsx)("div",{className:"h-2 bg-slate-800 rounded-full overflow-hidden",children:(0,te.jsx)(G.div,{className:"h-full bg-gradient-to-r from-cyan-500 to-blue-500",initial:{width:0},animate:{width:`${n}%`},transition:{duration:.3}})}),(0,te.jsxs)("p",{className:"text-sm text-slate-400 text-center",children:[n,"% Complete"]})]}),i&&!r&&(0,te.jsxs)(G.div,{initial:{opacity:0,y:10}
248,animate:{opacity:1,y:0},className:"grid grid-cols-2 md:grid-cols-5 gap-4 mt-6",children:[(0,te.jsxs)("div",{className:"p-4 rounded-xl bg-slate-800/50 border border-white/5",children:[(0,te.jsx)("div",{className:"text-sm text-slate-400 mb-1",children:"Total Checks"}),(0,te.jsx)("div",{className:"text-2xl font-bold text-white",children:i.totalChecks})]}),(0,te.jsxs)("div",{className:"p-4 rounded-xl bg-green-500/10 border border-green-500/20",children:[(0,te.jsx)("div",{className:"text-sm text-green-400 mb-1",children:"Passed"}),(0,te.jsx)("div",{className:"text-2xl font-bold text-green-400",children:i.passed})]}),(0,te.jsxs)("div",{className:"p-4 rounded-xl bg-red-500/10 border border-red-500/20",children:[(0,te.jsx)("div",{className:"text-sm text-red-400 mb-1",children:"Failed"}),(0,te.jsx)("div",{className:"text-2xl font-bold text-red-400",children:i.failed})]}),(0,te.jsxs)("div",{className:"p-4 rounded-xl bg-yellow-500/10 border border-yellow-500/20",children:[(0,te.jsx)("div",{className:"text-sm text-yellow-400 mb-1",children:"Warnings"}),(0,te.jsx)("div",{className:"text-2xl font-bold text-yellow-400",children:i.warnings})]}),(0,te.jsxs)("div",{className:"p-4 rounded-xl bg-slate-800/50 border border-white/5",children:[(0,te.jsx)("div",{className:"text-sm text-slate-400 mb-1",children:"Duration"}),(0,te.jsxs)("div",{className:"text-2xl font-bold text-white",children:[i.duration,"s"]})]})]})]}),(0,te.jsxs)("div",{className:"rounded-2xl backdrop-blur-xl bg-white/5 border border-white/10 p-6",children:[(0,te.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,te.jsx)("h3",{className:"text-lg font-semibold text-white",children:"Security Issues"}),(0,te.jsx)("div",{className:"flex items-center gap-2",children:(0,te.jsx)("span",{className:U("px-3 py-1 rounded-full text-xs font-medium",w?"bg-red-500/20 text-red-400 border border-red-500/30":"bg-green-500/20 text-green-400 border border-green-500/30"),children:w?"Action Required":"All Clear"})})]}),(0,te.jsx)("div",{className:"space-y-4",children:l.length===0?(0,te.jsxs)("div",{className:"text-center py-12",children:[(0,te.jsx)(We,{className:"w-12 h-12 text-green-400 mx-auto mb-3"}),(0,te.jsx)("p",{className:"text-slate-400",children:"No security issues detected"})]}):l.map(k=>(0,te.jsx)(G.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},className:"p-4 rounded-xl bg-slate-800/50 border border-white/5 hover:border-white/10 transition-colors",children:(0,te.jsxs)("div",{className:"flex items-start gap-4",children:[(0,te.jsx)("div",{className:U("p-3 rounded-xl bg-gradient-to-br",m(k.severity)),children:h(k.severity)}),(0,te.jsxs)("div",{className:"flex-1",children:[(0,te.jsxs)("div",{className:"flex items-center gap-3 mb-2",children:[(0,te.jsx)("h4",{className:"font-semibold text-white",children:k.title}),(0,te.jsx)("span",{className:"px-2 py-0.5 rounded text-xs font-medium bg-slate-700 text-slate-300",children:k.category}),(0,te.jsx)("span",{className:U("px-2 py-0.5 rounded text-xs font-medium uppercase",k.severity==="critical"&&"bg-red-500/20 text-red-400",k.severity==="high"&&"bg-
248orange-500/20 text-orange-400",k.severity==="medium"&&"bg-yellow-500/20 text-yellow-400",k.severity==="low"&&"bg-blue-500/20 text-blue-400"),children:k.severity})]}),(0,te.jsx)("p",{className:"text-sm text-slate-400 mb-3",children:k.description}),(0,te.jsxs)("div",{className:"flex items-center gap-4 text-xs text-slate-500",children:[(0,te.jsxs)("span",{className:"flex items-center gap-1",children:[(0,te.jsx)(Oi,{className:"w-3 h-3"}),k.affectedEndpoints.length," endpoint(s)"]}),(0,te.jsxs)("span",{className:"flex items-center gap-1",children:[(0,te.jsx)(vt,{className:"w-3 h-3"}),Zr(k.detectedAt,"MMM d, h:mm a")]})]}),(0,te.jsx)("div",{className:"mt-3 p-3 rounded-lg bg-cyan-500/10 border border-cyan-500/20",children:(0,te.jsxs)("p",{className:"text-sm text-cyan-400",children:[(0,te.jsx)("strong",{children:"Recommendation:"})," ",k.recommendation]})})]})]})},k.id))})]})]})}),(0,te.jsx)(Po,{value:"analytics",className:"data-[state=active]:block data-[state=inactive]:hidden",children:(0,te.jsxs)("div",{className:"space-y-6",children:[(0,te.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4",children:[(0,te.jsxs)("div",{className:"p-6 rounded-2xl backdrop-blur-xl bg-white/5 border border-white/10",children:[(0,te.jsxs)("div",{className:"flex items-center gap-3 mb-2",children:[(0,te.jsx)("div",{className:"p-2 rounded-lg bg-cyan-500/20",children:(0,te.jsx)(qt,{className:"w-5 h-5 text-cyan-400"})}),(0,te.jsx)("span",{className:"text-sm text-slate-400",children:"Total Requests"})]}),(0,te.jsx)("div",{className:"text-3xl font-bold text-white",children:g.totalRequests.toLocaleString()})]}),(0,te.jsxs)("div",{className:"p-6 rounded-2xl backdrop-blur-xl bg-white/5 border border-white/10",children:[(0,te.jsxs)("div",{className:"flex items-center gap-3 mb-2",children:[(0,te.jsx)("div",{className:"p-2 rounded-lg bg-green-500/20",children:(0,te.jsx)(We,{className:"w-5 h-5 text-green-400"})}),(0,te.jsx)("span",{className:"text-sm text-slate-400",children:"Success Rate"})]}),(0,te.jsxs)("div",{className:"text-3xl font-bold text-green-400",children:[g.successRate.toFixed(1),"%"]})]}),(0,te.jsxs)("div",{className:"p-6 rounded-2xl backdrop-blur-xl bg-white/5 border border-white/10",children:[(0,te.jsxs)("div",{className:"flex items-center gap-3 mb-2",children:[(0,te.jsx)("div",{className:"p-2 rounded-lg bg-purple-500/20",children:(0,te.jsx)(et,{className:"w-5 h-5 text-purple-400"})}),(0,te.jsx)("span",{className:"text-sm text-slate-400",children:"Avg Response"})]}),(0,te.jsxs)("div",{className:"text-3xl font-bold text-purple-400",children:[g.avgResponseTime.toFixed(0),"ms"]})]}),(0,te.jsxs)("div",{className:"p-6 rounded-2xl backdrop-blur-xl bg-white/5 border border-white/10",children:[(0,te.jsxs)("div",{className:"flex items-center gap-3 mb-2",children:[(0,te.jsx)("div",{className:"p-2 rounded-lg bg-pink-500/20",children:(0,te.jsx)(ia,{className:"w-5 h-5 text-pink-400"})}),(0,te.jsx)("span",{className:"text-sm text-slate-400",children:"Top Country"})]}),(0,te.jsx)("div",{className:"text-3xl font-bold text-pink-400",children:g.topCountry})]})]}),(0,te.jsxs)("div",{className:"rounded-2xl backdrop-blur-xl bg-white/5 border border-white/10 p-6",children:[(0,te.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,te.jsx)("h3",{className:"text-lg font-semibold text-white",children:"Request Timeline"}),(0,te.jsx)("div",{className:"flex gap-2",children:[6,12,24,48].map(k=>(0,te.jsxs)("button",{onClick:()=>u(k),className:U("px-3 py-1 rounded-lg text-sm font-medium transition-colors",d===k?"bg-cyan-500 text-white":"bg-slate-800 text-slate-400 hover:text-white"),children:[k,"h"]},k))})]}),(0,te.jsx)(xn,{width:"100%",height:300,children:(0,te.jsxs)(Od,{data:y,children:[(0,te.jsx)(Xn,{strokeDasharray:"3 3",stroke:"#334155"}),(0,te.jsx)(Wr,{dataKey:"timestamp",tickFormatter:k=>Zr(new Date(k),"HH:mm"),stroke:"#64748b"}),(0,te.jsx)(Gr,{stroke:"#64748b"}),(0,te.jsx)(lr,{contentStyle:{backgroundColor:"#1e293b",border:"1px solid #334155",borderRadius:"8px"},labelFormatter:k=>Zr(new Date(k),"MMM d, HH:mm")}),(0,te.jsx)(No,{type:"monotone",dataKey:"requests",stroke:"#06b6d4",strokeWidth:2}),(0,te.jsx)(No,{type:"monotone",dataKey:"errors",stroke:"#ef4444",strokeWidth:2})]})})]}),(0,te.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[(0,te.jsxs)("div",{className:"rounded-2xl backdrop-blur-xl bg-white/5 border border-white/10 p-6",children:[(0,te.jsx)("h3",{className:"text-lg font-semibold text-white mb-4",children:"Provider Performance"}),(0,te.jsx)("div",{className:"space-y-3",children:v.map((k,C)=>(0,te.jsxs)("div",{className:"p-4 rounded-xl bg-slate-800/50",children:[(0,te.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,te.jsx)("span",{className:"font-medium text-white",children:k.provider}),(0,te.jsxs)("span",{className:"text-sm text-green-400",children:[k.successRate,"%"]})]}),(0,te.jsxs)("div",{className:"flex items-center gap-4 text-sm text-slate-400",children:[(0,te.jsxs)("span",{children:[k.totalRequests," requests"]}),(0,te.jsxs)("span",{children:[k.avgResponseTime,"ms avg"]})]})]},k.provider))})]}),(0,te.jsxs)("div",{className:"rounded-2xl backdrop-blur-xl bg-white/5 border border-white/10 p-6",children:[(0,te.jsx)("h3",{className:"text-lg font-semibold text-white mb-4",children:"Geographic Distribution"}),(0,te.jsx)(xn,{width:"100%",height:250,children:(0,te.jsxs)($y,{children:[(0,te.jsx)($n,{data:x,dataKey:"count",nameKey:"country",cx:"50%",cy:"50%",outerRadius:80,label:k=>`${k.country} (${k.percentage.toFixed(0)}%)`,children:x.map((k,C)=>(0,te.jsx)(Ns,{fill:b[C%b.length]},`cell-${C}`))}),(0,te.jsx)(lr,{})]})})]})]}),(0,te.jsxs)("div",{className:"rounded-2xl backdrop-blur-xl bg-white/5 border border-white/10 p-6",children:[(0,te.jsx)("h3",{className:"text-lg font-semibold text-white mb-4",children:"Status Code Distribution"}),(0,te.jsx)(xn,{width:"100%",height:250,children:(0,te.jsxs)(Dd,{data:S,children:[(0,te.jsx)(Xn,{strokeDasharray:"3 3",stroke:"#334155"}),(0,te.jsx)(Wr,{dataKey:"status",stroke:"#64748b"}),(0,te.jsx)(Gr,{stroke:"#64748b"}),(0,te.jsx)(lr,{contentStyle:{backgroundColor:"#1e293b",border:"1px solid #334155",borderRadius:"8px"}}),(0,te.jsx)(kn,{dataKey:"count",fill:"#06b6d4",radius:[8,8,0,0]})]})})]})]})})]})]})})},Wre=H6e;var xh=R(Q());var se=R(ke()),Gre={LayoutDashboard:us,TrendingUp:Br,LinkIcon:Ya,Activity:qt,Layers:jr,Code:mn,FileText:jt,Zap:et,Key:Dr,Shield:Qe,BookOpen:Ai,RotateCw:Ri,Sparkles:kt},RO=e=>Gre[e]||Gre.LayoutDashboard,$re=["#06b6d4","#8b5cf6","#ec4899","#f59e0b","#10b981","#ef4444"],W6e=()=>{let{getTopPages:e,getRecentPages:t,getTotalVisits:r,getVisitsByTimeRange:a,getSuggestedFavorites:n,clearAnalytics:o}=Cp(),{favorites:i,toggleFavorite:s}=_1(),[l,c]=xh.useState(7),[d,u]=xh.useState(!1),f=e(10),p=t(10),m=r(),h=a(l),g=n(i.map(w=>w.href),5),y=new Set(h.map(w=>w.href)).size,v=h.length/l,x=xh.useMemo(()=>{let w={},k=Date.now();for(let C=l-1;C>=0;C--){let N=new Date(k-C*24*60*60*1e3),E=Zr(N,"MMM dd");w[E]=0}return h.forEach(C=>{let N=Zr(new Date(C.timestamp),"MMM dd");w[N]!==void 0&&w[N]++}),Object.entries(w).map(([C,N])=>({date:C,visits:N}))},[h,l]),S=xh.useMemo(()=>{let w={};return h.forEach(k=>{w[k.href]||(w[k.href]={name:k.name,value:0}),w[k.href].value++}),Object.values(w).sort((k,C)=>C.value-k.value).slice(0,6)},[h]);return(0,se.jsx)($e,{children:(0,se.jsxs)("div",{className:"space-y-8",children:[(0,se.jsxs)("div",{className:"flex items-start justify-between",children:[(0,se.jsxs)("div",{children:[(0,se.jsx)("h1",{className:"text-4xl font-bold bg-gradient-to-r from-cyan-400 via-purple-400 to-pink-400 bg-clip-text text-transparent mb-2",children:"Usage Analytics"}),(0,se.jsx)("p",{className:"text-slate-400",children:"Track your navigation patterns and discover your most-used pages"})]}),(0,se.jsxs)("div",{className:"flex items-center gap-2",children:[(0,se.jsxs)("button",{onClick:()=>window.location.reload(),className:"px-4 py-2 rounded-lg bg-white/5 hover:bg-white/10 border border-white/10 transition-all flex items-center gap-2 text-sm",children:[(0,se.jsx)(hn,{className:"w-4 h-4"}),"Refresh"]}),d?(0,se.jsxs)("div",{className:"flex items-center gap-2",children:[(0,se.jsx)("button",{onClick:()=>{o(),u(!1)},className:"px-4 py-2 rounded-lg bg-red-500/20 hover:bg-red-500/30 border border-red-500/30 transition-all text-sm text-red-400 font-medium",children:"Confirm Clear"}),(0,se.jsx)("button",{onClick:()=>u(!1),className:"px-4 py-2 rounded-lg bg-white/5 hover:bg-white/10 border border-white/10 transition-all text-sm",children:"Cancel"})]}):(0,se.jsxs)("button",{onClick:()=>u(!0),className:"px-4 py-2 rounded-lg bg-red-500/10 hover:bg-red-500/20 border border-red-500/20 transition-all flex items-center gap-2 text-sm text-red-400",children:[(0,se.jsx)(Kt,{className:"w-4 h-4"}),"Clear Data"]})]})]}),(0,se.jsxs)("div",{className:"flex items-center gap-2",children:[(0,se.jsx)("span",{className:"text-sm text-slate-400",children:"Time Range:"}),[7,30,90].map(w=>(0,se.jsxs)("button",{onClick:()=>c(w),className:U("px-4 py-2 rounded-lg text-sm font-medium transition-all",l===w?"bg-gradient-to-r from-cyan-500/20 via-purple-500/20 to-pink-500/20 text-white border border-cyan-500/30":"bg-white/5 hover:bg-white/10 border border-white/10 text-slate-400"),children:[w," days"]},w))]}),(0,se.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:[(0,se.jsxs)(G.div,{initial:{opacity:0,y:20}
248,animate:{opacity:1,y:0},transition:{delay:.1},className:"backdrop-blur-xl bg-gradient-to-br from-cyan-500/10 to-cyan-500/5 rounded-2xl p-6 border border-cyan-500/20",children:[(0,se.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,se.jsx)("div",{className:"w-12 h-12 rounded-xl bg-cyan-500/20 flex items-center justify-center",children:(0,se.jsx)(rp,{className:"w-6 h-6 text-cyan-400"})}),(0,se.jsx)(Br,{className:"w-5 h-5 text-cyan-400"})]}),(0,se.jsx)("div",{className:"text-3xl font-bold text-white mb-1",children:m}),(0,se.jsx)("div",{className:"text-sm text-slate-400",children:"Total Page Visits"})]}),(0,se.jsxs)(G.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"backdrop-blur-xl bg-gradient-to-br from-purple-500/10 to-purple-500/5 rounded-2xl p-6 border border-purple-500/20",children:[(0,se.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,se.jsx)("div",{className:"w-12 h-12 rounded-xl bg-purple-500/20 flex items-center justify-center",children:(0,se.jsx)(Yr,{className:"w-6 h-6 text-purple-400"})}),(0,se.jsx)(qt,{className:"w-5 h-5 text-purple-400"})]}),(0,se.jsx)("div",{className:"text-3xl font-bold text-white mb-1",children:y}),(0,se.jsx)("div",{className:"text-sm text-slate-400",children:"Unique Pages Visited"})]}),(0,se.jsxs)(G.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3},className:"backdrop-blur-xl bg-gradient-to-br from-pink-500/10 to-pink-500/5 rounded-2xl p-6 border border-pink-500/20",children:[(0,se.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,se.jsx)("div",{className:"w-12 h-12 rounded-xl bg-pink-500/20 flex items-center justify-center",children:(0,se.jsx)(ba,{className:"w-6 h-6 text-pink-400"})}),(0,se.jsx)(nr,{className:"w-5 h-5 text-pink-400"})]}),(0,se.jsx)("div",{className:"text-3xl font-bold text-white mb-1",children:v.toFixed(1)}),(0,se.jsx)("div",{className:"text-sm text-slate-400",children:"Avg Visits Per Day"})]}),(0,se.jsxs)(G.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.4},className:"backdrop-blur-xl bg-gradient-to-br from-amber-500/10 to-amber-500/5 rounded-2xl p-6 border border-amber-500/20",children:[(0,se.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,se.jsx)("div",{className:"w-12 h-12 rounded-xl bg-amber-500/20 flex items-center justify-center",children:(0,se.jsx)(Za,{className:"w-6 h-6 text-amber-400 fill-amber-400"})}),(0,se.jsx)(kt,{className:"w-5 h-5 text-amber-400"})]}),(0,se.jsx)("div",{className:"text-3xl font-bold text-white mb-1",children:i.length}),(0,se.jsx)("div",{className:"text-sm text-slate-400",children:"Favorited Pages"})]})]}),(0,se.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[(0,se.jsxs)(G.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.5},className:"backdrop-blur-xl bg-black/20 rounded-2xl p-6 border border-white/10",children:[(0,se.jsxs)("h3",{className:"text-lg font-semibold text-white mb-4 flex items-center gap-2",children:[(0,se.jsx)(qt,{className:"w-5 h-5 text-cyan-400"}),"Visits Over Time"]}),(0,se.jsx)(xn,{width:"100%",height:250,children:(0,se.jsxs)(Od,{data:x,children:[(0,se.jsx)(Xn,{strokeDasharray:"3 3",stroke:"#ffffff10"}),(0,se.jsx)(Wr,{dataKey:"date",stroke:"#94a3b8",fontSize:12,tickLine:!1}),(0,se.jsx)(Gr,{stroke:"#94a3b8",fontSize:12,tickLine:!1}),(0,se.jsx)(lr,{contentStyle:{backgroundColor:"#0f172a",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"8px",color:"#fff"}}),(0,se.jsx)(No,{type:"monotone",dataKey:"visits",stroke:"#06b6d4",strokeWidth:2,dot:{fill:"#06b6d4",r:4},activeDot:{r:6}})]})})]}),(0,se.jsxs)(G.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.6},className:"backdrop-blur-xl bg-black/20 rounded-2xl p-6 border border-white/10",children:[(0,se.jsxs)("h3",{className:"text-lg font-semibold text-white mb-4 flex items-center gap-2",children:[(0,se.jsx)(nr,{className:"w-5 h-5 text-purple-400"}),"Page Distribution"]}),(0,se.jsx)(xn,{width:"100%",height:250,children:(0,se.jsxs)($y,{children:[(0,se.jsx)($n,{data:S,cx:"50%",cy:"50%",labelLine:!1,label:({name:w,percent:k})=>`${w} (${(k*100).toFixed(0)}%)`,outerRadius:80,fill:"#8884d8",dataKey:"value",children:S.map((w,k)=>(0,se.jsx)(Ns,{fill:$re[k%$re.length]},`cell-${k}`))}),(0,se.jsx)(lr,{contentStyle:{backgroundColor:"#0f172a",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"8px",color:"#fff"}})]})})]})]}),g.length>0&&(0,se.jsxs)(G.div,{initial:{opacity:0,y:20}
248,animate:{opacity:1,y:0},transition:{delay:.7},className:"backdrop-blur-xl bg-gradient-to-br from-amber-500/10 to-orange-500/5 rounded-2xl p-6 border border-amber-500/20",children:[(0,se.jsxs)("div",{className:"flex items-center gap-3 mb-6",children:[(0,se.jsx)("div",{className:"w-10 h-10 rounded-xl bg-amber-500/20 flex items-center justify-center",children:(0,se.jsx)(kt,{className:"w-5 h-5 text-amber-400"})}),(0,se.jsxs)("div",{children:[(0,se.jsx)("h3",{className:"text-lg font-semibold text-white",children:"Suggested Favorites"}),(0,se.jsx)("p",{className:"text-sm text-slate-400",children:"Based on your usage patterns, consider pinning these pages"})]})]}),(0,se.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:g.map((w,k)=>{let C=RO(w.icon);return(0,se.jsxs)(G.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{delay:.8+k*.1},className:"backdrop-blur-xl bg-black/40 rounded-xl p-4 border border-white/10 hover:border-amber-500/30 transition-all group",children:[(0,se.jsx)("div",{className:"flex items-start justify-between mb-3",children:(0,se.jsxs)("div",{className:"flex items-center gap-3",children:[(0,se.jsx)("div",{className:"w-10 h-10 rounded-lg bg-gradient-to-br from-amber-500/20 to-orange-500/20 flex items-center justify-center",children:(0,se.jsx)(C,{className:"w-5 h-5 text-amber-400"})}),(0,se.jsxs)("div",{children:[(0,se.jsx)("div",{className:"font-medium text-white",children:w.name}),(0,se.jsx)("div",{className:"text-xs text-slate-400",children:w.groupName})]})]})}),(0,se.jsx)("div",{className:"flex items-center justify-between text-sm mb-3",children:(0,se.jsxs)("div",{className:"flex items-center gap-4",children:[(0,se.jsxs)("div",{className:"flex items-center gap-1 text-slate-400",children:[(0,se.jsx)(rp,{className:"w-3 h-3"}),(0,se.jsxs)("span",{children:[w.visitCount," visits"]})]}),(0,se.jsxs)("div",{className:"flex items-center gap-1 text-slate-400",children:[(0,se.jsx)(vt,{className:"w-3 h-3"}),(0,se.jsx)("span",{children:Yu(w.lastVisit,{addSuffix:!0})})]})]})}),(0,se.jsxs)("button",{onClick:()=>s({name:w.name,href:w.href,icon:w.icon,groupName:w.groupName}),className:"w-full px-4 py-2 rounded-lg bg-gradient-to-r from-amber-500/20 to-orange-500/20 hover:from-amber-500/30 hover:to-orange-500/30 border border-amber-500/30 text-amber-400 font-medium transition-all flex items-center justify-center gap-2 group-hover:scale-105",children:[(0,se.jsx)(Za,{className:"w-4 h-4"}),"Add to Favorites"]})]},w.href)})})]}),(0,se.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[(0,se.jsxs)(G.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.8},className:"backdrop-blur-xl bg-black/20 rounded-2xl p-6 border border-white/10",children:[(0,se.jsxs)("h3",{className:"text-lg font-semibold text-white mb-4 flex items-center gap-2",children:[(0,se.jsx)(Br,{className:"w-5 h-5 text-cyan-400"}),"Most Visited Pages"]}),(0,se.jsx)("div",{className:"space-y-3",children:f.map((w,k)=>{let C=RO(w.icon),N=i.some(E=>E.href===w.href);return(0,se.jsxs)(G.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.9+k*.05},className:"flex items-center gap-3 p-3 rounded-lg bg-white/5 hover:bg-white/10 border border-white/10 transition-all group",children:[(0,se.jsx)("div",{className:"flex items-center justify-center w-8 h-8 rounded-lg bg-gradient-to-br from-cyan-500/20 to-purple-500/20 text-sm font-bold text-cyan-400",children:k+1}),(0,se.jsx)("div",{className:"w-8 h-8 rounded-lg bg-gradient-to-br from-cyan-500/10 to-purple-500/10 flex items-center justify-center",children:(0,se.jsx)(C,{className:"w-4 h-4 text-cyan-400"})}),(0,se.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,se.jsx)("div",{className:"font-medium text-white truncate",children:w.name}),(0,se.jsx)("div",{className:"text-xs text-slate-400",children:w.groupName})]}),(0,se.jsxs)("div",{className:"flex items-center gap-3",children:[(0,se.jsxs)("div",{className:"text-right",children:[(0,se.jsx)("div",{className:"text-sm font-medium text-white",children:w.visitCount}),(0,se.jsx)("div",{className:"text-xs text-slate-400",children:"visits"})]}),N?(0,se.jsx)(Za,{className:"w-4 h-4 text-amber-400 fill-amber-400"}):(0,se.jsx)(rc,{to:w.href,className:"opacity-0 group-hover:opacity-100 transition-opacity",children:(0,se.jsx)(Ka,{className:"w-4 h-4 text-slate-400 hover:text-white"})})]})]},w.href)})})]}),(0,se.jsxs)(G.div,{initial:{opacity:0,y:20}
248,animate:{opacity:1,y:0},transition:{delay:.9},className:"backdrop-blur-xl bg-black/20 rounded-2xl p-6 border border-white/10",children:[(0,se.jsxs)("h3",{className:"text-lg font-semibold text-white mb-4 flex items-center gap-2",children:[(0,se.jsx)(vt,{className:"w-5 h-5 text-purple-400"}),"Recent Activity"]}),(0,se.jsx)("div",{className:"space-y-2",children:p.map((w,k)=>{let C=RO(w.icon);return(0,se.jsxs)(G.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:1+k*.03},className:"flex items-center gap-3 p-2 rounded-lg hover:bg-white/5 transition-all group",children:[(0,se.jsx)("div",{className:"w-8 h-8 rounded-lg bg-gradient-to-br from-purple-500/10 to-pink-500/10 flex items-center justify-center",children:(0,se.jsx)(C,{className:"w-4 h-4 text-purple-400"})}),(0,se.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,se.jsx)("div",{className:"text-sm font-medium text-white truncate",children:w.name}),(0,se.jsx)("div",{className:"text-xs text-slate-400",children:Yu(w.timestamp,{addSuffix:!0})})]}),(0,se.jsx)(rc,{to:w.href,className:"opacity-0 group-hover:opacity-100 transition-opacity",children:(0,se.jsx)(Ka,{className:"w-4 h-4 text-slate-400 hover:text-white"})})]},`${w.href}-${w.timestamp}`)})})]})]})]})})},Kre=W6e;var rk=R(Q());var De={bg:{base:"bg-slate-50 dark:bg-slate-900",elevated:"bg-slate-100 dark:bg-slate-800",overlay:"bg-slate-50 dark:bg-slate-900",glass:"backdrop-blur-xl bg-slate-50/90 dark:bg-black/40",glassLight:"backdrop-blur-xl bg-slate-100/95 dark:bg-black/20",glassHeavy:"backdrop-blur-xl bg-slate-200/80 dark:bg-black/60",gradient:"bg-gradient-to-br from-slate-100 to-slate-200 dark:from-slate-900 dark:to-slate-800"},border:{base:"border-slate-300 dark:border-white/10",light:"border-slate-200 dark:border-white/5",strong:"border-slate-400 dark:border-white/20",accent:"border-cyan-300 dark:border-cyan-500/30"},text:{primary:"text-slate-900 dark:text-white",secondary:"text-slate-700 dark:text-slate-400",muted:"text-slate-600 dark:text-slate-500",accent:"text-cyan-700 dark:text-cyan-400"},hover:{base:"hover:bg-slate-200 dark:hover:bg-white/5",strong:"hover:bg-slate-300 dark:hover:bg-white/10",accent:"hover:bg-cyan-100 dark:hover:bg-cyan-500/10"},active:{base:"bg-slate-200 dark:bg-white/10",strong:"bg-slate-300 dark:bg-white/20",accent:"bg-cyan-200 dark:bg-cyan-500/20"},card:{base:"bg-slate-50 dark:bg-slate-900 border border-slate-300 dark:border-white/10",elevated:"bg-slate-100 dark:bg-slate-800 border border-slate-300 dark:border-white/10",glass:"backdrop-blur-xl bg-slate-50/90 dark:bg-black/40 border border-slate-300 dark:border-white/10"},input:{base:"bg-white dark:bg-slate-900 border-slate-300 dark:border-white/10 text-slate-900 dark:text-white placeholder:text-slate-500 dark:placeholder:text-slate-500",focus:"focus:border-cyan-600 dark:focus:border-cyan-400 focus:ring-cyan-600/20 dark:focus:ring-cyan-400/20"},button:{primary:"bg-slate-900 dark:bg-white text-white dark:text-slate-900 hover:bg-slate-800 dark:hover:bg-slate-100",secondary:"bg-slate-200 dark:bg-white/10 text-slate-900 dark:text-white hover:bg-slate-300 dark:hover:bg-white/20",ghost:"bg-transparent hover:bg-slate-200 dark:hover:bg-white/5 text-slate-900 dark:text-white",destructive:"bg-red-600 dark:bg-red-600 text-white hover:bg-red-700 dark:hover:bg-red-700"},shadow:{sm:"shadow-sm shadow-slate-400/30 dark:shadow-black/50",md:"shadow-md shadow-slate-400/30 dark:shadow-black/50",lg:"shadow-lg shadow-slate-400/30 dark:shadow-black/50",xl:"shadow-xl shadow-slate-400/30 dark:shadow-black/50"},sidebar:{bg:"bg-slate-50/98 dark:bg-black/40",border:"border-slate-300 dark:border-white/10",item:"text-slate-700 dark:text-slate-400 hover:text-slate-900 dark:hover:text-white hover:bg-slate-200 dark:hover:bg-white/5",itemActive:"bg-gradient-to-r from-cyan-500/20 via-purple-500/20 to-pink-500/20 text-slate-900 dark:text-white",header:"text-slate-600 dark:text-slate-300"}};var Xre=e=>({cyan:{bg:"bg-cyan-500/10 dark:bg-cyan-500/20",border:"border-cyan-500/20 dark:border-cyan-500/30",text:"text-cyan-600 dark:text-cyan-400",hover:"hover:bg-cyan-500/20 dark:hover:bg-cyan-500/30"},purple:{bg:"bg-purple-500/10 dark:bg-purple-500/20",border:"border-purple-500/20 dark:border-purple-500/30",text:"text-purple-600 dar
248k:text-purple-400",hover:"hover:bg-purple-500/20 dark:hover:bg-purple-500/30"},pink:{bg:"bg-pink-500/10 dark:bg-pink-500/20",border:"border-pink-500/20 dark:border-pink-500/30",text:"text-pink-600 dark:text-pink-400",hover:"hover:bg-pink-500/20 dark:hover:bg-pink-500/30"},amber:{bg:"bg-amber-500/10 dark:bg-amber-500/20",border:"border-amber-500/20 dark:border-amber-500/30",text:"text-amber-600 dark:text-amber-400",hover:"hover:bg-amber-500/20 dark:hover:bg-amber-500/30"},green:{bg:"bg-green-500/10 dark:bg-green-500/20",border:"border-green-500/20 dark:border-green-500/30",text:"text-green-600 dark:text-green-400",hover:"hover:bg-green-500/20 dark:hover:bg-green-500/30"},red:{bg:"bg-red-500/10 dark:bg-red-500/20",border:"border-red-500/20 dark:border-red-500/30",text:"text-red-600 dark:text-red-400",hover:"hover:bg-red-500/20 dark:hover:bg-red-500/30"}})[e];var Ce=R(ke()),G6e=()=>{let{theme:e,setTheme:t}=Fx(),[r,a]=rk.useState(!1);if(rk.useEffect(()=>{a(!0)},[]),!r)return null;let n=["cyan","purple","pink","amber","green","red"];return(0,Ce.jsx)($e,{children:(0,Ce.jsxs)("div",{className:"space-y-8",children:[(0,Ce.jsxs)("div",{children:[(0,Ce.jsx)("h1",{className:"text-4xl font-bold bg-gradient-to-r from-cyan-400 via-purple-400 to-pink-400 bg-clip-text text-transparent mb-2",children:"Theme System"}),(0,Ce.jsx)("p",{className:U("text-lg",De.text.secondary),children:"Comprehensive light and dark mode support across the entire platform"})]}),(0,Ce.jsxs)(G.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:U("rounded-2xl p-6",De.card.glass,De.shadow.lg),children:[(0,Ce.jsxs)("h2",{className:U("text-xl font-semibold mb-4 flex items-center gap-2",De.text.primary),children:[(0,Ce.jsx)(yc,{className:"w-5 h-5 text-cyan-400"}),"Theme Selection"]}),(0,Ce.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[{value:"light",icon:Uu,label:"Light Mode",desc:"Clean and bright"},{value:"dark",icon:fl,label:"Dark Mode",desc:"Cinematic and deep"},{value:"system",icon:f0,label:"System",desc:"Follow OS preference"}].map(o=>{let i=o.icon,s=e===o.value;return(0,Ce.jsxs)("button",{onClick:()=>
248t(o.value),className:U("relative p-6 rounded-xl border-2 transition-all text-left",s?"border-cyan-500 bg-cyan-500/10 dark:bg-cyan-500/20":U("border-transparent",De.hover.base,De.border.base)),children:[s&&(0,Ce.jsx)("div",{className:"absolute top-3 right-3",children:(0,Ce.jsx)(mr,{className:"w-5 h-5 text-cyan-500"})}),(0,Ce.jsx)("div",{className:U("w-12 h-12 rounded-lg mb-3 flex items-center justify-center",s?"bg-cyan-500/20":De.bg.elevated),children:(0,Ce.jsx)(i,{className:U("w-6 h-6",s?"text-cyan-500":De.text.secondary)})}),(0,Ce.jsx)("div",{className:U("font-semibold mb-1",De.text.primary),children:o.label}),(0,Ce.jsx)("div",{className:U("text-sm",De.text.secondary),children:o.desc})]},o.value)})})]}),(0,Ce.jsxs)(G.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:U("rounded-2xl p-6",De.card.glass,De.shadow.lg),children:[(0,Ce.jsxs)("h2",{className:U("text-xl font-semibold mb-4 flex items-center gap-2",De.text.primary),children:[(0,Ce.jsx)(kt,{className:"w-5 h-5 text-purple-400"}),"Color System"]}),(0,Ce.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-4",children:n.map(o=>{let i=Xre(o);return(0,Ce.jsxs)("div",{className:"space-y-2",children:[(0,Ce.jsx)("div",{className:U("h-24 rounded-lg",i.bg,i.border,"border-2")}),(0,Ce.jsx)("div",{className:U("text-sm font-medium capitalize",De.text.primary),children:o}),(0,Ce.jsx)("div",{className:U("text-xs",De.text.secondary),children:"Accent color"})]},o)})})]}),(0,Ce.jsxs)(G.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:U("rounded-2xl p-6",De.card.glass,De.shadow.lg),children:[(0,Ce.jsxs)("h2",{className:U("text-xl font-semibold mb-4 flex items-center gap-2",De.text.primary),children:[(0,Ce.jsx)(jr,{className:"w-5 h-5 text-pink-400"}),"Surface Elevations"]}),(0,Ce.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[(0,Ce.jsxs)("div",{className:U("p-6 rounded-xl",De.bg.base,De.border.base,"border"),children:[(0,Ce.jsx)("div",{className:U("font-semibold mb-2",De.text.primary),children:"Base Surface"}),(0,Ce.jsx)("div",{className:U("text-sm",De.text.secondary),children:"Default background level"})]}),(0,Ce.jsxs)("div",{className:U("p-6 rounded-xl",De.bg.elevated,De.border.base,"border"),children:[(0,Ce.jsx)("div",{className:U("font-semibold mb-2",De.text.primary),children:"Elevated Surface"}),(0,Ce.jsx)("div",{className:U("text-sm",De.text.secondary),children:"Raised content areas"})]}),(0,Ce.jsxs)("div",{className:U("p-6 rounded-xl",De.bg.glass,De.border.base,"border"),children:[(0,Ce.jsx)("div",{className:U("font-semibold mb-2",De.text.primary),children:"Glass Surface"}),(0,Ce.jsx)("div",{className:U("text-sm",De.text.secondary),children:"Translucent overlays"})]})]})]}),(0,Ce.jsxs)(G.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3},className:U("rounded-2xl p-6",De.card.glass,De.shadow.lg),children:[(0,Ce.jsxs)("h2",{className:U("text-xl font-semibold mb-4 flex items-center gap-2",De.text.primary),children:[(0,Ce.jsx)(Yr,{className:"w-5 h-5 text-amber-400"}),"Typography Hierarchy"]}),(0,Ce.jsxs)("div",{className:"space-y-4",children:[(0,Ce.jsxs)("div",{children:[(0,Ce.jsx)("div",{className:U("text-4xl font-bold mb-2",De.text.primary),children:"Heading 1"}),(0,Ce.jsx)("div",{className:U("text-sm",De.text.secondary),children:"4xl / Bold / Primary color"})]}),(0,Ce.jsxs)("div",{children:[(0,Ce.jsx)("div",{className:U("text-2xl font-semibold mb-2",De.text.primary),children:"Heading 2"}),(0,Ce.jsx)("div",{className:U("text-sm",De.text.secondary),children:"2xl / Semibold / Primary color"})]}),(0,Ce.jsxs)("div",{children:[(0,Ce.jsx)("div",{className:U("text-base mb-2",De.text.primary),children:"Body Text - Primary"}),(0,Ce.jsx)("div",{className:U("text-sm",De.text.secondary),children:"Base / Regular / Primary color"})]}),(0,Ce.jsxs)("div",{children:[(0,Ce.jsx)("div",{className:U("text-base mb-2",De.text.secondary),children:"Body Text - Secondary"}),(0,Ce.jsx)("div",{className:U("text-sm",De.text.secondary),children:"Base / Regular / Secondary color"})]}),(0,Ce.jsxs)("div",{children:[(0,Ce.jsx)("div",{className:U("text-sm mb-2",De.text.muted),children:"Body Text - Muted"}),(0,Ce.jsx)("div",{className:U("text-sm",De.text.secondary),children:"Small / Regular / Muted color"})]})]})]}),(0,Ce.jsxs)(G.div,{initial:{opacity:0,y:20}
248,animate:{opacity:1,y:0},transition:{delay:.4},className:U("rounded-2xl p-6",De.card.glass,De.shadow.lg),children:[(0,Ce.jsx)("h2",{className:U("text-xl font-semibold mb-4",De.text.primary),children:"Interactive States"}),(0,Ce.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:[(0,Ce.jsx)("button",{className:U("px-6 py-3 rounded-lg font-medium transition-all",De.button.primary),children:"Primary Button"}),(0,Ce.jsx)("button",{className:U("px-6 py-3 rounded-lg font-medium transition-all",De.button.secondary),children:"Secondary Button"}),(0,Ce.jsx)("button",{className:U("px-6 py-3 rounded-lg font-medium transition-all",De.button.ghost),children:"Ghost Button"}),(0,Ce.jsx)("button",{className:U("px-6 py-3 rounded-lg font-medium transition-all",De.button.destructive),children:"Destructive Button"})]})]}),(0,Ce.jsxs)(G.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.5},className:U("rounded-2xl p-6",De.card.glass,De.shadow.lg),children:[(0,Ce.jsx)("h2",{className:U("text-xl font-semibold mb-4",De.text.primary),children:"Form Elements"}),(0,Ce.jsxs)("div",{className:"space-y-4 max-w-md",children:[(0,Ce.jsxs)("div",{children:[(0,Ce.jsx)("label",{className:U("block text-sm font-medium mb-2",De.text.primary),children:"Text Input"}),(0,Ce.jsx)("input",{type:"text",placeholder:"Enter text...",className:U("w-full px-4 py-2 rounded-lg border transition-all",De.input.base,De.input.focus)})]}),(0,Ce.jsxs)("div",{children:[(0,Ce.jsx)("label",{className:U("block text-sm font-medium mb-2",De.text.primary),children:"Textarea"}),(0,Ce.jsx)("textarea",{placeholder:"Enter description...",rows:3,className:U("w-full px-4 py-2 rounded-lg border transition-all resize-none",De.input.base,De.input.focus)})]}),(0,Ce.jsxs)("div",{children:[(0,Ce.jsx)("label",{className:U("block text-sm font-medium mb-2",De.text.primary),children:"Select"}),(0,Ce.jsxs)("select",{className:U("w-full px-4 py-2 rounded-lg border transition-all",De.input.base,De.input.focus),children:[(0,Ce.jsx)("option",{children:"Option 1"}),(0,Ce.jsx)("option",{children:"Option 2"}),(0,Ce.jsx)("option",{children:"Option 3"})]})]})]})]}),(0,Ce.jsxs)(G.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.6},className:U("rounded-2xl p-6",De.card.glass,De.shadow.lg),children:[(0,Ce.jsx)("h2",{className:U("text-xl font-semibold mb-4",De.text.primary),children:"Card Variations"}),(0,Ce.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[(0,Ce.jsxs)("div",{className:U("p-6 rounded-xl",De.card.base),children:[(0,Ce.jsx)("div",{className:U("font-semibold mb-2",De.text.primary),children:"Base Card"}),(0,Ce.jsx)("div",{className:U("text-sm",De.text.secondary),children:"Solid background with border"})]}),(0,Ce.jsxs)("div",{className:U("p-6 rounded-xl",De.card.elevated),children:[(0,Ce.jsx)("div",{className:U("font-semibold mb-2",De.text.primary),children:"Elevated Card"}),(0,Ce.jsx)("div",{className:U("text-sm",De.text.secondary),children:"Slightly raised surface"})]}),(0,Ce.jsxs)("div",{className:U("p-6 rounded-xl",De.card.glass),children:[(0,Ce.jsx)("div",{className:U("font-semibold mb-2",De.text.primary),children:"Glass Card"}),(0,Ce.jsx)("div",{className:U("text-sm",De.text.secondary),children:"Translucent with blur"})]})]})]})]})})},Yre=G6e;var Jre=R(Q());var ye=R(ke()),$6e=()=>{let[e,t]=Jre.useState(""),r=(i,s)=>{navigator.clipboard.writeText(i),t(s),$.success(`${s} copied to clipboard`),setTimeout(()=>t(""),2e3)},a=[{number:1,title:"Create Google Cloud Project",description:"Set up a new project in Google Cloud Console",icon:Li,color:"from-blue-500 to-cyan-500",substeps:["Go to Google Cloud Console",'Click "Select a project" \u2192 "New Project"','Name your project (e.g., "Webhook Platform Integration")','Click "Create" and wait for project creation'],link:"https://console.cloud.google.com/projectcreate"},{number:2,title:"Enable Google Drive API",description:"Activate the Drive API for your project",icon:et,color:"from-purple-500 to-pink-500",substeps:['In your project, go to "APIs & Services" \u2192 "Library"','Search for "Google Drive API"','Click on "Google Drive API"','Click "Enable" button',"Wait for API to be enabled (takes a few seconds)"],link:"https://console.cloud.google.com/apis/library/drive.googleapis.com"},{number:3,title:"Configure OAuth Consent Screen",description:"Set up how users will see your app",icon:Qe,color:"from-cyan-500 to-purple-500",substeps:['Go to "APIs & Services" \u2192 "OAuth consent screen"','Select "External" user type (unless you have Google Worksp
248ace)',"Fill in required fields:",' \u2022 App name: "Webhook Platform"'," \u2022 User support email: Your email"," \u2022 Developer contact: Your email",'Click "Save and Continue"','Skip "Scopes" for now (click "Save and Continue")',"Add test users if needed",'Click "Save and Continue" \u2192 "Back to Dashboard"'],link:"https://console.cloud.google.com/apis/credentials/consent"},{number:4,title:"Create OAuth 2.0 Credentials",description:"Generate Client ID and Client Secret",icon:Dr,color:"from-pink-500 to-red-500",substeps:['Go to "APIs & Services" \u2192 "Credentials"','Click "Create Credentials" \u2192 "OAuth client ID"','Select "Web application" as application type','Name it "Webhook Platform Client"',"Add Authorized redirect URIs:"," \u2022 https://your-domain.com/api/auth/google/callback"," \u2022 http://localhost:3000/api/auth/google/callback (for testing)",'Click "Create"',"Copy your Client ID and Client Secret (save them securely!)"],link:"https://console.cloud.google.com/apis/credentials"},{number:5,title:"Add Credentials to Platform",description:"Configure your webhook platform with Google credentials",icon:c0,color:"from-amber-500 to-orange-500",substeps:["Go to Credentials page in this platform",'Click "Add Credential"','Select "Google Drive" as provider',"Paste your Client ID","Paste your Client Secret","Add required scopes:"," \u2022 https://www.googleapis.com/auth/drive.readonly"," \u2022 https://www.googleapis.com/auth/drive.file",'Click "Save Credential"']},{number:6,title:"Create Webhook Connection",description:"Set up your Google Drive webhook",icon:jt,color:"from-green-500 to-emerald-500",substeps:["Go to Connections page",'Click "New Connection"','Select "Google Drive" as source',"Choose your saved credential","Configure webhook settings:"," \u2022 Select events to monitor (file created, modified, deleted)"," \u2022 Set target folder (optional)"," \u2022 Configure filters (optional)","Set webhook URL (your endpoint)",'Click "Create Connection"',"Test the connection"]}],n=[{scope:"https://www.googleapis.com/auth/drive.readonly",description:"Read-only access to files and metadata",recommended:!0},{scope:"https://www.googleapis.com/auth/drive.file",description:"Access to files created by the app",recommended:!0},{scope:"https://www.googleapis.com/auth/drive",description:"Full access to all files",recommended:!1},{scope:"https://www.googleapis.com/auth/drive.metadata.readonly",description:"Read-only access to file metadata",recommended:!1}],o=[{issue:'OAuth consent screen shows "unverified app" warning',solution:'This is normal for apps in testing mode. Click "Advanced" \u2192 "Go to [App Name] (unsafe)" to proceed. For production, submit your app for verification.'},{issue:"Redirect URI mismatch error",solution:"Ensure the redirect URI in your OAuth credentials exactly matches the one used in your application. Check for trailing slashes and http vs https."},{issue:"API not enabled error",solution:"Go back to APIs & Services \u2192 Library and verify Google Drive API is enabled. It may take a few minutes to propagate."},{issue:"Invalid client error",solution:"Double-check your Client ID and Client Secret. Make sure there are no extra spaces when copying."},{issue:"Insufficient permissions error",solution:"Review the scopes you requested. You may need to add additional scopes or re-authenticate."}];return(0,ye.jsx)($e,{children:(0,ye.jsxs)("div",{className:"space-y-8 max-w-5xl",children:[(0,ye.jsxs)("div",{children:[(0,ye.jsxs)("div",{className:"flex items-center gap-3 mb-3",children:[(0,ye.jsx)("div",{className:"w-12 h-12 rounded-xl bg-gradient-to-br from-blue-500 to-cyan-500 flex items-center justify-center",children:(0,ye.jsx)(Li,{className:"w-6 h-6 text-white"})}),(0,ye.jsx)("div",{children:(0,ye.jsx)("h1",{className:"text-4xl font-bold bg-gradient-to-r from-blue-400 via-cyan-400 to-purple-400 bg-clip-text text-transparent",children:"Google Drive Integration Guide"})})]}),(0,ye.jsx)("p",{className:"text-slate-400 text-lg",children:"Complete step-by-step guide to connect Google Drive through Google Cloud Platform"})]}),(0,ye.jsxs)(G.div,{initial:{opacity:0,y:20}
248,animate:{opacity:1,y:0},className:"backdrop-blur-xl bg-slate-50/90 dark:bg-black/40 border border-slate-300 dark:border-white/10 rounded-2xl p-6",children:[(0,ye.jsxs)("h2",{className:"text-xl font-semibold text-slate-900 dark:text-white mb-4 flex items-center gap-2",children:[(0,ye.jsx)(Dt,{className:"w-5 h-5 text-cyan-400"}),"What You'll Need"]}),(0,ye.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[(0,ye.jsxs)("div",{className:"flex items-start gap-3",children:[(0,ye.jsx)(We,{className:"w-5 h-5 text-green-400 mt-0.5 flex-shrink-0"}),(0,ye.jsxs)("div",{children:[(0,ye.jsx)("div",{className:"font-medium text-slate-900 dark:text-white",children:"Google Account"}),(0,ye.jsx)("div",{className:"text-sm text-slate-600 dark:text-slate-400",children:"Personal or Workspace account"})]})]}),(0,ye.jsxs)("div",{className:"flex items-start gap-3",children:[(0,ye.jsx)(We,{className:"w-5 h-5 text-green-400 mt-0.5 flex-shrink-0"}),(0,ye.jsxs)("div",{children:[(0,ye.jsx)("div",{className:"font-medium text-slate-900 dark:text-white",children:"15-20 Minutes"}),(0,ye.jsx)("div",{className:"text-sm text-slate-600 dark:text-slate-400",children:"First-time setup duration"})]})]}),(0,ye.jsxs)("div",{className:"flex items-start gap-3",children:[(0,ye.jsx)(We,{className:"w-5 h-5 text-green-400 mt-0.5 flex-shrink-0"}),(0,ye.jsxs)("div",{children:[(0,ye.jsx)("div",{className:"font-medium text-slate-900 dark:text-white",children:"No Credit Card"}),(0,ye.jsx)("div",{className:"text-sm text-slate-600 dark:text-slate-400",children:"Free tier is sufficient"})]})]})]})]}),(0,ye.jsx)("div",{className:"space-y-6",children:a.map((i,s)=>{let l=i.icon;return(0,ye.jsx)(G.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:s*.1},className:"backdrop-blur-xl bg-slate-50/90 dark:bg-black/40 border border-slate-300 dark:border-white/10 rounded-2xl p-6",children:(0,ye.jsxs)("div",{className:"flex items-start gap-4",children:[(0,ye.jsx)("div",{className:U("w-12 h-12 rounded-xl flex items-center justify-center flex-shrink-0 bg-gradient-to-br",i.color),children:(0,ye.jsx)("span",{className:"text-white font-bold text-lg",children:i.number})}),(0,ye.jsxs)("div",{className:"flex-1",children:[(0,ye.jsxs)("div",{className:"flex items-start justify-between mb-3",children:[(0,ye.jsxs)("div",{children:[(0,ye.jsxs)("h3",{className:"text-xl font-semibold text-slate-900 dark:text-white flex items-center gap-2",children:[(0,ye.jsx)(l,{className:"w-5 h-5"}),i.title]}),(0,ye.jsx)("p",{className:"text-slate-600 dark:text-slate-400 mt-1",children:i.description})]}),i.link&&(0,ye.jsxs)("a",{href:i.link,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1 px-3 py-1.5 rounded-lg bg-slate-200 dark:bg-white/10 text-slate-700 dark:text-slate-300 hover:bg-slate-300 dark:hover:bg-white/20 transition-colors text-sm font-medium",children:["Open",(0,ye.jsx)(jn,{className:"w-4 h-4"})]})]}),(0,ye.jsx)("div",{className:"space-y-2 ml-1",children:i.substeps.map((c,d)=>(0,ye.jsxs)("div",{className:"flex items-start gap-3",children:[(0,ye.jsx)(Uo,{className:"w-4 h-4 text-cyan-400 mt-0.5 flex-shrink-0"}),(0,ye.jsx)("span",{className:"text-slate-700 dark:text-slate-300 text-sm",children:c})]},d))})]})]})},i.number)})}),(0,ye.jsxs)(G.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.6},className:"backdrop-blur-xl bg-slate-50/90 dark:bg-black/40 border border-slate-300 dark:border-white/10 rounded-2xl p-6",children:[(0,ye.jsxs)("h2",{className:"text-xl font-semibold text-slate-900 dark:text-white mb-4 flex items-center gap-2",children:[(0,ye.jsx)(Dr,{className:"w-5 h-5 text-purple-400"}),"OAuth Scopes Reference"]}),(0,ye.jsx)("p",{className:"text-slate-600 dark:text-slate-400 mb-4",children:"Choose the appropriate scopes based on your integration needs. Start with minimal permissions and add more as needed."}),(0,ye.jsx)("div",{className:"space-y-3",children:n.map((i,s)=>(0,ye.jsx)("div",{className:U("p-4 rounded-xl border-2 transition-all",i.recommended?"border-green-500/30 bg-green-500/5":"border-slate-300 dark:border-white/10 bg-slate-100 dar
248k:bg-white/5"),children:(0,ye.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,ye.jsxs)("div",{className:"flex-1",children:[(0,ye.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,ye.jsx)("code",{className:"text-sm font-mono text-cyan-400 bg-slate-800 dark:bg-black/40 px-2 py-1 rounded",children:i.scope}),i.recommended&&(0,ye.jsx)("span",{className:"text-xs font-medium px-2 py-0.5 rounded-full bg-green-500/20 text-green-400",children:"Recommended"})]}),(0,ye.jsx)("p",{className:"text-sm text-slate-600 dark:text-slate-400",children:i.description})]}),(0,ye.jsx)("button",{onClick:()=>r(i.scope,"Scope"),className:"p-2 rounded-lg hover:bg-slate-200 dark:hover:bg-white/10 transition-colors",title:"Copy scope",children:(0,ye.jsx)(gt,{className:U("w-4 h-4",e==="Scope"?"text-green-400":"text-slate-400")})})]})},s))})]}),(0,ye.jsxs)(G.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.7},className:"backdrop-blur-xl bg-slate-50/90 dark:bg-black/40 border border-slate-300 dark:border-white/10 rounded-2xl p-6",children:[(0,ye.jsxs)("h2",{className:"text-xl font-semibold text-slate-900 dark:text-white mb-4 flex items-center gap-2",children:[(0,ye.jsx)(Dt,{className:"w-5 h-5 text-amber-400"}),"Common Issues & Solutions"]}),(0,ye.jsx)("div",{className:"space-y-4",children:o.map((i,s)=>(0,ye.jsxs)("div",{className:"p-4 rounded-xl bg-slate-100 dark:bg-white/5 border border-slate-300 dark:border-white/10",children:[(0,ye.jsxs)("div",{className:"font-medium text-slate-900 dark:text-white mb-2 flex items-start gap-2",children:[(0,ye.jsx)(Dt,{className:"w-4 h-4 text-amber-400 mt-0.5 flex-shrink-0"}),i.issue]}),(0,ye.jsx)("p",{className:"text-sm text-slate-600 dark:text-slate-400 ml-6",children:i.solution})]},s))})]}),(0,ye.jsxs)(G.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.8},className:"backdrop-blur-xl bg-gradient-to-br from-cyan-500/10 via-purple-500/10 to-pink-500/10 border border-cyan-500/30 rounded-2xl p-6",children:[(0,ye.jsx)("h2",{className:"text-xl font-semibold text-slate-900 dark:text-white mb-4",children:"Quick Links"}),(0,ye.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:[(0,ye.jsxs)("a",{href:"https://console.cloud.google.com",target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-between p-3 rounded-lg bg-slate-100 dark:bg-white/5 hover:bg-slate-200 dark:hover:bg-white/10 transition-colors group",children:[(0,ye.jsx)("span",{className:"text-slate-900 dark:text-white font-medium",children:"Google Cloud Console"}),(0,ye.jsx)(jn,{className:"w-4 h-4 text-slate-400 group-hover:text-cyan-400 transition-colors"})]}),(0,ye.jsxs)("a",{href:"https://developers.google.com/drive/api/guides/about-sdk",target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-between p-3 rounded-lg bg-slate-100 dark:bg-white/5 hover:bg-slate-200 dark:hover:bg-white/10 transition-colors group",children:[(0,ye.jsx)("span",{className:"text-slate-900 dark:text-white font-medium",children:"Google Drive API Docs"}),(0,ye.jsx)(jn,{className:"w-4 h-4 text-slate-400 group-hover:text-cyan-400 transition-colors"})]}),(0,ye.jsxs)("a",{href:"/credentials",className:"flex items-center justify-between p-3 rounded-lg bg-slate-100 dark:bg-white/5 hover:bg-slate-200 dark:hover:bg-white/10 transition-colors group",children:[(0,ye.jsx)("span",{className:"text-slate-900 dark:text-white font-medium",children:"Manage Credentials"}),(0,ye.jsx)(Uo,{className:"w-4 h-4 text-slate-400 group-hover:text-cyan-400 transition-colors"})]}),(0,ye.jsxs)("a",{href:"/connections",className:"flex items-center justify-between p-3 rounded-lg bg-slate-100 dark:bg-white/5 hover:bg-slate-200 dark:hover:bg-white/10 transition-colors group",children:[(0,ye.jsx)("span",{className:"text-slate-900 dark:text-white font-medium",children:"Create Connection"}),(0,ye.jsx)(Uo,{className:"w-4 h-4 text-slate-400 group-hover:text-cyan-400 transition-colors"})]})]})]}),(0,ye.jsxs)(G.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.9},className:"backdrop-blur-xl bg-slate-50/90 dark:bg-black/40 border border-slate-300 dark:border-white/10 rounded-2xl p-6",children:[(0,ye.jsx)("h2",{className:"text-xl font-semibold text-slate-900 dark:text-white mb-4",children:"Next Steps"}),(0,ye.jsxs)("div",{className:"space-y-3",children:[(0,ye.jsxs)("div",{className:"flex items-start gap-3",children:[(0,ye.jsx)("div",{className:"w-6 h-6 rounded-full bg-gradient-to-br from-cyan-500 to-purple-500 flex items-center justify-center flex-shrink-0 mt-0.5",children:(0,ye.jsx)("span",{className:"text-white text-xs font-bold",children:"1"})}),(0,ye.jsxs)("div",{children:[(0,ye.jsx)("div",{className:"font-medium text-slate-900 dark:text-white",children:"Test Your Connection"}
248),(0,ye.jsx)("p",{className:"text-sm text-slate-600 dark:text-slate-400",children:"Use the Playground to test API calls and verify your setup"})]})]}),(0,ye.jsxs)("div",{className:"flex items-start gap-3",children:[(0,ye.jsx)("div",{className:"w-6 h-6 rounded-full bg-gradient-to-br from-purple-500 to-pink-500 flex items-center justify-center flex-shrink-0 mt-0.5",children:(0,ye.jsx)("span",{className:"text-white text-xs font-bold",children:"2"})}),(0,ye.jsxs)("div",{children:[(0,ye.jsx)("div",{className:"font-medium text-slate-900 dark:text-white",children:"Set Up Webhooks"}),(0,ye.jsx)("p",{className:"text-sm text-slate-600 dark:text-slate-400",children:"Configure webhooks to receive real-time notifications from Google Drive"})]})]}),(0,ye.jsxs)("div",{className:"flex items-start gap-3",children:[(0,ye.jsx)("div",{className:"w-6 h-6 rounded-full bg-gradient-to-br from-pink-500 to-red-500 flex items-center justify-center flex-shrink-0 mt-0.5",children:(0,ye.jsx)("span",{className:"text-white text-xs font-bold",children:"3"})}),(0,ye.jsxs)("div",{children:[(0,ye.jsx)("div",{className:"font-medium text-slate-900 dark:text-white",children:"Monitor Events"}),(0,ye.jsx)("p",{className:"text-sm text-slate-600 dark:text-slate-400",children:"Use the Event Log to track all incoming webhook events"})]})]})]})]})]})})},Zre=$6e;var Yc=R(Q());var de=R(ke()),K6e=()=>
248{let[e,t]=Yc.useState([]),[r,a]=Yc.useState(!0),[n,o]=Yc.useState(null),[i,s]=Yc.useState(!1),[l,c]=Yc.useState("all");Yc.useEffect(()=>{d()},[]);let d=async()=>{try{let v=[{id:"1",name:"Google Drive API",type:"api",enabled:!0,limits:{perMinute:60,perHour:1e3,perDay:1e4,concurrent:10},schedule:{enabled:!0,allowedHours:{start:6,end:22},allowedDays:[1,2,3,4,5],timezone:"America/Chicago"},throttling:{enabled:!0,burstSize:10,refillRate:1},actions:{onLimitReached:"queue",notifyOnLimit:!0,resetDaily:!0},stats:{currentUsage:234,dailyUsage:5678,lastReset:new Date().toISOString(),violations:0}},{id:"2",name:"Webhook Processor",type:"webhook",enabled:!0,limits:{perMinute:100,perHour:5e3,perDay:5e4,concurrent:20},schedule:{enabled:!1},throttling:{enabled:!0,burstSize:20,refillRate:2},actions:{onLimitReached:"delay",notifyOnLimit:!0,resetDaily:!0},stats:{currentUsage:1234,dailyUsage:23456,lastReset:new Date().toISOString(),violations:2}},{id:"3",name:"Data Sync Automation",type:"automation",enabled:!0,limits:{perHour:12,perDay:100,concurrent:3},schedule:{enabled:!0,allowedHours:{start:0,end:23},allowedDays:[0,1,2,3,4,5,6],timezone:"America/Chicago"},throttling:{enabled:!1},actions:{onLimitReached:"queue",notifyOnLimit:!0,resetDaily:!0},stats:{currentUsage:3,dailyUsage:45,lastReset:new Date().toISOString(),violations:0}}];t(v)}catch{$.error("Failed to load rate limits")}finally{a(!1)}},u=async v=>{let x=e.find(S=>S.id===v);if(x)try{t(S=>S.map(b=>b.id===v?{...b,enabled:!b.enabled}:b)),$.success(`Rate limit ${x.enabled?"disabled":"enabled"}`)}catch{$.error("Failed to update rate limit")}},f=async v=>{if(confirm("Are you sure you want to delete this rate limit?"))try{t(x=>x.filter(S=>S.id!==v)),$.success("Rate limit deleted")}catch{$.error("Failed to delete rate limit")}},p=v=>{switch(v){case"api":return"from-blue-500 to-cyan-500";case"webhook":return"from-purple-500 to-pink-500";case"automation":return"from-amber-500 to-orange-500";default:return"from-slate-500 to-slate-600"}},m=v=>{switch(v){case"api":return et;case"webhook":return qt;case"automation":return Oa;default:return vt}},h=(v,x)=>Math.min(v/x*100,100),g=v=>v>=90?"text-red-400":v>=70?"text-amber-400":"text-green-400",y=l==="all"?e:e.filter(v=>v.type===l);return r?(0,de.jsx)($e,{children:(0,de.jsx)("div",{className:"flex items-center justify-center h-96",children:(0,de.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-t-2 border-b-2 border-purple-500"})})}):(0,de.jsx)($e,{children:(0,de.jsxs)("div",{className:"space-y-6",children:[(0,de.jsxs)("div",{className:"flex items-center justify-between",children:[(0,de.jsxs)("div",{children:[(0,de.jsx)("h1",{className:"text-3xl font-bold bg-gradient-to-r from-cyan-400 via-purple-400 to-pink-400 bg-clip-text text-transparent",children:"Rate Limits & Iteration Control"}),(0,de.jsx)("p",{className:"text-slate-400 mt-2",children:"Manage execution limits and schedules for automated processes"})]}),(0,de.jsxs)("button",{onClick:()=>s(!0),className:"flex items-center gap-2 px-4 py-2 rounded-lg bg-gradient-to-r from-cyan-500 via-purple-500 to-pink-500 text-white font-medium hover:opacity-90 transition-opacity",children:[(0,de.jsx)(Bt,{className:"w-5 h-5"}),"New Rate Limit"]})]}),(0,de.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4",children:[(0,de.jsxs)(G.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"backdrop-blur-xl bg-slate-50/90 dark:bg-black/40 border border-slate-300 dark:border-white/10 rounded-xl p-6",children:[(0,de.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,de.jsx)("div",{className:"w-10 h-10 rounded-lg bg-gradient-to-br from-blue-500 to-cyan-500 flex items-center justify-center",children:(0,de.jsx)(Qe,{className:"w-5 h-5 text-white"})}),(0,de.jsx)("span",{className:"text-2xl font-bold text-slate-900 dark:text-white",children:e.filter(v=>v.enabled).length})]}),(0,de.jsx)("div",{className:"text-sm font-medium text-slate-900 dark:text-white",children:"Active Limits"}),(0,de.jsxs)("div",{className:"text-xs text-slate-600 dark:text-slate-400 mt-1",children:[e.length," total configured"]})]}),(0,de.jsxs)(G.div,{initial:{opacity:0,y:20}
248,animate:{opacity:1,y:0},transition:{delay:.1},className:"backdrop-blur-xl bg-slate-50/90 dark:bg-black/40 border border-slate-300 dark:border-white/10 rounded-xl p-6",children:[(0,de.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,de.jsx)("div",{className:"w-10 h-10 rounded-lg bg-gradient-to-br from-purple-500 to-pink-500 flex items-center justify-center",children:(0,de.jsx)(Br,{className:"w-5 h-5 text-white"})}),(0,de.jsx)("span",{className:"text-2xl font-bold text-slate-900 dark:text-white",children:e.reduce((v,x)=>v+(x.stats?.dailyUsage||0),0).toLocaleString()})]}),(0,de.jsx)("div",{className:"text-sm font-medium text-slate-900 dark:text-white",children:"Daily Requests"}),(0,de.jsx)("div",{className:"text-xs text-slate-600 dark:text-slate-400 mt-1",children:"Across all processes"})]}),(0,de.jsxs)(G.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"backdrop-blur-xl bg-slate-50/90 dark:bg-black/40 border border-slate-300 dark:border-white/10 rounded-xl p-6",children:[(0,de.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,de.jsx)("div",{className:"w-10 h-10 rounded-lg bg-gradient-to-br from-amber-500 to-orange-500 flex items-center justify-center",children:(0,de.jsx)(hr,{className:"w-5 h-5 text-white"})}),(0,de.jsx)("span",{className:"text-2xl font-bold text-slate-900 dark:text-white",children:e.reduce((v,x)=>v+(x.stats?.violations||0),0)})]}),(0,de.jsx)("div",{className:"text-sm font-medium text-slate-900 dark:text-white",children:"Violations"}),(0,de.jsx)("div",{className:"text-xs text-slate-600 dark:text-slate-400 mt-1",children:"Last 24 hours"})]}),(0,de.jsxs)(G.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3},className:"backdrop-blur-xl bg-slate-50/90 dark:bg-black/40 border border-slate-300 dark:border-white/10 rounded-xl p-6",children:[(0,de.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,de.jsx)("div",{className:"w-10 h-10 rounded-lg bg-gradient-to-br from-green-500 to-emerald-500 flex items-center justify-center",children:(0,de.jsx)(We,{className:"w-5 h-5 text-white"})}),(0,de.jsx)("span",{className:"text-2xl font-bold text-slate-900 dark:text-white",children:e.filter(v=>v.schedule?.enabled).length})]}),(0,de.jsx)("div",{className:"text-sm font-medium text-slate-900 dark:text-white",children:"Scheduled"}),(0,de.jsx)("div",{className:"text-xs text-slate-600 dark:text-slate-400 mt-1",children:"Time-based limits"})]})]}),(0,de.jsx)("div",{className:"flex items-center gap-2 overflow-x-auto pb-2",children:[{value:"all",label:"All Limits",icon:Qe},{value:"api",label:"API",icon:et},{value:"webhook",label:"Webhooks",icon:qt},{value:"automation",label:"Automations",icon:Oa}].map(v=>{let x=v.icon,S=l===v.value,b=v.value==="all"?e.length:e.filter(w=>w.type===v.value).length;return(0,de.jsxs)("button",{onClick:()=>c(v.value),className:U("flex items-center gap-2 px-4 py-2 rounded-lg font-medium transition-all whitespace-nowrap",S?"bg-gradient-to-r from-cyan-500/20 via-purple-500/20 to-pink-500/20 text-slate-900 dark:text-white border-2 border-cyan-500/50":"bg-slate-100 dark:bg-white/5 text-slate-600 dark:text-slate-400 hover:bg-slate-200 dark:hover:bg-white/10 border-2 border-transparent"),children:[(0,de.jsx)(x,{className:"w-4 h-4"}),v.label,(0,de.jsx)("span",{className:U("px-2 py-0.5 rounded-full text-xs font-bold",S?"bg-cyan-500/30 text-cyan-400":"bg-slate-200 dark:bg-white/10 text-slate-600 dark:text-slate-400"),children:b})]},v.value)})}),(0,de.jsxs)("div",{className:"space-y-4",children:[(0,de.jsx)(Ue,{mode:"popLayout",children:y.map((v,x)=>{let S=m(v.type),b=v.limits.perDay?h(v.stats?.dailyUsage||0,v.limits.perDay):0,w=(v.stats?.violations||0)>0;return(0,de.jsxs)(G.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{delay:x*.05},className:U("backdrop-blur-xl border-2 rounded-2xl p-6 transition-all",v.enabled?"bg-slate-50/90 dark:bg-black/40 border-slate-300 dark:border-white/10":"bg-slate-100/50 dark:bg-black/20 border-slate-300/50 dark:border-white/5 opacity-60"),children:[(0,de.jsxs)("div",{className:"flex items-start justify-between mb-4",children:[(0,de.jsxs)("div",{className:"flex items-start gap-4",children:[(0,de.jsx)("div",{className:U("w-12 h-12 rounded-xl flex items-center justify-center bg-gradient-to-br",p(v.type)),children:(0,de.jsx)(S,{className:"w-6 h-6 text-white"})}),(0,de.jsxs)("div",{children:[(0,de.jsxs)("div",{className:"flex items-center gap-3 mb-1",children:[(0,de.jsx)("h3",{className:"text-lg font-semibold text-slate-900 dark:text-white",children:v.name}),(0,de.jsx)("span",{className:U("px-2 py-0.5 rounded-full text-xs font-medium",v.type==="api"&&"bg-blue-500/20 text-blue-400",v.type==="webhook"&&"bg-purple-500/20 text-purple-400",v.type==="automation"&&"bg-amber-500/20 text-amber-400"),children:v.type.toUpperCase()}),w&&(0,de.jsxs)("span",{className:"px-2 py-0.5 rounded-full text-xs font-medium bg-red-500/20 text-red-400 flex items-center gap-1",children:[(0,de.jsx)(hr,{className:"w-3 h-3"}),v.stats?.violations," violations"]})]}),(0,de.jsxs)("div",{className:"flex items-center gap-4 text-sm text-slate-600 dar
248k:text-slate-400",children:[v.limits.perMinute&&(0,de.jsxs)("span",{className:"flex items-center gap-1",children:[(0,de.jsx)(h0,{className:"w-4 h-4"}),v.limits.perMinute,"/min"]}),v.limits.perHour&&(0,de.jsxs)("span",{className:"flex items-center gap-1",children:[(0,de.jsx)(vt,{className:"w-4 h-4"}),v.limits.perHour,"/hour"]}),v.limits.perDay&&(0,de.jsxs)("span",{className:"flex items-center gap-1",children:[(0,de.jsx)(ba,{className:"w-4 h-4"}),v.limits.perDay,"/day"]}),v.limits.concurrent&&(0,de.jsxs)("span",{className:"flex items-center gap-1",children:[(0,de.jsx)(qt,{className:"w-4 h-4"}),v.limits.concurrent," concurrent"]})]})]})]}),(0,de.jsxs)("div",{className:"flex items-center gap-2",children:[(0,de.jsx)("button",{onClick:()=>u(v.id),className:U("p-2 rounded-lg transition-colors",v.enabled?"bg-green-500/20 text-green-400 hover:bg-green-500/30":"bg-slate-200 dark:bg-white/10 text-slate-600 dark:text-slate-400 hover:bg-slate-300 dark:hover:bg-white/20"),title:v.enabled?"Disable":"Enable",children:v.enabled?(0,de.jsx)(Bu,{className:"w-4 h-4"}):(0,de.jsx)(Nr,{className:"w-4 h-4"})}),(0,de.jsx)("button",{onClick:()=>o(v),className:"p-2 rounded-lg bg-slate-200 dark:bg-white/10 text-slate-600 dark:text-slate-400 hover:bg-slate-300 dark:hover:bg-white/20 transition-colors",title:"Edit",children:(0,de.jsx)(Ja,{className:"w-4 h-4"})}),(0,de.jsx)("button",{onClick:()=>f(v.id),className:"p-2 rounded-lg bg-red-500/20 text-red-400 hover:bg-red-500/30 transition-colors",title:"Delete",children:(0,de.jsx)(Kt,{className:"w-4 h-4"})})]})]}),v.stats&&v.limits.perDay&&(0,de.jsxs)("div",{className:"mb-4",children:[(0,de.jsxs)("div",{className:"flex items-center justify-between text-sm mb-2",children:[(0,de.jsx)("span",{className:"text-slate-600 dark:text-slate-400",children:"Daily Usage"}),(0,de.jsxs)("span",{className:U("font-medium",g(b)),children:[v.stats.dailyUsage.toLocaleString()," / ",v.limits.perDay.toLocaleString(),(0,de.jsxs)("span",{className:"text-slate-600 dark:text-slate-400 ml-1",children:["(",b.toFixed(1),"%)"]})]})]}),(0,de.jsx)("div",{className:"h-2 bg-slate-200 dark:bg-white/10 rounded-full overflow-hidden",children:(0,de.jsx)(G.div,{initial:{width:0},animate:{width:`${b}%`},transition:{duration:.5,delay:x*.1},className:U("h-full rounded-full",b>=90&&"bg-gradient-to-r from-red-500 to-red-600",b>=70&&b<90&&"bg-gradient-to-r from-amber-500 to-amber-600",b<70&&"bg-gradient-to-r from-green-500 to-green-600")})})]}),v.schedule?.enabled&&(0,de.jsxs)("div",{className:"flex items-start gap-2 p-3 rounded-lg bg-slate-100 dark:bg-white/5 border border-slate-300 dark:border-white/10",children:[(0,de.jsx)(ba,{className:"w-4 h-4 text-cyan-400 mt-0.5 flex-shrink-0"}),(0,de.jsxs)("div",{className:"text-sm",children:[(0,de.jsx)("div",{className:"font-medium text-slate-900 dark:text-white mb-1",children:"Scheduled Execution"}),(0,de.jsxs)("div",{className:"text-slate-600 dark:text-slate-400",children:[v.schedule.allowedHours&&(0,de.jsxs)("div",{children:["Hours: ",v.schedule.allowedHours.start,":00 - ",v.schedule.allowedHours.end,":00"]}),v.schedule.allowedDays&&(0,de.jsxs)("div",{children:["Days: ",v.schedule.allowedDays.map(k=>["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][k]).join(", ")]}),v.schedule.timezone&&(0,de.jsxs)("div",{className:"text-xs mt-1",children:["Timezone: ",v.schedule.timezone]})]})]})]}),v.throttling?.enabled&&(0,de.jsxs)("div",{className:"flex items-start gap-2 p-3 rounded-lg bg-slate-100 dark:bg-white/5 border border-slate-300 dark:border-white/10 mt-3",children:[(0,de.jsx)(et,{className:"w-4 h-4 text-purple-400 mt-0.5 flex-shrink-0"}),(0,de.jsxs)("div",{className:"text-sm",children:[(0,de.jsx)("div",{className:"font-medium text-slate-900 dark:text-white mb-1",children:"Token Bucket Throttling"}),(0,de.jsxs)("div",{className:"text-slate-600 dark:text-slate-400",children:["Burst: ",v.throttling.burstSize," requests, Refill: ",v.throttling.refillRate," tokens/sec"]})]})]}),(0,de.jsxs)("div",{className:"flex items-center gap-4 mt-4 pt-4 border-t border-slate-300 dark:border-white/10",children:[(0,de.jsxs)("div",{className:"text-sm",children:[(0,de.jsx)("span",{className:"text-slate-600 dar
248k:text-slate-400",children:"On limit: "}),(0,de.jsx)("span",{className:"font-medium text-slate-900 dark:text-white capitalize",children:v.actions.onLimitReached})]}),v.actions.notifyOnLimit&&(0,de.jsxs)("div",{className:"flex items-center gap-1 text-sm text-slate-600 dark:text-slate-400",children:[(0,de.jsx)(We,{className:"w-4 h-4 text-green-400"}),"Notifications enabled"]}),v.actions.resetDaily&&(0,de.jsxs)("div",{className:"flex items-center gap-1 text-sm text-slate-600 dark:text-slate-400",children:[(0,de.jsx)(nr,{className:"w-4 h-4 text-cyan-400"}),"Daily reset"]})]})]},v.id)})}),y.length===0&&(0,de.jsxs)("div",{className:"text-center py-20",children:[(0,de.jsx)("div",{className:"w-16 h-16 rounded-2xl bg-gradient-to-br from-slate-200 to-slate-300 dark:from-white/10 dark:to-white/5 flex items-center justify-center mx-auto mb-4",children:(0,de.jsx)(Qe,{className:"w-8 h-8 text-slate-400"})}),(0,de.jsx)("h3",{className:"text-lg font-semibold text-slate-900 dark:text-white mb-2",children:"No rate limits found"}),(0,de.jsx)("p",{className:"text-slate-600 dark:text-slate-400 mb-4",children:l==="all"?"Create your first rate limit to control automated processes":`No ${l} rate limits configured yet`}),(0,de.jsxs)("button",{onClick:()=>s(!0),className:"inline-flex items-center gap-2 px-4 py-2 rounded-lg bg-gradient-to-r from-cyan-500 via-purple-500 to-pink-500 text-white font-medium hover:opacity-90 transition-opacity",children:[(0,de.jsx)(Bt,{className:"w-4 h-4"}),"Create Rate Limit"]})]})]}),(i||n)&&(0,de.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/50 backdrop-blur-sm",children:(0,de.jsxs)(G.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},className:"w-full max-w-2xl backdrop-blur-xl bg-slate-50/95 dark:bg-black/90 border border-slate-300 dark:border-white/10 rounded-2xl p-6 max-h-[90vh] overflow-y-auto",children:[(0,de.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,de.jsx)("h2",{className:"text-2xl font-bold text-slate-900 dark:text-white",children:n?"Edit Rate Limit":"Create Rate Limit"}),(0,de.jsx)("button",{onClick:()=>{s(!1),o(null)},className:"p-2 rounded-lg hover:bg-slate-200 dark:hover:bg-white/10 transition-colors",children:(0,de.jsx)(Ir,{className:"w-5 h-5 text-slate-600 dark:text-slate-400"})})]}),(0,de.jsx)("div",{className:"text-center py-8 text-slate-600 dark:text-slate-400",children:"Form implementation would go here with all the configuration options"})]})})]})})},Qre=K6e;var ak=R(Q());var Ee=R(ke()),X6e=()=>{let e=Nf(),[t,r]=ak.useState(""),[a,n]=ak.useState("all"),[o,i]=ak.useState(null),s=[{id:"google-drive-standard",name:"Google Drive API - Standard",description:"Standard rate limits for Google Drive API integration",category:"api",icon:Li,color:"from-blue-500 to-cyan-500",popular:!0,limits:{perMinute:60,perHour:1e3,perDay:1e4,concurrent:10},schedule:{enabled:!0,allowedHours:{start:6,end:22},allowedDays:[1,2,3,4,5],timezone:"America/Chicago"},throttling:{enabled:!0,burstSize:10,refillRate:1},actions:{onLimitReached:"queue",notifyOnLimit:!0,resetDaily:!0},useCase:"File synchronization and document management during business hours",bestFor:["Document sync","File monitoring","Backup automation"],estimatedCost:"Free tier: 10K requests/day"},{id:"google-sheets-heavy",name:"Google Sheets API - Heavy Usage",description:"High-volume data processing with Google Sheets",category:"api",icon:jt,color:"from-green-500 to-emerald-500",limits:{perMinute:100,perHour:5e3,perDay:5e4,concurrent:20},schedule:{enabled:!1},throttling:{enabled:!0,burstSize:20,refillRate:2},actions:{onLimitReached:"delay",notifyOnLimit:!0,resetDaily:!0},useCase:"Real-time data analytics and reporting dashboards",bestFor:["Data analytics","Real-time reporting","CRM integration"],estimatedCost:"Free tier: 50K requests/day"},{id:"google-calendar-sync",name:"Google Calendar API - Sync",description:"Calendar synchronization with moderate frequency",category:"api",icon:ba,color:"from-purple-500 to-pink-500",limits:{perMinute:30,perHour:500,perDay:5e3,concurrent:5},schedule:{enabled:!0,allowedHours:{start:7,end:21},allowedDays:[0,1,2,3,4,5,6],timezone:"America/Chicago"},throttling:{enabled:!0,burstSize:5,refillRate:.5},actions:{onLimitReached:"queue",notifyOnLimit:!1,resetDaily:!0},useCase:"Two-way calendar synchronization across platforms",bestFor:["Calendar sync","Event management","Scheduling automation"],estimatedCost:"Free tier: 5K requests/day"},{id:"webhook-high-volume",name:"Webhook - High Volume",description:"Handle high-frequency webhook events with burst support",category:"webhook",icon:v0,color:"from-purple-500 to-pink-500",popular:!0,limits:{perMinute:200,perHour:1e4,perDay:1e5,concurrent:50},schedule:{enabled:!1},throttling:{enabled:!0,burstSize:50,refillRate:3},actions:{onLimitReached:"delay",notifyOnLimit:!0,resetDaily:!0},useCase:"E-commerce platforms, payment processors, real-time notifications",bestFor:["E-commerce events","Payment webhooks","User activity tracking"],estimatedCost:"Infrastru
248cture: ~$50/month"},{id:"webhook-standard",name:"Webhook - Standard",description:"Balanced webhook processing for typical applications",category:"webhook",icon:qt,color:"from-cyan-500 to-blue-500",popular:!0,limits:{perMinute:100,perHour:5e3,perDay:5e4,concurrent:20},schedule:{enabled:!1},throttling:{enabled:!0,burstSize:20,refillRate:2},actions:{onLimitReached:"queue",notifyOnLimit:!0,resetDaily:!0},useCase:"Standard webhook processing for SaaS applications",bestFor:["Form submissions","User registrations","Status updates"],estimatedCost:"Infrastructure: ~$20/month"},{id:"webhook-low-frequency",name:"Webhook - Low Frequency",description:"Cost-effective processing for infrequent webhooks",category:"webhook",icon:vt,color:"from-slate-500 to-slate-600",limits:{perMinute:30,perHour:500,perDay:5e3,concurrent:5},schedule:{enabled:!1},throttling:{enabled:!1},actions:{onLimitReached:"queue",notifyOnLimit:!1,resetDaily:!0},useCase:"Occasional notifications and low-traffic integrations",bestFor:["Admin notifications","Backup triggers","Monitoring alerts"],estimatedCost:"Infrastructure: ~$5/month"},{id:"nightly-sync",name:"Nightly Data Sync",description:"Automated data synchronization during off-peak hours",category:"automation",icon:fl,color:"from-indigo-500 to-purple-500",popular:!0,limits:{perHour:1,perDay:1,concurrent:1},schedule:{enabled:!0,allowedHours:{start:2,end:4},allowedDays:[0,1,2,3,4,5,6],timezone:"America/Chicago"},throttling:{enabled:!1},actions:{onLimitReached:"reject",notifyOnLimit:!0,resetDaily:!0},useCase:"Daily database backups, data warehouse updates, report generation",bestFor:["Database backups","Data warehouse sync","Report generation"],estimatedCost:"Minimal - runs once daily"},{id:"hourly-polling",name:"Hourly Data Polling",description:"Regular data checks throughout the day",category:"automation",icon:vt,color:"from-amber-500 to-orange-500",limits:{perHour:1,perDay:24,concurrent:1},schedule:{enabled:!0,allowedHours:{start:0,end:23},allowedDays:[0,1,2,3,4,5,6],timezone:"America/Chicago"},throttling:{enabled:!1},actions:{onLimitReached:"queue",notifyOnLimit:!1,resetDaily:!0},useCase:"Status checks, inventory updates, price monitoring",bestFor:["Status monitoring","Inventory sync","Price tracking"],estimatedCost:"Low - 24 executions/day"},{id:"every-5-minutes",name:"High-Frequency Automation",description:"Frequent automated checks (every 5 minutes)",category:"automation",icon:et,color:"from-yellow-500 to-amber-500",limits:{perHour:12,perDay:288,concurrent:3},schedule:{enabled:!0,allowedHours:{start:6,end:22},allowedDays:[1,2,3,4,5],timezone:"America/Chicago"},throttling:{enabled:!1},actions:{onLimitReached:"queue",notifyOnLimit:!0,resetDaily:!0},useCase:"Real-time monitoring, stock alerts, critical system checks",bestFor:["Real-time alerts","Stock monitoring","System health checks"],estimatedCost:"Moderate - 288 executions/day"},{id:"business-hours-only",name:"Business Hours Automation",description:"Automated processes during working hours only",category:"automation",icon:ba,color:"from-blue-500 to-cyan-500",limits:{perHour:4,perDay:64,concurrent:2},schedule:{enabled:!0,allowedHours:{start:8,end:18},allowedDays:[1,2,3,4,5],timezone:"America/Chicago"},throttling:{enabled:!1},actions:{onLimitReached:"queue",notifyOnLimit:!1,resetDaily:!0},useCase:"Customer support automation, sales notifications, team updates",bestFor:["Support automation","Sales alerts","Team notifications"],estimatedCost:"Low - business hours only"},{id:"slack-integration",name:"Slack Integration",description:"Slack API rate limits for messaging and notifications",category:"integration",icon:dl,color:"from-purple-500 to-pink-500",popular:!0,limits:{perMinute:60,perHour:3e3,perDay:5e4,concurrent:10},schedule:{enabled:!1},throttling:{enabled:!0,burstSize:10,refillRate:1},actions:{onLimitReached:"delay",notifyOnLimit:!0,resetDaily:!0},useCase:"Team notifications, alerts, bot interactions",bestFor:["Team alerts","Bot messages","Status updates"],estimatedCost:"Free tier available"},{id:"email-service",name:"Email Service Provider",description:"Transactional email sending with rate limits",category:"integration",icon:ul,color:"from-red-500 to-pink-500",limits:{perMinute:100,perHour:5e3,perDay:5e4,concurrent:20},schedule:{enabled:!1},throttling:{enabled:!0,burstSize:20,refillRate:2},actions:{onLimitReached:"queue",notifyOnLimit:!0,resetDaily:!0},useCase:"Transactional emails, newsletters, notifications",bestFor:["Transactional emails","Newsletters","User notifications"],estimatedCost:"$0.10 per 1K emails"},{id:"stripe-payments",name:"Stripe Payment API",description:"Payment processing with Stripe API limits",category:"integration",icon:tp,color:"from-indigo-500 to-purple-500",limits:{perMinute:100,perHour:5e3,perDay:1e5,concurrent:25},schedule:{enabled:!1},throttling:{enabled:!0,burstSize:25,refillRate:2},actions:{onLimitReached:"delay",notifyOnLimit:!0,resetDaily:!0},useCase:"Payment processing, subscription management, refunds",bestFor:["Payment processing","Subscriptions","Invoicing"],estimatedCost:"2.9% + $0.30 per transaction"},{id:"github-api",name:"GitHub API Integration",description:"GitHub API rate limits for repository operations",category:"integration",icon:mn,color:"from-slate-600 to-slate-800",limits:{perMinute:60,perHour:5e3,perDay:5e3,concurrent:10},schedule:{enabled:!1},throttling:{enabled:!0,burstSize:10,refillRate:1},actions:{onLimitReached:"queue",notifyOnLimit:!0,resetDaily:!1},useCase:"CI/CD pipelines, repository monitoring, issue tracking",bestFor:["CI/CD automation","Issue tracking","PR management"],estimatedCost:"Free for authenticated requests"},{id:"database-sync",name:"Database Synchronization",description:"Controlled database sync to prevent overload",category:"integration",icon:Xa,color:"from-green-500 to-emerald-500",limits:{perMinute:30,perHour:1e3,perDay:1e4,concurrent:5},schedule:{enabled:!0,allowedHours:{start:0,end:23},allowedDays:[0,1,2,3,4,5,6],timezone:"America/Chicago"},throttling:{enabled:!0,burstSize:5,refillRate:.5},actions:{onLimitReached:"queue",notifyOnLimit:!0,resetDaily:!0},useCase:"Multi-database synchronization, data replication",bestFor:["Data replication","Multi-DB sync","Backup automation"],estimatedCost:"Depends on database provider"},{id:"rest-api-general",name:"REST API - General Purpose",description:"Balanced limits for typical REST API consumption",category:"integration",icon:ia,color:"from-cyan-500 to-blue-500",limits:{perMinute:60,perHour:2e3,perDay:2e4,concurrent:10},schedule:{enabled:!1},throttling:{enabled:!0,burstSize:10,refillRate:1},actions:{onLimitReached:"delay",notifyOnLimit:!0,resetDaily:!0},useCase:"General API integrations, third-party services",bestFor:["API integrations","Third-party services","Data fetching"],estimatedCost:"Varies by provider"}],l=[{value:"all",label:"All Templates",icon:kt,count:s.length},{value:"api",label:"API Limits",icon:et,count:s.filter(p=>p.category==="api").length},{value:"webhook",label:"Webhooks",icon:qt,count:s.filter(p=>p.category==="webhook").length},{value:"automation",label:"Automations",icon:Oa,count:s.filter(p=>p.category==="automation").length},{value:"integration",label:"Integrations",icon:ia,count:s.filter(p=>p.category==="integration").length}],c=s.filter(p=>
248{let m=a==="all"||p.category===a,h=p.name.toLowerCase().includes(t.toLowerCase())||p.description.toLowerCase().includes(t.toLowerCase())||p.useCase.toLowerCase().includes(t.toLowerCase());return m&&h}),d=s.filter(p=>p.popular),u=p=>{let m={name:p.name,limits:p.limits,schedule:p.schedule,throttling:p.throttling,actions:p.actions};navigator.clipboard.writeText(JSON.stringify(m,null,2)),i(p.id),$.success(`${p.name} configuration copied!`),setTimeout(()=>{i(null)},2e3)},f=p=>{$.success(`Creating rate limit from ${p.name}...`),setTimeout(()=>{e("/rate-limits",{state:{template:p}})},500)};return(0,Ee.jsx)($e,{children:(0,Ee.jsxs)("div",{className:"space-y-6",children:[(0,Ee.jsxs)("div",{children:[(0,Ee.jsx)("h1",{className:"text-3xl font-bold bg-gradient-to-r from-cyan-400 via-purple-400 to-pink-400 bg-clip-text text-transparent",children:"Rate Limit Templates"}),(0,Ee.jsx)("p",{className:"text-slate-400 mt-2",children:"Pre-configured rate limit templates for common scenarios"})]}),(0,Ee.jsx)("div",{className:"flex flex-col sm:flex-row gap-4",children:(0,Ee.jsxs)("div",{className:"flex-1 relative",children:[(0,Ee.jsx)(zo,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-slate-400"}),(0,Ee.jsx)("input",{type:"text",placeholder:"Search templates...",value:t,onChange:p=>r(p.target.value),className:"w-full pl-10 pr-4 py-3 rounded-xl bg-slate-100 dark:bg-white/5 border border-slate-300 dark:border-white/10 text-slate-900 dark:text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-cyan-500/50"})]})}),(0,Ee.jsx)("div",{className:"flex items-center gap-2 overflow-x-auto pb-2",children:l.map(p=>{let m=p.icon,h=a===p.value;return(0,Ee.jsxs)("button",{onClick:()=>n(p.value),className:U("flex items-center gap-2 px-4 py-2 rounded-lg font-medium transition-all whitespace-nowrap",h?"bg-gradient-to-r from-cyan-500/20 via-purple-500/20 to-pink-500/20 text-slate-900 dark:text-white border-2 border-cyan-500/50":"bg-slate-100 dark:bg-white/5 text-slate-600 dark:text-slate-400 hover:bg-slate-200 dark:hover:bg-white/10 border-2 border-transparent"),children:[(0,Ee.jsx)(m,{className:"w-4 h-4"}),p.label,(0,Ee.jsx)("span",{className:U("px-2 py-0.5 rounded-full text-xs font-bold",h?"bg-cyan-500/30 text-cyan-400":"bg-slate-200 dark:bg-white/10 text-slate-600 dark:text-slate-400"),children:p.count})]},p.value)})}),a==="all"&&!t&&(0,Ee.jsxs)("div",{children:[(0,Ee.jsxs)("div",{className:"flex items-center gap-2 mb-4",children:[(0,Ee.jsx)(Za,{className:"w-5 h-5 text-amber-400"}),(0,Ee.jsx)("h2",{className:"text-xl font-semibold text-slate-900 dark:text-white",children:"Popular Templates"})]}),(0,Ee.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:d.map((p,m)=>{let h=p.icon,g=o===p.id;return(0,Ee.jsxs)(G.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:m*.05},className:"backdrop-blur-xl bg-slate-50/90 dark:bg-black/40 border-2 border-slate-300 dark:border-white/10 rounded-xl p-5 hover:border-cyan-500/50 transition-all group",children:[(0,Ee.jsxs)("div",{className:"flex items-start justify-between mb-3",children:[(0,Ee.jsx)("div",{className:U("w-12 h-12 rounded-xl flex items-center justify-center bg-gradient-to-br",p.color),children:(0,Ee.jsx)(h,{className:"w-6 h-6 text-white"})}),(0,Ee.jsx)(Za,{className:"w-5 h-5 text-amber-400 fill-amber-400"})]}),(0,Ee.jsx)("h3",{className:"text-lg font-semibold text-slate-900 dark:text-white mb-2",children:p.name}),(0,Ee.jsx)("p",{className:"text-sm text-slate-600 dark:text-slate-400 mb-4",children:p.description}),(0,Ee.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ee.jsxs)("button",{onClick:()=>f(p),className:"flex-1 flex items-center justify-center gap-2 px-3 py-2 rounded-lg bg-gradient-to-r from-cyan-500 via-purple-500 to-pink-500 text-white font-medium hover:opacity-90 transition-opacity",children:["Use Template",(0,Ee.jsx)(Uo,{className:"w-4 h-4"})]}),(0,Ee.jsx)("button",{onClick:()=>u(p),className:"p-2 rounded-lg bg-slate-200 dark:bg-white/10 text-slate-600 dark:text-slate-400 hover:bg-slate-300 dark:hover:bg-white/20 transition-colors",title:"Copy configuration",children:g?(0,Ee.jsx)(mr,{className:"w-4 h-4 text-green-400"}):(0,Ee.jsx)(gt,{className:"w-4 h-4"})})]})]}
248,p.id)})})]}),(0,Ee.jsxs)("div",{children:[(0,Ee.jsxs)("h2",{className:"text-xl font-semibold text-slate-900 dark:text-white mb-4",children:[a==="all"?"All Templates":`${l.find(p=>p.value===a)?.label}`,(0,Ee.jsxs)("span",{className:"text-slate-600 dark:text-slate-400 font-normal ml-2",children:["(",c.length,")"]})]}),(0,Ee.jsxs)("div",{className:"space-y-4",children:[(0,Ee.jsx)(Ue,{mode:"popLayout",children:c.map((p,m)=>{let h=p.icon,g=o===p.id;return(0,Ee.jsx)(G.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{delay:m*.03},className:"backdrop-blur-xl bg-slate-50/90 dark:bg-black/40 border-2 border-slate-300 dark:border-white/10 rounded-2xl p-6 hover:border-cyan-500/50 transition-all",children:(0,Ee.jsxs)("div",{className:"flex items-start gap-4",children:[(0,Ee.jsx)("div",{className:U("w-14 h-14 rounded-xl flex items-center justify-center bg-gradient-to-br flex-shrink-0",p.color),children:(0,Ee.jsx)(h,{className:"w-7 h-7 text-white"})}),(0,Ee.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Ee.jsx)("div",{className:"flex items-start justify-between mb-2",children:(0,Ee.jsxs)("div",{children:[(0,Ee.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,Ee.jsx)("h3",{className:"text-lg font-semibold text-slate-900 dark:text-white",children:p.name}),p.popular&&(0,Ee.jsx)(Za,{className:"w-4 h-4 text-amber-400 fill-amber-400"})]}),(0,Ee.jsx)("p",{className:"text-sm text-slate-600 dark:text-slate-400",children:p.description})]})}),(0,Ee.jsxs)("div",{className:"flex flex-wrap items-center gap-3 mb-3 text-sm text-slate-600 dark:text-slate-400",children:[p.limits.perMinute&&(0,Ee.jsxs)("span",{className:"flex items-center gap-1",children:[(0,Ee.jsx)(vt,{className:"w-4 h-4"}),p.limits.perMinute,"/min"]}),p.limits.perHour&&(0,Ee.jsxs)("span",{className:"flex items-center gap-1",children:[(0,Ee.jsx)(vt,{className:"w-4 h-4"}),p.limits.perHour,"/hour"]}),p.limits.perDay&&(0,Ee.jsxs)("span",{className:"flex items-center gap-1",children:[(0,Ee.jsx)(ba,{className:"w-4 h-4"}),p.limits.perDay.toLocaleString(),"/day"]}),p.limits.concurrent&&(0,Ee.jsxs)("span",{className:"flex items-center gap-1",children:[(0,Ee.jsx)(qt,{className:"w-4 h-4"}),p.limits.concurrent," concurrent"]})]}),(0,Ee.jsxs)("div",{className:"p-3 rounded-lg bg-slate-100 dark:bg-white/5 border border-slate-300 dark:border-white/10 mb-3",children:[(0,Ee.jsx)("div",{className:"text-xs font-medium text-slate-600 dark:text-slate-400 mb-1",children:"USE CASE"}),(0,Ee.jsx)("div",{className:"text-sm text-slate-900 dark:text-white",children:p.useCase})]}),(0,Ee.jsx)("div",{className:"flex flex-wrap gap-2 mb-3",children:p.bestFor.map((y,v)=>(0,Ee.jsx)("span",{className:"px-2 py-1 rounded-md text-xs font-medium bg-cyan-500/20 text-cyan-400 border border-cyan-500/30",children:y},v))}),p.estimatedCost&&(0,Ee.jsxs)("div",{className:"flex items-center gap-2 text-sm text-slate-600 dark:text-slate-400 mb-4",children:[(0,Ee.jsx)(tp,{className:"w-4 h-4"}),(0,Ee.jsx)("span",{children:p.estimatedCost})]}),(0,Ee.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ee.jsxs)("button",{onClick:()=>f(p),className:"flex items-center gap-2 px-4 py-2 rounded-lg bg-gradient-to-r from-cyan-500 via-purple-500 to-pink-500 text-white font-medium hover:opacity-90 transition-opacity",children:["Use This Template",(0,Ee.jsx)(Uo,{className:"w-4 h-4"})]}),(0,Ee.jsx)("button",{onClick:()=>u(p),className:"flex items-center gap-2 px-4 py-2 rounded-lg bg-slate-200 dark:bg-white/10 text-slate-600 dark:text-slate-400 hover:bg-slate-300 dark:hover:bg-white/20 transition-colors",children:g?(0,Ee.jsxs)(Ee.Fragment,{children:[(0,Ee.jsx)(mr,{className:"w-4 h-4 text-green-400"}),"Copied!"]}):(0,Ee.jsxs)(Ee.Fragment,{children:[(0,Ee.jsx)(gt,{className:"w-4 h-4"}),"Copy Config"]})})]})]})]})},p.id)})}),c.length===0&&(0,Ee.jsxs)("div",{className:"text-center py-20",children:[(0,Ee.jsx)("div",{className:"w-16 h-16 rounded-2xl bg-gradient-to-br from-slate-200 to-slate-300 dark:from-white/10 dark:to-white/5 flex items-center justify-center mx-auto mb-4",children:(0,Ee.jsx)(zo,{className:"w-8 h-8 text-slate-400"})}),(0,Ee.jsx)("h3",{className:"text-lg font-semibold text-slate-900 dark:text-white mb-2",children:"No templates found"}
248),(0,Ee.jsx)("p",{className:"text-slate-600 dark:text-slate-400",children:"Try adjusting your search or filter criteria"})]})]})]})]})})},eae=X6e;var sn=R(Q());var fe=R(ke()),tae=[{id:"01KMRKCNK081XGJPR2D3TZM5D3",name:"\u{1F3AF} Team Orchestrator",role:"Coordinator",description:"Coordinates all specialized agents and delegates complex tasks",publicUrl:"https://www.taskade.com/a/01K92KKGB78W25RCPJKR9V7B4H",color:"from-purple-500 to-pink-500"},{id:"01KMRKCNK00R3YNNZFJGXWXCKQ",name:"Code Reviewer",role:"Quality Assurance",description:"Reviews code quality and identifies bugs",publicUrl:"https://www.taskade.com/a/01K92JWSQZ7XF8Z2GSJV32NPRH",color:"from-blue-500 to-cyan-500"},{id:"01KMRKCNK0WT6383NJDSZ3JCYT",name:"Architecture Analyst",role:"System Design",description:"Evaluates system architecture and design patterns",publicUrl:"https://www.taskade.com/a/01K92JWTY09C5C5Q5SDT8ZTP0M",color:"from-green-500 to-emerald-500"},{id:"01KMRKCNK0K91RVZXA4Y6VKNPM",name:"Debug Specialist",role:"Troubleshooting",description:"Investigates and resolves technical issues",publicUrl:"https://www.taskade.com/a/01K92JWW6TP9C7H0FCZ4C89VKE",color:"from-orange-500 to-red-500"},{id:"01KMRKCNK0E2QDEQD4N1T04ZDZ",name:"QA Tester",role:"Testing",description:"Performs comprehensive testing and validation",publicUrl:"https://www.taskade.com/a/01K92JWXFC4BJ6NY09N5CWYJNZ",color:"from-yellow-500 to-amber-500"},{id:"01KMRKCNK0XXXG4YXX22H3QF88",name:"RainbowBridge Assistant",role:"General Support",description:"General-purpose assistant for user interactions",publicUrl:"https://www.taskade.com/a/01K8ZYHQMWS2Z17BJBGPKYR6ZY",color:"from-indigo-500 to-purple-500"}],Y6e=[{label:"Analyze Security",prompt:"Analyze recent security incidents and provide recommendations",icon:Dt,color:"from-red-500 to-orange-500"},{label:"Check Integrations",prompt:"Check all webhook connections and API endpoints for issues",icon:et,color:"from-blue-500 to-cyan-500"},{label:"Performance Review",prompt:"Review API performance metrics and identify bottlenecks",icon:kt,color:"from-green-500 to-emerald-500"},{label:"Full System Audit",prompt:"Perform a comprehensive audit of the entire RainbowBridge system",icon:We,color:"from-purple-500 to-pink-500"}],rae=e=>{let t={get_nodes:"Fetching Data",create_node:"Creating Entry",update_node:"Updating Entry",delete_node:"Deleting Entry",search:"Searching",analyze:"Analyzing",web_search:"Web Search",fetch_webpage:"Fetching Webpage"},r=e.split("/"),a=r[r.length-1]||e;return t[a]||a.replace(/_/g," ").replace(/\b\w/g,n=>n.toUpperCase())},J6e=e=>e.includes("search")?zo:e.includes("create")||e.includes("update")?Xa:e.includes("fetch")||e.includes("get")?jt:e.includes("analyze")?kt:ap,Z6e=({toolCall:e})=>{let t=J6e(e.name),r=rae(e.name),a=e.endTime?Math.round((e.endTime.getTime()-e.startTime.getTime())/1e3):Math.round((new Date().getTime()-e.startTime.getTime())/1e3);return(0,fe.jsxs)(G.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},className:U("flex items-center gap-3 p-3 rounded-xl border transition-all duration-300",e.status==="completed"?"bg-green-500/10 border-green-500/30":e.status==="error"?"bg-red-500/10 border-red-500/30":"bg-blue-500/10 border-blue-500/30"),children:[(0,fe.jsx)("div",{className:U("p-2 rounded-lg",e.status==="completed"?"bg-green-500/20":e.status==="error"?"bg-red-500/20":"bg-blue-500/20"),children:e.status==="completed"?(0,fe.jsx)(gc,{className:"w-4 h-4 text-green-400"}):e.status==="error"?(0,fe.jsx)(Dt,{className:"w-4 h-4 text-red-400"}):(0,fe.jsx)(t,{className:"w-4 h-4 text-blue-400 animate-pulse"})}),(0,fe.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,fe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,fe.jsx)("span",{className:"text-sm font-medium text-slate-200",children:r}),e.status==="running"&&(0,fe.jsx)(xa,{className:"w-3 h-3 text-blue-400 animate-spin"})]}),e.input&&(0,fe.jsx)("div",{className:"text-xs text-slate-400 mt-1 truncate",children:typeof e.input=="string"?e.input:JSON.stringify(e.input).substring(0,100)}),(0,fe.jsxs)("div",{className:"flex items-center gap-2 mt-1",children:[(0,fe.jsx)(vt,{className:"w-3 h-3 text-slate-500"}),(0,fe.jsxs)("span",{className:"text-xs text-slate-500",children:[a,"s"]}),e.status==="completed"&&(0,fe.jsx)("span",{className:"text-xs text-green-400 ml-2",children:"\u2713 C
248omplete"})]})]}),e.status==="running"&&(0,fe.jsx)("div",{className:"w-24",children:(0,fe.jsx)("div",{className:"h-1 bg-slate-700 rounded-full overflow-hidden",children:(0,fe.jsx)(G.div,{className:"h-full bg-gradient-to-r from-blue-500 to-cyan-500",initial:{width:"0%"},animate:{width:"100%"},transition:{duration:2,repeat:1/0}})})})]})},Q6e=()=>{let[e,t]=sn.useState(tae[0]),[r,a]=sn.useState([]),[n,o]=sn.useState(""),[i,s]=sn.useState(!1),[l,c]=sn.useState(null),[d,u]=sn.useState(null),[f,p]=sn.useState(new Map),[m,h]=sn.useState(null),g=sn.useRef(null),y=sn.useMemo(()=>{let b=r.flatMap(N=>N.toolCalls||[]),w=b.filter(N=>N.status==="completed").length,k=b.length,C=b.filter(N=>N.endTime).reduce((N,E)=>N+(E.endTime.getTime()-E.startTime.getTime()),0)/(w||1);return{totalMessages:r.length,totalTools:k,completedTools:w,avgDuration:Math.round(C/1e3)}},[r]),v=()=>{g.current?.scrollIntoView({behavior:"smooth"})};sn.useEffect(()=>{v()},[r]),sn.useEffect(()=>((async()=>{d&&(d.close(),u(null)),s(!0),a([]),c(null);try{let w=await fetch(`/api/taskade/agents/${e.id}/public-conversations`,{method:"POST",headers:{"Content-Type":"application/json"}});if(!w.ok)throw new Error("Failed to create conversation");let k=await w.json();c(k.conversationId);let C=new EventSource(`/api/taskade/agents/${e.id}/public-conversations/${k.conversationId}/stream`);C.onopen=()=>{s(!1),$.success(`Connected to ${e.name}`)},C.onmessage=N=>{let E=JSON.parse(N.data);if(E.type==="start")h(E.messageId),p(new Map);else if(E.type==="text-start")a(L=>[...L,{id:E.id,role:"agent",content:"",agentName:e.name,timestamp:new Date,status:"sending",toolCalls:[],isThinking:!1}]);else if(E.type==="text-delta")a(L=>{let T=L[L.length-1];return T&&T.role==="agent"&&T.status==="sending"?[...L.slice(0,-1),{...T,content:T.content+E.delta,isThinking:!1}]:L});else if(E.type==="tool-input-start"){let L={id:E.toolCallId,name:E.toolName,status:"starting",startTime:new Date};p(T=>new Map(T).set(E.toolCallId,L)),a(T=>{let q=T[T.length-1];return q&&q.role==="agent"?[...T.slice(0,-1),{...q,isThinking:!0,toolCalls:[...q.toolCalls||[],L]}]:T})}else E.type==="tool-input-available"?(p(L=>{let T=new Map(L),q=T.get(E.toolCallId);return q&&T.set(E.toolCallId,{...q,input:E.input,status:"running"}),T}),a(L=>{let T=L[L.length-1];if(T&&T.role==="agent"){let q=T.toolCalls?.map(_=>_.id===E.toolCallId?{..._,input:E.input,status:"running"}:_);return[...L.slice(0,-1),{...T,toolCalls:q}]}return L})):E.type==="tool-output-available"?(p(L=>{let T=new Map(L),q=T.get(E.toolCallId);return q&&T.set(E.toolCallId,{...q,output:E.output,status:"completed",endTime:new Date}),T}),a(L=>{let T=L[L.length-1];if(T&&T.role==="agent"){let q=T.toolCalls?.map(_=>_.id===E.toolCallId?{..._,output:E.output,status:"completed",endTime:new Date}:_);return[...L.slice(0,-1),{...T,toolCalls:q}]}return L})):E.type==="finish"&&(h(null),p(new Map),a(L=>{let T=L[L.length-1];return T&&T.role==="agent"?[...L.slice(0,-1),{...T,status:"sent",isThinking:!1}]:L}))},C.onerror=()=>{s(!1),$.error("Connection lost. Please refresh.")},u(C)}catch(w){s(!1),$.error("Failed to connect to agent"),console.error(w)}})(),()=>{d&&d.close()}),[e.id]);let x=async b=>{if(!b.trim()||!l)return;let w={id:Date.now().toString(),role:"user",content:b,timestamp:new Date,status:"sending"};a(k=>[...k,w]),o("");try{if(!(await fetch(`/api/taskade/agents/${e.id}/public-conversations/${l}/messages`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({text:b})})).ok)throw new Error("Failed to send message");a(C=>C.map(N=>N.id===w.id?{...N,status:"sent"}:N))}catch(k){a(C=>C.map(N=>N.id===w.id?{...N,status:"error"}:N)),$.error("Failed to send message"),console.error(k)}},S=b=>{x(b)};return(0,fe.jsx)($e,{children:(0,fe.jsxs)("div",{className:"min-h-screen bg-gradient-to-br from-slate-950 via-slate-900 to-slate-950 dark:from-slate-950 dark:via-slate-900 dark:to-slate-950",children:[(0,fe.jsx)("div",{className:"border-b border-white/10 bg-black/20 backdrop-blur-xl",children:(0,fe.jsx)("div",{className:"max-w-7xl mx-auto px-6 py-6",children:(0,fe.jsxs)("div",{className:"flex items-center gap-4",children:[(0,fe.jsx)("div",{className:"p-3 rounded-2xl bg-gradient-to-br from-purple-500/20 to-pink-500/20 border border-purple-500/30",children:(0,fe.jsx)(ml,{className:"w-6 h-6 text-purple-400"})}),(0,fe.jsxs)("div",{children:[(0,fe.jsx)("h1",{className:"text-3xl font-bold bg-gradient-to-r from-purple-400 via-pink-400 to-purple-400 bg-clip-text text-transparent",children:"AI Agent Console"}),(0,fe.jsx)("p",{className:"text-slate-400 mt-1",children:"Interact with specialized agents to analyze and troubleshoot your app"})]})]})})}),(0,fe.jsx)("div",{className:"max-w-7xl mx-auto px-6 py-8",children:(0,fe.jsxs)("div",{className:"grid grid-cols-12 gap-6",children:[(0,fe.jsx)("div",{className:"col-span-12 lg:col-span-3",children:(0,fe.jsxs)("div",{className:"rounded-2xl bg-white/5 backdrop-blur-xl border border-white/10 p-4",children:[(0,fe.jsxs)("h2",{className:"text-sm font-semibold text-slate-300 mb-4 flex items-center gap-2",children:[(0,fe.jsx)(pn,{className:"w-4 h-4"}),"Available Agents"]}),(0,fe.jsx)("div",{className:"space-y-2",children:tae.map(b=>(0,fe.jsxs)("button",{onClick:()=>t(b),className:U("w-full text-left p-3 rounded-xl transition-all duration-200",e.id===b.id?"bg-gradient-to-r "+b.color+" text-white shadow-lg":"bg-white/5 hover:bg-white/10 text-slate-300"),children:[(0,fe.jsx)("div",{className:"font-medium text-sm",children:b.name}),(0,fe.jsx)("div",{className:U("text-xs mt-1",e.id===b.id?"text-white/80":"text-slate-500"),children:b.role})]},b.id))}),y.totalMessages>0&&(0,fe.jsxs)("div",{className:"mt-6 pt-6 border-t border-white/10",children:[(0,fe.jsxs)("h3",{className:"text-sm font-semibold text-slate-300 mb-3 flex items-center gap-2",children:[(0,fe.jsx)(nr,{className:"w-4 h-4"}),"Session Stats"]}),(0,fe.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,fe.jsxs)("div",{className:"bg-white/5 rounded-lg p-2",children:[(0,fe.jsx)("div",{className:"text-xs text-slate-400",children:"Messages"}),(0,fe.jsx)("div",{className:"text-lg font-bold text-white",children:y.totalMessages})]}),(0,fe.jsxs)("div",{className:"bg-white/5 rounded-lg p-2",children:[(0,fe.jsx)("div",{className:"text-xs text-slate-400",children:"Tools Used"}),(0,fe.jsx)("div",{className:"text-lg font-bold text-white",children:y.completedTools})]}),(0,fe.jsxs)("div",{className:"bg-white/5 rounded-lg p-2 col-span-2",children:[(0,fe.jsx)("div",{className:"text-xs text-slate-400",children:"Avg Tool Time"}),(0,fe.jsxs)("div",{className:"text-lg font-bold text-white",children:[y.avgDuration,"s"]})]})]})]}),(0,fe.jsxs)("div",{className:"mt-6 pt-6 border-t border-white/10",children:[(0,fe.jsx)("h3",{className:"text-sm font-semibold text-slate-300 mb-3",children:"Qu
248ick Actions"}),(0,fe.jsx)("div",{className:"space-y-2",children:Y6e.map((b,w)=>(0,fe.jsx)("button",{onClick:()=>S(b.prompt),disabled:!l,className:U("w-full text-left p-3 rounded-xl transition-all duration-200","bg-white/5 hover:bg-white/10 text-slate-300","disabled:opacity-50 disabled:cursor-not-allowed"),children:(0,fe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,fe.jsx)(b.icon,{className:"w-4 h-4"}),(0,fe.jsx)("span",{className:"text-xs font-medium",children:b.label})]})},w))})]})]})}),(0,fe.jsx)("div",{className:"col-span-12 lg:col-span-9",children:(0,fe.jsxs)("div",{className:"rounded-2xl bg-white/5 backdrop-blur-xl border border-white/10 overflow-hidden flex flex-col h-[calc(100vh-16rem)]",children:[(0,fe.jsxs)("div",{className:"p-4 border-b border-white/10 bg-black/20",children:[(0,fe.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,fe.jsxs)("div",{className:"flex items-center gap-3",children:[(0,fe.jsx)("div",{className:U("w-10 h-10 rounded-xl bg-gradient-to-br flex items-center justify-center",e.color),children:(0,fe.jsx)(pn,{className:"w-5 h-5 text-white"})}),(0,fe.jsxs)("div",{children:[(0,fe.jsx)("h3",{className:"font-semibold text-white",children:e.name}),(0,fe.jsx)("p",{className:"text-xs text-slate-400",children:e.description})]})]}),i?(0,fe.jsxs)("div",{className:"flex items-center gap-2 text-yellow-400",children:[(0,fe.jsx)(xa,{className:"w-4 h-4 animate-spin"}),(0,fe.jsx)("span",{className:"text-xs",children:"Connecting..."})]}):l?(0,fe.jsxs)("div",{className:"flex items-center gap-2 text-green-400",children:[(0,fe.jsx)("div",{className:"w-2 h-2 rounded-full bg-green-400 animate-pulse"}),(0,fe.jsx)("span",{className:"text-xs",children:"Connected"})]}):null]}),f.size>0&&(0,fe.jsxs)(G.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"bg-blue-500/10 border border-blue-500/30 rounded-xl p-3",children:[(0,fe.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,fe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,fe.jsx)(et,{className:"w-4 h-4 text-blue-400"}),(0,fe.jsx)("span",{className:"text-sm font-medium text-blue-400",children:"Active Operations"})]}),(0,fe.jsxs)("span",{className:"text-xs text-slate-400",children:[f.size," running"]})]}),(0,fe.jsx)("div",{className:"space-y-1",children:Array.from(f.values()).map(b=>(0,fe.jsxs)("div",{className:"flex items-center gap-2 text-xs text-slate-300",children:[(0,fe.jsx)(xa,{className:"w-3 h-3 animate-spin text-blue-400"}),(0,fe.jsx)("span",{children:rae(b.name)})]},b.id))})]})]}),(0,fe.jsxs)("div",{className:"flex-1 overflow-y-auto p-6 space-y-4",children:[(0,fe.jsxs)(Ue,{mode:"popLayout",children:[r.length===0&&!i&&(0,fe.jsxs)(G.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center py-12",children:[(0,fe.jsx)(dl,{className:"w-12 h-12 text-slate-600 mx-auto mb-4"}),(0,fe.jsxs)("p",{className:"text-slate-400",children:["Start a conversation with ",e.name]}),(0,fe.jsx)("p",{className:"text-slate-500 text-sm mt-2",children:"Try a quick action or type your own message"})]}),r.map(b=>(0,fe.jsxs)(G.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},className:U("flex gap-3",b.role==="user"?"justify-end":"justify-start"),children:[b.role==="agent"&&(0,fe.jsx)("div",{className:U("w-8 h-8 rounded-lg bg-gradient-to-br flex items-center justify-center flex-shrink-0",e.color),children:(0,fe.jsx)(pn,{className:"w-4 h-4 text-white"})}),(0,fe.jsxs)("div",{className:"max-w-[70%] space-y-3",children:[b.toolCalls&&b.toolCalls.length>0&&(0,fe.jsxs)("div",{className:"space-y-2",children:[(0,fe.jsxs)("div",{className:"flex items-center gap-2 text-xs text-slate-400 mb-2",children:[(0,fe.jsx)(ap,{className:"w-3 h-3"}),(0,fe.jsx)("span",{children:"Behind the scenes..."})]}),b.toolCalls.map(w=>(0,fe.jsx)(Z6e,{toolCall:w},w.id))]}),b.isThinking&&!b.content&&(0,fe.jsx)("div",{className:"bg-white/10 rounded-2xl px-4 py-3",children:(0,fe.jsxs)("div",{className:"flex items-center gap-2 text-slate-400",children:[(0,fe.jsx)(xa,{className:"w-4 h-4 animate-spin"}),(0,fe.jsx)("span",{className:"text-sm",children:"Thinking..."})]})}
248),b.content&&(0,fe.jsxs)("div",{className:U("rounded-2xl px-4 py-3",b.role==="user"?"bg-gradient-to-r from-purple-500 to-pink-500 text-white":"bg-white/10 text-slate-200"),children:[(0,fe.jsx)("p",{className:"text-sm whitespace-pre-wrap",children:b.content}),(0,fe.jsxs)("div",{className:"flex items-center gap-2 mt-2",children:[(0,fe.jsx)("span",{className:"text-xs opacity-60",children:b.timestamp.toLocaleTimeString()}),b.status==="sending"&&(0,fe.jsx)(xa,{className:"w-3 h-3 animate-spin opacity-60"}),b.status==="error"&&(0,fe.jsx)(Dt,{className:"w-3 h-3 text-red-400"})]})]})]})]},b.id))]}),(0,fe.jsx)("div",{ref:g})]}),(0,fe.jsx)("div",{className:"p-4 border-t border-white/10 bg-black/20",children:(0,fe.jsxs)("form",{onSubmit:b=>{b.preventDefault(),x(n)},className:"flex gap-3",children:[(0,fe.jsx)("input",{type:"text",value:n,onChange:b=>o(b.target.value),placeholder:`Message ${e.name}...`,disabled:!l,className:"flex-1 px-4 py-3 rounded-xl bg-white/5 border border-white/10 text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-purple-500/50 disabled:opacity-50 disabled:cursor-not-allowed"}),(0,fe.jsxs)("button",{type:"submit",disabled:!n.trim()||!l,className:"px-6 py-3 rounded-xl bg-gradient-to-r from-purple-500 to-pink-500 text-white font-medium hover:shadow-lg hover:shadow-purple-500/50 transition-all duration-200 disabled:opacity-50 disabled:cursor-not-allowed flex items-center gap-2",children:[(0,fe.jsx)(pl,{className:"w-4 h-4"}),"Send"]})]})})]})})]})})]})})},aae=Q6e;var Jc=R(Q());var ce=R(ke()),eVe=()=>{let[e,t]=Jc.useState(!1),[r,a]=Jc.useState(null),[n,o]=Jc.useState([]),[i,s]=Jc.useState(!1),[l,c]=Jc.useState(null),d=Jc.useRef(null),u=["Administrator","Security Officer","Manager","Operator","Auditor"],f=["active","inactive","suspended"],p=["delete_events","manage_connections","view_logs","manage_users","manage_credentials","view_analytics","export_data","manage_security","manage_templates","manage_rate_limits","test_api","view_monitoring"],m=C=>{C.preventDefault(),C.stopPropagation(),C.type==="dragenter"||C.type==="dragover"?t(!0):C.type==="dragleave"&&t(!1)},h=C=>{C.preventDefault(),C.stopPropagation(),t(!1),C.dataTransfer.files&&C.dataTransfer.files[0]&&y(C.dataTransfer.files[0])},g=C=>{C.target.files&&C.target.files[0]&&y(C.target.files[0])},y=C=>{if(!C.name.endsWith(".csv")){$.error("Please upload a CSV file");return}a(C),v(C)},v=C=>{let N=new FileReader;N.onload=E=>{let T=(E.target?.result).split(` 249`).filter(I=>I.trim());if(T.length<2){$.error("CSV file is empty or invalid");return}let _=T.slice(1).map((I,A)=>{let M=I.split(",").map(he=>he.trim()),[D,V,P,O,j]=M,W=[];D||W.push("Username is required"),V||W.push("Password is required"),(!P||!u.includes(P))&&W.push(`Invalid role. Must be one of: ${u.join(", ")}`),(!O||!f.includes(O))&&W.push(`Invalid status. Must be one of: ${f.join(", ")}`);let oe=(j?j.split(";").map(he=>he.trim()):[]).filter(he=>!p.includes(he));return oe.length>0&&W.push(`Invalid permissions: ${oe.join(", ")}`),{username:D,password:V,role:P,status:O,permissions:j,valid:W.length===0,errors:W}});o(_);let B=_.filter(I=>I.valid).length;$.success(`Parsed ${B} valid rows out of ${_.length} total`)},N.readAsText(C)},x=()=>{let C=`username,password,role,status,permissions 250john.doe,SecurePass123!,Manager,active,manage_connections;view_logs;test_api 251jane.smith,AnotherPass456!,Auditor,active,view_logs;view_analytics;export_data 252admin.user,AdminPass789!,Administrator,active,delete_events;manage_connections;view_logs;manage_users;manage_credentials;view_analytics;export_data;manage_security;manage_templates;manage_rate_limits;test_api;view_monitoring`,N=new Blob([C],{type:"text/csv"}),E=window.URL.createObjectURL(N),L=document.createElement("a");L.href=E,L.download="user_import_template.csv",L.click(),window.URL.revokeObjectURL(E),$.success("Template downloaded")},S=async()=>{let C=n.filter(E=>E.valid);if(C.length===0){$.error("No valid rows to import");return}s(!0);let N={success:0,failed:0,total:C.length,details:[]};for(let E of C)try{let L=E.role==="Administrator"?"admin":E.role==="Security Officer"?"security":E.role==="Manager"?"manager":E.role==="Operator"?"operator":E.role==="Auditor"?"auditor":"manager";await Ye.post("/api/taskade/projects/sJ6vadFuKowyC7Nf/nodes",{"/text":E.username,"/attributes/@usr01":E.username,"/attributes/@usr02":E.password,"/attributes/@usr03":L,"/attributes/@usr04":E.status,"/attributes/@usr05":new Date().toISOString(),"/attributes/@usr06":new Date().toISOString(),"/attributes/@usr07":E.permissions.replace(/;/g,",")}),N.success++,N.details.push({username:E.username,status:"success"})}catch(L){N.failed++,N.details.push({username:E.username,status:"failed",error:L.response?.data?.message||"Unknown error"})}c(N),s(!1),N.success>0&&$.success(`Successfully imported ${N.success} users`),N.failed>0&&$.error(`Failed to import ${N.failed} users`)},b=()=>{a(null),o([]),c(null),d.current&&(d.current.value="")},w=n.filter(C=>C.valid).length,k=n.length-w;return(0,ce.jsx)($e,{children:(0,ce.jsxs)("div",{className:"space-y-6",children:[(0,ce.jsxs)("div",{children:[(0,ce.jsx)("h1",{className:"text-3xl font-bold text-white",children:"Bulk User Import"}),(0,ce.jsx)("p",{className:"text-slate-400 mt-2",children:"Import multiple users at once using CSV files"})]}),n.length>0&&!l&&(0,ce.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[(0,ce.jsx)("div",{className:"rounded-xl backdrop-blur-xl bg-white/5 border border-white/10 p-4",children:(0,ce.jsxs)("div",{className:"flex items-center gap-3",children:[(0,ce.jsx)("div",{className:"p-2 rounded-lg bg-cyan-500/20",children:(0,ce.jsx)(jt,{className:"w-5 h-5 text-cyan-400"})}),(0,ce.jsxs)("div",{children:[(0,ce.jsx)("p",{className:"text-2xl font-bold text-white",children:n.length}),(0,ce.jsx)("p",{className:"text-sm text-slate-400",children:"Total Rows"})]})]})}),(0,ce.jsx)("div",{className:"rounded-xl backdrop-blur-xl bg-white/5 border border-white/10 p-4",children:(0,ce.jsxs)("div",{className:"flex items-center gap-3",children:[(0,ce.jsx)("div",{className:"p-2 rounded-lg bg-green-500/20",children:(0,ce.jsx)(We,{className:"w-5 h-5 text-green-400"})}),(0,ce.jsxs)("div",{children:[(0,ce.jsx)("p",{className:"text-2xl font-bold text-white",children:w}),(0,ce.jsx)("p",{className:"text-sm text-slate-400",children:"Valid Rows"})]})]})}),(0,ce.jsx)("div",{className:"rounded-xl backdrop-blur-xl bg-white/5 border border-white/10 p-4",children:(0,ce.jsxs)("div",{className:"flex items-center gap-3",children:[(0,ce.jsx)("div",{className:"p-2 rounded-lg bg-red-500/20",children:(0,ce.jsx)(Ct,{className:"w-5 h-5 text-red-400"})}),(0,ce.jsxs)("div",{children:[(0,ce.jsx)("p",{className:"text-2xl font-bold text-white",children:k}),(0,ce.jsx)("p",{className:"text-sm text-slate-400",children:"Invalid Rows"})]})]})})]}),l&&(0,ce.jsxs)(G.div,{initial:{opacity:0,y:20}
252,animate:{opacity:1,y:0},className:"rounded-xl backdrop-blur-xl bg-white/5 border border-white/10 p-6",children:[(0,ce.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,ce.jsx)("div",{className:"p-2 rounded-lg bg-green-500/20",children:(0,ce.jsx)(We,{className:"w-6 h-6 text-green-400"})}),(0,ce.jsxs)("div",{children:[(0,ce.jsx)("h2",{className:"text-xl font-bold text-white",children:"Import Complete"}),(0,ce.jsxs)("p",{className:"text-sm text-slate-400",children:[l.success," succeeded, ",l.failed," failed out of ",l.total," total"]})]})]}),(0,ce.jsx)("div",{className:"space-y-2 max-h-96 overflow-y-auto",children:l.details.map((C,N)=>(0,ce.jsxs)("div",{className:U("flex items-center justify-between p-3 rounded-lg",C.status==="success"?"bg-green-500/10 border border-green-500/20":"bg-red-500/10 border border-red-500/20"),children:[(0,ce.jsxs)("div",{className:"flex items-center gap-3",children:[C.status==="success"?(0,ce.jsx)(We,{className:"w-4 h-4 text-green-400"}):(0,ce.jsx)(Ct,{className:"w-4 h-4 text-red-400"}),(0,ce.jsx)("span",{className:"text-sm text-white",children:C.username})]}),C.error&&(0,ce.jsx)("span",{className:"text-xs text-red-400",children:C.error})]},N))}),(0,ce.jsxs)("div",{className:"flex gap-3 mt-6",children:[(0,ce.jsx)("button",{onClick:b,className:"flex-1 px-6 py-3 rounded-lg bg-cyan-500/20 text-cyan-400 hover:bg-cyan-500/30 transition-colors font-medium",children:"Import More Users"}),(0,ce.jsx)("button",{onClick:()=>window.location.href="/security",className:"flex-1 px-6 py-3 rounded-lg bg-gradient-to-r from-cyan-500 via-purple-500 to-pink-500 text-white hover:opacity-90 transition-opacity font-medium",children:"View All Users"})]})]}),!l&&(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsx)("div",{onDragEnter:m,onDragLeave:m,onDragOver:m,onDrop:h,className:U("rounded-2xl backdrop-blur-xl border-2 border-dashed transition-all",e?"border-cyan-500 bg-cyan-500/10":"border-white/20 bg-white/5"),children:(0,ce.jsxs)("div",{className:"p-12 text-center",children:[(0,ce.jsx)(G.div,{animate:e?{scale:1.1}:{scale:1},className:"inline-block p-4 rounded-2xl bg-gradient-to-r from-cyan-500/20 via-purple-500/20 to-pink-500/20 mb-4",children:(0,ce.jsx)(ms,{className:"w-12 h-12 text-cyan-400"})}),(0,ce.jsx)("h3",{className:"text-xl font-bold text-white mb-2",children:r?r.name:"Drop your CSV file here"}),(0,ce.jsx)("p",{className:"text-slate-400 mb-6",children:"or click to browse from your computer"}),(0,ce.jsx)("input",{ref:d,type:"file",accept:".csv",onChange:g,className:"hidden",id:"file-upload"}),(0,ce.jsxs)("div",{className:"flex items-center justify-center gap-3",children:[(0,ce.jsx)("label",{htmlFor:"file-upload",className:"px-6 py-3 rounded-lg bg-gradient-to-r from-cyan-500 via-purple-500 to-pink-500 text-white font-medium hover:opacity-90 transition-opacity cursor-pointer",children:"Choose File"}),(0,ce.jsxs)("button",{onClick:x,className:"px-6 py-3 rounded-lg bg-white/5 border border-white/10 text-white hover:bg-white/10 transition-colors flex items-center gap-2",children:[(0,ce.jsx)(ll,{className:"w-5 h-5"}),"Download Template"]})]}),(0,ce.jsx)("p",{className:"text-xs text-slate-500 mt-4",children:"CSV format: username, password, role, status, permissions (semicolon-separated)"})]})}),n.length>0&&(0,ce.jsxs)("div",{className:"rounded-xl backdrop-blur-xl bg-white/5 border border-white/10 overflow-hidden",children:[(0,ce.jsxs)("div",{className:"p-4 border-b border-white/10 flex items-center justify-between",children:[(0,ce.jsxs)("div",{children:[(0,ce.jsx)("h3",{className:"text-lg font-bold text-white",children:"Preview"}),(0,ce.jsx)("p",{className:"text-sm text-slate-400",children:"Review data before importing"})]}),(0,ce.jsxs)("div",{className:"flex gap-2",children:[(0,ce.jsxs)("button",{onClick:b,className:"px-4 py-2 rounded-lg bg-red-500/20 text-red-400 hover:bg-red-500/30 transition-colors flex items-center gap-2",children:[(0,ce.jsx)(Kt,{className:"w-4 h-4"}),"Clear"]}),(0,ce.jsx)("button",{onClick:S,disabled:i||w===0,className:"px-6 py-2 rounded-lg bg-gradient-to-r from-cyan-500 via-purple-500 to-pink-500 text-white font-medium hover:opacity-90 transition-opacity disabled:opacity-50 disabled:cursor-not-allowed flex items-center gap-2",children:i?(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsx)("div",{className:"w-4 h-4 border-2 border-white/30 border-t-white rounded-full animate-spin"}),"Importing..."]}):(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsx)(ml,{className:"w-4 h-4"}),"Import ",w," Users"]})})]})]}),(0,ce.jsx)("div",{className:"overflow-x-auto",children:(0,ce.jsxs)("table",{className:"w-full",children:[(0,ce.jsx)("thead",{children:(0,ce.jsxs)("tr",{className:"border-b border-white/10",children:[(0,ce.jsx)("th",{className:"px-4 py-3 text-left text-xs font-semibold text-slate-300",children:"Status"}),(0,ce.jsx)("th",{className:"px-4 py-3 text-left text-xs font-semibold text-slate-300",children:"Username"}),(0,ce.jsx)("th",{className:"px-4 py-3 text-left text-xs font-semibold text-slate-300",children:"Role"}),(0,ce.jsx)("th",{className:"px-4 py-3 text-left text-xs font-semibold text-slate-300",children:"Status"}),(0,ce.jsx)("th",{className:"px-4 py-3 text-left text-xs font-semibold text-slate-300",children:"Permissions"}),(0,ce.jsx)("th",{className:"px-4 py-3 text-left text-xs font-semibold text-slate-300",children:"Issues"})]})}),(0,ce.jsx)("tbody",{children:n.map((C,N)=>(0,ce.jsxs)("tr",{className:U("border-b border-white/5",C.valid?"hover:bg-white/5":"bg-red-500/5"),children:[(0,ce.jsx)("td",{className:"px-4 py-3",children:C.valid?(0,ce.jsx)(We,{className:"w-5 h-5 text-green-400"}):(0,ce.jsx)(Ct,{className:"w-5 h-5 text-red-400"})}),(0,ce.jsx)("td",{className:"px-4 py-3 text-sm text-white",children:C.username}),(0,ce.jsx)("td",{className:"px-4 py-3",children:(0,ce.jsx)("span",{className:"px-2 py-1 rounded text-xs font-medium bg-purple-500/20 text-purple-400 border border-purple-500/30",children:C.role})}),(0,ce.jsx)("td",{className:"px-4 py-3",children:(0,ce.jsx)("span",{className:U("px-2 py-1 rounded text-xs font-medium border",C.status==="active"?"bg-green-500/20 text-green-400 border-green-500/30":C.status==="inactive"?"bg-slate-500/20 text-slate-400 border-slate-500/30":"bg-red-500/20 text-red-400 border-red-500/30"),children:C.status})}),(0,ce.jsxs)("td",{className:"px-4 py-3 text-xs text-slate-400",children:[C.permissions.split(";").length," permissions"]}),(0,ce.jsx)("td",{className:"px-4 py-3",children:C.errors.length>0&&(0,ce.jsx)("div",{className:"text-xs text-red-400",children:C.errors.join(", ")})})]},N))})]})})]})]}),!r&&!l&&(0,ce.jsxs)("div",{className:"rounded-xl backdrop-blur-xl bg-white/5 border border-white/10 p-6",children:[(0,ce.jsxs)("h3",{className:"text-lg font-bold text-white mb-4 flex items-center gap-2",children:[(0,ce.jsx)(hr,{className:"w-5 h-5 text-amber-400"}),"CSV Format Instructions"]}),(0,ce.jsxs)("div",{className:"space-y-4 text-sm text-slate-300",children:[(0,ce.jsxs)("div",{children:[(0,ce.jsx)("p",{className:"font-semibold text-white mb-2",children:"Required Columns:"}),(0,ce.jsxs)("ul",{className:"list-disc list-inside space-y-1 text-slate-400",children:[(0,ce.jsxs)("li",{children:[(0,ce.jsx)("code",{className:"text-cyan-400",children:"username"})," - Unique username for the user"]}),(0,ce.jsxs)("li",{children:[(0,ce.jsx)("code",{className:"text-cyan-400",children:"password"})," - User's password"]}),(0,ce.jsxs)("li",{children:[(0,ce.jsx)("code",{className:"text-cyan-400",children:"role"}
252)," - One of: ",u.join(", ")]}),(0,ce.jsxs)("li",{children:[(0,ce.jsx)("code",{className:"text-cyan-400",children:"status"})," - One of: ",f.join(", ")]}),(0,ce.jsxs)("li",{children:[(0,ce.jsx)("code",{className:"text-cyan-400",children:"permissions"})," - Semicolon-separated permission IDs"]})]})]}),(0,ce.jsxs)("div",{children:[(0,ce.jsx)("p",{className:"font-semibold text-white mb-2",children:"Available Permissions:"}),(0,ce.jsx)("div",{className:"flex flex-wrap gap-2",children:p.map(C=>(0,ce.jsx)("code",{className:"px-2 py-1 rounded bg-slate-800 text-cyan-400 text-xs",children:C},C))})]}),(0,ce.jsxs)("div",{children:[(0,ce.jsx)("p",{className:"font-semibold text-white mb-2",children:"Example Row:"}),(0,ce.jsx)("code",{className:"block p-3 rounded-lg bg-slate-800 text-cyan-400 text-xs overflow-x-auto",children:"john.doe,SecurePass123!,Manager,active,manage_connections;view_logs;test_api"})]})]})]})]})})},nae=eVe;var Ao=R(Q());var pe=R(ke()),tVe=()=>{let[e,t]=Ao.useState([]),[r,a]=Ao.useState(!0),[n,o]=Ao.useState(!1),[i,s]=Ao.useState(null),[l,c]=Ao.useState(null),[d,u]=Ao.useState(new Set),[f,p]=Ao.useState(null),[m,h]=Ao.useState({}
252),g=[{id:"slack",name:"Slack",description:"Send notifications and alerts to Slack channels",icon:dl,color:"from-purple-500 to-pink-500",category:"Communication",fields:[{name:"webhookUrl",label:"Webhook URL",type:"url",required:!0},{name:"channel",label:"Default Channel",type:"text",required:!1}]},{id:"email",name:"Email (SMTP)",description:"Send email notifications via SMTP",icon:ul,color:"from-blue-500 to-cyan-500",category:"Communication",fields:[{name:"host",label:"SMTP Host",type:"text",required:!0},{name:"port",label:"SMTP Port",type:"text",required:!0},{name:"username",label:"Username",type:"text",required:!0},{name:"password",label:"Password",type:"password",required:!0},{name:"from",label:"From Address",type:"text",required:!0}]},{id:"webhook",name:"Custom Webhook",description:"Send data to any HTTP endpoint",icon:ia,color:"from-green-500 to-emerald-500",category:"Custom",fields:[{name:"url",label:"Webhook URL",type:"url",required:!0},{name:"method",label:"HTTP Method",type:"select",required:!0,options:["POST","PUT","PATCH"]},{name:"headers",label:"Custom Headers (JSON)",type:"text",required:!1}]},{id:"database",name:"Database",description:"Connect to external databases",icon:Xa,color:"from-orange-500 to-red-500",category:"Data",fields:[{name:"type",label:"Database Type",type:"select",required:!0,options:["PostgreSQL","MySQL","MongoDB"]},{name:"host",label:"Host",type:"text",required:!0},{name:"port",label:"Port",type:"text",required:!0},{name:"database",label:"Database Name",type:"text",required:!0},{name:"username",label:"Username",type:"text",required:!0},{name:"password",label:"Password",type:"password",required:!0}]},{id:"calendar",name:"Calendar",description:"Sync with Google Calendar or Outlook",icon:ba,color:"from-indigo-500 to-purple-500",category:"Productivity",fields:[{name:"provider",label:"Provider",type:"select",required:!0,options:["Google Calendar","Outlook"]},{name:"apiKey",label:"API Key",type:"password",required:!0},{name:"calendarId",label:"Calendar ID",type:"text",required:!1}]},{id:"analytics",name:"Analytics",description:"Send events to analytics platforms",icon:nr,color:"from-yellow-500 to-amber-500",category:"Analytics",fields:[{name:"provider",label:"Provider",type:"select",required:!0,options:["Google Analytics","Mixpanel","Segment"]},{name:"trackingId",label:"Tracking ID",type:"text",required:!0},{name:"apiKey",label:"API Key",type:"password",required:!1}]},{id:"storage",name:"Cloud Storage",description:"Store files in cloud storage",icon:jt,color:"from-teal-500 to-cyan-500",category:"Data",fields:[{name:"provider",label:"Provider",type:"select",required:!0,options:["AWS S3","Google Cloud Storage","Azure Blob"]},{name:"bucket",label:"Bucket/Container Name",type:"text",required:!0},{name:"accessKey",label:"Access Key",type:"password",required:!0},{name:"secretKey",label:"Secret Key",type:"password",required:!0}]},{id:"auth",name:"Authentication",description:"SSO and OAuth providers",icon:Qe,color:"from-red-500 to-pink-500",category:"Security",fields:[{name:"provider",label:"Provider",type:"select",required:!0,options:["OAuth 2.0","SAML","LDAP"]},{name:"clientId",label:"Client ID",type:"text",required:!0},{name:"clientSecret",label:"Client Secret",type:"password",required:!0},{name:"redirectUrl",label:"Redirect URL",type:"url",required:!0}]}],y=Array.from(new Set(g.map(_=>_.category)));Ao.useEffect(()=>{v()},[]);let v=async()=>{try{t([{id:"1",name:"Production Slack",type:"slack",status:"active",webhookUrl:"https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXX",config:{channel:"#alerts"},createdAt:new Date().toISOString(),lastSync:new Date().toISOString(),syncCount:1247},{id:"2",name:"Email Notifications",type:"email",status:"active",config:{host:"smtp.gmail.com",port:"587",from:"[email protected]"},createdAt:new Date(Date.now()-10080*60*1e3).toISOString(),lastSync:new Date(Date.now()-7200*1e3).toISOString(),syncCount:892}]),a(!1)}catch(_){console.error("Failed to load integrations:",_),$.error("Failed to load integrations"),a(!1)}},x=_=>{c(_),s(null);let B={name:`${_.name} Integration`};_.fields.forEach(I=>{B[I.name]=""}),h(B),o(!0)},S=_=>{let B=g.find(I=>I.id===_.type);
252B&&(c(B),s(_),h({name:_.name,..._.config}),o(!0))},b=()=>{o(!1),c(null),s(null),h({})},w=async _=>{if(_.preventDefault(),!!l)try{let B={id:i?.id||Date.now().toString(),name:m.name,type:l.id,status:"active",config:{...m},createdAt:i?.createdAt||new Date().toISOString(),syncCount:i?.syncCount||0};i?(t(I=>I.map(A=>A.id===i.id?B:A)),$.success("Integration updated successfully")):(t(I=>[...I,B]),$.success("Integration created successfully")),b()}catch(B){console.error("Failed to save integration:",B),$.error("Failed to save integration")}},k=async _=>{if(confirm(`Are you sure you want to delete "${_.name}"?`))try{t(B=>B.filter(I=>I.id!==_.id)),$.success("Integration deleted")}catch(B){console.error("Failed to delete integration:",B),$.error("Failed to delete integration")}},C=async _=>{try{let B=_.status==="active"?"inactive":"active";t(I=>I.map(A=>A.id===_.id?{...A,status:B}:A)),$.success(`Integration ${B==="active"?"activated":"deactivated"}`)}catch(B){console.error("Failed to toggle status:",B),$.error("Failed to update status")}},N=async _=>{$.info("Testing integration..."),setTimeout(()=>{$.success("Integration test successful!")},1500)},E=_=>{u(B=>{let I=new Set(B);return I.has(_)?I.delete(_):I.add(_),I})},L=(_,B)=>{navigator.clipboard.writeText(_),p(B),$.success("Copied to clipboard"),setTimeout(()=>p(null),2e3)},T=_=>g.find(B=>B.id===_),q=_=>{switch(_){case"active":return"bg-green-500/20 text-green-400 border-green-500/30";case"inactive":return"bg-slate-500/20 text-slate-400 border-slate-500/30";case"error":return"bg-red-500/20 text-red-400 border-red-500/30";default:return"bg-slate-500/20 text-slate-400 border-slate-500/30"}};return r?(0,pe.jsx)($e,{children:(0,pe.jsx)("div",{className:"flex items-center justify-center h-96",children:(0,pe.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-t-2 border-b-2 border-cyan-500"})})}):(0,pe.jsxs)($e,{children:[(0,pe.jsxs)("div",{className:"space-y-6",children:[(0,pe.jsxs)("div",{children:[(0,pe.jsx)("h1",{className:"text-3xl font-bold text-white",children:"Integrations"}),(0,pe.jsx)("p",{className:"text-slate-400 mt-2",children:"Connect RainbowBridge with external services and APIs"})]}),(0,pe.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4",children:[(0,pe.jsx)("div",{className:"rounded-xl backdrop-blur-xl bg-white/5 border border-white/10 p-4",children:(0,pe.jsxs)("div",{className:"flex items-center gap-3",children:[(0,pe.jsx)("div",{className:"p-2 rounded-lg bg-cyan-500/20",children:(0,pe.jsx)(et,{className:"w-5 h-5 text-cyan-400"})}),(0,pe.jsxs)("div",{children:[(0,pe.jsx)("p",{className:"text-2xl font-bold text-white",children:e.length}),(0,pe.jsx)("p",{className:"text-sm text-slate-400",children:"Total Integrations"})]})]})}),(0,pe.jsx)("div",{className:"rounded-xl backdrop-blur-xl bg-white/5 border border-white/10 p-4",children:(0,pe.jsxs)("div",{className:"flex items-center gap-3",children:[(0,pe.jsx)("div",{className:"p-2 rounded-lg bg-green-500/20",children:(0,pe.jsx)(We,{className:"w-5 h-5 text-green-400"})}),(0,pe.jsxs)("div",{children:[(0,pe.jsx)("p",{className:"text-2xl font-bold text-white",children:e.filter(_=>_.status==="active").length}),(0,pe.jsx)("p",{className:"text-sm text-slate-400",children:"Active"})]})]})}),(0,pe.jsx)("div",{className:"rounded-xl backdrop-blur-xl bg-white/5 border border-white/10 p-4",children:(0,pe.jsxs)("div",{className:"flex items-center gap-3",children:[(0,pe.jsx)("div",{className:"p-2 rounded-lg bg-slate-500/20",children:(0,pe.jsx)(Ct,{className:"w-5 h-5 text-slate-400"})}),(0,pe.jsxs)("div",{children:[(0,pe.jsx)("p",{className:"text-2xl font-bold text-white",children:e.filter(_=>_.status==="inactive").length}),(0,pe.jsx)("p",{className:"text-sm text-slate-400",children:"Inactive"})]})]})}),(0,pe.jsx)("div",{className:"rounded-xl backdrop-blur-xl bg-white/5 border border-white/10 p-4",children:(0,pe.jsxs)("div",{className:"flex items-center gap-3",children:[(0,pe.jsx)("div",{className:"p-2 rounded-lg bg-purple-500/20",children:(0,pe.jsx)(nr,{className:"w-5 h-5 text-purple-400"})}),(0,pe.jsxs)("div",{children:[(0,pe.jsx)("p",{className:"text-2xl font-bold text-white",children:e.reduce((_,B)=>
252_+B.syncCount,0).toLocaleString()}),(0,pe.jsx)("p",{className:"text-sm text-slate-400",children:"Total Syncs"})]})]})})]}),e.length>0&&(0,pe.jsxs)("div",{className:"space-y-4",children:[(0,pe.jsx)("h2",{className:"text-xl font-bold text-white",children:"Active Integrations"}),(0,pe.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:e.map((_,B)=>{let I=T(_.type);if(!I)return null;let A=I.icon,M=_.status==="active";return(0,pe.jsxs)(G.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:B*.05},className:U("rounded-xl backdrop-blur-xl border p-6 transition-all",M?"bg-white/5 border-white/10 hover:border-cyan-500/30":"bg-white/5 border-white/10 opacity-60"),children:[(0,pe.jsxs)("div",{className:"flex items-start justify-between mb-4",children:[(0,pe.jsxs)("div",{className:"flex items-center gap-3",children:[(0,pe.jsx)("div",{className:U("p-2 rounded-lg bg-gradient-to-r",I.color),children:(0,pe.jsx)(A,{className:"w-5 h-5 text-white"})}),(0,pe.jsxs)("div",{children:[(0,pe.jsx)("h3",{className:"text-lg font-bold text-white",children:_.name}),(0,pe.jsx)("p",{className:"text-xs text-slate-400",children:I.name})]})]}),(0,pe.jsx)("span",{className:U("px-2 py-1 rounded text-xs font-medium border",q(_.status)),children:_.status})]}),(0,pe.jsxs)("div",{className:"grid grid-cols-2 gap-3 mb-4",children:[(0,pe.jsxs)("div",{className:"p-3 rounded-lg bg-white/5",children:[(0,pe.jsx)("p",{className:"text-xs text-slate-400 mb-1",children:"Total Syncs"}),(0,pe.jsx)("p",{className:"text-lg font-bold text-white",children:_.syncCount.toLocaleString()})]}),(0,pe.jsxs)("div",{className:"p-3 rounded-lg bg-white/5",children:[(0,pe.jsx)("p",{className:"text-xs text-slate-400 mb-1",children:"Last Sync"}),(0,pe.jsx)("p",{className:"text-sm font-medium text-white",children:_.lastSync?Zr(new Date(_.lastSync),"MMM d, h:mm a"):"Never"})]})]}),(0,pe.jsxs)("div",{className:"flex gap-2",children:[(0,pe.jsx)("button",{onClick:()=>N(_),className:"flex-1 px-3 py-2 rounded-lg bg-cyan-500/20 text-cyan-400 hover:bg-cyan-500/30 transition-colors text-sm font-medium",children:"Test"}),(0,pe.jsx)("button",{onClick:()=>C(_),className:U("flex-1 px-3 py-2 rounded-lg text-sm font-medium transition-colors",M?"bg-slate-500/20 text-slate-300 hover:bg-slate-500/30":"bg-green-500/20 text-green-400 hover:bg-green-500/30"),children:M?"Disable":"Enable"}),(0,pe.jsx)("button",{onClick:()=>S(_),className:"px-3 py-2 rounded-lg bg-purple-500/20 text-purple-400 hover:bg-purple-500/30 transition-colors",children:(0,pe.jsx)(Oa,{className:"w-4 h-4"})}),(0,pe.jsx)("button",{onClick:()=>k(_),className:"px-3 py-2 rounded-lg bg-red-500/20 text-red-400 hover:bg-red-500/30 transition-colors",children:(0,pe.jsx)(Kt,{className:"w-4 h-4"})})]})]},_.id)})})]}),(0,pe.jsxs)("div",{className:"space-y-4",children:[(0,pe.jsx)("h2",{className:"text-xl font-bold text-white",children:"Available Integrations"}),y.map(_=>{let B=g.filter(I=>I.category===_);return(0,pe.jsxs)("div",{className:"space-y-3",children:[(0,pe.jsx)("h3",{className:"text-sm font-semibold text-slate-400",children:_}),(0,pe.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:B.map((I,A)=>{let M=I.icon,D=e.some(V=>V.type===I.id);return(0,pe.jsxs)(G.button,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{delay:A*.05},onClick:()=>x(I),className:"group relative rounded-xl backdrop-blur-xl bg-white/5 border border-white/10 p-6 text-left hover:border-cyan-500/30 transition-all",children:[D&&(0,pe.jsx)("div",{className:"absolute top-3 right-3",children:(0,pe.jsx)(We,{className:"w-5 h-5 text-green-400"})}),(0,pe.jsx)("div",{className:U("inline-block p-3 rounded-lg bg-gradient-to-r mb-3",I.color),children:(0,pe.jsx)(M,{className:"w-6 h-6 text-white"})}),(0,pe.jsx)("h4",{className:"text-lg font-bold text-white mb-1 group-hover:text-cyan-400 transition-colors",children:I.name}),(0,pe.jsx)("p",{className:"text-sm text-slate-400",children:I.description}),(0,pe.jsxs)("div",{className:"mt-4 flex items-center gap-2 text-cyan-400 text-sm font-medium",children:[(0,pe.jsx)(Bt,{className:"w-4 h-4"}),(0,pe.jsx)("span",{children:"Add Integration"})]})]},I.id)})})]},_)})]})]}),(0,pe.jsx)(Ue,{children:n&&l&&(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(G.div,{initial:{opacity:0}
252,animate:{opacity:1},exit:{opacity:0},onClick:b,className:"fixed inset-0 bg-black/60 backdrop-blur-sm z-50"}),(0,pe.jsx)(G.div,{initial:{opacity:0,scale:.95,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:20},className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:(0,pe.jsxs)("div",{className:"w-full max-w-2xl rounded-2xl backdrop-blur-xl bg-slate-900/95 border border-cyan-500/30 shadow-2xl shadow-cyan-500/20 max-h-[90vh] overflow-y-auto",children:[(0,pe.jsxs)("div",{className:"flex items-center justify-between p-6 border-b border-white/10 sticky top-0 bg-slate-900/95 backdrop-blur-xl",children:[(0,pe.jsxs)("div",{className:"flex items-center gap-3",children:[(0,pe.jsx)("div",{className:U("p-2 rounded-lg bg-gradient-to-r",l.color),children:Ao.createElement(l.icon,{className:"w-5 h-5 text-white"})}),(0,pe.jsxs)("div",{children:[(0,pe.jsxs)("h2",{className:"text-xl font-bold text-white",children:[i?"Edit":"Add"," ",l.name]}),(0,pe.jsx)("p",{className:"text-sm text-slate-400",children:l.description})]})]}),(0,pe.jsx)("button",{onClick:b,className:"p-2 rounded-lg hover:bg-white/10 transition-colors",children:(0,pe.jsx)(Ir,{className:"w-5 h-5 text-slate-400"})})]}),(0,pe.jsxs)("form",{onSubmit:w,className:"p-6 space-y-6",children:[(0,pe.jsxs)("div",{children:[(0,pe.jsx)("label",{className:"block text-sm font-medium text-slate-300 mb-2",children:"Integration Name *"}),(0,pe.jsx)("input",{type:"text",value:m.name||"",onChange:_=>h({...m,name:_.target.value}),className:"w-full px-4 py-3 rounded-lg bg-white/5 border border-white/10 text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-cyan-500/50",placeholder:"Enter a name for this integration",required:!0})]}),l.fields.map(_=>(0,pe.jsxs)("div",{children:[(0,pe.jsxs)("label",{className:"block text-sm font-medium text-slate-300 mb-2",children:[_.label," ",_.required&&"*"]}),_.type==="select"?(0,pe.jsxs)("select",{value:m[_.name]||"",onChange:B=>h({...m,[_.name]:B.target.value}),className:"w-full px-4 py-3 rounded-lg bg-white/5 border border-white/10 text-white focus:outline-none focus:ring-2 focus:ring-cyan-500/50",required:_.required,children:[(0,pe.jsxs)("option",{value:"",children:["Select ",_.label]}),_.options?.map(B=>(0,pe.jsx)("option",{value:B,children:B},B))]}):_.type==="password"?(0,pe.jsxs)("div",{className:"relative",children:[(0,pe.jsx)("input",{type:d.has(_.name)?"text":"password",value:m[_.name]||"",onChange:B=>h({...m,[_.name]:B.target.value}),className:"w-full px-4 py-3 pr-10 rounded-lg bg-white/5 border border-white/10 text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-cyan-500/50",placeholder:`Enter ${_.label.toLowerCase()}`,required:_.required}),(0,pe.jsx)("button",{type:"button",onClick:()=>E(_.name),className:"absolute right-3 top-1/2 -translate-y-1/2 text-slate-400 hover:text-white transition-colors",children:d.has(_.name)?(0,pe.jsx)(qo,{className:"w-5 h-5"}):(0,pe.jsx)(Yr,{className:"w-5 h-5"})})]}):(0,pe.jsx)("input",{type:_.type,value:m[_.name]||"",onChange:B=>h({...m,[_.name]:B.target.value}),className:"w-full px-4 py-3 rounded-lg bg-white/5 border border-white/10 text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-cyan-500/50",placeholder:`Enter ${_.label.toLowerCase()}`,required:_.required})]},_.name)),(0,pe.jsxs)("div",{className:"flex gap-3 pt-4",children:[(0,pe.jsx)("button",{type:"button",onClick:b,className:"flex-1 px-6 py-3 rounded-lg bg-white/5 border border-white/10 text-white hover:bg-white/10 transition-colors",children:"Cancel"}),(0,pe.jsxs)("button",{type:"submit",className:"flex-1 px-6 py-3 rounded-lg bg-gradient-to-r from-cyan-500 via-purple-500 to-pink-500 text-white font-medium hover:opacity-90 transition-opacity",children:[i?"Update":"Create"," Integration"]})]})]})]})})]})})]})},oae=tVe;var dOt=R(Q());var Ae=R(ke()),rVe=()=>{let e=[{icon:Xa,title:"Data Layer",description:"Taskade Projects as intelligent databases",color:"from-cyan-500 to-blue-500"},{icon:pn,title:"Intelligence Layer",description:"AI Agents for contextual assistance",color:"from-purple-500 to-pink-500"}
252,{icon:y0,title:"Automation Layer",description:"Workflows for complex business logic",color:"from-green-500 to-emerald-500"},{icon:mn,title:"Interface Layer",description:"Beautiful, responsive React applications",color:"from-orange-500 to-red-500"}],t=[{name:"React 18",description:"Modern UI library"},{name:"TypeScript",description:"Type-safe development"},{name:"Tailwind CSS",description:"Utility-first styling"},{name:"Framer Motion",description:"Cinematic animations"},{name:"Radix UI",description:"Accessible components"},{name:"Zustand",description:"State management"}];return(0,Ae.jsx)($e,{children:(0,Ae.jsxs)("div",{className:"space-y-12",children:[(0,Ae.jsxs)(G.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center space-y-4",children:[(0,Ae.jsx)("div",{className:"flex items-center justify-center gap-3 mb-4",children:(0,Ae.jsx)("div",{className:"w-16 h-16 rounded-2xl bg-gradient-to-br from-cyan-500 via-purple-500 to-pink-500 flex items-center justify-center",children:(0,Ae.jsx)(Qe,{className:"w-10 h-10 text-white"})})}),(0,Ae.jsx)("h1",{className:"text-4xl font-bold bg-gradient-to-r from-cyan-400 via-purple-400 to-pink-400 bg-clip-text text-transparent",children:wt.settings.appName}),(0,Ae.jsx)("p",{className:"text-xl text-slate-600 dark:text-slate-400",children:wt.settings.appSubtitle}),(0,Ae.jsxs)("div",{className:"flex items-center justify-center gap-2 text-sm text-slate-600 dark:text-slate-400",children:[(0,Ae.jsx)("span",{children:"Version 1.0.0"}),(0,Ae.jsx)("span",{children:"\u2022"}),(0,Ae.jsx)("span",{children:"January 2025"})]})]}),(0,Ae.jsx)(G.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:"rounded-2xl backdrop-blur-xl bg-gradient-to-br from-purple-500/10 via-pink-500/10 to-cyan-500/10 border border-purple-500/20 p-8",children:(0,Ae.jsxs)("div",{className:"flex items-start gap-6",children:[(0,Ae.jsx)("div",{className:"flex-shrink-0 w-16 h-16 rounded-2xl bg-gradient-to-br from-purple-500 to-pink-500 flex items-center justify-center",children:(0,Ae.jsx)(kt,{className:"w-8 h-8 text-white"})}),(0,Ae.jsxs)("div",{className:"flex-1",children:[(0,Ae.jsxs)("h2",{className:"text-2xl font-bold text-white mb-2 flex items-center gap-2",children:["Built with Taskade Genesis",(0,Ae.jsx)("span",{className:"text-sm font-normal text-purple-400",children:"\xA9 2025"})]}),(0,Ae.jsxs)("p",{className:"text-slate-300 mb-4",children:["This application is proudly built using ",(0,Ae.jsx)("strong",{children:"Taskade Genesis"}),", the revolutionary AI-first platform that transforms ideas into fully functional applications through natural language conversation."]}),(0,Ae.jsxs)("div",{className:"flex flex-wrap gap-3",children:[(0,Ae.jsxs)("a",{href:"https://www.taskade.com",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 px-4 py-2 rounded-lg bg-white/10 hover:bg-white/20 transition-colors text-white text-sm",children:[(0,Ae.jsx)(ia,{className:"w-4 h-4"}),"Visit Taskade",(0,Ae.jsx)(jn,{className:"w-3 h-3"})]}),(0,Ae.jsxs)("a",{href:"https://www.taskade.com/genesis",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 px-4 py-2 rounded-lg bg-white/10 hover:bg-white/20 transition-colors text-white text-sm",children:[(0,Ae.jsx)(et,{className:"w-4 h-4"}),"Explore Genesis",(0,Ae.jsx)(jn,{className:"w-3 h-3"})]})]})]})]})}),(0,Ae.jsx)(G.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"rounded-2xl backdrop-blur-xl bg-white/5 border border-white/10 p-8",children:(0,Ae.jsxs)("div",{className:"flex items-start gap-6",children:[(0,Ae.jsx)("div",{className:"flex-shrink-0 w-16 h-16 rounded-2xl bg-gradient-to-br from-amber-500 to-orange-500 flex items-center justify-center",children:(0,Ae.jsx)(ju,{className:"w-8 h-8 text-white"})}),(0,Ae.jsxs)("div",{className:"flex-1",children:[(0,Ae.jsx)("h2",{className:"text-2xl font-bold text-white mb-2",children:"Sponsored by Grey Sage"}),(0,Ae.jsxs)("p",{className:"text-slate-300 mb-4",children:["This application is ",(0,Ae.jsx)("strong",{children:"sponsored by Grey Sage"}),", supporting innovation in API and webhook management solutions. Grey Sage is committed to advancing secure API integration technologies and fostering innovation in automation and connectivity."]}),(0,Ae.jsxs)("div",{className:"flex items-center gap-2 text-sm text-slate-400",children:[(0,Ae.jsx)(o0,{className:"w-4 h-4"}
252),(0,Ae.jsx)("span",{children:"Thank you for supporting open innovation"})]})]})]})}),(0,Ae.jsxs)(G.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3},className:"space-y-6",children:[(0,Ae.jsx)("h2",{className:"text-2xl font-bold text-white",children:"Architecture"}),(0,Ae.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:e.map((r,a)=>{let n=r.icon;return(0,Ae.jsxs)(G.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.4+a*.1},className:"rounded-xl backdrop-blur-xl bg-white/5 border border-white/10 p-6 hover:border-white/20 transition-colors",children:[(0,Ae.jsx)("div",{className:`w-12 h-12 rounded-lg bg-gradient-to-br ${r.color} flex items-center justify-center mb-4`,children:(0,Ae.jsx)(n,{className:"w-6 h-6 text-white"})}),(0,Ae.jsx)("h3",{className:"text-lg font-semibold text-white mb-2",children:r.title}),(0,Ae.jsx)("p",{className:"text-sm text-slate-400",children:r.description})]},r.title)})})]}),(0,Ae.jsxs)(G.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.7},className:"space-y-6",children:[(0,Ae.jsx)("h2",{className:"text-2xl font-bold text-white",children:"Technology Stack"}),(0,Ae.jsx)("div",{className:"rounded-xl backdrop-blur-xl bg-white/5 border border-white/10 p-6",children:(0,Ae.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:t.map((r,a)=>(0,Ae.jsxs)("div",{className:"flex items-start gap-3 p-3 rounded-lg bg-white/5 hover:bg-white/10 transition-colors",children:[(0,Ae.jsx)("div",{className:"w-2 h-2 rounded-full bg-purple-500 mt-2"}),(0,Ae.jsxs)("div",{children:[(0,Ae.jsx)("div",{className:"font-medium text-white",children:r.name}),(0,Ae.jsx)("div",{className:"text-sm text-slate-400",children:r.description})]})]},r.name))})})]}),(0,Ae.jsxs)(G.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.8},className:"rounded-xl backdrop-blur-xl bg-white/5 border border-white/10 p-8",children:[(0,Ae.jsx)("h2",{className:"text-2xl font-bold text-white mb-6",children:"Resources & Links"}),(0,Ae.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[(0,Ae.jsxs)("div",{className:"space-y-3",children:[(0,Ae.jsx)("h3",{className:"font-semibold text-white mb-3",children:"Taskade Platform"}),(0,Ae.jsxs)("a",{href:"https://www.taskade.com",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 text-slate-300 hover:text-white transition-colors",children:[(0,Ae.jsx)(ia,{className:"w-4 h-4"}),"Taskade Website",(0,Ae.jsx)(jn,{className:"w-3 h-3"})]}),(0,Ae.jsxs)("a",{href:"https://help.taskade.com",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 text-slate-300 hover:text-white transition-colors",children:[(0,Ae.jsx)(jr,{className:"w-4 h-4"}),"Help Center",(0,Ae.jsx)(jn,{className:"w-3 h-3"})]}),(0,Ae.jsxs)("a",{href:"https://community.taskade.com",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 text-slate-300 hover:text-white transition-colors",children:[(0,Ae.jsx)(ml,{className:"w-4 h-4"}),"Community Forum",(0,Ae.jsx)(jn,{className:"w-3 h-3"})]})]}),(0,Ae.jsxs)("div",{className:"space-y-3",children:[(0,Ae.jsx)("h3",{className:"font-semibold text-white mb-3",children:"Contact & Support"}),(0,Ae.jsxs)("a",{href:"mailto:[email protected]",className:"flex items-center gap-2 text-slate-300 hover:text-white transition-colors",children:[(0,Ae.jsx)(ul,{className:"w-4 h-4"}),"[email protected]"]}),(0,Ae.jsxs)("a",{href:"https://twitter.com/taskade",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 text-slate-300 hover:text-white transition-colors",children:[(0,Ae.jsx)(g0,{className:"w-4 h-4"}),"@taskade",(0,Ae.jsx)(jn,{className:"w-3 h-3"})]})]})]})]}),(0,Ae.jsxs)(G.div,{initial:{opacity:0}
vendor: 8,721 bytes, lines 252-453
252,animate:{opacity:1},transition:{delay:.9},className:"text-center py-8 border-t border-white/10",children:[(0,Ae.jsx)("p",{className:"text-slate-400 mb-2",children:"Built with \u2728 using Taskade Genesis \xA9 2025"}),(0,Ae.jsx)("p",{className:"text-slate-500 text-sm",children:"Sponsored by Grey Sage \u2022 Transforming ideas into intelligent applications"})]})]})})},iae=rVe;var Xe=R(ke());function aVe(){return(0,Xe.jsxs)($_,{attribute:"class",defaultTheme:"dark",children:[(0,Xe.jsx)(H_,{children:(0,Xe.jsxs)(DI,{children:[(0,Xe.jsx)($t,{path:"/",element:(0,Xe.jsx)(RI,{to:"/dashboard",replace:!0})}),(0,Xe.jsx)($t,{path:"/dashboard",element:(0,Xe.jsx)(fq,{})}),(0,Xe.jsx)($t,{path:"/connections",element:(0,Xe.jsx)(pq,{})}),(0,Xe.jsx)($t,{path:"/events",element:(0,Xe.jsx)(mq,{})}),(0,Xe.jsx)($t,{path:"/credentials",element:(0,Xe.jsx)(hq,{})}),(0,Xe.jsx)($t,{path:"/templates",element:(0,Xe.jsx)(yq,{})}),(0,Xe.jsx)($t,{path:"/security",element:(0,Xe.jsx)(bq,{})}),(0,Xe.jsx)($t,{path:"/api-endpoints",element:(0,Xe.jsx)(Cq,{})}),(0,Xe.jsx)($t,{path:"/api-logs",element:(0,Xe.jsx)(kq,{})}),(0,Xe.jsx)($t,{path:"/playground",element:(0,Xe.jsx)(_re,{})}),(0,Xe.jsx)($t,{path:"/monitoring",element:(0,Xe.jsx)(Fre,{})}),(0,Xe.jsx)($t,{path:"/retry-simulator",element:(0,Xe.jsx)(Hre,{})}),(0,Xe.jsx)($t,{path:"/advanced-tools",element:(0,Xe.jsx)(Wre,{})}),(0,Xe.jsx)($t,{path:"/analytics",element:(0,Xe.jsx)(Kre,{})}),(0,Xe.jsx)($t,{path:"/theme",element:(0,Xe.jsx)(Yre,{})}),(0,Xe.jsx)($t,{path:"/setup",element:(0,Xe.jsx)(Sq,{})}),(0,Xe.jsx)($t,{path:"/guides/google-drive",element:(0,Xe.jsx)(Zre,{})}),(0,Xe.jsx)($t,{path:"/rate-limits",element:(0,Xe.jsx)(Qre,{})}),(0,Xe.jsx)($t,{path:"/rate-limit-templates",element:(0,Xe.jsx)(eae,{})}),(0,Xe.jsx)($t,{path:"/agent-console",element:(0,Xe.jsx)(aae,{})}),(0,Xe.jsx)($t,{path:"/bulk-import",element:(0,Xe.jsx)(nae,{})}),(0,Xe.jsx)($t,{path:"/integrations",element:(0,Xe.jsx)(oae,{})}),(0,Xe.jsx)($t,{path:"/about",element:(0,Xe.jsx)(iae,{})})]})}),(0,Xe.jsx)(J_,{position:"top-right",richColors:!0})]})}var sae=aVe;var OO=R(ke()),lae=document.getElementById("root");lae&&(0,uae.createRoot)(lae).render((0,OO.jsx)(cae.StrictMode,{children:(0,OO.jsx)(sae,{})})); 253/*! Bundled license information: 254 255react/cjs/react.production.min.js: 256 (** 257 * @license React 258 * react.production.min.js 259 * 260 * Copyright (c) Facebook, Inc. and its affiliates. 261 * 262 * This source code is licensed under the MIT license found in the 263 * LICENSE file in the root directory of this source tree. 264 *) 265 266scheduler/cjs/scheduler.production.min.js: 267 (** 268 * @license React 269 * scheduler.production.min.js 270 * 271 * Copyright (c) Facebook, Inc. and its affiliates. 272 * 273 * This source code is licensed under the MIT license found in the 274 * LICENSE file in the root directory of this source tree. 275 *) 276 277react-dom/cjs/react-dom.production.min.js: 278 (** 279 * @license React 280 * react-dom.production.min.js 281 * 282 * Copyright (c) Facebook, Inc. and its affiliates. 283 * 284 * This source code is licensed under the MIT license found in the 285 * LICENSE file in the root directory of this source tree. 286 *) 287 288react/cjs/react-jsx-runtime.production.min.js: 289 (** 290 * @license React 291 * react-jsx-runtime.production.min.js 292 * 293 * Copyright (c) Facebook, Inc. and its affiliates. 294 * 295 * This source code is licensed under the MIT license found in the 296 * LICENSE file in the root directory of this source tree. 297 *) 298 299use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js: 300 (** 301 * @license React 302 * use-sync-external-store-with-selector.production.js 303 * 304 * Copyright (c) Meta Platforms, Inc. and affiliates. 305 * 306 * This source code is licensed under the MIT license found in the 307 * LICENSE file in the root directory of this source tree. 308 *) 309 310use-sync-external-store/cjs/use-sync-external-store-shim.production.js: 311 (** 312 * @license React 313 * use-sync-external-store-shim.production.js 314 * 315 * Copyright (c) Meta Platforms, Inc. and affiliates. 316 * 317 * This source code is licensed under the MIT license found in the 318 * LICENSE file in the root directory of this source tree. 319 *) 320 321use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js: 322 (** 323 * @license React 324 * use-sync-external-store-shim/with-selector.production.js 325 * 326 * Copyright (c) Meta Platforms, Inc. and affiliates. 327 * 328 * This source code is licensed under the MIT license found in the 329 * LICENSE file in the root directory of this source tree. 330 *) 331 332react-is/cjs/react-is.production.min.js: 333 (** 334 * @license React 335 * react-is.production.min.js 336 * 337 * Copyright (c) Facebook, Inc. and its affiliates. 338 * 339 * This source code is licensed under the MIT license found in the 340 * LICENSE file in the root directory of this source tree. 341 *) 342 343decimal.js-light/decimal.js: 344 (*! decimal.js-light v2.5.1 https://github.com/MikeMcl/decimal.js-light/LICENCE *) 345 346@remix-run/router/dist/router.js: 347 (** 348 * @remix-run/router v1.23.0 349 * 350 * Copyright (c) Remix Software Inc. 351 * 352 * This source code is licensed under the MIT license found in the 353 * LICENSE.md file in the root directory of this source tree. 354 * 355 * @license MIT 356 *) 357 358react-router/dist/index.js: 359 (** 360 * React Router v6.30.1 361 * 362 * Copyright (c) Remix Software Inc. 363 * 364 * This source code is licensed under the MIT license found in the 365 * LICENSE.md file in the root directory of this source tree. 366 * 367 * @license MIT 368 *) 369 370react-router-dom/dist/index.js: 371 (** 372 * React Router DOM v6.30.1 373 * 374 * Copyright (c) Remix Software Inc. 375 * 376 * This source code is licensed under the MIT license found in the 377 * LICENSE.md file in the root directory of this source tree. 378 * 379 * @license MIT 380 *) 381 382lucide-react/dist/esm/shared/src/utils.js: 383lucide-react/dist/esm/defaultAttributes.js: 384lucide-react/dist/esm/Icon.js: 385lucide-react/dist/esm/createLucideIcon.js: 386lucide-react/dist/esm/icons/activity.js: 387lucide-react/dist/esm/icons/arrow-right.js: 388lucide-react/dist/esm/icons/award.js: 389lucide-react/dist/esm/icons/bell.js: 390lucide-react/dist/esm/icons/book-open.js: 391lucide-react/dist/esm/icons/bot.js: 392lucide-react/dist/esm/icons/calendar.js: 393lucide-react/dist/esm/icons/chart-column.js: 394lucide-react/dist/esm/icons/check.js: 395lucide-react/dist/esm/icons/chevron-down.js: 396lucide-react/dist/esm/icons/chevron-left.js: 397lucide-react/dist/esm/icons/chevron-right.js: 398lucide-react/dist/esm/icons/circle-alert.js: 399lucide-react/dist/esm/icons/circle-check-big.js: 400lucide-react/dist/esm/icons/circle-check.js: 401lucide-react/dist/esm/icons/circle-x.js: 402lucide-react/dist/esm/icons/clock.js: 403lucide-react/dist/esm/icons/cloud.js: 404lucide-react/dist/esm/icons/code.js: 405lucide-react/dist/esm/icons/copy.js: 406lucide-react/dist/esm/icons/database.js: 407lucide-react/dist/esm/icons/dollar-sign.js: 408lucide-react/dist/esm/icons/download.js: 409lucide-react/dist/esm/icons/external-link.js: 410lucide-react/dist/esm/icons/eye-off.js: 411lucide-react/dist/esm/icons/eye.js: 412lucide-react/dist/esm/icons/file-text.js: 413lucide-react/dist/esm/icons/funnel.js: 414lucide-react/dist/esm/icons/gauge.js: 415lucide-react/dist/esm/icons/globe.js: 416lucide-react/dist/esm/icons/grid-3x3.js: 417lucide-react/dist/esm/icons/grip-vertical.js: 418lucide-react/dist/esm/icons/heart.js: 419lucide-react/dist/esm/icons/info.js: 420lucide-react/dist/esm/icons/key.js: 421lucide-react/dist/esm/icons/layers.js: 422lucide-react/dist/esm/icons/layout-dashboard.js: 423lucide-react/dist/esm/icons/link-2.js: 424lucide-react/dist/esm/icons/link.js: 425lucide-react/dist/esm/icons/loader-circle.js: 426lucide-react/dist/esm/icons/lock.js: 427lucide-react/dist/esm/icons/lock-open.js: 428lucide-react/dist/esm/icons/mail.js: 429lucide-react/dist/esm/icons/menu.js: 430lucide-react/dist/esm/icons/message-circle.js: 431lucide-react/dist/esm/icons/message-square.js: 432lucide-react/dist/esm/icons/monitor.js: 433lucide-react/dist/esm/icons/moon.js: 434lucide-react/dist/esm/icons/mouse-pointer.js: 435lucide-react/dist/esm/icons/palette.js: 436lucide-react/dist/esm/icons/pause.js: 437lucide-react/dist/esm/icons/pen.js: 438lucide-react/dist/esm/icons/play.js: 439lucide-react/dist/esm/icons/plus.js: 440lucide-react/dist/esm/icons/power-off.js: 441lucide-react/dist/esm/icons/power.js: 442lucide-react/dist/esm/icons/refresh-cw.js: 443lucide-react/dist/esm/icons/rocket.js: 444lucide-react/dist/esm/icons/rotate-cw.js: 445lucide-react/dist/esm/icons/save.js: 446lucide-react/dist/esm/icons/search.js: 447lucide-react/dist/esm/icons/send.js: 448lucide-react/dist/esm/icons/server.js: 449lucide-react/dist/esm/icons/settings.js: 450lucide-react/dist/esm/icons/shield.js: 451lucide-react/dist/esm/icons/sparkles.js: 452lucide-react/dist/esm/icons/square-pen.js: 453lucide-react/dist/esm/icons/star.js:
454lucide-react/dist/esm/icons/sun.js: 455lucide-react/dist/esm/icons/test-tube.js: 456lucide-react/dist/esm/icons/timer.js: 457lucide-react/dist/esm/icons/trash-2.js: 458lucide-react/dist/esm/icons/trending-up.js: 459lucide-react/dist/esm/icons/triangle-alert.js: 460lucide-react/dist/esm/icons/twitter.js: 461lucide-react/dist/esm/icons/upload.js: 462lucide-react/dist/esm/icons/user.js: 463lucide-react/dist/esm/icons/users.js: 464lucide-react/dist/esm/icons/webhook.js: 465lucide-react/dist/esm/icons/workflow.js: 466lucide-react/dist/esm/icons/wrench.js: 467lucide-react/dist/esm/icons/x.js: 468lucide-react/dist/esm/icons/zap.js: 469lucide-react/dist/esm/lucide-react.js: 470 (** 471 * @license lucide-react v0.542.0 - ISC 472 * 473 * This source code is licensed under the ISC license. 474 * See the LICENSE file in the root directory of this source tree. 475 *) 476*/
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.