(function(re){typeof define=="function"&&define.amd?define(re):re()})(function(){"use strict";var qN=Object.defineProperty,QN=Object.defineProperties;var ZN=Object.getOwnPropertyDescriptors;var wc=Object.getOwnPropertySymbols;var Kk=Object.prototype.hasOwnProperty,Hk=Object.prototype.propertyIsEnumerable;var Gm=(re,ie)=>(ie=Symbol[re])?ie:Symbol.for("Symbol."+re),JN=re=>{throw TypeError(re)},qm=Math.pow,Xm=(re,ie,xe)=>ie in re?qN(re,ie,{enumerable:!0,configurable:!0,writable:!0,value:xe}):re[ie]=xe,k=(re,ie)=>{for(var xe in ie||(ie={}))Kk.call(ie,xe)&&Xm(re,xe,ie[xe]);if(wc)for(var xe of wc(ie))Hk.call(ie,xe)&&Xm(re,xe,ie[xe]);return re},V=(re,ie)=>QN(re,ZN(ie));var se=(re,ie)=>{var xe={};for(var ze in re)Kk.call(re,ze)&&ie.indexOf(ze)<0&&(xe[ze]=re[ze]);if(re!=null&&wc)for(var ze of wc(re))ie.indexOf(ze)<0&&Hk.call(re,ze)&&(xe[ze]=re[ze]);return xe};var Q=(re,ie,xe)=>Xm(re,typeof ie!="symbol"?ie+"":ie,xe);var e8=function(re,ie){this[0]=re,this[1]=ie};var Rs=re=>{var ie=re[Gm("asyncIterator")],xe=!1,ze,J={};return ie==null?(ie=re[Gm("iterator")](),ze=mt=>J[mt]=Bi=>ie[mt](Bi)):(ie=ie.call(re),ze=mt=>J[mt]=Bi=>{if(xe){if(xe=!1,mt==="throw")throw Bi;return Bi}return xe=!0,{done:!1,value:new e8(new Promise(Sc=>{var Ma=ie[mt](Bi);Ma instanceof Object||JN("Object expected"),Sc(Ma)}),1)}}),J[Gm("iterator")]=()=>J,ze("next"),"throw"in ie?ze("throw"):J.throw=mt=>{throw mt},"return"in ie&&ze("return"),J};var yc,Ii;function re(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ie={exports:{}},xe={},ze={exports:{}},J={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var mt=Symbol.for("react.element"),Bi=Symbol.for("react.portal"),Sc=Symbol.for("react.fragment"),Ma=Symbol.for("react.strict_mode"),Wk=Symbol.for("react.profiler"),Uk=Symbol.for("react.provider"),Yk=Symbol.for("react.context"),Gk=Symbol.for("react.forward_ref"),Xk=Symbol.for("react.suspense"),qk=Symbol.for("react.memo"),Qk=Symbol.for("react.lazy"),Qm=Symbol.iterator;function Zk(t){return t===null||typeof t!="object"?null:(t=Qm&&t[Qm]||t["@@iterator"],typeof t=="function"?t:null)}var Zm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Jm=Object.assign,eg={};function $r(t,e,n){this.props=t,this.context=e,this.refs=eg,this.updater=n||Zm}$r.prototype.isReactComponent={},$r.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=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,t,e,"setState")},$r.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function tg(){}tg.prototype=$r.prototype;function Pc(t,e,n){this.props=t,this.context=e,this.refs=eg,this.updater=n||Zm}var kc=Pc.prototype=new tg;kc.constructor=Pc,Jm(kc,$r.prototype),kc.isPureReactComponent=!0;var ng=Array.isArray,ig=Object.prototype.hasOwnProperty,Cc={current:null},rg={key:!0,ref:!0,__self:!0,__source:!0};function sg(t,e,n){var i,r={},s=null,o=null;if(e!=null)for(i in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(s=""+e.key),e)ig.call(e,i)&&!rg.hasOwnProperty(i)&&(r[i]=e[i]);var a=arguments.length-2;if(a===1)r.children=n;else if(1>>1,K=E[I];if(0>>1;Ir(ne,H))fer(Qe,ne)?(E[I]=Qe,E[fe]=H,I=fe):(E[I]=ne,E[ee]=H,I=ee);else if(fer(Qe,H))E[I]=Qe,E[fe]=H,I=fe;else break e}}return z}function r(E,z){var H=E.sortIndex-z.sortIndex;return H!==0?H:E.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();t.unstable_now=function(){return o.now()-a}}var l=[],u=[],c=1,d=null,f=3,h=!1,m=!1,y=!1,x=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(E){for(var z=n(u);z!==null;){if(z.callback===null)i(u);else if(z.startTime<=E)i(u),z.sortIndex=z.expirationTime,e(l,z);else break;z=n(u)}}function S(E){if(y=!1,b(E),!m)if(n(l)!==null)m=!0,N(w);else{var z=n(u);z!==null&&B(S,z.startTime-E)}}function w(E,z){m=!1,y&&(y=!1,p(T),T=-1),h=!0;var H=f;try{for(b(z),d=n(l);d!==null&&(!(d.expirationTime>z)||E&&!j());){var I=d.callback;if(typeof I=="function"){d.callback=null,f=d.priorityLevel;var K=I(d.expirationTime<=z);z=t.unstable_now(),typeof K=="function"?d.callback=K:d===n(l)&&i(l),b(z)}else i(l);d=n(l)}if(d!==null)var Z=!0;else{var ee=n(u);ee!==null&&B(S,ee.startTime-z),Z=!1}return Z}finally{d=null,f=H,h=!1}}var C=!1,L=null,T=-1,P=5,M=-1;function j(){return!(t.unstable_now()-ME||125I?(E.sortIndex=H,e(u,E),n(l)===null&&E===n(u)&&(y?(p(T),T=-1):y=!0,B(S,H-I))):(E.sortIndex=K,e(l,E),m||h||(m=!0,N(w))),E},t.unstable_shouldYield=j,t.unstable_wrapCallback=function(E){var z=f;return function(){var H=f;f=z;try{return E.apply(this,arguments)}finally{f=H}}}})(dg),cg.exports=dg;var uC=cg.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var cC=_,Et=uC;function W(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;ne}return!1}function lt(t,e,n,i,r,s,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=i,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=s,this.removeEmptyString=o}var Ue={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){Ue[t]=new lt(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];Ue[e]=new lt(e,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){Ue[t]=new lt(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Ue[t]=new lt(t,2,!1,t,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(t){Ue[t]=new lt(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){Ue[t]=new lt(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){Ue[t]=new lt(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){Ue[t]=new lt(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){Ue[t]=new lt(t,5,!1,t.toLowerCase(),null,!1,!1)});var Dc=/[\-:]([a-z])/g;function Ac(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(Dc,Ac);Ue[e]=new lt(e,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(Dc,Ac);Ue[e]=new lt(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(Dc,Ac);Ue[e]=new lt(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){Ue[t]=new lt(t,1,!1,t.toLowerCase(),null,!1,!1)}),Ue.xlinkHref=new lt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){Ue[t]=new lt(t,1,!1,t.toLowerCase(),null,!0,!0)});function Lc(t,e,n,i){var r=Ue.hasOwnProperty(e)?Ue[e]:null;(r!==null?r.type!==0:i||!(2a||r[o]!==s[a]){var l=` `+r[o].replace(" at new "," at ");return t.displayName&&l.includes("")&&(l=l.replace("",t.displayName)),l}while(1<=o&&0<=a);break}}}finally{zc=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?js(t):""}function mC(t){switch(t.tag){case 5:return js(t.type);case 16:return js("Lazy");case 13:return js("Suspense");case 19:return js("SuspenseList");case 0:case 2:case 15:return t=Bc(t.type,!1),t;case 11:return t=Bc(t.type.render,!1),t;case 1:return t=Bc(t.type,!0),t;default:return""}}function Kc(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Dr:return"Fragment";case Mr:return"Portal";case Fc:return"Profiler";case Rc:return"StrictMode";case jc:return"Suspense";case Ic:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case gg:return(t.displayName||"Context")+".Consumer";case mg:return(t._context.displayName||"Context")+".Provider";case Nc:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Oc:return e=t.displayName||null,e!==null?e:Kc(t.type)||"Memo";case ii:e=t._payload,t=t._init;try{return Kc(t(e))}catch(n){}}return null}function gC(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Kc(e);case 8:return e===Rc?"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 e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function ri(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function bg(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function yC(t){var e=bg(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),i=""+t[e];if(!t.hasOwnProperty(e)&&typeof n!="undefined"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,s=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return r.call(this)},set:function(o){i=""+o,s.call(this,o)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(o){i=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Fa(t){t._valueTracker||(t._valueTracker=yC(t))}function xg(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),i="";return t&&(i=bg(t)?t.checked?"true":"false":t.value),t=i,t!==n?(e.setValue(t),!0):!1}function Na(t){if(t=t||(typeof document!="undefined"?document:void 0),typeof t=="undefined")return null;try{return t.activeElement||t.body}catch(e){return t.body}}function Hc(t,e){var n=e.checked;return Ce({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:t._wrapperState.initialChecked})}function _g(t,e){var n=e.defaultValue==null?"":e.defaultValue,i=e.checked!=null?e.checked:e.defaultChecked;n=ri(e.value!=null?e.value:n),t._wrapperState={initialChecked:i,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function wg(t,e){e=e.checked,e!=null&&Lc(t,"checked",e,!1)}function Wc(t,e){wg(t,e);var n=ri(e.value),i=e.type;if(n!=null)i==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(i==="submit"||i==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?Uc(t,e.type,n):e.hasOwnProperty("defaultValue")&&Uc(t,e.type,ri(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function Sg(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var i=e.type;if(!(i!=="submit"&&i!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function Uc(t,e,n){(e!=="number"||Na(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var Is=Array.isArray;function Ar(t,e,n,i){if(t=t.options,e){e={};for(var r=0;r"+e.valueOf().toString()+"",e=ja.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Os(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Vs={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},vC=["Webkit","ms","Moz","O"];Object.keys(Vs).forEach(function(t){vC.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Vs[e]=Vs[t]})});function Eg(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||Vs.hasOwnProperty(t)&&Vs[t]?(""+e).trim():e+"px"}function Mg(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var i=n.indexOf("--")===0,r=Eg(n,e[n],i);n==="float"&&(n="cssFloat"),i?t.setProperty(n,r):t[n]=r}}var bC=Ce({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 Xc(t,e){if(e){if(bC[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(W(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(W(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(W(61))}if(e.style!=null&&typeof e.style!="object")throw Error(W(62))}}function qc(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){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 Qc=null;function Zc(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Jc=null,Lr=null,Rr=null;function Dg(t){if(t=lo(t)){if(typeof Jc!="function")throw Error(W(280));var e=t.stateNode;e&&(e=ol(e),Jc(t.stateNode,t.type,e))}}function Ag(t){Lr?Rr?Rr.push(t):Rr=[t]:Lr=t}function Lg(){if(Lr){var t=Lr,e=Rr;if(Rr=Lr=null,Dg(t),e)for(t=0;t>>=0,t===0?32:31-(MC(t)/DC|0)|0}var Ba=64,Ka=4194304;function Hs(t){switch(t&-t){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 t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function Ha(t,e){var n=t.pendingLanes;if(n===0)return 0;var i=0,r=t.suspendedLanes,s=t.pingedLanes,o=n&268435455;if(o!==0){var a=o&~r;a!==0?i=Hs(a):(s&=o,s!==0&&(i=Hs(s)))}else o=n&~r,o!==0?i=Hs(o):s!==0&&(i=Hs(s));if(i===0)return 0;if(e!==0&&e!==i&&!(e&r)&&(r=i&-i,s=e&-e,r>=s||r===16&&(s&4194240)!==0))return e;if(i&4&&(i|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=i;0n;n++)e.push(t);return e}function Ws(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-nn(e),t[e]=n}function FC(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var i=t.eventTimes;for(t=t.expirationTimes;0=Js),ay=" ",ly=!1;function uy(t,e){switch(t){case"keyup":return uT.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cy(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var jr=!1;function dT(t,e){switch(t){case"compositionend":return cy(e);case"keypress":return e.which!==32?null:(ly=!0,ay);case"textInput":return t=e.data,t===ay&&ly?null:t;default:return null}}function fT(t,e){if(jr)return t==="compositionend"||!yd&&uy(t,e)?(t=ty(),Xa=dd=ui=null,jr=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:n,offset:e-t};t=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=yy(n)}}function by(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?by(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function xy(){for(var t=window,e=Na();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch(i){n=!1}if(n)t=e.contentWindow;else break;e=Na(t.document)}return e}function xd(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function _T(t){var e=xy(),n=t.focusedElem,i=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&by(n.ownerDocument.documentElement,n)){if(i!==null&&xd(n)){if(e=i.start,t=i.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var r=n.textContent.length,s=Math.min(i.start,r);i=i.end===void 0?s:Math.min(i.end,r),!t.extend&&s>i&&(r=i,i=s,s=r),r=vy(n,s);var o=vy(n,i);r&&o&&(t.rangeCount!==1||t.anchorNode!==r.node||t.anchorOffset!==r.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(r.node,r.offset),t.removeAllRanges(),s>i?(t.addRange(e),t.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Ir=null,_d=null,io=null,wd=!1;function _y(t,e,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;wd||Ir==null||Ir!==Na(i)||(i=Ir,"selectionStart"in i&&xd(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),io&&no(io,i)||(io=i,i=il(_d,"onSelect"),0Kr||(t.current=Rd[Kr],Rd[Kr]=null,Kr--)}function be(t,e){Kr++,Rd[Kr]=t.current,t.current=e}var hi={},Je=fi(hi),gt=fi(!1),Ui=hi;function Hr(t,e){var n=t.type.contextTypes;if(!n)return hi;var i=t.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===e)return i.__reactInternalMemoizedMaskedChildContext;var r={},s;for(s in n)r[s]=e[s];return i&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=r),r}function yt(t){return t=t.childContextTypes,t!=null}function al(){we(gt),we(Je)}function Ny(t,e,n){if(Je.current!==hi)throw Error(W(168));be(Je,e),be(gt,n)}function jy(t,e,n){var i=t.stateNode;if(e=e.childContextTypes,typeof i.getChildContext!="function")return n;i=i.getChildContext();for(var r in i)if(!(r in e))throw Error(W(108,gC(t)||"Unknown",r));return Ce({},n,i)}function ll(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||hi,Ui=Je.current,be(Je,t),be(gt,gt.current),!0}function Iy(t,e,n){var i=t.stateNode;if(!i)throw Error(W(169));n?(t=jy(t,e,Ui),i.__reactInternalMemoizedMergedChildContext=t,we(gt),we(Je),be(Je,t)):we(gt),be(gt,n)}var Ln=null,ul=!1,Fd=!1;function Oy(t){Ln===null?Ln=[t]:Ln.push(t)}function LT(t){ul=!0,Oy(t)}function pi(){if(!Fd&&Ln!==null){Fd=!0;var t=0,e=ge;try{var n=Ln;for(ge=1;t>=o,r-=o,Rn=1<<32-nn(e)+r|n<T?(P=L,L=null):P=L.sibling;var M=f(p,L,b[T],S);if(M===null){L===null&&(L=P);break}t&&L&&M.alternate===null&&e(p,L),g=s(M,g,T),C===null?w=M:C.sibling=M,C=M,L=P}if(T===b.length)return n(p,L),Pe&&Gi(p,T),w;if(L===null){for(;TT?(P=L,L=null):P=L.sibling;var j=f(p,L,M.value,S);if(j===null){L===null&&(L=P);break}t&&L&&j.alternate===null&&e(p,L),g=s(j,g,T),C===null?w=j:C.sibling=j,C=j,L=P}if(M.done)return n(p,L),Pe&&Gi(p,T),w;if(L===null){for(;!M.done;T++,M=b.next())M=d(p,M.value,S),M!==null&&(g=s(M,g,T),C===null?w=M:C.sibling=M,C=M);return Pe&&Gi(p,T),w}for(L=i(p,L);!M.done;T++,M=b.next())M=h(L,p,T,M.value,S),M!==null&&(t&&M.alternate!==null&&L.delete(M.key===null?T:M.key),g=s(M,g,T),C===null?w=M:C.sibling=M,C=M);return t&&L.forEach(function($){return e(p,$)}),Pe&&Gi(p,T),w}function x(p,g,b,S){if(typeof b=="object"&&b!==null&&b.type===Dr&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Ra:e:{for(var w=b.key,C=g;C!==null;){if(C.key===w){if(w=b.type,w===Dr){if(C.tag===7){n(p,C.sibling),g=r(C,b.props.children),g.return=p,p=g;break e}}else if(C.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===ii&&Wy(w)===C.type){n(p,C.sibling),g=r(C,b.props),g.ref=uo(p,C,b),g.return=p,p=g;break e}n(p,C);break}else e(p,C);C=C.sibling}b.type===Dr?(g=nr(b.props.children,p.mode,S,b.key),g.return=p,p=g):(S=jl(b.type,b.key,b.props,null,p.mode,S),S.ref=uo(p,g,b),S.return=p,p=S)}return o(p);case Mr:e:{for(C=b.key;g!==null;){if(g.key===C)if(g.tag===4&&g.stateNode.containerInfo===b.containerInfo&&g.stateNode.implementation===b.implementation){n(p,g.sibling),g=r(g,b.children||[]),g.return=p,p=g;break e}else{n(p,g);break}else e(p,g);g=g.sibling}g=Lf(b,p.mode,S),g.return=p,p=g}return o(p);case ii:return C=b._init,x(p,g,C(b._payload),S)}if(Is(b))return m(p,g,b,S);if(Ns(b))return y(p,g,b,S);hl(p,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,g!==null&&g.tag===6?(n(p,g.sibling),g=r(g,b),g.return=p,p=g):(n(p,g),g=Af(b,p.mode,S),g.return=p,p=g),o(p)):n(p,g)}return x}var Gr=Uy(!0),Yy=Uy(!1),pl=fi(null),ml=null,Xr=null,zd=null;function Bd(){zd=Xr=ml=null}function Kd(t){var e=pl.current;we(pl),t._currentValue=e}function Hd(t,e,n){for(;t!==null;){var i=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,i!==null&&(i.childLanes|=e)):i!==null&&(i.childLanes&e)!==e&&(i.childLanes|=e),t===n)break;t=t.return}}function qr(t,e){ml=t,zd=Xr=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(vt=!0),t.firstContext=null)}function Ht(t){var e=t._currentValue;if(zd!==t)if(t={context:t,memoizedValue:e,next:null},Xr===null){if(ml===null)throw Error(W(308));Xr=t,ml.dependencies={lanes:0,firstContext:t}}else Xr=Xr.next=t;return e}var Xi=null;function Wd(t){Xi===null?Xi=[t]:Xi.push(t)}function Gy(t,e,n,i){var r=e.interleaved;return r===null?(n.next=n,Wd(e)):(n.next=r.next,r.next=n),e.interleaved=n,Nn(t,i)}function Nn(t,e){t.lanes|=e;var n=t.alternate;for(n!==null&&(n.lanes|=e),n=t,t=t.return;t!==null;)t.childLanes|=e,n=t.alternate,n!==null&&(n.childLanes|=e),n=t,t=t.return;return n.tag===3?n.stateNode:null}var mi=!1;function Ud(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Xy(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function jn(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function gi(t,e,n){var i=t.updateQueue;if(i===null)return null;if(i=i.shared,oe&2){var r=i.pending;return r===null?e.next=e:(e.next=r.next,r.next=e),i.pending=e,Nn(t,n)}return r=i.interleaved,r===null?(e.next=e,Wd(i)):(e.next=r.next,r.next=e),i.interleaved=e,Nn(t,n)}function gl(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194240)!==0)){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,od(t,n)}}function qy(t,e){var n=t.updateQueue,i=t.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var r=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?r=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?r=s=e:s=s.next=e}else r=s=e;n={baseState:i.baseState,firstBaseUpdate:r,lastBaseUpdate:s,shared:i.shared,effects:i.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function yl(t,e,n,i){var r=t.updateQueue;mi=!1;var s=r.firstBaseUpdate,o=r.lastBaseUpdate,a=r.shared.pending;if(a!==null){r.shared.pending=null;var l=a,u=l.next;l.next=null,o===null?s=u:o.next=u,o=l;var c=t.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==o&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(s!==null){var d=r.baseState;o=0,c=u=l=null,a=s;do{var f=a.lane,h=a.eventTime;if((i&f)===f){c!==null&&(c=c.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var m=t,y=a;switch(f=e,h=n,y.tag){case 1:if(m=y.payload,typeof m=="function"){d=m.call(h,d,f);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=y.payload,f=typeof m=="function"?m.call(h,d,f):m,f==null)break e;d=Ce({},d,f);break e;case 2:mi=!0}}a.callback!==null&&a.lane!==0&&(t.flags|=64,f=r.effects,f===null?r.effects=[a]:f.push(a))}else h={eventTime:h,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=h,l=d):c=c.next=h,o|=f;if(a=a.next,a===null){if(a=r.shared.pending,a===null)break;f=a,a=f.next,f.next=null,r.lastBaseUpdate=f,r.shared.pending=null}}while(!0);if(c===null&&(l=d),r.baseState=l,r.firstBaseUpdate=u,r.lastBaseUpdate=c,e=r.shared.interleaved,e!==null){r=e;do o|=r.lane,r=r.next;while(r!==e)}else s===null&&(r.shared.lanes=0);Zi|=o,t.lanes=o,t.memoizedState=d}}function Qy(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;en?n:4,t(!0);var i=Qd.transition;Qd.transition={};try{t(!1),e()}finally{ge=n,Qd.transition=i}}function gv(){return Wt().memoizedState}function jT(t,e,n){var i=xi(t);if(n={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null},yv(t))vv(e,n);else if(n=Gy(t,e,n,i),n!==null){var r=ct();un(n,t,i,r),bv(n,e,i)}}function IT(t,e,n){var i=xi(t),r={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null};if(yv(t))vv(e,r);else{var s=t.alternate;if(t.lanes===0&&(s===null||s.lanes===0)&&(s=e.lastRenderedReducer,s!==null))try{var o=e.lastRenderedState,a=s(o,n);if(r.hasEagerState=!0,r.eagerState=a,rn(a,o)){var l=e.interleaved;l===null?(r.next=r,Wd(e)):(r.next=l.next,l.next=r),e.interleaved=r;return}}catch(u){}finally{}n=Gy(t,e,r,i),n!==null&&(r=ct(),un(n,t,i,r),bv(n,e,i))}}function yv(t){var e=t.alternate;return t===$e||e!==null&&e===$e}function vv(t,e){po=xl=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function bv(t,e,n){if(n&4194240){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,od(t,n)}}var Sl={readContext:Ht,useCallback:et,useContext:et,useEffect:et,useImperativeHandle:et,useInsertionEffect:et,useLayoutEffect:et,useMemo:et,useReducer:et,useRef:et,useState:et,useDebugValue:et,useDeferredValue:et,useTransition:et,useMutableSource:et,useSyncExternalStore:et,useId:et,unstable_isNewReconciler:!1},OT={readContext:Ht,useCallback:function(t,e){return gn().memoizedState=[t,e===void 0?null:e],t},useContext:Ht,useEffect:lv,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,_l(4194308,4,dv.bind(null,e,t),n)},useLayoutEffect:function(t,e){return _l(4194308,4,t,e)},useInsertionEffect:function(t,e){return _l(4,2,t,e)},useMemo:function(t,e){var n=gn();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var i=gn();return e=n!==void 0?n(e):e,i.memoizedState=i.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},i.queue=t,t=t.dispatch=jT.bind(null,$e,t),[i.memoizedState,t]},useRef:function(t){var e=gn();return t={current:t},e.memoizedState=t},useState:ov,useDebugValue:sf,useDeferredValue:function(t){return gn().memoizedState=t},useTransition:function(){var t=ov(!1),e=t[0];return t=NT.bind(null,t[1]),gn().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var i=$e,r=gn();if(Pe){if(n===void 0)throw Error(W(407));n=n()}else{if(n=e(),Ke===null)throw Error(W(349));Qi&30||tv(i,e,n)}r.memoizedState=n;var s={value:n,getSnapshot:e};return r.queue=s,lv(iv.bind(null,i,s,t),[t]),i.flags|=2048,yo(9,nv.bind(null,i,s,n,e),void 0,null),n},useId:function(){var t=gn(),e=Ke.identifierPrefix;if(Pe){var n=Fn,i=Rn;n=(i&~(1<<32-nn(i)-1)).toString(32)+n,e=":"+e+"R"+n,n=mo++,0<\/script>",t=t.removeChild(t.firstChild)):typeof i.is=="string"?t=o.createElement(n,{is:i.is}):(t=o.createElement(n),n==="select"&&(o=t,i.multiple?o.multiple=!0:i.size&&(o.size=i.size))):t=o.createElementNS(t,n),t[pn]=e,t[ao]=i,Ov(t,e,!1,!1),e.stateNode=t;e:{switch(o=qc(n,i),n){case"dialog":_e("cancel",t),_e("close",t),r=i;break;case"iframe":case"object":case"embed":_e("load",t),r=i;break;case"video":case"audio":for(r=0;rts&&(e.flags|=128,i=!0,vo(s,!1),e.lanes=4194304)}else{if(!i)if(t=vl(o),t!==null){if(e.flags|=128,i=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),vo(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!Pe)return tt(e),null}else 2*Re()-s.renderingStartTime>ts&&n!==1073741824&&(e.flags|=128,i=!0,vo(s,!1),e.lanes=4194304);s.isBackwards?(o.sibling=e.child,e.child=o):(n=s.last,n!==null?n.sibling=o:e.child=o,s.last=o)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=Re(),e.sibling=null,n=Te.current,be(Te,i?n&1|2:n&1),e):(tt(e),null);case 22:case 23:return Ef(),i=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==i&&(e.flags|=8192),i&&e.mode&1?Lt&1073741824&&(tt(e),e.subtreeFlags&6&&(e.flags|=8192)):tt(e),null;case 24:return null;case 25:return null}throw Error(W(156,e.tag))}function YT(t,e){switch(jd(e),e.tag){case 1:return yt(e.type)&&al(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Qr(),we(gt),we(Je),qd(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return Gd(e),null;case 13:if(we(Te),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(W(340));Yr()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return we(Te),null;case 4:return Qr(),null;case 10:return Kd(e.type._context),null;case 22:case 23:return Ef(),null;case 24:return null;default:return null}}var Tl=!1,nt=!1,GT=typeof WeakSet=="function"?WeakSet:Set,G=null;function Jr(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(i){De(t,e,i)}else n.current=null}function yf(t,e,n){try{n()}catch(i){De(t,e,i)}}var Bv=!1;function XT(t,e){if($d=Ya,t=xy(),xd(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var r=i.anchorOffset,s=i.focusNode;i=i.focusOffset;try{n.nodeType,s.nodeType}catch(S){n=null;break e}var o=0,a=-1,l=-1,u=0,c=0,d=t,f=null;t:for(;;){for(var h;d!==n||r!==0&&d.nodeType!==3||(a=o+r),d!==s||i!==0&&d.nodeType!==3||(l=o+i),d.nodeType===3&&(o+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===t)break t;if(f===n&&++u===r&&(a=o),f===s&&++c===i&&(l=o),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ed={focusedElem:t,selectionRange:n},Ya=!1,G=e;G!==null;)if(e=G,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,G=t;else for(;G!==null;){e=G;try{var m=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var y=m.memoizedProps,x=m.memoizedState,p=e.stateNode,g=p.getSnapshotBeforeUpdate(e.elementType===e.type?y:on(e.type,y),x);p.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var b=e.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(W(163))}}catch(S){De(e,e.return,S)}if(t=e.sibling,t!==null){t.return=e.return,G=t;break}G=e.return}return m=Bv,Bv=!1,m}function bo(t,e,n){var i=e.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var r=i=i.next;do{if((r.tag&t)===t){var s=r.destroy;r.destroy=void 0,s!==void 0&&yf(e,n,s)}r=r.next}while(r!==i)}}function $l(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var i=n.create;n.destroy=i()}n=n.next}while(n!==e)}}function vf(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function Kv(t){var e=t.alternate;e!==null&&(t.alternate=null,Kv(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[pn],delete e[ao],delete e[Ld],delete e[DT],delete e[AT])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function Hv(t){return t.tag===5||t.tag===3||t.tag===4}function Wv(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Hv(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function bf(t,e,n){var i=t.tag;if(i===5||i===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=sl));else if(i!==4&&(t=t.child,t!==null))for(bf(t,e,n),t=t.sibling;t!==null;)bf(t,e,n),t=t.sibling}function xf(t,e,n){var i=t.tag;if(i===5||i===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(i!==4&&(t=t.child,t!==null))for(xf(t,e,n),t=t.sibling;t!==null;)xf(t,e,n),t=t.sibling}var Ye=null,an=!1;function yi(t,e,n){for(n=n.child;n!==null;)Uv(t,e,n),n=n.sibling}function Uv(t,e,n){if(hn&&typeof hn.onCommitFiberUnmount=="function")try{hn.onCommitFiberUnmount(za,n)}catch(a){}switch(n.tag){case 5:nt||Jr(n,e);case 6:var i=Ye,r=an;Ye=null,yi(t,e,n),Ye=i,an=r,Ye!==null&&(an?(t=Ye,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):Ye.removeChild(n.stateNode));break;case 18:Ye!==null&&(an?(t=Ye,n=n.stateNode,t.nodeType===8?Ad(t.parentNode,n):t.nodeType===1&&Ad(t,n),qs(t)):Ad(Ye,n.stateNode));break;case 4:i=Ye,r=an,Ye=n.stateNode.containerInfo,an=!0,yi(t,e,n),Ye=i,an=r;break;case 0:case 11:case 14:case 15:if(!nt&&(i=n.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){r=i=i.next;do{var s=r,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&yf(n,e,o),r=r.next}while(r!==i)}yi(t,e,n);break;case 1:if(!nt&&(Jr(n,e),i=n.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=n.memoizedProps,i.state=n.memoizedState,i.componentWillUnmount()}catch(a){De(n,e,a)}yi(t,e,n);break;case 21:yi(t,e,n);break;case 22:n.mode&1?(nt=(i=nt)||n.memoizedState!==null,yi(t,e,n),nt=i):yi(t,e,n);break;default:yi(t,e,n)}}function Yv(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new GT),e.forEach(function(i){var r=r$.bind(null,t,i);n.has(i)||(n.add(i),i.then(r,r))})}}function ln(t,e){var n=e.deletions;if(n!==null)for(var i=0;ir&&(r=o),i&=~s}if(i=r,i=Re()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*QT(i/1960))-i,10t?16:t,bi===null)var i=!1;else{if(t=bi,bi=null,Ll=0,oe&6)throw Error(W(331));var r=oe;for(oe|=4,G=t.current;G!==null;){var s=G,o=s.child;if(G.flags&16){var a=s.deletions;if(a!==null){for(var l=0;lRe()-Sf?er(t,0):wf|=n),xt(t,e)}function ob(t,e){e===0&&(t.mode&1?(e=Ka,Ka<<=1,!(Ka&130023424)&&(Ka=4194304)):e=1);var n=ct();t=Nn(t,e),t!==null&&(Ws(t,e,n),xt(t,n))}function i$(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),ob(t,n)}function r$(t,e){var n=0;switch(t.tag){case 13:var i=t.stateNode,r=t.memoizedState;r!==null&&(n=r.retryLane);break;case 19:i=t.stateNode;break;default:throw Error(W(314))}i!==null&&i.delete(e),ob(t,n)}var ab;ab=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||gt.current)vt=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return vt=!1,WT(t,e,n);vt=!!(t.flags&131072)}else vt=!1,Pe&&e.flags&1048576&&Vy(e,dl,e.index);switch(e.lanes=0,e.tag){case 2:var i=e.type;Cl(t,e),t=e.pendingProps;var r=Hr(e,Je.current);qr(e,n),r=Jd(null,e,i,t,r,n);var s=ef();return e.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,yt(i)?(s=!0,ll(e)):s=!1,e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,Ud(e),r.updater=Pl,e.stateNode=r,r._reactInternals=e,af(e,i,t,n),e=df(null,e,i,!0,s,n)):(e.tag=0,Pe&&s&&Nd(e),ut(null,e,r,n),e=e.child),e;case 16:i=e.elementType;e:{switch(Cl(t,e),t=e.pendingProps,r=i._init,i=r(i._payload),e.type=i,r=e.tag=o$(i),t=on(i,t),r){case 0:e=cf(null,e,i,t,n);break e;case 1:e=Lv(null,e,i,t,n);break e;case 11:e=$v(null,e,i,t,n);break e;case 14:e=Ev(null,e,i,on(i.type,t),n);break e}throw Error(W(306,i,""))}return e;case 0:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:on(i,r),cf(t,e,i,r,n);case 1:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:on(i,r),Lv(t,e,i,r,n);case 3:e:{if(Rv(e),t===null)throw Error(W(387));i=e.pendingProps,s=e.memoizedState,r=s.element,Xy(t,e),yl(e,i,null,n);var o=e.memoizedState;if(i=o.element,s.isDehydrated)if(s={element:i,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=s,e.memoizedState=s,e.flags&256){r=Zr(Error(W(423)),e),e=Fv(t,e,i,n,r);break e}else if(i!==r){r=Zr(Error(W(424)),e),e=Fv(t,e,i,n,r);break e}else for(At=di(e.stateNode.containerInfo.firstChild),Dt=e,Pe=!0,sn=null,n=Yy(e,null,i,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Yr(),i===r){e=In(t,e,n);break e}ut(t,e,i,n)}e=e.child}return e;case 5:return Zy(e),t===null&&Od(e),i=e.type,r=e.pendingProps,s=t!==null?t.memoizedProps:null,o=r.children,Md(i,r)?o=null:s!==null&&Md(i,s)&&(e.flags|=32),Av(t,e),ut(t,e,o,n),e.child;case 6:return t===null&&Od(e),null;case 13:return Nv(t,e,n);case 4:return Yd(e,e.stateNode.containerInfo),i=e.pendingProps,t===null?e.child=Gr(e,null,i,n):ut(t,e,i,n),e.child;case 11:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:on(i,r),$v(t,e,i,r,n);case 7:return ut(t,e,e.pendingProps,n),e.child;case 8:return ut(t,e,e.pendingProps.children,n),e.child;case 12:return ut(t,e,e.pendingProps.children,n),e.child;case 10:e:{if(i=e.type._context,r=e.pendingProps,s=e.memoizedProps,o=r.value,be(pl,i._currentValue),i._currentValue=o,s!==null)if(rn(s.value,o)){if(s.children===r.children&&!gt.current){e=In(t,e,n);break e}}else for(s=e.child,s!==null&&(s.return=e);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===i){if(s.tag===1){l=jn(-1,n&-n),l.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Hd(s.return,n,e),a.lanes|=n;break}l=l.next}}else if(s.tag===10)o=s.type===e.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(W(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Hd(o,n,e),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===e){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}ut(t,e,r.children,n),e=e.child}return e;case 9:return r=e.type,i=e.pendingProps.children,qr(e,n),r=Ht(r),i=i(r),e.flags|=1,ut(t,e,i,n),e.child;case 14:return i=e.type,r=on(i,e.pendingProps),r=on(i.type,r),Ev(t,e,i,r,n);case 15:return Mv(t,e,e.type,e.pendingProps,n);case 17:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:on(i,r),Cl(t,e),e.tag=1,yt(i)?(t=!0,ll(e)):t=!1,qr(e,n),_v(e,i,r),af(e,i,r,n),df(null,e,i,!0,t,n);case 19:return Iv(t,e,n);case 22:return Dv(t,e,n)}throw Error(W(156,e.tag))};function lb(t,e){return zg(t,e)}function s$(t,e,n,i){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Yt(t,e,n,i){return new s$(t,e,n,i)}function Df(t){return t=t.prototype,!(!t||!t.isReactComponent)}function o$(t){if(typeof t=="function")return Df(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Nc)return 11;if(t===Oc)return 14}return 2}function wi(t,e){var n=t.alternate;return n===null?(n=Yt(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function jl(t,e,n,i,r,s){var o=2;if(i=t,typeof t=="function")Df(t)&&(o=1);else if(typeof t=="string")o=5;else e:switch(t){case Dr:return nr(n.children,r,s,e);case Rc:o=8,r|=8;break;case Fc:return t=Yt(12,n,e,r|2),t.elementType=Fc,t.lanes=s,t;case jc:return t=Yt(13,n,e,r),t.elementType=jc,t.lanes=s,t;case Ic:return t=Yt(19,n,e,r),t.elementType=Ic,t.lanes=s,t;case yg:return Il(n,r,s,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case mg:o=10;break e;case gg:o=9;break e;case Nc:o=11;break e;case Oc:o=14;break e;case ii:o=16,i=null;break e}throw Error(W(130,t==null?t:typeof t,""))}return e=Yt(o,n,e,r),e.elementType=t,e.type=i,e.lanes=s,e}function nr(t,e,n,i){return t=Yt(7,t,i,e),t.lanes=n,t}function Il(t,e,n,i){return t=Yt(22,t,i,e),t.elementType=yg,t.lanes=n,t.stateNode={isHidden:!1},t}function Af(t,e,n){return t=Yt(6,t,null,e),t.lanes=n,t}function Lf(t,e,n){return e=Yt(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function a$(t,e,n,i,r){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=sd(0),this.expirationTimes=sd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=sd(0),this.identifierPrefix=i,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function Rf(t,e,n,i,r,s,o,a,l){return t=new a$(t,e,n,a,l),e===1?(e=1,s===!0&&(e|=8)):e=0,s=Yt(3,null,null,e),t.current=s,s.stateNode=t,s.memoizedState={element:i,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ud(s),t}function l$(t,e,n){var i=3t,isStatic:!1,reducedMotion:"never"});class f$ extends _.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function h$({children:t,isPresent:e}){const n=_.useId(),i=_.useRef(null),r=_.useRef({width:0,height:0,top:0,left:0}),{nonce:s}=_.useContext(Of);return _.useInsertionEffect(()=>{const{width:o,height:a,top:l,left:u}=r.current;if(e||!i.current||!o||!a)return;i.current.dataset.motionPopId=n;const c=document.createElement("style");return s&&(c.nonce=s),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(` [data-motion-pop-id="${n}"] { position: absolute !important; width: ${o}px !important; height: ${a}px !important; top: ${l}px !important; left: ${u}px !important; } `),()=>{document.head.removeChild(c)}},[e]),v.jsx(f$,{isPresent:e,childRef:i,sizeRef:r,children:_.cloneElement(t,{ref:i})})}const p$=({children:t,initial:e,isPresent:n,onExitComplete:i,custom:r,presenceAffectsLayout:s,mode:o})=>{const a=Ul(m$),l=_.useId(),u=_.useCallback(d=>{a.set(d,!0);for(const f of a.values())if(!f)return;i&&i()},[a,i]),c=_.useMemo(()=>({id:l,initial:e,isPresent:n,custom:r,onExitComplete:u,register:d=>(a.set(d,!1),()=>a.delete(d))}),s?[Math.random(),u]:[n,u]);return _.useMemo(()=>{a.forEach((d,f)=>a.set(f,!1))},[n]),_.useEffect(()=>{!n&&!a.size&&i&&i()},[n]),o==="popLayout"&&(t=v.jsx(h$,{isPresent:n,children:t})),v.jsx(Yl.Provider,{value:c,children:t})};function m$(){return new Map}function gb(t=!0){const e=_.useContext(Yl);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:i,register:r}=e,s=_.useId();_.useEffect(()=>{t&&r(s)},[t]);const o=_.useCallback(()=>t&&i&&i(s),[s,i,t]);return!n&&i?[!1,o]:[!0]}const Gl=t=>t.key||"";function yb(t){const e=[];return _.Children.forEach(t,n=>{_.isValidElement(n)&&e.push(n)}),e}const Vf=typeof window!="undefined",zf=Vf?_.useLayoutEffect:_.useEffect,g$=({children:t,custom:e,initial:n=!0,onExitComplete:i,presenceAffectsLayout:r=!0,mode:s="sync",propagate:o=!1})=>{const[a,l]=gb(o),u=_.useMemo(()=>yb(t),[t]),c=o&&!a?[]:u.map(Gl),d=_.useRef(!0),f=_.useRef(u),h=Ul(()=>new Map),[m,y]=_.useState(u),[x,p]=_.useState(u);zf(()=>{d.current=!1,f.current=u;for(let S=0;S{const w=Gl(S),C=o&&!a?!1:u===x||c.includes(w),L=()=>{if(h.has(w))h.set(w,!0);else return;let T=!0;h.forEach(P=>{P||(T=!1)}),T&&(b==null||b(),p(f.current),o&&(l==null||l()),i&&i())};return v.jsx(p$,{isPresent:C,initial:!d.current||n?void 0:!1,custom:C?void 0:e,presenceAffectsLayout:r,mode:s,onExitComplete:C?void 0:L,children:S},w)})})},dt=t=>t;let y$=dt,Bf=dt;function Kf(t){let e;return()=>(e===void 0&&(e=t()),e)}const ir=(t,e,n)=>{const i=e-t;return i===0?1:(n-t)/i},Vn=t=>t*1e3,zn=t=>t/1e3,v$={skipAnimations:!1,useManualTiming:!1};function b$(t){let e=new Set,n=new Set,i=!1,r=!1;const s=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(u){s.has(u)&&(l.schedule(u),t()),u(o)}const l={schedule:(u,c=!1,d=!1)=>{const h=d&&i?e:n;return c&&s.add(u),h.has(u)||h.add(u),u},cancel:u=>{n.delete(u),s.delete(u)},process:u=>{if(o=u,i){r=!0;return}i=!0,[e,n]=[n,e],e.forEach(a),e.clear(),i=!1,r&&(r=!1,l.process(u))}};return l}const Xl=["read","resolveKeyframes","update","preRender","render","postRender"],x$=40;function vb(t,e){let n=!1,i=!0;const r={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=Xl.reduce((p,g)=>(p[g]=b$(s),p),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:f}=o,h=()=>{const p=performance.now();n=!1,r.delta=i?1e3/60:Math.max(Math.min(p-r.timestamp,x$),1),r.timestamp=p,r.isProcessing=!0,a.process(r),l.process(r),u.process(r),c.process(r),d.process(r),f.process(r),r.isProcessing=!1,n&&e&&(i=!1,t(h))},m=()=>{n=!0,i=!0,r.isProcessing||t(h)};return{schedule:Xl.reduce((p,g)=>{const b=o[g];return p[g]=(S,w=!1,C=!1)=>(n||m(),b.schedule(S,w,C)),p},{}),cancel:p=>{for(let g=0;gxb[t].some(n=>!!e[n])};function _$(t){for(const e in t)is[e]=k(k({},is[e]),t[e])}const w$=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 ql(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||w$.has(t)}let _b=t=>!ql(t);function S$(t){t&&(_b=e=>e.startsWith("on")?!ql(e):t(e))}try{S$(require("@emotion/is-prop-valid").default)}catch(t){}function P$(t,e,n){const i={};for(const r in t)r==="values"&&typeof t.values=="object"||(_b(r)||n===!0&&ql(r)||!e&&!ql(r)||t.draggable&&r.startsWith("onDrag"))&&(i[r]=t[r]);return i}function k$(t){if(typeof Proxy=="undefined")return t;const e=new Map,n=(...i)=>t(...i);return new Proxy(n,{get:(i,r)=>r==="create"?t:(e.has(r)||e.set(r,t(r)),e.get(r))})}const Ql=_.createContext({});function Po(t){return typeof t=="string"||Array.isArray(t)}function Zl(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const Wf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Uf=["initial",...Wf];function Jl(t){return Zl(t.animate)||Uf.some(e=>Po(t[e]))}function wb(t){return!!(Jl(t)||t.variants)}function C$(t,e){if(Jl(t)){const{initial:n,animate:i}=t;return{initial:n===!1||Po(n)?n:void 0,animate:Po(i)?i:void 0}}return t.inherit!==!1?e:{}}function T$(t){const{initial:e,animate:n}=C$(t,_.useContext(Ql));return _.useMemo(()=>({initial:e,animate:n}),[Sb(e),Sb(n)])}function Sb(t){return Array.isArray(t)?t.join(" "):t}const $$=Symbol.for("motionComponentSymbol");function rs(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function E$(t,e,n){return _.useCallback(i=>{i&&t.onMount&&t.onMount(i),e&&(i?e.mount(i):e.unmount()),n&&(typeof n=="function"?n(i):rs(n)&&(n.current=i))},[e])}const Yf=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Pb="data-"+Yf("framerAppearId"),{schedule:Gf,cancel:LI}=vb(queueMicrotask,!1),kb=_.createContext({});function M$(t,e,n,i,r){var s,o;const{visualElement:a}=_.useContext(Ql),l=_.useContext(bb),u=_.useContext(Yl),c=_.useContext(Of).reducedMotion,d=_.useRef(null);i=i||l.renderer,!d.current&&i&&(d.current=i(t,{visualState:e,parent:a,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const f=d.current,h=_.useContext(kb);f&&!f.projection&&r&&(f.type==="html"||f.type==="svg")&&D$(d.current,n,r,h);const m=_.useRef(!1);_.useInsertionEffect(()=>{f&&m.current&&f.update(n,u)});const y=n[Pb],x=_.useRef(!!y&&!(!((s=window.MotionHandoffIsComplete)===null||s===void 0)&&s.call(window,y))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,y)));return zf(()=>{f&&(m.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),Gf.render(f.render),x.current&&f.animationState&&f.animationState.animateChanges())}),_.useEffect(()=>{f&&(!x.current&&f.animationState&&f.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var p;(p=window.MotionHandoffMarkAsComplete)===null||p===void 0||p.call(window,y)}),x.current=!1))}),f}function D$(t,e,n,i){const{layoutId:r,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Cb(t.parent)),t.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!o||a&&rs(a),visualElement:t,animationType:typeof s=="string"?s:"both",initialPromotionConfig:i,layoutScroll:l,layoutRoot:u})}function Cb(t){if(t)return t.options.allowProjection!==!1?t.projection:Cb(t.parent)}function A$({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:i,Component:r}){var s,o;t&&_$(t);function a(u,c){let d;const f=V(k(k({},_.useContext(Of)),u),{layoutId:L$(u)}),{isStatic:h}=f,m=T$(u),y=i(u,h);if(!h&&Vf){R$();const x=F$(f);d=x.MeasureLayout,m.visualElement=M$(r,y,f,e,x.ProjectionNode)}return v.jsxs(Ql.Provider,{value:m,children:[d&&m.visualElement?v.jsx(d,k({visualElement:m.visualElement},f)):null,n(r,u,E$(y,m.visualElement,c),y,h,m.visualElement)]})}a.displayName=`motion.${typeof r=="string"?r:`create(${(o=(s=r.displayName)!==null&&s!==void 0?s:r.name)!==null&&o!==void 0?o:""})`}`;const l=_.forwardRef(a);return l[$$]=r,l}function L$({layoutId:t}){const e=_.useContext(If).id;return e&&t!==void 0?e+"-"+t:t}function R$(t,e){_.useContext(bb).strict}function F$(t){const{drag:e,layout:n}=is;if(!e&&!n)return{};const i=k(k({},e),n);return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}const N$=["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 Xf(t){return typeof t!="string"||t.includes("-")?!1:!!(N$.indexOf(t)>-1||/[A-Z]/u.test(t))}function Tb(t){const e=[{},{}];return t==null||t.values.forEach((n,i)=>{e[0][i]=n.get(),e[1][i]=n.getVelocity()}),e}function qf(t,e,n,i){if(typeof e=="function"){const[r,s]=Tb(i);e=e(n!==void 0?n:t.custom,r,s)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[r,s]=Tb(i);e=e(n!==void 0?n:t.custom,r,s)}return e}const Qf=t=>Array.isArray(t),j$=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),I$=t=>Qf(t)?t[t.length-1]||0:t,it=t=>!!(t&&t.getVelocity);function eu(t){const e=it(t)?t.get():t;return j$(e)?e.toValue():e}function O$({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:n},i,r,s){const o={latestValues:V$(i,r,s,t),renderState:e()};return n&&(o.onMount=a=>n(k({props:i,current:a},o)),o.onUpdate=a=>n(a)),o}const $b=t=>(e,n)=>{const i=_.useContext(Ql),r=_.useContext(Yl),s=()=>O$(t,e,i,r);return n?s():Ul(s)};function V$(t,e,n,i){const r={},s=i(t,{});for(const h in s)r[h]=eu(s[h]);let{initial:o,animate:a}=t;const l=Jl(t),u=wb(t);e&&u&&!l&&t.inherit!==!1&&(o===void 0&&(o=e.initial),a===void 0&&(a=e.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const d=c?a:o;if(d&&typeof d!="boolean"&&!Zl(d)){const h=Array.isArray(d)?d:[d];for(let m=0;me=>typeof e=="string"&&e.startsWith(t),Mb=Eb("--"),z$=Eb("var(--"),Zf=t=>z$(t)?B$.test(t.split("/*")[0].trim()):!1,B$=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Db=(t,e)=>e&&typeof t=="number"?e.transform(t):t,bn=(t,e,n)=>n>e?e:ntypeof t=="number",parse:parseFloat,transform:t=>t},ko=V(k({},os),{transform:t=>bn(0,1,t)}),tu=V(k({},os),{default:1}),Co=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Si=Co("deg"),xn=Co("%"),q=Co("px"),K$=Co("vh"),H$=Co("vw"),Ab=V(k({},xn),{parse:t=>xn.parse(t)/100,transform:t=>xn.transform(t*100)}),W$={borderWidth:q,borderTopWidth:q,borderRightWidth:q,borderBottomWidth:q,borderLeftWidth:q,borderRadius:q,radius:q,borderTopLeftRadius:q,borderTopRightRadius:q,borderBottomRightRadius:q,borderBottomLeftRadius:q,width:q,maxWidth:q,height:q,maxHeight:q,top:q,right:q,bottom:q,left:q,padding:q,paddingTop:q,paddingRight:q,paddingBottom:q,paddingLeft:q,margin:q,marginTop:q,marginRight:q,marginBottom:q,marginLeft:q,backgroundPositionX:q,backgroundPositionY:q},U$={rotate:Si,rotateX:Si,rotateY:Si,rotateZ:Si,scale:tu,scaleX:tu,scaleY:tu,scaleZ:tu,skew:Si,skewX:Si,skewY:Si,distance:q,translateX:q,translateY:q,translateZ:q,x:q,y:q,z:q,perspective:q,transformPerspective:q,opacity:ko,originX:Ab,originY:Ab,originZ:q},Lb=V(k({},os),{transform:Math.round}),Jf=V(k(k({},W$),U$),{zIndex:Lb,size:q,fillOpacity:ko,strokeOpacity:ko,numOctaves:Lb}),Y$={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},G$=ss.length;function X$(t,e,n){let i="",r=!0;for(let s=0;s({style:{},transform:{},transformOrigin:{},vars:{}}),Fb=()=>V(k({},nh()),{attrs:{}}),ih=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Nb(t,{style:e,vars:n},i,r){Object.assign(t.style,e,r&&r.getProjectionStyles(i));for(const s in n)t.style.setProperty(s,n[s])}const jb=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 Ib(t,e,n,i){Nb(t,e,void 0,i);for(const r in e.attrs)t.setAttribute(jb.has(r)?r:Yf(r),e.attrs[r])}const nu={};function e2(t){Object.assign(nu,t)}function Ob(t,{layout:e,layoutId:n}){return rr.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!nu[t]||t==="opacity")}function rh(t,e,n){var i;const{style:r}=t,s={};for(const o in r)(it(r[o])||e.style&&it(e.style[o])||Ob(o,t)||((i=n==null?void 0:n.getValue(o))===null||i===void 0?void 0:i.liveStyle)!==void 0)&&(s[o]=r[o]);return s}function Vb(t,e,n){const i=rh(t,e,n);for(const r in t)if(it(t[r])||it(e[r])){const s=ss.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;i[s]=t[r]}return i}function t2(t,e){try{e.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch(n){e.dimensions={x:0,y:0,width:0,height:0}}}const zb=["x","y","width","height","cx","cy","r"],n2={useVisualState:$b({scrapeMotionValuesFromProps:Vb,createRenderState:Fb,onUpdate:({props:t,prevProps:e,current:n,renderState:i,latestValues:r})=>{if(!n)return;let s=!!t.drag;if(!s){for(const a in r)if(rr.has(a)){s=!0;break}}if(!s)return;let o=!e;if(e)for(let a=0;a{t2(n,i),he.render(()=>{th(i,r,ih(n.tagName),t.transformTemplate),Ib(n,i)})})}})},i2={useVisualState:$b({scrapeMotionValuesFromProps:rh,createRenderState:nh})};function Bb(t,e,n){for(const i in e)!it(e[i])&&!Ob(i,n)&&(t[i]=e[i])}function r2({transformTemplate:t},e){return _.useMemo(()=>{const n=nh();return eh(n,e,t),Object.assign({},n.vars,n.style)},[e])}function s2(t,e){const n=t.style||{},i={};return Bb(i,n,t),Object.assign(i,r2(t,e)),i}function o2(t,e){const n={},i=s2(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n}function a2(t,e,n,i){const r=_.useMemo(()=>{const s=Fb();return th(s,e,ih(i),t.transformTemplate),V(k({},s.attrs),{style:k({},s.style)})},[e]);if(t.style){const s={};Bb(s,t.style,t),r.style=k(k({},s),r.style)}return r}function l2(t=!1){return(n,i,r,{latestValues:s},o)=>{const l=(Xf(n)?a2:o2)(i,s,o,n),u=P$(i,typeof n=="string",t),c=n!==_.Fragment?V(k(k({},u),l),{ref:r}):{},{children:d}=i,f=_.useMemo(()=>it(d)?d.get():d,[d]);return _.createElement(n,V(k({},c),{children:f}))}}function u2(t,e){return function(i,{forwardMotionProps:r}={forwardMotionProps:!1}){const s=Xf(i)?n2:i2,o=V(k({},s),{preloadedFeatures:t,useRender:l2(r),createVisualElement:e,Component:i});return A$(o)}}function Kb(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;iwindow.ScrollTimeline!==void 0);class c2{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,n){for(let i=0;i{if(Hb()&&r.attachTimeline)return r.attachTimeline(e);if(typeof n=="function")return n(r)});return()=>{i.forEach((r,s)=>{r&&r(),this.animations[s].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let n=0;nn[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class d2 extends c2{then(e,n){return Promise.all(this.animations).then(e).catch(n)}}function sh(t,e){return t?t[e]||t.default||t:void 0}const oh=2e4;function Wb(t){let e=0;const n=50;let i=t.next(e);for(;!i.done&&e=oh?1/0:e}function ah(t){return typeof t=="function"}function Ub(t,e){t.timeline=e,t.onfinish=null}const lh=t=>Array.isArray(t)&&typeof t[0]=="number",f2={linearEasing:void 0};function h2(t,e){const n=Kf(t);return()=>{var i;return(i=f2[e])!==null&&i!==void 0?i:n()}}const ru=h2(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),Yb=(t,e,n=10)=>{let i="";const r=Math.max(Math.round(e/n),2);for(let s=0;s`cubic-bezier(${t}, ${e}, ${n}, ${i})`,uh={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:To([0,.65,.55,1]),circOut:To([.55,0,1,.45]),backIn:To([.31,.01,.66,-.59]),backOut:To([.33,1.53,.69,.99])};function Xb(t,e){if(t)return typeof t=="function"&&ru()?Yb(t,e):lh(t)?To(t):Array.isArray(t)?t.map(n=>Xb(n,e)||uh.easeOut):uh[t]}const cn={x:!1,y:!1};function qb(){return cn.x||cn.y}function Qb(t,e,n){var i;if(t instanceof Element)return[t];if(typeof t=="string"){let r=document;const s=(i=void 0)!==null&&i!==void 0?i:r.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t)}function Zb(t,e){const n=Qb(t),i=new AbortController,r=V(k({passive:!0},e),{signal:i.signal});return[n,r,()=>i.abort()]}function Jb(t){return e=>{e.pointerType==="touch"||qb()||t(e)}}function p2(t,e,n={}){const[i,r,s]=Zb(t,n),o=Jb(a=>{const{target:l}=a,u=e(a);if(typeof u!="function"||!l)return;const c=Jb(d=>{u(d),l.removeEventListener("pointerleave",c)});l.addEventListener("pointerleave",c,r)});return i.forEach(a=>{a.addEventListener("pointerenter",o,r)}),s}const e0=(t,e)=>e?t===e?!0:e0(t,e.parentElement):!1,ch=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,m2=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function g2(t){return m2.has(t.tagName)||t.tabIndex!==-1}const $o=new WeakSet;function t0(t){return e=>{e.key==="Enter"&&t(e)}}function dh(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const y2=(t,e)=>{const n=t.currentTarget;if(!n)return;const i=t0(()=>{if($o.has(n))return;dh(n,"down");const r=t0(()=>{dh(n,"up")}),s=()=>dh(n,"cancel");n.addEventListener("keyup",r,e),n.addEventListener("blur",s,e)});n.addEventListener("keydown",i,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),e)};function n0(t){return ch(t)&&!qb()}function v2(t,e,n={}){const[i,r,s]=Zb(t,n),o=a=>{const l=a.currentTarget;if(!n0(a)||$o.has(l))return;$o.add(l);const u=e(a),c=(h,m)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),!(!n0(h)||!$o.has(l))&&($o.delete(l),typeof u=="function"&&u(h,{success:m}))},d=h=>{c(h,n.useGlobalTarget||e0(l,h.target))},f=h=>{c(h,!1)};window.addEventListener("pointerup",d,r),window.addEventListener("pointercancel",f,r)};return i.forEach(a=>{!g2(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,r),a.addEventListener("focus",u=>y2(u,r),r)}),s}function b2(t){return t==="x"||t==="y"?cn[t]?null:(cn[t]=!0,()=>{cn[t]=!1}):cn.x||cn.y?null:(cn.x=cn.y=!0,()=>{cn.x=cn.y=!1})}const i0=new Set(["width","height","top","left","right","bottom",...ss]);let su;function x2(){su=void 0}const _n={now:()=>(su===void 0&&_n.set(He.isProcessing||v$.useManualTiming?He.timestamp:performance.now()),su),set:t=>{su=t,queueMicrotask(x2)}};function fh(t,e){t.indexOf(e)===-1&&t.push(e)}function hh(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class ph{constructor(){this.subscriptions=[]}add(e){return fh(this.subscriptions,e),()=>hh(this.subscriptions,e)}notify(e,n,i){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,n,i);else for(let s=0;s!isNaN(parseFloat(t));class w2{constructor(e,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(i,r=!0)=>{const s=_n.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),r&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=_n.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=_2(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new ph);const i=this.events[e].add(n);return e==="change"?()=>{i(),he.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,i){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=_n.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>r0)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,r0);return mh(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Bn(t,e){return new w2(t,e)}function S2(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Bn(n))}function P2(t,e){let o=iu(t,e)||{},{transitionEnd:i={},transition:r={}}=o,s=se(o,["transitionEnd","transition"]);s=k(k({},s),i);for(const a in s){const l=I$(s[a]);S2(t,a,l)}}function k2(t){return!!(it(t)&&t.add)}function gh(t,e){const n=t.getValue("willChange");if(k2(n))return n.add(e)}function s0(t){return t.props[Pb]}const o0=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,C2=1e-7,T2=12;function $2(t,e,n,i,r){let s,o,a=0;do o=e+(n-e)/2,s=o0(o,i,r)-t,s>0?n=o:e=o;while(Math.abs(s)>C2&&++a$2(s,0,1,t,n);return s=>s===0||s===1?s:o0(r(s),e,i)}const a0=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,l0=t=>e=>1-t(1-e),u0=Eo(.33,1.53,.69,.99),yh=l0(u0),c0=a0(yh),d0=t=>(t*=2)<1?.5*yh(t):.5*(2-Math.pow(2,-10*(t-1))),vh=t=>1-Math.sin(Math.acos(t)),f0=l0(vh),h0=a0(vh),p0=t=>/^0[^.\s]+$/u.test(t);function E2(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||p0(t):!0}const Mo=t=>Math.round(t*1e5)/1e5,bh=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function M2(t){return t==null}const D2=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,xh=(t,e)=>n=>!!(typeof n=="string"&&D2.test(n)&&n.startsWith(t)||e&&!M2(n)&&Object.prototype.hasOwnProperty.call(n,e)),m0=(t,e,n)=>i=>{if(typeof i!="string")return i;const[r,s,o,a]=i.match(bh);return{[t]:parseFloat(r),[e]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},A2=t=>bn(0,255,t),_h=V(k({},os),{transform:t=>Math.round(A2(t))}),sr={test:xh("rgb","red"),parse:m0("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+_h.transform(t)+", "+_h.transform(e)+", "+_h.transform(n)+", "+Mo(ko.transform(i))+")"};function L2(t){let e="",n="",i="",r="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),r=t.substring(4,5),e+=e,n+=n,i+=i,r+=r),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:r?parseInt(r,16)/255:1}}const wh={test:xh("#"),parse:L2,transform:sr.transform},as={test:xh("hsl","hue"),parse:m0("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+xn.transform(Mo(e))+", "+xn.transform(Mo(n))+", "+Mo(ko.transform(i))+")"},rt={test:t=>sr.test(t)||wh.test(t)||as.test(t),parse:t=>sr.test(t)?sr.parse(t):as.test(t)?as.parse(t):wh.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?sr.transform(t):as.transform(t)},R2=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function F2(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(bh))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(R2))===null||n===void 0?void 0:n.length)||0)>0}const g0="number",y0="color",N2="var",j2="var(",v0="${}",I2=/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 Do(t){const e=t.toString(),n=[],i={color:[],number:[],var:[]},r=[];let s=0;const a=e.replace(I2,l=>(rt.test(l)?(i.color.push(s),r.push(y0),n.push(rt.parse(l))):l.startsWith(j2)?(i.var.push(s),r.push(N2),n.push(l)):(i.number.push(s),r.push(g0),n.push(parseFloat(l))),++s,v0)).split(v0);return{values:n,split:a,indexes:i,types:r}}function b0(t){return Do(t).values}function x0(t){const{split:e,types:n}=Do(t),i=e.length;return r=>{let s="";for(let o=0;otypeof t=="number"?0:t;function V2(t){const e=b0(t);return x0(t)(e.map(O2))}const Pi={test:F2,parse:b0,createTransformer:x0,getAnimatableNone:V2},z2=new Set(["brightness","contrast","saturate","opacity"]);function B2(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[i]=n.match(bh)||[];if(!i)return t;const r=n.replace(i,"");let s=z2.has(e)?1:0;return i!==n&&(s*=100),e+"("+s+r+")"}const K2=/\b([a-z-]*)\(.*?\)/gu,Sh=V(k({},Pi),{getAnimatableNone:t=>{const e=t.match(K2);return e?e.map(B2).join(" "):t}}),H2=V(k({},Jf),{color:rt,backgroundColor:rt,outlineColor:rt,fill:rt,stroke:rt,borderColor:rt,borderTopColor:rt,borderRightColor:rt,borderBottomColor:rt,borderLeftColor:rt,filter:Sh,WebkitFilter:Sh}),Ph=t=>H2[t];function _0(t,e){let n=Ph(t);return n!==Sh&&(n=Pi),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const W2=new Set(["auto","none","0"]);function U2(t,e,n){let i=0,r;for(;it===os||t===q,S0=(t,e)=>parseFloat(t.split(", ")[e]),P0=(t,e)=>(n,{transform:i})=>{if(i==="none"||!i)return 0;const r=i.match(/^matrix3d\((.+)\)$/u);if(r)return S0(r[1],e);{const s=i.match(/^matrix\((.+)\)$/u);return s?S0(s[1],t):0}},Y2=new Set(["x","y","z"]),G2=ss.filter(t=>!Y2.has(t));function X2(t){const e=[];return G2.forEach(n=>{const i=t.getValue(n);i!==void 0&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e}const ls={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:P0(4,13),y:P0(5,14)};ls.translateX=ls.x,ls.translateY=ls.y;const or=new Set;let kh=!1,Ch=!1;function k0(){if(Ch){const t=Array.from(or).filter(i=>i.needsMeasurement),e=new Set(t.map(i=>i.element)),n=new Map;e.forEach(i=>{const r=X2(i);r.length&&(n.set(i,r),i.render())}),t.forEach(i=>i.measureInitialState()),e.forEach(i=>{i.render();const r=n.get(i);r&&r.forEach(([s,o])=>{var a;(a=i.getValue(s))===null||a===void 0||a.set(o)})}),t.forEach(i=>i.measureEndState()),t.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}Ch=!1,kh=!1,or.forEach(t=>t.complete()),or.clear()}function C0(){or.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Ch=!0)})}function q2(){C0(),k0()}class Th{constructor(e,n,i,r,s,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=i,this.motionValue=r,this.element=s,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(or.add(this),kh||(kh=!0,he.read(C0),he.resolveKeyframes(k0))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:i,motionValue:r}=this;for(let s=0;s/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),Q2=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Z2(t){const e=Q2.exec(t);if(!e)return[,];const[,n,i,r]=e;return[`--${n!=null?n:i}`,r]}function $0(t,e,n=1){const[i,r]=Z2(t);if(!i)return;const s=window.getComputedStyle(e).getPropertyValue(i);if(s){const o=s.trim();return T0(o)?parseFloat(o):o}return Zf(r)?$0(r,e,n+1):r}const E0=t=>e=>e.test(t),M0=[os,q,xn,Si,H$,K$,{test:t=>t==="auto",parse:t=>t}],D0=t=>M0.find(E0(t));class A0 extends Th{constructor(e,n,i,r,s){super(e,n,i,r,s,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:i}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}const L0=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Pi.test(t)||t==="0")&&!t.startsWith("url("));function J2(t){const e=t[0];if(t.length===1)return!0;for(let n=0;nt!==null;function ou(t,{repeat:e,repeatType:n="loop"},i){const r=t.filter(tE),s=e&&n!=="loop"&&e%2===1?0:r.length-1;return!s||i===void 0?r[s]:i}const nE=40;class R0{constructor(l){var u=l,{autoplay:e=!0,delay:n=0,type:i="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:o="loop"}=u,a=se(u,["autoplay","delay","type","repeat","repeatDelay","repeatType"]);this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=_n.now(),this.options=k({autoplay:e,delay:n,type:i,repeat:r,repeatDelay:s,repeatType:o},a),this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>nE?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&q2(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=_n.now(),this.hasAttemptedResolve=!0;const{name:i,type:r,velocity:s,delay:o,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!eE(e,i,r,s))if(o)this.options.duration=0;else{l&&l(ou(e,this.options,n)),a&&a(),this.resolveFinishedPromise();return}const c=this.initPlayback(e,n);c!==!1&&(this._resolved=k({keyframes:e,finalKeyframe:n},c),this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}const Ee=(t,e,n)=>t+(e-t)*n;function $h(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function iE({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,e/=100,n/=100;let r=0,s=0,o=0;if(!e)r=s=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;r=$h(l,a,t+1/3),s=$h(l,a,t),o=$h(l,a,t-1/3)}return{red:Math.round(r*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:i}}function au(t,e){return n=>n>0?e:t}const Eh=(t,e,n)=>{const i=t*t,r=n*(e*e-i)+i;return r<0?0:Math.sqrt(r)},rE=[wh,sr,as],sE=t=>rE.find(e=>e.test(t));function F0(t){const e=sE(t);if(!e)return!1;let n=e.parse(t);return e===as&&(n=iE(n)),n}const N0=(t,e)=>{const n=F0(t),i=F0(e);if(!n||!i)return au(t,e);const r=k({},n);return s=>(r.red=Eh(n.red,i.red,s),r.green=Eh(n.green,i.green,s),r.blue=Eh(n.blue,i.blue,s),r.alpha=Ee(n.alpha,i.alpha,s),sr.transform(r))},oE=(t,e)=>n=>e(t(n)),Ao=(...t)=>t.reduce(oE),Mh=new Set(["none","hidden"]);function aE(t,e){return Mh.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function lE(t,e){return n=>Ee(t,e,n)}function Dh(t){return typeof t=="number"?lE:typeof t=="string"?Zf(t)?au:rt.test(t)?N0:dE:Array.isArray(t)?j0:typeof t=="object"?rt.test(t)?N0:uE:au}function j0(t,e){const n=[...t],i=n.length,r=t.map((s,o)=>Dh(s)(s,e[o]));return s=>{for(let o=0;o{for(const s in i)n[s]=i[s](r);return n}}function cE(t,e){var n;const i=[],r={color:0,var:0,number:0};for(let s=0;s{const n=Pi.createTransformer(e),i=Do(t),r=Do(e);return i.indexes.var.length===r.indexes.var.length&&i.indexes.color.length===r.indexes.color.length&&i.indexes.number.length>=r.indexes.number.length?Mh.has(t)&&!r.values.length||Mh.has(e)&&!i.values.length?aE(t,e):Ao(j0(cE(i,r),r.values),n):au(t,e)};function I0(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?Ee(t,e,n):Dh(t)(t,e)}const fE=5;function O0(t,e,n){const i=Math.max(e-fE,0);return mh(n-t(i),e-i)}const Ae={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},V0=.001;function hE({duration:t=Ae.duration,bounce:e=Ae.bounce,velocity:n=Ae.velocity,mass:i=Ae.mass}){let r,s,o=1-e;o=bn(Ae.minDamping,Ae.maxDamping,o),t=bn(Ae.minDuration,Ae.maxDuration,zn(t)),o<1?(r=u=>{const c=u*o,d=c*t,f=c-n,h=Ah(u,o),m=Math.exp(-d);return V0-f/h*m},s=u=>{const d=u*o*t,f=d*n+n,h=Math.pow(o,2)*Math.pow(u,2)*t,m=Math.exp(-d),y=Ah(Math.pow(u,2),o);return(-r(u)+V0>0?-1:1)*((f-h)*m)/y}):(r=u=>{const c=Math.exp(-u*t),d=(u-n)*t+1;return-.001+c*d},s=u=>{const c=Math.exp(-u*t),d=(n-u)*(t*t);return c*d});const a=5/t,l=mE(r,s,a);if(t=Vn(t),isNaN(l))return{stiffness:Ae.stiffness,damping:Ae.damping,duration:t};{const u=Math.pow(l,2)*i;return{stiffness:u,damping:o*2*Math.sqrt(i*u),duration:t}}}const pE=12;function mE(t,e,n){let i=n;for(let r=1;rt[n]!==void 0)}function vE(t){let e=k({velocity:Ae.velocity,stiffness:Ae.stiffness,damping:Ae.damping,mass:Ae.mass,isResolvedFromDuration:!1},t);if(!z0(t,yE)&&z0(t,gE))if(t.visualDuration){const n=t.visualDuration,i=2*Math.PI/(n*1.2),r=i*i,s=2*bn(.05,1,1-(t.bounce||0))*Math.sqrt(r);e=V(k({},e),{mass:Ae.mass,stiffness:r,damping:s})}else{const n=hE(t);e=V(k(k({},e),n),{mass:Ae.mass}),e.isResolvedFromDuration=!0}return e}function B0(t=Ae.visualDuration,e=Ae.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:i,restDelta:r}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:l,damping:u,mass:c,duration:d,velocity:f,isResolvedFromDuration:h}=vE(V(k({},n),{velocity:-zn(n.velocity||0)})),m=f||0,y=u/(2*Math.sqrt(l*c)),x=o-s,p=zn(Math.sqrt(l/c)),g=Math.abs(x)<5;i||(i=g?Ae.restSpeed.granular:Ae.restSpeed.default),r||(r=g?Ae.restDelta.granular:Ae.restDelta.default);let b;if(y<1){const w=Ah(p,y);b=C=>{const L=Math.exp(-y*p*C);return o-L*((m+y*p*x)/w*Math.sin(w*C)+x*Math.cos(w*C))}}else if(y===1)b=w=>o-Math.exp(-p*w)*(x+(m+p*x)*w);else{const w=p*Math.sqrt(y*y-1);b=C=>{const L=Math.exp(-y*p*C),T=Math.min(w*C,300);return o-L*((m+y*p*x)*Math.sinh(T)+w*x*Math.cosh(T))/w}}const S={calculatedDuration:h&&d||null,next:w=>{const C=b(w);if(h)a.done=w>=d;else{let L=0;y<1&&(L=w===0?Vn(m):O0(b,w,C));const T=Math.abs(L)<=i,P=Math.abs(o-C)<=r;a.done=T&&P}return a.value=a.done?o:C,a},toString:()=>{const w=Math.min(Wb(S),oh),C=Yb(L=>S.next(w*L).value,w,30);return w+"ms "+C}};return S}function K0({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=t[0],f={done:!1,value:d},h=T=>a!==void 0&&Tl,m=T=>a===void 0?l:l===void 0||Math.abs(a-T)-y*Math.exp(-T/i),b=T=>p+g(T),S=T=>{const P=g(T),M=b(T);f.done=Math.abs(P)<=u,f.value=f.done?p:M};let w,C;const L=T=>{h(f.value)&&(w=T,C=B0({keyframes:[f.value,m(f.value)],velocity:O0(b,T,f.value),damping:r,stiffness:s,restDelta:u,restSpeed:c}))};return L(0),{calculatedDuration:null,next:T=>{let P=!1;return!C&&w===void 0&&(P=!0,S(T),L(T)),w!==void 0&&T>=w?C.next(T-w):(!P&&S(T),f)}}}const bE=Eo(.42,0,1,1),xE=Eo(0,0,.58,1),H0=Eo(.42,0,.58,1),_E=t=>Array.isArray(t)&&typeof t[0]!="number",W0={linear:dt,easeIn:bE,easeInOut:H0,easeOut:xE,circIn:vh,circInOut:h0,circOut:f0,backIn:yh,backInOut:c0,backOut:u0,anticipate:d0},U0=t=>{if(lh(t)){Bf(t.length===4);const[e,n,i,r]=t;return Eo(e,n,i,r)}else if(typeof t=="string")return Bf(W0[t]!==void 0),W0[t];return t};function wE(t,e,n){const i=[],r=n||I0,s=t.length-1;for(let o=0;oe[0];if(s===2&&e[0]===e[1])return()=>e[1];const o=t[0]===t[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=wE(e,i,r),l=a.length,u=c=>{if(o&&c1)for(;du(bn(t[0],t[s-1],c)):u}function SE(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const r=ir(0,e,i);t.push(Ee(n,1,r))}}function G0(t){const e=[0];return SE(e,t.length-1),e}function PE(t,e){return t.map(n=>n*e)}function kE(t,e){return t.map(()=>e||H0).splice(0,t.length-1)}function lu({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const r=_E(i)?i.map(U0):U0(i),s={done:!1,value:e[0]},o=PE(n&&n.length===e.length?n:G0(e),t),a=Y0(o,e,{ease:Array.isArray(r)?r:kE(e,r)});return{calculatedDuration:t,next:l=>(s.value=a(l),s.done=l>=t,s)}}const CE=t=>{const e=({timestamp:n})=>t(n);return{start:()=>he.update(e,!0),stop:()=>vn(e),now:()=>He.isProcessing?He.timestamp:_n.now()}},TE={decay:K0,inertia:K0,tween:lu,keyframes:lu,spring:B0},$E=t=>t/100;class Lh extends R0{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:i,element:r,keyframes:s}=this.options,o=(r==null?void 0:r.KeyframeResolver)||Th,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new o(s,a,n,i,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:n="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:s,velocity:o=0}=this.options,a=ah(n)?n:TE[n]||lu;let l,u;a!==lu&&typeof e[0]!="number"&&(l=Ao($E,I0(e[0],e[1])),e=[0,100]);const c=a(V(k({},this.options),{keyframes:e}));s==="mirror"&&(u=a(V(k({},this.options),{keyframes:[...e].reverse(),velocity:-o}))),c.calculatedDuration===null&&(c.calculatedDuration=Wb(c));const{calculatedDuration:d}=c,f=d+r,h=f*(i+1)-r;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:f,totalDuration:h}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:i}=this;if(!i){const{keyframes:T}=this.options;return{done:!0,value:T[T.length-1]}}const{finalKeyframe:r,generator:s,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:d}=i;if(this.startTime===null)return s.next(0);const{delay:f,repeat:h,repeatType:m,repeatDelay:y,onUpdate:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-c/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const p=this.currentTime-f*(this.speed>=0?1:-1),g=this.speed>=0?p<0:p>c;this.currentTime=Math.max(p,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let b=this.currentTime,S=s;if(h){const T=Math.min(this.currentTime,c)/d;let P=Math.floor(T),M=T%1;!M&&T>=1&&(M=1),M===1&&P--,P=Math.min(P,h+1),!!(P%2)&&(m==="reverse"?(M=1-M,y&&(M-=y/d)):m==="mirror"&&(S=o)),b=bn(0,1,M)*d}const w=g?{done:!1,value:l[0]}:S.next(b);a&&(w.value=a(w.value));let{done:C}=w;!g&&u!==null&&(C=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const L=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&C);return L&&r!==void 0&&(w.value=ou(l,this.options,r)),x&&x(w.value),L&&this.finish(),w}get duration(){const{resolved:e}=this;return e?zn(e.calculatedDuration):0}get time(){return zn(this.currentTime)}set time(e){e=Vn(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=zn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=CE,onPlay:n,startTime:i}=this.options;this.driver||(this.driver=e(s=>this.tick(s))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=r):this.startTime=i!=null?i:this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const EE=new Set(["opacity","clipPath","filter","transform"]);function ME(t,e,n,{delay:i=0,duration:r=300,repeat:s=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){const u={[e]:n};l&&(u.offset=l);const c=Xb(a,r);return Array.isArray(c)&&(u.easing=c),t.animate(u,{delay:i,duration:r,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"})}const DE=Kf(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),uu=10,AE=2e4;function LE(t){return ah(t.type)||t.type==="spring"||!Gb(t.ease)}function RE(t,e){const n=new Lh(V(k({},e),{keyframes:t,repeat:0,delay:0,isGenerator:!0}));let i={done:!1,value:t[0]};const r=[];let s=0;for(;!i.done&&sthis.onKeyframesResolved(o,a),n,i,r),this.resolver.scheduleResolve()}initPlayback(e,n){let{duration:i=300,times:r,ease:s,type:o,motionValue:a,name:l,startTime:u}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof s=="string"&&ru()&&FE(s)&&(s=X0[s]),LE(this.options)){const d=this.options,{onComplete:f,onUpdate:h,motionValue:m,element:y}=d,x=se(d,["onComplete","onUpdate","motionValue","element"]),p=RE(e,x);e=p.keyframes,e.length===1&&(e[1]=e[0]),i=p.duration,r=p.times,s=p.ease,o="keyframes"}const c=ME(a.owner.current,l,e,V(k({},this.options),{duration:i,times:r,ease:s}));return c.startTime=u!=null?u:this.calcStartTime(),this.pendingTimeline?(Ub(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:f}=this.options;a.set(ou(e,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:i,times:r,type:o,ease:s,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return zn(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return zn(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.currentTime=Vn(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return dt;const{animation:i}=n;Ub(i,e)}return dt}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:i,duration:r,type:s,ease:o,times:a}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const u=this.options,{motionValue:c,onUpdate:d,onComplete:f,element:h}=u,m=se(u,["motionValue","onUpdate","onComplete","element"]),y=new Lh(V(k({},m),{keyframes:i,duration:r,type:s,ease:o,times:a,isGenerator:!0})),x=Vn(this.time);c.setWithVelocity(y.sample(x-uu).value,y.sample(x).value,uu)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:i,repeatDelay:r,repeatType:s,damping:o,type:a}=e;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=n.owner.getProps();return DE()&&i&&EE.has(i)&&!l&&!u&&!r&&s!=="mirror"&&o!==0&&a!=="inertia"}}const NE={type:"spring",stiffness:500,damping:25,restSpeed:10},jE=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),IE={type:"keyframes",duration:.8},OE={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},VE=(t,{keyframes:e})=>e.length>2?IE:rr.has(t)?t.startsWith("scale")?jE(e[1]):NE:OE;function zE(d){var f=d,{when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:r,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u}=f,c=se(f,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);return!!Object.keys(c).length}const Rh=(t,e,n,i={},r,s)=>o=>{const a=sh(i,t)||{},l=a.delay||i.delay||0;let{elapsed:u=0}=i;u=u-Vn(l);let c=V(k({keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity()},a),{delay:-u,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:s?void 0:r});zE(a)||(c=k(k({},c),VE(t,c))),c.duration&&(c.duration=Vn(c.duration)),c.repeatDelay&&(c.repeatDelay=Vn(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(d=!0)),d&&!s&&e.get()!==void 0){const f=ou(c.keyframes,a);if(f!==void 0)return he.update(()=>{c.onUpdate(f),c.onComplete()}),new d2([])}return!s&&q0.supports(c)?new q0(c):new Lh(c)};function BE({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,i}function Q0(t,e,{delay:n=0,transitionOverride:i,type:r}={}){var s;let d=e,{transition:o=t.getDefaultTransition(),transitionEnd:a}=d,l=se(d,["transition","transitionEnd"]);i&&(o=i);const u=[],c=r&&t.animationState&&t.animationState.getState()[r];for(const f in l){const h=t.getValue(f,(s=t.latestValues[f])!==null&&s!==void 0?s:null),m=l[f];if(m===void 0||c&&BE(c,f))continue;const y=k({delay:n},sh(o||{},f));let x=!1;if(window.MotionHandoffAnimation){const g=s0(t);if(g){const b=window.MotionHandoffAnimation(g,f,he);b!==null&&(y.startTime=b,x=!0)}}gh(t,f),h.start(Rh(f,h,m,t.shouldReduceMotion&&i0.has(f)?{type:!1}:y,t,x));const p=h.animation;p&&u.push(p)}return a&&Promise.all(u).then(()=>{he.update(()=>{a&&P2(t,a)})}),u}function Fh(t,e,n={}){var i;const r=iu(t,e,n.type==="exit"?(i=t.presenceContext)===null||i===void 0?void 0:i.custom:void 0);let{transition:s=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(s=n.transitionOverride);const o=r?()=>Promise.all(Q0(t,r,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=s;return KE(t,e,c+u,d,f,n)}:()=>Promise.resolve(),{when:l}=s;if(l){const[u,c]=l==="beforeChildren"?[o,a]:[a,o];return u().then(()=>c())}else return Promise.all([o(),a(n.delay)])}function KE(t,e,n=0,i=0,r=1,s){const o=[],a=(t.variantChildren.size-1)*i,l=r===1?(u=0)=>u*i:(u=0)=>a-u*i;return Array.from(t.variantChildren).sort(HE).forEach((u,c)=>{u.notify("AnimationStart",e),o.push(Fh(u,e,V(k({},s),{delay:n+l(c)})).then(()=>u.notify("AnimationComplete",e)))}),Promise.all(o)}function HE(t,e){return t.sortNodePosition(e)}function WE(t,e,n={}){t.notify("AnimationStart",e);let i;if(Array.isArray(e)){const r=e.map(s=>Fh(t,s,n));i=Promise.all(r)}else if(typeof e=="string")i=Fh(t,e,n);else{const r=typeof e=="function"?iu(t,e,n.custom):e;i=Promise.all(Q0(t,r,n))}return i.then(()=>{t.notify("AnimationComplete",e)})}const UE=Uf.length;function Z0(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?Z0(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;nPromise.all(e.map(({animation:n,options:i})=>WE(t,n,i)))}function qE(t){let e=XE(t),n=J0(),i=!0;const r=l=>(u,c)=>{var d;const f=iu(t,c,l==="exit"?(d=t.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const h=f,{transition:m,transitionEnd:y}=h,x=se(h,["transition","transitionEnd"]);u=k(k(k({},u),x),y)}return u};function s(l){e=l(t)}function o(l){const{props:u}=t,c=Z0(t.parent)||{},d=[],f=new Set;let h={},m=1/0;for(let x=0;xm&&S,P=!1;const M=Array.isArray(b)?b:[b];let j=M.reduce(r(p),{});w===!1&&(j={});const{prevResolvedValues:$={}}=g,F=k(k({},$),j),D=B=>{T=!0,f.has(B)&&(P=!0,f.delete(B)),g.needsAnimating[B]=!0;const E=t.getValue(B);E&&(E.liveStyle=!1)};for(const B in F){const E=j[B],z=$[B];if(h.hasOwnProperty(B))continue;let H=!1;Qf(E)&&Qf(z)?H=!Kb(E,z):H=E!==z,H?E!=null?D(B):f.add(B):E!==void 0&&f.has(B)?D(B):g.protectedKeys[B]=!0}g.prevProp=b,g.prevResolvedValues=j,g.isActive&&(h=k(k({},h),j)),i&&t.blockInitialAnimation&&(T=!1),T&&(!(C&&L)||P)&&d.push(...M.map(B=>({animation:B,options:{type:p}})))}if(f.size){const x={};f.forEach(p=>{const g=t.getBaseTarget(p),b=t.getValue(p);b&&(b.liveStyle=!0),x[p]=g!=null?g:null}),d.push({animation:x})}let y=!!d.length;return i&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(y=!1),i=!1,y?e(d):Promise.resolve()}function a(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=t.variantChildren)===null||c===void 0||c.forEach(f=>{var h;return(h=f.animationState)===null||h===void 0?void 0:h.setActive(l,u)}),n[l].isActive=u;const d=o(l);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:o,setActive:a,setAnimateFunction:s,getState:()=>n,reset:()=>{n=J0(),i=!0}}}function QE(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Kb(e,t):!1}function ar(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function J0(){return{animate:ar(!0),whileInView:ar(),whileHover:ar(),whileTap:ar(),whileDrag:ar(),whileFocus:ar(),exit:ar()}}class ki{constructor(e){this.isMounted=!1,this.node=e}update(){}}class ZE extends ki{constructor(e){super(e),e.animationState||(e.animationState=qE(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Zl(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}}let JE=0;class eM extends ki{constructor(){super(...arguments),this.id=JE++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const r=this.node.animationState.setActive("exit",!e);n&&!e&&r.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const tM={animation:{Feature:ZE},exit:{Feature:eM}};function Lo(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function Ro(t){return{point:{x:t.pageX,y:t.pageY}}}const nM=t=>e=>ch(e)&&t(e,Ro(e));function Fo(t,e,n,i){return Lo(t,e,nM(n),i)}const ex=(t,e)=>Math.abs(t-e);function iM(t,e){const n=ex(t.x,e.x),i=ex(t.y,e.y);return Math.sqrt(qm(n,2)+qm(i,2))}class tx{constructor(e,n,{transformPagePoint:i,contextWindow:r,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=jh(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,h=iM(d.offset,{x:0,y:0})>=3;if(!f&&!h)return;const{point:m}=d,{timestamp:y}=He;this.history.push(V(k({},m),{timestamp:y}));const{onStart:x,onMove:p}=this.handlers;f||(x&&x(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),p&&p(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Nh(f,this.transformPagePoint),he.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:h,onSessionEnd:m,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=jh(d.type==="pointercancel"?this.lastMoveEventInfo:Nh(f,this.transformPagePoint),this.history);this.startEvent&&h&&h(d,x),m&&m(d,x)},!ch(e))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=i,this.contextWindow=r||window;const o=Ro(e),a=Nh(o,this.transformPagePoint),{point:l}=a,{timestamp:u}=He;this.history=[V(k({},l),{timestamp:u})];const{onSessionStart:c}=n;c&&c(e,jh(a,this.history)),this.removeListeners=Ao(Fo(this.contextWindow,"pointermove",this.handlePointerMove),Fo(this.contextWindow,"pointerup",this.handlePointerUp),Fo(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),vn(this.updatePoint)}}function Nh(t,e){return e?{point:e(t.point)}:t}function nx(t,e){return{x:t.x-e.x,y:t.y-e.y}}function jh({point:t},e){return{point:t,delta:nx(t,ix(e)),offset:nx(t,rM(e)),velocity:sM(e,.1)}}function rM(t){return t[0]}function ix(t){return t[t.length-1]}function sM(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const r=ix(t);for(;n>=0&&(i=t[n],!(r.timestamp-i.timestamp>Vn(e)));)n--;if(!i)return{x:0,y:0};const s=zn(r.timestamp-i.timestamp);if(s===0)return{x:0,y:0};const o={x:(r.x-i.x)/s,y:(r.y-i.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const rx=1e-4,oM=1-rx,aM=1+rx,sx=.01,lM=0-sx,uM=0+sx;function Rt(t){return t.max-t.min}function cM(t,e,n){return Math.abs(t-e)<=n}function ox(t,e,n,i=.5){t.origin=i,t.originPoint=Ee(e.min,e.max,t.origin),t.scale=Rt(n)/Rt(e),t.translate=Ee(n.min,n.max,t.origin)-t.originPoint,(t.scale>=oM&&t.scale<=aM||isNaN(t.scale))&&(t.scale=1),(t.translate>=lM&&t.translate<=uM||isNaN(t.translate))&&(t.translate=0)}function No(t,e,n,i){ox(t.x,e.x,n.x,i?i.originX:void 0),ox(t.y,e.y,n.y,i?i.originY:void 0)}function ax(t,e,n){t.min=n.min+e.min,t.max=t.min+Rt(e)}function dM(t,e,n){ax(t.x,e.x,n.x),ax(t.y,e.y,n.y)}function lx(t,e,n){t.min=e.min-n.min,t.max=t.min+Rt(e)}function jo(t,e,n){lx(t.x,e.x,n.x),lx(t.y,e.y,n.y)}function fM(t,{min:e,max:n},i){return e!==void 0&&tn&&(t=i?Ee(n,t,i.max):Math.min(t,n)),t}function ux(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function hM(t,{top:e,left:n,bottom:i,right:r}){return{x:ux(t.x,n,r),y:ux(t.y,e,i)}}function cx(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.mini?n=ir(e.min,e.max-i,t.min):i>r&&(n=ir(t.min,t.max-r,e.min)),bn(0,1,n)}function gM(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Ih=.35;function yM(t=Ih){return t===!1?t=0:t===!0&&(t=Ih),{x:dx(t,"left","right"),y:dx(t,"top","bottom")}}function dx(t,e,n){return{min:fx(t,e),max:fx(t,n)}}function fx(t,e){return typeof t=="number"?t:t[e]||0}const hx=()=>({translate:0,scale:1,origin:0,originPoint:0}),us=()=>({x:hx(),y:hx()}),px=()=>({min:0,max:0}),Fe=()=>({x:px(),y:px()});function Gt(t){return[t("x"),t("y")]}function mx({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function vM({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function bM(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function Oh(t){return t===void 0||t===1}function Vh({scale:t,scaleX:e,scaleY:n}){return!Oh(t)||!Oh(e)||!Oh(n)}function lr(t){return Vh(t)||gx(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function gx(t){return yx(t.x)||yx(t.y)}function yx(t){return t&&t!=="0%"}function cu(t,e,n){const i=t-n,r=e*i;return n+r}function vx(t,e,n,i,r){return r!==void 0&&(t=cu(t,r,i)),cu(t,n,i)+e}function zh(t,e=0,n=1,i,r){t.min=vx(t.min,e,n,i,r),t.max=vx(t.max,e,n,i,r)}function bx(t,{x:e,y:n}){zh(t.x,e.translate,e.scale,e.originPoint),zh(t.y,n.translate,n.scale,n.originPoint)}const xx=.999999999999,_x=1.0000000000001;function xM(t,e,n,i=!1){const r=n.length;if(!r)return;e.x=e.y=1;let s,o;for(let a=0;axx&&(e.x=1),e.y<_x&&e.y>xx&&(e.y=1)}function cs(t,e){t.min=t.min+e,t.max=t.max+e}function wx(t,e,n,i,r=.5){const s=Ee(t.min,t.max,r);zh(t,e,n,s,i)}function ds(t,e){wx(t.x,e.x,e.scaleX,e.scale,e.originX),wx(t.y,e.y,e.scaleY,e.scale,e.originY)}function Sx(t,e){return mx(bM(t.getBoundingClientRect(),e))}function _M(t,e,n){const i=Sx(t,n),{scroll:r}=e;return r&&(cs(i.x,r.offset.x),cs(i.y,r.offset.y)),i}const Px=({current:t})=>t?t.ownerDocument.defaultView:null,wM=new WeakMap;class SM{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Fe(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const r=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ro(c).point)},s=(c,d)=>{const{drag:f,dragPropagation:h,onDragStart:m}=this.getProps();if(f&&!h&&(this.openDragLock&&this.openDragLock(),this.openDragLock=b2(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Gt(x=>{let p=this.getAxisMotionValue(x).get()||0;if(xn.test(p)){const{projection:g}=this.visualElement;if(g&&g.layout){const b=g.layout.layoutBox[x];b&&(p=Rt(b)*(parseFloat(p)/100))}}this.originPoint[x]=p}),m&&he.postRender(()=>m(c,d)),gh(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},o=(c,d)=>{const{dragPropagation:f,dragDirectionLock:h,onDirectionLock:m,onDrag:y}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:x}=d;if(h&&this.currentDirection===null){this.currentDirection=PM(x),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",d.point,x),this.updateAxis("y",d.point,x),this.visualElement.render(),y&&y(c,d)},a=(c,d)=>this.stop(c,d),l=()=>Gt(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new tx(e,{onSessionStart:r,onStart:s,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Px(this.visualElement)})}stop(e,n){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:r}=n;this.startAnimation(r);const{onDragEnd:s}=this.getProps();s&&he.postRender(()=>s(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,i){const{drag:r}=this.getProps();if(!i||!du(e,r,this.currentDirection))return;const s=this.getAxisMotionValue(e);let o=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(o=fM(o,this.constraints[e],this.elastic[e])),s.set(o)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:i}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,s=this.constraints;n&&rs(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&r?this.constraints=hM(r.layoutBox,n):this.constraints=!1,this.elastic=yM(i),s!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Gt(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=gM(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!rs(e))return!1;const i=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const s=_M(i,r.root,this.visualElement.getTransformPagePoint());let o=pM(r.layout.layoutBox,s);if(n){const a=n(vM(o));this.hasMutatedConstraints=!!a,a&&(o=mx(a))}return o}startAnimation(e){const{drag:n,dragMomentum:i,dragElastic:r,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Gt(c=>{if(!du(c,n,this.currentDirection))return;let d=l[c]||{};o&&(d={min:0,max:0});const f=r?200:1e6,h=r?40:1e7,m=k(k({type:"inertia",velocity:i?e[c]:0,bounceStiffness:f,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10},s),d);return this.startAxisValueAnimation(c,m)});return Promise.all(u).then(a)}startAxisValueAnimation(e,n){const i=this.getAxisMotionValue(e);return gh(this.visualElement,e),i.start(Rh(e,i,0,n,this.visualElement,!1))}stopAnimation(){Gt(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Gt(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps(),r=i[n];return r||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){Gt(n=>{const{drag:i}=this.getProps();if(!du(n,i,this.currentDirection))return;const{projection:r}=this.visualElement,s=this.getAxisMotionValue(n);if(r&&r.layout){const{min:o,max:a}=r.layout.layoutBox[n];s.set(e[n]-Ee(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!rs(n)||!i||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Gt(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();r[o]=mM({min:l,max:l},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),Gt(o=>{if(!du(o,e,null))return;const a=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];a.set(Ee(l,u,r[o]))})}addListeners(){if(!this.visualElement.current)return;wM.set(this.visualElement,this);const e=this.visualElement.current,n=Fo(e,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),i=()=>{const{dragConstraints:l}=this.getProps();rs(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,s=r.addEventListener("measure",i);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),he.read(i);const o=Lo(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Gt(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{o(),n(),s(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:r=!1,dragConstraints:s=!1,dragElastic:o=Ih,dragMomentum:a=!0}=e;return V(k({},e),{drag:n,dragDirectionLock:i,dragPropagation:r,dragConstraints:s,dragElastic:o,dragMomentum:a})}}function du(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function PM(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class kM extends ki{constructor(e){super(e),this.removeGroupControls=dt,this.removeListeners=dt,this.controls=new SM(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||dt}unmount(){this.removeGroupControls(),this.removeListeners()}}const kx=t=>(e,n)=>{t&&he.postRender(()=>t(e,n))};class CM extends ki{constructor(){super(...arguments),this.removePointerDownListener=dt}onPointerDown(e){this.session=new tx(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Px(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:kx(e),onStart:kx(n),onMove:i,onEnd:(s,o)=>{delete this.session,r&&he.postRender(()=>r(s,o))}}}mount(){this.removePointerDownListener=Fo(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const fu={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Cx(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Io={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(q.test(t))t=parseFloat(t);else return t;const n=Cx(t,e.target.x),i=Cx(t,e.target.y);return`${n}% ${i}%`}},TM={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,r=Pi.parse(t);if(r.length>5)return i;const s=Pi.createTransformer(t),o=typeof r[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;r[0+o]/=a,r[1+o]/=l;const u=Ee(a,l,.5);return typeof r[2+o]=="number"&&(r[2+o]/=u),typeof r[3+o]=="number"&&(r[3+o]/=u),s(r)}};class $M extends _.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i,layoutId:r}=this.props,{projection:s}=e;e2(EM),s&&(n.group&&n.group.add(s),i&&i.register&&r&&i.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions(V(k({},s.options),{onExitComplete:()=>this.safeToRemove()}))),fu.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:i,drag:r,isPresent:s}=this.props,o=i.projection;return o&&(o.isPresent=s,r||e.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),e.isPresent!==s&&(s?o.promote():o.relegate()||he.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Gf.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(r),i&&i.deregister&&i.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Tx(t){const[e,n]=gb(),i=_.useContext(If);return v.jsx($M,V(k({},t),{layoutGroup:i,switchLayoutGroup:_.useContext(kb),isPresent:e,safeToRemove:n}))}const EM={borderRadius:V(k({},Io),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Io,borderTopRightRadius:Io,borderBottomLeftRadius:Io,borderBottomRightRadius:Io,boxShadow:TM};function MM(t,e,n){const i=it(t)?t:Bn(t);return i.start(Rh("",i,e,n)),i.animation}function DM(t){return t instanceof SVGElement&&t.tagName!=="svg"}const AM=(t,e)=>t.depth-e.depth;class LM{constructor(){this.children=[],this.isDirty=!1}add(e){fh(this.children,e),this.isDirty=!0}remove(e){hh(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(AM),this.isDirty=!1,this.children.forEach(e)}}function RM(t,e){const n=_n.now(),i=({timestamp:r})=>{const s=r-n;s>=e&&(vn(i),t(s-e))};return he.read(i,!0),()=>vn(i)}const $x=["TopLeft","TopRight","BottomLeft","BottomRight"],FM=$x.length,Ex=t=>typeof t=="string"?parseFloat(t):t,Mx=t=>typeof t=="number"||q.test(t);function NM(t,e,n,i,r,s){r?(t.opacity=Ee(0,n.opacity!==void 0?n.opacity:1,jM(i)),t.opacityExit=Ee(e.opacity!==void 0?e.opacity:1,0,IM(i))):s&&(t.opacity=Ee(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,i));for(let o=0;oie?1:n(ir(t,e,i))}function Lx(t,e){t.min=e.min,t.max=e.max}function Xt(t,e){Lx(t.x,e.x),Lx(t.y,e.y)}function Rx(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function Fx(t,e,n,i,r){return t-=e,t=cu(t,1/n,i),r!==void 0&&(t=cu(t,1/r,i)),t}function OM(t,e=0,n=1,i=.5,r,s=t,o=t){if(xn.test(e)&&(e=parseFloat(e),e=Ee(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=Ee(s.min,s.max,i);t===s&&(a-=e),t.min=Fx(t.min,e,n,a,r),t.max=Fx(t.max,e,n,a,r)}function Nx(t,e,[n,i,r],s,o){OM(t,e[n],e[i],e[r],e.scale,s,o)}const VM=["x","scaleX","originX"],zM=["y","scaleY","originY"];function jx(t,e,n,i){Nx(t.x,e,VM,n?n.x:void 0,i?i.x:void 0),Nx(t.y,e,zM,n?n.y:void 0,i?i.y:void 0)}function Ix(t){return t.translate===0&&t.scale===1}function Ox(t){return Ix(t.x)&&Ix(t.y)}function Vx(t,e){return t.min===e.min&&t.max===e.max}function BM(t,e){return Vx(t.x,e.x)&&Vx(t.y,e.y)}function zx(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Bx(t,e){return zx(t.x,e.x)&&zx(t.y,e.y)}function Kx(t){return Rt(t.x)/Rt(t.y)}function Hx(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class KM{constructor(){this.members=[]}add(e){fh(this.members,e),e.scheduleRender()}remove(e){if(hh(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(r=>e===r);if(n===0)return!1;let i;for(let r=n;r>=0;r--){const s=this.members[r];if(s.isPresent!==!1){i=s;break}}return i?(this.promote(i),!0):!1}promote(e,n){const i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender(),e.resumeFrom=i,n&&(e.resumeFrom.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;r===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:i}=e;n.onExitComplete&&n.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function HM(t,e,n){let i="";const r=t.x.translate/e.x,s=t.y.translate/e.y,o=(n==null?void 0:n.z)||0;if((r||s||o)&&(i=`translate3d(${r}px, ${s}px, ${o}px) `),(e.x!==1||e.y!==1)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:d,rotateY:f,skewX:h,skewY:m}=n;u&&(i=`perspective(${u}px) ${i}`),c&&(i+=`rotate(${c}deg) `),d&&(i+=`rotateX(${d}deg) `),f&&(i+=`rotateY(${f}deg) `),h&&(i+=`skewX(${h}deg) `),m&&(i+=`skewY(${m}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(i+=`scale(${a}, ${l})`),i||"none"}const ur={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Oo=typeof window!="undefined"&&window.MotionDebug!==void 0,Bh=["","X","Y","Z"],WM={visibility:"hidden"},Wx=1e3;let UM=0;function Kh(t,e,n,i){const{latestValues:r}=e;r[t]&&(n[t]=r[t],e.setStaticValue(t,0),i&&(i[t]=0))}function Ux(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=s0(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:r,layoutId:s}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",he,!(r||s))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&Ux(i)}function Yx({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:r}){return class{constructor(o={},a=e==null?void 0:e()){this.id=UM++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Oo&&(ur.totalNodes=ur.resolvedTargetDeltas=ur.recalculatedProjection=0),this.nodes.forEach(XM),this.nodes.forEach(eD),this.nodes.forEach(tD),this.nodes.forEach(qM),Oo&&window.MotionDebug.record(ur)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;t(o,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=RM(f,250),fu.hasAnimatedSinceResize&&(fu.hasAnimatedSinceResize=!1,this.nodes.forEach(Xx))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:h,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||c.getDefaultTransition()||oD,{onLayoutAnimationStart:x,onLayoutAnimationComplete:p}=c.getProps(),g=!this.targetLayout||!Bx(this.targetLayout,m)||h,b=!f&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||b||f&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,b);const S=V(k({},sh(y,"layout")),{onPlay:x,onComplete:p});(c.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else f||Xx(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,vn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(nD),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Ux(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const w=S/1e3;qx(d.x,o.x,w),qx(d.y,o.y,w),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(jo(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),rD(this.relativeTarget,this.relativeTargetOrigin,f,w),b&&BM(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=Fe()),Xt(b,this.relativeTarget)),y&&(this.animationValues=c,NM(c,u,this.latestValues,w,g,p)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(vn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=he.update(()=>{fu.hasAnimatedSinceResize=!0,this.currentAnimation=MM(0,Wx,V(k({},o),{onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}})),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Wx),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=o;if(!(!a||!l||!u)){if(this!==o&&this.layout&&u&&t_(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Fe();const d=Rt(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+d;const f=Rt(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+f}Xt(a,l),ds(a,c),No(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new KM),this.sharedNodes.get(o).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&Kh("z",o,u,this.animationValues);for(let c=0;c{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Gx),this.root.sharedNodes.clear()}}}function YM(t){t.updateLayout()}function GM(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:r}=t.layout,{animationType:s}=t.options,o=n.source!==t.layout.source;s==="size"?Gt(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],h=Rt(f);f.min=i[d].min,f.max=f.min+h}):t_(s,n.layoutBox,i)&&Gt(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],h=Rt(i[d]);f.max=f.min+h,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[d].max=t.relativeTarget[d].min+h)});const a=us();No(a,i,n.layoutBox);const l=us();o?No(l,t.applyTransform(r,!0),n.measuredBox):No(l,i,n.layoutBox);const u=!Ox(a);let c=!1;if(!t.resumeFrom){const d=t.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:h}=d;if(f&&h){const m=Fe();jo(m,n.layoutBox,f.layoutBox);const y=Fe();jo(y,i,h.layoutBox),Bx(m,y)||(c=!0),d.options.layoutRoot&&(t.relativeTarget=y,t.relativeTargetOrigin=m,t.relativeParent=d)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(t.isLead()){const{onExitComplete:i}=t.options;i&&i()}t.options.transition=void 0}function XM(t){Oo&&ur.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function qM(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function QM(t){t.clearSnapshot()}function Gx(t){t.clearMeasurements()}function ZM(t){t.isLayoutDirty=!1}function JM(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Xx(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function eD(t){t.resolveTargetDelta()}function tD(t){t.calcProjection()}function nD(t){t.resetSkewAndRotation()}function iD(t){t.removeLeadSnapshot()}function qx(t,e,n){t.translate=Ee(e.translate,0,n),t.scale=Ee(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Qx(t,e,n,i){t.min=Ee(e.min,n.min,i),t.max=Ee(e.max,n.max,i)}function rD(t,e,n,i){Qx(t.x,e.x,n.x,i),Qx(t.y,e.y,n.y,i)}function sD(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const oD={duration:.45,ease:[.4,0,.1,1]},Zx=t=>typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Jx=Zx("applewebkit/")&&!Zx("chrome/")?Math.round:dt;function e_(t){t.min=Jx(t.min),t.max=Jx(t.max)}function aD(t){e_(t.x),e_(t.y)}function t_(t,e,n){return t==="position"||t==="preserve-aspect"&&!cM(Kx(e),Kx(n),.2)}function lD(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const uD=Yx({attachResizeListener:(t,e)=>Lo(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Hh={current:void 0},n_=Yx({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Hh.current){const t=new uD({});t.mount(window),t.setOptions({layoutScroll:!0}),Hh.current=t}return Hh.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),cD={pan:{Feature:CM},drag:{Feature:kM,ProjectionNode:n_,MeasureLayout:Tx}};function i_(t,e,n){const{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover",n==="Start");const r="onHover"+n,s=i[r];s&&he.postRender(()=>s(e,Ro(e)))}class dD extends ki{mount(){const{current:e}=this.node;e&&(this.unmount=p2(e,n=>(i_(this.node,n,"Start"),i=>i_(this.node,i,"End"))))}unmount(){}}class fD extends ki{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(n){e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ao(Lo(this.node.current,"focus",()=>this.onFocus()),Lo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function r_(t,e,n){const{props:i}=t;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap",n==="Start");const r="onTap"+(n==="End"?"":n),s=i[r];s&&he.postRender(()=>s(e,Ro(e)))}class hD extends ki{mount(){const{current:e}=this.node;e&&(this.unmount=v2(e,n=>(r_(this.node,n,"Start"),(i,{success:r})=>r_(this.node,i,r?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Wh=new WeakMap,Uh=new WeakMap,pD=t=>{const e=Wh.get(t.target);e&&e(t)},mD=t=>{t.forEach(pD)};function gD(n){var i=n,{root:t}=i,e=se(i,["root"]);const r=t||document;Uh.has(r)||Uh.set(r,{});const s=Uh.get(r),o=JSON.stringify(e);return s[o]||(s[o]=new IntersectionObserver(mD,k({root:t},e))),s[o]}function yD(t,e,n){const i=gD(e);return Wh.set(t,n),i.observe(t),()=>{Wh.delete(t),i.unobserve(t)}}const vD={some:0,all:1};class bD extends ki{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:i,amount:r="some",once:s}=e,o={root:n?n.current:void 0,rootMargin:i,threshold:typeof r=="number"?r:vD[r]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return yD(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver=="undefined")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(xD(e,n))&&this.startObserver()}unmount(){}}function xD({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const _D={inView:{Feature:bD},tap:{Feature:hD},focus:{Feature:fD},hover:{Feature:dD}},wD={layout:{ProjectionNode:n_,MeasureLayout:Tx}},Yh={current:null},s_={current:!1};function SD(){if(s_.current=!0,!!Vf)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Yh.current=t.matches;t.addListener(e),e()}else Yh.current=!1}const PD=[...M0,rt,Pi],kD=t=>PD.find(E0(t)),o_=new WeakMap;function CD(t,e,n){for(const i in e){const r=e[i],s=n[i];if(it(r))t.addValue(i,r);else if(it(s))t.addValue(i,Bn(r,{owner:t}));else if(s!==r)if(t.hasValue(i)){const o=t.getValue(i);o.liveStyle===!0?o.jump(r):o.hasAnimated||o.set(r)}else{const o=t.getStaticValue(i);t.addValue(i,Bn(o!==void 0?o:r,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const a_=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class TD{scrapeMotionValuesFromProps(e,n,i){return{}}constructor({parent:e,props:n,presenceContext:i,reducedMotionConfig:r,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Th,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const m=_n.now();this.renderScheduledAtthis.bindToMotionValue(i,n)),s_.current||SD(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Yh.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){o_.delete(this.current),this.projection&&this.projection.unmount(),vn(this.notifyUpdate),vn(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const i=rr.has(e),r=n.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&he.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{r(),s(),o&&o(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in is){const n=is[e];if(!n)continue;const{isEnabled:i,Feature:r}=n;if(!this.features[e]&&r&&i(this.props)&&(this.features[e]=new r(this)),this.features[e]){const s=this.features[e];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Fe()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let i=0;in.variantChildren.delete(e)}addValue(e,n){const i=this.values.get(e);n!==i&&(i&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return i===void 0&&n!==void 0&&(i=Bn(n===null?void 0:n,{owner:this}),this.addValue(e,i)),i}readValue(e,n){var i;let r=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(i=this.getBaseTargetFromProps(this.props,e))!==null&&i!==void 0?i:this.readValueFromInstance(this.current,e,this.options);return r!=null&&(typeof r=="string"&&(T0(r)||p0(r))?r=parseFloat(r):!kD(r)&&Pi.test(n)&&(r=_0(e,n)),this.setBaseTarget(e,it(r)?r.get():r)),it(r)?r.get():r}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:i}=this.props;let r;if(typeof i=="string"||typeof i=="object"){const o=qf(this.props,i,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(r=o[e])}if(i&&r!==void 0)return r;const s=this.getBaseTargetFromProps(this.props,e);return s!==void 0&&!it(s)?s:this.initialValues[e]!==void 0&&r===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new ph),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class l_ extends TD{constructor(){super(...arguments),this.KeyframeResolver=A0}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:i}){delete n[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;it(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function $D(t){return window.getComputedStyle(t)}class ED extends l_{constructor(){super(...arguments),this.type="html",this.renderInstance=Nb}readValueFromInstance(e,n){if(rr.has(n)){const i=Ph(n);return i&&i.default||0}else{const i=$D(e),r=(Mb(n)?i.getPropertyValue(n):i[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Sx(e,n)}build(e,n,i){eh(e,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,n,i){return rh(e,n,i)}}class MD extends l_{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Fe}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(rr.has(n)){const i=Ph(n);return i&&i.default||0}return n=jb.has(n)?n:Yf(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,i){return Vb(e,n,i)}build(e,n,i){th(e,n,this.isSVGTag,i.transformTemplate)}renderInstance(e,n,i,r){Ib(e,n,i,r)}mount(e){this.isSVGTag=ih(e.tagName),super.mount(e)}}const DD=(t,e)=>Xf(t)?new MD(e):new ED(e,{allowProjection:t!==_.Fragment}),AD=u2(k(k(k(k({},tM),_D),cD),wD),DD),cr=k$(AD);function u_(t,e,n){_.useInsertionEffect(()=>t.on(e,n),[t,e,n])}function c_(t,e){let n;const i=()=>{const{currentTime:r}=e,o=(r===null?0:r.value)/100;n!==o&&t(o),n=o};return he.update(i,!0),()=>vn(i)}const hu=new WeakMap;let Ci;function LD(t,e){if(e){const{inlineSize:n,blockSize:i}=e[0];return{width:n,height:i}}else return t instanceof SVGElement&&"getBBox"in t?t.getBBox():{width:t.offsetWidth,height:t.offsetHeight}}function RD({target:t,contentRect:e,borderBoxSize:n}){var i;(i=hu.get(t))===null||i===void 0||i.forEach(r=>{r({target:t,contentSize:e,get size(){return LD(t,n)}})})}function FD(t){t.forEach(RD)}function ND(){typeof ResizeObserver!="undefined"&&(Ci=new ResizeObserver(FD))}function jD(t,e){Ci||ND();const n=Qb(t);return n.forEach(i=>{let r=hu.get(i);r||(r=new Set,hu.set(i,r)),r.add(e),Ci==null||Ci.observe(i)}),()=>{n.forEach(i=>{const r=hu.get(i);r==null||r.delete(e),r!=null&&r.size||Ci==null||Ci.unobserve(i)})}}const pu=new Set;let Vo;function ID(){Vo=()=>{const t={width:window.innerWidth,height:window.innerHeight},e={target:window,size:t,contentSize:t};pu.forEach(n=>n(e))},window.addEventListener("resize",Vo)}function OD(t){return pu.add(t),Vo||ID(),()=>{pu.delete(t),!pu.size&&Vo&&(Vo=void 0)}}function VD(t,e){return typeof t=="function"?OD(t):jD(t,e)}const zD=50,d_=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),BD=()=>({time:0,x:d_(),y:d_()}),KD={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function f_(t,e,n,i){const r=n[e],{length:s,position:o}=KD[e],a=r.current,l=n.time;r.current=t[`scroll${o}`],r.scrollLength=t[`scroll${s}`]-t[`client${s}`],r.offset.length=0,r.offset[0]=0,r.offset[1]=r.scrollLength,r.progress=ir(0,r.scrollLength,r.current);const u=i-l;r.velocity=u>zD?0:mh(r.current-a,u)}function HD(t,e,n){f_(t,"x",e,n),f_(t,"y",e,n),e.time=n}function WD(t,e){const n={x:0,y:0};let i=t;for(;i&&i!==e;)if(i instanceof HTMLElement)n.x+=i.offsetLeft,n.y+=i.offsetTop,i=i.offsetParent;else if(i.tagName==="svg"){const r=i.getBoundingClientRect();i=i.parentElement;const s=i.getBoundingClientRect();n.x+=r.left-s.left,n.y+=r.top-s.top}else if(i instanceof SVGGraphicsElement){const{x:r,y:s}=i.getBBox();n.x+=r,n.y+=s;let o=null,a=i.parentNode;for(;!o;)a.tagName==="svg"&&(o=a),a=i.parentNode;i=o}else break;return n}const Gh={start:0,center:.5,end:1};function h_(t,e,n=0){let i=0;if(t in Gh&&(t=Gh[t]),typeof t=="string"){const r=parseFloat(t);t.endsWith("px")?i=r:t.endsWith("%")?t=r/100:t.endsWith("vw")?i=r/100*document.documentElement.clientWidth:t.endsWith("vh")?i=r/100*document.documentElement.clientHeight:t=r}return typeof t=="number"&&(i=e*t),n+i}const UD=[0,0];function YD(t,e,n,i){let r=Array.isArray(t)?t:UD,s=0,o=0;return typeof t=="number"?r=[t,t]:typeof t=="string"&&(t=t.trim(),t.includes(" ")?r=t.split(" "):r=[t,Gh[t]?t:"0"]),s=h_(r[0],n,i),o=h_(r[1],e),s-o}const GD={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},XD={x:0,y:0};function qD(t){return"getBBox"in t&&t.tagName!=="svg"?t.getBBox():{width:t.clientWidth,height:t.clientHeight}}function QD(t,e,n){const{offset:i=GD.All}=n,{target:r=t,axis:s="y"}=n,o=s==="y"?"height":"width",a=r!==t?WD(r,t):XD,l=r===t?{width:t.scrollWidth,height:t.scrollHeight}:qD(r),u={width:t.clientWidth,height:t.clientHeight};e[s].offset.length=0;let c=!e[s].interpolate;const d=i.length;for(let f=0;fZD(t,i.target,n),update:r=>{HD(t,n,r),(i.offset||i.target)&&QD(t,n,i)},notify:()=>e(n)}}const zo=new WeakMap,p_=new WeakMap,Xh=new WeakMap,m_=t=>t===document.documentElement?window:t;function qh(t,i={}){var r=i,{container:e=document.documentElement}=r,n=se(r,["container"]);let s=Xh.get(e);s||(s=new Set,Xh.set(e,s));const o=BD(),a=JD(e,t,o,n);if(s.add(a),!zo.has(e)){const u=()=>{for(const m of s)m.measure()},c=()=>{for(const m of s)m.update(He.timestamp)},d=()=>{for(const m of s)m.notify()},f=()=>{he.read(u,!1,!0),he.read(c,!1,!0),he.update(d,!1,!0)};zo.set(e,f);const h=m_(e);window.addEventListener("resize",f,{passive:!0}),e!==document.documentElement&&p_.set(e,VD(e,f)),h.addEventListener("scroll",f,{passive:!0})}const l=zo.get(e);return he.read(l,!1,!0),()=>{var u;vn(l);const c=Xh.get(e);if(!c||(c.delete(a),c.size))return;const d=zo.get(e);zo.delete(e),d&&(m_(e).removeEventListener("scroll",d),(u=p_.get(e))===null||u===void 0||u(),window.removeEventListener("resize",d))}}function e3({source:t,container:e,axis:n="y"}){t&&(e=t);const i={value:0},r=qh(s=>{i.value=s[n].progress*100},{container:e,axis:n});return{currentTime:i,cancel:r}}const Qh=new Map;function g_({source:t,container:e=document.documentElement,axis:n="y"}={}){t&&(e=t),Qh.has(e)||Qh.set(e,{});const i=Qh.get(e);return i[n]||(i[n]=Hb()?new ScrollTimeline({source:e,axis:n}):e3({source:e,axis:n})),i[n]}function t3(t){return t.length===2}function y_(t){return t&&(t.target||t.offset)}function n3(t,e){return t3(t)||y_(e)?qh(n=>{t(n[e.axis].progress,n)},e):c_(t,g_(e))}function i3(t,e){if(t.flatten(),y_(e))return t.pause(),qh(n=>{t.time=t.duration*n[e.axis].progress},e);{const n=g_(e);return t.attachTimeline?t.attachTimeline(n,i=>(i.pause(),c_(r=>{i.time=i.duration*r},n))):dt}}function r3(t,i={}){var r=i,{axis:e="y"}=r,n=se(r,["axis"]);const s=k({axis:e},n);return typeof t=="function"?n3(t,s):i3(t,s)}function v_(t,e){y$(!!(!e||e.current))}const s3=()=>({scrollX:Bn(0),scrollY:Bn(0),scrollXProgress:Bn(0),scrollYProgress:Bn(0)});function b_(r={}){var s=r,{container:t,target:e,layoutEffect:n=!0}=s,i=se(s,["container","target","layoutEffect"]);const o=Ul(s3);return(n?zf:_.useEffect)(()=>(v_("target",e),v_("container",t),r3((l,{x:u,y:c})=>{o.scrollX.set(u.current),o.scrollXProgress.set(u.progress),o.scrollY.set(c.current),o.scrollYProgress.set(c.progress)},V(k({},i),{container:(t==null?void 0:t.current)||void 0,target:(e==null?void 0:e.current)||void 0}))),[t,e,JSON.stringify(i.offset)]),o}const U=({children:t})=>{const[e,n]=_.useState(!1),[i,r]=_.useState(!0),s=_.useRef(null),{scrollXProgress:o}=b_({container:s});return u_(o,"change",a=>{n(a>0),r(a<1)}),v.jsxs("div",{className:"relative w-full rounded-2xl bg-white shadow mb-4",children:[v.jsx(cr.div,{initial:{opacity:0},animate:{opacity:e?1:0},className:"scroll-fader absolute left-0 top-0 z-10 h-full w-[20px] bg-gradient-to-r from-[#ffffff] to-[#ffffff]/0 sm:visible md:visible lg:hidden xl:hidden"}),v.jsx(cr.section,{ref:s,layoutScroll:!0,className:"simpletable--blade relative overflow-x-auto",children:v.jsx("div",{className:"simpletable__table table",style:{padding:0},children:v.jsx("table",{className:"table-auto border-collapse text-left",children:t})})}),v.jsx(cr.div,{initial:{opacity:0},animate:{opacity:i?1:0},className:"scroll-fader absolute right-0 top-0 z-10 h-full w-[20px] bg-gradient-to-l from-[#ffffff] to-[#ffffff]/0 sm:visible md:visible lg:hidden xl:hidden"})]})},o3=({children:t})=>v.jsx("thead",{children:t}),a3=({children:t})=>v.jsx("tr",{role:"row",className:"last:bg-[#F1F3FB]",children:t}),l3=({children:t})=>v.jsx("td",{className:"inline-block min-w-[180px] items-start",role:"cell",children:t}),u3=({children:t})=>v.jsx("th",{className:"inline-block min-w-[180px] items-start font-semibold",role:"columnheader",children:t}),c3=({children:t})=>v.jsx("tbody",{children:t});U.Head=o3,U.Row=a3,U.Cell=l3,U.HeaderCell=u3,U.Body=c3;const Ft=typeof document!="undefined"?Y.useLayoutEffect:()=>{};function je(t){const e=_.useRef(null);return Ft(()=>{e.current=t},[t]),_.useCallback((...n)=>{const i=e.current;return i==null?void 0:i(...n)},[])}function d3(t){let[e,n]=_.useState(t),i=_.useRef(null),r=je(()=>{if(!i.current)return;let o=i.current.next();if(o.done){i.current=null;return}e===o.value?r():n(o.value)});Ft(()=>{i.current&&r()});let s=je(o=>{i.current=o(e),r()});return[e,s]}const Zh={prefix:String(Math.round(Math.random()*1e10)),current:0},x_=Y.createContext(Zh),f3=Y.createContext(!1);let h3=!!(typeof window!="undefined"&&window.document&&window.document.createElement),Jh=new WeakMap;function p3(t=!1){let e=_.useContext(x_),n=_.useRef(null);if(n.current===null&&!t){var i,r;let s=(r=Y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||r===void 0||(i=r.ReactCurrentOwner)===null||i===void 0?void 0:i.current;if(s){let o=Jh.get(s);o==null?Jh.set(s,{id:e.current,state:s.memoizedState}):s.memoizedState!==o.state&&(e.current=o.id,Jh.delete(s))}n.current=++e.current}return n.current}function m3(t){let e=_.useContext(x_);e===Zh&&!h3&&console.warn("When server rendering, you must wrap your application in an to ensure consistent ids are generated between the client and server.");let n=p3(!!t),i=`react-aria${e.prefix}`;return t||`${i}-${n}`}function g3(t){let e=Y.useId(),[n]=_.useState(Bo()),i=n?"react-aria":`react-aria${Zh.prefix}`;return t||`${i}-${e}`}const y3=typeof Y.useId=="function"?g3:m3;function v3(){return!1}function b3(){return!0}function x3(t){return()=>{}}function Bo(){return typeof Y.useSyncExternalStore=="function"?Y.useSyncExternalStore(x3,v3,b3):_.useContext(f3)}let _3=!!(typeof window!="undefined"&&window.document&&window.document.createElement),Ti=new Map;function Kn(t){let[e,n]=_.useState(t),i=_.useRef(null),r=y3(e),s=_.useCallback(o=>{i.current=o},[]);return _3&&(Ti.has(r)&&!Ti.get(r).includes(s)?Ti.set(r,[...Ti.get(r),s]):Ti.set(r,[s])),Ft(()=>{let o=r;return()=>{Ti.delete(o)}},[r]),_.useEffect(()=>{let o=i.current;o&&(i.current=null,n(o))}),r}function w3(t,e){if(t===e)return t;let n=Ti.get(t);if(n)return n.forEach(r=>r(e)),e;let i=Ti.get(e);return i?(i.forEach(r=>r(t)),t):e}function __(t=[]){let e=Kn(),[n,i]=d3(e),r=_.useCallback(()=>{i(function*(){yield e,yield document.getElementById(e)?e:void 0})},[e,i]);return Ft(r,[e,r,...t]),n}function ep(...t){return(...e)=>{for(let n of t)typeof n=="function"&&n(...e)}}const Nt=t=>{var e;return(e=t==null?void 0:t.ownerDocument)!==null&&e!==void 0?e:document},qt=t=>t&&"window"in t&&t.window===t?t:Nt(t).defaultView||window;function w_(t){var e,n,i="";if(typeof t=="string"||typeof t=="number")i+=t;else if(typeof t=="object")if(Array.isArray(t)){var r=t.length;for(e=0;e=65&&r.charCodeAt(2)<=90?e[r]=ep(s,o):(r==="className"||r==="UNSAFE_className")&&typeof s=="string"&&typeof o=="string"?e[r]=S3(s,o):r==="id"&&s&&o?e.id=w3(s,o):e[r]=o!==void 0?o:s}}return e}function P3(...t){return t.length===1&&t[0]?t[0]:e=>{for(let n of t)typeof n=="function"?n(e):n!=null&&(n.current=e)}}const k3=new Set(["id"]),C3=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),T3=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),$3=/^(data-.*)$/;function dn(t,e={}){let{labelable:n,isLink:i,propNames:r}=e,s={};for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(k3.has(o)||n&&C3.has(o)||i&&T3.has(o)||r!=null&&r.has(o)||$3.test(o))&&(s[o]=t[o]);return s}function wn(t){if(E3())t.focus({preventScroll:!0});else{let e=M3(t);t.focus(),D3(e)}}let mu=null;function E3(){if(mu==null){mu=!1;try{document.createElement("div").focus({get preventScroll(){return mu=!0,!0}})}catch(t){}}return mu}function M3(t){let e=t.parentNode,n=[],i=document.scrollingElement||document.documentElement;for(;e instanceof HTMLElement&&e!==i;)(e.offsetHeightt.test(n.brand)))||t.test(window.navigator.userAgent)}function tp(t){var e;return typeof window!="undefined"&&window.navigator!=null?t.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function Hn(t){let e=null;return()=>(e==null&&(e=t()),e)}const dr=Hn(function(){return tp(/^Mac/i)}),S_=Hn(function(){return tp(/^iPhone/i)}),P_=Hn(function(){return tp(/^iPad/i)||dr()&&navigator.maxTouchPoints>1}),yu=Hn(function(){return S_()||P_()}),A3=Hn(function(){return dr()||yu()}),L3=Hn(function(){return gu(/AppleWebKit/i)&&!R3()}),R3=Hn(function(){return gu(/Chrome/i)}),np=Hn(function(){return gu(/Android/i)}),F3=Hn(function(){return gu(/Firefox/i)}),N3=_.createContext({isNative:!0,open:O3,useHref:t=>t});function vu(){return _.useContext(N3)}function j3(t,e){let n=t.getAttribute("target");return(!n||n==="_self")&&t.origin===location.origin&&!t.hasAttribute("download")&&!e.metaKey&&!e.ctrlKey&&!e.altKey&&!e.shiftKey}function fr(t,e,n=!0){var i,r;let{metaKey:s,ctrlKey:o,altKey:a,shiftKey:l}=e;F3()&&(!((r=window.event)===null||r===void 0||(i=r.type)===null||i===void 0)&&i.startsWith("key"))&&t.target==="_blank"&&(dr()?s=!0:o=!0);let u=L3()&&dr()&&!P_()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:s,ctrlKey:o,altKey:a,shiftKey:l}):new MouseEvent("click",{metaKey:s,ctrlKey:o,altKey:a,shiftKey:l,bubbles:!0,cancelable:!0});fr.isOpening=n,wn(t),t.dispatchEvent(u),fr.isOpening=!1}fr.isOpening=!1;function I3(t,e){if(t instanceof HTMLAnchorElement)e(t);else if(t.hasAttribute("data-href")){let n=document.createElement("a");n.href=t.getAttribute("data-href"),t.hasAttribute("data-target")&&(n.target=t.getAttribute("data-target")),t.hasAttribute("data-rel")&&(n.rel=t.getAttribute("data-rel")),t.hasAttribute("data-download")&&(n.download=t.getAttribute("data-download")),t.hasAttribute("data-ping")&&(n.ping=t.getAttribute("data-ping")),t.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=t.getAttribute("data-referrer-policy")),t.appendChild(n),e(n),t.removeChild(n)}}function O3(t,e){I3(t,n=>fr(n,e))}function k_(t){let e=vu();var n;const i=e.useHref((n=t==null?void 0:t.href)!==null&&n!==void 0?n:"");return{href:t!=null&&t.href?i:void 0,target:t==null?void 0:t.target,rel:t==null?void 0:t.rel,download:t==null?void 0:t.download,ping:t==null?void 0:t.ping,referrerPolicy:t==null?void 0:t.referrerPolicy}}let fs=new Map,ip=new Set;function C_(){if(typeof window=="undefined")return;function t(i){return"propertyName"in i}let e=i=>{if(!t(i)||!i.target)return;let r=fs.get(i.target);r||(r=new Set,fs.set(i.target,r),i.target.addEventListener("transitioncancel",n,{once:!0})),r.add(i.propertyName)},n=i=>{if(!t(i)||!i.target)return;let r=fs.get(i.target);if(r&&(r.delete(i.propertyName),r.size===0&&(i.target.removeEventListener("transitioncancel",n),fs.delete(i.target)),fs.size===0)){for(let s of ip)s();ip.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",n)}typeof document!="undefined"&&(document.readyState!=="loading"?C_():document.addEventListener("DOMContentLoaded",C_));function T_(t){requestAnimationFrame(()=>{fs.size===0?t():ip.add(t)})}function hs(){let t=_.useRef(new Map),e=_.useCallback((r,s,o,a)=>{let l=a!=null&&a.once?(...u)=>{t.current.delete(o),o(...u)}:o;t.current.set(o,{type:s,eventTarget:r,fn:l,options:a}),r.addEventListener(s,l,a)},[]),n=_.useCallback((r,s,o,a)=>{var l;let u=((l=t.current.get(o))===null||l===void 0?void 0:l.fn)||o;r.removeEventListener(s,u,a),t.current.delete(o)},[]),i=_.useCallback(()=>{t.current.forEach((r,s)=>{n(r.eventTarget,r.type,s,r.options)})},[n]);return _.useEffect(()=>i,[i]),{addGlobalListener:e,removeGlobalListener:n,removeAllGlobalListeners:i}}function rp(t,e){let{id:n,"aria-label":i,"aria-labelledby":r}=t;return n=Kn(n),r&&i?r=[...new Set([n,...r.trim().split(/\s+/)])].join(" "):r&&(r=r.trim().split(/\s+/).join(" ")),!i&&!r&&e&&(i=e),{id:n,"aria-label":i,"aria-labelledby":r}}function bu(t){const e=_.useRef(null);return _.useMemo(()=>({get current(){return e.current},set current(n){e.current=n,typeof t=="function"?t(n):t&&(t.current=n)}}),[t])}function $_(t,e){const n=_.useRef(!0),i=_.useRef(null);Ft(()=>(n.current=!0,()=>{n.current=!1}),[]),Ft(()=>{n.current?n.current=!1:(!i.current||e.some((r,s)=>!Object.is(r,i[s])))&&t(),i.current=e},e)}function E_(t,e){Ft(()=>{if(t&&t.ref&&e)return t.ref.current=e.current,()=>{t.ref&&(t.ref.current=null)}})}function V3(t,e){if(!t)return!1;let n=window.getComputedStyle(t),i=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return i&&e&&(i=t.scrollHeight!==t.clientHeight||t.scrollWidth!==t.clientWidth),i}function z3(t,e){const n=[];for(;t&&t!==document.documentElement;)V3(t,e)&&n.push(t),t=t.parentElement;return n}let B3=0;const sp=new Map;function K3(t){let[e,n]=_.useState();return Ft(()=>{if(!t)return;let i=sp.get(t);if(i)n(i.element.id);else{let r=`react-aria-description-${B3++}`;n(r);let s=document.createElement("div");s.id=r,s.style.display="none",s.textContent=t,document.body.appendChild(s),i={refCount:0,element:s},sp.set(t,i)}return i.refCount++,()=>{i&&--i.refCount===0&&(i.element.remove(),sp.delete(t))}},[t]),{"aria-describedby":t?e:void 0}}function Ko(t,e,n,i){let r=je(n),s=n==null;_.useEffect(()=>{if(s||!t.current)return;let o=t.current;return o.addEventListener(e,r,i),()=>{o.removeEventListener(e,r,i)}},[t,e,i,s,r])}function M_(t,e){let n=D_(t,e,"left"),i=D_(t,e,"top"),r=e.offsetWidth,s=e.offsetHeight,o=t.scrollLeft,a=t.scrollTop,{borderTopWidth:l,borderLeftWidth:u,scrollPaddingTop:c,scrollPaddingRight:d,scrollPaddingBottom:f,scrollPaddingLeft:h}=getComputedStyle(t),m=o+parseInt(u,10),y=a+parseInt(l,10),x=m+t.clientWidth,p=y+t.clientHeight,g=parseInt(c,10)||0,b=parseInt(f,10)||0,S=parseInt(d,10)||0,w=parseInt(h,10)||0;n<=o+w?o=n-parseInt(u,10)-w:n+r>x-S&&(o+=n+r-x+S),i<=y+g?a=i-parseInt(l,10)-g:i+s>p-b&&(a+=i+s-p+b),t.scrollLeft=o,t.scrollTop=a}function D_(t,e,n){const i=n==="left"?"offsetLeft":"offsetTop";let r=0;for(;e.offsetParent&&(r+=e[i],e.offsetParent!==t);){if(e.offsetParent.contains(t)){r-=t[i];break}e=e.offsetParent}return r}function A_(t,e){if(t&&document.contains(t)){let o=document.scrollingElement||document.documentElement;if(window.getComputedStyle(o).overflow==="hidden"){let l=z3(t);for(let u of l)M_(u,t)}else{var n;let{left:l,top:u}=t.getBoundingClientRect();t==null||(n=t.scrollIntoView)===null||n===void 0||n.call(t,{block:"nearest"});let{left:c,top:d}=t.getBoundingClientRect();if(Math.abs(l-c)>1||Math.abs(u-d)>1){var i,r,s;e==null||(r=e.containingElement)===null||r===void 0||(i=r.scrollIntoView)===null||i===void 0||i.call(r,{block:"center",inline:"center"}),(s=t.scrollIntoView)===null||s===void 0||s.call(t,{block:"nearest"})}}}}function op(t){return t.mozInputSource===0&&t.isTrusted?!0:np()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function H3(t){return!np()&&t.width===0&&t.height===0||t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"}function ap(t,e,n){let i=_.useRef(e),r=je(()=>{n&&n(i.current)});_.useEffect(()=>{var s;let o=t==null||(s=t.current)===null||s===void 0?void 0:s.form;return o==null||o.addEventListener("reset",r),()=>{o==null||o.removeEventListener("reset",r)}},[t,r])}const W3="react-aria-clear-focus",U3="react-aria-focus",L_="react-aria-update-activedescendant";function ps(t){return dr()?t.metaKey:t.ctrlKey}function Ho(t,e,n){let[i,r]=_.useState(t||e),s=_.useRef(t!==void 0),o=t!==void 0;_.useEffect(()=>{let u=s.current;u!==o&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}.`),s.current=o},[o]);let a=o?t:i,l=_.useCallback((u,...c)=>{let d=(f,...h)=>{n&&(Object.is(a,f)||n(f,...h)),o||(a=f)};typeof u=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),r((h,...m)=>{let y=u(o?a:h,...m);return d(y,...c),o?h:y})):(o||r(u),d(u,...c))},[o,a,n]);return[a,l]}function ms(t,e=-1/0,n=1/0){return Math.min(Math.max(t,e),n)}function xu(t,e){let n=t,i=e.toString(),r=i.indexOf("."),s=r>=0?i.length-r:0;if(s>0){let o=Math.pow(10,s);n=Math.round(n*o)/o}return n}function _t(t,e,n,i){e=Number(e),n=Number(n);let r=(t-(isNaN(e)?0:e))%i,s=xu(Math.abs(r)*2>=i?t+Math.sign(r)*(i-Math.abs(r)):t-r,i);return isNaN(e)?!isNaN(n)&&s>n&&(s=Math.floor(xu(n/i,i))*i):sn&&(s=e+Math.floor(xu((n-e)/i,i))*i),s=xu(s,i),s}const R_=Symbol("default");function Wo({values:t,children:e}){for(let[n,i]of t)e=Y.createElement(n.Provider,{value:i},e);return e}function jt(t){let{className:e,style:n,children:i,defaultClassName:r,defaultChildren:s,defaultStyle:o,values:a}=t;return _.useMemo(()=>{let l,u,c;return typeof e=="function"?l=e(V(k({},a),{defaultClassName:r})):l=e,typeof n=="function"?u=n(V(k({},a),{defaultStyle:o||{}})):u=n,typeof i=="function"?c=i(V(k({},a),{defaultChildren:s})):i==null?c=s:c=i,{className:l!=null?l:r,style:u||o?k(k({},o),u):void 0,children:c!=null?c:s,"data-rac":""}},[e,n,i,r,s,o,a])}function _u(t,e){let n=_.useContext(t);if(e===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let i=new Intl.ListFormat().format(Object.keys(n.slots).map(s=>`"${s}"`));if(!e&&!n.slots[R_])throw new Error(`A slot prop is required. Valid slot names are ${i}.`);let r=e||R_;if(!n.slots[r])throw new Error(`Invalid slot "${e}". Valid slot names are ${i}.`);return n.slots[r]}return n}function Sn(t,e,n){let l=_u(n,t.slot)||{},{ref:r}=l,s=se(l,["ref"]),o=bu(_.useMemo(()=>P3(e,r),[e,r])),a=ue(s,t);return"style"in s&&s.style&&"style"in t&&t.style&&(typeof s.style=="function"||typeof t.style=="function"?a.style=u=>{let c=typeof s.style=="function"?s.style(u):s.style,d=k(k({},u.defaultStyle),c),f=typeof t.style=="function"?t.style(V(k({},u),{defaultStyle:d})):t.style;return k(k({},d),f)}:a.style=k(k({},s.style),t.style)),[a,o]}function lp(){let[t,e]=_.useState(!0),n=_.useRef(!1),i=_.useCallback(r=>{n.current=!0,e(!!r)},[]);return Ft(()=>{n.current||e(!1)},[]),[i,t]}function Y3(t){const e=/^(data-.*)$/;let n={};for(const i in t)e.test(i)||(n[i]=t[i]);return n}class up{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new up(this.type,this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e}constructor(e,n){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.type=e,this.key=n}}class cp{get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=e.nextKey!=null?this.keyMap.get(e.nextKey):void 0}getChildren(e){let n=this.keyMap;return{*[Symbol.iterator](){let i=n.get(e),r=(i==null?void 0:i.firstChildKey)!=null?n.get(i.firstChildKey):null;for(;r;)yield r,r=r.nextKey!=null?n.get(r.nextKey):void 0}}}getKeyBefore(e){let n=this.keyMap.get(e);if(!n)return null;if(n.prevKey!=null){for(n=this.keyMap.get(n.prevKey);n&&n.type!=="item"&&n.lastChildKey!=null;)n=this.keyMap.get(n.lastChildKey);var i;return(i=n==null?void 0:n.key)!==null&&i!==void 0?i:null}return n.parentKey}getKeyAfter(e){let n=this.keyMap.get(e);if(!n)return null;if(n.type!=="item"&&n.firstChildKey!=null)return n.firstChildKey;for(;n;){if(n.nextKey!=null)return n.nextKey;if(n.parentKey!=null)n=this.keyMap.get(n.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(e==null?void 0:e.lastChildKey)!=null;)e=this.keyMap.get(e.lastChildKey);var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}getItem(e){var n;return(n=this.keyMap.get(e))!==null&&n!==void 0?n:null}at(){throw new Error("Not implemented")}clone(){let e=this.constructor,n=new e;return n.keyMap=new Map(this.keyMap),n.firstKey=this.firstKey,n.lastKey=this.lastKey,n}addNode(e){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");this.keyMap.set(e.key,e)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");this.keyMap.delete(e)}commit(e,n,i=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=n,this.frozen=!i}filter(e){let n=new cp,i=null;for(let r of this)if(r.type==="section"&&r.hasChildNodes){let s=r.clone(),o=null;for(let a of this.getChildren(r.key))if(e(a.textValue)||a.type==="header"){let l=a.clone();o==null&&(s.firstChildKey=l.key),n.firstKey==null&&(n.firstKey=s.key),o&&o.parentKey===l.parentKey?(o.nextKey=l.key,l.prevKey=o.key):l.prevKey=null,l.nextKey=null,n.addNode(l),o=l}o&&(o.type!=="header"?(s.lastChildKey=o.key,i==null?s.prevKey=null:(i.type==="section"||i.type==="separator")&&(i.nextKey=s.key,s.prevKey=i.key),s.nextKey=null,i=s,n.addNode(s)):(n.firstKey===s.key&&(n.firstKey=null),n.removeNode(o.key)))}else if(r.type==="separator"){let s=r.clone();s.nextKey=null,(i==null?void 0:i.type)==="section"&&(i.nextKey=s.key,s.prevKey=i.key,i=s,n.addNode(s))}else if(e(r.textValue)){let s=r.clone();n.firstKey==null&&(n.firstKey=s.key),i!=null&&i.type!=="section"&&i.type!=="separator"&&i.parentKey===s.parentKey?(i.nextKey=s.key,s.prevKey=i.key):s.prevKey=null,s.nextKey=null,n.addNode(s),i=s}if((i==null?void 0:i.type)==="separator"&&i.nextKey===null){let r;i.prevKey!=null&&(r=n.getItem(i.prevKey),r.nextKey=null),n.removeNode(i.key),i=r}return n.lastKey=(i==null?void 0:i.key)||null,n}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1}}class F_{*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){var e;return((e=this.parentNode)===null||e===void 0?void 0:e.isConnected)||!1}appendChild(e){this.ownerDocument.startTransaction(),e.parentNode&&e.parentNode.removeChild(e),this.firstChild==null&&(this.firstChild=e),this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),e.hasSetProps&&this.ownerDocument.addNode(e),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}insertBefore(e,n){if(n==null)return this.appendChild(e);this.ownerDocument.startTransaction(),e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=n,e.previousSibling=n.previousSibling,e.index=n.index,this.firstChild===n?this.firstChild=e:n.previousSibling&&(n.previousSibling.nextSibling=e),n.previousSibling=e,e.parentNode=n.parentNode;let i=n;for(;i;)i.index++,i=i.nextSibling;e.hasSetProps&&this.ownerDocument.addNode(e),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}removeChild(e){if(e.parentNode!==this||!this.ownerDocument.isMounted)return;this.ownerDocument.startTransaction();let n=e.nextSibling;for(;n;)n.index--,n=n.nextSibling;e.nextSibling&&(e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.removeNode(e),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}addEventListener(){}removeEventListener(){}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this.ownerDocument=e}}class Uo extends F_{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof Uo?this.parentNode.level+(this.node.type==="item"?1:0):0}updateNode(){var e,n,i,r;let s=this.ownerDocument.getMutableNode(this);s.index=this.index,s.level=this.level,s.parentKey=this.parentNode instanceof Uo?this.parentNode.node.key:null;var o;s.prevKey=(o=(e=this.previousSibling)===null||e===void 0?void 0:e.node.key)!==null&&o!==void 0?o:null;var a;s.nextKey=(a=(n=this.nextSibling)===null||n===void 0?void 0:n.node.key)!==null&&a!==void 0?a:null,s.hasChildNodes=!!this.firstChild;var l;s.firstChildKey=(l=(i=this.firstChild)===null||i===void 0?void 0:i.node.key)!==null&&l!==void 0?l:null;var u;s.lastChildKey=(u=(r=this.lastChild)===null||r===void 0?void 0:r.node.key)!==null&&u!==void 0?u:null}setProps(e,n,i,r){let s=this.ownerDocument.getMutableNode(this),c=e,{value:o,textValue:a,id:l}=c,u=se(c,["value","textValue","id"]);if(u.ref=n,s.props=u,s.rendered=i,s.render=r,s.value=o,s.textValue=a||(typeof u.children=="string"?u.children:"")||e["aria-label"]||"",l!=null&&l!==s.key){if(this.hasSetProps)throw new Error("Cannot change the id of an item");s.key=l}this.hasSetProps||(this.ownerDocument.addNode(this),this.ownerDocument.endTransaction(),this.hasSetProps=!0),this.ownerDocument.queueUpdate()}get style(){return{}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(e,n){super(n),this.nodeType=8,this._index=0,this.hasSetProps=!1,this.node=new up(e,`react-aria-${++n.nodeId}`),this.ownerDocument.startTransaction()}}class G3 extends F_{get isConnected(){return this.isMounted}createElement(e){return new Uo(e,this)}getMutableNode(e){let n=e.node;return this.mutatedNodes.has(e)||(n=e.node.clone(),this.mutatedNodes.add(e),e.node=n),this.markDirty(e),n}getMutableCollection(){return!this.isSSR&&!this.collectionMutated&&(this.collection=this.collection.clone(),this.collectionMutated=!0),this.collection}markDirty(e){this.dirtyNodes.add(e)}startTransaction(){this.transactionCount++}endTransaction(){this.transactionCount--}addNode(e){let n=this.getMutableCollection();if(!n.getItem(e.node.key)){n.addNode(e.node);for(let i of e)this.addNode(i)}this.markDirty(e)}removeNode(e){for(let i of e)this.removeNode(i);this.getMutableCollection().removeNode(e.node.key),this.markDirty(e)}getCollection(){return this.transactionCount>0?this.collection:(this.updateCollection(),this.collection)}updateCollection(){for(let s of this.dirtyNodes)s instanceof Uo&&s.isConnected&&s.updateNode();if(this.dirtyNodes.clear(),this.mutatedNodes.size||this.collectionMutated){var e,n;let s=this.getMutableCollection();for(let o of this.mutatedNodes)o.isConnected&&s.addNode(o.node);var i,r;s.commit((i=(e=this.firstChild)===null||e===void 0?void 0:e.node.key)!==null&&i!==void 0?i:null,(r=(n=this.lastChild)===null||n===void 0?void 0:n.node.key)!==null&&r!==void 0?r:null,this.isSSR),this.mutatedNodes.clear()}this.collectionMutated=!1}queueUpdate(){if(!(this.dirtyNodes.size===0||this.transactionCount>0))for(let e of this.subscriptions)e()}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.isMounted=!0,this.mutatedNodes=new Set,this.subscriptions=new Set,this.transactionCount=0,this.collection=e,this.collectionMutated=!0}}function N_(t){let{children:e,items:n,idScope:i,addIdAndValue:r,dependencies:s=[]}=t,o=_.useMemo(()=>new WeakMap,s);return _.useMemo(()=>{if(n&&typeof e=="function"){let u=[];for(let c of n){let d=o.get(c);if(!d){d=e(c);var a,l;let f=(l=(a=d.props.id)!==null&&a!==void 0?a:c.key)!==null&&l!==void 0?l:c.id;if(f==null)throw new Error("Could not determine key for item");i&&(f=i+":"+f),d=_.cloneElement(d,r?{key:f,id:f,value:c}:{key:f}),o.set(c,d)}u.push(d)}return u}else if(typeof e!="function")return e},[e,n,o,i,r])}if(typeof HTMLTemplateElement!="undefined"){const t=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:t.call(this)}})}const dp=_.createContext(!1),X3=typeof DocumentFragment!="undefined"?new DocumentFragment:null;function q3(t){let e=_.useContext(dp),n=Bo();if(e)return Y.createElement(Y.Fragment,null,t.children);let i=Y.createElement(dp.Provider,{value:!0},t.children);return n?Y.createElement("template",{"data-react-aria-hidden":!0},i):Wl.createPortal(i,X3)}function fp(t){let e=(n,i)=>_.useContext(dp)?null:t(n,i);return e.displayName=t.displayName||t.name,_.forwardRef(e)}var j_={exports:{}},I_={};/** * @license React * use-sync-external-store-shim.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var gs=_;function Q3(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Z3=typeof Object.is=="function"?Object.is:Q3,J3=gs.useState,e5=gs.useEffect,t5=gs.useLayoutEffect,n5=gs.useDebugValue;function i5(t,e){var n=e(),i=J3({inst:{value:n,getSnapshot:e}}),r=i[0].inst,s=i[1];return t5(function(){r.value=n,r.getSnapshot=e,hp(r)&&s({inst:r})},[t,n,e]),e5(function(){return hp(r)&&s({inst:r}),t(function(){hp(r)&&s({inst:r})})},[t]),n5(n),n}function hp(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Z3(t,n)}catch(i){return!0}}function r5(t,e){return e()}var s5=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?r5:i5;I_.useSyncExternalStore=gs.useSyncExternalStore!==void 0?gs.useSyncExternalStore:s5,j_.exports=I_;var o5=j_.exports;const O_=_.createContext(!1),Yo=_.createContext(null);function a5(t){if(_.useContext(Yo))return t.content;let{collection:n,document:i}=d5(t.createCollection);return Y.createElement(Y.Fragment,null,Y.createElement(q3,null,Y.createElement(Yo.Provider,{value:i},t.content)),Y.createElement(l5,{render:t.children,collection:n}))}function l5({collection:t,render:e}){return e(t)}function u5(t,e,n){let i=Bo(),r=_.useRef(i);r.current=i;let s=_.useCallback(()=>r.current?n():e(),[e,n]);return o5.useSyncExternalStore(t,s)}const c5=typeof Y.useSyncExternalStore=="function"?Y.useSyncExternalStore:u5;function d5(t){let[e]=_.useState(()=>new G3((t==null?void 0:t())||new cp)),n=_.useCallback(o=>e.subscribe(o),[e]),i=_.useCallback(()=>{let o=e.getCollection();return e.isSSR&&e.resetAfterSSR(),o},[e]),r=_.useCallback(()=>(e.isSSR=!0,e.getCollection()),[e]),s=c5(n,i,r);return Ft(()=>(e.isMounted=!0,()=>{e.isMounted=!1}),[e]),{collection:s,document:e}}const pp=_.createContext(null);function f5(t,e,n,i,r,s){let o=_.useCallback(l=>{l==null||l.setProps(e,n,i,s)},[e,n,i,s]),a=_.useContext(pp);if(a){let l=a.ownerDocument.nodesByProps.get(e);return l||(l=a.ownerDocument.createElement(t),l.setProps(e,n,i,s),a.appendChild(l),a.ownerDocument.updateCollection(),a.ownerDocument.nodesByProps.set(e,l)),r?Y.createElement(pp.Provider,{value:l},r):null}return Y.createElement(t,{ref:o},r)}function h5(t,e){let n=({node:r})=>e(r.props,r.props.ref,r),i=_.forwardRef((r,s)=>{if(!_.useContext(O_)){if(e.length>=3)throw new Error(e.name+" cannot be rendered outside a collection.");return e(r,s)}return f5(t,r,s,"children"in r?r.children:null,null,a=>Y.createElement(n,{node:a}))});return i.displayName=e.name,i}function p5(t){return N_(V(k({},t),{addIdAndValue:!0}))}const V_=_.createContext(null);function m5(t){let e=_.useContext(V_),n=((e==null?void 0:e.dependencies)||[]).concat(t.dependencies),i=t.idScope||(e==null?void 0:e.idScope),r=p5(V(k({},t),{idScope:i,dependencies:n}));return _.useContext(Yo)&&(r=Y.createElement(g5,null,r)),e=_.useMemo(()=>({dependencies:n,idScope:i}),[i,...n]),Y.createElement(V_.Provider,{value:e},r)}function g5({children:t}){let e=_.useContext(Yo),n=_.useMemo(()=>Y.createElement(Yo.Provider,{value:null},Y.createElement(O_.Provider,{value:!0},t)),[t]);return Bo()?Y.createElement(pp.Provider,{value:e},n):Wl.createPortal(n,e)}const wu=_.createContext({}),z_=fp(function(e,n){[e,n]=Sn(e,n,wu);let s=e,{elementType:i="label"}=s,r=se(s,["elementType"]);return Y.createElement(i,V(k({className:"react-aria-Label"},r),{ref:n}))});let ys="default",mp="",Su=new WeakMap;function gp(t){if(yu()){if(ys==="default"){const e=Nt(t);mp=e.documentElement.style.webkitUserSelect,e.documentElement.style.webkitUserSelect="none"}ys="disabled"}else(t instanceof HTMLElement||t instanceof SVGElement)&&(Su.set(t,t.style.userSelect),t.style.userSelect="none")}function Go(t){if(yu()){if(ys!=="disabled")return;ys="restoring",setTimeout(()=>{T_(()=>{if(ys==="restoring"){const e=Nt(t);e.documentElement.style.webkitUserSelect==="none"&&(e.documentElement.style.webkitUserSelect=mp||""),mp="",ys="default"}})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&Su.has(t)){let e=Su.get(t);t.style.userSelect==="none"&&(t.style.userSelect=e),t.getAttribute("style")===""&&t.removeAttribute("style"),Su.delete(t)}}const B_=Y.createContext({register:()=>{}});B_.displayName="PressResponderContext";function y5(t,e){return e.get?e.get.call(t):e.value}function K_(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}function v5(t,e){var n=K_(t,e,"get");return y5(t,n)}function b5(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function x5(t,e,n){b5(t,e),e.set(t,n)}function _5(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=n}}function H_(t,e,n){var i=K_(t,e,"set");return _5(t,i,n),n}function w5(t){let e=_.useContext(B_);if(e){let n=e,{register:i}=n,r=se(n,["register"]);t=ue(r,t),i()}return E_(e,t.ref),t}var Pu=new WeakMap;class ku{continuePropagation(){H_(this,Pu,!1)}get shouldStopPropagation(){return v5(this,Pu)}constructor(e,n,i,r){x5(this,Pu,{writable:!0,value:void 0}),H_(this,Pu,!0);var s;let o=(s=r==null?void 0:r.target)!==null&&s!==void 0?s:i.currentTarget;const a=o==null?void 0:o.getBoundingClientRect();let l,u=0,c,d=null;i.clientX!=null&&i.clientY!=null&&(c=i.clientX,d=i.clientY),a&&(c!=null&&d!=null?(l=c-a.left,u=d-a.top):(l=a.width/2,u=a.height/2)),this.type=e,this.pointerType=n,this.target=i.currentTarget,this.shiftKey=i.shiftKey,this.metaKey=i.metaKey,this.ctrlKey=i.ctrlKey,this.altKey=i.altKey,this.x=l,this.y=u}}const W_=Symbol("linkClicked");function yp(t){let T=w5(t),{onPress:e,onPressChange:n,onPressStart:i,onPressEnd:r,onPressUp:s,isDisabled:o,isPressed:a,preventFocusOnPress:l,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:c,ref:d}=T,f=se(T,["onPress","onPressChange","onPressStart","onPressEnd","onPressUp","isDisabled","isPressed","preventFocusOnPress","shouldCancelOnPointerExit","allowTextSelectionOnPress","ref"]),[h,m]=_.useState(!1),y=_.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:x,removeAllGlobalListeners:p}=hs(),g=je((P,M)=>{let j=y.current;if(o||j.didFirePressStart)return!1;let $=!0;if(j.isTriggeringEvent=!0,i){let F=new ku("pressstart",M,P);i(F),$=F.shouldStopPropagation}return n&&n(!0),j.isTriggeringEvent=!1,j.didFirePressStart=!0,m(!0),$}),b=je((P,M,j=!0)=>{let $=y.current;if(!$.didFirePressStart)return!1;$.ignoreClickAfterPress=!0,$.didFirePressStart=!1,$.isTriggeringEvent=!0;let F=!0;if(r){let D=new ku("pressend",M,P);r(D),F=D.shouldStopPropagation}if(n&&n(!1),m(!1),e&&j&&!o){let D=new ku("press",M,P);e(D),F&&(F=D.shouldStopPropagation)}return $.isTriggeringEvent=!1,F}),S=je((P,M)=>{let j=y.current;if(o)return!1;if(s){j.isTriggeringEvent=!0;let $=new ku("pressup",M,P);return s($),j.isTriggeringEvent=!1,$.shouldStopPropagation}return!0}),w=je(P=>{let M=y.current;M.isPressed&&M.target&&(M.isOverTarget&&M.pointerType!=null&&b(Wn(M.target,P),M.pointerType,!1),M.isPressed=!1,M.isOverTarget=!1,M.activePointerId=null,M.pointerType=null,p(),c||Go(M.target))}),C=je(P=>{u&&w(P)}),L=_.useMemo(()=>{let P=y.current,M={onKeyDown($){if(bp($.nativeEvent,$.currentTarget)&&$.currentTarget.contains($.target)){var F;G_($.target,$.key)&&$.preventDefault();let D=!0;if(!P.isPressed&&!$.repeat){P.target=$.currentTarget,P.isPressed=!0,D=g($,"keyboard");let R=$.currentTarget,N=B=>{bp(B,R)&&!B.repeat&&R.contains(B.target)&&P.target&&S(Wn(P.target,B),"keyboard")};x(Nt($.currentTarget),"keyup",ep(N,j),!0)}D&&$.stopPropagation(),$.metaKey&&dr()&&((F=P.metaKeyEvents)===null||F===void 0||F.set($.key,$.nativeEvent))}else $.key==="Meta"&&(P.metaKeyEvents=new Map)},onClick($){if(!($&&!$.currentTarget.contains($.target))&&$&&$.button===0&&!P.isTriggeringEvent&&!fr.isOpening){let F=!0;if(o&&$.preventDefault(),!P.ignoreClickAfterPress&&!P.ignoreEmulatedMouseEvents&&!P.isPressed&&(P.pointerType==="virtual"||op($.nativeEvent))){!o&&!l&&wn($.currentTarget);let D=g($,"virtual"),R=S($,"virtual"),N=b($,"virtual");F=D&&R&&N}P.ignoreEmulatedMouseEvents=!1,P.ignoreClickAfterPress=!1,F&&$.stopPropagation()}}},j=$=>{var F;if(P.isPressed&&P.target&&bp($,P.target)){var D;G_($.target,$.key)&&$.preventDefault();let N=$.target;b(Wn(P.target,$),"keyboard",P.target.contains(N)),p(),$.key!=="Enter"&&vp(P.target)&&P.target.contains(N)&&!$[W_]&&($[W_]=!0,fr(P.target,$,!1)),P.isPressed=!1,(D=P.metaKeyEvents)===null||D===void 0||D.delete($.key)}else if($.key==="Meta"&&(!((F=P.metaKeyEvents)===null||F===void 0)&&F.size)){var R;let N=P.metaKeyEvents;P.metaKeyEvents=void 0;for(let B of N.values())(R=P.target)===null||R===void 0||R.dispatchEvent(new KeyboardEvent("keyup",B))}};if(typeof PointerEvent!="undefined"){M.onPointerDown=R=>{if(R.button!==0||!R.currentTarget.contains(R.target))return;if(H3(R.nativeEvent)){P.pointerType="virtual";return}_p(R.currentTarget)&&R.preventDefault(),P.pointerType=R.pointerType;let N=!0;if(!P.isPressed){P.isPressed=!0,P.isOverTarget=!0,P.activePointerId=R.pointerId,P.target=R.currentTarget,!o&&!l&&wn(R.currentTarget),c||gp(P.target),N=g(R,P.pointerType);let B=R.target;"releasePointerCapture"in B&&B.releasePointerCapture(R.pointerId),x(Nt(R.currentTarget),"pointerup",$,!1),x(Nt(R.currentTarget),"pointercancel",D,!1)}N&&R.stopPropagation()},M.onMouseDown=R=>{R.currentTarget.contains(R.target)&&R.button===0&&(_p(R.currentTarget)&&R.preventDefault(),R.stopPropagation())},M.onPointerUp=R=>{!R.currentTarget.contains(R.target)||P.pointerType==="virtual"||R.button===0&&S(R,P.pointerType||R.pointerType)},M.onPointerEnter=R=>{R.pointerId===P.activePointerId&&P.target&&!P.isOverTarget&&P.pointerType!=null&&(P.isOverTarget=!0,g(Wn(P.target,R),P.pointerType))},M.onPointerLeave=R=>{R.pointerId===P.activePointerId&&P.target&&P.isOverTarget&&P.pointerType!=null&&(P.isOverTarget=!1,b(Wn(P.target,R),P.pointerType,!1),C(R))};let $=R=>{R.pointerId===P.activePointerId&&P.isPressed&&R.button===0&&P.target&&(P.target.contains(R.target)&&P.pointerType!=null?b(Wn(P.target,R),P.pointerType):P.isOverTarget&&P.pointerType!=null&&b(Wn(P.target,R),P.pointerType,!1),P.isPressed=!1,P.isOverTarget=!1,P.activePointerId=null,P.pointerType=null,p(),c||Go(P.target),"ontouchend"in P.target&&R.pointerType!=="mouse"&&x(P.target,"touchend",F,{once:!0}))},F=R=>{Y_(R.currentTarget)&&R.preventDefault()},D=R=>{w(R)};M.onDragStart=R=>{R.currentTarget.contains(R.target)&&w(R)}}else{M.onMouseDown=D=>{if(D.button!==0||!D.currentTarget.contains(D.target))return;if(_p(D.currentTarget)&&D.preventDefault(),P.ignoreEmulatedMouseEvents){D.stopPropagation();return}P.isPressed=!0,P.isOverTarget=!0,P.target=D.currentTarget,P.pointerType=op(D.nativeEvent)?"virtual":"mouse",!o&&!l&&wn(D.currentTarget),g(D,P.pointerType)&&D.stopPropagation(),x(Nt(D.currentTarget),"mouseup",$,!1)},M.onMouseEnter=D=>{if(!D.currentTarget.contains(D.target))return;let R=!0;P.isPressed&&!P.ignoreEmulatedMouseEvents&&P.pointerType!=null&&(P.isOverTarget=!0,R=g(D,P.pointerType)),R&&D.stopPropagation()},M.onMouseLeave=D=>{if(!D.currentTarget.contains(D.target))return;let R=!0;P.isPressed&&!P.ignoreEmulatedMouseEvents&&P.pointerType!=null&&(P.isOverTarget=!1,R=b(D,P.pointerType,!1),C(D)),R&&D.stopPropagation()},M.onMouseUp=D=>{D.currentTarget.contains(D.target)&&!P.ignoreEmulatedMouseEvents&&D.button===0&&S(D,P.pointerType||"mouse")};let $=D=>{if(D.button===0){if(P.isPressed=!1,p(),P.ignoreEmulatedMouseEvents){P.ignoreEmulatedMouseEvents=!1;return}P.target&&xp(D,P.target)&&P.pointerType!=null?b(Wn(P.target,D),P.pointerType):P.target&&P.isOverTarget&&P.pointerType!=null&&b(Wn(P.target,D),P.pointerType,!1),P.isOverTarget=!1}};M.onTouchStart=D=>{if(!D.currentTarget.contains(D.target))return;let R=S5(D.nativeEvent);if(!R)return;P.activePointerId=R.identifier,P.ignoreEmulatedMouseEvents=!0,P.isOverTarget=!0,P.isPressed=!0,P.target=D.currentTarget,P.pointerType="touch",!o&&!l&&wn(D.currentTarget),c||gp(P.target),g($i(P.target,D),P.pointerType)&&D.stopPropagation(),x(qt(D.currentTarget),"scroll",F,!0)},M.onTouchMove=D=>{if(!D.currentTarget.contains(D.target))return;if(!P.isPressed){D.stopPropagation();return}let R=U_(D.nativeEvent,P.activePointerId),N=!0;R&&xp(R,D.currentTarget)?!P.isOverTarget&&P.pointerType!=null&&(P.isOverTarget=!0,N=g($i(P.target,D),P.pointerType)):P.isOverTarget&&P.pointerType!=null&&(P.isOverTarget=!1,N=b($i(P.target,D),P.pointerType,!1),C($i(P.target,D))),N&&D.stopPropagation()},M.onTouchEnd=D=>{if(!D.currentTarget.contains(D.target))return;if(!P.isPressed){D.stopPropagation();return}let R=U_(D.nativeEvent,P.activePointerId),N=!0;R&&xp(R,D.currentTarget)&&P.pointerType!=null?(S($i(P.target,D),P.pointerType),N=b($i(P.target,D),P.pointerType)):P.isOverTarget&&P.pointerType!=null&&(N=b($i(P.target,D),P.pointerType,!1)),N&&D.stopPropagation(),P.isPressed=!1,P.activePointerId=null,P.isOverTarget=!1,P.ignoreEmulatedMouseEvents=!0,P.target&&!c&&Go(P.target),p()},M.onTouchCancel=D=>{D.currentTarget.contains(D.target)&&(D.stopPropagation(),P.isPressed&&w($i(P.target,D)))};let F=D=>{P.isPressed&&D.target.contains(P.target)&&w({currentTarget:P.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};M.onDragStart=D=>{D.currentTarget.contains(D.target)&&w(D)}}return M},[x,o,l,p,c,w,C,b,g,S]);return _.useEffect(()=>()=>{var P;c||Go((P=y.current.target)!==null&&P!==void 0?P:void 0)},[c]),{isPressed:a||h,pressProps:ue(f,L)}}function vp(t){return t.tagName==="A"&&t.hasAttribute("href")}function bp(t,e){const{key:n,code:i}=t,r=e,s=r.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||i==="Space")&&!(r instanceof qt(r).HTMLInputElement&&!X_(r,n)||r instanceof qt(r).HTMLTextAreaElement||r.isContentEditable)&&!((s==="link"||!s&&vp(r))&&n!=="Enter")}function S5(t){const{targetTouches:e}=t;return e.length>0?e[0]:null}function U_(t,e){const n=t.changedTouches;for(let i=0;ie.right||e.left>t.right||t.top>e.bottom||e.top>t.bottom)}function xp(t,e){let n=e.getBoundingClientRect(),i=P5(t);return k5(n,i)}function _p(t){return!(t instanceof HTMLElement)||!t.hasAttribute("draggable")}function Y_(t){return t instanceof HTMLInputElement?!1:t instanceof HTMLButtonElement?t.type!=="submit"&&t.type!=="reset":!vp(t)}function G_(t,e){return t instanceof HTMLInputElement?!X_(t,e):Y_(t)}const C5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function X_(t,e){return t.type==="checkbox"||t.type==="radio"?e===" ":C5.has(t.type)}class T5{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=e}}function q_(t){let e=_.useRef({isFocused:!1,observer:null});Ft(()=>{const i=e.current;return()=>{i.observer&&(i.observer.disconnect(),i.observer=null)}},[]);let n=je(i=>{t==null||t(i)});return _.useCallback(i=>{if(i.target instanceof HTMLButtonElement||i.target instanceof HTMLInputElement||i.target instanceof HTMLTextAreaElement||i.target instanceof HTMLSelectElement){e.current.isFocused=!0;let r=i.target,s=o=>{e.current.isFocused=!1,r.disabled&&n(new T5("blur",o)),e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)};r.addEventListener("focusout",s,{once:!0}),e.current.observer=new MutationObserver(()=>{if(e.current.isFocused&&r.disabled){var o;(o=e.current.observer)===null||o===void 0||o.disconnect();let a=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),e.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function wp(t){let{isDisabled:e,onFocus:n,onBlur:i,onFocusChange:r}=t;const s=_.useCallback(l=>{if(l.target===l.currentTarget)return i&&i(l),r&&r(!1),!0},[i,r]),o=q_(s),a=_.useCallback(l=>{const u=Nt(l.target);l.target===l.currentTarget&&u.activeElement===l.target&&(n&&n(l),r&&r(!0),o(l))},[r,n,o]);return{focusProps:{onFocus:!e&&(n||r||i)?a:void 0,onBlur:!e&&(i||r)?s:void 0}}}let hr=null,Sp=new Set,Xo=new Map,pr=!1,Pp=!1;const $5={Tab:!0,Escape:!0};function Cu(t,e){for(let n of Sp)n(t,e)}function E5(t){return!(t.metaKey||!dr()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function Tu(t){pr=!0,E5(t)&&(hr="keyboard",Cu("keyboard",t))}function Qt(t){hr="pointer",(t.type==="mousedown"||t.type==="pointerdown")&&(pr=!0,Cu("pointer",t))}function Q_(t){op(t)&&(pr=!0,hr="virtual")}function Z_(t){t.target===window||t.target===document||(!pr&&!Pp&&(hr="virtual",Cu("virtual",t)),pr=!1,Pp=!1)}function J_(){pr=!1,Pp=!0}function kp(t){if(typeof window=="undefined"||Xo.get(qt(t)))return;const e=qt(t),n=Nt(t);let i=e.HTMLElement.prototype.focus;e.HTMLElement.prototype.focus=function(){pr=!0,i.apply(this,arguments)},n.addEventListener("keydown",Tu,!0),n.addEventListener("keyup",Tu,!0),n.addEventListener("click",Q_,!0),e.addEventListener("focus",Z_,!0),e.addEventListener("blur",J_,!1),typeof PointerEvent!="undefined"?(n.addEventListener("pointerdown",Qt,!0),n.addEventListener("pointermove",Qt,!0),n.addEventListener("pointerup",Qt,!0)):(n.addEventListener("mousedown",Qt,!0),n.addEventListener("mousemove",Qt,!0),n.addEventListener("mouseup",Qt,!0)),e.addEventListener("beforeunload",()=>{ew(t)},{once:!0}),Xo.set(e,{focus:i})}const ew=(t,e)=>{const n=qt(t),i=Nt(t);e&&i.removeEventListener("DOMContentLoaded",e),Xo.has(n)&&(n.HTMLElement.prototype.focus=Xo.get(n).focus,i.removeEventListener("keydown",Tu,!0),i.removeEventListener("keyup",Tu,!0),i.removeEventListener("click",Q_,!0),n.removeEventListener("focus",Z_,!0),n.removeEventListener("blur",J_,!1),typeof PointerEvent!="undefined"?(i.removeEventListener("pointerdown",Qt,!0),i.removeEventListener("pointermove",Qt,!0),i.removeEventListener("pointerup",Qt,!0)):(i.removeEventListener("mousedown",Qt,!0),i.removeEventListener("mousemove",Qt,!0),i.removeEventListener("mouseup",Qt,!0)),Xo.delete(n))};function M5(t){const e=Nt(t);let n;return e.readyState!=="loading"?kp(t):(n=()=>{kp(t)},e.addEventListener("DOMContentLoaded",n)),()=>ew(t,n)}typeof document!="undefined"&&M5();function tw(){return hr!=="pointer"}function Cp(){return hr}function nw(t){hr=t,Cu(t,null)}const D5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function A5(t,e,n){var i;const r=typeof window!="undefined"?qt(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,s=typeof window!="undefined"?qt(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,o=typeof window!="undefined"?qt(n==null?void 0:n.target).HTMLElement:HTMLElement,a=typeof window!="undefined"?qt(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return t=t||(n==null?void 0:n.target)instanceof r&&!D5.has(n==null||(i=n.target)===null||i===void 0?void 0:i.type)||(n==null?void 0:n.target)instanceof s||(n==null?void 0:n.target)instanceof o&&(n==null?void 0:n.target.isContentEditable),!(t&&e==="keyboard"&&n instanceof a&&!$5[n.key])}function L5(t,e,n){kp(),_.useEffect(()=>{let i=(r,s)=>{A5(!!(n!=null&&n.isTextInput),r,s)&&t(tw())};return Sp.add(i),()=>{Sp.delete(i)}},e)}function Tp(t){let{isDisabled:e,onBlurWithin:n,onFocusWithin:i,onFocusWithinChange:r}=t,s=_.useRef({isFocusWithin:!1}),o=_.useCallback(u=>{s.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(s.current.isFocusWithin=!1,n&&n(u),r&&r(!1))},[n,r,s]),a=q_(o),l=_.useCallback(u=>{!s.current.isFocusWithin&&document.activeElement===u.target&&(i&&i(u),r&&r(!0),s.current.isFocusWithin=!0,a(u))},[i,r,a]);return e?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:o}}}let $u=!1,$p=0;function Ep(){$u=!0,setTimeout(()=>{$u=!1},50)}function iw(t){t.pointerType==="touch"&&Ep()}function R5(){if(typeof document!="undefined")return typeof PointerEvent!="undefined"?document.addEventListener("pointerup",iw):document.addEventListener("touchend",Ep),$p++,()=>{$p--,!($p>0)&&(typeof PointerEvent!="undefined"?document.removeEventListener("pointerup",iw):document.removeEventListener("touchend",Ep))}}function vs(t){let{onHoverStart:e,onHoverChange:n,onHoverEnd:i,isDisabled:r}=t,[s,o]=_.useState(!1),a=_.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;_.useEffect(R5,[]);let{hoverProps:l,triggerHoverEnd:u}=_.useMemo(()=>{let c=(h,m)=>{if(a.pointerType=m,r||m==="touch"||a.isHovered||!h.currentTarget.contains(h.target))return;a.isHovered=!0;let y=h.currentTarget;a.target=y,e&&e({type:"hoverstart",target:y,pointerType:m}),n&&n(!0),o(!0)},d=(h,m)=>{if(a.pointerType="",a.target=null,m==="touch"||!a.isHovered)return;a.isHovered=!1;let y=h.currentTarget;i&&i({type:"hoverend",target:y,pointerType:m}),n&&n(!1),o(!1)},f={};return typeof PointerEvent!="undefined"?(f.onPointerEnter=h=>{$u&&h.pointerType==="mouse"||c(h,h.pointerType)},f.onPointerLeave=h=>{!r&&h.currentTarget.contains(h.target)&&d(h,h.pointerType)}):(f.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},f.onMouseEnter=h=>{!a.ignoreEmulatedMouseEvents&&!$u&&c(h,"mouse"),a.ignoreEmulatedMouseEvents=!1},f.onMouseLeave=h=>{!r&&h.currentTarget.contains(h.target)&&d(h,"mouse")}),{hoverProps:f,triggerHoverEnd:d}},[e,n,i,r,a]);return _.useEffect(()=>{r&&u({currentTarget:a.target},a.pointerType)},[r]),{hoverProps:l,isHovered:s}}function rw(t){if(!t)return;let e=!0;return n=>{let i=V(k({},n),{preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){e?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):e=!0},continuePropagation(){e=!1},isPropagationStopped(){return e}});t(i),e&&n.stopPropagation()}}function sw(t){return{keyboardProps:t.isDisabled?{}:{onKeyDown:rw(t.onKeyDown),onKeyUp:rw(t.onKeyUp)}}}function ow(t){let{onMoveStart:e,onMove:n,onMoveEnd:i}=t,r=_.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:s,removeGlobalListener:o}=hs(),a=je((c,d,f,h)=>{f===0&&h===0||(r.current.didMove||(r.current.didMove=!0,e==null||e({type:"movestart",pointerType:d,shiftKey:c.shiftKey,metaKey:c.metaKey,ctrlKey:c.ctrlKey,altKey:c.altKey})),n==null||n({type:"move",pointerType:d,deltaX:f,deltaY:h,shiftKey:c.shiftKey,metaKey:c.metaKey,ctrlKey:c.ctrlKey,altKey:c.altKey}))}),l=je((c,d)=>{Go(),r.current.didMove&&(i==null||i({type:"moveend",pointerType:d,shiftKey:c.shiftKey,metaKey:c.metaKey,ctrlKey:c.ctrlKey,altKey:c.altKey}))});return{moveProps:_.useMemo(()=>{let c={},d=()=>{gp(),r.current.didMove=!1};if(typeof PointerEvent=="undefined"){let h=p=>{if(p.button===0){var g,b,S,w;a(p,"mouse",p.pageX-((S=(g=r.current.lastPosition)===null||g===void 0?void 0:g.pageX)!==null&&S!==void 0?S:0),p.pageY-((w=(b=r.current.lastPosition)===null||b===void 0?void 0:b.pageY)!==null&&w!==void 0?w:0)),r.current.lastPosition={pageX:p.pageX,pageY:p.pageY}}},m=p=>{p.button===0&&(l(p,"mouse"),o(window,"mousemove",h,!1),o(window,"mouseup",m,!1))};c.onMouseDown=p=>{p.button===0&&(d(),p.stopPropagation(),p.preventDefault(),r.current.lastPosition={pageX:p.pageX,pageY:p.pageY},s(window,"mousemove",h,!1),s(window,"mouseup",m,!1))};let y=p=>{let g=[...p.changedTouches].findIndex(({identifier:L})=>L===r.current.id);if(g>=0){var b,S;let{pageX:L,pageY:T}=p.changedTouches[g];var w,C;a(p,"touch",L-((w=(b=r.current.lastPosition)===null||b===void 0?void 0:b.pageX)!==null&&w!==void 0?w:0),T-((C=(S=r.current.lastPosition)===null||S===void 0?void 0:S.pageY)!==null&&C!==void 0?C:0)),r.current.lastPosition={pageX:L,pageY:T}}},x=p=>{[...p.changedTouches].findIndex(({identifier:b})=>b===r.current.id)>=0&&(l(p,"touch"),r.current.id=null,o(window,"touchmove",y),o(window,"touchend",x),o(window,"touchcancel",x))};c.onTouchStart=p=>{if(p.changedTouches.length===0||r.current.id!=null)return;let{pageX:g,pageY:b,identifier:S}=p.changedTouches[0];d(),p.stopPropagation(),p.preventDefault(),r.current.lastPosition={pageX:g,pageY:b},r.current.id=S,s(window,"touchmove",y,!1),s(window,"touchend",x,!1),s(window,"touchcancel",x,!1)}}else{let h=y=>{if(y.pointerId===r.current.id){var x,p;let S=y.pointerType||"mouse";var g,b;a(y,S,y.pageX-((g=(x=r.current.lastPosition)===null||x===void 0?void 0:x.pageX)!==null&&g!==void 0?g:0),y.pageY-((b=(p=r.current.lastPosition)===null||p===void 0?void 0:p.pageY)!==null&&b!==void 0?b:0)),r.current.lastPosition={pageX:y.pageX,pageY:y.pageY}}},m=y=>{if(y.pointerId===r.current.id){let x=y.pointerType||"mouse";l(y,x),r.current.id=null,o(window,"pointermove",h,!1),o(window,"pointerup",m,!1),o(window,"pointercancel",m,!1)}};c.onPointerDown=y=>{y.button===0&&r.current.id==null&&(d(),y.stopPropagation(),y.preventDefault(),r.current.lastPosition={pageX:y.pageX,pageY:y.pageY},r.current.id=y.pointerId,s(window,"pointermove",h,!1),s(window,"pointerup",m,!1),s(window,"pointercancel",m,!1))}}let f=(h,m,y)=>{d(),a(h,"keyboard",m,y),l(h,"keyboard")};return c.onKeyDown=h=>{switch(h.key){case"Left":case"ArrowLeft":h.preventDefault(),h.stopPropagation(),f(h,-1,0);break;case"Right":case"ArrowRight":h.preventDefault(),h.stopPropagation(),f(h,1,0);break;case"Up":case"ArrowUp":h.preventDefault(),h.stopPropagation(),f(h,0,-1);break;case"Down":case"ArrowDown":h.preventDefault(),h.stopPropagation(),f(h,0,1);break}},c},[r,s,o,a,l])}}function F5(t,e){let{onScroll:n,isDisabled:i}=t,r=_.useCallback(s=>{s.ctrlKey||(s.preventDefault(),s.stopPropagation(),n&&n({deltaX:s.deltaX,deltaY:s.deltaY}))},[n]);Ko(e,"wheel",i?void 0:r)}const N5=500;function j5(t){let{isDisabled:e,onLongPressStart:n,onLongPressEnd:i,onLongPress:r,threshold:s=N5,accessibilityDescription:o}=t;const a=_.useRef(void 0);let{addGlobalListener:l,removeGlobalListener:u}=hs(),{pressProps:c}=yp({isDisabled:e,onPressStart(f){if(f.continuePropagation(),(f.pointerType==="mouse"||f.pointerType==="touch")&&(n&&n(V(k({},f),{type:"longpressstart"})),a.current=setTimeout(()=>{f.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),r&&r(V(k({},f),{type:"longpress"})),a.current=void 0},s),f.pointerType==="touch")){let h=m=>{m.preventDefault()};l(f.target,"contextmenu",h,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{u(f.target,"contextmenu",h)},30)},{once:!0})}},onPressEnd(f){a.current&&clearTimeout(a.current),i&&(f.pointerType==="mouse"||f.pointerType==="touch")&&i(V(k({},f),{type:"longpressend"}))}}),d=K3(r&&!e?o:void 0);return{longPressProps:ue(c,d)}}function Eu(t){const e=Nt(t);if(Cp()==="virtual"){let n=e.activeElement;T_(()=>{e.activeElement===n&&t.isConnected&&wn(t)})}else wn(t)}function I5(t){const e=qt(t);if(!(t instanceof e.HTMLElement)&&!(t instanceof e.SVGElement))return!1;let{display:n,visibility:i}=t.style,r=n!=="none"&&i!=="hidden"&&i!=="collapse";if(r){const{getComputedStyle:s}=t.ownerDocument.defaultView;let{display:o,visibility:a}=s(t);r=o!=="none"&&a!=="hidden"&&a!=="collapse"}return r}function O5(t,e){return!t.hasAttribute("hidden")&&!t.hasAttribute("data-react-aria-prevent-focus")&&(t.nodeName==="DETAILS"&&e&&e.nodeName!=="SUMMARY"?t.hasAttribute("open"):!0)}function aw(t,e){return t.nodeName!=="#comment"&&I5(t)&&O5(t,e)&&(!t.parentElement||aw(t.parentElement,t))}const Mp=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])'],V5=Mp.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Mp.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const z5=Mp.join(':not([hidden]):not([tabindex="-1"]),');function lw(t,e){return!t||!e?!1:e.some(n=>n.contains(t))}function uw(t,e,n){let i=e!=null&&e.tabbable?z5:V5,r=Nt(t).createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode(s){var o;return!(e==null||(o=e.from)===null||o===void 0)&&o.contains(s)?NodeFilter.FILTER_REJECT:s.matches(i)&&aw(s)&&(!n||lw(s,n))&&(!(e!=null&&e.accept)||e.accept(s))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return e!=null&&e.from&&(r.currentNode=e.from),r}class Dp{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,n,i){let r=this.fastMap.get(n!=null?n:null);if(!r)return;let s=new cw({scopeRef:e});r.addChild(s),s.parent=r,this.fastMap.set(e,s),i&&(s.nodeToRestore=i)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let n=this.fastMap.get(e);if(!n)return;let i=n.parent;for(let s of this.traverse())s!==n&&n.nodeToRestore&&s.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&lw(s.nodeToRestore,n.scopeRef.current)&&(s.nodeToRestore=n.nodeToRestore);let r=n.children;i&&(i.removeChild(n),r.size>0&&r.forEach(s=>i&&i.addChild(s))),this.fastMap.delete(n.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null&&(yield e),e.children.size>0)for(let n of e.children)yield*Rs(this.traverse(n))}clone(){var e;let n=new Dp;var i;for(let r of this.traverse())n.addTreeNode(r.scopeRef,(i=(e=r.parent)===null||e===void 0?void 0:e.scopeRef)!==null&&i!==void 0?i:null,r.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new cw({scopeRef:null}),this.fastMap.set(null,this.root)}}class cw{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}new Dp;function mr(t={}){let{autoFocus:e=!1,isTextInput:n,within:i}=t,r=_.useRef({isFocused:!1,isFocusVisible:e||tw()}),[s,o]=_.useState(!1),[a,l]=_.useState(()=>r.current.isFocused&&r.current.isFocusVisible),u=_.useCallback(()=>l(r.current.isFocused&&r.current.isFocusVisible),[]),c=_.useCallback(h=>{r.current.isFocused=h,o(h),u()},[u]);L5(h=>{r.current.isFocusVisible=h,u()},[],{isTextInput:n});let{focusProps:d}=wp({isDisabled:i,onFocusChange:c}),{focusWithinProps:f}=Tp({isDisabled:!i,onFocusWithinChange:c});return{isFocused:s,isFocusVisible:a,focusProps:i?f:d}}let B5=Y.createContext(null);function K5(t){let e=_.useContext(B5)||{};E_(e,t);let r=e,{ref:n}=r;return se(r,["ref"])}function Ap(t,e){let{focusProps:n}=wp(t),{keyboardProps:i}=sw(t),r=ue(n,i),s=K5(e),o=t.isDisabled?{}:s,a=_.useRef(t.autoFocus);return _.useEffect(()=>{a.current&&e.current&&Eu(e.current),a.current=!1},[e]),{focusableProps:ue(V(k({},r),{tabIndex:t.excludeFromTabOrder&&!t.isDisabled?-1:void 0}),o)}}function H5(t,e){let n=e==null?void 0:e.isDisabled,[i,r]=_.useState(!1);return Ft(()=>{if(t!=null&&t.current&&!n){let s=()=>{if(t.current){let a=uw(t.current,{tabbable:!0});r(!!a.nextNode())}};s();let o=new MutationObserver(s);return o.observe(t.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{o.disconnect()}}}),n?!1:i}function W5(t,e){let p=t,{elementType:n="a",onPress:i,onPressStart:r,onPressEnd:s,onClick:o,isDisabled:a}=p,l=se(p,["elementType","onPress","onPressStart","onPressEnd","onClick","isDisabled"]),u={};n!=="a"&&(u={role:"link",tabIndex:a?void 0:0});let{focusableProps:c}=Ap(t,e),{pressProps:d,isPressed:f}=yp({onPress:i,onPressStart:r,onPressEnd:s,isDisabled:a,ref:e}),h=dn(l,{labelable:!0}),m=ue(c,d),y=vu(),x=k_(t);return{isPressed:f,linkProps:ue(h,x,V(k(k({},m),u),{"aria-disabled":a||void 0,"aria-current":t["aria-current"],onClick:g=>{var b;(b=d.onClick)===null||b===void 0||b.call(d,g),o&&(o(g),console.warn("onClick is deprecated, please use onPress")),!y.isNative&&g.currentTarget instanceof HTMLAnchorElement&&g.currentTarget.href&&!g.isDefaultPrevented()&&j3(g.currentTarget,g)&&t.href&&(g.preventDefault(),y.open(g.currentTarget,g,t.href,t.routerOptions))}}))}}const U5=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Y5=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function G5(t){if(Intl.Locale){let n=new Intl.Locale(t).maximize(),i=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(i)return i.direction==="rtl";if(n.script)return U5.has(n.script)}let e=t.split("-")[0];return Y5.has(e)}const X5=Symbol.for("react-aria.i18n.locale");function dw(){let t=typeof window!="undefined"&&window[X5]||typeof navigator!="undefined"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([t])}catch(e){t="en-US"}return{locale:t,direction:G5(t)?"rtl":"ltr"}}let Lp=dw(),qo=new Set;function fw(){Lp=dw();for(let t of qo)t(Lp)}function q5(){let t=Bo(),[e,n]=_.useState(Lp);return _.useEffect(()=>(qo.size===0&&window.addEventListener("languagechange",fw),qo.add(n),()=>{qo.delete(n),qo.size===0&&window.removeEventListener("languagechange",fw)}),[]),t?{locale:"en-US",direction:"ltr"}:e}const Q5=Y.createContext(null);function gr(){let t=q5();return _.useContext(Q5)||t}const Z5=Symbol.for("react-aria.i18n.locale"),J5=Symbol.for("react-aria.i18n.strings");let bs;class Mu{getStringForLocale(e,n){let r=this.getStringsForLocale(n)[e];if(!r)throw new Error(`Could not find intl message ${e} in ${n} locale`);return r}getStringsForLocale(e){let n=this.strings[e];return n||(n=e4(e,this.strings,this.defaultLocale),this.strings[e]=n),n}static getGlobalDictionaryForPackage(e){if(typeof window=="undefined")return null;let n=window[Z5];if(bs===void 0){let r=window[J5];if(!r)return null;bs={};for(let s in r)bs[s]=new Mu({[n]:r[s]},n)}let i=bs==null?void 0:bs[e];if(!i)throw new Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return i}constructor(e,n="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter(([,i])=>i)),this.defaultLocale=n}}function e4(t,e,n="en-US"){if(e[t])return e[t];let i=t4(t);if(e[i])return e[i];for(let r in e)if(r.startsWith(i+"-"))return e[r];return e[n]}function t4(t){return Intl.Locale?new Intl.Locale(t).language:t.split("-")[0]}const hw=new Map,pw=new Map;class n4{format(e,n){let i=this.strings.getStringForLocale(e,this.locale);return typeof i=="function"?i(n,this):i}plural(e,n,i="cardinal"){let r=n["="+e];if(r)return typeof r=="function"?r():r;let s=this.locale+":"+i,o=hw.get(s);o||(o=new Intl.PluralRules(this.locale,{type:i}),hw.set(s,o));let a=o.select(e);return r=n[a]||n.other,typeof r=="function"?r():r}number(e){let n=pw.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),pw.set(this.locale,n)),n.format(e)}select(e,n){let i=e[n]||e.other;return typeof i=="function"?i():i}constructor(e,n){this.locale=e,this.strings=n}}const mw=new WeakMap;function i4(t){let e=mw.get(t);return e||(e=new Mu(t),mw.set(t,e)),e}function r4(t,e){return e&&Mu.getGlobalDictionaryForPackage(e)||i4(t)}function gw(t,e){let{locale:n}=gr(),i=r4(t,e);return _.useMemo(()=>new n4(n,i),[n,i])}let Rp=new Map,Fp=!1;try{Fp=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch(t){}let Du=!1;try{Du=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch(t){}const yw={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Au{format(e){let n="";if(!Fp&&this.options.signDisplay!=null?n=o4(this.numberFormatter,this.options.signDisplay,e):n=this.numberFormatter.format(e),this.options.style==="unit"&&!Du){var i;let{unit:r,unitDisplay:s="short",locale:o}=this.resolvedOptions();if(!r)return n;let a=(i=yw[r])===null||i===void 0?void 0:i[s];n+=a[o]||a.default}return n}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(e,n);if(n= start date");return`${this.format(e)} – ${this.format(n)}`}formatRangeToParts(e,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(e,n);if(n= start date");let i=this.numberFormatter.formatToParts(e),r=this.numberFormatter.formatToParts(n);return[...i.map(s=>V(k({},s),{source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...r.map(s=>V(k({},s),{source:"endRange"}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return!Fp&&this.options.signDisplay!=null&&(e=V(k({},e),{signDisplay:this.options.signDisplay})),!Du&&this.options.style==="unit"&&(e=V(k({},e),{style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay})),e}constructor(e,n={}){this.numberFormatter=s4(e,n),this.options=n}}function s4(t,e={}){let{numberingSystem:n}=e;if(n&&t.includes("-nu-")&&(t.includes("-u-")||(t+="-u-"),t+=`-nu-${n}`),e.style==="unit"&&!Du){var i;let{unit:o,unitDisplay:a="short"}=e;if(!o)throw new Error('unit option must be provided with style: "unit"');if(!(!((i=yw[o])===null||i===void 0)&&i[a]))throw new Error(`Unsupported unit ${o} with unitDisplay = ${a}`);e=V(k({},e),{style:"decimal"})}let r=t+(e?Object.entries(e).sort((o,a)=>o[0]0||Object.is(n,0):e==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):i=n>0),i){let r=t.format(-n),s=t.format(n),o=r.replace(s,"").replace(/\u200e|\u061C/,"");return[...o].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),r.replace(s,"!!!").replace(o,"+").replace("!!!",s)}else return t.format(n)}}const a4=new RegExp("^.*\\(.*\\).*$"),l4=["latn","arab","hanidec","deva","beng"];class vw{parse(e){return Np(this.locale,this.options,e).parse(e)}isValidPartialNumber(e,n,i){return Np(this.locale,this.options,e).isValidPartialNumber(e,n,i)}getNumberingSystem(e){return Np(this.locale,this.options,e).options.numberingSystem}constructor(e,n={}){this.locale=e,this.options=n}}const bw=new Map;function Np(t,e,n){let i=xw(t,e);if(!t.includes("-nu-")&&!i.isValidPartialNumber(n)){for(let r of l4)if(r!==i.options.numberingSystem){let s=xw(t+(t.includes("-u-")?"-nu-":"-u-nu-")+r,e);if(s.isValidPartialNumber(n))return s}}return i}function xw(t,e){let n=t+(e?Object.entries(e).sort((r,s)=>r[0]-1&&(n=`-${n}`)}let i=n?+n:NaN;if(isNaN(i))return NaN;if(this.options.style==="percent"){var r,s;let o=V(k({},this.options),{style:"decimal",minimumFractionDigits:Math.min(((r=this.options.minimumFractionDigits)!==null&&r!==void 0?r:0)+2,20),maximumFractionDigits:Math.min(((s=this.options.maximumFractionDigits)!==null&&s!==void 0?s:0)+2,20)});return new vw(this.locale,o).parse(new Au(this.locale,o).format(i))}return this.options.currencySign==="accounting"&&a4.test(e)&&(i=-1*i),i}sanitize(e){return e=e.replace(this.symbols.literals,""),this.symbols.minusSign&&(e=e.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(e=e.replace(",",this.symbols.decimal),e=e.replace("،",this.symbols.decimal)),this.symbols.group&&(e=Lu(e,".",this.symbols.group))),this.options.locale==="fr-FR"&&(e=Lu(e,"."," ")),e}isValidPartialNumber(e,n=-1/0,i=1/0){return e=this.sanitize(e),this.symbols.minusSign&&e.startsWith(this.symbols.minusSign)&&n<0?e=e.slice(this.symbols.minusSign.length):this.symbols.plusSign&&e.startsWith(this.symbols.plusSign)&&i>0&&(e=e.slice(this.symbols.plusSign.length)),this.symbols.group&&e.startsWith(this.symbols.group)||this.symbols.decimal&&e.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(e=Lu(e,this.symbols.group,"")),e=e.replace(this.symbols.numeral,""),this.symbols.decimal&&(e=e.replace(this.symbols.decimal,"")),e.length===0)}constructor(e,n={}){this.locale=e,this.formatter=new Intl.NumberFormat(e,n),this.options=this.formatter.resolvedOptions(),this.symbols=d4(e,this.formatter,this.options,n);var i,r;this.options.style==="percent"&&(((i=this.options.minimumFractionDigits)!==null&&i!==void 0?i:0)>18||((r=this.options.maximumFractionDigits)!==null&&r!==void 0?r:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const _w=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),c4=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function d4(t,e,n,i){var r,s,o,a;let l=new Intl.NumberFormat(t,V(k({},n),{minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"})),u=l.formatToParts(-10000.111),c=l.formatToParts(10000.111),d=c4.map(M=>l.formatToParts(M));var f;let h=(f=(r=u.find(M=>M.type==="minusSign"))===null||r===void 0?void 0:r.value)!==null&&f!==void 0?f:"-",m=(s=c.find(M=>M.type==="plusSign"))===null||s===void 0?void 0:s.value;!m&&((i==null?void 0:i.signDisplay)==="exceptZero"||(i==null?void 0:i.signDisplay)==="always")&&(m="+");let x=(o=new Intl.NumberFormat(t,V(k({},n),{minimumFractionDigits:2,maximumFractionDigits:2})).formatToParts(.001).find(M=>M.type==="decimal"))===null||o===void 0?void 0:o.value,p=(a=u.find(M=>M.type==="group"))===null||a===void 0?void 0:a.value,g=u.filter(M=>!_w.has(M.type)).map(M=>ww(M.value)),b=d.flatMap(M=>M.filter(j=>!_w.has(j.type)).map(j=>ww(j.value))),S=[...new Set([...g,...b])].sort((M,j)=>j.length-M.length),w=S.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${S.join("|")}|[\\p{White_Space}]`,"gu"),C=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),L=new Map(C.map((M,j)=>[M,j])),T=new RegExp(`[${C.join("")}]`,"g");return{minusSign:h,plusSign:m,decimal:x,group:p,literals:w,numeral:T,index:M=>String(L.get(M))}}function Lu(t,e,n){return t.replaceAll?t.replaceAll(e,n):t.split(e).join(n)}function ww(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function jp(t={}){let{locale:e}=gr();return _.useMemo(()=>new Au(e,t),[e,t])}const Sw=7e3;let Zt=null;function f4(t,e="assertive",n=Sw){Zt?Zt.announce(t,e,n):(Zt=new p4,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest!="undefined")?Zt.announce(t,e,n):setTimeout(()=>{Zt!=null&&Zt.isAttached()&&(Zt==null||Zt.announce(t,e,n))},100))}function h4(t){Zt&&Zt.clear(t)}class p4{isAttached(){var e;return(e=this.node)===null||e===void 0?void 0:e.isConnected}createLog(e){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",e),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,n="assertive",i=Sw){var r,s;if(!this.node)return;let o=document.createElement("div");typeof e=="object"?(o.setAttribute("role","img"),o.setAttribute("aria-labelledby",e["aria-labelledby"])):o.textContent=e,n==="assertive"?(r=this.assertiveLog)===null||r===void 0||r.appendChild(o):(s=this.politeLog)===null||s===void 0||s.appendChild(o),e!==""&&setTimeout(()=>{o.remove()},i)}clear(e){this.node&&((!e||e==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||e==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document!="undefined"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}const Pw={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},kw=V(k({},Pw),{customError:!0,valid:!1}),Qo={isInvalid:!1,validationDetails:Pw,validationErrors:[]},m4=_.createContext({}),Ip="__formValidationState"+Date.now();function Cw(t){if(t[Ip]){let{realtimeValidation:e,displayValidation:n,updateValidation:i,resetValidation:r,commitValidation:s}=t[Ip];return{realtimeValidation:e,displayValidation:n,updateValidation:i,resetValidation:r,commitValidation:s}}return g4(t)}function g4(t){let{isInvalid:e,validationState:n,name:i,value:r,builtinValidation:s,validate:o,validationBehavior:a="aria"}=t;n&&(e||(e=n==="invalid"));let l=e!==void 0?{isInvalid:e,validationErrors:[],validationDetails:kw}:null,u=_.useMemo(()=>{if(!o||r==null)return null;let M=y4(o,r);return Tw(M)},[o,r]);s!=null&&s.validationDetails.valid&&(s=void 0);let c=_.useContext(m4),d=_.useMemo(()=>i?Array.isArray(i)?i.flatMap(M=>Op(c[M])):Op(c[i]):[],[c,i]),[f,h]=_.useState(c),[m,y]=_.useState(!1);c!==f&&(h(c),y(!1));let x=_.useMemo(()=>Tw(m?[]:d),[m,d]),p=_.useRef(Qo),[g,b]=_.useState(Qo),S=_.useRef(Qo),w=()=>{if(!C)return;L(!1);let M=u||s||p.current;Vp(M,S.current)||(S.current=M,b(M))},[C,L]=_.useState(!1);return _.useEffect(w),{realtimeValidation:l||x||u||s||Qo,displayValidation:a==="native"?l||x||g:l||x||u||s||g,updateValidation(M){a==="aria"&&!Vp(g,M)?b(M):p.current=M},resetValidation(){let M=Qo;Vp(M,S.current)||(S.current=M,b(M)),a==="native"&&L(!1),y(!0)},commitValidation(){a==="native"&&L(!0),y(!0)}}}function Op(t){return t?Array.isArray(t)?t:[t]:[]}function y4(t,e){if(typeof t=="function"){let n=t(e);if(n&&typeof n!="boolean")return Op(n)}return[]}function Tw(t){return t.length?{isInvalid:!0,validationErrors:t,validationDetails:kw}:null}function Vp(t,e){return t===e?!0:!!t&&!!e&&t.isInvalid===e.isInvalid&&t.validationErrors.length===e.validationErrors.length&&t.validationErrors.every((n,i)=>n===e.validationErrors[i])&&Object.entries(t.validationDetails).every(([n,i])=>e.validationDetails[n]===i)}function v4(t,e,n){let{validationBehavior:i,focus:r}=t;Ft(()=>{if(i==="native"&&(n!=null&&n.current)&&!n.current.disabled){let l=e.realtimeValidation.isInvalid?e.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(l),n.current.hasAttribute("title")||(n.current.title=""),e.realtimeValidation.isInvalid||e.updateValidation(x4(n.current))}});let s=je(()=>{e.resetValidation()}),o=je(l=>{var u;e.displayValidation.isInvalid||e.commitValidation();let c=n==null||(u=n.current)===null||u===void 0?void 0:u.form;if(!l.defaultPrevented&&n&&c&&_4(c)===n.current){var d;r?r():(d=n.current)===null||d===void 0||d.focus(),nw("keyboard")}l.preventDefault()}),a=je(()=>{e.commitValidation()});_.useEffect(()=>{let l=n==null?void 0:n.current;if(!l)return;let u=l.form;return l.addEventListener("invalid",o),l.addEventListener("change",a),u==null||u.addEventListener("reset",s),()=>{l.removeEventListener("invalid",o),l.removeEventListener("change",a),u==null||u.removeEventListener("reset",s)}},[n,o,a,s,i])}function b4(t){let e=t.validity;return{badInput:e.badInput,customError:e.customError,patternMismatch:e.patternMismatch,rangeOverflow:e.rangeOverflow,rangeUnderflow:e.rangeUnderflow,stepMismatch:e.stepMismatch,tooLong:e.tooLong,tooShort:e.tooShort,typeMismatch:e.typeMismatch,valueMissing:e.valueMissing,valid:e.valid}}function x4(t){return{isInvalid:!t.validity.valid,validationDetails:b4(t),validationErrors:t.validationMessage?[t.validationMessage]:[]}}function _4(t){for(let e=0;e{let I=(i-n)/10;return I=_t(I,0,I+s,s),Math.max(I,s)},[s,i,n]),l=_.useCallback(I=>I==null?void 0:I.map((K,Z)=>{let ee=Z===0?n:I[Z-1],ne=Z===I.length-1?i:I[Z+1];return _t(K,ee,ne,s)}),[n,i,s]),u=_.useMemo(()=>l(Ew(t.value)),[t.value]),c=_.useMemo(()=>{var I;return l((I=Ew(t.defaultValue))!==null&&I!==void 0?I:[n])},[t.defaultValue,n]),d=Mw(t.value,t.defaultValue,t.onChange),f=Mw(t.value,t.defaultValue,t.onChangeEnd);const[h,m]=Ho(u,c,d),[y,x]=_.useState(new Array(h.length).fill(!1)),p=_.useRef(new Array(h.length).fill(!0)),[g,b]=_.useState(void 0),S=_.useRef(h),w=_.useRef(y);let C=I=>{S.current=I,m(I)},L=I=>{w.current=I,x(I)};function T(I){return(I-n)/(i-n)}function P(I){return I===0?n:h[I-1]}function M(I){return I===h.length-1?i:h[I+1]}function j(I){return p.current[I]}function $(I,K){p.current[I]=K}function F(I,K){if(e||!j(I))return;const Z=P(I),ee=M(I);K=_t(K,Z,ee,s);let ne=$w(S.current,I,K);C(ne)}function D(I,K){if(e||!j(I))return;K&&(S.current=h);const Z=w.current[I];w.current=$w(w.current,I,K),L(w.current),Z&&!w.current.some(Boolean)&&f(S.current)}function R(I){return r.format(I)}function N(I,K){F(I,E(K))}function B(I){return Math.round((I-n)/s)*s+n}function E(I){const K=I*(i-n)+n;return ms(B(K),n,i)}function z(I,K=1){let Z=Math.max(K,s);F(I,_t(h[I]+Z,n,i,s))}function H(I,K=1){let Z=Math.max(K,s);F(I,_t(h[I]-Z,n,i,s))}return{values:h,getThumbValue:I=>h[I],setThumbValue:F,setThumbPercent:N,isThumbDragging:I=>y[I],setThumbDragging:D,focusedThumb:g,setFocusedThumb:b,getThumbPercent:I=>T(h[I]),getValuePercent:T,getThumbValueLabel:I=>R(h[I]),getFormattedValue:R,getThumbMinValue:P,getThumbMaxValue:M,getPercentValue:E,isThumbEditable:j,setThumbEditable:$,incrementThumb:z,decrementThumb:H,step:s,pageSize:a,orientation:o,isDisabled:e}}function $w(t,e,n){return t[e]===n?t:[...t.slice(0,e),n,...t.slice(e+1)]}function Ew(t){if(t!=null)return Array.isArray(t)?t:[t]}function Mw(t,e,n){return i=>{typeof t=="number"||typeof e=="number"?n==null||n(i[0]):n==null||n(i)}}function T4(t){let{minValue:e,maxValue:n,step:i,formatOptions:r,value:s,defaultValue:o=NaN,onChange:a,locale:l,isDisabled:u,isReadOnly:c}=t;s===null&&(s=NaN),s!==void 0&&!isNaN(s)&&(i!==void 0&&!isNaN(i)?s=_t(s,e,n,i):s=ms(s,e,n)),isNaN(o)||(i!==void 0&&!isNaN(i)?o=_t(o,e,n,i):o=ms(o,e,n));let[d,f]=Ho(s,isNaN(o)?NaN:o,a),[h,m]=_.useState(()=>isNaN(d)?"":new Au(l,r).format(d)),y=_.useMemo(()=>new vw(l,r),[l,r]),x=_.useMemo(()=>y.getNumberingSystem(h),[y,h]),p=_.useMemo(()=>new Au(l,V(k({},r),{numberingSystem:x})),[l,r,x]),g=_.useMemo(()=>p.resolvedOptions(),[p]),b=_.useCallback(K=>isNaN(K)||K===null?"":p.format(K),[p]),S=Cw(V(k({},t),{value:d})),w=i!==void 0&&!isNaN(i)?i:1;g.style==="percent"&&(i===void 0||isNaN(i))&&(w=.01);let[C,L]=_.useState(d),[T,P]=_.useState(l),[M,j]=_.useState(r);(!Object.is(d,C)||l!==T||r!==M)&&(m(b(d)),L(d),P(l),j(r));let $=_.useMemo(()=>y.parse(h),[y,h]),F=()=>{if(!h.length){f(NaN),m(s===void 0?"":b(d));return}if(isNaN($)){m(b(d));return}let K;i===void 0||isNaN(i)?K=ms($,e,n):K=_t($,e,n,i),K=y.parse(b(K)),f(K),m(b(s===void 0?K:d))},D=(K,Z=0)=>{let ee=$;if(isNaN(ee)){let ne=isNaN(Z)?0:Z;return _t(ne,e,n,w)}else{let ne=_t(ee,e,n,w);return K==="+"&&ne>ee||K==="-"&&ne{let K=D("+",e);K===d&&m(b(K)),f(K),S.commitValidation()},N=()=>{let K=D("-",n);K===d&&m(b(K)),f(K),S.commitValidation()},B=()=>{n!=null&&(f(_t(n,e,n,w)),S.commitValidation())},E=()=>{e!=null&&(f(e),S.commitValidation())},z=_.useMemo(()=>!u&&!c&&(isNaN($)||n===void 0||isNaN(n)||_t($,e,n,w)>$||Bp("+",$,w)<=n),[u,c,e,n,w,$]),H=_.useMemo(()=>!u&&!c&&(isNaN($)||e===void 0||isNaN(e)||_t($,e,n,w)<$||Bp("-",$,w)>=e),[u,c,e,n,w,$]),I=K=>y.isValidPartialNumber(K,e,n);return V(k({},S),{validate:I,increment:R,incrementToMax:B,decrement:N,decrementToMin:E,canIncrement:z,canDecrement:H,minValue:e,maxValue:n,numberValue:$,setNumberValue:f,setInputValue:m,inputValue:h,commit:F})}function Bp(t,e,n){let i=t==="+"?e+n:e-n;if(e%1!==0||n%1!==0){const r=e.toString().split("."),s=n.toString().split("."),o=r[1]&&r[1].length||0,a=s[1]&&s[1].length||0,l=Math.pow(10,Math.max(o,a));e=Math.round(e*l),n=Math.round(n*l),i=t==="+"?e+n:e-n,i/=l}return i}const Dw={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function $4(t={}){let{style:e,isFocusable:n}=t,[i,r]=_.useState(!1),{focusWithinProps:s}=Tp({isDisabled:!n,onFocusWithinChange:a=>r(a)}),o=_.useMemo(()=>i?e:e?k(k({},Dw),e):Dw,[i]);return{visuallyHiddenProps:V(k({},s),{style:o})}}function E4(t){let a=t,{children:e,elementType:n="div",isFocusable:i,style:r}=a,s=se(a,["children","elementType","isFocusable","style"]),{visuallyHiddenProps:o}=$4(t);return Y.createElement(n,ue(s,o),e)}const Kp=new WeakMap;function Hp(t,e){let n=Kp.get(t);if(!n)throw new Error("Unknown slider state");return`${n.id}-${e}`}function M4(t,e,n){let{labelProps:i,fieldProps:r}=zp(t),s=t.orientation==="vertical";var o;Kp.set(e,{id:(o=i.id)!==null&&o!==void 0?o:r.id,"aria-describedby":t["aria-describedby"],"aria-details":t["aria-details"]});let{direction:a}=gr(),{addGlobalListener:l,removeGlobalListener:u}=hs();const c=_.useRef(null),d=a==="rtl",f=_.useRef(null),{moveProps:h}=ow({onMoveStart(){f.current=null},onMove({deltaX:p,deltaY:g}){if(!n.current)return;let{height:b,width:S}=n.current.getBoundingClientRect(),w=s?b:S;f.current==null&&c.current!=null&&(f.current=e.getThumbPercent(c.current)*w);let C=s?g:p;if((s||d)&&(C=-C),f.current+=C,c.current!=null&&n.current){const L=ms(f.current/w,0,1);e.setThumbPercent(c.current,L)}},onMoveEnd(){c.current!=null&&(e.setThumbDragging(c.current,!1),c.current=null)}});let m=_.useRef(void 0),y=(p,g,b,S)=>{if(n.current&&!t.isDisabled&&e.values.every((w,C)=>!e.isThumbDragging(C))){let{height:w,width:C,top:L,left:T}=n.current.getBoundingClientRect(),P=s?w:C,F=((s?S:b)-(s?L:T))/P;(a==="rtl"||s)&&(F=1-F);let D=e.getPercentValue(F),R,N=e.values.findIndex(B=>D-B<0);if(N===0)R=N;else if(N===-1)R=e.values.length-1;else{let B=e.values[N-1],E=e.values[N];Math.abs(B-D)=0&&e.isThumbEditable(R)?(p.preventDefault(),c.current=R,e.setFocusedThumb(R),m.current=g,e.setThumbDragging(c.current,!0),e.setThumbValue(R,D),l(window,"mouseup",x,!1),l(window,"touchend",x,!1),l(window,"pointerup",x,!1)):c.current=null}},x=p=>{var g,b;((b=p.pointerId)!==null&&b!==void 0?b:(g=p.changedTouches)===null||g===void 0?void 0:g[0].identifier)===m.current&&(c.current!=null&&(e.setThumbDragging(c.current,!1),c.current=null),u(window,"mouseup",x,!1),u(window,"touchend",x,!1),u(window,"pointerup",x,!1))};return"htmlFor"in i&&i.htmlFor&&(delete i.htmlFor,i.onClick=()=>{var p;(p=document.getElementById(Hp(e,0)))===null||p===void 0||p.focus(),nw("keyboard")}),{labelProps:i,groupProps:k({role:"group"},r),trackProps:ue({onMouseDown(p){p.button!==0||p.altKey||p.ctrlKey||p.metaKey||y(p,void 0,p.clientX,p.clientY)},onPointerDown(p){p.pointerType==="mouse"&&(p.button!==0||p.altKey||p.ctrlKey||p.metaKey)||y(p,p.pointerId,p.clientX,p.clientY)},onTouchStart(p){y(p,p.changedTouches[0].identifier,p.changedTouches[0].clientX,p.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},h),outputProps:{htmlFor:e.values.map((p,g)=>Hp(e,g)).join(" "),"aria-live":"off"}}}function D4(t,e){let{index:n=0,isRequired:i,validationState:r,isInvalid:s,trackRef:o,inputRef:a,orientation:l=e.orientation,name:u}=t,c=t.isDisabled||e.isDisabled,d=l==="vertical",{direction:f}=gr(),{addGlobalListener:h,removeGlobalListener:m}=hs(),y=Kp.get(e);var x;const{labelProps:p,fieldProps:g}=zp(V(k({},t),{id:Hp(e,n),"aria-labelledby":`${y.id} ${(x=t["aria-labelledby"])!==null&&x!==void 0?x:""}`.trim()})),b=e.values[n],S=_.useCallback(()=>{a.current&&wn(a.current)},[a]),w=e.focusedThumb===n;_.useEffect(()=>{w&&S()},[w,S]);let C=f==="rtl",L=_.useRef(null),{keyboardProps:T}=sw({onKeyDown(N){let{getThumbMaxValue:B,getThumbMinValue:E,decrementThumb:z,incrementThumb:H,setThumbValue:I,setThumbDragging:K,pageSize:Z}=e;if(!/^(PageUp|PageDown|Home|End)$/.test(N.key)){N.continuePropagation();return}switch(N.preventDefault(),K(n,!0),N.key){case"PageUp":H(n,Z);break;case"PageDown":z(n,Z);break;case"Home":I(n,E(n));break;case"End":I(n,B(n));break}K(n,!1)}}),{moveProps:P}=ow({onMoveStart(){L.current=null,e.setThumbDragging(n,!0)},onMove({deltaX:N,deltaY:B,pointerType:E,shiftKey:z}){const{getThumbPercent:H,setThumbPercent:I,decrementThumb:K,incrementThumb:Z,step:ee,pageSize:ne}=e;if(!o.current)return;let{width:fe,height:Qe}=o.current.getBoundingClientRect(),X=d?Qe:fe;if(L.current==null&&(L.current=H(n)*X),E==="keyboard")N>0&&C||N<0&&!C||B>0?K(n,z?ne:ee):Z(n,z?ne:ee);else{let ht=d?B:N;(d||C)&&(ht=-ht),L.current+=ht,I(n,ms(L.current/X,0,1))}},onMoveEnd(){e.setThumbDragging(n,!1)}});e.setThumbEditable(n,!c);const{focusableProps:M}=Ap(ue(t,{onFocus:()=>e.setFocusedThumb(n),onBlur:()=>e.setFocusedThumb(void 0)}),a);let j=_.useRef(void 0),$=N=>{S(),j.current=N,e.setThumbDragging(n,!0),h(window,"mouseup",F,!1),h(window,"touchend",F,!1),h(window,"pointerup",F,!1)},F=N=>{var B,E;((E=N.pointerId)!==null&&E!==void 0?E:(B=N.changedTouches)===null||B===void 0?void 0:B[0].identifier)===j.current&&(S(),e.setThumbDragging(n,!1),m(window,"mouseup",F,!1),m(window,"touchend",F,!1),m(window,"pointerup",F,!1))},D=e.getThumbPercent(n);(d||f==="rtl")&&(D=1-D);let R=c?{}:ue(T,P,{onMouseDown:N=>{N.button!==0||N.altKey||N.ctrlKey||N.metaKey||$()},onPointerDown:N=>{N.button!==0||N.altKey||N.ctrlKey||N.metaKey||$(N.pointerId)},onTouchStart:N=>{$(N.changedTouches[0].identifier)}});return ap(a,b,N=>{e.setThumbValue(n,N)}),{inputProps:ue(M,g,{type:"range",tabIndex:c?void 0:0,min:e.getThumbMinValue(n),max:e.getThumbMaxValue(n),step:e.step,value:b,name:u,disabled:c,"aria-orientation":l,"aria-valuetext":e.getThumbValueLabel(n),"aria-required":i||void 0,"aria-invalid":s||r==="invalid"||void 0,"aria-errormessage":t["aria-errormessage"],"aria-describedby":[y["aria-describedby"],t["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[y["aria-details"],t["aria-details"]].filter(Boolean).join(" "),onChange:N=>{e.setThumbValue(n,parseFloat(N.target.value))}}),thumbProps:V(k({},R),{style:{position:"absolute",[d?"top":"left"]:`${D*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}}),labelProps:p,isDragging:e.isThumbDragging(n),isDisabled:c,isFocused:w}}function A4(t,e){let{inputElementType:n="input",isDisabled:i=!1,isRequired:r=!1,isReadOnly:s=!1,type:o="text",validationBehavior:a="aria"}=t,[l,u]=Ho(t.value,t.defaultValue||"",t.onChange),{focusableProps:c}=Ap(t,e),d=Cw(V(k({},t),{value:l})),{isInvalid:f,validationErrors:h,validationDetails:m}=d.displayValidation,{labelProps:y,fieldProps:x,descriptionProps:p,errorMessageProps:g}=w4(V(k({},t),{isInvalid:f,errorMessage:t.errorMessage||h})),b=dn(t,{labelable:!0});const S={type:o,pattern:t.pattern};return ap(e,l,u),v4(t,d,e),_.useEffect(()=>{if(e.current instanceof qt(e.current).HTMLTextAreaElement){let w=e.current;Object.defineProperty(w,"defaultValue",{get:()=>w.value,set:()=>{},configurable:!0})}},[e]),{labelProps:y,inputProps:ue(b,n==="input"?S:void 0,k(k({disabled:i,readOnly:s,required:r&&a==="native","aria-required":r&&a==="aria"||void 0,"aria-invalid":f||void 0,"aria-errormessage":t["aria-errormessage"],"aria-activedescendant":t["aria-activedescendant"],"aria-autocomplete":t["aria-autocomplete"],"aria-haspopup":t["aria-haspopup"],"aria-controls":t["aria-controls"],value:l,onChange:w=>u(w.target.value),autoComplete:t.autoComplete,autoCapitalize:t.autoCapitalize,maxLength:t.maxLength,minLength:t.minLength,name:t.name,placeholder:t.placeholder,inputMode:t.inputMode,autoCorrect:t.autoCorrect,spellCheck:t.spellCheck,onCopy:t.onCopy,onCut:t.onCut,onPaste:t.onPaste,onCompositionEnd:t.onCompositionEnd,onCompositionStart:t.onCompositionStart,onCompositionUpdate:t.onCompositionUpdate,onSelect:t.onSelect,onBeforeInput:t.onBeforeInput,onInput:t.onInput},c),x)),descriptionProps:p,errorMessageProps:g,isInvalid:f,validationErrors:h,validationDetails:m}}function Aw(){return typeof window!="undefined"&&window.InputEvent&&typeof InputEvent.prototype.getTargetRanges=="function"}function L4(t,e,n){let i=je(f=>{let h=n.current;if(!h)return;let m=null;switch(f.inputType){case"historyUndo":case"historyRedo":return;case"insertLineBreak":return;case"deleteContent":case"deleteByCut":case"deleteByDrag":m=h.value.slice(0,h.selectionStart)+h.value.slice(h.selectionEnd);break;case"deleteContentForward":m=h.selectionEnd===h.selectionStart?h.value.slice(0,h.selectionStart)+h.value.slice(h.selectionEnd+1):h.value.slice(0,h.selectionStart)+h.value.slice(h.selectionEnd);break;case"deleteContentBackward":m=h.selectionEnd===h.selectionStart?h.value.slice(0,h.selectionStart-1)+h.value.slice(h.selectionStart):h.value.slice(0,h.selectionStart)+h.value.slice(h.selectionEnd);break;case"deleteSoftLineBackward":case"deleteHardLineBackward":m=h.value.slice(h.selectionStart);break;default:f.data!=null&&(m=h.value.slice(0,h.selectionStart)+f.data+h.value.slice(h.selectionEnd));break}(m==null||!e.validate(m))&&f.preventDefault()});_.useEffect(()=>{if(!Aw()||!n.current)return;let f=n.current;return f.addEventListener("beforeinput",i,!1),()=>{f.removeEventListener("beforeinput",i,!1)}},[n,i]);let r=Aw()?null:f=>{let h=f.target.value.slice(0,f.target.selectionStart)+f.data+f.target.value.slice(f.target.selectionEnd);e.validate(h)||f.preventDefault()},d=A4(t,n),{labelProps:s,inputProps:o,descriptionProps:a,errorMessageProps:l}=d,u=se(d,["labelProps","inputProps","descriptionProps","errorMessageProps"]),c=_.useRef(null);return k({inputProps:ue(o,{onBeforeInput:r,onCompositionStart(){let{value:f,selectionStart:h,selectionEnd:m}=n.current;c.current={value:f,selectionStart:h,selectionEnd:m}},onCompositionEnd(){if(n.current&&!e.validate(n.current.value)){let{value:f,selectionStart:h,selectionEnd:m}=c.current;n.current.value=f,n.current.setSelectionRange(h,m),e.setInputValue(f)}}}),labelProps:s,descriptionProps:a,errorMessageProps:l},u)}var Lw={};Lw={Empty:"فارغ"};var Rw={};Rw={Empty:"Изпразни"};var Fw={};Fw={Empty:"Prázdné"};var Nw={};Nw={Empty:"Tom"};var jw={};jw={Empty:"Leer"};var Iw={};Iw={Empty:"Άδειο"};var Ow={};Ow={Empty:"Empty"};var Vw={};Vw={Empty:"Vacío"};var zw={};zw={Empty:"Tühjenda"};var Bw={};Bw={Empty:"Tyhjä"};var Kw={};Kw={Empty:"Vide"};var Hw={};Hw={Empty:"ריק"};var Ww={};Ww={Empty:"Prazno"};var Uw={};Uw={Empty:"Üres"};var Yw={};Yw={Empty:"Vuoto"};var Gw={};Gw={Empty:"空"};var Xw={};Xw={Empty:"비어 있음"};var qw={};qw={Empty:"Tuščias"};var Qw={};Qw={Empty:"Tukšs"};var Zw={};Zw={Empty:"Tom"};var Jw={};Jw={Empty:"Leeg"};var e1={};e1={Empty:"Pusty"};var t1={};t1={Empty:"Vazio"};var n1={};n1={Empty:"Vazio"};var i1={};i1={Empty:"Gol"};var r1={};r1={Empty:"Не заполнено"};var s1={};s1={Empty:"Prázdne"};var o1={};o1={Empty:"Prazen"};var a1={};a1={Empty:"Prazno"};var l1={};l1={Empty:"Tomt"};var u1={};u1={Empty:"Boş"};var c1={};c1={Empty:"Пусто"};var d1={};d1={Empty:"空"};var f1={};f1={Empty:"空白"};var h1={};h1={"ar-AE":Lw,"bg-BG":Rw,"cs-CZ":Fw,"da-DK":Nw,"de-DE":jw,"el-GR":Iw,"en-US":Ow,"es-ES":Vw,"et-EE":zw,"fi-FI":Bw,"fr-FR":Kw,"he-IL":Hw,"hr-HR":Ww,"hu-HU":Uw,"it-IT":Yw,"ja-JP":Gw,"ko-KR":Xw,"lt-LT":qw,"lv-LV":Qw,"nb-NO":Zw,"nl-NL":Jw,"pl-PL":e1,"pt-BR":t1,"pt-PT":n1,"ro-RO":i1,"ru-RU":r1,"sk-SK":s1,"sl-SI":o1,"sr-SP":a1,"sv-SE":l1,"tr-TR":u1,"uk-UA":c1,"zh-CN":d1,"zh-TW":f1};function R4(t){return t&&t.__esModule?t.default:t}function F4(t){const e=_.useRef(void 0);let{value:n,textValue:i,minValue:r,maxValue:s,isDisabled:o,isReadOnly:a,isRequired:l,onIncrement:u,onIncrementPage:c,onDecrement:d,onDecrementPage:f,onDecrementToMin:h,onIncrementToMax:m}=t;const y=gw(R4(h1),"@react-aria/spinbutton"),x=()=>clearTimeout(e.current);_.useEffect(()=>()=>x(),[]);let p=j=>{if(!(j.ctrlKey||j.metaKey||j.shiftKey||j.altKey||a))switch(j.key){case"PageUp":if(c){j.preventDefault(),c==null||c();break}case"ArrowUp":case"Up":u&&(j.preventDefault(),u==null||u());break;case"PageDown":if(f){j.preventDefault(),f==null||f();break}case"ArrowDown":case"Down":d&&(j.preventDefault(),d==null||d());break;case"Home":h&&(j.preventDefault(),h==null||h());break;case"End":m&&(j.preventDefault(),m==null||m());break}},g=_.useRef(!1),b=()=>{g.current=!0},S=()=>{g.current=!1},w=i===""?y.format("Empty"):(i||`${n}`).replace("-","−");_.useEffect(()=>{g.current&&(h4("assertive"),f4(w,"assertive"))},[w]);const C=je(j=>{x(),u==null||u(),e.current=window.setTimeout(()=>{(s===void 0||isNaN(s)||n===void 0||isNaN(n)||n{x(),d==null||d(),e.current=window.setTimeout(()=>{(r===void 0||isNaN(r)||n===void 0||isNaN(n)||n>r)&&L(60)},j)});let T=j=>{j.preventDefault()},{addGlobalListener:P,removeAllGlobalListeners:M}=hs();return{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":w,"aria-valuemin":r,"aria-valuemax":s,"aria-disabled":o||void 0,"aria-readonly":a||void 0,"aria-required":l||void 0,onKeyDown:p,onFocus:b,onBlur:S},incrementButtonProps:{onPressStart:()=>{C(400),P(window,"contextmenu",T)},onPressEnd:()=>{x(),M()},onFocus:b,onBlur:S},decrementButtonProps:{onPressStart:()=>{L(400),P(window,"contextmenu",T)},onPressEnd:()=>{x(),M()},onFocus:b,onBlur:S}}}var p1={};p1={decrease:t=>`خفض ${t.fieldLabel}`,increase:t=>`زيادة ${t.fieldLabel}`,numberField:"حقل رقمي"};var m1={};m1={decrease:t=>`Намаляване ${t.fieldLabel}`,increase:t=>`Усилване ${t.fieldLabel}`,numberField:"Номер на полето"};var g1={};g1={decrease:t=>`Snížit ${t.fieldLabel}`,increase:t=>`Zvýšit ${t.fieldLabel}`,numberField:"Číselné pole"};var y1={};y1={decrease:t=>`Reducer ${t.fieldLabel}`,increase:t=>`Øg ${t.fieldLabel}`,numberField:"Talfelt"};var v1={};v1={decrease:t=>`${t.fieldLabel} verringern`,increase:t=>`${t.fieldLabel} erhöhen`,numberField:"Nummernfeld"};var b1={};b1={decrease:t=>`Μείωση ${t.fieldLabel}`,increase:t=>`Αύξηση ${t.fieldLabel}`,numberField:"Πεδίο αριθμού"};var x1={};x1={decrease:t=>`Decrease ${t.fieldLabel}`,increase:t=>`Increase ${t.fieldLabel}`,numberField:"Number field"};var _1={};_1={decrease:t=>`Reducir ${t.fieldLabel}`,increase:t=>`Aumentar ${t.fieldLabel}`,numberField:"Campo de número"};var w1={};w1={decrease:t=>`Vähenda ${t.fieldLabel}`,increase:t=>`Suurenda ${t.fieldLabel}`,numberField:"Numbri väli"};var S1={};S1={decrease:t=>`Vähennä ${t.fieldLabel}`,increase:t=>`Lisää ${t.fieldLabel}`,numberField:"Numerokenttä"};var P1={};P1={decrease:t=>`Diminuer ${t.fieldLabel}`,increase:t=>`Augmenter ${t.fieldLabel}`,numberField:"Champ de nombre"};var k1={};k1={decrease:t=>`הקטן ${t.fieldLabel}`,increase:t=>`הגדל ${t.fieldLabel}`,numberField:"שדה מספר"};var C1={};C1={decrease:t=>`Smanji ${t.fieldLabel}`,increase:t=>`Povećaj ${t.fieldLabel}`,numberField:"Polje broja"};var T1={};T1={decrease:t=>`${t.fieldLabel} csökkentése`,increase:t=>`${t.fieldLabel} növelése`,numberField:"Számmező"};var $1={};$1={decrease:t=>`Riduci ${t.fieldLabel}`,increase:t=>`Aumenta ${t.fieldLabel}`,numberField:"Campo numero"};var E1={};E1={decrease:t=>`${t.fieldLabel}を縮小`,increase:t=>`${t.fieldLabel}を拡大`,numberField:"数値フィールド"};var M1={};M1={decrease:t=>`${t.fieldLabel} 감소`,increase:t=>`${t.fieldLabel} 증가`,numberField:"번호 필드"};var D1={};D1={decrease:t=>`Sumažinti ${t.fieldLabel}`,increase:t=>`Padidinti ${t.fieldLabel}`,numberField:"Numerio laukas"};var A1={};A1={decrease:t=>`Samazināšana ${t.fieldLabel}`,increase:t=>`Palielināšana ${t.fieldLabel}`,numberField:"Skaitļu lauks"};var L1={};L1={decrease:t=>`Reduser ${t.fieldLabel}`,increase:t=>`Øk ${t.fieldLabel}`,numberField:"Tallfelt"};var R1={};R1={decrease:t=>`${t.fieldLabel} verlagen`,increase:t=>`${t.fieldLabel} verhogen`,numberField:"Getalveld"};var F1={};F1={decrease:t=>`Zmniejsz ${t.fieldLabel}`,increase:t=>`Zwiększ ${t.fieldLabel}`,numberField:"Pole numeru"};var N1={};N1={decrease:t=>`Diminuir ${t.fieldLabel}`,increase:t=>`Aumentar ${t.fieldLabel}`,numberField:"Campo de número"};var j1={};j1={decrease:t=>`Diminuir ${t.fieldLabel}`,increase:t=>`Aumentar ${t.fieldLabel}`,numberField:"Campo numérico"};var I1={};I1={decrease:t=>`Scădere ${t.fieldLabel}`,increase:t=>`Creștere ${t.fieldLabel}`,numberField:"Câmp numeric"};var O1={};O1={decrease:t=>`Уменьшение ${t.fieldLabel}`,increase:t=>`Увеличение ${t.fieldLabel}`,numberField:"Числовое поле"};var V1={};V1={decrease:t=>`Znížiť ${t.fieldLabel}`,increase:t=>`Zvýšiť ${t.fieldLabel}`,numberField:"Číselné pole"};var z1={};z1={decrease:t=>`Upadati ${t.fieldLabel}`,increase:t=>`Povečajte ${t.fieldLabel}`,numberField:"Številčno polje"};var B1={};B1={decrease:t=>`Smanji ${t.fieldLabel}`,increase:t=>`Povećaj ${t.fieldLabel}`,numberField:"Polje broja"};var K1={};K1={decrease:t=>`Minska ${t.fieldLabel}`,increase:t=>`Öka ${t.fieldLabel}`,numberField:"Nummerfält"};var H1={};H1={decrease:t=>`${t.fieldLabel} azalt`,increase:t=>`${t.fieldLabel} arttır`,numberField:"Sayı alanı"};var W1={};W1={decrease:t=>`Зменшити ${t.fieldLabel}`,increase:t=>`Збільшити ${t.fieldLabel}`,numberField:"Поле номера"};var U1={};U1={decrease:t=>`降低 ${t.fieldLabel}`,increase:t=>`提高 ${t.fieldLabel}`,numberField:"数字字段"};var Y1={};Y1={decrease:t=>`縮小 ${t.fieldLabel}`,increase:t=>`放大 ${t.fieldLabel}`,numberField:"數字欄位"};var G1={};G1={"ar-AE":p1,"bg-BG":m1,"cs-CZ":g1,"da-DK":y1,"de-DE":v1,"el-GR":b1,"en-US":x1,"es-ES":_1,"et-EE":w1,"fi-FI":S1,"fr-FR":P1,"he-IL":k1,"hr-HR":C1,"hu-HU":T1,"it-IT":$1,"ja-JP":E1,"ko-KR":M1,"lt-LT":D1,"lv-LV":A1,"nb-NO":L1,"nl-NL":R1,"pl-PL":F1,"pt-BR":N1,"pt-PT":j1,"ro-RO":I1,"ru-RU":O1,"sk-SK":V1,"sl-SI":z1,"sr-SP":B1,"sv-SE":K1,"tr-TR":H1,"uk-UA":W1,"zh-CN":U1,"zh-TW":Y1};function N4(t){return t&&t.__esModule?t.default:t}function j4(t,e,n){let ni=t,{id:i,decrementAriaLabel:r,incrementAriaLabel:s,isDisabled:o,isReadOnly:a,isRequired:l,minValue:u,maxValue:c,autoFocus:d,label:f,formatOptions:h,onBlur:m=()=>{},onFocus:y,onFocusChange:x,onKeyDown:p,onKeyUp:g,description:b,errorMessage:S,isWheelDisabled:w}=ni,C=se(ni,["id","decrementAriaLabel","incrementAriaLabel","isDisabled","isReadOnly","isRequired","minValue","maxValue","autoFocus","label","formatOptions","onBlur","onFocus","onFocusChange","onKeyDown","onKeyUp","description","errorMessage","isWheelDisabled"]),{increment:L,incrementToMax:T,decrement:P,decrementToMin:M,numberValue:j,inputValue:$,commit:F,commitValidation:D}=e;const R=gw(N4(G1),"@react-aria/numberfield");let N=Kn(i),{focusProps:B}=wp({onBlur(){F()}}),E=jp(h),z=_.useMemo(()=>E.resolvedOptions(),[E]),H=jp(V(k({},h),{currencySign:void 0})),I=_.useMemo(()=>isNaN(j)?"":H.format(j),[H,j]),{spinButtonProps:K,incrementButtonProps:Z,decrementButtonProps:ee}=F4({isDisabled:o,isReadOnly:a,isRequired:l,maxValue:c,minValue:u,onIncrement:L,onIncrementToMax:T,onDecrement:P,onDecrementToMin:M,value:j,textValue:I}),[ne,fe]=_.useState(!1),{focusWithinProps:Qe}=Tp({isDisabled:o,onFocusWithinChange:fe}),X=_.useCallback(ot=>{Math.abs(ot.deltaY)<=Math.abs(ot.deltaX)||(ot.deltaY>0?L():ot.deltaY<0&&P())},[P,L]);F5({onScroll:X,isDisabled:w||o||a||!ne},n);var Ze;let Oi=((Ze=z.maximumFractionDigits)!==null&&Ze!==void 0?Ze:0)>0,$n=e.minValue===void 0||isNaN(e.minValue)||e.minValue<0,Vi="numeric";S_()?$n?Vi="text":Oi&&(Vi="decimal"):np()&&($n?Vi="numeric":Oi&&(Vi="decimal"));let Ds=ot=>{e.validate(ot)&&e.setInputValue(ot)},vc=dn(t),Cr=_.useCallback(ot=>{ot.key==="Enter"?(F(),D()):ot.continuePropagation()},[F,D]),{isInvalid:$a,validationErrors:As,validationDetails:bc}=e.displayValidation,{labelProps:ye,inputProps:xc,descriptionProps:zi,errorMessageProps:_c}=L4(V(k(k({},C),vc),{name:void 0,label:f,autoFocus:d,isDisabled:o,isReadOnly:a,isRequired:l,validate:void 0,[Ip]:e,value:$,defaultValue:void 0,autoComplete:"off","aria-label":t["aria-label"]||void 0,"aria-labelledby":t["aria-labelledby"]||void 0,id:N,type:"text",inputMode:Vi,onChange:Ds,onBlur:m,onFocus:y,onFocusChange:x,onKeyDown:_.useMemo(()=>ep(Cr,p),[Cr,p]),onKeyUp:g,description:b,errorMessage:S}),e,n);ap(n,e.numberValue,e.setNumberValue);let Tr=ue(K,B,xc,{role:null,"aria-roledescription":yu()?null:R.format("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"});t.validationBehavior==="native"&&(Tr["aria-required"]=void 0);let Ea=ot=>{var Ls;document.activeElement!==n.current&&(ot.pointerType==="mouse"?(Ls=n.current)===null||Ls===void 0||Ls.focus():ot.target.focus())},Vt=t["aria-label"]||(typeof t.label=="string"?t.label:""),En;Vt||(En=t.label!=null?ye.id:t["aria-labelledby"]);let ti=Kn(),le=Kn(),zt=ue(Z,{"aria-label":s||R.format("increase",{fieldLabel:Vt}).trim(),id:En&&!s?ti:null,"aria-labelledby":En&&!s?`${ti} ${En}`:null,"aria-controls":N,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!e.canIncrement,onPressStart:Ea}),pt=ue(ee,{"aria-label":r||R.format("decrease",{fieldLabel:Vt}).trim(),id:En&&!r?le:null,"aria-labelledby":En&&!r?`${le} ${En}`:null,"aria-controls":N,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!e.canDecrement,onPressStart:Ea});return{groupProps:V(k({},Qe),{role:"group","aria-disabled":o,"aria-invalid":$a?"true":void 0}),labelProps:ye,inputProps:Tr,incrementButtonProps:zt,decrementButtonProps:pt,errorMessageProps:_c,descriptionProps:zi,isInvalid:$a,validationErrors:As,validationDetails:bc}}function Wp(t){return A3()?t.altKey:t.ctrlKey}const I4=1e3;function O4(t){let{keyboardDelegate:e,selectionManager:n,onTypeSelect:i}=t,r=_.useRef({search:"",timeout:void 0}).current,s=o=>{let a=V4(o.key);if(!(!a||o.ctrlKey||o.metaKey||!o.currentTarget.contains(o.target))){if(a===" "&&r.search.trim().length>0&&(o.preventDefault(),"continuePropagation"in o||o.stopPropagation()),r.search+=a,e.getKeyForSearch!=null){let l=e.getKeyForSearch(r.search,n.focusedKey);l==null&&(l=e.getKeyForSearch(r.search)),l!=null&&(n.setFocusedKey(l),i&&i(l))}clearTimeout(r.timeout),r.timeout=setTimeout(()=>{r.search=""},I4)}};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?s:void 0}}}function V4(t){return t.length===1||!/^[A-Z]/i.test(t)?t:""}function z4(t){let{selectionManager:e,keyboardDelegate:n,ref:i,autoFocus:r=!1,shouldFocusWrap:s=!1,disallowEmptySelection:o=!1,disallowSelectAll:a=!1,selectOnFocus:l=e.selectionBehavior==="replace",disallowTypeAhead:u=!1,shouldUseVirtualFocus:c,allowsTabNavigation:d=!1,isVirtualized:f,scrollRef:h=i,linkBehavior:m="action"}=t,{direction:y}=gr(),x=vu(),p=F=>{var D;if(F.altKey&&F.key==="Tab"&&F.preventDefault(),!(!((D=i.current)===null||D===void 0)&&D.contains(F.target)))return;const R=(X,ht)=>{if(X!=null){if(e.isLink(X)&&m==="selection"&&l&&!Wp(F)){var Ze;Wl.flushSync(()=>{e.setFocusedKey(X,ht)});let Oi=(Ze=h.current)===null||Ze===void 0?void 0:Ze.querySelector(`[data-key="${CSS.escape(X.toString())}"]`),$n=e.getItemProps(X);Oi&&x.open(Oi,F,$n.href,$n.routerOptions);return}if(e.setFocusedKey(X,ht),e.isLink(X)&&m==="override")return;F.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(X):l&&!Wp(F)&&e.replaceSelection(X)}};switch(F.key){case"ArrowDown":if(n.getKeyBelow){var N,B,E;let X=e.focusedKey!=null?(N=n.getKeyBelow)===null||N===void 0?void 0:N.call(n,e.focusedKey):(B=n.getFirstKey)===null||B===void 0?void 0:B.call(n);X==null&&s&&(X=(E=n.getFirstKey)===null||E===void 0?void 0:E.call(n,e.focusedKey)),X!=null&&(F.preventDefault(),R(X))}break;case"ArrowUp":if(n.getKeyAbove){var z,H,I;let X=e.focusedKey!=null?(z=n.getKeyAbove)===null||z===void 0?void 0:z.call(n,e.focusedKey):(H=n.getLastKey)===null||H===void 0?void 0:H.call(n);X==null&&s&&(X=(I=n.getLastKey)===null||I===void 0?void 0:I.call(n,e.focusedKey)),X!=null&&(F.preventDefault(),R(X))}break;case"ArrowLeft":if(n.getKeyLeftOf){var K,Z,ee;let X=e.focusedKey!=null?(K=n.getKeyLeftOf)===null||K===void 0?void 0:K.call(n,e.focusedKey):null;X==null&&s&&(X=y==="rtl"?(Z=n.getFirstKey)===null||Z===void 0?void 0:Z.call(n,e.focusedKey):(ee=n.getLastKey)===null||ee===void 0?void 0:ee.call(n,e.focusedKey)),X!=null&&(F.preventDefault(),R(X,y==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var ne,fe,Qe;let X=e.focusedKey!=null?(ne=n.getKeyRightOf)===null||ne===void 0?void 0:ne.call(n,e.focusedKey):null;X==null&&s&&(X=y==="rtl"?(fe=n.getLastKey)===null||fe===void 0?void 0:fe.call(n,e.focusedKey):(Qe=n.getFirstKey)===null||Qe===void 0?void 0:Qe.call(n,e.focusedKey)),X!=null&&(F.preventDefault(),R(X,y==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(e.focusedKey===null&&F.shiftKey)return;F.preventDefault();let X=n.getFirstKey(e.focusedKey,ps(F));e.setFocusedKey(X),X!=null&&(ps(F)&&F.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(X):l&&e.replaceSelection(X))}break;case"End":if(n.getLastKey){if(e.focusedKey===null&&F.shiftKey)return;F.preventDefault();let X=n.getLastKey(e.focusedKey,ps(F));e.setFocusedKey(X),X!=null&&(ps(F)&&F.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(X):l&&e.replaceSelection(X))}break;case"PageDown":if(n.getKeyPageBelow&&e.focusedKey!=null){let X=n.getKeyPageBelow(e.focusedKey);X!=null&&(F.preventDefault(),R(X))}break;case"PageUp":if(n.getKeyPageAbove&&e.focusedKey!=null){let X=n.getKeyPageAbove(e.focusedKey);X!=null&&(F.preventDefault(),R(X))}break;case"a":ps(F)&&e.selectionMode==="multiple"&&a!==!0&&(F.preventDefault(),e.selectAll());break;case"Escape":!o&&e.selectedKeys.size!==0&&(F.stopPropagation(),F.preventDefault(),e.clearSelection());break;case"Tab":if(!d){if(F.shiftKey)i.current.focus();else{let X=uw(i.current,{tabbable:!0}),ht,Ze;do Ze=X.lastChild(),Ze&&(ht=Ze);while(Ze);ht&&!ht.contains(document.activeElement)&&wn(ht)}break}}},g=_.useRef({top:0,left:0});Ko(h,"scroll",f?void 0:()=>{var F,D,R,N;g.current={top:(R=(F=h.current)===null||F===void 0?void 0:F.scrollTop)!==null&&R!==void 0?R:0,left:(N=(D=h.current)===null||D===void 0?void 0:D.scrollLeft)!==null&&N!==void 0?N:0}});let b=F=>{if(e.isFocused){F.currentTarget.contains(F.target)||e.setFocused(!1);return}if(F.currentTarget.contains(F.target)){if(e.setFocused(!0),e.focusedKey==null){var D,R;let E=H=>{H!=null&&(e.setFocusedKey(H),l&&e.replaceSelection(H))},z=F.relatedTarget;var N,B;z&&F.currentTarget.compareDocumentPosition(z)&Node.DOCUMENT_POSITION_FOLLOWING?E((N=e.lastSelectedKey)!==null&&N!==void 0?N:(D=n.getLastKey)===null||D===void 0?void 0:D.call(n)):E((B=e.firstSelectedKey)!==null&&B!==void 0?B:(R=n.getFirstKey)===null||R===void 0?void 0:R.call(n))}else!f&&h.current&&(h.current.scrollTop=g.current.top,h.current.scrollLeft=g.current.left);if(e.focusedKey!=null&&h.current){let E=h.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);E&&(E.contains(document.activeElement)||wn(E),Cp()==="keyboard"&&A_(E,{containingElement:i.current}))}}},S=F=>{F.currentTarget.contains(F.relatedTarget)||e.setFocused(!1)},w=_.useRef(!1);Ko(i,U3,c?F=>{let{detail:D}=F;F.stopPropagation(),e.setFocused(!0),(D==null?void 0:D.focusStrategy)==="first"&&(w.current=!0)}:void 0);let C=je(()=>{var F,D;let R=(D=(F=n.getFirstKey)===null||F===void 0?void 0:F.call(n))!==null&&D!==void 0?D:null;if(R==null){var N;(N=i.current)===null||N===void 0||N.dispatchEvent(new CustomEvent(L_,{cancelable:!0,bubbles:!0})),e.collection.size>0&&(w.current=!1)}else e.setFocusedKey(R),w.current=!1});$_(()=>{w.current&&C()},[e.collection,C]);let L=je(()=>{e.collection.size>0&&(w.current=!1)});$_(()=>{L()},[e.focusedKey,L]),Ko(i,W3,c?F=>{F.stopPropagation(),e.setFocused(!1),e.setFocusedKey(null)}:void 0);const T=_.useRef(r);_.useEffect(()=>{if(T.current){var F,D;let B=null;var R;r==="first"&&(B=(R=(F=n.getFirstKey)===null||F===void 0?void 0:F.call(n))!==null&&R!==void 0?R:null);var N;r==="last"&&(B=(N=(D=n.getLastKey)===null||D===void 0?void 0:D.call(n))!==null&&N!==void 0?N:null);let E=e.selectedKeys;if(E.size){for(let z of E)if(e.canSelectItem(z)){B=z;break}}e.setFocused(!0),e.setFocusedKey(B),B==null&&!c&&i.current&&Eu(i.current)}},[]);let P=_.useRef(e.focusedKey);_.useEffect(()=>{if(e.isFocused&&e.focusedKey!=null&&(e.focusedKey!==P.current||T.current)&&h.current&&i.current){let F=Cp(),D=i.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);if(!D)return;(F==="keyboard"||T.current)&&(M_(h.current,D),F!=="virtual"&&A_(D,{containingElement:i.current}))}!c&&e.isFocused&&e.focusedKey==null&&P.current!=null&&i.current&&Eu(i.current),P.current=e.focusedKey,T.current=!1}),Ko(i,"react-aria-focus-scope-restore",F=>{F.preventDefault(),e.setFocused(!0)});let M={onKeyDown:p,onFocus:b,onBlur:S,onMouseDown(F){h.current===F.target&&F.preventDefault()}},{typeSelectProps:j}=O4({keyboardDelegate:n,selectionManager:e});u||(M=ue(j,M));let $;return c?$=-1:$=e.focusedKey==null?0:-1,{collectionProps:V(k({},M),{tabIndex:$})}}function B4(t){let{id:e,selectionManager:n,key:i,ref:r,shouldSelectOnPressUp:s,shouldUseVirtualFocus:o,focus:a,isDisabled:l,onAction:u,allowsDifferentPressOrigin:c,linkBehavior:d="action"}=t,f=vu();e=Kn(e);let h=E=>{if(E.pointerType==="keyboard"&&Wp(E))n.toggleSelection(i);else{if(n.selectionMode==="none")return;if(n.isLink(i)){if(d==="selection"&&r.current){let z=n.getItemProps(i);f.open(r.current,E,z.href,z.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(d==="override"||d==="none")return}n.selectionMode==="single"?n.isSelected(i)&&!n.disallowEmptySelection?n.toggleSelection(i):n.replaceSelection(i):E&&E.shiftKey?n.extendSelection(i):n.selectionBehavior==="toggle"||E&&(ps(E)||E.pointerType==="touch"||E.pointerType==="virtual")?n.toggleSelection(i):n.replaceSelection(i)}};_.useEffect(()=>{if(i===n.focusedKey&&n.isFocused)if(!o)a?a():document.activeElement!==r.current&&r.current&&Eu(r.current);else{var z;let H=new CustomEvent(L_,{cancelable:!0,bubbles:!0});(z=r.current)===null||z===void 0||z.dispatchEvent(H)}},[r,i,n.focusedKey,n.childFocusStrategy,n.isFocused,o]),l=l||n.isDisabled(i);let m={};!o&&!l?m={tabIndex:i===n.focusedKey?0:-1,onFocus(E){E.target===r.current&&n.setFocusedKey(i)}}:l&&(m.onMouseDown=E=>{E.preventDefault()});let y=n.isLink(i)&&d==="override",x=n.isLink(i)&&d!=="selection"&&d!=="none",p=!l&&n.canSelectItem(i)&&!y,g=(u||x)&&!l,b=g&&(n.selectionBehavior==="replace"?!p:!p||n.isEmpty),S=g&&p&&n.selectionBehavior==="replace",w=b||S,C=_.useRef(null),L=w&&p,T=_.useRef(!1),P=_.useRef(!1),M=E=>{if(u&&u(),x&&r.current){let z=n.getItemProps(i);f.open(r.current,E,z.href,z.routerOptions)}},j={};s?(j.onPressStart=E=>{C.current=E.pointerType,T.current=L,E.pointerType==="keyboard"&&(!w||q1())&&h(E)},c?(j.onPressUp=b?void 0:E=>{E.pointerType==="mouse"&&p&&h(E)},j.onPress=b?M:E=>{E.pointerType!=="keyboard"&&E.pointerType!=="mouse"&&p&&h(E)}):j.onPress=E=>{if(b||S&&E.pointerType!=="mouse"){if(E.pointerType==="keyboard"&&!X1())return;M(E)}else E.pointerType!=="keyboard"&&p&&h(E)}):(j.onPressStart=E=>{C.current=E.pointerType,T.current=L,P.current=b,p&&(E.pointerType==="mouse"&&!b||E.pointerType==="keyboard"&&(!g||q1()))&&h(E)},j.onPress=E=>{(E.pointerType==="touch"||E.pointerType==="pen"||E.pointerType==="virtual"||E.pointerType==="keyboard"&&w&&X1()||E.pointerType==="mouse"&&P.current)&&(w?M(E):p&&h(E))}),m["data-key"]=i,j.preventFocusOnPress=o;let{pressProps:$,isPressed:F}=yp(j),D=S?E=>{C.current==="mouse"&&(E.stopPropagation(),E.preventDefault(),M(E))}:void 0,{longPressProps:R}=j5({isDisabled:!L,onLongPress(E){E.pointerType==="touch"&&(h(E),n.setSelectionBehavior("toggle"))}}),N=E=>{C.current==="touch"&&T.current&&E.preventDefault()},B=n.isLink(i)?E=>{fr.isOpening||E.preventDefault()}:void 0;return{itemProps:ue(m,p||b?$:{},L?R:{},{onDoubleClick:D,onDragStartCapture:N,onClick:B,id:e}),isPressed:F,isSelected:n.isSelected(i),isFocused:n.isFocused&&n.focusedKey===i,isDisabled:l,allowsSelection:p,hasAction:w}}function X1(){let t=window.event;return(t==null?void 0:t.key)==="Enter"}function q1(){let t=window.event;return(t==null?void 0:t.key)===" "||(t==null?void 0:t.code)==="Space"}class K4{build(e,n){return this.context=n,Q1(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:n,items:i}=e;if(Y.isValidElement(n)&&n.type===Y.Fragment)yield*Rs(this.iterateCollection({children:n.props.children,items:i}));else if(typeof n=="function"){if(!i)throw new Error("props.children was a function but props.items is missing");let r=0;for(let s of i)yield*Rs(this.getFullNode({value:s,index:r},{renderer:n})),r++}else{let r=[];Y.Children.forEach(n,o=>{o&&r.push(o)});let s=0;for(let o of r){let a=this.getFullNode({element:o,index:s},{});for(let l of a)s++,yield l}}}getKey(e,n,i,r){if(e.key!=null)return e.key;if(n.type==="cell"&&n.key!=null)return`${r}${n.key}`;let s=n.value;if(s!=null){var o;let a=(o=s.key)!==null&&o!==void 0?o:s.id;if(a==null)throw new Error("No key found for item");return a}return r?`${r}.${n.index}`:`$.${n.index}`}getChildState(e,n){return{renderer:n.renderer||e.renderer}}*getFullNode(e,n,i,r){if(Y.isValidElement(e.element)&&e.element.type===Y.Fragment){let x=[];Y.Children.forEach(e.element.props.children,g=>{x.push(g)});var s;let p=(s=e.index)!==null&&s!==void 0?s:0;for(const g of x)yield*Rs(this.getFullNode({element:g,index:p++},n,i,r));return}let o=e.element;if(!o&&e.value&&n&&n.renderer){let x=this.cache.get(e.value);if(x&&(!x.shouldInvalidate||!x.shouldInvalidate(this.context))){x.index=e.index,x.parentKey=r?r.key:null,yield x;return}o=n.renderer(e.value)}if(Y.isValidElement(o)){let x=o.type;if(typeof x!="function"&&typeof x.getCollectionNode!="function"){let S=o.type;throw new Error(`Unknown element <${S}> in collection.`)}let p=x.getCollectionNode(o.props,this.context);var a;let g=(a=e.index)!==null&&a!==void 0?a:0,b=p.next();for(;!b.done&&b.value;){let S=b.value;e.index=g;var l;let w=(l=S.key)!==null&&l!==void 0?l:null;w==null&&(w=S.element?null:this.getKey(o,e,n,i));let L=[...this.getFullNode(V(k({},S),{key:w,index:g,wrapper:H4(e.wrapper,S.wrapper)}),this.getChildState(n,S),i?`${i}${o.key}`:o.key,r)];for(let T of L){var u,c;T.value=(c=(u=S.value)!==null&&u!==void 0?u:e.value)!==null&&c!==void 0?c:null,T.value&&this.cache.set(T.value,T);var d;if(e.type&&T.type!==e.type)throw new Error(`Unsupported type <${Up(T.type)}> in <${Up((d=r==null?void 0:r.type)!==null&&d!==void 0?d:"unknown parent type")}>. Only <${Up(e.type)}> is supported.`);g++,yield T}b=p.next(L)}return}if(e.key==null||e.type==null)return;let f=this;var h,m;let y={type:e.type,props:e.props,key:e.key,parentKey:r?r.key:null,value:(h=e.value)!==null&&h!==void 0?h:null,level:r?r.level+1:0,index:e.index,rendered:e.rendered,textValue:(m=e.textValue)!==null&&m!==void 0?m:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:Q1(function*(){if(!e.hasChildNodes||!e.childNodes)return;let x=0;for(let p of e.childNodes()){p.key!=null&&(p.key=`${y.key}${p.key}`);let g=f.getFullNode(V(k({},p),{index:x}),f.getChildState(n,p),y.key,y);for(let b of g)x++,yield b}})};yield y}constructor(){this.cache=new WeakMap}}function Q1(t){let e=[],n=null;return{*[Symbol.iterator](){for(let i of e)yield i;n||(n=t());for(let i of n)e.push(i),yield i}}}function H4(t,e){if(t&&e)return n=>t(e(n));if(t)return t;if(e)return e}function Up(t){return t[0].toUpperCase()+t.slice(1)}function W4(t,e,n){let i=_.useMemo(()=>new K4,[]),{children:r,items:s,collection:o}=t;return _.useMemo(()=>{if(o)return o;let l=i.build({children:r,items:s},n);return e(l)},[i,r,s,o,n,e])}function U4(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}function Y4(t){return G4(t)}function G4(t,e){for(let n of t)return n}function Yp(t,e,n){if(e.parentKey===n.parentKey)return e.index-n.index;let i=[...Z1(t,e),e],r=[...Z1(t,n),n],s=i.slice(0,r.length).findIndex((o,a)=>o!==r[a]);return s!==-1?(e=i[s],n=r[s],e.index-n.index):i.findIndex(o=>o===n)>=0?1:(r.findIndex(o=>o===e)>=0,-1)}function Z1(t,e){let n=[],i=e;for(;(i==null?void 0:i.parentKey)!=null;)i=t.getItem(i.parentKey),i&&n.unshift(i);return n}const J1=new WeakMap;function Ru(t,e,n){return t?(typeof e=="string"&&(e=e.replace(/\s+/g,"")),`${J1.get(t)}-${n}-${e}`):""}function X4(t,e,n){let{key:i,isDisabled:r,shouldSelectOnPressUp:s}=t,{selectionManager:o,selectedKey:a}=e,l=i===a,u=r||e.isDisabled||e.selectionManager.isDisabled(i),{itemProps:c,isPressed:d}=B4({selectionManager:o,key:i,ref:n,isDisabled:u,shouldSelectOnPressUp:s,linkBehavior:"selection"}),f=Ru(e,i,"tab"),h=Ru(e,i,"tabpanel"),{tabIndex:m}=c,y=e.collection.getItem(i),x=dn(y==null?void 0:y.props,{labelable:!0});delete x.id;let p=k_(y==null?void 0:y.props);return{tabProps:ue(x,p,c,{id:f,"aria-selected":l,"aria-disabled":u||void 0,"aria-controls":l?h:void 0,tabIndex:u?void 0:m,role:"tab"}),isSelected:l,isDisabled:u,isPressed:d}}function q4(t,e,n){let i=H5(n)?void 0:0;var r;const s=Ru(e,(r=t.id)!==null&&r!==void 0?r:e==null?void 0:e.selectedKey,"tabpanel"),o=rp(V(k({},t),{id:s,"aria-labelledby":Ru(e,e==null?void 0:e.selectedKey,"tab")}));return{tabPanelProps:ue(o,{tabIndex:i,role:"tabpanel","aria-describedby":t["aria-describedby"],"aria-details":t["aria-details"]})}}class Q4{getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){var n,i;return this.disabledKeys.has(e)||!!(!((i=this.collection.getItem(e))===null||i===void 0||(n=i.props)===null||n===void 0)&&n.isDisabled)}getFirstKey(){let e=this.collection.getFirstKey();return e!=null&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return e!=null&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){do e=this.collection.getKeyAfter(e),e==null&&(e=this.collection.getFirstKey());while(this.isDisabled(e));return e}getPreviousKey(e){do e=this.collection.getKeyBefore(e),e==null&&(e=this.collection.getLastKey());while(this.isDisabled(e));return e}constructor(e,n,i,r=new Set){this.collection=e,this.flipDirection=n==="rtl"&&i==="horizontal",this.disabledKeys=r,this.tabDirection=i==="horizontal"}}function Z4(t,e,n){let{orientation:i="horizontal",keyboardActivation:r="automatic"}=t,{collection:s,selectionManager:o,disabledKeys:a}=e,{direction:l}=gr(),u=_.useMemo(()=>new Q4(s,l,i,a),[s,a,i,l]),{collectionProps:c}=z4({ref:n,selectionManager:o,keyboardDelegate:u,selectOnFocus:r==="automatic",disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),d=Kn();J1.set(e,d);let f=rp(V(k({},t),{id:d}));return{tabListProps:V(k({},ue(c,f)),{role:"tablist","aria-orientation":i,tabIndex:void 0})}}const J4=_.createContext({}),eS=_.createContext({}),eA=_.forwardRef(function(e,n){[e,n]=Sn(e,n,eS);let s=e,{elementType:i="span"}=s,r=se(s,["elementType"]);return Y.createElement(i,V(k({className:"react-aria-Text"},r),{ref:n}))}),Gp=_.createContext(null),tA=_.forwardRef(function(e,n){let i=_.useContext(Gp);return i!=null&&i.isInvalid?Y.createElement(nA,V(k({},e),{ref:n})):null}),nA=_.forwardRef((t,e)=>{let n=_.useContext(Gp),i=dn(t),r=jt(V(k({},t),{defaultClassName:"react-aria-FieldError",defaultChildren:n.validationErrors.length===0?void 0:n.validationErrors.join(" "),values:n}));return r.children==null?null:Y.createElement(eA,V(k(k({slot:"errorMessage"},i),r),{ref:e}))});class tS{*[Symbol.iterator](){yield*Rs(this.iterable)}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let n=this.keyMap.get(e);var i;return n&&(i=n.prevKey)!==null&&i!==void 0?i:null}getKeyAfter(e){let n=this.keyMap.get(e);var i;return n&&(i=n.nextKey)!==null&&i!==void 0?i:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var n;return(n=this.keyMap.get(e))!==null&&n!==void 0?n:null}at(e){const n=[...this.getKeys()];return this.getItem(n[e])}getChildren(e){let n=this.keyMap.get(e);return(n==null?void 0:n.childNodes)||[]}constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let n=o=>{if(this.keyMap.set(o.key,o),o.childNodes&&o.type==="section")for(let a of o.childNodes)n(a)};for(let o of e)n(o);let i=null,r=0;for(let[o,a]of this.keyMap)i?(i.nextKey=o,a.prevKey=i.key):(this.firstKey=o,a.prevKey=void 0),a.type==="item"&&(a.index=r++),i=a,i.nextKey=void 0;var s;this.lastKey=(s=i==null?void 0:i.key)!==null&&s!==void 0?s:null}}class fn extends Set{constructor(e,n,i){super(e),e instanceof fn?(this.anchorKey=n!=null?n:e.anchorKey,this.currentKey=i!=null?i:e.currentKey):(this.anchorKey=n!=null?n:null,this.currentKey=i!=null?i:null)}}function iA(t,e){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function rA(t){let{selectionMode:e="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:i,selectionBehavior:r="toggle",disabledBehavior:s="all"}=t,o=_.useRef(!1),[,a]=_.useState(!1),l=_.useRef(null),u=_.useRef(null),[,c]=_.useState(null),d=_.useMemo(()=>nS(t.selectedKeys),[t.selectedKeys]),f=_.useMemo(()=>nS(t.defaultSelectedKeys,new fn),[t.defaultSelectedKeys]),[h,m]=Ho(d,f,t.onSelectionChange),y=_.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),[x,p]=_.useState(r);r==="replace"&&x==="toggle"&&typeof h=="object"&&h.size===0&&p("replace");let g=_.useRef(r);return _.useEffect(()=>{r!==g.current&&(p(r),g.current=r)},[r]),{selectionMode:e,disallowEmptySelection:n,selectionBehavior:x,setSelectionBehavior:p,get isFocused(){return o.current},setFocused(b){o.current=b,a(b)},get focusedKey(){return l.current},get childFocusStrategy(){return u.current},setFocusedKey(b,S="first"){l.current=b,u.current=S,c(b)},selectedKeys:h,setSelectedKeys(b){(i||!iA(b,h))&&m(b)},disabledKeys:y,disabledBehavior:s}}function nS(t,e){return t?t==="all"?"all":new fn(t):e}class sA{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,n){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode==="none")return!1;let n=this.getKey(e);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=e.every(i=>n.has(i)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let i of this.state.selectedKeys){let r=this.collection.getItem(i);(!e||r&&Yp(this.collection,r,e)<0)&&(e=r)}var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let e=null;for(let i of this.state.selectedKeys){let r=this.collection.getItem(i);(!e||r&&Yp(this.collection,r,e)>0)&&(e=r)}var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(e);return}let n=this.getKey(e);if(n==null)return;let i;if(this.state.selectedKeys==="all")i=new fn([n],n,n);else{let o=this.state.selectedKeys;var r;let a=(r=o.anchorKey)!==null&&r!==void 0?r:n;i=new fn(o,a,n);var s;for(let l of this.getKeyRange(a,(s=o.currentKey)!==null&&s!==void 0?s:n))i.delete(l);for(let l of this.getKeyRange(n,a))this.canSelectItem(l)&&i.add(l)}this.state.setSelectedKeys(i)}getKeyRange(e,n){let i=this.collection.getItem(e),r=this.collection.getItem(n);return i&&r?Yp(this.collection,i,r)<=0?this.getKeyRangeInternal(e,n):this.getKeyRangeInternal(n,e):[]}getKeyRangeInternal(e,n){var i;if(!((i=this.layoutDelegate)===null||i===void 0)&&i.getKeyRange)return this.layoutDelegate.getKeyRange(e,n);let r=[],s=e;for(;s!=null;){let o=this.collection.getItem(s);if(o&&(o.type==="item"||o.type==="cell"&&this.allowsCellSelection)&&r.push(s),s===n)return r;s=this.collection.getKeyAfter(s)}return[]}getKey(e){let n=this.collection.getItem(e);if(!n||n.type==="cell"&&this.allowsCellSelection)return e;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}let n=this.getKey(e);if(n==null)return;let i=new fn(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);i.has(n)?i.delete(n):this.canSelectItem(n)&&(i.add(n),i.anchorKey=n,i.currentKey=n),!(this.disallowEmptySelection&&i.size===0)&&this.state.setSelectedKeys(i)}replaceSelection(e){if(this.selectionMode==="none")return;let n=this.getKey(e);if(n==null)return;let i=this.canSelectItem(n)?new fn([n],n,n):new fn;this.state.setSelectedKeys(i)}setSelectedKeys(e){if(this.selectionMode==="none")return;let n=new fn;for(let i of e){let r=this.getKey(i);if(r!=null&&(n.add(r),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let e=[],n=i=>{for(;i!=null;){if(this.canSelectItem(i)){var r;let o=this.collection.getItem(i);(o==null?void 0:o.type)==="item"&&e.push(i);var s;o!=null&&o.hasChildNodes&&(this.allowsCellSelection||o.type!=="item")&&n((s=(r=Y4(U4(o,this.collection)))===null||r===void 0?void 0:r.key)!==null&&s!==void 0?s:null)}i=this.collection.getKeyAfter(i)}};return n(this.collection.getFirstKey()),e}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new fn)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(e.size!==n.size)return!1;for(let i of e)if(!n.has(i))return!1;for(let i of n)if(!e.has(i))return!1;return!0}canSelectItem(e){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(e))return!1;let i=this.collection.getItem(e);return!(!i||!(i==null||(n=i.props)===null||n===void 0)&&n.isDisabled||i.type==="cell"&&!this.allowsCellSelection)}isDisabled(e){var n,i;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(e)||!!(!((i=this.collection.getItem(e))===null||i===void 0||(n=i.props)===null||n===void 0)&&n.isDisabled))}isLink(e){var n,i;return!!(!((i=this.collection.getItem(e))===null||i===void 0||(n=i.props)===null||n===void 0)&&n.href)}getItemProps(e){var n;return(n=this.collection.getItem(e))===null||n===void 0?void 0:n.props}constructor(e,n,i){this.collection=e,this.state=n;var r;this.allowsCellSelection=(r=i==null?void 0:i.allowsCellSelection)!==null&&r!==void 0?r:!1,this._isSelectAll=null,this.layoutDelegate=(i==null?void 0:i.layoutDelegate)||null}}function oA(t){let{filter:e,layoutDelegate:n}=t,i=rA(t),r=_.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),s=_.useCallback(c=>e?new tS(e(c)):new tS(c),[e]),o=_.useMemo(()=>({suppressTextValueWarning:t.suppressTextValueWarning}),[t.suppressTextValueWarning]),a=W4(t,s,o),l=_.useMemo(()=>new sA(a,i,{layoutDelegate:n}),[a,i,n]);const u=_.useRef(null);return _.useEffect(()=>{if(i.focusedKey!=null&&!a.getItem(i.focusedKey)&&u.current){const p=u.current.getItem(i.focusedKey),g=[...u.current.getKeys()].map(T=>{const P=u.current.getItem(T);return(P==null?void 0:P.type)==="item"?P:null}).filter(T=>T!==null),b=[...a.getKeys()].map(T=>{const P=a.getItem(T);return(P==null?void 0:P.type)==="item"?P:null}).filter(T=>T!==null);var c,d;const S=((c=g==null?void 0:g.length)!==null&&c!==void 0?c:0)-((d=b==null?void 0:b.length)!==null&&d!==void 0?d:0);var f,h,m;let w=Math.min(S>1?Math.max(((f=p==null?void 0:p.index)!==null&&f!==void 0?f:0)-S+1,0):(h=p==null?void 0:p.index)!==null&&h!==void 0?h:0,((m=b==null?void 0:b.length)!==null&&m!==void 0?m:0)-1),C=null,L=!1;for(;w>=0;){if(!l.isDisabled(b[w].key)){C=b[w];break}if(w((y=p==null?void 0:p.index)!==null&&y!==void 0?y:0)&&(w=(x=p==null?void 0:p.index)!==null&&x!==void 0?x:0),w--}}i.setFocusedKey(C?C.key:null)}u.current=a},[a,l,i,i.focusedKey]),{collection:a,disabledKeys:r,selectionManager:l}}function aA(t){var e;let[n,i]=Ho(t.selectedKey,(e=t.defaultSelectedKey)!==null&&e!==void 0?e:null,t.onSelectionChange),r=_.useMemo(()=>n!=null?[n]:[],[n]),{collection:s,disabledKeys:o,selectionManager:a}=oA(V(k({},t),{selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:r,onSelectionChange:u=>{if(u==="all")return;var c;let d=(c=u.values().next().value)!==null&&c!==void 0?c:null;d===n&&t.onSelectionChange&&t.onSelectionChange(d),i(d)}})),l=n!=null?s.getItem(n):null;return{collection:s,disabledKeys:o,selectionManager:a,selectedKey:n,setSelectedKey:i,selectedItem:l}}function lA(t){var e,n;let i=aA(V(k({},t),{suppressTextValueWarning:!0,defaultSelectedKey:(n=(e=t.defaultSelectedKey)!==null&&e!==void 0?e:iS(t.collection,t.disabledKeys?new Set(t.disabledKeys):new Set))!==null&&n!==void 0?n:void 0})),{selectionManager:r,collection:s,selectedKey:o}=i,a=_.useRef(o);return _.useEffect(()=>{let l=o;(r.isEmpty||l==null||!s.getItem(l))&&(l=iS(s,i.disabledKeys),l!=null&&r.setSelectedKeys([l])),(l!=null&&r.focusedKey==null||!r.isFocused&&l!==a.current)&&r.setFocusedKey(l),a.current=l}),V(k({},i),{isDisabled:t.isDisabled||!1})}function iS(t,e){let n=null;if(t){var i,r,s,o;for(n=t.getFirstKey();n!=null&&(e.has(n)||!((r=t.getItem(n))===null||r===void 0||(i=r.props)===null||i===void 0)&&i.isDisabled)&&n!==t.getLastKey();)n=t.getKeyAfter(n);n!=null&&(e.has(n)||!((o=t.getItem(n))===null||o===void 0||(s=o.props)===null||s===void 0)&&s.isDisabled)&&n===t.getLastKey()&&(n=t.getFirstKey())}return n}const uA=_.createContext(null),rS=_.createContext({}),cA=_.forwardRef(function(e,n){[e,n]=Sn(e,n,rS);let p=e,{isDisabled:i,isInvalid:r,onHoverStart:s,onHoverChange:o,onHoverEnd:a}=p,l=se(p,["isDisabled","isInvalid","onHoverStart","onHoverChange","onHoverEnd"]),{hoverProps:u,isHovered:c}=vs({onHoverStart:s,onHoverChange:o,onHoverEnd:a,isDisabled:i}),{isFocused:d,isFocusVisible:f,focusProps:h}=mr({within:!0});i!=null||(i=!!e["aria-disabled"]&&e["aria-disabled"]!=="false"),r!=null||(r=!!e["aria-invalid"]&&e["aria-invalid"]!=="false");let m=jt(V(k({},e),{values:{isHovered:c,isFocusWithin:d,isFocusVisible:f,isDisabled:i,isInvalid:r},defaultClassName:"react-aria-Group"}));var y,x;return Y.createElement("div",V(k(k({},ue(l,h,u)),m),{ref:n,role:(y=e.role)!==null&&y!==void 0?y:"group",slot:(x=e.slot)!==null&&x!==void 0?x:void 0,"data-focus-within":d||void 0,"data-hovered":c||void 0,"data-focus-visible":f||void 0,"data-disabled":i||void 0,"data-invalid":r||void 0}),m.children)}),sS=_.createContext({});let dA=t=>{let s=t,{onHoverStart:e,onHoverChange:n,onHoverEnd:i}=s;return se(s,["onHoverStart","onHoverChange","onHoverEnd"])};const fA=fp(function(e,n){[e,n]=Sn(e,n,sS);let{hoverProps:i,isHovered:r}=vs(e),{isFocused:s,isFocusVisible:o,focusProps:a}=mr({isTextInput:!0,autoFocus:e.autoFocus}),l=!!e["aria-invalid"]&&e["aria-invalid"]!=="false",u=jt(V(k({},e),{values:{isHovered:r,isFocused:s,isFocusVisible:o,isDisabled:e.disabled||!1,isInvalid:l},defaultClassName:"react-aria-Input"}));return Y.createElement("input",V(k(k({},ue(dA(e),a,i)),u),{ref:n,"data-focused":s||void 0,"data-disabled":e.disabled||void 0,"data-hovered":r||void 0,"data-focus-visible":o||void 0,"data-invalid":l||void 0}))}),oS={CollectionRoot({collection:t,renderDropIndicator:e}){return aS(t,null,e)},CollectionBranch({collection:t,parent:e,renderDropIndicator:n}){return aS(t,e,n)}};function aS(t,e,n){return N_({items:e?t.getChildren(e.key):t,dependencies:[n],children(i){var r;let s=i.render(i);if(!n||i.type!=="item")return s;let o=i.key,a=t.getKeyAfter(o);return Y.createElement(Y.Fragment,null,n({type:"item",key:o,dropPosition:"before"}),s,(a==null||((r=t.getItem(a))===null||r===void 0?void 0:r.type)!=="item")&&n({type:"item",key:o,dropPosition:"after"}))}})}const lS=_.createContext(oS);function hA(t){return _.useMemo(()=>t!=null?new Set([t]):null,[t])}const pA=_.createContext(null),mA=_.forwardRef(function(e,n){[e,n]=Sn(e,n,pA);let i=e.href&&!e.isDisabled?"a":"span",{linkProps:r,isPressed:s}=W5(V(k({},e),{elementType:i}),n),{hoverProps:o,isHovered:a}=vs(e),{focusProps:l,isFocused:u,isFocusVisible:c}=mr(),d=jt(V(k({},e),{defaultClassName:"react-aria-Link",values:{isCurrent:!!e["aria-current"],isDisabled:e.isDisabled||!1,isPressed:s,isHovered:a,isFocused:u,isFocusVisible:c}}));return Y.createElement(i,V(k({ref:n,slot:e.slot||void 0},ue(d,r,o,l)),{"data-focused":u||void 0,"data-hovered":a||void 0,"data-pressed":s||void 0,"data-focus-visible":c||void 0,"data-current":!!e["aria-current"]||void 0,"data-disabled":e.isDisabled||void 0}),d.children)}),gA=_.createContext(null),Fu=_.createContext(null),Xp=_.createContext(null),uS=_.createContext(null),yA=_.forwardRef(function(e,n){[e,n]=Sn(e,n,gA);let i=_.useRef(null),r=jp(e.formatOptions),s=C4(V(k({},e),{numberFormatter:r})),[o,a]=lp(),{groupProps:l,trackProps:u,labelProps:c,outputProps:d}=M4(V(k({},e),{label:a}),s,i),f=jt(V(k({},e),{values:{orientation:s.orientation,isDisabled:s.isDisabled,state:s},defaultClassName:"react-aria-Slider"})),h=dn(e);return delete h.id,Y.createElement(Wo,{values:[[Fu,s],[Xp,V(k({},u),{ref:i})],[uS,d],[wu,V(k({},c),{ref:o})]]},Y.createElement("div",V(k(k(k({},h),l),f),{ref:n,slot:e.slot||void 0,"data-orientation":s.orientation,"data-disabled":s.isDisabled||void 0})))}),vA=_.forwardRef(function(e,n){[e,n]=Sn(e,n,uS);let u=e,{children:i,style:r,className:s}=u,o=se(u,["children","style","className"]),a=_.useContext(Fu),l=jt({className:s,style:r,children:i,defaultChildren:a.getThumbValueLabel(0),defaultClassName:"react-aria-SliderOutput",values:{orientation:a.orientation,isDisabled:a.isDisabled,state:a}});return Y.createElement("output",V(k(k({},o),l),{ref:n,"data-orientation":a.orientation||void 0,"data-disabled":a.isDisabled||void 0}))}),bA=_.forwardRef(function(e,n){[e,n]=Sn(e,n,Xp);let i=_.useContext(Fu),d=e,{onHoverStart:r,onHoverEnd:s,onHoverChange:o}=d,a=se(d,["onHoverStart","onHoverEnd","onHoverChange"]),{hoverProps:l,isHovered:u}=vs({onHoverStart:r,onHoverEnd:s,onHoverChange:o}),c=jt(V(k({},e),{defaultClassName:"react-aria-SliderTrack",values:{orientation:i.orientation,isDisabled:i.isDisabled,isHovered:u,state:i}}));return Y.createElement("div",V(k(k({},ue(a,l)),c),{ref:n,"data-hovered":u||void 0,"data-orientation":i.orientation||void 0,"data-disabled":i.isDisabled||void 0}))}),xA=_.forwardRef(function(e,n){let{inputRef:i=null}=e,r=_.useContext(Fu),{ref:s}=_u(Xp),{index:o=0}=e,a=_.useRef(null),l=i||a,[u,c]=lp(),{thumbProps:d,inputProps:f,labelProps:h,isDragging:m,isFocused:y,isDisabled:x}=D4(V(k({},e),{index:o,trackRef:s,inputRef:l,label:c}),r),{focusProps:p,isFocusVisible:g}=mr(),{hoverProps:b,isHovered:S}=vs(e),w=jt(V(k({},e),{defaultClassName:"react-aria-SliderThumb",values:{state:r,isHovered:S,isDragging:m,isFocused:y,isFocusVisible:g,isDisabled:x}})),C=dn(e);return delete C.id,Y.createElement("div",V(k(k({},ue(C,d,b)),w),{ref:n,style:k(k({},d.style),w.style),"data-hovered":S||void 0,"data-dragging":m||void 0,"data-focused":y||void 0,"data-focus-visible":g||void 0,"data-disabled":x||void 0}),Y.createElement(E4,null,Y.createElement("input",k({ref:l},ue(f,p)))),Y.createElement(Wo,{values:[[wu,V(k({},h),{ref:u})]]},w.children))}),_A=_.createContext(null),wA=_.createContext(null),SA=_.forwardRef(function(e,n){[e,n]=Sn(e,n,_A);let{validationBehavior:i}=_u(uA)||{};var r,s;let o=(s=(r=e.validationBehavior)!==null&&r!==void 0?r:i)!==null&&s!==void 0?s:"native",{locale:a}=gr(),l=T4(V(k({},e),{locale:a,validationBehavior:o})),u=_.useRef(null),[c,d]=lp(),C=j4(V(k({},Y3(e)),{label:d,validationBehavior:o}),l,u),{labelProps:f,groupProps:h,inputProps:m,incrementButtonProps:y,decrementButtonProps:x,descriptionProps:p,errorMessageProps:g}=C,b=se(C,["labelProps","groupProps","inputProps","incrementButtonProps","decrementButtonProps","descriptionProps","errorMessageProps"]),S=jt(V(k({},e),{values:{state:l,isDisabled:e.isDisabled||!1,isInvalid:b.isInvalid||!1},defaultClassName:"react-aria-NumberField"})),w=dn(e);return delete w.id,Y.createElement(Wo,{values:[[wA,l],[rS,h],[sS,V(k({},m),{ref:u})],[wu,V(k({},f),{ref:c})],[J4,{slots:{increment:y,decrement:x}}],[eS,{slots:{description:p,errorMessage:g}}],[Gp,b]]},Y.createElement("div",V(k(k({},w),S),{ref:n,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":b.isInvalid||void 0})),e.name&&Y.createElement("input",{type:"hidden",name:e.name,value:isNaN(l.numberValue)?"":l.numberValue}))}),Nu=_.createContext(null),xs=_.createContext(null),PA=_.forwardRef(function(e,n){[e,n]=Sn(e,n,Nu);let{children:i,orientation:r="horizontal"}=e;return i=_.useMemo(()=>typeof i=="function"?i({orientation:r,defaultChildren:null}):i,[i,r]),Y.createElement(a5,{content:i},s=>Y.createElement(kA,{props:e,collection:s,tabsRef:n}))});function kA({props:t,tabsRef:e,collection:n}){let{orientation:i="horizontal"}=t,r=lA(V(k({},t),{collection:n,children:void 0})),{focusProps:s,isFocused:o,isFocusVisible:a}=mr({within:!0}),l=_.useMemo(()=>({orientation:i,isFocusWithin:o,isFocusVisible:a}),[i,o,a]),u=jt(V(k({},t),{defaultClassName:"react-aria-Tabs",values:l}));return Y.createElement("div",V(k(k(k({},dn(t)),s),u),{ref:e,slot:t.slot||void 0,"data-focused":o||void 0,"data-orientation":i,"data-focus-visible":a||void 0,"data-disabled":r.isDisabled||void 0}),Y.createElement(Wo,{values:[[Nu,t],[xs,r]]},u.children))}const CA=_.forwardRef(function(e,n){return _.useContext(xs)?Y.createElement(TA,{props:e,forwardedRef:n}):Y.createElement(m5,e)});function TA({props:t,forwardedRef:e}){let n=_.useContext(xs),{CollectionRoot:i}=_.useContext(lS),{orientation:r="horizontal",keyboardActivation:s="automatic"}=_u(Nu),o=bu(e),{tabListProps:a}=Z4(V(k({},t),{orientation:r,keyboardActivation:s}),n,o),l=jt(V(k({},t),{children:null,defaultClassName:"react-aria-TabList",values:{orientation:r,state:n}})),u=dn(t);return delete u.id,Y.createElement("div",V(k(V(k(k({},u),a),{ref:o}),l),{"data-orientation":r||void 0}),Y.createElement(i,{collection:n.collection,persistedKeys:hA(n.selectionManager.focusedKey)}))}const $A=h5("item",(t,e,n)=>{let i=_.useContext(xs),r=bu(e),{tabProps:s,isSelected:o,isDisabled:a,isPressed:l}=X4(k({key:n.key},t),i,r),{focusProps:u,isFocused:c,isFocusVisible:d}=mr(),{hoverProps:f,isHovered:h}=vs({isDisabled:a,onHoverStart:t.onHoverStart,onHoverEnd:t.onHoverEnd,onHoverChange:t.onHoverChange}),m=jt(V(k({},t),{id:void 0,defaultClassName:"react-aria-Tab",values:{isSelected:o,isDisabled:a,isFocused:c,isFocusVisible:d,isPressed:l,isHovered:h}})),y=n.props.href?"a":"div";return Y.createElement(y,V(k({},ue(s,u,f,m)),{ref:r,"data-selected":o||void 0,"data-disabled":a||void 0,"data-focused":c||void 0,"data-focus-visible":d||void 0,"data-pressed":l||void 0,"data-hovered":h||void 0}))}),EA=fp(function(e,n){const i=_.useContext(xs);let r=bu(n),{tabPanelProps:s}=q4(e,i,r),{focusProps:o,isFocused:a,isFocusVisible:l}=mr(),u=i.selectedKey===e.id,c=jt(V(k({},e),{defaultClassName:"react-aria-TabPanel",values:{isFocused:a,isFocusVisible:l,isInert:!u,state:i}}));if(!u&&!e.shouldForceMount)return null;let d=dn(e);delete d.id;let f=u?ue(d,s,o,c):c;return Y.createElement("div",V(k({},f),{ref:r,"data-focused":a||void 0,"data-focus-visible":l||void 0,inert:u?void 0:"true","data-inert":u?void 0:"true"}),Y.createElement(Wo,{values:[[Nu,null],[xs,null]]},Y.createElement(lS.Provider,{value:oS},c.children)))});function qp(){const t={id:"",name:"",position:"",source:"",variant:"",state:"",type:""},e=document.getElementById("wps-agentforce-roi");if(!e)return t;const n=e.closest('[data-blade-name="sf/open"]');if(!n)return t;const i={};return Array.from(n.attributes).forEach(r=>{if(r.name.startsWith("data-blade-")){const s=r.name.replace("data-blade-","");i[s]=r.value}}),k(k({},t),i)}const MA=t=>{if(!t)return 0;const e=t.closest(".input-panel");if(!e)return 0;const n=Array.from(e.querySelectorAll(".input-container")),i=t.closest(".input-container");return i?n.indexOf(i)+1:0},cS=(t,e,n)=>{let i=null;const r=qp();typeof t=="number"?i=document.querySelectorAll(`[data-input-name="${e}"]`)[0]:i=t.target;const s=MA(i),o={event:"custEv_contentClick",blade:{id:r.id,name:"sf/marquee/agentforce-inputs",position:r.position,source:"www",variant:"marquee",state:"rendered",type:"blade",module:{id:"",name:e,type:i?"input field":"slider",position:s,link:{text:"",url:"",type:"",internalDriver:""}}}};window.dataLayer&&window.dataLayer.push(k({},o))};function wt(o){var a=o,{label:t,description:e,errorMessage:n,info:i,inputName:r}=a,s=se(a,["label","description","errorMessage","info","inputName"]);return v.jsx(SA,V(k({},s),{children:v.jsxs("div",{className:"flex flex-col gap-2 input-container",children:[v.jsx(z_,{className:"font-sans text-sm font-bold leading-tight text-neutral-700",children:t}),v.jsx(cA,{children:v.jsx(fA,{id:t,className:"w-full rounded border border-[#747474] p-2 text-lg focus:outline-none focus:ring-2 focus:ring-blue-500",onChange:l=>cS(l,r),"data-input-name":r})}),v.jsx(tA,{className:"font-sans text-sm leading-tight text-red-600",children:n})]})}))}function Un({label:t,info:e,value:n,onChange:i,maxValue:r,minValue:s,prefix:o,suffix:a,step:l,inputName:u}){return v.jsx("div",{className:"flex justify-center input-container",children:v.jsxs(yA,{value:n,onChange:c=>{i(c),cS(c,u)},className:"w-full",maxValue:r!=null?r:100,minValue:s!=null?s:0,step:l!=null?l:1,"data-input-name":u,children:[v.jsx("div",{className:"flex font-sans text-sm font-bold leading-tight text-neutral-700",children:v.jsx(z_,{className:"flex-1",children:t})}),v.jsxs("div",{className:"mt-6 flex gap-4",children:[v.jsx(bA,{className:"relative flex h-7 w-full",children:({state:c})=>v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"slider-track absolute top-[50%] h-1 w-full translate-y-[-50%] rounded-full bg-[#929292]"}),v.jsx("div",{className:"text-right font-sans text-sm font-bold leading-tight text-[#5867E8]",style:{position:"absolute",left:c.getThumbPercent(0)*100+"%",bottom:"20px",transform:"translate(-50%, -50%)",touchAction:"none"},children:v.jsx(vA,{})}),v.jsx("div",{className:"absolute top-[50%] h-1 translate-y-[-50%] rounded-full bg-[#5867E8]",style:{width:c.getThumbPercent(0)*100+"%"}}),v.jsx(xA,{className:"top-[50%] h-7 w-7 cursor-grab rounded-full border border-2 border-solid border-[#5867E8] bg-white shadow-lg outline-none ring-blue-600 transition active:cursor-grabbing focus-visible:ring-2 dragging:bg-gray-200"})]})}),v.jsx("div",{className:"font-sans text-lg font-normal leading-7 tracking-tight text-neutral-900",children:"%"})]})]})})}function DA({children:t}){return v.jsx("div",{className:"flex w-full justify-center border-b",children:v.jsx(PA,{className:"w-full",children:t})})}function AA({children:t}){return v.jsx("div",{className:"flex justify-start border-b",children:v.jsx(CA,{"aria-label":"Results",className:"flex space-x-1",children:t})})}function dS(t){return v.jsx($A,V(k({},t),{className:({isSelected:e})=>`w-full cursor-pointer rounded-tl-lg rounded-tr-lg bg-white px-6 py-2 text-center font-display outline-none ring-[#0176D3] transition-colors focus-visible:ring-2 ${e?"border-b-4 border-[#0176D3] bg-white text-[#0176D3]":""} `}))}function fS(t){return v.jsx(EA,V(k({},t),{className:"mt-8 w-full rounded-2xl bg-white p-0 ring-[#0176D3] focus-visible:ring-2"}))}/*! * @kurkle/color v0.3.4 * https://github.com/kurkle/color#readme * (c) 2024 Jukka Kurkela * Released under the MIT License */function Zo(t){return t+.5|0}const Ei=(t,e,n)=>Math.max(Math.min(t,n),e);function Jo(t){return Ei(Zo(t*2.55),0,255)}function Mi(t){return Ei(Zo(t*255),0,255)}function Yn(t){return Ei(Zo(t/2.55)/100,0,1)}function hS(t){return Ei(Zo(t*100),0,100)}const Jt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Qp=[..."0123456789ABCDEF"],LA=t=>Qp[t&15],RA=t=>Qp[(t&240)>>4]+Qp[t&15],ju=t=>(t&240)>>4===(t&15),FA=t=>ju(t.r)&&ju(t.g)&&ju(t.b)&&ju(t.a);function NA(t){var e=t.length,n;return t[0]==="#"&&(e===4||e===5?n={r:255&Jt[t[1]]*17,g:255&Jt[t[2]]*17,b:255&Jt[t[3]]*17,a:e===5?Jt[t[4]]*17:255}:(e===7||e===9)&&(n={r:Jt[t[1]]<<4|Jt[t[2]],g:Jt[t[3]]<<4|Jt[t[4]],b:Jt[t[5]]<<4|Jt[t[6]],a:e===9?Jt[t[7]]<<4|Jt[t[8]]:255})),n}const jA=(t,e)=>t<255?e(t):"";function IA(t){var e=FA(t)?LA:RA;return t?"#"+e(t.r)+e(t.g)+e(t.b)+jA(t.a,e):void 0}const OA=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function pS(t,e,n){const i=e*Math.min(n,1-n),r=(s,o=(s+t/30)%12)=>n-i*Math.max(Math.min(o-3,9-o,1),-1);return[r(0),r(8),r(4)]}function VA(t,e,n){const i=(r,s=(r+t/60)%6)=>n-n*e*Math.max(Math.min(s,4-s,1),0);return[i(5),i(3),i(1)]}function zA(t,e,n){const i=pS(t,1,.5);let r;for(e+n>1&&(r=1/(e+n),e*=r,n*=r),r=0;r<3;r++)i[r]*=1-e-n,i[r]+=e;return i}function BA(t,e,n,i,r){return t===r?(e-n)/i+(e.5?c/(2-s-o):c/(s+o),l=BA(n,i,r,c,s),l=l*60+.5),[l|0,u||0,a]}function Jp(t,e,n,i){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,i)).map(Mi)}function em(t,e,n){return Jp(pS,t,e,n)}function KA(t,e,n){return Jp(zA,t,e,n)}function HA(t,e,n){return Jp(VA,t,e,n)}function mS(t){return(t%360+360)%360}function WA(t){const e=OA.exec(t);let n=255,i;if(!e)return;e[5]!==i&&(n=e[6]?Jo(+e[5]):Mi(+e[5]));const r=mS(+e[2]),s=+e[3]/100,o=+e[4]/100;return e[1]==="hwb"?i=KA(r,s,o):e[1]==="hsv"?i=HA(r,s,o):i=em(r,s,o),{r:i[0],g:i[1],b:i[2],a:n}}function UA(t,e){var n=Zp(t);n[0]=mS(n[0]+e),n=em(n),t.r=n[0],t.g=n[1],t.b=n[2]}function YA(t){if(!t)return;const e=Zp(t),n=e[0],i=hS(e[1]),r=hS(e[2]);return t.a<255?`hsla(${n}, ${i}%, ${r}%, ${Yn(t.a)})`:`hsl(${n}, ${i}%, ${r}%)`}const gS={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},yS={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function GA(){const t={},e=Object.keys(yS),n=Object.keys(gS);let i,r,s,o,a;for(i=0;i>16&255,s>>8&255,s&255]}return t}let Iu;function XA(t){Iu||(Iu=GA(),Iu.transparent=[0,0,0,0]);const e=Iu[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:e.length===4?e[3]:255}}const qA=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function QA(t){const e=qA.exec(t);let n=255,i,r,s;if(e){if(e[7]!==i){const o=+e[7];n=e[8]?Jo(o):Ei(o*255,0,255)}return i=+e[1],r=+e[3],s=+e[5],i=255&(e[2]?Jo(i):Ei(i,0,255)),r=255&(e[4]?Jo(r):Ei(r,0,255)),s=255&(e[6]?Jo(s):Ei(s,0,255)),{r:i,g:r,b:s,a:n}}}function ZA(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${Yn(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}const tm=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,_s=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function JA(t,e,n){const i=_s(Yn(t.r)),r=_s(Yn(t.g)),s=_s(Yn(t.b));return{r:Mi(tm(i+n*(_s(Yn(e.r))-i))),g:Mi(tm(r+n*(_s(Yn(e.g))-r))),b:Mi(tm(s+n*(_s(Yn(e.b))-s))),a:t.a+n*(e.a-t.a)}}function Ou(t,e,n){if(t){let i=Zp(t);i[e]=Math.max(0,Math.min(i[e]+i[e]*n,e===0?360:1)),i=em(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function vS(t,e){return t&&Object.assign(e||{},t)}function bS(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=Mi(t[3]))):(e=vS(t,{r:0,g:0,b:0,a:1}),e.a=Mi(e.a)),e}function eL(t){return t.charAt(0)==="r"?QA(t):WA(t)}class ea{constructor(e){if(e instanceof ea)return e;const n=typeof e;let i;n==="object"?i=bS(e):n==="string"&&(i=NA(e)||XA(e)||eL(e)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var e=vS(this._rgb);return e&&(e.a=Yn(e.a)),e}set rgb(e){this._rgb=bS(e)}rgbString(){return this._valid?ZA(this._rgb):void 0}hexString(){return this._valid?IA(this._rgb):void 0}hslString(){return this._valid?YA(this._rgb):void 0}mix(e,n){if(e){const i=this.rgb,r=e.rgb;let s;const o=n===s?.5:n,a=2*o-1,l=i.a-r.a,u=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;s=1-u,i.r=255&u*i.r+s*r.r+.5,i.g=255&u*i.g+s*r.g+.5,i.b=255&u*i.b+s*r.b+.5,i.a=o*i.a+(1-o)*r.a,this.rgb=i}return this}interpolate(e,n){return e&&(this._rgb=JA(this._rgb,e._rgb,n)),this}clone(){return new ea(this.rgb)}alpha(e){return this._rgb.a=Mi(e),this}clearer(e){const n=this._rgb;return n.a*=1-e,this}greyscale(){const e=this._rgb,n=Zo(e.r*.3+e.g*.59+e.b*.11);return e.r=e.g=e.b=n,this}opaquer(e){const n=this._rgb;return n.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return Ou(this._rgb,2,e),this}darken(e){return Ou(this._rgb,2,-e),this}saturate(e){return Ou(this._rgb,1,e),this}desaturate(e){return Ou(this._rgb,1,-e),this}rotate(e){return UA(this._rgb,e),this}}/*! * Chart.js v4.4.7 * https://www.chartjs.org * (c) 2024 Chart.js Contributors * Released under the MIT License */function Gn(){}const tL=(()=>{let t=0;return()=>t++})();function pe(t){return t==null}function Ie(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return e.slice(0,7)==="[object"&&e.slice(-6)==="Array]"}function ae(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function en(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function Pn(t,e){return en(t)?t:e}function ce(t,e){return typeof t=="undefined"?e:t}const nL=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*e:+t;function ve(t,e,n){if(t&&typeof t.call=="function")return t.apply(n,e)}function me(t,e,n,i){let r,s,o;if(Ie(t))for(s=t.length,r=0;rt,x:t=>t.x,y:t=>t.y};function sL(t){const e=t.split("."),n=[];let i="";for(const r of e)i+=r,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}function oL(t){const e=sL(t);return n=>{for(const i of e){if(i==="")break;n=n&&n[i]}return n}}function ws(t,e){return(_S[e]||(_S[e]=oL(e)))(t)}function nm(t){return t.charAt(0).toUpperCase()+t.slice(1)}const na=t=>typeof t!="undefined",Di=t=>typeof t=="function",wS=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};function aL(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}const We=Math.PI,ft=2*We,Bu=Number.POSITIVE_INFINITY,lL=We/180,Xe=We/2,yr=We/4,SS=We*2/3,im=Math.log10,Ai=Math.sign;function Ku(t,e,n){return Math.abs(t-e)r-s).pop(),e}function Hu(t){return!isNaN(parseFloat(t))&&isFinite(t)}function cL(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}function dL(t,e,n){let i,r,s;for(i=0,r=t.length;il&&u=Math.min(e,n)-i&&t<=Math.max(e,n)+i}function rm(t,e,n){n=n||(o=>t[o]1;)s=r+i>>1,n(s)?r=s:i=s;return{lo:r,hi:i}}const sm=(t,e,n,i)=>rm(t,n,i?r=>{const s=t[r][e];return st[r][e]rm(t,n,i=>t[i][e]>=n);function gL(t,e,n){let i=0,r=t.length;for(;ii&&t[r-1]>n;)r--;return i>0||r{const i="_onData"+nm(n),r=t[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!1,value(...s){const o=r.apply(this,s);return t._chartjs.listeners.forEach(a=>{typeof a[i]=="function"&&a[i](...s)}),o}})})}function ES(t,e){const n=t._chartjs;if(!n)return;const i=n.listeners,r=i.indexOf(e);r!==-1&&i.splice(r,1),!(i.length>0)&&($S.forEach(s=>{delete t[s]}),delete t._chartjs)}function MS(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const DS=function(){return typeof window=="undefined"?function(t){return t()}:window.requestAnimationFrame}();function AS(t,e){let n=[],i=!1;return function(...r){n=r,i||(i=!0,DS.call(window,()=>{i=!1,t.apply(e,n)}))}}function vL(t,e){let n;return function(...i){return e?(clearTimeout(n),n=setTimeout(t,e,i)):t.apply(this,i),e}}const om=t=>t==="start"?"left":t==="end"?"right":"center",st=(t,e,n)=>t==="start"?e:t==="end"?n:(e+n)/2,bL=(t,e,n,i)=>t===(i?"left":"right")?n:t==="center"?(e+n)/2:e,Wu=t=>t===0||t===1,LS=(t,e,n)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*ft/n)),RS=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*ft/n)+1,ia={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*Xe)+1,easeOutSine:t=>Math.sin(t*Xe),easeInOutSine:t=>-.5*(Math.cos(We*t)-1),easeInExpo:t=>t===0?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>t===1?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>Wu(t)?t:t<.5?.5*Math.pow(2,10*(t*2-1)):.5*(-Math.pow(2,-10*(t*2-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>Wu(t)?t:LS(t,.075,.3),easeOutElastic:t=>Wu(t)?t:RS(t,.075,.3),easeInOutElastic(t){return Wu(t)?t:t<.5?.5*LS(t*2,.1125,.45):.5+.5*RS(t*2-1,.1125,.45)},easeInBack(t){return t*t*((1.70158+1)*t-1.70158)},easeOutBack(t){return(t-=1)*t*((1.70158+1)*t+1.70158)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:t=>1-ia.easeOutBounce(1-t),easeOutBounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?ia.easeInBounce(t*2)*.5:ia.easeOutBounce(t*2-1)*.5+.5};function FS(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function NS(t){return FS(t)?t:new ea(t)}function am(t){return FS(t)?t:new ea(t).saturate(.5).darken(.1).hexString()}const xL=["x","y","borderWidth","radius","tension"],_L=["color","borderColor","backgroundColor"];function wL(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>e!=="onProgress"&&e!=="onComplete"&&e!=="fn"}),t.set("animations",{colors:{type:"color",properties:_L},numbers:{type:"number",properties:xL}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>e|0}}}})}function SL(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const jS=new Map;function PL(t,e){e=e||{};const n=t+JSON.stringify(e);let i=jS.get(n);return i||(i=new Intl.NumberFormat(t,e),jS.set(n,i)),i}function IS(t,e,n){return PL(e,n).format(t)}const OS={values(t){return Ie(t)?t:""+t},numeric(t,e,n){if(t===0)return"0";const i=this.chart.options.locale;let r,s=t;if(n.length>1){const u=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(u<1e-4||u>1e15)&&(r="scientific"),s=kL(t,n)}const o=im(Math.abs(s)),a=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),l={notation:r,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),IS(t,i,l)},logarithmic(t,e,n){if(t===0)return"0";const i=n[e].significand||t/Math.pow(10,Math.floor(im(t)));return[1,2,3,5,10,15].includes(i)||e>.8*n.length?OS.numeric.call(this,t,e,n):""}};function kL(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t)),n}var VS={formatters:OS};function CL(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,n)=>n.lineWidth,tickColor:(e,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:VS.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&e!=="callback"&&e!=="parser",_indexable:e=>e!=="borderDash"&&e!=="tickBorderDash"&&e!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:e=>e!=="backdropPadding"&&e!=="callback",_indexable:e=>e!=="backdropPadding"})}const _r=Object.create(null),lm=Object.create(null);function ra(t,e){if(!e)return t;const n=e.split(".");for(let i=0,r=n.length;ii.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(i,r)=>am(r.backgroundColor),this.hoverBorderColor=(i,r)=>am(r.borderColor),this.hoverColor=(i,r)=>am(r.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(n)}set(e,n){return um(this,e,n)}get(e){return ra(this,e)}describe(e,n){return um(lm,e,n)}override(e,n){return um(_r,e,n)}route(e,n,i,r){const s=ra(this,e),o=ra(this,i),a="_"+n;Object.defineProperties(s,{[a]:{value:s[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[a],u=o[r];return ae(l)?Object.assign({},u,l):ce(l,u)},set(l){this[a]=l}}})}apply(e){e.forEach(n=>n(this))}}var Le=new TL({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[wL,SL,CL]);function $L(t){return!t||pe(t.size)||pe(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function zS(t,e,n,i,r){let s=e[r];return s||(s=e[r]=t.measureText(r).width,n.push(r)),s>i&&(i=s),i}function wr(t,e,n){const i=t.currentDevicePixelRatio,r=n!==0?Math.max(n/2,.5):0;return Math.round((e-r)*i)/i+r}function BS(t,e){!e&&!t||(e=e||t.getContext("2d"),e.save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function cm(t,e,n,i){KS(t,e,n,i,null)}function KS(t,e,n,i,r){let s,o,a,l,u,c,d,f;const h=e.pointStyle,m=e.rotation,y=e.radius;let x=(m||0)*lL;if(h&&typeof h=="object"&&(s=h.toString(),s==="[object HTMLImageElement]"||s==="[object HTMLCanvasElement]")){t.save(),t.translate(n,i),t.rotate(x),t.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),t.restore();return}if(!(isNaN(y)||y<=0)){switch(t.beginPath(),h){default:r?t.ellipse(n,i,r/2,y,0,0,ft):t.arc(n,i,y,0,ft),t.closePath();break;case"triangle":c=r?r/2:y,t.moveTo(n+Math.sin(x)*c,i-Math.cos(x)*y),x+=SS,t.lineTo(n+Math.sin(x)*c,i-Math.cos(x)*y),x+=SS,t.lineTo(n+Math.sin(x)*c,i-Math.cos(x)*y),t.closePath();break;case"rectRounded":u=y*.516,l=y-u,o=Math.cos(x+yr)*l,d=Math.cos(x+yr)*(r?r/2-u:l),a=Math.sin(x+yr)*l,f=Math.sin(x+yr)*(r?r/2-u:l),t.arc(n-d,i-a,u,x-We,x-Xe),t.arc(n+f,i-o,u,x-Xe,x),t.arc(n+d,i+a,u,x,x+Xe),t.arc(n-f,i+o,u,x+Xe,x+We),t.closePath();break;case"rect":if(!m){l=Math.SQRT1_2*y,c=r?r/2:l,t.rect(n-c,i-l,2*c,2*l);break}x+=yr;case"rectRot":d=Math.cos(x)*(r?r/2:y),o=Math.cos(x)*y,a=Math.sin(x)*y,f=Math.sin(x)*(r?r/2:y),t.moveTo(n-d,i-a),t.lineTo(n+f,i-o),t.lineTo(n+d,i+a),t.lineTo(n-f,i+o),t.closePath();break;case"crossRot":x+=yr;case"cross":d=Math.cos(x)*(r?r/2:y),o=Math.cos(x)*y,a=Math.sin(x)*y,f=Math.sin(x)*(r?r/2:y),t.moveTo(n-d,i-a),t.lineTo(n+d,i+a),t.moveTo(n+f,i-o),t.lineTo(n-f,i+o);break;case"star":d=Math.cos(x)*(r?r/2:y),o=Math.cos(x)*y,a=Math.sin(x)*y,f=Math.sin(x)*(r?r/2:y),t.moveTo(n-d,i-a),t.lineTo(n+d,i+a),t.moveTo(n+f,i-o),t.lineTo(n-f,i+o),x+=yr,d=Math.cos(x)*(r?r/2:y),o=Math.cos(x)*y,a=Math.sin(x)*y,f=Math.sin(x)*(r?r/2:y),t.moveTo(n-d,i-a),t.lineTo(n+d,i+a),t.moveTo(n+f,i-o),t.lineTo(n-f,i+o);break;case"line":o=r?r/2:Math.cos(x)*y,a=Math.sin(x)*y,t.moveTo(n-o,i-a),t.lineTo(n+o,i+a);break;case"dash":t.moveTo(n,i),t.lineTo(n+Math.cos(x)*(r?r/2:y),i+Math.sin(x)*y);break;case!1:t.closePath();break}t.fill(),e.borderWidth>0&&t.stroke()}}function dm(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.xe.top-n&&t.y0&&s.strokeColor!=="";let l,u;for(t.save(),t.font=r.string,EL(t,s),l=0;l+t||0;function pm(t,e){const n={},i=ae(e),r=i?Object.keys(e):e,s=ae(t)?i?o=>ce(t[o],t[e[o]]):o=>t[o]:()=>t;for(const o of r)n[o]=FL(s(o));return n}function HS(t){return pm(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Ss(t){return pm(t,["topLeft","topRight","bottomLeft","bottomRight"])}function It(t){const e=HS(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function qe(t,e){t=t||{},e=e||Le.font;let n=ce(t.size,e.size);typeof n=="string"&&(n=parseInt(n,10));let i=ce(t.style,e.style);i&&!(""+i).match(LL)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);const r={family:ce(t.family,e.family),lineHeight:RL(ce(t.lineHeight,e.lineHeight),n),size:n,style:i,weight:ce(t.weight,e.weight),string:""};return r.string=$L(r),r}function ke(t,e,n,i){let r,s,o;for(r=0,s=t.length;rn&&a===0?0:a+l;return{min:o(i,-Math.abs(s)),max:o(r,s)}}function Ps(t,e){return Object.assign(Object.create(t),e)}function mm(t,e=[""],n,i,r=()=>t[0]){const s=n||t;typeof i=="undefined"&&(i=XS("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:s,_fallback:i,_getTarget:r,override:a=>mm([a,...t],e,s,i)};return new Proxy(o,{deleteProperty(a,l){return delete a[l],delete a._keys,delete t[0][l],!0},get(a,l){return US(a,l,()=>HL(l,e,t,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(a,l){return qS(a).includes(l)},ownKeys(a){return qS(a)},set(a,l,u){const c=a._storage||(a._storage=r());return a[l]=c[l]=u,delete a._keys,!0}})}function ks(t,e,n,i){const r={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:WS(t,i),setContext:s=>ks(t,s,n,i),override:s=>ks(t.override(s),e,n,i)};return new Proxy(r,{deleteProperty(s,o){return delete s[o],delete t[o],!0},get(s,o,a){return US(s,o,()=>IL(s,o,a))},getOwnPropertyDescriptor(s,o){return s._descriptors.allKeys?Reflect.has(t,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,o)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(s,o){return Reflect.has(t,o)},ownKeys(){return Reflect.ownKeys(t)},set(s,o,a){return t[o]=a,delete s[o],!0}})}function WS(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:i=e.indexable,_allKeys:r=e.allKeys}=t;return{allKeys:r,scriptable:n,indexable:i,isScriptable:Di(n)?n:()=>n,isIndexable:Di(i)?i:()=>i}}const jL=(t,e)=>t?t+nm(e):e,gm=(t,e)=>ae(e)&&t!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function US(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e)||e==="constructor")return t[e];const i=n();return t[e]=i,i}function IL(t,e,n){const{_proxy:i,_context:r,_subProxy:s,_descriptors:o}=t;let a=i[e];return Di(a)&&o.isScriptable(e)&&(a=OL(e,a,t,n)),Ie(a)&&a.length&&(a=VL(e,a,t,o.isIndexable)),gm(e,a)&&(a=ks(a,r,s&&s[e],o)),a}function OL(t,e,n,i){const{_proxy:r,_context:s,_subProxy:o,_stack:a}=n;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);a.add(t);let l=e(s,o||i);return a.delete(t),gm(t,l)&&(l=ym(r._scopes,r,t,l)),l}function VL(t,e,n,i){const{_proxy:r,_context:s,_subProxy:o,_descriptors:a}=n;if(typeof s.index!="undefined"&&i(t))return e[s.index%e.length];if(ae(e[0])){const l=e,u=r._scopes.filter(c=>c!==l);e=[];for(const c of l){const d=ym(u,r,t,c);e.push(ks(d,s,o&&o[t],a))}}return e}function YS(t,e,n){return Di(t)?t(e,n):t}const zL=(t,e)=>t===!0?e:typeof t=="string"?ws(e,t):void 0;function BL(t,e,n,i,r){for(const s of e){const o=zL(n,s);if(o){t.add(o);const a=YS(o._fallback,n,r);if(typeof a!="undefined"&&a!==n&&a!==i)return a}else if(o===!1&&typeof i!="undefined"&&n!==i)return null}return!1}function ym(t,e,n,i){const r=e._rootScopes,s=YS(e._fallback,n,i),o=[...t,...r],a=new Set;a.add(i);let l=GS(a,o,n,s||n,i);return l===null||typeof s!="undefined"&&s!==n&&(l=GS(a,o,s,l,i),l===null)?!1:mm(Array.from(a),[""],r,s,()=>KL(e,n,i))}function GS(t,e,n,i,r){for(;n;)n=BL(t,e,n,i,r);return n}function KL(t,e,n){const i=t._getTarget();e in i||(i[e]={});const r=i[e];return Ie(r)&&ae(n)?n:r||{}}function HL(t,e,n,i){let r;for(const s of e)if(r=XS(jL(s,t),n),typeof r!="undefined")return gm(t,r)?ym(n,i,t,r):r}function XS(t,e){for(const n of e){if(!n)continue;const i=n[t];if(typeof i!="undefined")return i}}function qS(t){let e=t._keys;return e||(e=t._keys=WL(t._scopes)),e}function WL(t){const e=new Set;for(const n of t)for(const i of Object.keys(n).filter(r=>!r.startsWith("_")))e.add(i);return Array.from(e)}function vm(){return typeof window!="undefined"&&typeof document!="undefined"}function bm(t){let e=t.parentNode;return e&&e.toString()==="[object ShadowRoot]"&&(e=e.host),e}function Yu(t,e,n){let i;return typeof t=="string"?(i=parseInt(t,10),t.indexOf("%")!==-1&&(i=i/100*e.parentNode[n])):i=t,i}const Gu=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);function UL(t,e){return Gu(t).getPropertyValue(e)}const YL=["top","right","bottom","left"];function Sr(t,e,n){const i={};n=n?"-"+n:"";for(let r=0;r<4;r++){const s=YL[r];i[s]=parseFloat(t[e+"-"+s+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}const GL=(t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot);function XL(t,e){const n=t.touches,i=n&&n.length?n[0]:t,{offsetX:r,offsetY:s}=i;let o=!1,a,l;if(GL(r,s,t.target))a=r,l=s;else{const u=e.getBoundingClientRect();a=i.clientX-u.left,l=i.clientY-u.top,o=!0}return{x:a,y:l,box:o}}function Pr(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:i}=e,r=Gu(n),s=r.boxSizing==="border-box",o=Sr(r,"padding"),a=Sr(r,"border","width"),{x:l,y:u,box:c}=XL(t,n),d=o.left+(c&&a.left),f=o.top+(c&&a.top);let{width:h,height:m}=e;return s&&(h-=o.width+a.width,m-=o.height+a.height),{x:Math.round((l-d)/h*n.width/i),y:Math.round((u-f)/m*n.height/i)}}function qL(t,e,n){let i,r;if(e===void 0||n===void 0){const s=t&&bm(t);if(!s)e=t.clientWidth,n=t.clientHeight;else{const o=s.getBoundingClientRect(),a=Gu(s),l=Sr(a,"border","width"),u=Sr(a,"padding");e=o.width-u.width-l.width,n=o.height-u.height-l.height,i=Yu(a.maxWidth,s,"clientWidth"),r=Yu(a.maxHeight,s,"clientHeight")}}return{width:e,height:n,maxWidth:i||Bu,maxHeight:r||Bu}}const Xu=t=>Math.round(t*10)/10;function QL(t,e,n,i){const r=Gu(t),s=Sr(r,"margin"),o=Yu(r.maxWidth,t,"clientWidth")||Bu,a=Yu(r.maxHeight,t,"clientHeight")||Bu,l=qL(t,e,n);let{width:u,height:c}=l;if(r.boxSizing==="content-box"){const f=Sr(r,"border","width"),h=Sr(r,"padding");u-=h.width+f.width,c-=h.height+f.height}return u=Math.max(0,u-s.width),c=Math.max(0,i?u/i:c-s.height),u=Xu(Math.min(u,o,l.maxWidth)),c=Xu(Math.min(c,a,l.maxHeight)),u&&!c&&(c=Xu(u/2)),(e!==void 0||n!==void 0)&&i&&l.height&&c>l.height&&(c=l.height,u=Xu(Math.floor(c*i))),{width:u,height:c}}function QS(t,e,n){const i=e||1,r=Math.floor(t.height*i),s=Math.floor(t.width*i);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const o=t.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${t.height}px`,o.style.width=`${t.width}px`),t.currentDevicePixelRatio!==i||o.height!==r||o.width!==s?(t.currentDevicePixelRatio=i,o.height=r,o.width=s,t.ctx.setTransform(i,0,0,i,0,0),!0):!1}const ZL=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};vm()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch(e){}return t}();function ZS(t,e){const n=UL(t,e),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}const JL=function(t,e){return{x(n){return t+t+e-n},setWidth(n){e=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,i){return n-i},leftForLtr(n,i){return n-i}}},eR=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function Cs(t,e,n){return t?JL(e,n):eR()}function JS(t,e){let n,i;(e==="ltr"||e==="rtl")&&(n=t.canvas.style,i=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=i)}function eP(t,e){e!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}/*! * Chart.js v4.4.7 * https://www.chartjs.org * (c) 2024 Chart.js Contributors * Released under the MIT License */class tR{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,n,i,r){const s=n.listeners[r],o=n.duration;s.forEach(a=>a({chart:e,initial:n.initial,numSteps:o,currentStep:Math.min(i-n.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=DS.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let n=0;this._charts.forEach((i,r)=>{if(!i.running||!i.items.length)return;const s=i.items;let o=s.length-1,a=!1,l;for(;o>=0;--o)l=s[o],l._active?(l._total>i.duration&&(i.duration=l._total),l.tick(e),a=!0):(s[o]=s[s.length-1],s.pop());a&&(r.draw(),this._notify(r,i,e,"progress")),s.length||(i.running=!1,this._notify(r,i,e,"complete"),i.initial=!1),n+=s.length}),this._lastDate=e,n===0&&(this._running=!1)}_getAnims(e){const n=this._charts;let i=n.get(e);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(e,i)),i}listen(e,n,i){this._getAnims(e).listeners[n].push(i)}add(e,n){!n||!n.length||this._getAnims(e).items.push(...n)}has(e){return this._getAnims(e).items.length>0}start(e){const n=this._charts.get(e);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((i,r)=>Math.max(i,r._duration),0),this._refresh())}running(e){if(!this._running)return!1;const n=this._charts.get(e);return!(!n||!n.running||!n.items.length)}stop(e){const n=this._charts.get(e);if(!n||!n.items.length)return;const i=n.items;let r=i.length-1;for(;r>=0;--r)i[r].cancel();n.items=[],this._notify(e,n,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var Xn=new tR;const tP="transparent",nR={boolean(t,e,n){return n>.5?e:t},color(t,e,n){const i=NS(t||tP),r=i.valid&&NS(e||tP);return r&&r.valid?r.mix(i,n).hexString():e},number(t,e,n){return t+(e-t)*n}};class iR{constructor(e,n,i,r){const s=n[i];r=ke([e.to,r,s,e.from]);const o=ke([e.from,s,r]);this._active=!0,this._fn=e.fn||nR[e.type||typeof o],this._easing=ia[e.easing]||ia.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=n,this._prop=i,this._from=o,this._to=r,this._promises=void 0}active(){return this._active}update(e,n,i){if(this._active){this._notify(!1);const r=this._target[this._prop],s=i-this._start,o=this._duration-s;this._start=i,this._duration=Math.floor(Math.max(o,e.duration)),this._total+=s,this._loop=!!e.loop,this._to=ke([e.to,n,r,e.from]),this._from=ke([e.from,r,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const n=e-this._start,i=this._duration,r=this._prop,s=this._from,o=this._loop,a=this._to;let l;if(this._active=s!==a&&(o||n1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[r]=this._fn(s,a,l)}wait(){const e=this._promises||(this._promises=[]);return new Promise((n,i)=>{e.push({res:n,rej:i})})}_notify(e){const n=e?"res":"rej",i=this._promises||[];for(let r=0;r{const s=e[r];if(!ae(s))return;const o={};for(const a of n)o[a]=s[a];(Ie(s.properties)&&s.properties||[r]).forEach(a=>{(a===r||!i.has(a))&&i.set(a,o)})})}_animateOptions(e,n){const i=n.options,r=sR(e,i);if(!r)return[];const s=this._createAnimations(r,i);return i.$shared&&rR(e.options.$animations,i).then(()=>{e.options=i},()=>{}),s}_createAnimations(e,n){const i=this._properties,r=[],s=e.$animations||(e.$animations={}),o=Object.keys(n),a=Date.now();let l;for(l=o.length-1;l>=0;--l){const u=o[l];if(u.charAt(0)==="$")continue;if(u==="options"){r.push(...this._animateOptions(e,n));continue}const c=n[u];let d=s[u];const f=i.get(u);if(d)if(f&&d.active()){d.update(f,c,a);continue}else d.cancel();if(!f||!f.duration){e[u]=c;continue}s[u]=d=new iR(f,e,u,c),r.push(d)}return r}update(e,n){if(this._properties.size===0){Object.assign(e,n);return}const i=this._createAnimations(e,n);if(i.length)return Xn.add(this._chart,i),!0}}function rR(t,e){const n=[],i=Object.keys(e);for(let r=0;r0||!n&&s<0)return r.index}return null}function aP(t,e){const{chart:n,_cachedMeta:i}=t,r=n._stacks||(n._stacks={}),{iScale:s,vScale:o,index:a}=i,l=s.axis,u=o.axis,c=uR(s,o,i),d=e.length;let f;for(let h=0;hn[i].axis===e).shift()}function fR(t,e){return Ps(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function hR(t,e,n){return Ps(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}function oa(t,e){const n=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){e=e||t._parsed;for(const r of e){const s=r._stacks;if(!s||s[i]===void 0||s[i][n]===void 0)return;delete s[i][n],s[i]._visualValues!==void 0&&s[i]._visualValues[n]!==void 0&&delete s[i]._visualValues[n]}}}const wm=t=>t==="reset"||t==="none",lP=(t,e)=>e?t:Object.assign({},t),pR=(t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:rP(n,!0),values:null};class aa{constructor(e,n){this.chart=e,this._ctx=e.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=xm(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&oa(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,n=this._cachedMeta,i=this.getDataset(),r=(d,f,h,m)=>d==="x"?f:d==="r"?m:h,s=n.xAxisID=ce(i.xAxisID,_m(e,"x")),o=n.yAxisID=ce(i.yAxisID,_m(e,"y")),a=n.rAxisID=ce(i.rAxisID,_m(e,"r")),l=n.indexAxis,u=n.iAxisID=r(l,s,o,a),c=n.vAxisID=r(l,o,s,a);n.xScale=this.getScaleForId(s),n.yScale=this.getScaleForId(o),n.rScale=this.getScaleForId(a),n.iScale=this.getScaleForId(u),n.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const n=this._cachedMeta;return e===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&ES(this._data,this),e._stacked&&oa(e)}_dataCheck(){const e=this.getDataset(),n=e.data||(e.data=[]),i=this._data;if(ae(n)){const r=this._cachedMeta;this._data=lR(n,r)}else if(i!==n){if(i){ES(i,this);const r=this._cachedMeta;oa(r),r._parsed=[]}n&&Object.isExtensible(n)&&yL(n,this),this._syncList=[],this._data=n}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const n=this._cachedMeta,i=this.getDataset();let r=!1;this._dataCheck();const s=n._stacked;n._stacked=xm(n.vScale,n),n.stack!==i.stack&&(r=!0,oa(n),n.stack=i.stack),this._resyncElements(e),(r||s!==n._stacked)&&(aP(this,n._parsed),n._stacked=xm(n.vScale,n))}configure(){const e=this.chart.config,n=e.datasetScopeKeys(this._type),i=e.getOptionScopes(this.getDataset(),n,!0);this.options=e.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,n){const{_cachedMeta:i,_data:r}=this,{iScale:s,_stacked:o}=i,a=s.axis;let l=e===0&&n===r.length?!0:i._sorted,u=e>0&&i._parsed[e-1],c,d,f;if(this._parsing===!1)i._parsed=r,i._sorted=!0,f=r;else{Ie(r[e])?f=this.parseArrayData(i,r,e,n):ae(r[e])?f=this.parseObjectData(i,r,e,n):f=this.parsePrimitiveData(i,r,e,n);const h=()=>d[a]===null||u&&d[a]y||d=0;--f)if(!m()){this.updateRangeFromParsed(u,e,h,l);break}}return u}getAllParsedValues(e){const n=this._cachedMeta._parsed,i=[];let r,s,o;for(r=0,s=n.length;r=0&&ethis.getContext(i,r,n),y=u.resolveNamedOptions(f,h,m,d);return y.$shared&&(y.$shared=l,s[o]=Object.freeze(lP(y,l))),y}_resolveAnimations(e,n,i){const r=this.chart,s=this._cachedDataOpts,o=`animation-${n}`,a=s[o];if(a)return a;let l;if(r.options.animation!==!1){const c=this.chart.config,d=c.datasetAnimationScopeKeys(this._type,n),f=c.getOptionScopes(this.getDataset(),d);l=c.createResolver(f,this.getContext(e,i,n))}const u=new nP(r,l&&l.animations);return l&&l._cacheable&&(s[o]=Object.freeze(u)),u}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,n){return!n||wm(e)||this.chart._animationsDisabled}_getSharedOptions(e,n){const i=this.resolveDataElementOptions(e,n),r=this._sharedOptions,s=this.getSharedOptions(i),o=this.includeOptions(n,s)||s!==r;return this.updateSharedOptions(s,n,i),{sharedOptions:s,includeOptions:o}}updateElement(e,n,i,r){wm(r)?Object.assign(e,i):this._resolveAnimations(n,r).update(e,i)}updateSharedOptions(e,n,i){e&&!wm(n)&&this._resolveAnimations(void 0,n).update(e,i)}_setStyle(e,n,i,r){e.active=r;const s=this.getStyle(n,r);this._resolveAnimations(n,i,r).update(e,{options:!r&&this.getSharedOptions(s)||s})}removeHoverStyle(e,n,i){this._setStyle(e,i,"active",!1)}setHoverStyle(e,n,i){this._setStyle(e,i,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const n=this._data,i=this._cachedMeta.data;for(const[a,l,u]of this._syncList)this[a](l,u);this._syncList=[];const r=i.length,s=n.length,o=Math.min(s,r);o&&this.parse(0,o),s>r?this._insertElements(r,s-r,e):s{for(u.length+=n,a=u.length-1;a>=o;a--)u[a]=u[a-n]};for(l(s),a=e;ar-s))}return t._cache.$bar}function gR(t){const e=t.iScale,n=mR(e,t.type);let i=e._length,r,s,o,a;const l=()=>{o===32767||o===-32768||(na(a)&&(i=Math.min(i,Math.abs(o-a)||i)),a=o)};for(r=0,s=n.length;r0?r[t-1]:null,a=tMath.abs(a)&&(l=a,u=o),e[n.axis]=u,e._custom={barStart:l,barEnd:u,start:r,end:s,min:o,max:a}}function uP(t,e,n,i){return Ie(t)?bR(t,e,n,i):e[n.axis]=n.parse(t,i),e}function cP(t,e,n,i){const r=t.iScale,s=t.vScale,o=r.getLabels(),a=r===s,l=[];let u,c,d,f;for(u=n,c=n+i;u=n?1:-1)}function _R(t){let e,n,i,r,s;return t.horizontal?(e=t.base>t.x,n="left",i="right"):(e=t.basec.controller.options.grouped),s=i.options.stacked,o=[],a=this._cachedMeta.controller.getParsed(n),l=a&&a[i.axis],u=c=>{const d=c._parsed.find(h=>h[i.axis]===l),f=d&&d[c.vScale.axis];if(pe(f)||isNaN(f))return!0};for(const c of r)if(!(n!==void 0&&u(c))&&((s===!1||o.indexOf(c.stack)===-1||s===void 0&&c.stack===void 0)&&o.push(c.stack),c.index===e))break;return o.length||o.push(void 0),o}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,n,i){const r=this._getStacks(e,i),s=n!==void 0?r.indexOf(n):-1;return s===-1?r.length-1:s}_getRuler(){const e=this.options,n=this._cachedMeta,i=n.iScale,r=[];let s,o;for(s=0,o=n.data.length;s{l[o]&&l[o](e[n],r)&&(s.push({element:l,datasetIndex:u,index:c}),a=a||l.inRange(e.x,e.y,r))}),i&&!a?[]:s}var MR={evaluateInteractionItems:la,modes:{index(t,e,n,i){const r=Pr(e,t),s=n.axis||"x",o=n.includeInvisible||!1,a=n.intersect?km(t,r,s,i,o):Cm(t,r,s,!1,i,o),l=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach(u=>{const c=a[0].index,d=u.data[c];d&&!d.skip&&l.push({element:d,datasetIndex:u.index,index:c})}),l):[]},dataset(t,e,n,i){const r=Pr(e,t),s=n.axis||"xy",o=n.includeInvisible||!1;let a=n.intersect?km(t,r,s,i,o):Cm(t,r,s,!1,i,o);if(a.length>0){const l=a[0].datasetIndex,u=t.getDatasetMeta(l).data;a=[];for(let c=0;cn.pos===e)}function mP(t,e){return t.filter(n=>pP.indexOf(n.pos)===-1&&n.box.axis===e)}function ca(t,e){return t.sort((n,i)=>{const r=e?i:n,s=e?n:i;return r.weight===s.weight?r.index-s.index:r.weight-s.weight})}function DR(t){const e=[];let n,i,r,s,o,a;for(n=0,i=(t||[]).length;nu.box.fullSize),!0),i=ca(ua(e,"left"),!0),r=ca(ua(e,"right")),s=ca(ua(e,"top"),!0),o=ca(ua(e,"bottom")),a=mP(e,"x"),l=mP(e,"y");return{fullSize:n,leftAndTop:i.concat(s),rightAndBottom:r.concat(l).concat(o).concat(a),chartArea:ua(e,"chartArea"),vertical:i.concat(r).concat(l),horizontal:s.concat(o).concat(a)}}function gP(t,e,n,i){return Math.max(t[n],e[n])+Math.max(t[i],e[i])}function yP(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function FR(t,e,n,i){const{pos:r,box:s}=n,o=t.maxPadding;if(!ae(r)){n.size&&(t[r]-=n.size);const d=i[n.stack]||{size:0,count:1};d.size=Math.max(d.size,n.horizontal?s.height:s.width),n.size=d.size/d.count,t[r]+=n.size}s.getPadding&&yP(o,s.getPadding());const a=Math.max(0,e.outerWidth-gP(o,t,"left","right")),l=Math.max(0,e.outerHeight-gP(o,t,"top","bottom")),u=a!==t.w,c=l!==t.h;return t.w=a,t.h=l,n.horizontal?{same:u,other:c}:{same:c,other:u}}function NR(t){const e=t.maxPadding;function n(i){const r=Math.max(e[i]-t[i],0);return t[i]+=r,r}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}function jR(t,e){const n=e.maxPadding;function i(r){const s={left:0,top:0,right:0,bottom:0};return r.forEach(o=>{s[o]=Math.max(e[o],n[o])}),s}return i(t?["left","right"]:["top","bottom"])}function da(t,e,n,i){const r=[];let s,o,a,l,u,c;for(s=0,o=t.length,u=0;s{typeof y.beforeLayout=="function"&&y.beforeLayout()});const c=l.reduce((y,x)=>x.box.options&&x.box.options.display===!1?y:y+1,0)||1,d=Object.freeze({outerWidth:e,outerHeight:n,padding:r,availableWidth:s,availableHeight:o,vBoxMaxWidth:s/2/c,hBoxMaxHeight:o/2}),f=Object.assign({},r);yP(f,It(i));const h=Object.assign({maxPadding:f,w:s,h:o,x:r.left,y:r.top},r),m=LR(l.concat(u),d);da(a.fullSize,h,d,m),da(l,h,d,m),da(u,h,d,m)&&da(l,h,d,m),NR(h),vP(a.leftAndTop,h,d,m),h.x+=h.w,h.y+=h.h,vP(a.rightAndBottom,h,d,m),t.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},me(a.chartArea,y=>{const x=y.box;Object.assign(x,t.chartArea),x.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})})}};class bP{acquireContext(e,n){}releaseContext(e){return!1}addEventListener(e,n,i){}removeEventListener(e,n,i){}getDevicePixelRatio(){return 1}getMaximumSize(e,n,i,r){return n=Math.max(0,n||e.width),i=i||e.height,{width:n,height:Math.max(0,r?Math.floor(n/r):i)}}isAttached(e){return!0}updateConfig(e){}}class IR extends bP{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const Zu="$chartjs",OR={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},xP=t=>t===null||t==="";function VR(t,e){const n=t.style,i=t.getAttribute("height"),r=t.getAttribute("width");if(t[Zu]={initial:{height:i,width:r,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",xP(r)){const s=ZS(t,"width");s!==void 0&&(t.width=s)}if(xP(i))if(t.style.height==="")t.height=t.width/(e||2);else{const s=ZS(t,"height");s!==void 0&&(t.height=s)}return t}const _P=ZL?{passive:!0}:!1;function zR(t,e,n){t&&t.addEventListener(e,n,_P)}function BR(t,e,n){t&&t.canvas&&t.canvas.removeEventListener(e,n,_P)}function KR(t,e){const n=OR[t.type]||t.type,{x:i,y:r}=Pr(t,e);return{type:n,chart:e,native:t,x:i!==void 0?i:null,y:r!==void 0?r:null}}function Ju(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function HR(t,e,n){const i=t.canvas,r=new MutationObserver(s=>{let o=!1;for(const a of s)o=o||Ju(a.addedNodes,i),o=o&&!Ju(a.removedNodes,i);o&&n()});return r.observe(document,{childList:!0,subtree:!0}),r}function WR(t,e,n){const i=t.canvas,r=new MutationObserver(s=>{let o=!1;for(const a of s)o=o||Ju(a.removedNodes,i),o=o&&!Ju(a.addedNodes,i);o&&n()});return r.observe(document,{childList:!0,subtree:!0}),r}const fa=new Map;let wP=0;function SP(){const t=window.devicePixelRatio;t!==wP&&(wP=t,fa.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function UR(t,e){fa.size||window.addEventListener("resize",SP),fa.set(t,e)}function YR(t){fa.delete(t),fa.size||window.removeEventListener("resize",SP)}function GR(t,e,n){const i=t.canvas,r=i&&bm(i);if(!r)return;const s=AS((a,l)=>{const u=r.clientWidth;n(a,l),u{const l=a[0],u=l.contentRect.width,c=l.contentRect.height;u===0&&c===0||s(u,c)});return o.observe(r),UR(t,s),o}function Tm(t,e,n){n&&n.disconnect(),e==="resize"&&YR(t)}function XR(t,e,n){const i=t.canvas,r=AS(s=>{t.ctx!==null&&n(KR(s,t))},t);return zR(i,e,r),r}class qR extends bP{acquireContext(e,n){const i=e&&e.getContext&&e.getContext("2d");return i&&i.canvas===e?(VR(e,n),i):null}releaseContext(e){const n=e.canvas;if(!n[Zu])return!1;const i=n[Zu].initial;["height","width"].forEach(s=>{const o=i[s];pe(o)?n.removeAttribute(s):n.setAttribute(s,o)});const r=i.style||{};return Object.keys(r).forEach(s=>{n.style[s]=r[s]}),n.width=n.width,delete n[Zu],!0}addEventListener(e,n,i){this.removeEventListener(e,n);const r=e.$proxies||(e.$proxies={}),o={attach:HR,detach:WR,resize:GR}[n]||XR;r[n]=o(e,n,i)}removeEventListener(e,n){const i=e.$proxies||(e.$proxies={}),r=i[n];if(!r)return;({attach:Tm,detach:Tm,resize:Tm}[n]||BR)(e,n,r),i[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,n,i,r){return QL(e,n,i,r)}isAttached(e){const n=e&&bm(e);return!!(n&&n.isConnected)}}function QR(t){return!vm()||typeof OffscreenCanvas!="undefined"&&t instanceof OffscreenCanvas?IR:qR}let Li=(yc=class{constructor(){Q(this,"x");Q(this,"y");Q(this,"active",!1);Q(this,"options");Q(this,"$animations")}tooltipPosition(e){const{x:n,y:i}=this.getProps(["x","y"],e);return{x:n,y:i}}hasValue(){return Hu(this.x)&&Hu(this.y)}getProps(e,n){const i=this.$animations;if(!n||!i)return this;const r={};return e.forEach(s=>{r[s]=i[s]&&i[s].active()?i[s]._to:this[s]}),r}},Q(yc,"defaults",{}),Q(yc,"defaultRoutes"),yc);function ZR(t,e){const n=t.options.ticks,i=JR(t),r=Math.min(n.maxTicksLimit||i,i),s=n.major.enabled?t6(e):[],o=s.length,a=s[0],l=s[o-1],u=[];if(o>r)return n6(e,u,s,o/r),u;const c=e6(s,e,r);if(o>0){let d,f;const h=o>1?Math.round((l-a)/(o-1)):null;for(ec(e,u,c,pe(h)?0:a-h,a),d=0,f=o-1;dr)return l}return Math.max(r,1)}function t6(t){const e=[];let n,i;for(n=0,i=t.length;nt==="left"?"right":t==="right"?"left":t,PP=(t,e,n)=>e==="top"||e==="left"?t[e]+n:t[e]-n,kP=(t,e)=>Math.min(e||t,t);function CP(t,e){const n=[],i=t.length/e,r=t.length;let s=0;for(;so+a)))return l}function o6(t,e){me(t,n=>{const i=n.gc,r=i.length/2;let s;if(r>e){for(s=0;si?i:n,i=r&&n>i?n:i,{min:Pn(n,Pn(i,n)),max:Pn(i,Pn(n,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){ve(this.options.beforeUpdate,[this])}update(e,n,i){const{beginAtZero:r,grace:s,ticks:o}=this.options,a=o.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=n,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=NL(this,s,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a=s||i<=1||!this.isHorizontal()){this.labelRotation=r;return}const c=this._getLabelSizes(),d=c.widest.width,f=c.highest.height,h=St(this.chart.width-d,0,this.maxWidth);a=e.offset?this.maxWidth/i:h/(i-1),d+6>a&&(a=h/(i-(e.offset?.5:1)),l=this.maxHeight-ha(e.grid)-n.padding-TP(e.title,this.chart.options.font),u=Math.sqrt(d*d+f*f),o=fL(Math.min(Math.asin(St((c.highest.height+6)/a,-1,1)),Math.asin(St(l/u,-1,1))-Math.asin(St(f/u,-1,1)))),o=Math.max(r,Math.min(s,o))),this.labelRotation=o}afterCalculateLabelRotation(){ve(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){ve(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:n,options:{ticks:i,title:r,grid:s}}=this,o=this._isVisible(),a=this.isHorizontal();if(o){const l=TP(r,n.options.font);if(a?(e.width=this.maxWidth,e.height=ha(s)+l):(e.height=this.maxHeight,e.width=ha(s)+l),i.display&&this.ticks.length){const{first:u,last:c,widest:d,highest:f}=this._getLabelSizes(),h=i.padding*2,m=vr(this.labelRotation),y=Math.cos(m),x=Math.sin(m);if(a){const p=i.mirror?0:x*d.width+y*f.height;e.height=Math.min(this.maxHeight,e.height+p+h)}else{const p=i.mirror?0:y*d.width+x*f.height;e.width=Math.min(this.maxWidth,e.width+p+h)}this._calculatePadding(u,c,x,y)}}this._handleMargins(),a?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,n,i,r){const{ticks:{align:s,padding:o},position:a}=this.options,l=this.labelRotation!==0,u=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const c=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let f=0,h=0;l?u?(f=r*e.width,h=i*n.height):(f=i*e.height,h=r*n.width):s==="start"?h=n.width:s==="end"?f=e.width:s!=="inner"&&(f=e.width/2,h=n.width/2),this.paddingLeft=Math.max((f-c+o)*this.width/(this.width-c),0),this.paddingRight=Math.max((h-d+o)*this.width/(this.width-d),0)}else{let c=n.height/2,d=e.height/2;s==="start"?(c=0,d=e.height):s==="end"&&(c=n.height,d=0),this.paddingTop=c+o,this.paddingBottom=d+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){ve(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:n}=this.options;return n==="top"||n==="bottom"||e==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let n,i;for(n=0,i=e.length;n({width:o[P]||0,height:a[P]||0});return{first:T(0),last:T(n-1),widest:T(C),highest:T(L),widths:o,heights:a}}getLabelForValue(e){return e}getPixelForValue(e,n){return NaN}getValueForPixel(e){}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const n=this._startPixel+e*this._length;return pL(this._alignToPixels?wr(this.chart,n,0):n)}getDecimalForPixel(e){const n=(e-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:n}=this;return e<0&&n<0?n:e>0&&n>0?e:0}getContext(e){const n=this.ticks||[];if(e>=0&&ea*r?a/i:l/r:l*r0}_computeGridLineItems(e){const n=this.axis,i=this.chart,r=this.options,{grid:s,position:o,border:a}=r,l=s.offset,u=this.isHorizontal(),d=this.ticks.length+(l?1:0),f=ha(s),h=[],m=a.setContext(this.getContext()),y=m.display?m.width:0,x=y/2,p=function(N){return wr(i,N,y)};let g,b,S,w,C,L,T,P,M,j,$,F;if(o==="top")g=p(this.bottom),L=this.bottom-f,P=g-x,j=p(e.top)+x,F=e.bottom;else if(o==="bottom")g=p(this.top),j=e.top,F=p(e.bottom)-x,L=g+x,P=this.top+f;else if(o==="left")g=p(this.right),C=this.right-f,T=g-x,M=p(e.left)+x,$=e.right;else if(o==="right")g=p(this.left),M=e.left,$=p(e.right)-x,C=g+x,T=this.left+f;else if(n==="x"){if(o==="center")g=p((e.top+e.bottom)/2+.5);else if(ae(o)){const N=Object.keys(o)[0],B=o[N];g=p(this.chart.scales[N].getPixelForValue(B))}j=e.top,F=e.bottom,L=g+x,P=L+f}else if(n==="y"){if(o==="center")g=p((e.left+e.right)/2);else if(ae(o)){const N=Object.keys(o)[0],B=o[N];g=p(this.chart.scales[N].getPixelForValue(B))}C=g-x,T=C-f,M=e.left,$=e.right}const D=ce(r.ticks.maxTicksLimit,d),R=Math.max(1,Math.ceil(d/D));for(b=0;b0&&(fe-=ee/2);break}I={left:fe,top:ne,width:ee+K.width,height:Z+K.height,color:R.backdropColor}}x.push({label:S,font:P,textOffset:$,options:{rotation:y,color:B,strokeColor:E,strokeWidth:z,textAlign:H,textBaseline:F,translation:[w,C],backdrop:I}})}return x}_getXAxisLabelAlignment(){const{position:e,ticks:n}=this.options;if(-vr(this.labelRotation))return e==="top"?"left":"right";let r="center";return n.align==="start"?r="left":n.align==="end"?r="right":n.align==="inner"&&(r="inner"),r}_getYAxisLabelAlignment(e){const{position:n,ticks:{crossAlign:i,mirror:r,padding:s}}=this.options,o=this._getLabelSizes(),a=e+s,l=o.widest.width;let u,c;return n==="left"?r?(c=this.right+s,i==="near"?u="left":i==="center"?(u="center",c+=l/2):(u="right",c+=l)):(c=this.right-a,i==="near"?u="right":i==="center"?(u="center",c-=l/2):(u="left",c=this.left)):n==="right"?r?(c=this.left+s,i==="near"?u="right":i==="center"?(u="center",c-=l/2):(u="left",c-=l)):(c=this.left+a,i==="near"?u="left":i==="center"?(u="center",c+=l/2):(u="right",c=this.right)):u="right",{textAlign:u,x:c}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:e.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){const{ctx:e,options:{backgroundColor:n},left:i,top:r,width:s,height:o}=this;n&&(e.save(),e.fillStyle=n,e.fillRect(i,r,s,o),e.restore())}getLineWidthForValue(e){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const r=this.ticks.findIndex(s=>s.value===e);return r>=0?n.setContext(this.getContext(r)).lineWidth:0}drawGrid(e){const n=this.options.grid,i=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let s,o;const a=(l,u,c)=>{!c.width||!c.color||(i.save(),i.lineWidth=c.width,i.strokeStyle=c.color,i.setLineDash(c.borderDash||[]),i.lineDashOffset=c.borderDashOffset,i.beginPath(),i.moveTo(l.x,l.y),i.lineTo(u.x,u.y),i.stroke(),i.restore())};if(n.display)for(s=0,o=r.length;s{this.draw(s)}}]:[{z:i,draw:s=>{this.drawBackground(),this.drawGrid(s),this.drawTitle()}},{z:r,draw:()=>{this.drawBorder()}},{z:n,draw:s=>{this.drawLabels(s)}}]}getMatchingVisibleMetas(e){const n=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",r=[];let s,o;for(s=0,o=n.length;s{const i=n.split("."),r=i.pop(),s=[t].concat(i).join("."),o=e[n].split("."),a=o.pop(),l=o.join(".");Le.route(s,r,l,a)})}function h6(t){return"id"in t&&"defaults"in t}class p6{constructor(){this.controllers=new tc(aa,"datasets",!0),this.elements=new tc(Li,"elements"),this.plugins=new tc(Object,"plugins"),this.scales=new tc(Ts,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,n,i){[...n].forEach(r=>{const s=i||this._getRegistryForType(r);i||s.isForType(r)||s===this.plugins&&r.id?this._exec(e,s,r):me(r,o=>{const a=i||this._getRegistryForType(o);this._exec(e,a,o)})})}_exec(e,n,i){const r=nm(e);ve(i["before"+r],[],i),n[e](i),ve(i["after"+r],[],i)}_getRegistryForType(e){for(let n=0;ns.filter(a=>!o.some(l=>a.plugin.id===l.plugin.id));this._notify(r(n,i),e,"stop"),this._notify(r(i,n),e,"start")}}function g6(t){const e={},n=[],i=Object.keys(Cn.plugins.items);for(let s=0;s1&&$P(t[0].toLowerCase());if(i)return i}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function EP(t,e,n){if(n[e+"AxisID"]===t)return{axis:e}}function S6(t,e){if(e.data&&e.data.datasets){const n=e.data.datasets.filter(i=>i.xAxisID===t||i.yAxisID===t);if(n.length)return EP(t,"x",n[0])||EP(t,"y",n[0])}return{}}function P6(t,e){const n=_r[t.type]||{scales:{}},i=e.scales||{},r=$m(t.type,e),s=Object.create(null);return Object.keys(i).forEach(o=>{const a=i[o];if(!ae(a))return console.error(`Invalid scale configuration for scale: ${o}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${o}`);const l=Em(o,a,S6(o,t),Le.scales[a.type]),u=_6(l,r),c=n.scales||{};s[o]=ta(Object.create(null),[{axis:l},a,c[l],c[u]])}),t.data.datasets.forEach(o=>{const a=o.type||t.type,l=o.indexAxis||$m(a,e),c=(_r[a]||{}).scales||{};Object.keys(c).forEach(d=>{const f=x6(d,l),h=o[f+"AxisID"]||f;s[h]=s[h]||Object.create(null),ta(s[h],[{axis:f},i[h],c[d]])})}),Object.keys(s).forEach(o=>{const a=s[o];ta(a,[Le.scales[a.type],Le.scale])}),s}function MP(t){const e=t.options||(t.options={});e.plugins=ce(e.plugins,{}),e.scales=P6(t,e)}function DP(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function k6(t){return t=t||{},t.data=DP(t.data),MP(t),t}const AP=new Map,LP=new Set;function nc(t,e){let n=AP.get(t);return n||(n=e(),AP.set(t,n),LP.add(n)),n}const pa=(t,e,n)=>{const i=ws(e,n);i!==void 0&&t.add(i)};class C6{constructor(e){this._config=k6(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=DP(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),MP(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return nc(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,n){return nc(`${e}.transition.${n}`,()=>[[`datasets.${e}.transitions.${n}`,`transitions.${n}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,n){return nc(`${e}-${n}`,()=>[[`datasets.${e}.elements.${n}`,`datasets.${e}`,`elements.${n}`,""]])}pluginScopeKeys(e){const n=e.id,i=this.type;return nc(`${i}-plugin-${n}`,()=>[[`plugins.${n}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,n){const i=this._scopeCache;let r=i.get(e);return(!r||n)&&(r=new Map,i.set(e,r)),r}getOptionScopes(e,n,i){const{options:r,type:s}=this,o=this._cachedScopes(e,i),a=o.get(n);if(a)return a;const l=new Set;n.forEach(c=>{e&&(l.add(e),c.forEach(d=>pa(l,e,d))),c.forEach(d=>pa(l,r,d)),c.forEach(d=>pa(l,_r[s]||{},d)),c.forEach(d=>pa(l,Le,d)),c.forEach(d=>pa(l,lm,d))});const u=Array.from(l);return u.length===0&&u.push(Object.create(null)),LP.has(n)&&o.set(n,u),u}chartOptionScopes(){const{options:e,type:n}=this;return[e,_r[n]||{},Le.datasets[n]||{},{type:n},Le,lm]}resolveNamedOptions(e,n,i,r=[""]){const s={$shared:!0},{resolver:o,subPrefixes:a}=RP(this._resolverCache,e,r);let l=o;if($6(o,n)){s.$shared=!1,i=Di(i)?i():i;const u=this.createResolver(e,i,a);l=ks(o,i,u)}for(const u of n)s[u]=l[u];return s}createResolver(e,n,i=[""],r){const{resolver:s}=RP(this._resolverCache,e,i);return ae(n)?ks(s,n,void 0,r):s}}function RP(t,e,n){let i=t.get(e);i||(i=new Map,t.set(e,i));const r=n.join();let s=i.get(r);return s||(s={resolver:mm(e,n),subPrefixes:n.filter(a=>!a.toLowerCase().includes("hover"))},i.set(r,s)),s}const T6=t=>ae(t)&&Object.getOwnPropertyNames(t).some(e=>Di(t[e]));function $6(t,e){const{isScriptable:n,isIndexable:i}=WS(t);for(const r of e){const s=n(r),o=i(r),a=(o||s)&&t[r];if(s&&(Di(a)||T6(a))||o&&Ie(a))return!0}return!1}var E6="4.4.7";const M6=["top","bottom","left","right","chartArea"];function FP(t,e){return t==="top"||t==="bottom"||M6.indexOf(t)===-1&&e==="x"}function NP(t,e){return function(n,i){return n[t]===i[t]?n[e]-i[e]:n[t]-i[t]}}function jP(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),ve(n&&n.onComplete,[t],e)}function D6(t){const e=t.chart,n=e.options.animation;ve(n&&n.onProgress,[t],e)}function IP(t){return vm()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const ic={},OP=t=>{const e=IP(t);return Object.values(ic).filter(n=>n.canvas===e).pop()};function A6(t,e,n){const i=Object.keys(t);for(const r of i){const s=+r;if(s>=e){const o=t[r];delete t[r],(n>0||s>e)&&(t[s+n]=o)}}}function L6(t,e,n,i){return!n||t.type==="mouseout"?null:i?e:t}function rc(t,e,n){return t.options.clip?t[n]:e[n]}function R6(t,e){const{xScale:n,yScale:i}=t;return n&&i?{left:rc(n,e,"left"),right:rc(n,e,"right"),top:rc(i,e,"top"),bottom:rc(i,e,"bottom")}:e}let sc=(Ii=class{static register(...e){Cn.add(...e),VP()}static unregister(...e){Cn.remove(...e),VP()}constructor(e,n){const i=this.config=new C6(n),r=IP(e),s=OP(r);if(s)throw new Error("Canvas is already in use. Chart with ID '"+s.id+"' must be destroyed before the canvas with ID '"+s.canvas.id+"' can be reused.");const o=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||QR(r)),this.platform.updateConfig(i);const a=this.platform.acquireContext(r,o.aspectRatio),l=a&&a.canvas,u=l&&l.height,c=l&&l.width;if(this.id=tL(),this.ctx=a,this.canvas=l,this.width=c,this.height=u,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new m6,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=vL(d=>this.update(d),o.resizeDelay||0),this._dataChanges=[],ic[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}Xn.listen(this,"complete",jP),Xn.listen(this,"progress",D6),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:n},width:i,height:r,_aspectRatio:s}=this;return pe(e)?n&&s?s:r?i/r:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return Cn}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():QS(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return BS(this.canvas,this.ctx),this}stop(){return Xn.stop(this),this}resize(e,n){Xn.running(this)?this._resizeBeforeDraw={width:e,height:n}:this._resize(e,n)}_resize(e,n){const i=this.options,r=this.canvas,s=i.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(r,e,n,s),a=i.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,QS(this,a,!0)&&(this.notifyPlugins("resize",{size:o}),ve(i.onResize,[this,o],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};me(n,(i,r)=>{i.id=r})}buildOrUpdateScales(){const e=this.options,n=e.scales,i=this.scales,r=Object.keys(i).reduce((o,a)=>(o[a]=!1,o),{});let s=[];n&&(s=s.concat(Object.keys(n).map(o=>{const a=n[o],l=Em(o,a),u=l==="r",c=l==="x";return{options:a,dposition:u?"chartArea":c?"bottom":"left",dtype:u?"radialLinear":c?"category":"linear"}}))),me(s,o=>{const a=o.options,l=a.id,u=Em(l,a),c=ce(a.type,o.dtype);(a.position===void 0||FP(a.position,u)!==FP(o.dposition))&&(a.position=o.dposition),r[l]=!0;let d=null;if(l in i&&i[l].type===c)d=i[l];else{const f=Cn.getScale(c);d=new f({id:l,type:c,ctx:this.ctx,chart:this}),i[d.id]=d}d.init(a,e)}),me(r,(o,a)=>{o||delete i[a]}),me(i,o=>{tn.configure(this,o,o.options),tn.addBox(this,o)})}_updateMetasets(){const e=this._metasets,n=this.data.datasets.length,i=e.length;if(e.sort((r,s)=>r.index-s.index),i>n){for(let r=n;rn.length&&delete this._stacks,e.forEach((i,r)=>{n.filter(s=>s===i._dataset).length===0&&this._destroyDatasetMeta(r)})}buildOrUpdateControllers(){const e=[],n=this.data.datasets;let i,r;for(this._removeUnreferencedMetasets(),i=0,r=n.length;i{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const n=this.config;n.update();const i=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const s=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let u=0,c=this.data.datasets.length;u{u.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(NP("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){me(this.scales,e=>{tn.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,n=new Set(Object.keys(this._listeners)),i=new Set(e.events);(!wS(n,i)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,n=this._getUniformDataChanges()||[];for(const{method:i,start:r,count:s}of n){const o=i==="_removeElements"?-s:s;A6(e,r,o)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const n=this.data.datasets.length,i=s=>new Set(e.filter(o=>o[0]===s).map((o,a)=>a+","+o.splice(1).join(","))),r=i(0);for(let s=1;ss.split(",")).map(s=>({method:s[1],start:+s[2],count:+s[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;tn.update(this,this.width,this.height,e);const n=this.chartArea,i=n.width<=0||n.height<=0;this._layers=[],me(this.boxes,r=>{i&&r.position==="chartArea"||(r.configure&&r.configure(),this._layers.push(...r._layers()))},this),this._layers.forEach((r,s)=>{r._idx=s}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let n=0,i=this.data.datasets.length;n=0;--n)this._drawDataset(e[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const n=this.ctx,i=e._clip,r=!i.disabled,s=R6(e,this.chartArea),o={meta:e,index:e.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",o)!==!1&&(r&&fm(n,{left:i.left===!1?0:s.left-i.left,right:i.right===!1?this.width:s.right+i.right,top:i.top===!1?0:s.top-i.top,bottom:i.bottom===!1?this.height:s.bottom+i.bottom}),e.controller.draw(),r&&hm(n),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(e){return dm(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,n,i,r){const s=MR.modes[n];return typeof s=="function"?s(this,e,i,r):[]}getDatasetMeta(e){const n=this.data.datasets[e],i=this._metasets;let r=i.filter(s=>s&&s._dataset===n).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:e,_dataset:n,_parsed:[],_sorted:!1},i.push(r)),r}getContext(){return this.$context||(this.$context=Ps(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const n=this.data.datasets[e];if(!n)return!1;const i=this.getDatasetMeta(e);return typeof i.hidden=="boolean"?!i.hidden:!n.hidden}setDatasetVisibility(e,n){const i=this.getDatasetMeta(e);i.hidden=!n}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,n,i){const r=i?"show":"hide",s=this.getDatasetMeta(e),o=s.controller._resolveAnimations(void 0,r);na(n)?(s.data[n].hidden=!i,this.update()):(this.setDatasetVisibility(e,i),o.update(s,{visible:i}),this.update(a=>a.datasetIndex===e?r:void 0))}hide(e,n){this._updateVisibility(e,n,!1)}show(e,n){this._updateVisibility(e,n,!0)}_destroyDatasetMeta(e){const n=this._metasets[e];n&&n.controller&&n.controller._destroy(),delete this._metasets[e]}_stop(){let e,n;for(this.stop(),Xn.remove(this),e=0,n=this.data.datasets.length;e{n.addEventListener(this,s,o),e[s]=o},r=(s,o,a)=>{s.offsetX=o,s.offsetY=a,this._eventHandler(s)};me(this.options.events,s=>i(s,r))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,n=this.platform,i=(l,u)=>{n.addEventListener(this,l,u),e[l]=u},r=(l,u)=>{e[l]&&(n.removeEventListener(this,l,u),delete e[l])},s=(l,u)=>{this.canvas&&this.resize(l,u)};let o;const a=()=>{r("attach",a),this.attached=!0,this.resize(),i("resize",s),i("detach",o)};o=()=>{this.attached=!1,r("resize",s),this._stop(),this._resize(0,0),i("attach",a)},n.isAttached(this.canvas)?a():o()}unbindEvents(){me(this._listeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._listeners={},me(this._responsiveListeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,n,i){const r=i?"set":"remove";let s,o,a,l;for(n==="dataset"&&(s=this.getDatasetMeta(e[0].datasetIndex),s.controller["_"+r+"DatasetHoverStyle"]()),a=0,l=e.length;a{const a=this.getDatasetMeta(s);if(!a)throw new Error("No dataset found at index "+s);return{datasetIndex:s,element:a.data[o],index:o}});!Vu(i,n)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,n))}notifyPlugins(e,n,i){return this._plugins.notify(this,e,n,i)}isPluginEnabled(e){return this._plugins._cache.filter(n=>n.plugin.id===e).length===1}_updateHoverStyles(e,n,i){const r=this.options.hover,s=(l,u)=>l.filter(c=>!u.some(d=>c.datasetIndex===d.datasetIndex&&c.index===d.index)),o=s(n,e),a=i?e:s(e,n);o.length&&this.updateHoverStyle(o,r.mode,!1),a.length&&r.mode&&this.updateHoverStyle(a,r.mode,!0)}_eventHandler(e,n){const i={event:e,replay:n,cancelable:!0,inChartArea:this.isPointInArea(e)},r=o=>(o.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",i,r)===!1)return;const s=this._handleEvent(e,n,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,r),(s||i.changed)&&this.render(),this}_handleEvent(e,n,i){const{_active:r=[],options:s}=this,o=n,a=this._getActiveElements(e,r,i,o),l=aL(e),u=L6(e,this._lastEvent,i,l);i&&(this._lastEvent=null,ve(s.onHover,[e,a,this],this),l&&ve(s.onClick,[e,a,this],this));const c=!Vu(a,r);return(c||n)&&(this._active=a,this._updateHoverStyles(a,r,n)),this._lastEvent=u,c}_getActiveElements(e,n,i,r){if(e.type==="mouseout")return[];if(!i)return n;const s=this.options.hover;return this.getElementsAtEventForMode(e,s.mode,s,r)}},Q(Ii,"defaults",Le),Q(Ii,"instances",ic),Q(Ii,"overrides",_r),Q(Ii,"registry",Cn),Q(Ii,"version",E6),Q(Ii,"getChart",OP),Ii);function VP(){return me(sc.instances,t=>t._plugins.invalidate())}function F6(t,e,n){const{startAngle:i,pixelMargin:r,x:s,y:o,outerRadius:a,innerRadius:l}=e;let u=r/a;t.beginPath(),t.arc(s,o,a,i-u,n+u),l>r?(u=r/l,t.arc(s,o,l,n+u,i-u,!0)):t.arc(s,o,r,n+Xe,i-Xe),t.closePath(),t.clip()}function N6(t){return pm(t,["outerStart","outerEnd","innerStart","innerEnd"])}function j6(t,e,n,i){const r=N6(t.options.borderRadius),s=(n-e)/2,o=Math.min(s,i*e/2),a=l=>{const u=(n-Math.min(s,l))*i/2;return St(l,0,Math.min(s,u))};return{outerStart:a(r.outerStart),outerEnd:a(r.outerEnd),innerStart:St(r.innerStart,0,o),innerEnd:St(r.innerEnd,0,o)}}function $s(t,e,n,i){return{x:n+t*Math.cos(e),y:i+t*Math.sin(e)}}function oc(t,e,n,i,r,s){const{x:o,y:a,startAngle:l,pixelMargin:u,innerRadius:c}=e,d=Math.max(e.outerRadius+i+n-u,0),f=c>0?c+i+n+u:0;let h=0;const m=r-l;if(i){const R=c>0?c-i:0,N=d>0?d-i:0,B=(R+N)/2,E=B!==0?m*B/(B+i):m;h=(m-E)/2}const y=Math.max(.001,m*d-n/We)/d,x=(m-y)/2,p=l+x+h,g=r-x-h,{outerStart:b,outerEnd:S,innerStart:w,innerEnd:C}=j6(e,f,d,g-p),L=d-b,T=d-S,P=p+b/L,M=g-S/T,j=f+w,$=f+C,F=p+w/j,D=g-C/$;if(t.beginPath(),s){const R=(P+M)/2;if(t.arc(o,a,d,P,R),t.arc(o,a,d,R,M),S>0){const z=$s(T,M,o,a);t.arc(z.x,z.y,S,M,g+Xe)}const N=$s($,g,o,a);if(t.lineTo(N.x,N.y),C>0){const z=$s($,D,o,a);t.arc(z.x,z.y,C,g+Xe,D+Math.PI)}const B=(g-C/f+(p+w/f))/2;if(t.arc(o,a,f,g-C/f,B,!0),t.arc(o,a,f,B,p+w/f,!0),w>0){const z=$s(j,F,o,a);t.arc(z.x,z.y,w,F+Math.PI,p-Xe)}const E=$s(L,p,o,a);if(t.lineTo(E.x,E.y),b>0){const z=$s(L,P,o,a);t.arc(z.x,z.y,b,p-Xe,P)}}else{t.moveTo(o,a);const R=Math.cos(P)*d+o,N=Math.sin(P)*d+a;t.lineTo(R,N);const B=Math.cos(M)*d+o,E=Math.sin(M)*d+a;t.lineTo(B,E)}t.closePath()}function I6(t,e,n,i,r){const{fullCircles:s,startAngle:o,circumference:a}=e;let l=e.endAngle;if(s){oc(t,e,n,i,l,r);for(let u=0;u=ft||y,p=xr(a,c+h,d+h);return x&&p}getCenterPoint(n){const{x:i,y:r,startAngle:s,endAngle:o,innerRadius:a,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:u,spacing:c}=this.options,d=(s+o)/2,f=(a+l+c+u)/2;return{x:i+Math.cos(d)*f,y:r+Math.sin(d)*f}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:i,circumference:r}=this,s=(i.offset||0)/4,o=(i.spacing||0)/2,a=i.circular;if(this.pixelMargin=i.borderAlign==="inner"?.33:0,this.fullCircles=r>ft?Math.floor(r/ft):0,r===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const l=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(l)*s,Math.sin(l)*s);const u=1-Math.sin(Math.min(We,r||0)),c=s*u;n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,I6(n,this,c,o,a),O6(n,this,c,o,a),n.restore()}}Q(ma,"id","arc"),Q(ma,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),Q(ma,"defaultRoutes",{backgroundColor:"backgroundColor"}),Q(ma,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function zP(t,e,n,i){const r=t.options,{[n]:s}=t.getProps([n],i);return Math.abs(e-s){let{boxHeight:n=e,boxWidth:i=e}=t;return t.usePointStyle&&(n=Math.min(n,e),i=t.pointStyleWidth||Math.min(i,e)),{boxWidth:i,boxHeight:n,itemHeight:Math.max(e,n)}},W6=(t,e)=>t!==null&&e!==null&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class HP extends Li{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n,i){this.maxWidth=e,this.maxHeight=n,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let n=ve(e.generateLabels,[this.chart],this)||[];e.filter&&(n=n.filter(i=>e.filter(i,this.chart.data))),e.sort&&(n=n.sort((i,r)=>e.sort(i,r,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:e,ctx:n}=this;if(!e.display){this.width=this.height=0;return}const i=e.labels,r=qe(i.font),s=r.size,o=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=KP(i,s);let u,c;n.font=r.string,this.isHorizontal()?(u=this.maxWidth,c=this._fitRows(o,s,a,l)+10):(c=this.maxHeight,u=this._fitCols(o,r,a,l)+10),this.width=Math.min(u,e.maxWidth||this.maxWidth),this.height=Math.min(c,e.maxHeight||this.maxHeight)}_fitRows(e,n,i,r){const{ctx:s,maxWidth:o,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],u=this.lineWidths=[0],c=r+a;let d=e;s.textAlign="left",s.textBaseline="middle";let f=-1,h=-c;return this.legendItems.forEach((m,y)=>{const x=i+n/2+s.measureText(m.text).width;(y===0||u[u.length-1]+x+2*a>o)&&(d+=c,u[u.length-(y>0?0:1)]=0,h+=c,f++),l[y]={left:0,top:h,row:f,width:x,height:r},u[u.length-1]+=x+a}),d}_fitCols(e,n,i,r){const{ctx:s,maxHeight:o,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],u=this.columnSizes=[],c=o-e;let d=a,f=0,h=0,m=0,y=0;return this.legendItems.forEach((x,p)=>{const{itemWidth:g,itemHeight:b}=U6(i,n,s,x,r);p>0&&h+b+2*a>c&&(d+=f+a,u.push({width:f,height:h}),m+=f+a,y++,f=h=0),l[p]={left:m,top:h,col:y,width:g,height:b},f=Math.max(f,g),h+=b+a}),d+=f,u.push({width:f,height:h}),d}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:i,labels:{padding:r},rtl:s}}=this,o=Cs(s,this.left,this.width);if(this.isHorizontal()){let a=0,l=st(i,this.left+r,this.right-this.lineWidths[a]);for(const u of n)a!==u.row&&(a=u.row,l=st(i,this.left+r,this.right-this.lineWidths[a])),u.top+=this.top+e+r,u.left=o.leftForLtr(o.x(l),u.width),l+=u.width+r}else{let a=0,l=st(i,this.top+e+r,this.bottom-this.columnSizes[a].height);for(const u of n)u.col!==a&&(a=u.col,l=st(i,this.top+e+r,this.bottom-this.columnSizes[a].height)),u.top=l,u.left+=this.left+r,u.left=o.leftForLtr(o.x(u.left),u.width),l+=u.height+r}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const e=this.ctx;fm(e,this),this._draw(),hm(e)}}_draw(){const{options:e,columnSizes:n,lineWidths:i,ctx:r}=this,{align:s,labels:o}=e,a=Le.color,l=Cs(e.rtl,this.left,this.width),u=qe(o.font),{padding:c}=o,d=u.size,f=d/2;let h;this.drawTitle(),r.textAlign=l.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=u.string;const{boxWidth:m,boxHeight:y,itemHeight:x}=KP(o,d),p=function(C,L,T){if(isNaN(m)||m<=0||isNaN(y)||y<0)return;r.save();const P=ce(T.lineWidth,1);if(r.fillStyle=ce(T.fillStyle,a),r.lineCap=ce(T.lineCap,"butt"),r.lineDashOffset=ce(T.lineDashOffset,0),r.lineJoin=ce(T.lineJoin,"miter"),r.lineWidth=P,r.strokeStyle=ce(T.strokeStyle,a),r.setLineDash(ce(T.lineDash,[])),o.usePointStyle){const M={radius:y*Math.SQRT2/2,pointStyle:T.pointStyle,rotation:T.rotation,borderWidth:P},j=l.xPlus(C,m/2),$=L+f;KS(r,M,j,$,o.pointStyleWidth&&m)}else{const M=L+Math.max((d-y)/2,0),j=l.leftForLtr(C,m),$=Ss(T.borderRadius);r.beginPath(),Object.values($).some(F=>F!==0)?Uu(r,{x:j,y:M,w:m,h:y,radius:$}):r.rect(j,M,m,y),r.fill(),P!==0&&r.stroke()}r.restore()},g=function(C,L,T){sa(r,T.text,C,L+x/2,u,{strikethrough:T.hidden,textAlign:l.textAlign(T.textAlign)})},b=this.isHorizontal(),S=this._computeTitleHeight();b?h={x:st(s,this.left+c,this.right-i[0]),y:this.top+c+S,line:0}:h={x:this.left+c,y:st(s,this.top+S+c,this.bottom-n[0].height),line:0},JS(this.ctx,e.textDirection);const w=x+c;this.legendItems.forEach((C,L)=>{r.strokeStyle=C.fontColor,r.fillStyle=C.fontColor;const T=r.measureText(C.text).width,P=l.textAlign(C.textAlign||(C.textAlign=o.textAlign)),M=m+f+T;let j=h.x,$=h.y;l.setWidth(this.width),b?L>0&&j+M+c>this.right&&($=h.y+=w,h.line++,j=h.x=st(s,this.left+c,this.right-i[h.line])):L>0&&$+w>this.bottom&&(j=h.x=j+n[h.line].width+c,h.line++,$=h.y=st(s,this.top+S+c,this.bottom-n[h.line].height));const F=l.x(j);if(p(F,$,C),j=bL(P,j+m+f,b?j+M:this.right,e.rtl),g(l.x(j),$,C),b)h.x+=M+c;else if(typeof C.text!="string"){const D=u.lineHeight;h.y+=WP(C,D)+c}else h.y+=w}),eP(this.ctx,e.textDirection)}drawTitle(){const e=this.options,n=e.title,i=qe(n.font),r=It(n.padding);if(!n.display)return;const s=Cs(e.rtl,this.left,this.width),o=this.ctx,a=n.position,l=i.size/2,u=r.top+l;let c,d=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),c=this.top+u,d=st(e.align,d,this.right-f);else{const m=this.columnSizes.reduce((y,x)=>Math.max(y,x.height),0);c=u+st(e.align,this.top,this.bottom-m-e.labels.padding-this._computeTitleHeight())}const h=st(a,d,d+f);o.textAlign=s.textAlign(om(a)),o.textBaseline="middle",o.strokeStyle=n.color,o.fillStyle=n.color,o.font=i.string,sa(o,n.text,h,c,i)}_computeTitleHeight(){const e=this.options.title,n=qe(e.font),i=It(e.padding);return e.display?n.lineHeight+i.height:0}_getLegendItemAt(e,n){let i,r,s;if(xr(e,this.left,this.right)&&xr(n,this.top,this.bottom)){for(s=this.legendHitBoxes,i=0;is.length>o.length?s:o)),e+n.size/2+i.measureText(r).width}function G6(t,e,n){let i=t;return typeof e.text!="string"&&(i=WP(e,n)),i}function WP(t,e){const n=t.text?t.text.length:0;return e*n}function X6(t,e){return!!((t==="mousemove"||t==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(t==="click"||t==="mouseup"))}var q6={id:"legend",_element:HP,start(t,e,n){const i=t.legend=new HP({ctx:t.ctx,options:n,chart:t});tn.configure(t,i,n),tn.addBox(t,i)},stop(t){tn.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const i=t.legend;tn.configure(t,i,n),i.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const i=e.datasetIndex,r=n.chart;r.isDatasetVisible(i)?(r.hide(i),e.hidden=!0):(r.show(i),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:i,textAlign:r,color:s,useBorderRadius:o,borderRadius:a}}=t.legend.options;return t._getSortedDatasetMetas().map(l=>{const u=l.controller.getStyle(n?0:void 0),c=It(u.borderWidth);return{text:e[l.index].label,fillStyle:u.backgroundColor,fontColor:s,hidden:!l.visible,lineCap:u.borderCapStyle,lineDash:u.borderDash,lineDashOffset:u.borderDashOffset,lineJoin:u.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:u.borderColor,pointStyle:i||u.pointStyle,rotation:u.rotation,textAlign:r||u.textAlign,borderRadius:o&&(a||u.borderRadius),datasetIndex:l.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class UP extends Li{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n){const i=this.options;if(this.left=0,this.top=0,!i.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=e,this.height=this.bottom=n;const r=Ie(i.text)?i.text.length:1;this._padding=It(i.padding);const s=r*qe(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=s:this.width=s}isHorizontal(){const e=this.options.position;return e==="top"||e==="bottom"}_drawArgs(e){const{top:n,left:i,bottom:r,right:s,options:o}=this,a=o.align;let l=0,u,c,d;return this.isHorizontal()?(c=st(a,i,s),d=n+e,u=s-i):(o.position==="left"?(c=i+e,d=st(a,r,n),l=We*-.5):(c=s-e,d=st(a,n,r),l=We*.5),u=r-n),{titleX:c,titleY:d,maxWidth:u,rotation:l}}draw(){const e=this.ctx,n=this.options;if(!n.display)return;const i=qe(n.font),s=i.lineHeight/2+this._padding.top,{titleX:o,titleY:a,maxWidth:l,rotation:u}=this._drawArgs(s);sa(e,n.text,0,0,i,{color:n.color,maxWidth:l,rotation:u,textAlign:om(n.align),textBaseline:"middle",translation:[o,a]})}}function Q6(t,e){const n=new UP({ctx:t.ctx,options:e,chart:t});tn.configure(t,n,e),tn.addBox(t,n),t.titleBlock=n}var Z6={id:"title",_element:UP,start(t,e,n){Q6(t,n)},stop(t){const e=t.titleBlock;tn.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,n){const i=t.titleBlock;tn.configure(t,i,n),i.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const ya={average(t){if(!t.length)return!1;let e,n,i=new Set,r=0,s=0;for(e=0,n=t.length;ea+l)/i.size,y:r/s}},nearest(t,e){if(!t.length)return!1;let n=e.x,i=e.y,r=Number.POSITIVE_INFINITY,s,o,a;for(s=0,o=t.length;s-1?t.split(` `):t}function J6(t,e){const{element:n,datasetIndex:i,index:r}=e,s=t.getDatasetMeta(i).controller,{label:o,value:a}=s.getLabelAndValue(r);return{chart:t,label:o,parsed:s.getParsed(r),raw:t.data.datasets[i].data[r],formattedValue:a,dataset:s.getDataset(),dataIndex:r,datasetIndex:i,element:n}}function YP(t,e){const n=t.chart.ctx,{body:i,footer:r,title:s}=t,{boxWidth:o,boxHeight:a}=e,l=qe(e.bodyFont),u=qe(e.titleFont),c=qe(e.footerFont),d=s.length,f=r.length,h=i.length,m=It(e.padding);let y=m.height,x=0,p=i.reduce((S,w)=>S+w.before.length+w.lines.length+w.after.length,0);if(p+=t.beforeBody.length+t.afterBody.length,d&&(y+=d*u.lineHeight+(d-1)*e.titleSpacing+e.titleMarginBottom),p){const S=e.displayColors?Math.max(a,l.lineHeight):l.lineHeight;y+=h*S+(p-h)*l.lineHeight+(p-1)*e.bodySpacing}f&&(y+=e.footerMarginTop+f*c.lineHeight+(f-1)*e.footerSpacing);let g=0;const b=function(S){x=Math.max(x,n.measureText(S).width+g)};return n.save(),n.font=u.string,me(t.title,b),n.font=l.string,me(t.beforeBody.concat(t.afterBody),b),g=e.displayColors?o+2+e.boxPadding:0,me(i,S=>{me(S.before,b),me(S.lines,b),me(S.after,b)}),g=0,n.font=c.string,me(t.footer,b),n.restore(),x+=m.width,{width:x,height:y}}function eF(t,e){const{y:n,height:i}=e;return nt.height-i/2?"bottom":"center"}function tF(t,e,n,i){const{x:r,width:s}=i,o=n.caretSize+n.caretPadding;if(t==="left"&&r+s+o>e.width||t==="right"&&r-s-o<0)return!0}function nF(t,e,n,i){const{x:r,width:s}=n,{width:o,chartArea:{left:a,right:l}}=t;let u="center";return i==="center"?u=r<=(a+l)/2?"left":"right":r<=s/2?u="left":r>=o-s/2&&(u="right"),tF(u,t,e,n)&&(u="center"),u}function GP(t,e,n){const i=n.yAlign||e.yAlign||eF(t,n);return{xAlign:n.xAlign||e.xAlign||nF(t,e,n,i),yAlign:i}}function iF(t,e){let{x:n,width:i}=t;return e==="right"?n-=i:e==="center"&&(n-=i/2),n}function rF(t,e,n){let{y:i,height:r}=t;return e==="top"?i+=n:e==="bottom"?i-=r+n:i-=r/2,i}function XP(t,e,n,i){const{caretSize:r,caretPadding:s,cornerRadius:o}=t,{xAlign:a,yAlign:l}=n,u=r+s,{topLeft:c,topRight:d,bottomLeft:f,bottomRight:h}=Ss(o);let m=iF(e,a);const y=rF(e,l,u);return l==="center"?a==="left"?m+=u:a==="right"&&(m-=u):a==="left"?m-=Math.max(c,f)+r:a==="right"&&(m+=Math.max(d,h)+r),{x:St(m,0,i.width-e.width),y:St(y,0,i.height-e.height)}}function lc(t,e,n){const i=It(n.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-i.right:t.x+i.left}function qP(t){return Tn([],qn(t))}function sF(t,e,n){return Ps(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}function QP(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const ZP={beforeTitle:Gn,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,i=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(i>0&&e.dataIndex{const o={before:[],lines:[],after:[]},a=QP(i,s);Tn(o.before,qn(Pt(a,"beforeLabel",this,s))),Tn(o.lines,Pt(a,"label",this,s)),Tn(o.after,qn(Pt(a,"afterLabel",this,s))),r.push(o)}),r}getAfterBody(e,n){return qP(Pt(n.callbacks,"afterBody",this,e))}getFooter(e,n){const{callbacks:i}=n,r=Pt(i,"beforeFooter",this,e),s=Pt(i,"footer",this,e),o=Pt(i,"afterFooter",this,e);let a=[];return a=Tn(a,qn(r)),a=Tn(a,qn(s)),a=Tn(a,qn(o)),a}_createItems(e){const n=this._active,i=this.chart.data,r=[],s=[],o=[];let a=[],l,u;for(l=0,u=n.length;le.filter(c,d,f,i))),e.itemSort&&(a=a.sort((c,d)=>e.itemSort(c,d,i))),me(a,c=>{const d=QP(e.callbacks,c);r.push(Pt(d,"labelColor",this,c)),s.push(Pt(d,"labelPointStyle",this,c)),o.push(Pt(d,"labelTextColor",this,c))}),this.labelColors=r,this.labelPointStyles=s,this.labelTextColors=o,this.dataPoints=a,a}update(e,n){const i=this.options.setContext(this.getContext()),r=this._active;let s,o=[];if(!r.length)this.opacity!==0&&(s={opacity:0});else{const a=ya[i.position].call(this,r,this._eventPosition);o=this._createItems(i),this.title=this.getTitle(o,i),this.beforeBody=this.getBeforeBody(o,i),this.body=this.getBody(o,i),this.afterBody=this.getAfterBody(o,i),this.footer=this.getFooter(o,i);const l=this._size=YP(this,i),u=Object.assign({},a,l),c=GP(this.chart,i,u),d=XP(i,u,c,this.chart);this.xAlign=c.xAlign,this.yAlign=c.yAlign,s={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=o,this.$context=void 0,s&&this._resolveAnimations().update(this,s),e&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(e,n,i,r){const s=this.getCaretPosition(e,i,r);n.lineTo(s.x1,s.y1),n.lineTo(s.x2,s.y2),n.lineTo(s.x3,s.y3)}getCaretPosition(e,n,i){const{xAlign:r,yAlign:s}=this,{caretSize:o,cornerRadius:a}=i,{topLeft:l,topRight:u,bottomLeft:c,bottomRight:d}=Ss(a),{x:f,y:h}=e,{width:m,height:y}=n;let x,p,g,b,S,w;return s==="center"?(S=h+y/2,r==="left"?(x=f,p=x-o,b=S+o,w=S-o):(x=f+m,p=x+o,b=S-o,w=S+o),g=x):(r==="left"?p=f+Math.max(l,c)+o:r==="right"?p=f+m-Math.max(u,d)-o:p=this.caretX,s==="top"?(b=h,S=b-o,x=p-o,g=p+o):(b=h+y,S=b+o,x=p+o,g=p-o),w=b),{x1:x,x2:p,x3:g,y1:b,y2:S,y3:w}}drawTitle(e,n,i){const r=this.title,s=r.length;let o,a,l;if(s){const u=Cs(i.rtl,this.x,this.width);for(e.x=lc(this,i.titleAlign,i),n.textAlign=u.textAlign(i.titleAlign),n.textBaseline="middle",o=qe(i.titleFont),a=i.titleSpacing,n.fillStyle=i.titleColor,n.font=o.string,l=0;lg!==0)?(e.beginPath(),e.fillStyle=s.multiKeyBackground,Uu(e,{x:y,y:m,w:u,h:l,radius:p}),e.fill(),e.stroke(),e.fillStyle=o.backgroundColor,e.beginPath(),Uu(e,{x,y:m+1,w:u-2,h:l-2,radius:p}),e.fill()):(e.fillStyle=s.multiKeyBackground,e.fillRect(y,m,u,l),e.strokeRect(y,m,u,l),e.fillStyle=o.backgroundColor,e.fillRect(x,m+1,u-2,l-2))}e.fillStyle=this.labelTextColors[i]}drawBody(e,n,i){const{body:r}=this,{bodySpacing:s,bodyAlign:o,displayColors:a,boxHeight:l,boxWidth:u,boxPadding:c}=i,d=qe(i.bodyFont);let f=d.lineHeight,h=0;const m=Cs(i.rtl,this.x,this.width),y=function(T){n.fillText(T,m.x(e.x+h),e.y+f/2),e.y+=f+s},x=m.textAlign(o);let p,g,b,S,w,C,L;for(n.textAlign=o,n.textBaseline="middle",n.font=d.string,e.x=lc(this,x,i),n.fillStyle=i.bodyColor,me(this.beforeBody,y),h=a&&x!=="right"?o==="center"?u/2+c:u+2+c:0,S=0,C=r.length;S0&&n.stroke()}_updateAnimationTarget(e){const n=this.chart,i=this.$animations,r=i&&i.x,s=i&&i.y;if(r||s){const o=ya[e.position].call(this,this._active,this._eventPosition);if(!o)return;const a=this._size=YP(this,e),l=Object.assign({},o,this._size),u=GP(n,e,l),c=XP(e,l,u,n);(r._to!==c.x||s._to!==c.y)&&(this.xAlign=u.xAlign,this.yAlign=u.yAlign,this.width=a.width,this.height=a.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,c))}}_willRender(){return!!this.opacity}draw(e){const n=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(n);const r={width:this.width,height:this.height},s={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const o=It(n.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&a&&(e.save(),e.globalAlpha=i,this.drawBackground(s,e,r,n),JS(e,n.textDirection),s.y+=o.top,this.drawTitle(s,e,n),this.drawBody(s,e,n),this.drawFooter(s,e,n),eP(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const i=this._active,r=e.map(({datasetIndex:a,index:l})=>{const u=this.chart.getDatasetMeta(a);if(!u)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:u.data[l],index:l}}),s=!Vu(i,r),o=this._positionChanged(r,n);(s||o)&&(this._active=r,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,n,i=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const r=this.options,s=this._active||[],o=this._getActiveElements(e,s,n,i),a=this._positionChanged(o,e),l=n||!Vu(o,s)||a;return l&&(this._active=o,(r.enabled||r.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,n))),l}_getActiveElements(e,n,i,r){const s=this.options;if(e.type==="mouseout")return[];if(!r)return n.filter(a=>this.chart.data.datasets[a.datasetIndex]&&this.chart.getDatasetMeta(a.datasetIndex).controller.getParsed(a.index)!==void 0);const o=this.chart.getElementsAtEventForMode(e,s.mode,s,i);return s.reverse&&o.reverse(),o}_positionChanged(e,n){const{caretX:i,caretY:r,options:s}=this,o=ya[s.position].call(this,e,n);return o!==!1&&(i!==o.x||r!==o.y)}}Q(Am,"positioners",ya);var oF={id:"tooltip",_element:Am,positioners:ya,afterInit(t,e,n){n&&(t.tooltip=new Am({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(t.notifyPlugins("beforeTooltipDraw",V(k({},n),{cancelable:!0}))===!1)return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:ZP},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const aF=(t,e,n,i)=>(typeof e=="string"?(n=t.push(e)-1,i.unshift({index:n,label:e})):isNaN(e)&&(n=null),n);function lF(t,e,n,i){const r=t.indexOf(e);if(r===-1)return aF(t,e,n,i);const s=t.lastIndexOf(e);return r!==s?n:r}const uF=(t,e)=>t===null?null:St(Math.round(t),0,e);function JP(t){const e=this.getLabels();return t>=0&&tn.length-1?null:this.getPixelForValue(n[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}Q(Lm,"id","category"),Q(Lm,"defaults",{ticks:{callback:JP}});function cF(t,e){const n=[],{bounds:r,step:s,min:o,max:a,precision:l,count:u,maxTicks:c,maxDigits:d,includeBounds:f}=t,h=s||1,m=c-1,{min:y,max:x}=e,p=!pe(o),g=!pe(a),b=!pe(u),S=(x-y)/(d+1);let w=PS((x-y)/m/h)*h,C,L,T,P;if(w<1e-14&&!p&&!g)return[{value:y},{value:x}];P=Math.ceil(x/w)-Math.floor(y/w),P>m&&(w=PS(P*w/m/h)*h),pe(l)||(C=Math.pow(10,l),w=Math.ceil(w*C)/C),r==="ticks"?(L=Math.floor(y/w)*w,T=Math.ceil(x/w)*w):(L=y,T=x),p&&g&&s&&cL((a-o)/s,w/1e3)?(P=Math.round(Math.min((a-o)/w,c)),w=(a-o)/P,L=o,T=a):b?(L=p?o:L,T=g?a:T,P=u-1,w=(T-L)/P):(P=(T-L)/w,Ku(P,Math.round(P),w/1e3)?P=Math.round(P):P=Math.ceil(P));const M=Math.max(kS(w),kS(L));C=Math.pow(10,pe(l)?M:l),L=Math.round(L*C)/C,T=Math.round(T*C)/C;let j=0;for(p&&(f&&L!==o?(n.push({value:o}),La)break;n.push({value:$})}return g&&f&&T!==a?n.length&&Ku(n[n.length-1].value,a,ek(a,S,t))?n[n.length-1].value=a:n.push({value:a}):(!g||T===a)&&n.push({value:T}),n}function ek(t,e,{horizontal:n,minRotation:i}){const r=vr(i),s=(n?Math.sin(r):Math.cos(r))||.001,o=.75*e*(""+t).length;return Math.min(e/s,o)}class dF extends Ts{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,n){return pe(e)||(typeof e=="number"||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:n,maxDefined:i}=this.getUserBounds();let{min:r,max:s}=this;const o=l=>r=n?r:l,a=l=>s=i?s:l;if(e){const l=Ai(r),u=Ai(s);l<0&&u<0?a(0):l>0&&u>0&&o(0)}if(r===s){let l=s===0?1:Math.abs(s*.05);a(s+l),e||o(r-l)}this.min=r,this.max=s}getTickLimit(){const e=this.options.ticks;let{maxTicksLimit:n,stepSize:i}=e,r;return i?(r=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,r>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${r} ticks. Limiting to 1000.`),r=1e3)):(r=this.computeTickLimit(),n=n||11),n&&(r=Math.min(n,r)),r}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,n=e.ticks;let i=this.getTickLimit();i=Math.max(2,i);const r={maxTicks:i,bounds:e.bounds,min:e.min,max:e.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},s=this._range||this,o=cF(r,s);return e.bounds==="ticks"&&dL(o,this,"value"),e.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){const e=this.ticks;let n=this.min,i=this.max;if(super.configure(),this.options.offset&&e.length){const r=(i-n)/Math.max(e.length-1,1)/2;n-=r,i+=r}this._startValue=n,this._endValue=i,this._valueRange=i-n}getLabelForValue(e){return IS(e,this.chart.options.locale,this.options.ticks.format)}}class Rm extends dF{determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=en(e)?e:0,this.max=en(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),n=e?this.width:this.height,i=vr(this.options.ticks.minRotation),r=(e?Math.sin(i):Math.cos(i))||.001,s=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,s.lineHeight/r))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}Q(Rm,"id","linear"),Q(Rm,"defaults",{ticks:{callback:VS.formatters.numeric}});const uc={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},kt=Object.keys(uc);function tk(t,e){return t-e}function nk(t,e){if(pe(e))return null;const n=t._adapter,{parser:i,round:r,isoWeekday:s}=t._parseOpts;let o=e;return typeof i=="function"&&(o=i(o)),en(o)||(o=typeof i=="string"?n.parse(o,i):n.parse(o)),o===null?null:(r&&(o=r==="week"&&(Hu(s)||s===!0)?n.startOf(o,"isoWeek",s):n.startOf(o,r)),+o)}function ik(t,e,n,i){const r=kt.length;for(let s=kt.indexOf(t);s=kt.indexOf(n);s--){const o=kt[s];if(uc[o].common&&t._adapter.diff(r,i,o)>=e-1)return o}return kt[n?kt.indexOf(n):0]}function hF(t){for(let e=kt.indexOf(t)+1,n=kt.length;e=e?n[i]:n[r];t[s]=!0}}function pF(t,e,n,i){const r=t._adapter,s=+r.startOf(e[0].value,i),o=e[e.length-1].value;let a,l;for(a=s;a<=o;a=+r.add(a,1,i))l=n[a],l>=0&&(e[l].major=!0);return e}function sk(t,e,n){const i=[],r={},s=e.length;let o,a;for(o=0;o+e.value))}initOffsets(e=[]){let n=0,i=0,r,s;this.options.offset&&e.length&&(r=this.getDecimalForValue(e[0]),e.length===1?n=1-r:n=(this.getDecimalForValue(e[1])-r)/2,s=this.getDecimalForValue(e[e.length-1]),e.length===1?i=s:i=(s-this.getDecimalForValue(e[e.length-2]))/2);const o=e.length<3?.5:.25;n=St(n,0,o),i=St(i,0,o),this._offsets={start:n,end:i,factor:1/(n+1+i)}}_generate(){const e=this._adapter,n=this.min,i=this.max,r=this.options,s=r.time,o=s.unit||ik(s.minUnit,n,i,this._getLabelCapacity(n)),a=ce(r.ticks.stepSize,1),l=o==="week"?s.isoWeekday:!1,u=Hu(l)||l===!0,c={};let d=n,f,h;if(u&&(d=+e.startOf(d,"isoWeek",l)),d=+e.startOf(d,u?"day":o),e.diff(i,n,o)>1e5*a)throw new Error(n+" and "+i+" are too far apart with stepSize of "+a+" "+o);const m=r.ticks.source==="data"&&this.getDataTimestamps();for(f=d,h=0;f+y)}getLabelForValue(e){const n=this._adapter,i=this.options.time;return i.tooltipFormat?n.format(e,i.tooltipFormat):n.format(e,i.displayFormats.datetime)}format(e,n){const r=this.options.time.displayFormats,s=this._unit,o=n||r[s];return this._adapter.format(e,o)}_tickFormatFunction(e,n,i,r){const s=this.options,o=s.ticks.callback;if(o)return ve(o,[e,n,i],this);const a=s.time.displayFormats,l=this._unit,u=this._majorUnit,c=l&&a[l],d=u&&a[u],f=i[n],h=u&&d&&f&&f.major;return this._adapter.format(e,r||(h?d:c))}generateTickLabels(e){let n,i,r;for(n=0,i=e.length;n0?a:1}getDataTimestamps(){let e=this._cache.data||[],n,i;if(e.length)return e;const r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(n=0,i=r.length;n=t[i].pos&&e<=t[r].pos&&({lo:i,hi:r}=sm(t,"pos",e)),{pos:s,time:a}=t[i],{pos:o,time:l}=t[r]):(e>=t[i].time&&e<=t[r].time&&({lo:i,hi:r}=sm(t,"time",e)),{time:s,pos:a}=t[i],{time:o,pos:l}=t[r]);const u=o-s;return u?a+(l-a)*(e-s)/u:a}class ok extends cc{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(e);this._minPos=dc(n,this.min),this._tableRange=dc(n,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:n,max:i}=this,r=[],s=[];let o,a,l,u,c;for(o=0,a=e.length;o=n&&u<=i&&r.push(u);if(r.length<2)return[{time:n,pos:0},{time:i,pos:1}];for(o=0,a=r.length;or-s)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const n=this.getDataTimestamps(),i=this.getLabelTimestamps();return n.length&&i.length?e=this.normalize(n.concat(i)):e=n.length?n:i,e=this._cache.all=e,e}getDecimalForValue(e){return(dc(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const n=this._offsets,i=this.getDecimalForPixel(e)/n.factor-n.end;return dc(this._table,i*this._tableRange+this._minPos,!0)}}Q(ok,"id","timeseries"),Q(ok,"defaults",cc.defaults);const ak="label";function lk(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function mF(t,e){const n=t.options;n&&e&&Object.assign(n,e)}function uk(t,e){t.labels=e}function ck(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ak;const i=[];t.datasets=e.map(r=>{const s=t.datasets.find(o=>o[n]===r[n]);return!s||!r.data||i.includes(s)?k({},r):(i.push(s),Object.assign(s,r),s)})}function gF(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ak;const n={labels:[],datasets:[]};return uk(n,t.labels),ck(n,t.datasets,e),n}function yF(t,e){const p=t,{height:n=150,width:i=300,redraw:r=!1,datasetIdKey:s,type:o,data:a,options:l,plugins:u=[],fallbackContent:c,updateMode:d}=p,f=se(p,["height","width","redraw","datasetIdKey","type","data","options","plugins","fallbackContent","updateMode"]),h=_.useRef(null),m=_.useRef(null),y=()=>{h.current&&(m.current=new sc(h.current,{type:o,data:gF(a,s),options:l&&k({},l),plugins:u}),lk(e,m.current))},x=()=>{lk(e,null),m.current&&(m.current.destroy(),m.current=null)};return _.useEffect(()=>{!r&&m.current&&l&&mF(m.current,l)},[r,l]),_.useEffect(()=>{!r&&m.current&&uk(m.current.config.data,a.labels)},[r,a.labels]),_.useEffect(()=>{!r&&m.current&&a.datasets&&ck(m.current.config.data,a.datasets,s)},[r,a.datasets]),_.useEffect(()=>{m.current&&(r?(x(),setTimeout(y)):m.current.update(d))},[r,l,a.labels,a.datasets,d]),_.useEffect(()=>{m.current&&(x(),setTimeout(y))},[o]),_.useEffect(()=>(y(),()=>x()),[]),Y.createElement("canvas",k({ref:h,role:"img",height:n,width:i},f),c)}const vF=_.forwardRef(yF);function bF(t,e){return sc.register(e),_.forwardRef((n,i)=>Y.createElement(vF,V(k({},n),{ref:i,type:t})))}const xF=bF("bar",qu);/*! * chartjs-plugin-datalabels v2.2.0 * https://chartjs-plugin-datalabels.netlify.app * (c) 2017-2022 chartjs-plugin-datalabels contributors * Released under the MIT license */var dk=function(){if(typeof window!="undefined"){if(window.devicePixelRatio)return window.devicePixelRatio;var t=window.screen;if(t)return(t.deviceXDPI||1)/(t.logicalXDPI||1)}return 1}(),va={toTextLines:function(t){var e=[],n;for(t=[].concat(t);t.length;)n=t.pop(),typeof n=="string"?e.unshift.apply(e,n.split(` `)):Array.isArray(n)?t.push.apply(t,n):pe(t)||e.unshift(""+n);return e},textSize:function(t,e,n){var i=[].concat(e),r=i.length,s=t.font,o=0,a;for(t.font=n.string,a=0;an.right&&(i|=hk),en.bottom&&(i|=pk),i}function SF(t,e){for(var n=t.x0,i=t.y0,r=t.x1,s=t.y1,o=fc(n,i,e),a=fc(r,s,e),l,u,c;!(!(o|a)||o&a);)l=o||a,l&mk?(u=n+(r-n)*(e.top-i)/(s-i),c=e.top):l&pk?(u=n+(r-n)*(e.bottom-i)/(s-i),c=e.bottom):l&hk?(c=i+(s-i)*(e.right-n)/(r-n),u=e.right):l&fk&&(c=i+(s-i)*(e.left-n)/(r-n),u=e.left),l===o?(n=u,i=c,o=fc(n,i,e)):(r=u,s=c,a=fc(r,s,e));return{x0:n,x1:r,y0:i,y1:s}}function hc(t,e){var n=e.anchor,i=t,r,s;return e.clamp&&(i=SF(i,e.area)),n==="start"?(r=i.x0,s=i.y0):n==="end"?(r=i.x1,s=i.y1):(r=(i.x0+i.x1)/2,s=(i.y0+i.y1)/2),_F(r,s,t.vx,t.vy,e.align)}var pc={arc:function(t,e){var n=(t.startAngle+t.endAngle)/2,i=Math.cos(n),r=Math.sin(n),s=t.innerRadius,o=t.outerRadius;return hc({x0:t.x+i*s,y0:t.y+r*s,x1:t.x+i*o,y1:t.y+r*o,vx:i,vy:r},e)},point:function(t,e){var n=Fm(t,e.origin),i=n.x*t.options.radius,r=n.y*t.options.radius;return hc({x0:t.x-i,y0:t.y-r,x1:t.x+i,y1:t.y+r,vx:n.x,vy:n.y},e)},bar:function(t,e){var n=Fm(t,e.origin),i=t.x,r=t.y,s=0,o=0;return t.horizontal?(i=Math.min(t.x,t.base),s=Math.abs(t.base-t.x)):(r=Math.min(t.y,t.base),o=Math.abs(t.base-t.y)),hc({x0:i,y0:r+o,x1:i+s,y1:r,vx:n.x,vy:n.y},e)},fallback:function(t,e){var n=Fm(t,e.origin);return hc({x0:t.x,y0:t.y,x1:t.x+(t.width||0),y1:t.y+(t.height||0),vx:n.x,vy:n.y},e)}},Qn=va.rasterize;function PF(t){var e=t.borderWidth||0,n=t.padding,i=t.size.height,r=t.size.width,s=-r/2,o=-i/2;return{frame:{x:s-n.left-e,y:o-n.top-e,w:r+n.width+e*2,h:i+n.height+e*2},text:{x:s,y:o,w:r,h:i}}}function kF(t,e){var n=e.chart.getDatasetMeta(e.datasetIndex).vScale;if(!n)return null;if(n.xCenter!==void 0&&n.yCenter!==void 0)return{x:n.xCenter,y:n.yCenter};var i=n.getBasePixel();return t.horizontal?{x:i,y:null}:{x:null,y:i}}function CF(t){return t instanceof ma?pc.arc:t instanceof ac?pc.point:t instanceof ga?pc.bar:pc.fallback}function TF(t,e,n,i,r,s){var o=Math.PI/2;if(s){var a=Math.min(s,r/2,i/2),l=e+a,u=n+a,c=e+i-a,d=n+r-a;t.moveTo(e,u),li.x+i.w+n*2||t.y>i.y+i.h+n*2)},intersects:function(t){var e=this._points(),n=t._points(),i=[mc(e[0],e[1]),mc(e[0],e[3])],r,s,o;for(this._rotation!==t._rotation&&i.push(mc(n[0],n[1]),mc(n[0],n[3])),r=0;r=0;--n)for(r=t[n].$layout,i=n-1;i>=0&&r._visible;--i)s=t[i].$layout,s._visible&&r._box.intersects(s._box)&&e(r,s);return t}function FF(t){var e,n,i,r,s,o,a;for(e=0,n=t.length;el.getProps([u],!0)[u]}),s=i.geometry(),o=bk(a,i.model(),s),r._box.update(o,s,i.rotation()));return RF(t,function(l,u){var c=l._hidable,d=u._hidable;c&&d||d?u._visible=!1:c&&(l._visible=!1)})}var xa={prepare:function(t){var e=[],n,i,r,s,o;for(n=0,r=t.length;n=0;--n)if(i=t[n].$layout,i&&i._visible&&i._box.contains(e))return t[n];return null},draw:function(t,e){var n,i,r,s,o,a;for(n=0,i=e.length;n{const l=()=>{s(window.innerWidth)};return window.addEventListener("resize",l),()=>{window.removeEventListener("resize",l)}},[]);const o={labels:t.slice(0,4).map(l=>l.year),datasets:[{label:A.oblroi_resultsTable_human_cost,data:t.slice(0,4).map(l=>l.serviceRepCost),backgroundColor:"#F0F3FC"},{label:A.oblroi_resultsTable_agentforce_investment,data:t.slice(0,4).map(l=>l.cost),backgroundColor:"#4864D2"},{label:A.oblroi_resultsTable_your_savings,data:t.slice(0,4).map(l=>l.savings),backgroundColor:"#C8D4F8"}]},a={indexAxis:"y",plugins:{title:{display:!1,text:"Stacked Bar Chart"},legend:{position:"bottom",labels:{color:"#000000",font:{size:12,family:"Salesforce Sans"}}},tooltip:{enabled:!1},datalabels:{display:!(r<768),color:"#3651C0",anchor:"middle",font:{weight:"bold",size:r<1024?10:16},align:"middle",formatter:(l,u)=>u.dataset.label===A.oblroi_resultsTable_your_savings&&l!==0?new Intl.NumberFormat(i,{style:"currency",currency:n,maximumFractionDigits:0}).format(l):null}},elements:{bar:{borderRadius:0,barPercentage:1}},responsive:!0,maintainAspectRatio:!1,scales:{x:{stacked:!0,grid:{display:!0,drawTicks:!0,color:"#fff",tickColor:"#D9D9D9"},title:{display:!0,text:A.oblroi_resultsTableAnnualCost,color:"#333",align:"start",padding:{top:10,bottom:10},font:{size:12,family:"Salesforce Sans"}},suggestedMax:0},y:{stacked:!0,grid:{display:!1}}}};return v.jsx(xF,{data:o,options:a,"aria-label":e})}var wk=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,Tt=t=>!t||typeof t!="object"||Object.keys(t).length===0,KF=(t,e)=>JSON.stringify(t)===JSON.stringify(e);function Sk(t,e){t.forEach(function(n){Array.isArray(n)?Sk(n,e):e.push(n)})}function Pk(t){let e=[];return Sk(t,e),e}var kk=(...t)=>Pk(t).filter(Boolean),Ck=(t,e)=>{let n={},i=Object.keys(t),r=Object.keys(e);for(let s of i)if(r.includes(s)){let o=t[s],a=e[s];typeof o=="object"&&typeof a=="object"?n[s]=Ck(o,a):Array.isArray(o)||Array.isArray(a)?n[s]=kk(a,o):n[s]=a+" "+o}else n[s]=t[s];for(let s of r)i.includes(s)||(n[s]=e[s]);return n},Tk=t=>!t||typeof t!="string"?t:t.replace(/\s+/g," ").trim();const jm="-",HF=t=>{const e=UF(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=t;return{getClassGroupId:o=>{const a=o.split(jm);return a[0]===""&&a.length!==1&&a.shift(),$k(a,e)||WF(o)},getConflictingClassGroupIds:(o,a)=>{const l=n[o]||[];return a&&i[o]?[...l,...i[o]]:l}}},$k=(t,e)=>{var o;if(t.length===0)return e.classGroupId;const n=t[0],i=e.nextPart.get(n),r=i?$k(t.slice(1),i):void 0;if(r)return r;if(e.validators.length===0)return;const s=t.join(jm);return(o=e.validators.find(({validator:a})=>a(s)))==null?void 0:o.classGroupId},Ek=/^\[(.+)\]$/,WF=t=>{if(Ek.test(t)){const e=Ek.exec(t)[1],n=e==null?void 0:e.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}},UF=t=>{const{theme:e,prefix:n}=t,i={nextPart:new Map,validators:[]};return GF(Object.entries(t.classGroups),n).forEach(([s,o])=>{Im(o,i,s,e)}),i},Im=(t,e,n,i)=>{t.forEach(r=>{if(typeof r=="string"){const s=r===""?e:Mk(e,r);s.classGroupId=n;return}if(typeof r=="function"){if(YF(r)){Im(r(i),e,n,i);return}e.validators.push({validator:r,classGroupId:n});return}Object.entries(r).forEach(([s,o])=>{Im(o,Mk(e,s),n,i)})})},Mk=(t,e)=>{let n=t;return e.split(jm).forEach(i=>{n.nextPart.has(i)||n.nextPart.set(i,{nextPart:new Map,validators:[]}),n=n.nextPart.get(i)}),n},YF=t=>t.isThemeGetter,GF=(t,e)=>e?t.map(([n,i])=>{const r=i.map(s=>typeof s=="string"?e+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([o,a])=>[e+o,a])):s);return[n,r]}):t,XF=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=new Map,i=new Map;const r=(s,o)=>{n.set(s,o),e++,e>t&&(e=0,i=n,n=new Map)};return{get(s){let o=n.get(s);if(o!==void 0)return o;if((o=i.get(s))!==void 0)return r(s,o),o},set(s,o){n.has(s)?n.set(s,o):r(s,o)}}},Dk="!",qF=t=>{const{separator:e,experimentalParseClassName:n}=t,i=e.length===1,r=e[0],s=e.length,o=a=>{const l=[];let u=0,c=0,d;for(let x=0;xc?d-c:void 0;return{modifiers:l,hasImportantModifier:h,baseClassName:m,maybePostfixModifierPosition:y}};return n?a=>n({className:a,parseClassName:o}):o},QF=t=>{if(t.length<=1)return t;const e=[];let n=[];return t.forEach(i=>{i[0]==="["?(e.push(...n.sort(),i),n=[]):n.push(i)}),e.push(...n.sort()),e},ZF=t=>k({cache:XF(t.cacheSize),parseClassName:qF(t)},HF(t)),JF=/\s+/,eN=(t,e)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:r}=e,s=[],o=t.trim().split(JF);let a="";for(let l=o.length-1;l>=0;l-=1){const u=o[l],{modifiers:c,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:h}=n(u);let m=!!h,y=i(m?f.substring(0,h):f);if(!y){if(!m){a=u+(a.length>0?" "+a:a);continue}if(y=i(f),!y){a=u+(a.length>0?" "+a:a);continue}m=!1}const x=QF(c).join(":"),p=d?x+Dk:x,g=p+y;if(s.includes(g))continue;s.push(g);const b=r(y,m);for(let S=0;S0?" "+a:a)}return a};function tN(){let t=0,e,n,i="";for(;t{if(typeof t=="string")return t;let e,n="";for(let i=0;id(c),t());return n=ZF(u),i=n.cache.get,r=n.cache.set,s=a,a(l)}function a(l){const u=i(l);if(u)return u;const c=eN(l,n);return r(l,c),c}return function(){return s(tN.apply(null,arguments))}}const Se=t=>{const e=n=>n[t]||[];return e.isThemeGetter=!0,e},Lk=/^\[(?:([a-z-]+):)?(.+)\]$/i,nN=/^\d+\/\d+$/,iN=new Set(["px","full","screen"]),rN=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,sN=/\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$/,oN=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,aN=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,lN=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Zn=t=>Es(t)||iN.has(t)||nN.test(t),Fi=t=>Ms(t,"length",gN),Es=t=>!!t&&!Number.isNaN(Number(t)),Vm=t=>Ms(t,"number",Es),_a=t=>!!t&&Number.isInteger(Number(t)),uN=t=>t.endsWith("%")&&Es(t.slice(0,-1)),te=t=>Lk.test(t),Ni=t=>rN.test(t),cN=new Set(["length","size","percentage"]),dN=t=>Ms(t,cN,Rk),fN=t=>Ms(t,"position",Rk),hN=new Set(["image","url"]),pN=t=>Ms(t,hN,vN),mN=t=>Ms(t,"",yN),wa=()=>!0,Ms=(t,e,n)=>{const i=Lk.exec(t);return i?i[1]?typeof e=="string"?i[1]===e:e.has(i[1]):n(i[2]):!1},gN=t=>sN.test(t)&&!oN.test(t),Rk=()=>!1,yN=t=>aN.test(t),vN=t=>lN.test(t),zm=()=>{const t=Se("colors"),e=Se("spacing"),n=Se("blur"),i=Se("brightness"),r=Se("borderColor"),s=Se("borderRadius"),o=Se("borderSpacing"),a=Se("borderWidth"),l=Se("contrast"),u=Se("grayscale"),c=Se("hueRotate"),d=Se("invert"),f=Se("gap"),h=Se("gradientColorStops"),m=Se("gradientColorStopPositions"),y=Se("inset"),x=Se("margin"),p=Se("opacity"),g=Se("padding"),b=Se("saturate"),S=Se("scale"),w=Se("sepia"),C=Se("skew"),L=Se("space"),T=Se("translate"),P=()=>["auto","contain","none"],M=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto",te,e],$=()=>[te,e],F=()=>["",Zn,Fi],D=()=>["auto",Es,te],R=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],N=()=>["solid","dashed","dotted","double","none"],B=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],E=()=>["start","end","center","between","around","evenly","stretch"],z=()=>["","0",te],H=()=>["auto","avoid","all","avoid-page","page","left","right","column"],I=()=>[Es,te];return{cacheSize:500,separator:":",theme:{colors:[wa],spacing:[Zn,Fi],blur:["none","",Ni,te],brightness:I(),borderColor:[t],borderRadius:["none","","full",Ni,te],borderSpacing:$(),borderWidth:F(),contrast:I(),grayscale:z(),hueRotate:I(),invert:z(),gap:$(),gradientColorStops:[t],gradientColorStopPositions:[uN,Fi],inset:j(),margin:j(),opacity:I(),padding:$(),saturate:I(),scale:I(),sepia:z(),skew:I(),space:$(),translate:$()},classGroups:{aspect:[{aspect:["auto","square","video",te]}],container:["container"],columns:[{columns:[Ni]}],"break-after":[{"break-after":H()}],"break-before":[{"break-before":H()}],"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:[...R(),te]}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",_a,te]}],basis:[{basis:j()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",te]}],grow:[{grow:z()}],shrink:[{shrink:z()}],order:[{order:["first","last","none",_a,te]}],"grid-cols":[{"grid-cols":[wa]}],"col-start-end":[{col:["auto",{span:["full",_a,te]},te]}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":[wa]}],"row-start-end":[{row:["auto",{span:[_a,te]},te]}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",te]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",te]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...E()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...E(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...E(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[L]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[L]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",te,e]}],"min-w":[{"min-w":[te,e,"min","max","fit"]}],"max-w":[{"max-w":[te,e,"none","full","min","max","fit","prose",{screen:[Ni]},Ni]}],h:[{h:[te,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[te,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[te,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[te,e,"auto","min","max","fit"]}],"font-size":[{text:["base",Ni,Fi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Vm]}],"font-family":[{font:[wa]}],"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",te]}],"line-clamp":[{"line-clamp":["none",Es,Vm]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Zn,te]}],"list-image":[{"list-image":["none",te]}],"list-style-type":[{list:["none","disc","decimal",te]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[p]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[p]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...N(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Zn,Fi]}],"underline-offset":[{"underline-offset":["auto",Zn,te]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:$()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",te]}],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",te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[p]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...R(),fN]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",dN]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},pN]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[p]}],"border-style":[{border:[...N(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[p]}],"divide-style":[{divide:N()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...N()]}],"outline-offset":[{"outline-offset":[Zn,te]}],"outline-w":[{outline:[Zn,Fi]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[p]}],"ring-offset-w":[{"ring-offset":[Zn,Fi]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",Ni,mN]}],"shadow-color":[{shadow:[wa]}],opacity:[{opacity:[p]}],"mix-blend":[{"mix-blend":[...B(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":B()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[i]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Ni,te]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[b]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[i]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[p]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",te]}],duration:[{duration:I()}],ease:[{ease:["linear","in","out","in-out",te]}],delay:[{delay:I()}],animate:[{animate:["none","spin","ping","pulse","bounce",te]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[_a,te]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",te]}],accent:[{accent:["auto",t]}],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",te]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":$()}],"scroll-mx":[{"scroll-mx":$()}],"scroll-my":[{"scroll-my":$()}],"scroll-ms":[{"scroll-ms":$()}],"scroll-me":[{"scroll-me":$()}],"scroll-mt":[{"scroll-mt":$()}],"scroll-mr":[{"scroll-mr":$()}],"scroll-mb":[{"scroll-mb":$()}],"scroll-ml":[{"scroll-ml":$()}],"scroll-p":[{"scroll-p":$()}],"scroll-px":[{"scroll-px":$()}],"scroll-py":[{"scroll-py":$()}],"scroll-ps":[{"scroll-ps":$()}],"scroll-pe":[{"scroll-pe":$()}],"scroll-pt":[{"scroll-pt":$()}],"scroll-pr":[{"scroll-pr":$()}],"scroll-pb":[{"scroll-pb":$()}],"scroll-pl":[{"scroll-pl":$()}],"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",te]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[Zn,Fi,Vm]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},bN=(t,{cacheSize:e,prefix:n,separator:i,experimentalParseClassName:r,extend:s={},override:o={}})=>{Sa(t,"cacheSize",e),Sa(t,"prefix",n),Sa(t,"separator",i),Sa(t,"experimentalParseClassName",r);for(const a in o)xN(t[a],o[a]);for(const a in s)_N(t[a],s[a]);return t},Sa=(t,e,n)=>{n!==void 0&&(t[e]=n)},xN=(t,e)=>{if(e)for(const n in e)Sa(t,n,e[n])},_N=(t,e)=>{if(e)for(const n in e){const i=e[n];i!==void 0&&(t[n]=(t[n]||[]).concat(i))}},wN=(t,...e)=>typeof t=="function"?Om(zm,t,...e):Om(()=>bN(zm(),t),...e),SN=Om(zm);var PN={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},Fk=t=>t||void 0,Pa=(...t)=>Fk(Pk(t).filter(Boolean).join(" ")),Bm=null,Jn={},Km=!1,ka=(...t)=>e=>e.twMerge?((!Bm||Km)&&(Km=!1,Bm=Tt(Jn)?SN:wN(V(k({},Jn),{extend:k({theme:Jn.theme,classGroups:Jn.classGroups,conflictingClassGroupModifiers:Jn.conflictingClassGroupModifiers,conflictingClassGroups:Jn.conflictingClassGroups},Jn.extend)}))),Fk(Bm(Pa(t)))):Pa(t),Nk=(t,e)=>{for(let n in e)t.hasOwnProperty(n)?t[n]=Pa(t[n],e[n]):t[n]=e[n];return t},kN=(t,e)=>{let{extend:n=null,slots:i={},variants:r={},compoundVariants:s=[],compoundSlots:o=[],defaultVariants:a={}}=t,l=k(k({},PN),e),u=n!=null&&n.base?Pa(n.base,t==null?void 0:t.base):t==null?void 0:t.base,c=n!=null&&n.variants&&!Tt(n.variants)?Ck(r,n.variants):r,d=n!=null&&n.defaultVariants&&!Tt(n.defaultVariants)?k(k({},n.defaultVariants),a):a;!Tt(l.twMergeConfig)&&!KF(l.twMergeConfig,Jn)&&(Km=!0,Jn=l.twMergeConfig);let f=Tt(n==null?void 0:n.slots),h=Tt(i)?{}:k({base:Pa(t==null?void 0:t.base,f&&(n==null?void 0:n.base))},i),m=f?h:Nk(k({},n==null?void 0:n.slots),Tt(h)?{base:t==null?void 0:t.base}:h),y=Tt(n==null?void 0:n.compoundVariants)?s:kk(n==null?void 0:n.compoundVariants,s),x=g=>{if(Tt(c)&&Tt(i)&&f)return ka(u,g==null?void 0:g.class,g==null?void 0:g.className)(l);if(y&&!Array.isArray(y))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof y}`);if(o&&!Array.isArray(o))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof o}`);let b=($,F,D=[],R)=>{let N=D;if(typeof F=="string")N=N.concat(Tk(F).split(" ").map(B=>`${$}:${B}`));else if(Array.isArray(F))N=N.concat(F.reduce((B,E)=>B.concat(`${$}:${E}`),[]));else if(typeof F=="object"&&typeof R=="string"){for(let B in F)if(F.hasOwnProperty(B)&&B===R){let E=F[B];if(E&&typeof E=="string"){let z=Tk(E);N[R]?N[R]=N[R].concat(z.split(" ").map(H=>`${$}:${H}`)):N[R]=z.split(" ").map(H=>`${$}:${H}`)}else Array.isArray(E)&&E.length>0&&(N[R]=E.reduce((z,H)=>z.concat(`${$}:${H}`),[]))}}return N},S=($,F=c,D=null,R=null)=>{var N;let B=F[$];if(!B||Tt(B))return null;let E=(N=R==null?void 0:R[$])!=null?N:g==null?void 0:g[$];if(E===null)return null;let z=wk(E),H=Array.isArray(l.responsiveVariants)&&l.responsiveVariants.length>0||l.responsiveVariants===!0,I=d==null?void 0:d[$],K=[];if(typeof z=="object"&&H)for(let[ne,fe]of Object.entries(z)){let Qe=B[fe];if(ne==="initial"){I=fe;continue}Array.isArray(l.responsiveVariants)&&!l.responsiveVariants.includes(ne)||(K=b(ne,Qe,K,D))}let Z=z!=null&&typeof z!="object"?z:wk(I),ee=B[Z||"false"];return typeof K=="object"&&typeof D=="string"&&K[D]?Nk(K,ee):K.length>0?(K.push(ee),K):ee},w=()=>c?Object.keys(c).map($=>S($,c)):null,C=($,F)=>{if(!c||typeof c!="object")return null;let D=new Array;for(let R in c){let N=S(R,c,$,F),B=$==="base"&&typeof N=="string"?N:N&&N[$];B&&(D[D.length]=B)}return D},L={};for(let $ in g)g[$]!==void 0&&(L[$]=g[$]);let T=($,F)=>{var D;let R=typeof(g==null?void 0:g[$])=="object"?{[$]:(D=g[$])==null?void 0:D.initial}:{};return k(k(k(k({},d),L),R),F)},P=($=[],F)=>{let D=[];for(let R of $){let N=R,{class:B,className:E}=N,z=se(N,["class","className"]);let H=!0;for(let[I,K]of Object.entries(z)){let Z=T(I,F);if(Array.isArray(K)){if(!K.includes(Z[I])){H=!1;break}}else if(Z[I]!==K){H=!1;break}}H&&(B&&D.push(B),E&&D.push(E))}return D},M=$=>{let F=P(y,$);if(!Array.isArray(F))return F;let D={};for(let R of F)if(typeof R=="string"&&(D.base=ka(D.base,R)(l)),typeof R=="object")for(let[N,B]of Object.entries(R))D[N]=ka(D[N],B)(l);return D},j=$=>{if(o.length<1)return null;let F={};for(let D of o){let R=D,{slots:N=[],class:B,className:E}=R,z=se(R,["slots","class","className"]);if(!Tt(z)){let H=!0;for(let I of Object.keys(z)){let K=T(I,$)[I];if(K===void 0||(Array.isArray(z[I])?!z[I].includes(K):z[I]!==K)){H=!1;break}}if(!H)continue}for(let H of N)F[H]=F[H]||[],F[H].push([B,E])}return F};if(!Tt(i)||!f){let $={};if(typeof m=="object"&&!Tt(m))for(let F of Object.keys(m))$[F]=D=>{var R,N;return ka(m[F],C(F,D),((R=M(D))!=null?R:[])[F],((N=j(D))!=null?N:[])[F],D==null?void 0:D.class,D==null?void 0:D.className)(l)};return $}return ka(u,w(),P(y),g==null?void 0:g.class,g==null?void 0:g.className)(l)},p=()=>{if(!(!c||typeof c!="object"))return Object.keys(c)};return x.variantKeys=p(),x.extend=n,x.base=u,x.slots=m,x.variants=c,x.defaultVariants=d,x.compoundSlots=o,x.compoundVariants=y,x};const CN=kN({base:"w-full px-8 py-3 min-h-[52px] rounded text-center font-sans font-bold tracking-tight flex items-center justify-center",variants:{color:{primary:"bg-sfprimary text-white hover:bg-sfnavy",secondary:"border-2 border-sfprimary bg-white text-sfprimary hover:bg-sfprimary hover:text-white"},size:{sm:"text-sm leading-none",md:"text-base leading-none",lg:"px-8 py-5 text-lg leading-none"}},compoundVariants:[{size:["sm","md"],class:""}]}),TN=(t,e)=>{const n=t.target;let i=0,r=n.previousElementSibling;for(;r;)i++,r=r.previousElementSibling;const s=qp(),o={event:"custEv_contentClick",blade:{id:s.id,name:"sf/marquee/agentforce",position:s.position,source:"www",variant:"marquee",state:"rendered",type:"blade",module:{id:s.id,name:n.innerText,type:"cta",position:i+1,link:{text:n.innerText,url:n.getAttribute("href"),type:`${e} cta`,internalDriver:""}}}};window.dataLayer&&window.dataLayer.push(k({},o))},ji=({children:t,url:e,target:n,variant:i="primary",size:r="md"})=>v.jsx(v.Fragment,{children:v.jsx(mA,{onPress:s=>{TN(s,i)},href:e,target:n,className:CN({size:r,color:i==="text"?"secondary":i}),children:t})});function $N({currentRegion:t,locale:e,currentCurrency:n,agentforcePrice:i,copySource:r,totalSavings:s,validRegionPaths:o,onRegionChange:a,grandTotal:l}){return v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"bg-purple-900 py-2 text-sm font-semibold text-white",children:v.jsxs("div",{className:"mx-auto flex max-w-3xl items-center justify-between gap-2",children:[v.jsxs("span",{children:["Region: ",v.jsx("span",{className:"text-gray-300",children:t})]}),v.jsxs("span",{children:["Locale: ",v.jsx("span",{className:"text-gray-300",children:e})]}),v.jsxs("span",{children:["Currency: ",v.jsx("span",{className:"text-gray-300",children:n})]}),v.jsxs("span",{children:["Agentforce cost: ",v.jsx("span",{className:"text-gray-300",children:i})]}),v.jsxs("span",{children:["Copy source: ",v.jsx("span",{className:"text-gray-300",children:r})]}),v.jsxs("span",{children:["grandTotal ",v.jsx("span",{className:"text-gray-300",children:l})]})]})}),v.jsx("div",{className:"bg-purple-800 py-2 text-sm font-semibold text-white",children:v.jsxs("div",{className:"mx-auto flex max-w-3xl items-center justify-between",children:[v.jsx("span",{children:"region switcher:"}),o.map(u=>v.jsx("button",{onClick:()=>a(u),className:"underline",children:u},u))]})})]})}const EN=Y.createContext(void 0),Ot=({children:t})=>{const[e]=_.useState(new Map),n=Y.useRef(1),i=_.useCallback(r=>(e.has(r)||(e.set(r,n.current),n.current+=1),e.get(r)),[e]);return v.jsx(EN.Provider,{value:{registerItem:i},children:v.jsx("div",{children:t})})},MN=({defaultOpen:t=!1,children:e,onToggle:n})=>{const[i,r]=_.useState(t),s=_.useRef(null),o=()=>{var c;r(d=>{const f=!d;return n&&n(f),f});const a=s.current?Array.from(((c=s.current.parentElement)==null?void 0:c.children)||[]).filter(d=>d.classList.contains("accordion-item")).indexOf(s.current)+1:1,l=qp(),u={event:"custEv_contentClick",blade:{id:l.id,name:"sf/marquee/agentforce-selector",position:l.position,source:"www",variant:"marquee",state:"rendered",type:"blade",module:{id:`accordion-item-${a}`,name:`roi-${a===1?"service":a===2?"coach":"sdr"}-toggle`,type:"toggle",position:a,link:{text:"",url:"",type:"",internalDriver:""}}}};window.dataLayer&&window.dataLayer.push(k({},u))};return v.jsx("div",{ref:s,className:"accordion-item",children:Y.Children.map(e,a=>{if(Y.isValidElement(a)){if(a.type===jk)return Y.cloneElement(a,{isOpen:i,onClick:o});if(a.type===Ik)return Y.cloneElement(a,{isOpen:i})}return a})})},jk=({children:t,onClick:e,isOpen:n})=>v.jsx("button",{onClick:e,className:`flex w-full flex-col py-6 ${n?"rounded-t-2xl":"mb-8 rounded-2xl"} border border-neutral-200 bg-white px-8 hover:bg-neutral-50`,children:v.jsxs("div",{className:"flex items-center gap-8",children:[v.jsxs("div",{className:"relative h-6 w-10",children:[v.jsx("div",{className:`absolute left-0 top-0 h-6 w-10 rounded-full ${n?"bg-sky-600":"bg-neutral-400"}`}),v.jsx("div",{className:`absolute top-[2px] h-5 w-5 rounded-full bg-white ${n?"left-[18px]":"left-[2px]"}`})]}),v.jsx("div",{className:"w-full",children:t})]})}),Ik=({children:t,isOpen:e})=>v.jsx(g$,{children:e?v.jsx(cr.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1,transition:{duration:.3}},exit:{height:0,opacity:0},className:"mb-8 flex w-full flex-col items-start justify-start gap-4 rounded-b-2xl border border-t-0 border-neutral-200 bg-neutral-200/25 p-2 shadow lg:flex-row md:gap-8 md:p-8",children:t}):null});Ot.Item=MN,Ot.Header=jk,Ot.Panel=Ik;const Ok={1:"1-service",2:"2-sales",3:"3-sdr"},DN=({setCurrentStep:t,setEnabledWizard:e,currentStep:n,nextCopy:i,backCopy:r,resultsCopy:s,skipCopy:o})=>{const a=Ok[n],l=(u,c)=>{const d={event:"custEv_contentClick",blade:{name:"sf/marquee/agentforce-roi-wizard",position:"",module:{name:a,link:{url:"",text:c,elementType:"text"}}}};console.log("eventDetails",d),window.dataLayer&&window.dataLayer.push(k({},d))};return v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"mt-8",children:n<3?v.jsx("button",{onClick:()=>t(u=>u+1),className:"flex min-h-[52px] w-full items-center justify-center rounded bg-sfprimary px-8 py-3 text-center font-sans font-bold tracking-tight text-white hover:bg-sfnavy",children:i}):v.jsx("button",{onClick:()=>e(!1),className:"flex min-h-[52px] w-full items-center justify-center rounded bg-sfprimary px-8 py-3 text-center font-sans font-bold tracking-tight text-white hover:bg-sfnavy",children:s})}),v.jsxs("div",{className:"mt-4 flex items-center justify-between",children:[n>1?v.jsx("button",{onClick:()=>{t(u=>u-1),l("back","Back")},className:"font-bold text-sfprimary underline hover:text-sfnavy hover:no-underline",children:r}):null,v.jsx("button",{onClick:()=>{e(!1),l("skip","Skip Survey")},className:"ml-auto font-bold text-sfprimary underline hover:text-sfnavy hover:no-underline",children:o})]})]})},Hm=({enabledCalc:t,calcName:e,handleAnswer:n,currentStep:i,stepCopy:r,selectAgentsCopy:s,completeSurveyCopy:o,agentTypeCoach:a,questionCopy:l,questionYesCopy:u,questionYesDetailCopy:c,questionNoCopy:d,questionNoDetailCopy:f})=>{const h=Ok[i],m=y=>{const x={event:"custEv_contentClick",blade:{name:"sf/marquee/agentforce-initial-questions",position:"",module:{name:y,link:{url:"",text:y,elementType:"button"}}}};console.log("eventDetails",x),window.dataLayer&&window.dataLayer.push(k({},x))};return v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"text-center text-sm",children:[r," ",i," of 3"]}),v.jsx("h2",{className:"mb-0 text-center text-xl text-sky-950",children:s}),i===1?v.jsx("p",{className:"text-center",children:o}):null,v.jsx("div",{className:"flex justify-center",children:v.jsx(cr.span,{initial:{scale:.8,opacity:0},animate:{scale:1,opacity:1},className:"inline-flex items-center rounded-full bg-[#F0F3FC] px-3 py-1 text-sm text-sky-950",children:v.jsx("strong",{children:a})})}),v.jsx(cr.p,{initial:{y:20,opacity:0},animate:{y:0,opacity:1},className:"mx-auto mb-8 w-full text-center text-xl sm:w-8/12",children:l}),v.jsxs("button",{onClick:()=>{n(e,!0),m(`${h}-yes`)},className:`flex items-center justify-between gap-4 rounded-lg px-6 py-5 shadow-md transition-all ${t?"ring-2 ring-[#0176D3] hover:ring-2 hover:ring-sky-950":"ring-1 ring-[#e6e6e6] hover:bg-[#EAF5FE] hover:ring-1 hover:ring-[#0176D3] focus:bg-[#EAF5FE] focus:ring-[#0176D3] focus:ring-offset-4"}`,"aria-description":u+" - "+c,children:[v.jsx("div",{className:"flex flex-col",children:v.jsx("p",{className:"text-left text-lg",children:v.jsx("strong",{children:u})})}),v.jsx("div",{children:t?v.jsx("div",{className:"h-3 w-3 rounded-full bg-[#0176D3] ring-1 ring-[#0176D3] ring-offset-4"}):v.jsx("div",{className:"h-3 w-3 rounded-full bg-white ring-1 ring-[#747474] ring-offset-4"})})]}),v.jsxs("button",{onClick:()=>{n(e,!1),m(`${h}-no`)},className:`flex items-center justify-between gap-4 rounded-lg px-6 py-5 shadow-md transition-all ${t?"ring-1 ring-[#e6e6e6] hover:bg-[#EAF5FE] hover:ring-1 hover:ring-[#0176D3] focus:bg-[#EAF5FE] focus:ring-[#0176D3] focus:ring-offset-4":"ring-2 ring-[#0176D3] hover:ring-2 hover:ring-sky-950"}`,"aria-description":d+" - "+f,children:[v.jsx("div",{className:"flex flex-col",children:v.jsx("p",{className:"text-left text-lg",children:v.jsx("strong",{children:d})})}),v.jsx("div",{children:t?v.jsx("div",{className:"h-3 w-3 rounded-full bg-white ring-1 ring-[#747474] ring-offset-4"}):v.jsx("div",{className:"h-3 w-3 rounded-full bg-[#0176D3] ring-1 ring-[#0176D3] ring-offset-4"})})]})]})},de=({value:t,locale:e="en-US",currency:n="USD"})=>{var a;const i=new Intl.NumberFormat(e,{style:"decimal",maximumFractionDigits:0}).format(t<0?0:t),o=((a=new Intl.NumberFormat(e,{style:"currency",currency:n,currencyDisplay:"narrowSymbol"}).formatToParts(t).find(l=>l.type==="currency"))==null?void 0:a.value)||"";return`${n==="AUD"?"AU$":o}${i}`},Vk=({value:t,locale:e="en-US",currency:n="USD"})=>{var a;const i=new Intl.NumberFormat(e,{currency:n,maximumFractionDigits:0,minimumFractionDigits:0}).format(t<0?0:t),o=((a=new Intl.NumberFormat(e,{style:"currency",currency:n,currencyDisplay:"narrowSymbol"}).formatToParts(t).find(l=>l.type==="currency"))==null?void 0:a.value)||"";return v.jsxs("span",{className:"flex items-start justify-center text-center",children:[v.jsx("span",{className:"flex-start items-start text-display-5 sm:text-display-3 mr-2",children:n==="AUD"?"AU$":o}),v.jsx("span",{children:i})]})},AN=({value:t,currency:e,locale:n,totalCopy:i,withAgentforceCopy:r,inactiveCopy:s,salesCoachCopy:o,sdrCopy:a,serviceCopy:l,salesCoachResults:u,sdrResults:c,serviceResults:d,enabledCalcs:f})=>{const[h,m]=_.useState(!0),[y,x]=_.useState(window.innerWidth),[p,g]=_.useState(0),[b,S]=_.useState(73),[w,C]=_.useState(56),{scrollY:L}=b_();u_(L,"change",M=>{const j=L.getPrevious(),$=L.getVelocity(),F=230;j!==void 0&&jM&&p850&&p850?m(!1):m(!0)});const T=()=>{x(window.innerWidth)};_.useEffect(()=>{typeof window!="undefined"&&window.addEventListener("resize",T,!1)},[]);const P={background:"linear-gradient(90deg, #0529C1 0%, #B302FC 100%)",backgroundImage:` url('https://wp.sfdcdigital.com/en-us/wp-content/uploads/sites/4/2024/12/bg-mointain-sticky-left_9e6e57.png'), url('https://wp.sfdcdigital.com/en-us/wp-content/uploads/sites/4/2024/12/bg-mointain-sticky-right_82471e.png'), linear-gradient(90deg, #0529C1 0%, #B302FC 100%) `,backgroundPosition:"left -15px top, right top 15px, 0 0",backgroundSize:"250px auto, 320px auto, cover",backgroundRepeat:"no-repeat, no-repeat, no-repeat",zIndex:999};return v.jsxs(cr.div,{variants:{visible:{y:y>1280?b:w},hidden:{y:"-100%"}},initial:"hidden",animate:h?"hidden":"visible",style:P,transition:{duration:.3,ease:[.45,.14,.1,.97]},className:"fixed top-0 flex max-h-[92px] min-h-[60px] w-full items-stretch justify-center gap-2 p-2 text-white shadow-2xl sm:min-h-[92px]",children:[v.jsxs("div",{className:"flex flex-col gap-0 sm:flex-row sm:gap-2",children:[v.jsx("div",{className:"text-md inline-flex items-center justify-center font-display",children:i}),v.jsx("div",{className:"inline-flex min-w-[150px] items-center justify-center font-display text-3xl",children:v.jsx(de,{value:t,currency:e,locale:n})})]}),v.jsx("div",{className:"visible inline-flex items-center justify-center pl-2 text-sm max-sm:hidden",children:r}),v.jsxs("div",{className:"flew-row flex gap-3",children:[v.jsx("div",{className:"visible inline-flex items-center justify-center gap-2 rounded-lg ring-inset max-sm:hidden",children:v.jsxs("div",{className:"flex flex-col items-center justify-start gap-1",children:[v.jsx("h6",{className:`rounded-full px-3 py-1 text-center font-sans text-sm font-bold leading-tight ${f.serviceAgent?"bg-white text-[#753ADE]":"bg-white/10"}`,children:l}),v.jsx("p",{className:"font-sans text-base leading-normal tracking-tight",children:f.serviceAgent?v.jsx(de,{value:d,currency:e,locale:n}):s})]})}),v.jsx("div",{className:"text-md visible inline-flex items-center justify-center font-display max-sm:hidden",children:"+"}),v.jsx("div",{className:"visible inline-flex items-center justify-center gap-2 rounded-lg max-sm:hidden md:min-h-16",children:v.jsxs("div",{className:"flex flex-col items-center justify-start gap-1",children:[v.jsx("h6",{className:`rounded-full px-3 py-1 text-center font-sans text-sm font-bold leading-tight ${f.salesCoach?"bg-white text-[#753ADE]":"bg-white/10"}`,children:o}),v.jsx("p",{className:"font-sans text-base leading-normal tracking-tight",children:f.salesCoach?v.jsx(de,{value:u,currency:e,locale:n}):s})]})}),v.jsx("div",{className:"text-md visible inline-flex items-center justify-center font-display max-sm:hidden",children:"+"}),v.jsx("div",{className:"visible inline-flex items-center justify-center gap-2 max-sm:hidden",children:v.jsxs("div",{className:"flex flex-col items-center justify-start gap-1",children:[v.jsx("h6",{className:`rounded-full px-3 py-1 text-center font-sans text-sm font-bold leading-tight ${f.sdrAgent?"bg-white text-[#753ADE]":"bg-white/10"}`,children:a}),v.jsx("p",{className:"font-sans text-base leading-normal tracking-tight",children:f.sdrAgent?v.jsx(de,{value:c,currency:e,locale:n}):s})]})})]})]})},Ca=({text1:t,text2:e,text3:n})=>v.jsxs("p",{className:"my-8 font-sans text-xs font-normal leading-[18px] tracking-tight text-black",children:[t,e&&v.jsxs(v.Fragment,{children:[v.jsx("br",{}),v.jsx("br",{}),e]}),n&&v.jsxs(v.Fragment,{children:[v.jsx("br",{}),v.jsx("br",{}),n]})]}),Wm=({headline:t,item1:e,item2:n,item3:i})=>v.jsxs("div",{className:"flex w-full flex-col gap-6 pl-4",children:[v.jsx("h3",{className:"font-display text-xl font-semibold leading-7 text-sky-950",children:t}),v.jsxs("ul",{className:"ml-8 list-disc font-sans text-lg font-normal leading-7 tracking-tight text-neutral-900",children:[v.jsx("li",{children:e}),n&&v.jsx("li",{children:n}),i&&v.jsx("li",{children:i})]})]}),LN=({salesCoachResults:t,sdrResults:e,serviceResults:n,enabledCalculators:i,grandTotal:r,currency:s,locale:o})=>v.jsxs("div",{className:"bg-white h-[100vh] w-[100vw]",children:[v.jsx("h1",{children:"PDF Report"}),i.serviceAgent&&v.jsxs("div",{children:[v.jsx("h2",{children:"Service Agent Results"}),v.jsxs("p",{children:["Total Savings:"," ",v.jsx(de,{value:n.totalSavings,currency:s,locale:o})]})]}),i.salesCoach&&v.jsxs("div",{children:[v.jsx("h2",{children:"Sales Coach Results"}),v.jsxs("p",{children:["Three Year Net Benefit:"," ",v.jsx(de,{value:t.threeYearNetBenefit,currency:s,locale:o})]})]}),i.sdrAgent&&v.jsxs("div",{children:[v.jsx("h2",{children:"SDR Results"}),v.jsxs("p",{children:["Three Year Net Benefit:"," ",v.jsx(de,{value:e.threeYearNetBenefit,currency:s,locale:o})]})]}),v.jsxs("h2",{children:["Grand Total:"," ",v.jsx(de,{value:r,currency:s,locale:o})]}),v.jsxs("h2",{children:["Currency: ",s]}),v.jsxs("h2",{children:["Locale: ",o]})]}),RN=({eyebrow:t,header:e,headerBottom:n})=>v.jsxs("section",{className:"max-w-[1280px] text-center md:max-w-[540px] lg:max-w-[768px]",children:[v.jsxs("h1",{className:"text-4xl text-sky-950 lg:text-5xl",children:[v.jsx("span",{className:"text-indigo-700",children:t}),v.jsx("br",{}),e]}),v.jsx("h2",{className:"mb-10 text-xl text-sky-950 md:mb-16 lg:text-2xl",children:n})]}),FN=()=>v.jsxs("div",{className:"relative mx-auto h-[200px] w-full sm:h-[300px]",style:{backgroundImage:` url('https://wp.sfdcdigital.com/en-us/wp-content/uploads/sites/4/2024/12/bg-mointain-sticky-left_9e6e57.png'), url('https://wp.sfdcdigital.com/en-us/wp-content/uploads/sites/4/2024/12/bg-mointain-sticky-right_82471e.png') `,backgroundPosition:"left -45px top, right top 45px, 0 0",backgroundRepeat:"no-repeat, no-repeat, no-repeat"},children:[v.jsx("div",{className:"masked-contour absolute inset-x-0 bottom-0 z-0 mx-auto -mb-[2px] w-full",children:v.jsx("img",{src:"https://wp.sfdcdigital.com/en-us/wp-content/uploads/sites/4/2024/10/contour.svg",alt:"",className:"w-full"})}),v.jsx("div",{className:"data-dust-left absolute left-0 top-[-50px] z-10 sm:top-[-450px]",children:v.jsx("img",{src:"https://wp.sfdcdigital.com/en-us/wp-content/uploads/sites/4/2024/10/DataDust.svg",alt:"",className:"w-auto max-sm:w-[250px]"})}),v.jsx("div",{className:"data-dust-right visible absolute right-0 top-[-80px] z-10 max-lg:hidden",children:v.jsx("img",{src:"https://wp.sfdcdigital.com/en-us/wp-content/uploads/sites/4/2024/10/DataDust-2.svg",alt:""})}),v.jsx("div",{className:"astro-agentforce absolute bottom-[-20px] right-0 z-20 sm:right-[10%]",children:v.jsx("img",{src:"https://wp.sfdcdigital.com/en-us/wp-content/uploads/sites/4/2024/10/astro-bot.png",alt:"",className:"w-[200px] sm:w-[260px]"})}),v.jsx("div",{className:"einstein-agentforce absolute bottom-[-40px] left-[13%] z-20",children:v.jsx("img",{src:"https://wp.sfdcdigital.com/en-us/wp-content/uploads/sites/4/2024/10/einstein-bot.png",alt:"",className:"w-[200px] sm:w-[260px]"})}),v.jsx("div",{className:"appy-agentforce absolute bottom-[-20px] left-[3%] z-20",children:v.jsx("img",{src:"https://wp.sfdcdigital.com/en-us/wp-content/uploads/sites/4/2024/10/appy-bot.png",alt:"",className:"w-[80px] sm:w-[180px]"})})]}),NN=({children:t})=>v.jsxs("div",{className:"bg-agentforce-light",children:[v.jsx("div",{className:"flex min-h-screen flex-col items-center justify-center px-4 pb-10 pt-10 md:pt-16",children:t}),v.jsx(FN,{})]}),jN=({children:t})=>v.jsx("section",{className:"container z-20 mx-auto mb-8 flex flex-col gap-8 p-0 md:max-w-[540px] md:flex-col lg:max-w-[768px] xl:max-w-[1280px] xl:flex-row 2xl:max-w-[1440px]",children:v.jsxs("div",{className:"relative flex w-full flex-col self-start overflow-hidden rounded-2xl bg-white p-6 pt-8 shadow-lg md:p-8 xl:flex-1 ",children:[v.jsx("div",{className:"absolute inset-0 top-0 h-2 w-full",style:{background:"linear-gradient(90deg, #02BEC7 -12.85%, #1E1D80 26.7%, #7B00E1 95.81%, #DC32EC 129.59%)"}}),t]})}),IN=(t,e)=>{var i,r;const n=document.querySelector('[data-component="table"]');n&&(n.querySelectorAll("tbody tr").forEach(o=>{var l,u;const a=o.querySelectorAll("td");if(a.length===2){const c=(l=a[0].textContent)==null?void 0:l.trim(),d=(u=a[1].textContent)==null?void 0:u.trim();c&&d&&t.hasOwnProperty(c)&&(t[c]=d)}}),e("Table")),n&&new URLSearchParams(window.location.search).get("showTable")!=="true"&&((i=document.querySelector('[data-blade-name="sf/simpletable"]'))==null||i.remove(),(r=document.querySelector('[data-blade-name="sf/simpletable"]'))==null||r.remove())},gc={ap:"USD",au:"AUD",in:"USD",ca:"USD",eu:"EUR",uk:"GBP",de:"EUR",fr:"EUR",jp:"JPY",br:"USD",es:"EUR",it:"EUR",nl:"EUR",mx:"USD",kr:"USD",se:"SEK",th:"USD",tw:"USD","fr-ca":"USD",us:"USD"},ei={USD:2,AUD:2.8,EUR:2,GBP:1.6,JPY:240,SEK:20},Ta={in:"en-IN",au:"en-AU",ca:"en-CA",uk:"en-GB",se:"sv-SE",th:"th-TH",kr:"ko-KR",tw:"zh-TW",de:"de-DE",fr:"fr-FR",jp:"ja-JP",it:"it-IT",es:"es-ES",nl:"nl-NL",mx:"es-MX","fr-ca":"fr-CA"},zk=Object.keys(Ta);function Um(t){const e=gc[t],n=ei[e],i=Ta[t];return{currentCurrency:e,agentforcePrice:n,locale:i}}function ON(t){const{serviceEmployees:e,costPerEmployee:n,conversationsPerDay:i,serviceAgentCases:r,currentRegion:s}=t,o=Um(s),a=e*n,l=i*e*260,c=75*e*12,d=r,f=r-r*.3,h=f-f*.3,m=l*o.agentforcePrice*(h/100),y=l*o.agentforcePrice*(f/100),x=l*o.agentforcePrice*(d/100),p=m+y+x,g=a*3,b=a*(1-h/100),S=a*(1-f/100),w=a*(1-d/100),C=b+S+w,L=(a+c)*(1-h/100),T=(a+c)*(1-f/100),P=(a+c)*(1-d/100),M=L+T+P,j=Math.max(a+c-L-m,0),$=Math.max(a+c-T-y,0),F=Math.max(a+c-P-x,0),D=j+$+F,R=D/g*100;return{totalHumanCost:a,totalAnnualConversations:l,totalLicenseCost:c,costYear1:m,costYear2:y,costYear3:x,costTotal:p,costTotalAsIs:g,humanCostSavingsTotal:C,serviceRepCostTotal:M,totalSavings:D,totalSavingsPercentage:R,yearOne:h,yearTwo:f,yearThree:d,conversationsYear1:l*(h/100),conversationsYear2:l*(f/100),conversationsYear3:l*(d/100),humanCostSavingsYear1:b,humanCostSavingsYear2:S,humanCostSavingsYear3:w,serviceRepCostYear1:L,serviceRepCostYear2:T,serviceRepCostYear3:P,netSavingsYear1:j,netSavingsYear2:$,netSavingsYear3:F,currentCurrency:o.currentCurrency,locale:o.locale}}const VN=40,zN=50,BN=.25;function KN(t){const e=VN,n=zN,i=BN,r=Um(t.currentRegion),s={yearThree:t.yearThreeTargetPercentage,yearTwo:t.yearThreeTargetPercentage*.7,yearOne:t.yearThreeTargetPercentage*.3};function o(x){const p=e*t.timeSpentOnLeadProspecting*i,g=t.numberOfSalesReps*n*p,b=g/(e*n),S=b*t.averageSalesRepSalary,w=t.numberOfSalesReps*n*t.leadsPerRepPerWeek,C=t.unengagedLeadsPerYear*x,L=C*t.leadConversionRate*t.averageDealSize*t.opportunityCloseRate*t.grossMargin,T=w+C,P=T*r.agentforcePrice,M=S+L,j=M-P;return{productivityImprovement:i,hoursSavedPerRepWeek:p,totalHoursSavedAnnually:g,fullTimeEquivalentSavings:b,productivityBenefits:S,totalLeadsTouchedByDigitalSdr:w,percentLeadsProspected:x,increasedLeadsFromProspecting:C,benefitsFromQualifiedLeads:L,totalLeadsProcessed:T,totalAgentforceCosts:P,totalAgentforceBenefits:M,netBenefit:j}}const a=o(s.yearTwo*.4),l=o(s.yearTwo),u=o(s.yearThree),c=Math.max(a.productivityBenefits+a.benefitsFromQualifiedLeads+l.productivityBenefits+l.benefitsFromQualifiedLeads+u.productivityBenefits+u.benefitsFromQualifiedLeads,0);console.log(c),console.log("threeYearNetBenefit",c);const d=a.totalAgentforceCosts+l.totalAgentforceCosts+u.totalAgentforceCosts,f=Math.max((c-d)/d,0),h=Math.max(c-d,0),m=[{year:"Year 1",netBenefit:Math.max(a.netBenefit,0),productivityBenefits:a.productivityBenefits,benefitsFromQualifiedLeads:a.benefitsFromQualifiedLeads,totalAgentforceCosts:a.totalAgentforceCosts,totalAgentforceBenefits:a.totalAgentforceBenefits},{year:"Year 2",netBenefit:Math.max(l.netBenefit,0),productivityBenefits:l.productivityBenefits,benefitsFromQualifiedLeads:l.benefitsFromQualifiedLeads,totalAgentforceCosts:l.totalAgentforceCosts,totalAgentforceBenefits:l.totalAgentforceBenefits},{year:"Year 3",netBenefit:Math.max(u.netBenefit,0),productivityBenefits:u.productivityBenefits,benefitsFromQualifiedLeads:u.benefitsFromQualifiedLeads,totalAgentforceCosts:u.totalAgentforceCosts,totalAgentforceBenefits:u.totalAgentforceBenefits}],y=`[[${m[0].year},${m[0].productivityBenefits},${m[0].totalAgentforceCosts},${m[0].netBenefit}], [${m[1].year},${m[1].productivityBenefits},${m[1].totalAgentforceCosts},${m[1].netBenefit}], [${m[2].year},${m[2].productivityBenefits},${m[2].totalAgentforceCosts},${m[2].netBenefit}], ["Total",${c},${d},${h}]]`;return{threeYearTotalBenefits:c,threeYearTotalCosts:d,threeYearROI:f,threeYearNetBenefit:h,tableData:m,yearOne:a,yearTwo:l,yearThree:u,locale:r.locale,currentCurrency:r.currentCurrency,threeYearProductivityBenefits:a.productivityBenefits+l.productivityBenefits+u.productivityBenefits,threeYearBenefitsFromQualifiedLeads:a.benefitsFromQualifiedLeads+l.benefitsFromQualifiedLeads+u.benefitsFromQualifiedLeads,tableDataString:y}}const Bk="agentforce_roi_state";function HN(t){try{localStorage.setItem(Bk,JSON.stringify(t))}catch(e){console.error("Error saving state to localStorage:",e)}}function WN(){try{const t=localStorage.getItem(Bk);return t?JSON.parse(t):null}catch(t){return console.error("Error loading state from localStorage:",t),null}}function UN(t){const i=Um(t.currentRegion),r=t.yearThreeProductivityTarget/100,s={yearOne:r*.5,yearTwo:r*.7,yearThree:r};function o(x){const p=40*t.timeSpentOnCoaching*x,g=t.numberOfSalesManagers*50*p,b=Math.ceil(g/(40*50)),S=b*t.averageSalesManagerSalary,w=t.numberOfSalesManagers*t.coachingConversationsPerWeek*50,C=w*i.agentforcePrice;return{productivityImprovement:x,hoursSavedPerManagerWeek:p,totalHoursSavedAnnually:g,fullTimeEquivalentSavings:b,productivityBenefits:S,totalAgentforceConversations:w,totalAgentforceInvestment:C}}const a=o(s.yearOne),l=o(s.yearTwo),u=o(s.yearThree),c=Math.max(0,a.productivityBenefits+l.productivityBenefits+u.productivityBenefits),d=Math.max(0,a.totalAgentforceInvestment+l.totalAgentforceInvestment+u.totalAgentforceInvestment),f=Math.max(0,(c-d)/d),h=Math.max(0,c-d),m=[{year:"Year 1",productivityBenefits:a.productivityBenefits,totalAgentforceInvestment:a.totalAgentforceInvestment,netBenefit:Math.max(0,a.productivityBenefits-a.totalAgentforceInvestment)},{year:"Year 2",productivityBenefits:l.productivityBenefits,totalAgentforceInvestment:l.totalAgentforceInvestment,netBenefit:Math.max(0,l.productivityBenefits-l.totalAgentforceInvestment)},{year:"Year 3",productivityBenefits:u.productivityBenefits,totalAgentforceInvestment:u.totalAgentforceInvestment,netBenefit:Math.max(0,u.productivityBenefits-u.totalAgentforceInvestment)}],y=`[[${m[0].year},${m[0].productivityBenefits},${m[0].totalAgentforceInvestment},${m[0].netBenefit}], [${m[1].year},${m[1].productivityBenefits},${m[1].totalAgentforceInvestment},${m[1].netBenefit}], [${m[2].year},${m[2].productivityBenefits},${m[2].totalAgentforceInvestment},${m[2].netBenefit}], ["Total",${c},${d},${h}]]`;return{tableData:m,threeYearTotalBenefits:c,threeYearTotalInvestment:d,threeYearNetBenefit:h,threeYearROI:f,yearOne:a,yearTwo:l,yearThree:u,locale:i.locale,currentCurrency:i.currentCurrency,tableDataString:y}}function YN({appDebug:t,appPdf:e,appPhaseTwo:n,appReport:i}){const[r,s]=_.useState("us"),[o,a]=_.useState("USD"),[l,u]=_.useState(2),[c,d]=_.useState("JSON"),[f,h]=_.useState(""),[m,y]=_.useState("en-US"),[x,p]=_.useState(()=>new URLSearchParams(window.location.search)),[g,b]=_.useState(()=>Number(x.get("serviceEmployees"))||20),[S,w]=_.useState(()=>Number(x.get("costPerEmployee"))||5e4),[C,L]=_.useState(()=>Number(x.get("conversationsPerDay"))||20),[T,P]=_.useState(()=>Number(x.get("serviceAgentCases"))||50),[M,j]=_.useState(()=>Number(x.get("numberOfSalesManagers"))||40),[$,F]=_.useState(()=>Number(x.get("timeSpentOnCoaching"))||.4),[D,R]=_.useState(()=>Number(x.get("averageSalesManagerSalary"))||1e5),[N,B]=_.useState(()=>Number(x.get("coachingConversationsPerWeek"))||40),[E,z]=_.useState(()=>Number(x.get("yearThreeProductivityTarget"))||30),[H,I]=_.useState(()=>Number(x.get("numberOfSalesReps"))||200),[K,Z]=_.useState(()=>Number(x.get("timeSpentOnLeadProspecting"))||.3),[ee,ne]=_.useState(()=>Number(x.get("averageSalesRepSalary"))||5e4),[fe,Qe]=_.useState(()=>Number(x.get("leadsPerRepPerWeek"))||20),[X,ht]=_.useState(()=>Number(x.get("unengagedLeadsPerYear"))||2e5),[Ze,Oi]=_.useState(()=>Number(x.get("leadConversionRate"))||.2),[$n,Vi]=_.useState(()=>Number(x.get("averageDealSize"))||1e3),[Ds,vc]=_.useState(()=>Number(x.get("opportunityCloseRate"))||.1),[Cr,$a]=_.useState(()=>Number(x.get("grossMargin"))||.2),[As,bc]=_.useState(()=>Number(x.get("yearThreeTargetPercentage"))||.8),[ye,xc]=_.useState({serviceAgent:!0,salesCoach:!0,sdrAgent:!0}),[zi,_c]=_.useState(0),[Tr,Ea]=_.useState(!0),[Vt,En]=_.useState(1);_.useEffect(()=>{const O=WN();O&&(b(O.serviceAgent.serviceEmployees),w(O.serviceAgent.costPerEmployee),L(O.serviceAgent.conversationsPerDay),P(O.serviceAgent.serviceAgentCases),j(O.salesCoach.numberOfSalesManagers),F(O.salesCoach.timeSpentOnCoaching),R(O.salesCoach.averageSalesManagerSalary),B(O.salesCoach.coachingConversationsPerWeek),z(O.salesCoach.yearThreeProductivityTarget),I(O.sdr.numberOfSalesReps),Z(O.sdr.timeSpentOnLeadProspecting),ne(O.sdr.averageSalesRepSalary),Qe(O.sdr.leadsPerRepPerWeek),ht(O.sdr.unengagedLeadsPerYear),Oi(O.sdr.leadConversionRate),Vi(O.sdr.averageDealSize),vc(O.sdr.opportunityCloseRate),$a(O.sdr.grossMargin),bc(O.sdr.yearThreeTargetPercentage),xc(O.enabledCalculators),En(O.currentStep),Ea(!O.wizardComplete),_c(O.grandTotal))},[]),_.useEffect(()=>{HN({serviceAgent:{serviceEmployees:g,costPerEmployee:S,conversationsPerDay:C,serviceAgentCases:T,currentRegion:r},salesCoach:{numberOfSalesManagers:M,timeSpentOnCoaching:$,averageSalesManagerSalary:D,coachingConversationsPerWeek:N,yearThreeProductivityTarget:E,currentRegion:r},sdr:{numberOfSalesReps:H,timeSpentOnLeadProspecting:K,averageSalesRepSalary:ee,leadsPerRepPerWeek:fe,unengagedLeadsPerYear:X,leadConversionRate:Ze,averageDealSize:$n,opportunityCloseRate:Ds,grossMargin:Cr,yearThreeTargetPercentage:As,currentRegion:r},enabledCalculators:ye,currentStep:Vt,wizardComplete:!Tr,currentRegion:r,locale:m,grandTotal:zi})},[g,S,C,T,M,$,D,N,E,H,K,ee,fe,X,Ze,$n,Ds,Cr,As,ye,Vt,Tr,r,m,zi]);const ti=(O,GN)=>{xc(XN=>V(k({},XN),{[O]:GN}))};_.useEffect(()=>{IN(A,d)},[]),_.useEffect(()=>{const O=window.location.pathname.split("/")[1];O.length===2&&zk.includes(O)||O==="fr-ca"?(h(O),s(O),y(Ta[O]),a(gc[O]),u(ei[o]),w(25e3*ei[o]),R(5e4*ei[o]),ne(5e4*ei[o])):m!=="en-US"&&(y(Ta[O]),a(gc[r]),u(ei[o]),w(25e3*ei[o]),R(5e4*ei[o]),ne(5e4*ei[o]))},[r]);const le=ON({serviceEmployees:g,costPerEmployee:S,conversationsPerDay:C,serviceAgentCases:T,currentRegion:r}),zt=UN({numberOfSalesManagers:M,timeSpentOnCoaching:$,averageSalesManagerSalary:D,coachingConversationsPerWeek:N,yearThreeProductivityTarget:E,currentRegion:r}),pt=KN({numberOfSalesReps:H,timeSpentOnLeadProspecting:K,averageSalesRepSalary:ee,leadsPerRepPerWeek:fe,unengagedLeadsPerYear:X,leadConversionRate:Ze,averageDealSize:$n,opportunityCloseRate:Ds,grossMargin:Cr,yearThreeTargetPercentage:As,currentRegion:r});_.useEffect(()=>{const O=(ye.serviceAgent?le.totalSavings:0)+(ye.salesCoach?zt.threeYearNetBenefit:0)+(ye.sdrAgent?pt.threeYearNetBenefit:0);_c(O)},[le,zt,pt,ye]);const ni=[{year:A.oblroi_chart_year_0,serviceRepCost:Math.max(0,le.totalHumanCost),cost:0,savings:0},{year:A.oblroi_chart_year_1,serviceRepCost:Math.max(0,le.serviceRepCostYear1),cost:Math.max(0,le.costYear1),savings:Math.max(0,le.netSavingsYear1)},{year:A.oblroi_chart_year_2,serviceRepCost:Math.max(0,le.serviceRepCostYear2),cost:Math.max(0,le.costYear2),savings:Math.max(0,le.netSavingsYear2)},{year:A.oblroi_chart_year_3,serviceRepCost:Math.max(0,le.serviceRepCostYear3),cost:Math.max(0,le.costYear3),savings:Math.max(0,le.netSavingsYear3)},{year:A.oblroi_chart_total,serviceRepCost:Math.max(0,le.serviceRepCostTotal),cost:Math.max(0,le.costTotal),savings:Math.max(0,le.totalSavings)}],ot=`${A.oblroi_service_agent_handling} ${Math.round(T)}${A.oblroi_conversations} $${Math.round(le.totalSavings)} ${A.oblroi_over_years}`,Ls=`${A.oblroi_chart_intro} $${Math.round(le.serviceRepCostYear1)} ${A.oblroi_chart_human_cost}, $${Math.round(le.costYear1)} ${A.oblroi_chart_agentforce_cost} $${Math.round(le.netSavingsYear1)} ${A.oblroi_chart_net_savings} ${A.oblroi_chart_year_1} $${Math.round(le.serviceRepCostYear2)} ${A.oblroi_chart_human_cost}, $${Math.round(le.costYear2)} ${A.oblroi_chart_agentforce_cost} $${Math.round(le.netSavingsYear2)} ${A.oblroi_chart_net_savings} ${A.oblroi_chart_in} ${A.oblroi_chart_year_2} . $${Math.round(le.serviceRepCostYear3)} ${A.oblroi_chart_human_cost}, $${Math.round(le.costYear3)} ${A.oblroi_chart_agentforce_cost} $${Math.round(le.netSavingsYear3)} ${A.oblroi_chart_net_savings} ${A.oblroi_chart_in} ${A.oblroi_chart_year_3} .`,Me={service:{serviceEmployees:"service-service-employees",costPerEmployee:"service-cost-per-employee",conversationsPerDay:"service-conversations-per-day",serviceAgentCases:"service-automation-percent"},coach:{numberOfSalesManagers:"coach-manager-count",timeSpentOnCoaching:"coach-time-spent",yearThreeProductivityTarget:"coach-productivity-target",averageSalesManagerSalary:"coach-manager-salary",coachingConversationsPerWeek:"coach-weekly-conversations"},sdr:{numberOfSalesReps:"sdr-rep-count",timeSpentOnLeadProspecting:"sdr-prospecting-time",averageSalesRepSalary:"sdr-rep-salary",leadsPerRepPerWeek:"sdr-weekly-leads",unengagedLeadsPerYear:"sdr-unengaged-leads",leadConversionRate:"sdr-conversion-rate",averageDealSize:"sdr-deal-size",opportunityCloseRate:"sdr-close-rate",grossMargin:"sdr-margin",yearThreeTargetPercentage:"sdr-year3-target"}};return i?v.jsx(LN,{salesCoachResults:zt,sdrResults:pt,serviceResults:le,enabledCalculators:ye,grandTotal:zi,currency:o,locale:m}):v.jsxs(v.Fragment,{children:[(t||new URLSearchParams(window.location.search).get("debug")==="true")&&v.jsx($N,{currentRegion:r,locale:m,currentCurrency:o,agentforcePrice:l,copySource:c,totalSavings:le.totalSavings,validRegionPaths:zk,grandTotal:zi,onRegionChange:O=>{y(Ta[O]),s(O),a(gc[O])}}),v.jsxs(NN,{children:[v.jsx(RN,{eyebrow:A.oblroi_headerEyebrow,header:A.oblroi_header,headerBottom:A.oblroi_headerBottom}),Tr?v.jsx("section",{className:"z-20 mx-auto mb-8 flex w-full max-w-[1280px] flex-col gap-8 p-0 sm:w-1/2 md:max-w-[540px] md:flex-col lg:max-w-[768px] xl:max-w-[1280px] 2xl:max-w-[1440px]",children:v.jsxs("div",{className:"relative flex w-full flex-col gap-3 self-start overflow-hidden rounded-2xl bg-white p-6 pt-12 shadow-lg sm:px-10 xl:flex-1",children:[v.jsx("div",{className:"absolute inset-0 top-0 h-2 w-full",style:{background:"linear-gradient(90deg, #02BEC7 -12.85%, #1E1D80 26.7%, #7B00E1 95.81%, #DC32EC 129.59%)"}}),Vt===1?v.jsx(Hm,{enabledCalc:ye.serviceAgent,calcName:"serviceAgent",handleAnswer:ti,currentStep:Vt,stepCopy:A.oblroi_wizard_step,selectAgentsCopy:A.oblroi_wizard_select_agents,completeSurveyCopy:A.oblroi_wizard_complete_survey,agentTypeCoach:A.oblroi_agent_type_service,questionCopy:A.oblroi_wizard_question_3,questionYesCopy:A.oblroi_wizard_question_yes,questionNoCopy:A.oblroi_wizard_question_no}):null,Vt===2?v.jsx(Hm,{enabledCalc:ye.salesCoach,calcName:"salesCoach",handleAnswer:ti,currentStep:Vt,stepCopy:A.oblroi_wizard_step,selectAgentsCopy:A.oblroi_wizard_select_agents,completeSurveyCopy:A.oblroi_wizard_complete_survey,agentTypeCoach:A.oblroi_agent_type_coach,questionCopy:A.oblroi_wizard_question_1,questionYesCopy:A.oblroi_wizard_question_yes,questionNoCopy:A.oblroi_wizard_question_no}):null,Vt===3?v.jsx(Hm,{enabledCalc:ye.sdrAgent,calcName:"sdrAgent",handleAnswer:ti,currentStep:Vt,stepCopy:A.oblroi_wizard_step,selectAgentsCopy:A.oblroi_wizard_select_agents,completeSurveyCopy:A.oblroi_wizard_complete_survey,agentTypeCoach:A.oblroi_agent_type_sdr,questionCopy:A.oblroi_wizard_question_2,questionYesCopy:A.oblroi_wizard_question_yes,questionNoCopy:A.oblroi_wizard_question_no}):null,v.jsx(DN,{setCurrentStep:En,setEnabledWizard:Ea,currentStep:Vt,nextCopy:A.oblroi_wizard_next,backCopy:A.oblroi_wizard_back,resultsCopy:A.oblroi_wizard_view_results,skipCopy:A.oblroi_wizard_skip})]})}):null,n&&Tr===!1&&v.jsxs(v.Fragment,{children:[ye.salesCoach||ye.sdrAgent||ye.serviceAgent?v.jsx(AN,{value:zi,currency:o,locale:m,totalCopy:A.oblroi_sticky_total_copy,withAgentforceCopy:A.oblroi_sticky_withAgentforce_copy,inactiveCopy:A.oblroi_sticky_inactive_copy,salesCoachResults:zt.threeYearNetBenefit,sdrResults:pt.threeYearNetBenefit,serviceResults:le.totalSavings,salesCoachCopy:A.oblroi_agent_type_coach,sdrCopy:A.oblroi_agent_type_sdr,serviceCopy:A.oblroi_agent_type_service,enabledCalcs:ye}):null,v.jsxs(jN,{children:[v.jsxs("div",{className:"inline-flex w-full flex-col items-center justify-start",children:[ye.salesCoach||ye.sdrAgent||ye.serviceAgent?v.jsxs(v.Fragment,{children:[v.jsx("h2",{className:"mb-4 max-w-lg text-center font-display text-2xl leading-9 text-sfnavy sm:text-2xl sm:leading-10",children:A.oblroi_resultsHeadline}),v.jsx("div",{className:"mb-4 text-center text-display-2 font-semibold sm:text-display-1",children:v.jsx("div",{style:{background:"linear-gradient(90deg, #02BEC7 -12.85%, #1E1D80 26.7%, #7B00E1 95.81%, #DC32EC 129.59%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",WebkitTextStrokeWidth:"1",WebkitTextStrokeColor:"#8E55E4",fontFeatureSettings:'"liga" off, "clig" off',accentColor:"#8E55E4"},children:v.jsx(Vk,{value:zi,currency:o,locale:m})})}),v.jsx("p",{className:"mb-1 font-sans text-base font-normal leading-normal tracking-tight text-sky-950",children:A.oblroi_sticky_active_copy}),v.jsxs("div",{className:"mb-4 flex w-full flex-col justify-center gap-3 md:flex-row",children:[v.jsx("div",{className:"inline-flex items-start justify-center gap-2",children:v.jsxs("div",{className:"inline-flex flex-row items-center justify-start gap-1 md:flex-col",children:[v.jsx("h6",{className:`rounded-full px-3 py-1 text-center font-sans text-sm font-bold leading-tight ${ye.serviceAgent?"bg-[#F0F3FC]":"bg-[#F0F3FC]/50 text-sky-950/50"}`,children:A.oblroi_agent_type_service_short}),v.jsx("p",{className:"font-sans text-base leading-normal tracking-tight text-sky-950",children:ye.serviceAgent?v.jsx(de,{value:le.totalSavings,currency:o,locale:m}):A.oblroi_sticky_inactive_copy})]})}),v.jsx("div",{className:"text-md visible inline-flex items-center justify-center font-display max-sm:hidden",children:"+"}),v.jsx("div",{className:"inline-flex items-start justify-center gap-2",children:v.jsxs("div",{className:"inline-flex flex-row items-center justify-start gap-1 md:flex-col",children:[v.jsx("h6",{className:`rounded-full px-3 py-1 text-center font-sans text-sm font-bold leading-tight ${ye.salesCoach?"bg-[#F0F3FC]":"bg-[#F0F3FC]/50 text-sky-950/50"}`,children:A.oblroi_agent_type_coach_short}),v.jsx("p",{className:"font-sans text-base leading-normal tracking-tight text-sky-950",children:ye.salesCoach?v.jsx(de,{value:zt.threeYearNetBenefit,currency:o,locale:m}):A.oblroi_sticky_inactive_copy})]})}),v.jsx("div",{className:"text-md visible inline-flex items-center justify-center font-display max-sm:hidden",children:"+"}),v.jsx("div",{className:"inline-flex items-start justify-center gap-2",children:v.jsxs("div",{className:"inline-flex flex-row items-center justify-start gap-1 md:flex-col",children:[v.jsx("h6",{className:`rounded-full px-3 py-1 text-center font-sans text-sm font-bold leading-tight ${ye.sdrAgent?"bg-[#F0F3FC]":"bg-[#F0F3FC]/50 text-sky-950/50"}`,children:A.oblroi_agent_type_sdr_short}),v.jsx("p",{className:"font-sans text-base leading-normal tracking-tight text-sky-950",children:ye.sdrAgent?v.jsx(de,{value:pt.threeYearNetBenefit,currency:o,locale:m}):A.oblroi_sticky_inactive_copy})]})})]}),v.jsx("div",{className:"mb-5 font-sans text-xl font-bold leading-[30px] tracking-tight text-neutral-900",children:A.oblroi_resultsDescription}),v.jsxs("div",{className:"mb-8 flex w-full flex-col gap-4 md:w-1/2 md:flex-row",children:[e?v.jsx(ji,{variant:"primary",url:`${window.location.hostname==="localhost"?"https://www-staging.salesforce.com":""}/form/agentforce/roi-calculator-download/?pb=1`,target:"_blank",children:"Download report"}):v.jsx(ji,{url:`${window.location.origin}${f?`/${f}`:""}/form/agentforce/contact-us/?d=pb`,target:"_blank",variant:"primary",children:A.oblroi_cta1Label}),v.jsx(ji,{variant:"secondary",url:`${window.location.origin}${f?`/${f}`:""}/agentforce`,children:A.oblroi_cta2Label})]})]}):v.jsxs("div",{className:"mb-5 text-center",children:[v.jsx("h3",{className:"pb-2 font-display text-xl font-semibold text-sky-950",children:A.oblroi_no_calculators_headline}),v.jsx("p",{className:"pt-2 font-sans text-base text-neutral-700",children:A.oblroi_no_calculators_description}),v.jsxs("div",{className:"flex w-full flex-col items-center justify-center gap-10 pt-6 font-display text-sky-950 md:flex-row",children:[v.jsx("div",{className:"w-full p-4 sm:min-w-[200px] sm:max-w-[250px]",children:A.oblroi_service_marketing_headline}),v.jsx("div",{className:"w-full p-4 sm:min-w-[200px] sm:max-w-[250px]",children:A.oblroi_sdr_marketing_headline}),v.jsx("div",{className:"w-full p-4 sm:min-w-[200px] sm:max-w-[250px]",children:A.oblroi_coach_marketing_headline})]}),v.jsx("div",{className:"my-6 flex",children:v.jsxs("div",{className:"mx-auto flex w-full flex-col gap-4 md:flex-row",children:[v.jsx("div",{className:"w-full",children:v.jsx(ji,{url:`${window.location.origin}${f?`/${f}`:""}/form/agentforce/contact-us/?d=pb`,target:"_blank",variant:"primary",children:A.oblroi_cta1Label})}),v.jsx("div",{className:"w-full",children:v.jsx(ji,{variant:"secondary",url:`${window.location.origin}${f?`/${f}`:""}/agentforce`,children:A.oblroi_cta2Label})})]})})]}),v.jsx("p",{className:"mb-8 font-sans text-sm font-normal leading-normal tracking-tight text-neutral-700",children:A.oblroi_calculator_toggle_info}),v.jsx("div",{role:"region",id:"agentforce-savings-info",className:"sr-only","aria-live":"polite","aria-atomic":"true",children:ot})]}),v.jsxs(Ot,{children:[v.jsxs(Ot.Item,{defaultOpen:ye.serviceAgent,onToggle:O=>ti("serviceAgent",O),children:[v.jsx(Ot.Header,{children:v.jsxs("div",{className:"flex items-center gap-4 pt-1",children:[v.jsxs("h5",{className:"font-display text-xl font-semibold leading-normal text-sky-950 hover:text-sky-900",children:[A.oblroi_agent_type_service," "]}),v.jsx("p",{className:"hidden font-sans text-base font-normal leading-normal tracking-tight text-neutral-900 md:block",children:A.oblroi_service_description})]})}),v.jsxs(Ot.Panel,{children:[v.jsx(Ym,{children:v.jsxs("div",{className:"flex w-full flex-col gap-6",children:[v.jsxs("p",{className:"font-sans text-sm font-normal leading-tight text-neutral-700",children:["(",A.oblroi_form_required,")"]}),v.jsx(wt,{label:A.oblroi_service_employees_label,info:A.oblroi_service_employees_info,value:g,inputName:Me.service.serviceEmployees,minValue:1,maxValue:1e5,formatOptions:{maximumFractionDigits:0},onChange:O=>isNaN(O)?b(1):b(Number(O)),validationBehavior:"native",errorMessage:A.oblroi_error_service_employees,isRequired:!0}),v.jsx(wt,{label:A.oblroi_service_cost_per_employee_label,info:A.oblroi_service_cost_per_employee_info,value:S,inputName:Me.service.costPerEmployee,minValue:1,maxValue:1e6,formatOptions:{style:"currency",currency:o||"USD",maximumFractionDigits:0},onChange:O=>isNaN(O)?w(0):w(Number(O)),validationBehavior:"native",errorMessage:A.oblroi_error_cost_per_employee,isRequired:!0}),v.jsx(wt,{label:A.oblroi_service_conversations_per_day_label,info:A.oblroi_service_conversations_per_day_info,value:C,inputName:Me.service.conversationsPerDay,formatOptions:{maximumFractionDigits:0},onChange:O=>isNaN(O)?L(1):L(Number(O)),validationBehavior:"native",errorMessage:A.oblroi_error_conversations_handled,minValue:1,isRequired:!0}),v.jsx(Un,{label:A.oblroi_service_automation_percent_label,info:A.oblroi_service_automation_percent_info,value:T,inputName:Me.service.serviceAgentCases,onChange:P,maxValue:100,minValue:1,suffix:"%",step:1})]})}),v.jsxs("div",{className:"flex w-full flex-col gap-6",children:[v.jsxs(U,{children:[v.jsx(U.Head,{children:v.jsxs(U.Row,{children:[v.jsx(U.HeaderCell,{children:" "}),v.jsx(U.HeaderCell,{children:A.oblroi_chart_year_1}),v.jsx(U.HeaderCell,{children:A.oblroi_chart_year_2}),v.jsx(U.HeaderCell,{children:A.oblroi_chart_year_3}),v.jsx(U.HeaderCell,{children:A.oblroi_chart_total})]})}),v.jsxs(U.Body,{children:[v.jsxs(U.Row,{children:[v.jsx(U.HeaderCell,{children:A.oblroi_resultsTable_human_cost}),ni.slice(1).map(O=>v.jsx(U.Cell,{children:v.jsx(de,{value:O.serviceRepCost,currency:o,locale:m})},O.year))]}),v.jsxs(U.Row,{children:[v.jsxs(U.HeaderCell,{children:[A.oblroi_resultsTable_agentforce_investment,"*"]}),ni.slice(1).map(O=>v.jsx(U.Cell,{children:v.jsx(de,{value:O.cost,currency:o,locale:m})},O.year))]}),v.jsxs(U.Row,{children:[v.jsx(U.HeaderCell,{children:A.oblroi_resultsTable_your_savings}),ni.slice(1).map(O=>v.jsx(U.Cell,{children:v.jsx(de,{value:O.savings,currency:o,locale:m})},O.year))]})]})]}),t&&v.jsx("div",{className:"flex min-h-[400px] w-full flex-row",children:v.jsx(_k,{data:ni,ariaLabel:Ls,currency:o,locale:m})}),v.jsx(Wm,{headline:A.oblroi_service_marketing_headline,item1:A.oblroi_service_marketing_item1,item2:A.oblroi_service_marketing_item2,item3:A.oblroi_service_marketing_item3}),v.jsx(Ca,{text1:A.oblroi_service_legalDisclaimer_1,text2:A.oblroi_service_legalDisclaimer_2})]})]})]}),v.jsxs(Ot.Item,{defaultOpen:ye.salesCoach,onToggle:O=>ti("salesCoach",O),children:[v.jsx(Ot.Header,{children:v.jsxs("div",{className:"flex items-center gap-4 pt-1",children:[v.jsxs("h5",{className:"text-left font-display text-xl font-semibold leading-normal text-sky-950 hover:text-sky-900",children:[A.oblroi_agent_type_coach," "]}),v.jsx("p",{className:"hidden text-left font-sans text-base font-normal leading-normal tracking-tight text-neutral-900 md:block",children:A.oblroi_coach_description})]})}),v.jsxs(Ot.Panel,{children:[v.jsx(Ym,{children:v.jsxs("div",{className:"flex w-full flex-col gap-6",children:[v.jsxs("p",{className:"font-sans text-sm font-normal leading-tight text-neutral-700",children:["(",A.oblroi_form_required,")"]}),v.jsx(wt,{label:A.oblroi_coach_manager_count_label,info:A.oblroi_coach_manager_count_info,value:M,inputName:Me.coach.numberOfSalesManagers,onChange:O=>j(Number(O)),minValue:1,maxValue:1e3,formatOptions:{maximumFractionDigits:0},isRequired:!0}),v.jsx(Un,{label:A.oblroi_coach_time_spent_label,info:A.oblroi_coach_time_spent_info,value:$*100,onChange:O=>F(O/100),maxValue:100,minValue:1,suffix:"%",step:1,inputName:Me.coach.timeSpentOnCoaching}),v.jsx(Un,{label:A.oblroi_coach_productivity_target_label,info:A.oblroi_coach_productivity_target_info,value:E,onChange:z,maxValue:100,minValue:1,suffix:"%",step:1,inputName:Me.coach.yearThreeProductivityTarget}),v.jsx(wt,{label:A.oblroi_coach_manager_salary_label,info:A.oblroi_coach_manager_salary_info,value:D,minValue:1,onChange:O=>R(Number(O)),formatOptions:{style:"currency",currency:o,maximumFractionDigits:0},isRequired:!0,inputName:Me.coach.averageSalesManagerSalary}),v.jsx(wt,{label:A.oblroi_coach_weekly_conversations_label,info:A.oblroi_coach_weekly_conversations_info,value:N,onChange:O=>B(Number(O)),minValue:1,maxValue:100,formatOptions:{maximumFractionDigits:0},isRequired:!0,inputName:Me.coach.coachingConversationsPerWeek})]})}),v.jsxs("div",{className:"flex w-full flex-col gap-6",children:[v.jsxs(U,{children:[v.jsx(U.Head,{children:v.jsxs(U.Row,{children:[v.jsx(U.HeaderCell,{children:" "}),v.jsx(U.HeaderCell,{children:A.oblroi_chart_year_1}),v.jsx(U.HeaderCell,{children:A.oblroi_chart_year_2}),v.jsx(U.HeaderCell,{children:A.oblroi_chart_year_3}),v.jsx(U.HeaderCell,{children:A.oblroi_chart_total})]})}),v.jsxs(U.Body,{children:[v.jsxs(U.Row,{children:[v.jsx(U.HeaderCell,{children:A.oblroi_results_table_productivity}),zt.tableData.map(O=>v.jsx(U.Cell,{children:v.jsx(de,{value:O.productivityBenefits,currency:o,locale:m})},O.year)),v.jsx(U.Cell,{children:v.jsx(de,{value:zt.threeYearTotalBenefits,currency:o,locale:m})})]}),v.jsxs(U.Row,{children:[v.jsx(U.HeaderCell,{children:A.oblroi_resultsTable_agentforce_investment}),zt.tableData.map(O=>v.jsx(U.Cell,{children:v.jsx(de,{value:O.totalAgentforceInvestment,currency:o,locale:m})},O.year)),v.jsx(U.Cell,{children:v.jsx(de,{value:zt.threeYearTotalInvestment,currency:o,locale:m})})]}),v.jsxs(U.Row,{children:[v.jsx(U.HeaderCell,{children:A.oblroi_results_table_net_benefit}),zt.tableData.map(O=>v.jsx(U.Cell,{children:v.jsx(de,{value:O.netBenefit,currency:o,locale:m})},O.year)),v.jsx(U.Cell,{children:v.jsx(de,{value:zt.threeYearNetBenefit,currency:o,locale:m})})]})]})]}),v.jsx(Wm,{headline:A.oblroi_coach_marketing_headline,item1:A.oblroi_coach_marketing_item1,item2:A.oblroi_coach_marketing_item2,item3:A.oblroi_coach_marketing_item3}),v.jsx(Ca,{text1:A.oblroi_coach_legalDisclaimer_1,text2:A.oblroi_coach_legalDisclaimer_2,text3:A.oblroi_coach_legalDisclaimer_3})]})]})]}),v.jsxs(Ot.Item,{defaultOpen:ye.sdrAgent,onToggle:O=>ti("sdrAgent",O),children:[v.jsx(Ot.Header,{children:v.jsxs("div",{className:"flex items-center gap-4 pt-1",children:[v.jsx("h5",{className:"font-display text-xl font-semibold text-sky-950 hover:text-sky-900",children:A.oblroi_agent_type_sdr}),v.jsx("p",{className:"hidden font-sans text-base font-normal leading-normal tracking-tight text-neutral-900 md:block",children:A.oblroi_sdr_description})]})}),v.jsxs(Ot.Panel,{children:[v.jsx(Ym,{children:v.jsxs("div",{className:"flex w-full flex-col gap-6",children:[v.jsxs("p",{className:"font-sans text-sm font-normal leading-tight text-neutral-700",children:["(",A.oblroi_form_required,")"]}),v.jsx(wt,{label:A.oblroi_sdr_rep_count_label,info:A.oblroi_sdr_rep_count_info,value:H,inputName:Me.sdr.numberOfSalesReps,onChange:O=>I(Number(O)),minValue:1,maxValue:1e4,formatOptions:{maximumFractionDigits:0},isRequired:!0}),v.jsx(Un,{label:A.oblroi_sdr_prospecting_time_label,info:A.oblroi_sdr_prospecting_time_info,value:K*100,onChange:O=>Z(O/100),maxValue:100,minValue:1,suffix:"%",step:1,inputName:Me.sdr.timeSpentOnLeadProspecting}),v.jsx(wt,{label:A.oblroi_sdr_rep_salary_label,info:A.oblroi_sdr_rep_salary_info,value:ee,minValue:1,onChange:O=>ne(Number(O)),formatOptions:{style:"currency",currency:o,maximumFractionDigits:0},isRequired:!0,inputName:Me.sdr.averageSalesRepSalary}),v.jsx(wt,{label:A.oblroi_sdr_weekly_leads_label,info:A.oblroi_sdr_weekly_leads_info,value:fe,onChange:O=>Qe(Number(O)),minValue:1,maxValue:1e3,formatOptions:{maximumFractionDigits:0},isRequired:!0,inputName:Me.sdr.leadsPerRepPerWeek}),v.jsx(wt,{label:A.oblroi_sdr_unengaged_leads_label,info:A.oblroi_sdr_unengaged_leads_info,value:X,onChange:O=>ht(Number(O)),minValue:0,formatOptions:{maximumFractionDigits:0},isRequired:!0,inputName:Me.sdr.unengagedLeadsPerYear}),v.jsx(Un,{label:A.oblroi_sdr_year3_target_label,info:A.oblroi_sdr_year3_target_info,value:As*100,onChange:O=>bc(O/100),maxValue:100,minValue:1,suffix:"%",step:1,inputName:Me.sdr.yearThreeTargetPercentage}),v.jsx(Un,{label:A.oblroi_sdr_conversion_rate_label,info:A.oblroi_sdr_conversion_rate_info,value:Ze*100,onChange:O=>Oi(O/100),maxValue:100,minValue:1,suffix:"%",step:1,inputName:Me.sdr.leadConversionRate}),v.jsx(wt,{label:A.oblroi_sdr_deal_size_label,info:A.oblroi_sdr_deal_size_info,value:$n,minValue:1,onChange:O=>Vi(Number(O)),formatOptions:{style:"currency",currency:o,maximumFractionDigits:0},isRequired:!0,inputName:Me.sdr.averageDealSize}),v.jsx(Un,{label:A.oblroi_sdr_close_rate_label,info:A.oblroi_sdr_close_rate_info,value:Ds*100,onChange:O=>vc(O/100),maxValue:100,minValue:1,suffix:"%",step:1,inputName:Me.sdr.opportunityCloseRate}),v.jsx(Un,{label:A.oblroi_sdr_margin_label,info:A.oblroi_sdr_margin_info,value:Cr*100,onChange:O=>$a(O/100),maxValue:100,minValue:1,suffix:"%",step:1,inputName:Me.sdr.grossMargin})]})}),v.jsxs("div",{className:"flex w-full flex-col gap-6",children:[v.jsxs(U,{children:[v.jsx(U.Head,{children:v.jsxs(U.Row,{children:[v.jsx(U.HeaderCell,{children:" "}),v.jsx(U.HeaderCell,{children:A.oblroi_chart_year_1}),v.jsx(U.HeaderCell,{children:A.oblroi_chart_year_2}),v.jsx(U.HeaderCell,{children:A.oblroi_chart_year_3}),v.jsx(U.HeaderCell,{children:A.oblroi_chart_total})]})}),v.jsxs(U.Body,{children:[v.jsxs(U.Row,{children:[v.jsx(U.HeaderCell,{children:A.oblroi_results_table_productivity}),pt.tableData.map(O=>v.jsx(U.Cell,{children:v.jsx(de,{value:O.productivityBenefits,currency:o,locale:m})},O.year)),v.jsx(U.Cell,{children:v.jsx(de,{value:pt.threeYearProductivityBenefits,currency:o,locale:m})})]}),v.jsxs(U.Row,{children:[v.jsx(U.HeaderCell,{children:A.oblroi_results_table_qualified_leads}),pt.tableData.map(O=>v.jsx(U.Cell,{children:v.jsx(de,{value:O.benefitsFromQualifiedLeads,currency:o,locale:m})},O.year)),v.jsx(U.Cell,{children:v.jsx(de,{value:pt.threeYearBenefitsFromQualifiedLeads,currency:o,locale:m})})]}),v.jsxs(U.Row,{children:[v.jsx(U.HeaderCell,{children:A.oblroi_resultsTable_agentforce_investment}),pt.tableData.map(O=>v.jsx(U.Cell,{children:v.jsx(de,{value:O.totalAgentforceCosts,currency:o,locale:m})},O.year)),v.jsx(U.Cell,{children:v.jsx(de,{value:pt.threeYearTotalCosts,currency:o,locale:m})})]}),v.jsxs(U.Row,{children:[v.jsx(U.HeaderCell,{children:A.oblroi_results_table_net_benefit}),pt.tableData.map(O=>v.jsx(U.Cell,{children:v.jsx(de,{value:O.netBenefit,currency:o,locale:m})},O.year)),v.jsx(U.Cell,{children:v.jsx(de,{value:pt.threeYearNetBenefit,currency:o,locale:m})})]})]})]}),v.jsx(Wm,{headline:A.oblroi_sdr_marketing_headline,item1:A.oblroi_sdr_marketing_item1,item2:A.oblroi_sdr_marketing_item2,item3:A.oblroi_sdr_marketing_item3}),v.jsx(Ca,{text1:A.oblroi_sdr_legalDisclaimer_1,text2:A.oblroi_sdr_legalDisclaimer_2,text3:A.oblroi_sdr_legalDisclaimer_3})]})]})]})]}),v.jsx(Ca,{text1:A.oblroi_all_legalDisclaimer,text2:A.oblroi_all_legalDisclaimer_2})]})]}),!n&&v.jsxs("section",{className:"container z-20 mx-auto flex flex-col gap-8 p-0 md:max-w-[540px] md:flex-col lg:max-w-[768px] xl:max-w-[1280px] xl:flex-row 2xl:max-w-[1440px]",children:[v.jsxs("div",{className:"w-full self-start rounded-2xl bg-white px-6 py-8 shadow-lg xl:w-[320px]",children:[v.jsx("h3",{className:"mb-6 font-display text-2xl text-sfnavy",children:A.oblroi_formHeadline}),v.jsxs("p",{className:"mb-6 font-sans text-sm font-normal leading-tight text-neutral-700",children:["(",A.oblroi_form_required,")"]}),v.jsxs("div",{className:"flex w-full flex-col gap-6",children:[v.jsx(wt,{label:A.oblroi_service_employees_label,info:A.oblroi_service_employees_info,value:g,inputName:Me.service.serviceEmployees,minValue:1,maxValue:1e5,formatOptions:{maximumFractionDigits:0},onChange:O=>isNaN(O)?b(1):b(Number(O)),validationBehavior:"native",errorMessage:A.oblroi_error_service_employees,isRequired:!0}),v.jsx(wt,{label:A.oblroi_service_cost_per_employee_label,info:A.oblroi_service_cost_per_employee_info,value:S,inputName:Me.service.costPerEmployee,minValue:1,maxValue:1e6,formatOptions:{style:"currency",currency:o||"USD",maximumFractionDigits:0},onChange:O=>isNaN(O)?w(0):w(Number(O)),validationBehavior:"native",errorMessage:A.oblroi_error_cost_per_employee,isRequired:!0}),v.jsx(wt,{label:A.oblroi_service_conversations_per_day_label,info:A.oblroi_service_conversations_per_day_info,value:C,inputName:Me.service.conversationsPerDay,formatOptions:{maximumFractionDigits:0},onChange:O=>isNaN(O)?L(1):L(Number(O)),validationBehavior:"native",errorMessage:A.oblroi_error_conversations_handled,isRequired:!0}),v.jsx(Un,{label:A.oblroi_service_automation_percent_label,info:A.oblroi_service_automation_percent_info,value:T,inputName:Me.service.serviceAgentCases,onChange:P,maxValue:100,minValue:1,suffix:"%",step:1})]})]}),v.jsxs("div",{className:"relative flex w-full flex-col gap-6 self-start overflow-hidden rounded-2xl bg-white p-8 pt-12 shadow-lg sm:px-10 xl:flex-1",children:[v.jsx("div",{className:"absolute inset-0 top-0 h-2 w-full",style:{background:"linear-gradient(90deg, #02BEC7 -12.85%, #1E1D80 26.7%, #7B00E1 95.81%, #DC32EC 129.59%)"}}),v.jsxs("div",{className:"inline-flex w-full flex-col items-center justify-start",children:[v.jsxs("h2",{className:"mb-4 max-w-lg text-center font-display text-2xl leading-9 text-sfnavy sm:text-2xl sm:leading-10",children:[A.oblroi_resultsHeadline_part1," ",v.jsxs("span",{className:"text-indigo-500",children:[T,"%"]})," ",A.oblroi_resultsHeadline_part2.replace(/%/g,"")]}),v.jsx("div",{className:"mb-4 text-center text-display-2 font-semibold sm:text-display-1",children:v.jsx("div",{style:{background:"linear-gradient(90deg, #02BEC7 -12.85%, #1E1D80 26.7%, #7B00E1 95.81%, #DC32EC 129.59%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",WebkitTextStrokeWidth:"1",WebkitTextStrokeColor:"#8E55E4",fontFeatureSettings:'"liga" off, "clig" off',accentColor:"#8E55E4"},children:v.jsx(Vk,{value:le.totalSavings,currency:o,locale:m})})}),v.jsx("div",{className:"mb-5 font-sans text-xl font-bold leading-[30px] tracking-tight text-neutral-900",children:A.oblroi_resultsDescription}),v.jsx("div",{role:"region",id:"agentforce-savings-info",className:"sr-only","aria-live":"polite","aria-atomic":"true",children:ot}),v.jsxs(DA,{children:[v.jsxs(AA,{children:[v.jsx(dS,{id:"table",children:"Table"}),v.jsx(dS,{id:"chart",children:"Chart"})]}),v.jsx(fS,{id:"table",children:v.jsx("div",{className:"flex w-full flex-col",children:v.jsxs(U,{children:[v.jsx(U.Head,{children:v.jsxs(U.Row,{children:[v.jsx(U.HeaderCell,{children:A.oblroi_results_table_year}),v.jsx(U.HeaderCell,{children:A.oblroi_results_table_productivity}),v.jsx(U.HeaderCell,{children:A.oblroi_results_table_agent_cost}),v.jsx(U.HeaderCell,{children:A.oblroi_results_table_net_benefit})]})}),v.jsx(U.Body,{children:ni.map(O=>v.jsxs(U.Row,{children:[v.jsx(U.Cell,{children:O.year}),v.jsx(U.Cell,{children:v.jsx(de,{value:O.serviceRepCost,currency:o,locale:m})}),v.jsx(U.Cell,{children:v.jsx(de,{value:O.cost,currency:o,locale:m})}),v.jsx(U.Cell,{children:v.jsx(de,{value:O.savings,currency:o,locale:m})})]},O.year))})]})})}),v.jsx(fS,{id:"chart",children:v.jsx("div",{className:"relative flex w-full flex-col overflow-x-auto max-sm:h-[40vh] max-sm:w-[75vw]",children:v.jsx(_k,{data:ni,ariaLabel:Ls,currency:o,locale:m})})})]}),v.jsx(Ca,{text1:A.oblroi_service_legalDisclaimer_1,text2:A.oblroi_service_legalDisclaimer_2,text3:A.oblroi_service_legalDisclaimer_3}),v.jsxs("div",{className:"flex w-full flex-col gap-4 md:flex-row",children:[v.jsx(ji,{url:`${window.location.origin}${f?`/${f}`:""}/form/agentforce/contact-us/?d=pb`,target:"_blank",children:A.oblroi_cta1Label}),!e&&v.jsx(ji,{variant:"secondary",url:`${window.location.origin}${f?`/${f}`:""}/agentforce`,children:A.oblroi_cta2Label}),e&&v.jsx(ji,{variant:"secondary",url:`${window.location.hostname==="localhost"?"https://www-staging.salesforce.com":""}/form/agentforce/roi-report/?serviceEmployees=${g}&costPerEmployee=${S}&conversationsPerDay=${C}&serviceAgentCases=${T}`,target:"_blank",children:"Get PDF report"})]})]})]})]})]})]})}const Ym=({children:t})=>v.jsx("div",{className:"input-panel w-full gap-2 self-start rounded border border-neutral-200 bg-white p-4 shadow lg:w-1/4",children:t});document.querySelectorAll("[id^='wps-agentforce-roi']").forEach(t=>{const e=t.dataset||{};Ec.createRoot(t).render(v.jsx(Y.StrictMode,{children:v.jsx(YN,k({},e))}))})});