var Jrt=Object.defineProperty;var eot=(n,e,t)=>e in n?Jrt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var xs=(n,e,t)=>(eot(n,typeof e!="symbol"?e+"":e,t),t);function cOe(n,e){for(var t=0;ti[r]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function t(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(r){if(r.ep)return;r.ep=!0;const o=t(r);fetch(r.href,o)}})();var Co=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ja(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function oue(n){if(n.__esModule)return n;var e=n.default;if(typeof e=="function"){var t=function i(){return this instanceof i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(i){var r=Object.getOwnPropertyDescriptor(n,i);Object.defineProperty(t,i,r.get?r:{enumerable:!0,get:function(){return n[i]}})}),t}var uOe={exports:{}},SW={},dOe={exports:{}},Eo={};/** * @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 K4=Symbol.for("react.element"),tot=Symbol.for("react.portal"),not=Symbol.for("react.fragment"),iot=Symbol.for("react.strict_mode"),rot=Symbol.for("react.profiler"),oot=Symbol.for("react.provider"),sot=Symbol.for("react.context"),aot=Symbol.for("react.forward_ref"),lot=Symbol.for("react.suspense"),cot=Symbol.for("react.memo"),uot=Symbol.for("react.lazy"),S0e=Symbol.iterator;function dot(n){return n===null||typeof n!="object"?null:(n=S0e&&n[S0e]||n["@@iterator"],typeof n=="function"?n:null)}var hOe={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},fOe=Object.assign,gOe={};function N2(n,e,t){this.props=n,this.context=e,this.refs=gOe,this.updater=t||hOe}N2.prototype.isReactComponent={};N2.prototype.setState=function(n,e){if(typeof n!="object"&&typeof n!="function"&&n!=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,n,e,"setState")};N2.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};function pOe(){}pOe.prototype=N2.prototype;function sue(n,e,t){this.props=n,this.context=e,this.refs=gOe,this.updater=t||hOe}var aue=sue.prototype=new pOe;aue.constructor=sue;fOe(aue,N2.prototype);aue.isPureReactComponent=!0;var E0e=Array.isArray,mOe=Object.prototype.hasOwnProperty,lue={current:null},_Oe={key:!0,ref:!0,__self:!0,__source:!0};function vOe(n,e,t){var i,r={},o=null,s=null;if(e!=null)for(i in e.ref!==void 0&&(s=e.ref),e.key!==void 0&&(o=""+e.key),e)mOe.call(e,i)&&!_Oe.hasOwnProperty(i)&&(r[i]=e[i]);var a=arguments.length-2;if(a===1)r.children=t;else if(1"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?_st:mst;COe.useSyncExternalStore=XL.useSyncExternalStore!==void 0?XL.useSyncExternalStore:vst;yOe.exports=COe;var wOe=yOe.exports,SOe={exports:{}},EOe={};/** * @license React * use-sync-external-store-shim/with-selector.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 EW=w,bst=wOe;function yst(n,e){return n===e&&(n!==0||1/n===1/e)||n!==n&&e!==e}var Cst=typeof Object.is=="function"?Object.is:yst,wst=bst.useSyncExternalStore,Sst=EW.useRef,Est=EW.useEffect,xst=EW.useMemo,kst=EW.useDebugValue;EOe.useSyncExternalStoreWithSelector=function(n,e,t,i,r){var o=Sst(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=xst(function(){function l(g){if(!c){if(c=!0,u=g,g=i(g),r!==void 0&&s.hasValue){var p=s.value;if(r(p,g))return d=p}return d=g}if(p=d,Cst(u,g))return p;var m=i(g);return r!==void 0&&r(p,m)?p:(u=g,d=m)}var c=!1,u,d,h=t===void 0?null:t;return[function(){return l(e())},h===null?void 0:function(){return l(h())}]},[e,t,i,r]);var a=wst(n,o[0],o[1]);return Est(function(){s.hasValue=!0,s.value=a},[a]),kst(a),a};SOe.exports=EOe;var Tst=SOe.exports,xOe={exports:{}},Lg={},kOe={exports:{}},TOe={};/** * @license React * scheduler.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. */(function(n){function e($,j){var Y=$.length;$.push(j);e:for(;0>>1,se=$[ne];if(0>>1;ner(_e,Y))Ier(Re,_e)?($[ne]=Re,$[Ie]=Y,ne=Ie):($[ne]=_e,$[xe]=Y,ne=xe);else if(Ier(Re,Y))$[ne]=Re,$[Ie]=Y,ne=Ie;else break e}}return j}function r($,j){var Y=$.sortIndex-j.sortIndex;return Y!==0?Y:$.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;n.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();n.unstable_now=function(){return s.now()-a}}var l=[],c=[],u=1,d=null,h=3,g=!1,p=!1,m=!1,_=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y($){for(var j=t(c);j!==null;){if(j.callback===null)i(c);else if(j.startTime<=$)i(c),j.sortIndex=j.expirationTime,e(l,j);else break;j=t(c)}}function C($){if(m=!1,y($),!p)if(t(l)!==null)p=!0,H(x);else{var j=t(c);j!==null&&V(C,j.startTime-$)}}function x($,j){p=!1,m&&(m=!1,v(L),L=-1),g=!0;var Y=h;try{for(y(j),d=t(l);d!==null&&(!(d.expirationTime>j)||$&&!P());){var ne=d.callback;if(typeof ne=="function"){d.callback=null,h=d.priorityLevel;var se=ne(d.expirationTime<=j);j=n.unstable_now(),typeof se=="function"?d.callback=se:d===t(l)&&i(l),y(j)}else i(l);d=t(l)}if(d!==null)var he=!0;else{var xe=t(c);xe!==null&&V(C,xe.startTime-j),he=!1}return he}finally{d=null,h=Y,g=!1}}var k=!1,I=null,L=-1,D=5,R=-1;function P(){return!(n.unstable_now()-R$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<$?Math.floor(1e3/$):5},n.unstable_getCurrentPriorityLevel=function(){return h},n.unstable_getFirstCallbackNode=function(){return t(l)},n.unstable_next=function($){switch(h){case 1:case 2:case 3:var j=3;break;default:j=h}var Y=h;h=j;try{return $()}finally{h=Y}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function($,j){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var Y=h;h=$;try{return j()}finally{h=Y}},n.unstable_scheduleCallback=function($,j,Y){var ne=n.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0ne?($.sortIndex=Y,e(c,$),t(l)===null&&$===t(c)&&(m?(v(L),L=-1):m=!0,V(C,Y-ne))):($.sortIndex=se,e(l,$),p||g||(p=!0,H(x))),$},n.unstable_shouldYield=P,n.unstable_wrapCallback=function($){var j=h;return function(){var Y=h;h=j;try{return $.apply(this,arguments)}finally{h=Y}}}})(TOe);kOe.exports=TOe;var Ist=kOe.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 IOe=w,_g=Ist;function fn(n){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+n,t=1;t"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),GJ=Object.prototype.hasOwnProperty,Lst=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,k0e={},T0e={};function Dst(n){return GJ.call(T0e,n)?!0:GJ.call(k0e,n)?!1:Lst.test(n)?T0e[n]=!0:(k0e[n]=!0,!1)}function Ast(n,e,t,i){if(t!==null&&t.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return i?!1:t!==null?!t.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function Rst(n,e,t,i){if(e===null||typeof e>"u"||Ast(n,e,t,i))return!0;if(i)return!1;if(t!==null)switch(t.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function gh(n,e,t,i,r,o,s){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=i,this.attributeNamespace=r,this.mustUseProperty=t,this.propertyName=n,this.type=e,this.sanitizeURL=o,this.removeEmptyString=s}var Yu={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){Yu[n]=new gh(n,0,!1,n,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var e=n[0];Yu[e]=new gh(e,1,!1,n[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(n){Yu[n]=new gh(n,2,!1,n.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){Yu[n]=new gh(n,2,!1,n,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(n){Yu[n]=new gh(n,3,!1,n.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(n){Yu[n]=new gh(n,3,!0,n,null,!1,!1)});["capture","download"].forEach(function(n){Yu[n]=new gh(n,4,!1,n,null,!1,!1)});["cols","rows","size","span"].forEach(function(n){Yu[n]=new gh(n,6,!1,n,null,!1,!1)});["rowSpan","start"].forEach(function(n){Yu[n]=new gh(n,5,!1,n.toLowerCase(),null,!1,!1)});var due=/[\-:]([a-z])/g;function hue(n){return n[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(n){var e=n.replace(due,hue);Yu[e]=new gh(e,1,!1,n,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var e=n.replace(due,hue);Yu[e]=new gh(e,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(n){var e=n.replace(due,hue);Yu[e]=new gh(e,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(n){Yu[n]=new gh(n,1,!1,n.toLowerCase(),null,!1,!1)});Yu.xlinkHref=new gh("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(n){Yu[n]=new gh(n,1,!1,n.toLowerCase(),null,!0,!0)});function fue(n,e,t,i){var r=Yu.hasOwnProperty(e)?Yu[e]:null;(r!==null?r.type!==0:i||!(2a||r[s]!==o[a]){var l=` `+r[s].replace(" at new "," at ");return n.displayName&&l.includes("")&&(l=l.replace("",n.displayName)),l}while(1<=s&&0<=a);break}}}finally{KG=!1,Error.prepareStackTrace=t}return(n=n?n.displayName||n.name:"")?dN(n):""}function Nst(n){switch(n.tag){case 5:return dN(n.type);case 16:return dN("Lazy");case 13:return dN("Suspense");case 19:return dN("SuspenseList");case 0:case 2:case 15:return n=GG(n.type,!1),n;case 11:return n=GG(n.type.render,!1),n;case 1:return n=GG(n.type,!0),n;default:return""}}function ZJ(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case uI:return"Fragment";case cI:return"Portal";case YJ:return"Profiler";case gue:return"StrictMode";case QJ:return"Suspense";case XJ:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case AOe:return(n.displayName||"Context")+".Consumer";case DOe:return(n._context.displayName||"Context")+".Provider";case pue:var e=n.render;return n=n.displayName,n||(n=e.displayName||e.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case mue:return e=n.displayName||null,e!==null?e:ZJ(n.type)||"Memo";case m1:e=n._payload,n=n._init;try{return ZJ(n(e))}catch{}}return null}function Ost(n){var e=n.type;switch(n.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 n=e.render,n=n.displayName||n.name||"",e.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ZJ(e);case 8:return e===gue?"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 UC(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function NOe(n){var e=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Pst(n){var e=NOe(n)?"checked":"value",t=Object.getOwnPropertyDescriptor(n.constructor.prototype,e),i=""+n[e];if(!n.hasOwnProperty(e)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var r=t.get,o=t.set;return Object.defineProperty(n,e,{configurable:!0,get:function(){return r.call(this)},set:function(s){i=""+s,o.call(this,s)}}),Object.defineProperty(n,e,{enumerable:t.enumerable}),{getValue:function(){return i},setValue:function(s){i=""+s},stopTracking:function(){n._valueTracker=null,delete n[e]}}}}function UF(n){n._valueTracker||(n._valueTracker=Pst(n))}function OOe(n){if(!n)return!1;var e=n._valueTracker;if(!e)return!0;var t=e.getValue(),i="";return n&&(i=NOe(n)?n.checked?"true":"false":n.value),n=i,n!==t?(e.setValue(n),!0):!1}function l9(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function JJ(n,e){var t=e.checked;return rl({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??n._wrapperState.initialChecked})}function L0e(n,e){var t=e.defaultValue==null?"":e.defaultValue,i=e.checked!=null?e.checked:e.defaultChecked;t=UC(e.value!=null?e.value:t),n._wrapperState={initialChecked:i,initialValue:t,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function POe(n,e){e=e.checked,e!=null&&fue(n,"checked",e,!1)}function eee(n,e){POe(n,e);var t=UC(e.value),i=e.type;if(t!=null)i==="number"?(t===0&&n.value===""||n.value!=t)&&(n.value=""+t):n.value!==""+t&&(n.value=""+t);else if(i==="submit"||i==="reset"){n.removeAttribute("value");return}e.hasOwnProperty("value")?tee(n,e.type,t):e.hasOwnProperty("defaultValue")&&tee(n,e.type,UC(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(n.defaultChecked=!!e.defaultChecked)}function D0e(n,e,t){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=""+n._wrapperState.initialValue,t||e===n.value||(n.value=e),n.defaultValue=e}t=n.name,t!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,t!==""&&(n.name=t)}function tee(n,e,t){(e!=="number"||l9(n.ownerDocument)!==n)&&(t==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+t&&(n.defaultValue=""+t))}var hN=Array.isArray;function oL(n,e,t,i){if(n=n.options,e){e={};for(var r=0;r"+e.valueOf().toString()+"",e=qF.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;e.firstChild;)n.appendChild(e.firstChild)}});function dP(n,e){if(e){var t=n.firstChild;if(t&&t===n.lastChild&&t.nodeType===3){t.nodeValue=e;return}}n.textContent=e}var KN={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},Mst=["Webkit","ms","Moz","O"];Object.keys(KN).forEach(function(n){Mst.forEach(function(e){e=e+n.charAt(0).toUpperCase()+n.substring(1),KN[e]=KN[n]})});function $Oe(n,e,t){return e==null||typeof e=="boolean"||e===""?"":t||typeof e!="number"||e===0||KN.hasOwnProperty(n)&&KN[n]?(""+e).trim():e+"px"}function VOe(n,e){n=n.style;for(var t in e)if(e.hasOwnProperty(t)){var i=t.indexOf("--")===0,r=$Oe(t,e[t],i);t==="float"&&(t="cssFloat"),i?n.setProperty(t,r):n[t]=r}}var Fst=rl({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 ree(n,e){if(e){if(Fst[n]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(fn(137,n));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(fn(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(fn(61))}if(e.style!=null&&typeof e.style!="object")throw Error(fn(62))}}function oee(n,e){if(n.indexOf("-")===-1)return typeof e.is=="string";switch(n){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 see=null;function _ue(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var aee=null,sL=null,aL=null;function N0e(n){if(n=Q4(n)){if(typeof aee!="function")throw Error(fn(280));var e=n.stateNode;e&&(e=LW(e),aee(n.stateNode,n.type,e))}}function HOe(n){sL?aL?aL.push(n):aL=[n]:sL=n}function WOe(){if(sL){var n=sL,e=aL;if(aL=sL=null,N0e(n),e)for(n=0;n>>=0,n===0?32:31-(Gst(n)/Yst|0)|0}var KF=64,GF=4194304;function fN(n){switch(n&-n){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 n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function h9(n,e){var t=n.pendingLanes;if(t===0)return 0;var i=0,r=n.suspendedLanes,o=n.pingedLanes,s=t&268435455;if(s!==0){var a=s&~r;a!==0?i=fN(a):(o&=s,o!==0&&(i=fN(o)))}else s=t&~r,s!==0?i=fN(s):o!==0&&(i=fN(o));if(i===0)return 0;if(e!==0&&e!==i&&!(e&r)&&(r=i&-i,o=e&-e,r>=o||r===16&&(o&4194240)!==0))return e;if(i&4&&(i|=t&16),e=n.entangledLanes,e!==0)for(n=n.entanglements,e&=i;0t;t++)e.push(n);return e}function G4(n,e,t){n.pendingLanes|=e,e!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,e=31-s_(e),n[e]=t}function Jst(n,e){var t=n.pendingLanes&~e;n.pendingLanes=e,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=e,n.mutableReadLanes&=e,n.entangledLanes&=e,e=n.entanglements;var i=n.eventTimes;for(n=n.expirationTimes;0=YN),W0e=String.fromCharCode(32),z0e=!1;function lPe(n,e){switch(n){case"keyup":return Tat.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cPe(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var dI=!1;function Lat(n,e){switch(n){case"compositionend":return cPe(e);case"keypress":return e.which!==32?null:(z0e=!0,W0e);case"textInput":return n=e.data,n===W0e&&z0e?null:n;default:return null}}function Dat(n,e){if(dI)return n==="compositionend"||!xue&&lPe(n,e)?(n=sPe(),M$=wue=F1=null,dI=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:t,offset:e-n};n=i}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=K0e(t)}}function fPe(n,e){return n&&e?n===e?!0:n&&n.nodeType===3?!1:e&&e.nodeType===3?fPe(n,e.parentNode):"contains"in n?n.contains(e):n.compareDocumentPosition?!!(n.compareDocumentPosition(e)&16):!1:!1}function gPe(){for(var n=window,e=l9();e instanceof n.HTMLIFrameElement;){try{var t=typeof e.contentWindow.location.href=="string"}catch{t=!1}if(t)n=e.contentWindow;else break;e=l9(n.document)}return e}function kue(n){var e=n&&n.nodeName&&n.nodeName.toLowerCase();return e&&(e==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||e==="textarea"||n.contentEditable==="true")}function $at(n){var e=gPe(),t=n.focusedElem,i=n.selectionRange;if(e!==t&&t&&t.ownerDocument&&fPe(t.ownerDocument.documentElement,t)){if(i!==null&&kue(t)){if(e=i.start,n=i.end,n===void 0&&(n=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(n,t.value.length);else if(n=(e=t.ownerDocument||document)&&e.defaultView||window,n.getSelection){n=n.getSelection();var r=t.textContent.length,o=Math.min(i.start,r);i=i.end===void 0?o:Math.min(i.end,r),!n.extend&&o>i&&(r=i,i=o,o=r),r=G0e(t,o);var s=G0e(t,i);r&&s&&(n.rangeCount!==1||n.anchorNode!==r.node||n.anchorOffset!==r.offset||n.focusNode!==s.node||n.focusOffset!==s.offset)&&(e=e.createRange(),e.setStart(r.node,r.offset),n.removeAllRanges(),o>i?(n.addRange(e),n.extend(s.node,s.offset)):(e.setEnd(s.node,s.offset),n.addRange(e)))}}for(e=[],n=t;n=n.parentNode;)n.nodeType===1&&e.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,hI=null,fee=null,XN=null,gee=!1;function Y0e(n,e,t){var i=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;gee||hI==null||hI!==l9(i)||(i=hI,"selectionStart"in i&&kue(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}),XN&&_P(XN,i)||(XN=i,i=p9(fee,"onSelect"),0pI||(n.current=yee[pI],yee[pI]=null,pI--)}function wa(n,e){pI++,yee[pI]=n.current,n.current=e}var qC={},Td=Rw(qC),Qh=Rw(!1),lx=qC;function JL(n,e){var t=n.type.contextTypes;if(!t)return qC;var i=n.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===e)return i.__reactInternalMemoizedMaskedChildContext;var r={},o;for(o in t)r[o]=e[o];return i&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=e,n.__reactInternalMemoizedMaskedChildContext=r),r}function Xh(n){return n=n.childContextTypes,n!=null}function _9(){Na(Qh),Na(Td)}function n1e(n,e,t){if(Td.current!==qC)throw Error(fn(168));wa(Td,e),wa(Qh,t)}function SPe(n,e,t){var i=n.stateNode;if(e=e.childContextTypes,typeof i.getChildContext!="function")return t;i=i.getChildContext();for(var r in i)if(!(r in e))throw Error(fn(108,Ost(n)||"Unknown",r));return rl({},t,i)}function v9(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||qC,lx=Td.current,wa(Td,n),wa(Qh,Qh.current),!0}function i1e(n,e,t){var i=n.stateNode;if(!i)throw Error(fn(169));t?(n=SPe(n,e,lx),i.__reactInternalMemoizedMergedChildContext=n,Na(Qh),Na(Td),wa(Td,n)):Na(Qh),wa(Qh,t)}var gy=null,DW=!1,lY=!1;function EPe(n){gy===null?gy=[n]:gy.push(n)}function Xat(n){DW=!0,EPe(n)}function Nw(){if(!lY&&gy!==null){lY=!0;var n=0,e=Rs;try{var t=gy;for(Rs=1;n>=s,r-=s,Ty=1<<32-s_(e)+r|t<L?(D=I,I=null):D=I.sibling;var R=h(v,I,y[L],C);if(R===null){I===null&&(I=D);break}n&&I&&R.alternate===null&&e(v,I),b=o(R,b,L),k===null?x=R:k.sibling=R,k=R,I=D}if(L===y.length)return t(v,I),Ha&&NS(v,L),x;if(I===null){for(;LL?(D=I,I=null):D=I.sibling;var P=h(v,I,R.value,C);if(P===null){I===null&&(I=D);break}n&&I&&P.alternate===null&&e(v,I),b=o(P,b,L),k===null?x=P:k.sibling=P,k=P,I=D}if(R.done)return t(v,I),Ha&&NS(v,L),x;if(I===null){for(;!R.done;L++,R=y.next())R=d(v,R.value,C),R!==null&&(b=o(R,b,L),k===null?x=R:k.sibling=R,k=R);return Ha&&NS(v,L),x}for(I=i(v,I);!R.done;L++,R=y.next())R=g(I,v,L,R.value,C),R!==null&&(n&&R.alternate!==null&&I.delete(R.key===null?L:R.key),b=o(R,b,L),k===null?x=R:k.sibling=R,k=R);return n&&I.forEach(function(M){return e(v,M)}),Ha&&NS(v,L),x}function _(v,b,y,C){if(typeof y=="object"&&y!==null&&y.type===uI&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case jF:e:{for(var x=y.key,k=b;k!==null;){if(k.key===x){if(x=y.type,x===uI){if(k.tag===7){t(v,k.sibling),b=r(k,y.props.children),b.return=v,v=b;break e}}else if(k.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===m1&&u1e(x)===k.type){t(v,k.sibling),b=r(k,y.props),b.ref=cR(v,k,y),b.return=v,v=b;break e}t(v,k);break}else e(v,k);k=k.sibling}y.type===uI?(b=FE(y.props.children,v.mode,C,y.key),b.return=v,v=b):(C=j$(y.type,y.key,y.props,null,v.mode,C),C.ref=cR(v,b,y),C.return=v,v=C)}return s(v);case cI:e:{for(k=y.key;b!==null;){if(b.key===k)if(b.tag===4&&b.stateNode.containerInfo===y.containerInfo&&b.stateNode.implementation===y.implementation){t(v,b.sibling),b=r(b,y.children||[]),b.return=v,v=b;break e}else{t(v,b);break}else e(v,b);b=b.sibling}b=mY(y,v.mode,C),b.return=v,v=b}return s(v);case m1:return k=y._init,_(v,b,k(y._payload),C)}if(hN(y))return p(v,b,y,C);if(rR(y))return m(v,b,y,C);t6(v,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,b!==null&&b.tag===6?(t(v,b.sibling),b=r(b,y),b.return=v,v=b):(t(v,b),b=pY(y,v.mode,C),b.return=v,v=b),s(v)):t(v,b)}return _}var tD=RPe(!0),NPe=RPe(!1),X4={},zv=Rw(X4),CP=Rw(X4),wP=Rw(X4);function _E(n){if(n===X4)throw Error(fn(174));return n}function Pue(n,e){switch(wa(wP,e),wa(CP,n),wa(zv,X4),n=e.nodeType,n){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:iee(null,"");break;default:n=n===8?e.parentNode:e,e=n.namespaceURI||null,n=n.tagName,e=iee(e,n)}Na(zv),wa(zv,e)}function nD(){Na(zv),Na(CP),Na(wP)}function OPe(n){_E(wP.current);var e=_E(zv.current),t=iee(e,n.type);e!==t&&(wa(CP,n),wa(zv,t))}function Mue(n){CP.current===n&&(Na(zv),Na(CP))}var Xa=Rw(0);function E9(n){for(var e=n;e!==null;){if(e.tag===13){var t=e.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||t.data==="$?"||t.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break;for(;e.sibling===null;){if(e.return===null||e.return===n)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var cY=[];function Fue(){for(var n=0;nt?t:4,n(!0);var i=uY.transition;uY.transition={};try{n(!1),e()}finally{Rs=t,uY.transition=i}}function QPe(){return Op().memoizedState}function tlt(n,e,t){var i=gC(n);if(t={lane:i,action:t,hasEagerState:!1,eagerState:null,next:null},XPe(n))ZPe(e,t);else if(t=IPe(n,e,t,i),t!==null){var r=eh();a_(t,n,i,r),JPe(t,e,i)}}function nlt(n,e,t){var i=gC(n),r={lane:i,action:t,hasEagerState:!1,eagerState:null,next:null};if(XPe(n))ZPe(e,r);else{var o=n.alternate;if(n.lanes===0&&(o===null||o.lanes===0)&&(o=e.lastRenderedReducer,o!==null))try{var s=e.lastRenderedState,a=o(s,t);if(r.hasEagerState=!0,r.eagerState=a,v_(a,s)){var l=e.interleaved;l===null?(r.next=r,Nue(e)):(r.next=l.next,l.next=r),e.interleaved=r;return}}catch{}finally{}t=IPe(n,e,r,i),t!==null&&(r=eh(),a_(t,n,i,r),JPe(t,e,i))}}function XPe(n){var e=n.alternate;return n===nl||e!==null&&e===nl}function ZPe(n,e){ZN=x9=!0;var t=n.pending;t===null?e.next=e:(e.next=t.next,t.next=e),n.pending=e}function JPe(n,e,t){if(t&4194240){var i=e.lanes;i&=n.pendingLanes,t|=i,e.lanes=t,bue(n,t)}}var k9={readContext:Np,useCallback:ad,useContext:ad,useEffect:ad,useImperativeHandle:ad,useInsertionEffect:ad,useLayoutEffect:ad,useMemo:ad,useReducer:ad,useRef:ad,useState:ad,useDebugValue:ad,useDeferredValue:ad,useTransition:ad,useMutableSource:ad,useSyncExternalStore:ad,useId:ad,unstable_isNewReconciler:!1},ilt={readContext:Np,useCallback:function(n,e){return ev().memoizedState=[n,e===void 0?null:e],n},useContext:Np,useEffect:h1e,useImperativeHandle:function(n,e,t){return t=t!=null?t.concat([n]):null,V$(4194308,4,UPe.bind(null,e,n),t)},useLayoutEffect:function(n,e){return V$(4194308,4,n,e)},useInsertionEffect:function(n,e){return V$(4,2,n,e)},useMemo:function(n,e){var t=ev();return e=e===void 0?null:e,n=n(),t.memoizedState=[n,e],n},useReducer:function(n,e,t){var i=ev();return e=t!==void 0?t(e):e,i.memoizedState=i.baseState=e,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:e},i.queue=n,n=n.dispatch=tlt.bind(null,nl,n),[i.memoizedState,n]},useRef:function(n){var e=ev();return n={current:n},e.memoizedState=n},useState:d1e,useDebugValue:Wue,useDeferredValue:function(n){return ev().memoizedState=n},useTransition:function(){var n=d1e(!1),e=n[0];return n=elt.bind(null,n[1]),ev().memoizedState=n,[e,n]},useMutableSource:function(){},useSyncExternalStore:function(n,e,t){var i=nl,r=ev();if(Ha){if(t===void 0)throw Error(fn(407));t=t()}else{if(t=e(),lu===null)throw Error(fn(349));ux&30||FPe(i,e,t)}r.memoizedState=t;var o={value:t,getSnapshot:e};return r.queue=o,h1e($Pe.bind(null,i,o,n),[n]),i.flags|=2048,xP(9,BPe.bind(null,i,o,t,e),void 0,null),t},useId:function(){var n=ev(),e=lu.identifierPrefix;if(Ha){var t=Iy,i=Ty;t=(i&~(1<<32-s_(i)-1)).toString(32)+t,e=":"+e+"R"+t,t=SP++,0<\/script>",n=n.removeChild(n.firstChild)):typeof i.is=="string"?n=s.createElement(t,{is:i.is}):(n=s.createElement(t),t==="select"&&(s=n,i.multiple?s.multiple=!0:i.size&&(s.size=i.size))):n=s.createElementNS(n,t),n[pv]=e,n[yP]=i,lMe(n,e,!1,!1),e.stateNode=n;e:{switch(s=oee(t,i),t){case"dialog":ka("cancel",n),ka("close",n),r=i;break;case"iframe":case"object":case"embed":ka("load",n),r=i;break;case"video":case"audio":for(r=0;rrD&&(e.flags|=128,i=!0,uR(o,!1),e.lanes=4194304)}else{if(!i)if(n=E9(s),n!==null){if(e.flags|=128,i=!0,t=n.updateQueue,t!==null&&(e.updateQueue=t,e.flags|=4),uR(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!Ha)return ld(e),null}else 2*Vl()-o.renderingStartTime>rD&&t!==1073741824&&(e.flags|=128,i=!0,uR(o,!1),e.lanes=4194304);o.isBackwards?(s.sibling=e.child,e.child=s):(t=o.last,t!==null?t.sibling=s:e.child=s,o.last=s)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=Vl(),e.sibling=null,t=Xa.current,wa(Xa,i?t&1|2:t&1),e):(ld(e),null);case 22:case 23:return Gue(),i=e.memoizedState!==null,n!==null&&n.memoizedState!==null!==i&&(e.flags|=8192),i&&e.mode&1?Wf&1073741824&&(ld(e),e.subtreeFlags&6&&(e.flags|=8192)):ld(e),null;case 24:return null;case 25:return null}throw Error(fn(156,e.tag))}function dlt(n,e){switch(Iue(e),e.tag){case 1:return Xh(e.type)&&_9(),n=e.flags,n&65536?(e.flags=n&-65537|128,e):null;case 3:return nD(),Na(Qh),Na(Td),Fue(),n=e.flags,n&65536&&!(n&128)?(e.flags=n&-65537|128,e):null;case 5:return Mue(e),null;case 13:if(Na(Xa),n=e.memoizedState,n!==null&&n.dehydrated!==null){if(e.alternate===null)throw Error(fn(340));eD()}return n=e.flags,n&65536?(e.flags=n&-65537|128,e):null;case 19:return Na(Xa),null;case 4:return nD(),null;case 10:return Rue(e.type._context),null;case 22:case 23:return Gue(),null;case 24:return null;default:return null}}var i6=!1,Cd=!1,hlt=typeof WeakSet=="function"?WeakSet:Set,di=null;function bI(n,e){var t=n.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(i){_l(n,e,i)}else t.current=null}function Ree(n,e,t){try{t()}catch(i){_l(n,e,i)}}var C1e=!1;function flt(n,e){if(pee=f9,n=gPe(),kue(n)){if("selectionStart"in n)var t={start:n.selectionStart,end:n.selectionEnd};else e:{t=(t=n.ownerDocument)&&t.defaultView||window;var i=t.getSelection&&t.getSelection();if(i&&i.rangeCount!==0){t=i.anchorNode;var r=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{t.nodeType,o.nodeType}catch{t=null;break e}var s=0,a=-1,l=-1,c=0,u=0,d=n,h=null;t:for(;;){for(var g;d!==t||r!==0&&d.nodeType!==3||(a=s+r),d!==o||i!==0&&d.nodeType!==3||(l=s+i),d.nodeType===3&&(s+=d.nodeValue.length),(g=d.firstChild)!==null;)h=d,d=g;for(;;){if(d===n)break t;if(h===t&&++c===r&&(a=s),h===o&&++u===i&&(l=s),(g=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=g}t=a===-1||l===-1?null:{start:a,end:l}}else t=null}t=t||{start:0,end:0}}else t=null;for(mee={focusedElem:n,selectionRange:t},f9=!1,di=e;di!==null;)if(e=di,n=e.child,(e.subtreeFlags&1028)!==0&&n!==null)n.return=e,di=n;else for(;di!==null;){e=di;try{var p=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var m=p.memoizedProps,_=p.memoizedState,v=e.stateNode,b=v.getSnapshotBeforeUpdate(e.elementType===e.type?m:Lm(e.type,m),_);v.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var y=e.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(fn(163))}}catch(C){_l(e,e.return,C)}if(n=e.sibling,n!==null){n.return=e.return,di=n;break}di=e.return}return p=C1e,C1e=!1,p}function JN(n,e,t){var i=e.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var r=i=i.next;do{if((r.tag&n)===n){var o=r.destroy;r.destroy=void 0,o!==void 0&&Ree(e,t,o)}r=r.next}while(r!==i)}}function NW(n,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var t=e=e.next;do{if((t.tag&n)===n){var i=t.create;t.destroy=i()}t=t.next}while(t!==e)}}function Nee(n){var e=n.ref;if(e!==null){var t=n.stateNode;switch(n.tag){case 5:n=t;break;default:n=t}typeof e=="function"?e(n):e.current=n}}function dMe(n){var e=n.alternate;e!==null&&(n.alternate=null,dMe(e)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(e=n.stateNode,e!==null&&(delete e[pv],delete e[yP],delete e[bee],delete e[Yat],delete e[Qat])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function hMe(n){return n.tag===5||n.tag===3||n.tag===4}function w1e(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||hMe(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Oee(n,e,t){var i=n.tag;if(i===5||i===6)n=n.stateNode,e?t.nodeType===8?t.parentNode.insertBefore(n,e):t.insertBefore(n,e):(t.nodeType===8?(e=t.parentNode,e.insertBefore(n,t)):(e=t,e.appendChild(n)),t=t._reactRootContainer,t!=null||e.onclick!==null||(e.onclick=m9));else if(i!==4&&(n=n.child,n!==null))for(Oee(n,e,t),n=n.sibling;n!==null;)Oee(n,e,t),n=n.sibling}function Pee(n,e,t){var i=n.tag;if(i===5||i===6)n=n.stateNode,e?t.insertBefore(n,e):t.appendChild(n);else if(i!==4&&(n=n.child,n!==null))for(Pee(n,e,t),n=n.sibling;n!==null;)Pee(n,e,t),n=n.sibling}var Su=null,Rm=!1;function q0(n,e,t){for(t=t.child;t!==null;)fMe(n,e,t),t=t.sibling}function fMe(n,e,t){if(Wv&&typeof Wv.onCommitFiberUnmount=="function")try{Wv.onCommitFiberUnmount(xW,t)}catch{}switch(t.tag){case 5:Cd||bI(t,e);case 6:var i=Su,r=Rm;Su=null,q0(n,e,t),Su=i,Rm=r,Su!==null&&(Rm?(n=Su,t=t.stateNode,n.nodeType===8?n.parentNode.removeChild(t):n.removeChild(t)):Su.removeChild(t.stateNode));break;case 18:Su!==null&&(Rm?(n=Su,t=t.stateNode,n.nodeType===8?aY(n.parentNode,t):n.nodeType===1&&aY(n,t),pP(n)):aY(Su,t.stateNode));break;case 4:i=Su,r=Rm,Su=t.stateNode.containerInfo,Rm=!0,q0(n,e,t),Su=i,Rm=r;break;case 0:case 11:case 14:case 15:if(!Cd&&(i=t.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){r=i=i.next;do{var o=r,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&Ree(t,e,s),r=r.next}while(r!==i)}q0(n,e,t);break;case 1:if(!Cd&&(bI(t,e),i=t.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=t.memoizedProps,i.state=t.memoizedState,i.componentWillUnmount()}catch(a){_l(t,e,a)}q0(n,e,t);break;case 21:q0(n,e,t);break;case 22:t.mode&1?(Cd=(i=Cd)||t.memoizedState!==null,q0(n,e,t),Cd=i):q0(n,e,t);break;default:q0(n,e,t)}}function S1e(n){var e=n.updateQueue;if(e!==null){n.updateQueue=null;var t=n.stateNode;t===null&&(t=n.stateNode=new hlt),e.forEach(function(i){var r=wlt.bind(null,n,i);t.has(i)||(t.add(i),i.then(r,r))})}}function pm(n,e){var t=e.deletions;if(t!==null)for(var i=0;ir&&(r=s),i&=~o}if(i=r,i=Vl()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*plt(i/1960))-i,10n?16:n,B1===null)var i=!1;else{if(n=B1,B1=null,L9=0,Go&6)throw Error(fn(331));var r=Go;for(Go|=4,di=n.current;di!==null;){var o=di,s=o.child;if(di.flags&16){var a=o.deletions;if(a!==null){for(var l=0;lVl()-que?ME(n,0):Uue|=t),Zh(n,e)}function CMe(n,e){e===0&&(n.mode&1?(e=GF,GF<<=1,!(GF&130023424)&&(GF=4194304)):e=1);var t=eh();n=s0(n,e),n!==null&&(G4(n,e,t),Zh(n,t))}function Clt(n){var e=n.memoizedState,t=0;e!==null&&(t=e.retryLane),CMe(n,t)}function wlt(n,e){var t=0;switch(n.tag){case 13:var i=n.stateNode,r=n.memoizedState;r!==null&&(t=r.retryLane);break;case 19:i=n.stateNode;break;default:throw Error(fn(314))}i!==null&&i.delete(e),CMe(n,t)}var wMe;wMe=function(n,e,t){if(n!==null)if(n.memoizedProps!==e.pendingProps||Qh.current)Hh=!0;else{if(!(n.lanes&t)&&!(e.flags&128))return Hh=!1,clt(n,e,t);Hh=!!(n.flags&131072)}else Hh=!1,Ha&&e.flags&1048576&&xPe(e,y9,e.index);switch(e.lanes=0,e.tag){case 2:var i=e.type;H$(n,e),n=e.pendingProps;var r=JL(e,Td.current);cL(e,t),r=$ue(null,e,i,n,r,t);var o=Vue();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,Xh(i)?(o=!0,v9(e)):o=!1,e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,Oue(e),r.updater=AW,e.stateNode=r,r._reactInternals=e,xee(e,i,n,t),e=Iee(null,e,i,!0,o,t)):(e.tag=0,Ha&&o&&Tue(e),Ud(null,e,r,t),e=e.child),e;case 16:i=e.elementType;e:{switch(H$(n,e),n=e.pendingProps,r=i._init,i=r(i._payload),e.type=i,r=e.tag=Elt(i),n=Lm(i,n),r){case 0:e=Tee(null,e,i,n,t);break e;case 1:e=v1e(null,e,i,n,t);break e;case 11:e=m1e(null,e,i,n,t);break e;case 14:e=_1e(null,e,i,Lm(i.type,n),t);break e}throw Error(fn(306,i,""))}return e;case 0:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:Lm(i,r),Tee(n,e,i,r,t);case 1:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:Lm(i,r),v1e(n,e,i,r,t);case 3:e:{if(oMe(e),n===null)throw Error(fn(387));i=e.pendingProps,o=e.memoizedState,r=o.element,LPe(n,e),S9(e,i,null,t);var s=e.memoizedState;if(i=s.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},e.updateQueue.baseState=o,e.memoizedState=o,e.flags&256){r=iD(Error(fn(423)),e),e=b1e(n,e,i,t,r);break e}else if(i!==r){r=iD(Error(fn(424)),e),e=b1e(n,e,i,t,r);break e}else for(Zf=dC(e.stateNode.containerInfo.firstChild),lg=e,Ha=!0,Vm=null,t=NPe(e,null,i,t),e.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(eD(),i===r){e=a0(n,e,t);break e}Ud(n,e,i,t)}e=e.child}return e;case 5:return OPe(e),n===null&&wee(e),i=e.type,r=e.pendingProps,o=n!==null?n.memoizedProps:null,s=r.children,_ee(i,r)?s=null:o!==null&&_ee(i,o)&&(e.flags|=32),rMe(n,e),Ud(n,e,s,t),e.child;case 6:return n===null&&wee(e),null;case 13:return sMe(n,e,t);case 4:return Pue(e,e.stateNode.containerInfo),i=e.pendingProps,n===null?e.child=tD(e,null,i,t):Ud(n,e,i,t),e.child;case 11:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:Lm(i,r),m1e(n,e,i,r,t);case 7:return Ud(n,e,e.pendingProps,t),e.child;case 8:return Ud(n,e,e.pendingProps.children,t),e.child;case 12:return Ud(n,e,e.pendingProps.children,t),e.child;case 10:e:{if(i=e.type._context,r=e.pendingProps,o=e.memoizedProps,s=r.value,wa(C9,i._currentValue),i._currentValue=s,o!==null)if(v_(o.value,s)){if(o.children===r.children&&!Qh.current){e=a0(n,e,t);break e}}else for(o=e.child,o!==null&&(o.return=e);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var l=a.firstContext;l!==null;){if(l.context===i){if(o.tag===1){l=jy(-1,t&-t),l.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}o.lanes|=t,l=o.alternate,l!==null&&(l.lanes|=t),See(o.return,t,e),a.lanes|=t;break}l=l.next}}else if(o.tag===10)s=o.type===e.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(fn(341));s.lanes|=t,a=s.alternate,a!==null&&(a.lanes|=t),See(s,t,e),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===e){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Ud(n,e,r.children,t),e=e.child}return e;case 9:return r=e.type,i=e.pendingProps.children,cL(e,t),r=Np(r),i=i(r),e.flags|=1,Ud(n,e,i,t),e.child;case 14:return i=e.type,r=Lm(i,e.pendingProps),r=Lm(i.type,r),_1e(n,e,i,r,t);case 15:return nMe(n,e,e.type,e.pendingProps,t);case 17:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:Lm(i,r),H$(n,e),e.tag=1,Xh(i)?(n=!0,v9(e)):n=!1,cL(e,t),APe(e,i,r),xee(e,i,r,t),Iee(null,e,i,!0,n,t);case 19:return aMe(n,e,t);case 22:return iMe(n,e,t)}throw Error(fn(156,e.tag))};function SMe(n,e){return YOe(n,e)}function Slt(n,e,t,i){this.tag=n,this.key=t,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 gp(n,e,t,i){return new Slt(n,e,t,i)}function Que(n){return n=n.prototype,!(!n||!n.isReactComponent)}function Elt(n){if(typeof n=="function")return Que(n)?1:0;if(n!=null){if(n=n.$$typeof,n===pue)return 11;if(n===mue)return 14}return 2}function pC(n,e){var t=n.alternate;return t===null?(t=gp(n.tag,e,n.key,n.mode),t.elementType=n.elementType,t.type=n.type,t.stateNode=n.stateNode,t.alternate=n,n.alternate=t):(t.pendingProps=e,t.type=n.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=n.flags&14680064,t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},t.sibling=n.sibling,t.index=n.index,t.ref=n.ref,t}function j$(n,e,t,i,r,o){var s=2;if(i=n,typeof n=="function")Que(n)&&(s=1);else if(typeof n=="string")s=5;else e:switch(n){case uI:return FE(t.children,r,o,e);case gue:s=8,r|=8;break;case YJ:return n=gp(12,t,e,r|2),n.elementType=YJ,n.lanes=o,n;case QJ:return n=gp(13,t,e,r),n.elementType=QJ,n.lanes=o,n;case XJ:return n=gp(19,t,e,r),n.elementType=XJ,n.lanes=o,n;case ROe:return PW(t,r,o,e);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case DOe:s=10;break e;case AOe:s=9;break e;case pue:s=11;break e;case mue:s=14;break e;case m1:s=16,i=null;break e}throw Error(fn(130,n==null?n:typeof n,""))}return e=gp(s,t,e,r),e.elementType=n,e.type=i,e.lanes=o,e}function FE(n,e,t,i){return n=gp(7,n,i,e),n.lanes=t,n}function PW(n,e,t,i){return n=gp(22,n,i,e),n.elementType=ROe,n.lanes=t,n.stateNode={isHidden:!1},n}function pY(n,e,t){return n=gp(6,n,null,e),n.lanes=t,n}function mY(n,e,t){return e=gp(4,n.children!==null?n.children:[],n.key,e),e.lanes=t,e.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},e}function xlt(n,e,t,i,r){this.tag=e,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=QG(0),this.expirationTimes=QG(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=QG(0),this.identifierPrefix=i,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function Xue(n,e,t,i,r,o,s,a,l){return n=new xlt(n,e,t,a,l),e===1?(e=1,o===!0&&(e|=8)):e=0,o=gp(3,null,null,e),n.current=o,o.stateNode=n,o.memoizedState={element:i,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},Oue(o),n}function klt(n,e,t){var i=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(TMe)}catch(n){console.error(n)}}TMe(),xOe.exports=Lg;var Yp=xOe.exports;const VW=ja(Yp),Alt=cOe({__proto__:null,default:VW},[Yp]);function Rlt(n){n()}let IMe=Rlt;const Nlt=n=>IMe=n,Olt=()=>IMe,A1e=Symbol.for("react-redux-context"),R1e=typeof globalThis<"u"?globalThis:{};function Plt(){var n;if(!w.createContext)return{};const e=(n=R1e[A1e])!=null?n:R1e[A1e]=new Map;let t=e.get(w.createContext);return t||(t=w.createContext(null),e.set(w.createContext,t)),t}const l0=Plt();function tde(n=l0){return function(){return w.useContext(n)}}const LMe=tde(),DMe=()=>{throw new Error("uSES not initialized!")};let AMe=DMe;const Mlt=n=>{AMe=n},Flt=(n,e)=>n===e;function Blt(n=l0){const e=n===l0?LMe:tde(n);return function(i,r={}){const{equalityFn:o=Flt,stabilityCheck:s=void 0,noopCheck:a=void 0}=typeof r=="function"?{equalityFn:r}:r,{store:l,subscription:c,getServerState:u,stabilityCheck:d,noopCheck:h}=e();w.useRef(!0);const g=w.useCallback({[i.name](m){return i(m)}}[i.name],[i,d,s]),p=AMe(c.addNestedSub,l.getState,u||l.getState,g,o);return w.useDebugValue(p),p}}const Tl=Blt();function rt(){return rt=Object.assign?Object.assign.bind():function(n){for(var e=1;e=0)&&(t[r]=n[r]);return t}var RMe={exports:{}},Ns={};/** @license React v16.13.1 * react-is.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 gu=typeof Symbol=="function"&&Symbol.for,ide=gu?Symbol.for("react.element"):60103,rde=gu?Symbol.for("react.portal"):60106,HW=gu?Symbol.for("react.fragment"):60107,WW=gu?Symbol.for("react.strict_mode"):60108,zW=gu?Symbol.for("react.profiler"):60114,jW=gu?Symbol.for("react.provider"):60109,UW=gu?Symbol.for("react.context"):60110,ode=gu?Symbol.for("react.async_mode"):60111,qW=gu?Symbol.for("react.concurrent_mode"):60111,KW=gu?Symbol.for("react.forward_ref"):60112,GW=gu?Symbol.for("react.suspense"):60113,$lt=gu?Symbol.for("react.suspense_list"):60120,YW=gu?Symbol.for("react.memo"):60115,QW=gu?Symbol.for("react.lazy"):60116,Vlt=gu?Symbol.for("react.block"):60121,Hlt=gu?Symbol.for("react.fundamental"):60117,Wlt=gu?Symbol.for("react.responder"):60118,zlt=gu?Symbol.for("react.scope"):60119;function Ag(n){if(typeof n=="object"&&n!==null){var e=n.$$typeof;switch(e){case ide:switch(n=n.type,n){case ode:case qW:case HW:case zW:case WW:case GW:return n;default:switch(n=n&&n.$$typeof,n){case UW:case KW:case QW:case YW:case jW:return n;default:return e}}case rde:return e}}}function NMe(n){return Ag(n)===qW}Ns.AsyncMode=ode;Ns.ConcurrentMode=qW;Ns.ContextConsumer=UW;Ns.ContextProvider=jW;Ns.Element=ide;Ns.ForwardRef=KW;Ns.Fragment=HW;Ns.Lazy=QW;Ns.Memo=YW;Ns.Portal=rde;Ns.Profiler=zW;Ns.StrictMode=WW;Ns.Suspense=GW;Ns.isAsyncMode=function(n){return NMe(n)||Ag(n)===ode};Ns.isConcurrentMode=NMe;Ns.isContextConsumer=function(n){return Ag(n)===UW};Ns.isContextProvider=function(n){return Ag(n)===jW};Ns.isElement=function(n){return typeof n=="object"&&n!==null&&n.$$typeof===ide};Ns.isForwardRef=function(n){return Ag(n)===KW};Ns.isFragment=function(n){return Ag(n)===HW};Ns.isLazy=function(n){return Ag(n)===QW};Ns.isMemo=function(n){return Ag(n)===YW};Ns.isPortal=function(n){return Ag(n)===rde};Ns.isProfiler=function(n){return Ag(n)===zW};Ns.isStrictMode=function(n){return Ag(n)===WW};Ns.isSuspense=function(n){return Ag(n)===GW};Ns.isValidElementType=function(n){return typeof n=="string"||typeof n=="function"||n===HW||n===qW||n===zW||n===WW||n===GW||n===$lt||typeof n=="object"&&n!==null&&(n.$$typeof===QW||n.$$typeof===YW||n.$$typeof===jW||n.$$typeof===UW||n.$$typeof===KW||n.$$typeof===Hlt||n.$$typeof===Wlt||n.$$typeof===zlt||n.$$typeof===Vlt)};Ns.typeOf=Ag;RMe.exports=Ns;var jlt=RMe.exports,sde=jlt,Ult={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},qlt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Klt={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},OMe={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ade={};ade[sde.ForwardRef]=Klt;ade[sde.Memo]=OMe;function N1e(n){return sde.isMemo(n)?OMe:ade[n.$$typeof]||Ult}var Glt=Object.defineProperty,Ylt=Object.getOwnPropertyNames,O1e=Object.getOwnPropertySymbols,Qlt=Object.getOwnPropertyDescriptor,Xlt=Object.getPrototypeOf,P1e=Object.prototype;function PMe(n,e,t){if(typeof e!="string"){if(P1e){var i=Xlt(e);i&&i!==P1e&&PMe(n,i,t)}var r=Ylt(e);O1e&&(r=r.concat(O1e(e)));for(var o=N1e(n),s=N1e(e),a=0;ae(r(...o)))}return t}function Vee(n){return function(t){const i=n(t);function r(){return i}return r.dependsOnOwnProps=!1,r}}function F1e(n){return n.dependsOnOwnProps?!!n.dependsOnOwnProps:n.length!==1}function BMe(n,e){return function(i,{displayName:r}){const o=function(a,l){return o.dependsOnOwnProps?o.mapToProps(a,l):o.mapToProps(a,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(a,l){o.mapToProps=n,o.dependsOnOwnProps=F1e(n);let c=o(a,l);return typeof c=="function"&&(o.mapToProps=c,o.dependsOnOwnProps=F1e(c),c=o(a,l)),c},o}}function ude(n,e){return(t,i)=>{throw new Error(`Invalid value of type ${typeof n} for ${e} argument when connecting component ${i.wrappedComponentName}.`)}}function sct(n){return n&&typeof n=="object"?Vee(e=>oct(n,e)):n?typeof n=="function"?BMe(n):ude(n,"mapDispatchToProps"):Vee(e=>({dispatch:e}))}function act(n){return n?typeof n=="function"?BMe(n):ude(n,"mapStateToProps"):Vee(()=>({}))}function lct(n,e,t){return rt({},t,n,e)}function cct(n){return function(t,{displayName:i,areMergedPropsEqual:r}){let o=!1,s;return function(l,c,u){const d=n(l,c,u);return o?r(d,s)||(s=d):(o=!0,s=d),s}}}function uct(n){return n?typeof n=="function"?cct(n):ude(n,"mergeProps"):()=>lct}function dct(){const n=Olt();let e=null,t=null;return{clear(){e=null,t=null},notify(){n(()=>{let i=e;for(;i;)i.callback(),i=i.next})},get(){let i=[],r=e;for(;r;)i.push(r),r=r.next;return i},subscribe(i){let r=!0,o=t={callback:i,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!r||e===null||(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}const B1e={notify(){},get:()=>[]};function $Me(n,e){let t,i=B1e,r=0,o=!1;function s(m){u();const _=i.subscribe(m);let v=!1;return()=>{v||(v=!0,_(),d())}}function a(){i.notify()}function l(){p.onStateChange&&p.onStateChange()}function c(){return o}function u(){r++,t||(t=e?e.addNestedSub(l):n.subscribe(l),i=dct())}function d(){r--,t&&r===0&&(t(),t=void 0,i.clear(),i=B1e)}function h(){o||(o=!0,u())}function g(){o&&(o=!1,d())}const p={addNestedSub:s,notifyNestedSubs:a,handleChangeWrapper:l,isSubscribed:c,trySubscribe:h,tryUnsubscribe:g,getListeners:()=>i};return p}const hct=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",R9=hct?w.useLayoutEffect:w.useEffect;function $1e(n,e){return n===e?n!==0||e!==0||1/n===1/e:n!==n&&e!==e}function _Y(n,e){if($1e(n,e))return!0;if(typeof n!="object"||n===null||typeof e!="object"||e===null)return!1;const t=Object.keys(n),i=Object.keys(e);if(t.length!==i.length)return!1;for(let r=0;r{VMe=n},pct=[null,null];function mct(n,e,t){R9(()=>n(...e),t)}function _ct(n,e,t,i,r,o){n.current=i,t.current=!1,r.current&&(r.current=null,o())}function vct(n,e,t,i,r,o,s,a,l,c,u){if(!n)return()=>{};let d=!1,h=null;const g=()=>{if(d||!a.current)return;const m=e.getState();let _,v;try{_=i(m,r.current)}catch(b){v=b,h=b}v||(h=null),_===o.current?s.current||c():(o.current=_,l.current=_,s.current=!0,u())};return t.onStateChange=g,t.trySubscribe(),g(),()=>{if(d=!0,t.tryUnsubscribe(),t.onStateChange=null,h)throw h}}function bct(n,e){return n===e}function HMe(n,e,t,{pure:i,areStatesEqual:r=bct,areOwnPropsEqual:o=_Y,areStatePropsEqual:s=_Y,areMergedPropsEqual:a=_Y,forwardRef:l=!1,context:c=l0}={}){const u=c,d=act(n),h=sct(e),g=uct(t),p=!!n;return _=>{const v=_.displayName||_.name||"Component",b=`Connect(${v})`,y={shouldHandleStateChanges:p,displayName:b,wrappedComponentName:v,WrappedComponent:_,initMapStateToProps:d,initMapDispatchToProps:h,initMergeProps:g,areStatesEqual:r,areStatePropsEqual:s,areOwnPropsEqual:o,areMergedPropsEqual:a};function C(I){const[L,D,R]=w.useMemo(()=>{const{reactReduxForwardedRef:kt}=I,Vt=nde(I,fct);return[I.context,kt,Vt]},[I]),P=w.useMemo(()=>L&&L.Consumer&&tct.isContextConsumer(w.createElement(L.Consumer,null))?L:u,[L,u]),M=w.useContext(P),O=!!I.store&&!!I.store.getState&&!!I.store.dispatch,B=!!M&&!!M.store,F=O?I.store:M.store,H=B?M.getServerState:F.getState,V=w.useMemo(()=>rct(F.dispatch,y),[F]),[$,j]=w.useMemo(()=>{if(!p)return pct;const kt=$Me(F,O?void 0:M.subscription),Vt=kt.notifyNestedSubs.bind(kt);return[kt,Vt]},[F,O,M]),Y=w.useMemo(()=>O?M:rt({},M,{subscription:$}),[O,M,$]),ne=w.useRef(),se=w.useRef(R),he=w.useRef(),xe=w.useRef(!1);w.useRef(!1);const _e=w.useRef(!1),Ie=w.useRef();R9(()=>(_e.current=!0,()=>{_e.current=!1}),[]);const Re=w.useMemo(()=>()=>he.current&&R===se.current?he.current:V(F.getState(),R),[F,R]),Ye=w.useMemo(()=>Vt=>$?vct(p,F,$,V,se,ne,xe,_e,he,j,Vt):()=>{},[$]);mct(_ct,[se,ne,xe,R,he,j]);let Ze;try{Ze=VMe(Ye,Re,H?()=>V(H(),R):Re)}catch(kt){throw Ie.current&&(kt.message+=` The error may be correlated with this previous error: ${Ie.current.stack} `),kt}R9(()=>{Ie.current=void 0,he.current=void 0,ne.current=Ze});const tt=w.useMemo(()=>w.createElement(_,rt({},Ze,{ref:D})),[D,_,Ze]);return w.useMemo(()=>p?w.createElement(P.Provider,{value:Y},tt):tt,[P,tt,Y])}const k=w.memo(C);if(k.WrappedComponent=_,k.displayName=C.displayName=b,l){const L=w.forwardRef(function(R,P){return w.createElement(k,rt({},R,{reactReduxForwardedRef:P}))});return L.displayName=b,L.WrappedComponent=_,M1e(L,_)}return M1e(k,_)}}function WMe({store:n,context:e,children:t,serverState:i,stabilityCheck:r="once",noopCheck:o="once"}){const s=w.useMemo(()=>{const c=$Me(n);return{store:n,subscription:c,getServerState:i?()=>i:void 0,stabilityCheck:r,noopCheck:o}},[n,i,r,o]),a=w.useMemo(()=>n.getState(),[n]);R9(()=>{const{subscription:c}=s;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),a!==n.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[s,a]);const l=e||l0;return w.createElement(l.Provider,{value:s},t)}function zMe(n=l0){const e=n===l0?LMe:tde(n);return function(){const{store:i}=e();return i}}const jMe=zMe();function yct(n=l0){const e=n===l0?jMe:zMe(n);return function(){return e().dispatch}}const Ci=yct();Mlt(Tst.useSyncExternalStoreWithSelector);gct(wOe.useSyncExternalStore);Nlt(Yp.unstable_batchedUpdates);/** * Invoice Ninja (https://invoiceninja.com). * * @link https://github.com/invoiceninja/invoiceninja source repository * * @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com) * * @license https://www.elastic.co/licensing/elastic-license */function Ti(){return Tl(n=>n.companyUsers.changes.company)}var N9={exports:{}};/** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */N9.exports;(function(n,e){(function(){var t,i="4.17.21",r=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",c=500,u="__lodash_placeholder__",d=1,h=2,g=4,p=1,m=2,_=1,v=2,b=4,y=8,C=16,x=32,k=64,I=128,L=256,D=512,R=30,P="...",M=800,O=16,B=1,F=2,H=3,V=1/0,$=9007199254740991,j=17976931348623157e292,Y=0/0,ne=4294967295,se=ne-1,he=ne>>>1,xe=[["ary",I],["bind",_],["bindKey",v],["curry",y],["curryRight",C],["flip",D],["partial",x],["partialRight",k],["rearg",L]],_e="[object Arguments]",Ie="[object Array]",Re="[object AsyncFunction]",Ye="[object Boolean]",Ze="[object Date]",tt="[object DOMException]",Be="[object Error]",kt="[object Function]",Vt="[object GeneratorFunction]",xt="[object Map]",Kt="[object Number]",cn="[object Null]",wn="[object Object]",on="[object Promise]",Zt="[object Proxy]",pe="[object RegExp]",me="[object Set]",Z="[object String]",G="[object Symbol]",K="[object Undefined]",oe="[object WeakMap]",le="[object WeakSet]",we="[object ArrayBuffer]",Me="[object DataView]",ft="[object Float32Array]",Nt="[object Float64Array]",Yt="[object Int8Array]",He="[object Int16Array]",Dt="[object Int32Array]",ae="[object Uint8Array]",Se="[object Uint8ClampedArray]",Xe="[object Uint16Array]",wt="[object Uint32Array]",Tt=/\b__p \+= '';/g,zt=/\b(__p \+=) '' \+/g,Mt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,On=/&(?:amp|lt|gt|quot|#39);/g,Ni=/[&<>"']/g,xn=RegExp(On.source),un=RegExp(Ni.source),ei=/<%-([\s\S]+?)%>/g,li=/<%([\s\S]+?)%>/g,xi=/<%=([\s\S]+?)%>/g,br=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Wr=/^\w*$/,ko=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oo=/[\\^$.*+?()[\]{}|]/g,ea=RegExp(oo.source),xr=/^\s+/,Hi=/\s/,Ht=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Qn=/\{\n\/\* \[wrapped with (.+)\] \*/,Fr=/,? & /,Oe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,lt=/[()=,{}\[\]\/\s]/,It=/\\(\\)?/g,tn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Je=/\w*$/,ve=/^[-+]0x[0-9a-f]+$/i,je=/^0b[01]+$/i,Le=/^\[object .+?Constructor\]$/,fe=/^0o[0-7]+$/i,Fe=/^(?:0|[1-9]\d*)$/,ot=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ue=/($^)/,Qt=/['\n\r\u2028\u2029\\]/g,gn="\\ud800-\\udfff",Pn="\\u0300-\\u036f",Zn="\\ufe20-\\ufe2f",wi="\\u20d0-\\u20ff",Sn=Pn+Zn+wi,Xt="\\u2700-\\u27bf",ti="a-z\\xdf-\\xf6\\xf8-\\xff",or="\\xac\\xb1\\xd7\\xf7",Dr="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",xa="\\u2000-\\u206f",pa=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ba="A-Z\\xc0-\\xd6\\xd8-\\xde",Uo="\\ufe0e\\ufe0f",Xo=or+Dr+xa+pa,qo="['’]",Ll="["+gn+"]",yc="["+Xo+"]",ci="["+Sn+"]",lo="\\d+",To="["+Xt+"]",Bs="["+ti+"]",ns="[^"+gn+Xo+lo+Xt+ti+Ba+"]",$s="\\ud83c[\\udffb-\\udfff]",_o="(?:"+ci+"|"+$s+")",Ar="[^"+gn+"]",Gr="(?:\\ud83c[\\udde6-\\uddff]){2}",hr="[\\ud800-\\udbff][\\udc00-\\udfff]",yr="["+Ba+"]",zr="\\u200d",Fi="(?:"+Bs+"|"+ns+")",Hn="(?:"+yr+"|"+ns+")",ni="(?:"+qo+"(?:d|ll|m|re|s|t|ve))?",Ln="(?:"+qo+"(?:D|LL|M|RE|S|T|VE))?",Wn=_o+"?",ii="["+Uo+"]?",Oi="(?:"+zr+"(?:"+[Ar,Gr,hr].join("|")+")"+ii+Wn+")*",sn="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",an="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Dn=ii+Wn+Oi,it="(?:"+[To,Gr,hr].join("|")+")"+Dn,vt="(?:"+[Ar+ci+"?",ci,Gr,hr,Ll].join("|")+")",Jt=RegExp(qo,"g"),Nn=RegExp(ci,"g"),En=RegExp($s+"(?="+$s+")|"+vt+Dn,"g"),Kn=RegExp([yr+"?"+Bs+"+"+ni+"(?="+[yc,yr,"$"].join("|")+")",Hn+"+"+Ln+"(?="+[yc,yr+Fi,"$"].join("|")+")",yr+"?"+Fi+"+"+ni,yr+"+"+Ln,an,sn,lo,it].join("|"),"g"),Cr=RegExp("["+zr+gn+Sn+Uo+"]"),Yr=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Br=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],$a=-1,fr={};fr[ft]=fr[Nt]=fr[Yt]=fr[He]=fr[Dt]=fr[ae]=fr[Se]=fr[Xe]=fr[wt]=!0,fr[_e]=fr[Ie]=fr[we]=fr[Ye]=fr[Me]=fr[Ze]=fr[Be]=fr[kt]=fr[xt]=fr[Kt]=fr[wn]=fr[pe]=fr[me]=fr[Z]=fr[oe]=!1;var qi={};qi[_e]=qi[Ie]=qi[we]=qi[Me]=qi[Ye]=qi[Ze]=qi[ft]=qi[Nt]=qi[Yt]=qi[He]=qi[Dt]=qi[xt]=qi[Kt]=qi[wn]=qi[pe]=qi[me]=qi[Z]=qi[G]=qi[ae]=qi[Se]=qi[Xe]=qi[wt]=!0,qi[Be]=qi[kt]=qi[oe]=!1;var Vs={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},zc={"&":"&","<":"<",">":">",'"':""","'":"'"},_u={"&":"&","<":"<",">":">",""":'"',"'":"'"},Zo={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Cc=parseFloat,tc=parseInt,F_=typeof Co=="object"&&Co&&Co.Object===Object&&Co,uS=typeof self=="object"&&self&&self.Object===Object&&self,cl=F_||uS||Function("return this")(),Db=e&&!e.nodeType&&e,_h=Db&&!0&&n&&!n.nodeType&&n,B_=_h&&_h.exports===Db,nd=B_&&F_.process,jc=function(){try{var ze=_h&&_h.require&&_h.require("util").types;return ze||nd&&nd.binding&&nd.binding("util")}catch{}}(),dS=jc&&jc.isArrayBuffer,$_=jc&&jc.isDate,Ab=jc&&jc.isMap,Vg=jc&&jc.isRegExp,eF=jc&&jc.isSet,tF=jc&&jc.isTypedArray;function Md(ze,At,mt){switch(mt.length){case 0:return ze.call(At);case 1:return ze.call(At,mt[0]);case 2:return ze.call(At,mt[0],mt[1]);case 3:return ze.call(At,mt[0],mt[1],mt[2])}return ze.apply(At,mt)}function jK(ze,At,mt,oi){for(var Nr=-1,rs=ze==null?0:ze.length;++Nr-1}function Yk(ze,At,mt){for(var oi=-1,Nr=ze==null?0:ze.length;++oi-1;);return mt}function rd(ze,At){for(var mt=ze.length;mt--&&Rb(At,ze[mt],0)>-1;);return mt}function LZe(ze,At){for(var mt=ze.length,oi=0;mt--;)ze[mt]===At&&++oi;return oi}var DZe=jr(Vs),AZe=jr(zc);function RZe(ze){return"\\"+Zo[ze]}function NZe(ze,At){return ze==null?t:ze[At]}function Jk(ze){return Cr.test(ze)}function OZe(ze){return Yr.test(ze)}function PZe(ze){for(var At,mt=[];!(At=ze.next()).done;)mt.push(At.value);return mt}function YK(ze){var At=-1,mt=Array(ze.size);return ze.forEach(function(oi,Nr){mt[++At]=[Nr,oi]}),mt}function Rbe(ze,At){return function(mt){return ze(At(mt))}}function $0(ze,At){for(var mt=-1,oi=ze.length,Nr=0,rs=[];++mt-1}function wJe(S,T){var A=this.__data__,W=CF(A,S);return W<0?(++this.size,A.push([S,T])):A[W][1]=T,this}Nb.prototype.clear=vJe,Nb.prototype.delete=bJe,Nb.prototype.get=yJe,Nb.prototype.has=CJe,Nb.prototype.set=wJe;function Ob(S){var T=-1,A=S==null?0:S.length;for(this.clear();++T=T?S:T)),S}function Ug(S,T,A,W,Q,de){var Ee,Ne=T&d,qe=T&h,Wt=T&g;if(A&&(Ee=Q?A(S,W,Q,de):A(S)),Ee!==t)return Ee;if(!Ga(S))return S;var jt=Pr(S);if(jt){if(Ee=Iet(S),!Ne)return bh(S,Ee)}else{var rn=sd(S),zn=rn==kt||rn==Vt;if(U0(S))return gye(S,Ne);if(rn==wn||rn==_e||zn&&!Q){if(Ee=qe||zn?{}:Nye(S),!Ne)return qe?met(S,BJe(Ee,S)):pet(S,jbe(Ee,S))}else{if(!qi[rn])return Q?S:{};Ee=Let(S,rn,Ne)}}de||(de=new hm);var bi=de.get(S);if(bi)return bi;de.set(S,Ee),l0e(S)?S.forEach(function(ar){Ee.add(Ug(ar,T,A,ar,S,de))}):s0e(S)&&S.forEach(function(ar,co){Ee.set(co,Ug(ar,T,A,co,S,de))});var sr=Wt?qe?CG:yG:qe?Ch:qc,Qr=jt?t:sr(S);return id(Qr||S,function(ar,co){Qr&&(co=ar,ar=S[co]),YA(Ee,co,Ug(ar,T,A,co,S,de))}),Ee}function $Je(S){var T=qc(S);return function(A){return Ube(A,S,T)}}function Ube(S,T,A){var W=A.length;if(S==null)return!W;for(S=ta(S);W--;){var Q=A[W],de=T[Q],Ee=S[Q];if(Ee===t&&!(Q in S)||!de(Ee))return!1}return!0}function qbe(S,T,A){if(typeof S!="function")throw new zg(s);return nR(function(){S.apply(t,A)},T)}function QA(S,T,A,W){var Q=-1,de=xf,Ee=!0,Ne=S.length,qe=[],Wt=T.length;if(!Ne)return qe;A&&(T=ma(T,Ka(A))),W?(de=Yk,Ee=!1):T.length>=r&&(de=um,Ee=!1,T=new gS(T));e:for(;++QQ?0:Q+A),W=W===t||W>Q?Q:Ur(W),W<0&&(W+=Q),W=A>W?0:u0e(W);A0&&A(Ne)?T>1?vu(Ne,T-1,A,W,Q):cm(Q,Ne):W||(Q[Q.length]=Ne)}return Q}var nG=yye(),Ybe=yye(!0);function H_(S,T){return S&&nG(S,T,qc)}function iG(S,T){return S&&Ybe(S,T,qc)}function SF(S,T){return Hg(T,function(A){return $b(S[A])})}function mS(S,T){T=z0(T,S);for(var A=0,W=T.length;S!=null&&AT}function WJe(S,T){return S!=null&&Es.call(S,T)}function zJe(S,T){return S!=null&&T in ta(S)}function jJe(S,T,A){return S>=od(T,A)&&S=120&&jt.length>=120)?new gS(Ee&&jt):t}jt=S[0];var rn=-1,zn=Ne[0];e:for(;++rn-1;)Ne!==S&&gF.call(Ne,qe,1),gF.call(S,qe,1);return S}function sye(S,T){for(var A=S?T.length:0,W=A-1;A--;){var Q=T[A];if(A==W||Q!==de){var de=Q;Bb(Q)?gF.call(S,Q,1):fG(S,Q)}}return S}function uG(S,T){return S+_F(Vbe()*(T-S+1))}function iet(S,T,A,W){for(var Q=-1,de=Sc(mF((T-S)/(A||1)),0),Ee=mt(de);de--;)Ee[W?de:++Q]=S,S+=A;return Ee}function dG(S,T){var A="";if(!S||T<1||T>$)return A;do T%2&&(A+=S),T=_F(T/2),T&&(S+=S);while(T);return A}function no(S,T){return IG(Mye(S,T,wh),S+"")}function ret(S){return zbe(uT(S))}function oet(S,T){var A=uT(S);return OF(A,pS(T,0,A.length))}function JA(S,T,A,W){if(!Ga(S))return S;T=z0(T,S);for(var Q=-1,de=T.length,Ee=de-1,Ne=S;Ne!=null&&++QQ?0:Q+T),A=A>Q?Q:A,A<0&&(A+=Q),Q=T>A?0:A-T>>>0,T>>>=0;for(var de=mt(Q);++W>>1,Ee=S[de];Ee!==null&&!Tf(Ee)&&(A?Ee<=T:Ee=r){var Wt=T?null:yet(S);if(Wt)return sF(Wt);Ee=!1,Q=um,qe=new gS}else qe=T?[]:Ne;e:for(;++W=W?S:qg(S,T,A)}var fye=QZe||function(S){return cl.clearTimeout(S)};function gye(S,T){if(T)return S.slice();var A=S.length,W=Pbe?Pbe(A):new S.constructor(A);return S.copy(W),W}function _G(S){var T=new S.constructor(S.byteLength);return new hF(T).set(new hF(S)),T}function det(S,T){var A=T?_G(S.buffer):S.buffer;return new S.constructor(A,S.byteOffset,S.byteLength)}function het(S){var T=new S.constructor(S.source,Je.exec(S));return T.lastIndex=S.lastIndex,T}function fet(S){return GA?ta(GA.call(S)):{}}function pye(S,T){var A=T?_G(S.buffer):S.buffer;return new S.constructor(A,S.byteOffset,S.length)}function mye(S,T){if(S!==T){var A=S!==t,W=S===null,Q=S===S,de=Tf(S),Ee=T!==t,Ne=T===null,qe=T===T,Wt=Tf(T);if(!Ne&&!Wt&&!de&&S>T||de&&Ee&&qe&&!Ne&&!Wt||W&&Ee&&qe||!A&&qe||!Q)return 1;if(!W&&!de&&!Wt&&S=Ne)return qe;var Wt=A[W];return qe*(Wt=="desc"?-1:1)}}return S.index-T.index}function _ye(S,T,A,W){for(var Q=-1,de=S.length,Ee=A.length,Ne=-1,qe=T.length,Wt=Sc(de-Ee,0),jt=mt(qe+Wt),rn=!W;++Ne1?A[Q-1]:t,Ee=Q>2?A[2]:t;for(de=S.length>3&&typeof de=="function"?(Q--,de):t,Ee&&Bd(A[0],A[1],Ee)&&(de=Q<3?t:de,Q=1),T=ta(T);++W-1?Q[de?T[Ee]:Ee]:t}}function Sye(S){return Fb(function(T){var A=T.length,W=A,Q=jg.prototype.thru;for(S&&T.reverse();W--;){var de=T[W];if(typeof de!="function")throw new zg(s);if(Q&&!Ee&&RF(de)=="wrapper")var Ee=new jg([],!0)}for(W=Ee?W:A;++W1&&Io.reverse(),jt&&qeNe))return!1;var Wt=de.get(S),jt=de.get(T);if(Wt&&jt)return Wt==T&&jt==S;var rn=-1,zn=!0,bi=A&m?new gS:t;for(de.set(S,T),de.set(T,S);++rn1?"& ":"")+T[W],T=T.join(A>2?", ":" "),S.replace(Ht,`{ /* [wrapped with `+T+`] */ `)}function Aet(S){return Pr(S)||bS(S)||!!(Bbe&&S&&S[Bbe])}function Bb(S,T){var A=typeof S;return T=T??$,!!T&&(A=="number"||A!="symbol"&&Fe.test(S))&&S>-1&&S%1==0&&S0){if(++T>=M)return arguments[0]}else T=0;return S.apply(t,arguments)}}function OF(S,T){var A=-1,W=S.length,Q=W-1;for(T=T===t?W:T;++A1?S[T-1]:t;return A=typeof A=="function"?(S.pop(),A):t,Gye(S,A)});function Yye(S){var T=ce(S);return T.__chain__=!0,T}function Wtt(S,T){return T(S),S}function PF(S,T){return T(S)}var ztt=Fb(function(S){var T=S.length,A=T?S[0]:0,W=this.__wrapped__,Q=function(de){return tG(de,S)};return T>1||this.__actions__.length||!(W instanceof vo)||!Bb(A)?this.thru(Q):(W=W.slice(A,+A+(T?1:0)),W.__actions__.push({func:PF,args:[Q],thisArg:t}),new jg(W,this.__chain__).thru(function(de){return T&&!de.length&&de.push(t),de}))});function jtt(){return Yye(this)}function Utt(){return new jg(this.value(),this.__chain__)}function qtt(){this.__values__===t&&(this.__values__=c0e(this.value()));var S=this.__index__>=this.__values__.length,T=S?t:this.__values__[this.__index__++];return{done:S,value:T}}function Ktt(){return this}function Gtt(S){for(var T,A=this;A instanceof yF;){var W=Wye(A);W.__index__=0,W.__values__=t,T?Q.__wrapped__=W:T=W;var Q=W;A=A.__wrapped__}return Q.__wrapped__=S,T}function Ytt(){var S=this.__wrapped__;if(S instanceof vo){var T=S;return this.__actions__.length&&(T=new vo(this)),T=T.reverse(),T.__actions__.push({func:PF,args:[LG],thisArg:t}),new jg(T,this.__chain__)}return this.thru(LG)}function Qtt(){return dye(this.__wrapped__,this.__actions__)}var Xtt=TF(function(S,T,A){Es.call(S,A)?++S[A]:Pb(S,A,1)});function Ztt(S,T,A){var W=Pr(S)?nF:VJe;return A&&Bd(S,T,A)&&(T=t),W(S,Ji(T,3))}function Jtt(S,T){var A=Pr(S)?Hg:Gbe;return A(S,Ji(T,3))}var ent=wye(zye),tnt=wye(jye);function nnt(S,T){return vu(MF(S,T),1)}function int(S,T){return vu(MF(S,T),V)}function rnt(S,T,A){return A=A===t?1:Ur(A),vu(MF(S,T),A)}function Qye(S,T){var A=Pr(S)?id:H0;return A(S,Ji(T,3))}function Xye(S,T){var A=Pr(S)?UK:Kbe;return A(S,Ji(T,3))}var ont=TF(function(S,T,A){Es.call(S,A)?S[A].push(T):Pb(S,A,[T])});function snt(S,T,A,W){S=yh(S)?S:uT(S),A=A&&!W?Ur(A):0;var Q=S.length;return A<0&&(A=Sc(Q+A,0)),HF(S)?A<=Q&&S.indexOf(T,A)>-1:!!Q&&Rb(S,T,A)>-1}var ant=no(function(S,T,A){var W=-1,Q=typeof T=="function",de=yh(S)?mt(S.length):[];return H0(S,function(Ee){de[++W]=Q?Md(T,Ee,A):XA(Ee,T,A)}),de}),lnt=TF(function(S,T,A){Pb(S,A,T)});function MF(S,T){var A=Pr(S)?ma:eye;return A(S,Ji(T,3))}function cnt(S,T,A,W){return S==null?[]:(Pr(T)||(T=T==null?[]:[T]),A=W?t:A,Pr(A)||(A=A==null?[]:[A]),rye(S,T,A))}var unt=TF(function(S,T,A){S[A?0:1].push(T)},function(){return[[],[]]});function dnt(S,T,A){var W=Pr(S)?Qk:jn,Q=arguments.length<3;return W(S,Ji(T,4),A,Q,H0)}function hnt(S,T,A){var W=Pr(S)?qK:jn,Q=arguments.length<3;return W(S,Ji(T,4),A,Q,Kbe)}function fnt(S,T){var A=Pr(S)?Hg:Gbe;return A(S,$F(Ji(T,3)))}function gnt(S){var T=Pr(S)?zbe:ret;return T(S)}function pnt(S,T,A){(A?Bd(S,T,A):T===t)?T=1:T=Ur(T);var W=Pr(S)?PJe:oet;return W(S,T)}function mnt(S){var T=Pr(S)?MJe:aet;return T(S)}function _nt(S){if(S==null)return 0;if(yh(S))return HF(S)?eT(S):S.length;var T=sd(S);return T==xt||T==me?S.size:aG(S).length}function vnt(S,T,A){var W=Pr(S)?HA:cet;return A&&Bd(S,T,A)&&(T=t),W(S,Ji(T,3))}var bnt=no(function(S,T){if(S==null)return[];var A=T.length;return A>1&&Bd(S,T[0],T[1])?T=[]:A>2&&Bd(T[0],T[1],T[2])&&(T=[T[0]]),rye(S,vu(T,1),[])}),FF=XZe||function(){return cl.Date.now()};function ynt(S,T){if(typeof T!="function")throw new zg(s);return S=Ur(S),function(){if(--S<1)return T.apply(this,arguments)}}function Zye(S,T,A){return T=A?t:T,T=S&&T==null?S.length:T,Mb(S,I,t,t,t,t,T)}function Jye(S,T){var A;if(typeof T!="function")throw new zg(s);return S=Ur(S),function(){return--S>0&&(A=T.apply(this,arguments)),S<=1&&(T=t),A}}var AG=no(function(S,T,A){var W=_;if(A.length){var Q=$0(A,lT(AG));W|=x}return Mb(S,W,T,A,Q)}),e0e=no(function(S,T,A){var W=_|v;if(A.length){var Q=$0(A,lT(e0e));W|=x}return Mb(T,W,S,A,Q)});function t0e(S,T,A){T=A?t:T;var W=Mb(S,y,t,t,t,t,t,T);return W.placeholder=t0e.placeholder,W}function n0e(S,T,A){T=A?t:T;var W=Mb(S,C,t,t,t,t,t,T);return W.placeholder=n0e.placeholder,W}function i0e(S,T,A){var W,Q,de,Ee,Ne,qe,Wt=0,jt=!1,rn=!1,zn=!0;if(typeof S!="function")throw new zg(s);T=Gg(T)||0,Ga(A)&&(jt=!!A.leading,rn="maxWait"in A,de=rn?Sc(Gg(A.maxWait)||0,T):de,zn="trailing"in A?!!A.trailing:zn);function bi(Al){var gm=W,Hb=Q;return W=Q=t,Wt=Al,Ee=S.apply(Hb,gm),Ee}function sr(Al){return Wt=Al,Ne=nR(co,T),jt?bi(Al):Ee}function Qr(Al){var gm=Al-qe,Hb=Al-Wt,w0e=T-gm;return rn?od(w0e,de-Hb):w0e}function ar(Al){var gm=Al-qe,Hb=Al-Wt;return qe===t||gm>=T||gm<0||rn&&Hb>=de}function co(){var Al=FF();if(ar(Al))return Io(Al);Ne=nR(co,Qr(Al))}function Io(Al){return Ne=t,zn&&W?bi(Al):(W=Q=t,Ee)}function If(){Ne!==t&&fye(Ne),Wt=0,W=qe=Q=Ne=t}function $d(){return Ne===t?Ee:Io(FF())}function Lf(){var Al=FF(),gm=ar(Al);if(W=arguments,Q=this,qe=Al,gm){if(Ne===t)return sr(qe);if(rn)return fye(Ne),Ne=nR(co,T),bi(qe)}return Ne===t&&(Ne=nR(co,T)),Ee}return Lf.cancel=If,Lf.flush=$d,Lf}var Cnt=no(function(S,T){return qbe(S,1,T)}),wnt=no(function(S,T,A){return qbe(S,Gg(T)||0,A)});function Snt(S){return Mb(S,D)}function BF(S,T){if(typeof S!="function"||T!=null&&typeof T!="function")throw new zg(s);var A=function(){var W=arguments,Q=T?T.apply(this,W):W[0],de=A.cache;if(de.has(Q))return de.get(Q);var Ee=S.apply(this,W);return A.cache=de.set(Q,Ee)||de,Ee};return A.cache=new(BF.Cache||Ob),A}BF.Cache=Ob;function $F(S){if(typeof S!="function")throw new zg(s);return function(){var T=arguments;switch(T.length){case 0:return!S.call(this);case 1:return!S.call(this,T[0]);case 2:return!S.call(this,T[0],T[1]);case 3:return!S.call(this,T[0],T[1],T[2])}return!S.apply(this,T)}}function Ent(S){return Jye(2,S)}var xnt=uet(function(S,T){T=T.length==1&&Pr(T[0])?ma(T[0],Ka(Ji())):ma(vu(T,1),Ka(Ji()));var A=T.length;return no(function(W){for(var Q=-1,de=od(W.length,A);++Q=T}),bS=Xbe(function(){return arguments}())?Xbe:function(S){return ul(S)&&Es.call(S,"callee")&&!Fbe.call(S,"callee")},Pr=mt.isArray,Vnt=dS?Ka(dS):qJe;function yh(S){return S!=null&&VF(S.length)&&!$b(S)}function Dl(S){return ul(S)&&yh(S)}function Hnt(S){return S===!0||S===!1||ul(S)&&Fd(S)==Ye}var U0=JZe||zG,Wnt=$_?Ka($_):KJe;function znt(S){return ul(S)&&S.nodeType===1&&!iR(S)}function jnt(S){if(S==null)return!0;if(yh(S)&&(Pr(S)||typeof S=="string"||typeof S.splice=="function"||U0(S)||cT(S)||bS(S)))return!S.length;var T=sd(S);if(T==xt||T==me)return!S.size;if(tR(S))return!aG(S).length;for(var A in S)if(Es.call(S,A))return!1;return!0}function Unt(S,T){return ZA(S,T)}function qnt(S,T,A){A=typeof A=="function"?A:t;var W=A?A(S,T):t;return W===t?ZA(S,T,t,A):!!W}function NG(S){if(!ul(S))return!1;var T=Fd(S);return T==Be||T==tt||typeof S.message=="string"&&typeof S.name=="string"&&!iR(S)}function Knt(S){return typeof S=="number"&&$be(S)}function $b(S){if(!Ga(S))return!1;var T=Fd(S);return T==kt||T==Vt||T==Re||T==Zt}function o0e(S){return typeof S=="number"&&S==Ur(S)}function VF(S){return typeof S=="number"&&S>-1&&S%1==0&&S<=$}function Ga(S){var T=typeof S;return S!=null&&(T=="object"||T=="function")}function ul(S){return S!=null&&typeof S=="object"}var s0e=Ab?Ka(Ab):YJe;function Gnt(S,T){return S===T||sG(S,T,SG(T))}function Ynt(S,T,A){return A=typeof A=="function"?A:t,sG(S,T,SG(T),A)}function Qnt(S){return a0e(S)&&S!=+S}function Xnt(S){if(Oet(S))throw new Nr(o);return Zbe(S)}function Znt(S){return S===null}function Jnt(S){return S==null}function a0e(S){return typeof S=="number"||ul(S)&&Fd(S)==Kt}function iR(S){if(!ul(S)||Fd(S)!=wn)return!1;var T=fF(S);if(T===null)return!0;var A=Es.call(T,"constructor")&&T.constructor;return typeof A=="function"&&A instanceof A&&cF.call(A)==KZe}var OG=Vg?Ka(Vg):QJe;function eit(S){return o0e(S)&&S>=-$&&S<=$}var l0e=eF?Ka(eF):XJe;function HF(S){return typeof S=="string"||!Pr(S)&&ul(S)&&Fd(S)==Z}function Tf(S){return typeof S=="symbol"||ul(S)&&Fd(S)==G}var cT=tF?Ka(tF):ZJe;function tit(S){return S===t}function nit(S){return ul(S)&&sd(S)==oe}function iit(S){return ul(S)&&Fd(S)==le}var rit=AF(lG),oit=AF(function(S,T){return S<=T});function c0e(S){if(!S)return[];if(yh(S))return HF(S)?dm(S):bh(S);if(jA&&S[jA])return PZe(S[jA]());var T=sd(S),A=T==xt?YK:T==me?sF:uT;return A(S)}function Vb(S){if(!S)return S===0?S:0;if(S=Gg(S),S===V||S===-V){var T=S<0?-1:1;return T*j}return S===S?S:0}function Ur(S){var T=Vb(S),A=T%1;return T===T?A?T-A:T:0}function u0e(S){return S?pS(Ur(S),0,ne):0}function Gg(S){if(typeof S=="number")return S;if(Tf(S))return Y;if(Ga(S)){var T=typeof S.valueOf=="function"?S.valueOf():S;S=Ga(T)?T+"":T}if(typeof S!="string")return S===0?S:+S;S=vh(S);var A=je.test(S);return A||fe.test(S)?tc(S.slice(2),A?2:8):ve.test(S)?Y:+S}function d0e(S){return W_(S,Ch(S))}function sit(S){return S?pS(Ur(S),-$,$):S===0?S:0}function hs(S){return S==null?"":kf(S)}var ait=sT(function(S,T){if(tR(T)||yh(T)){W_(T,qc(T),S);return}for(var A in T)Es.call(T,A)&&YA(S,A,T[A])}),h0e=sT(function(S,T){W_(T,Ch(T),S)}),WF=sT(function(S,T,A,W){W_(T,Ch(T),S,W)}),lit=sT(function(S,T,A,W){W_(T,qc(T),S,W)}),cit=Fb(tG);function uit(S,T){var A=oT(S);return T==null?A:jbe(A,T)}var dit=no(function(S,T){S=ta(S);var A=-1,W=T.length,Q=W>2?T[2]:t;for(Q&&Bd(T[0],T[1],Q)&&(W=1);++A1),de}),W_(S,CG(S),A),W&&(A=Ug(A,d|h|g,Cet));for(var Q=T.length;Q--;)fG(A,T[Q]);return A});function Lit(S,T){return g0e(S,$F(Ji(T)))}var Dit=Fb(function(S,T){return S==null?{}:tet(S,T)});function g0e(S,T){if(S==null)return{};var A=ma(CG(S),function(W){return[W]});return T=Ji(T),oye(S,A,function(W,Q){return T(W,Q[0])})}function Ait(S,T,A){T=z0(T,S);var W=-1,Q=T.length;for(Q||(Q=1,S=t);++WT){var W=S;S=T,T=W}if(A||S%1||T%1){var Q=Vbe();return od(S+Q*(T-S+Cc("1e-"+((Q+"").length-1))),T)}return uG(S,T)}var Wit=aT(function(S,T,A){return T=T.toLowerCase(),S+(A?_0e(T):T)});function _0e(S){return FG(hs(S).toLowerCase())}function v0e(S){return S=hs(S),S&&S.replace(ot,DZe).replace(Nn,"")}function zit(S,T,A){S=hs(S),T=kf(T);var W=S.length;A=A===t?W:pS(Ur(A),0,W);var Q=A;return A-=T.length,A>=0&&S.slice(A,Q)==T}function jit(S){return S=hs(S),S&&un.test(S)?S.replace(Ni,AZe):S}function Uit(S){return S=hs(S),S&&ea.test(S)?S.replace(oo,"\\$&"):S}var qit=aT(function(S,T,A){return S+(A?"-":"")+T.toLowerCase()}),Kit=aT(function(S,T,A){return S+(A?" ":"")+T.toLowerCase()}),Git=Cye("toLowerCase");function Yit(S,T,A){S=hs(S),T=Ur(T);var W=T?eT(S):0;if(!T||W>=T)return S;var Q=(T-W)/2;return DF(_F(Q),A)+S+DF(mF(Q),A)}function Qit(S,T,A){S=hs(S),T=Ur(T);var W=T?eT(S):0;return T&&W>>0,A?(S=hs(S),S&&(typeof T=="string"||T!=null&&!OG(T))&&(T=kf(T),!T&&Jk(S))?j0(dm(S),0,A):S.split(T,A)):[]}var irt=aT(function(S,T,A){return S+(A?" ":"")+FG(T)});function rrt(S,T,A){return S=hs(S),A=A==null?0:pS(Ur(A),0,S.length),T=kf(T),S.slice(A,A+T.length)==T}function ort(S,T,A){var W=ce.templateSettings;A&&Bd(S,T,A)&&(T=t),S=hs(S),T=WF({},T,W,Iye);var Q=WF({},T.imports,W.imports,Iye),de=qc(Q),Ee=Wg(Q,de),Ne,qe,Wt=0,jt=T.interpolate||Ue,rn="__p += '",zn=QK((T.escape||Ue).source+"|"+jt.source+"|"+(jt===xi?tn:Ue).source+"|"+(T.evaluate||Ue).source+"|$","g"),bi="//# sourceURL="+(Es.call(T,"sourceURL")?(T.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++$a+"]")+` `;S.replace(zn,function(ar,co,Io,If,$d,Lf){return Io||(Io=If),rn+=S.slice(Wt,Lf).replace(Qt,RZe),co&&(Ne=!0,rn+=`' + __e(`+co+`) + '`),$d&&(qe=!0,rn+=`'; `+$d+`; __p += '`),Io&&(rn+=`' + ((__t = (`+Io+`)) == null ? '' : __t) + '`),Wt=Lf+ar.length,ar}),rn+=`'; `;var sr=Es.call(T,"variable")&&T.variable;if(!sr)rn=`with (obj) { `+rn+` } `;else if(lt.test(sr))throw new Nr(a);rn=(qe?rn.replace(Tt,""):rn).replace(zt,"$1").replace(Mt,"$1;"),rn="function("+(sr||"obj")+`) { `+(sr?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(Ne?", __e = _.escape":"")+(qe?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+rn+`return __p }`;var Qr=y0e(function(){return rs(de,bi+"return "+rn).apply(t,Ee)});if(Qr.source=rn,NG(Qr))throw Qr;return Qr}function srt(S){return hs(S).toLowerCase()}function art(S){return hs(S).toUpperCase()}function lrt(S,T,A){if(S=hs(S),S&&(A||T===t))return vh(S);if(!S||!(T=kf(T)))return S;var W=dm(S),Q=dm(T),de=V_(W,Q),Ee=rd(W,Q)+1;return j0(W,de,Ee).join("")}function crt(S,T,A){if(S=hs(S),S&&(A||T===t))return S.slice(0,Nbe(S)+1);if(!S||!(T=kf(T)))return S;var W=dm(S),Q=rd(W,dm(T))+1;return j0(W,0,Q).join("")}function urt(S,T,A){if(S=hs(S),S&&(A||T===t))return S.replace(xr,"");if(!S||!(T=kf(T)))return S;var W=dm(S),Q=V_(W,dm(T));return j0(W,Q).join("")}function drt(S,T){var A=R,W=P;if(Ga(T)){var Q="separator"in T?T.separator:Q;A="length"in T?Ur(T.length):A,W="omission"in T?kf(T.omission):W}S=hs(S);var de=S.length;if(Jk(S)){var Ee=dm(S);de=Ee.length}if(A>=de)return S;var Ne=A-eT(W);if(Ne<1)return W;var qe=Ee?j0(Ee,0,Ne).join(""):S.slice(0,Ne);if(Q===t)return qe+W;if(Ee&&(Ne+=qe.length-Ne),OG(Q)){if(S.slice(Ne).search(Q)){var Wt,jt=qe;for(Q.global||(Q=QK(Q.source,hs(Je.exec(Q))+"g")),Q.lastIndex=0;Wt=Q.exec(jt);)var rn=Wt.index;qe=qe.slice(0,rn===t?Ne:rn)}}else if(S.indexOf(kf(Q),Ne)!=Ne){var zn=qe.lastIndexOf(Q);zn>-1&&(qe=qe.slice(0,zn))}return qe+W}function hrt(S){return S=hs(S),S&&xn.test(S)?S.replace(On,$Ze):S}var frt=aT(function(S,T,A){return S+(A?" ":"")+T.toUpperCase()}),FG=Cye("toUpperCase");function b0e(S,T,A){return S=hs(S),T=A?t:T,T===t?OZe(S)?WZe(S):GK(S):S.match(T)||[]}var y0e=no(function(S,T){try{return Md(S,t,T)}catch(A){return NG(A)?A:new Nr(A)}}),grt=Fb(function(S,T){return id(T,function(A){A=z_(A),Pb(S,A,AG(S[A],S))}),S});function prt(S){var T=S==null?0:S.length,A=Ji();return S=T?ma(S,function(W){if(typeof W[1]!="function")throw new zg(s);return[A(W[0]),W[1]]}):[],no(function(W){for(var Q=-1;++Q$)return[];var A=ne,W=od(S,ne);T=Ji(T),S-=ne;for(var Q=is(W,T);++A0||T<0)?new vo(A):(S<0?A=A.takeRight(-S):S&&(A=A.drop(S)),T!==t&&(T=Ur(T),A=T<0?A.dropRight(-T):A.take(T-S)),A)},vo.prototype.takeRightWhile=function(S){return this.reverse().takeWhile(S).reverse()},vo.prototype.toArray=function(){return this.take(ne)},H_(vo.prototype,function(S,T){var A=/^(?:filter|find|map|reject)|While$/.test(T),W=/^(?:head|last)$/.test(T),Q=ce[W?"take"+(T=="last"?"Right":""):T],de=W||/^find/.test(T);Q&&(ce.prototype[T]=function(){var Ee=this.__wrapped__,Ne=W?[1]:arguments,qe=Ee instanceof vo,Wt=Ne[0],jt=qe||Pr(Ee),rn=function(co){var Io=Q.apply(ce,cm([co],Ne));return W&&zn?Io[0]:Io};jt&&A&&typeof Wt=="function"&&Wt.length!=1&&(qe=jt=!1);var zn=this.__chain__,bi=!!this.__actions__.length,sr=de&&!zn,Qr=qe&&!bi;if(!de&&jt){Ee=Qr?Ee:new vo(this);var ar=S.apply(Ee,Ne);return ar.__actions__.push({func:PF,args:[rn],thisArg:t}),new jg(ar,zn)}return sr&&Qr?S.apply(this,Ne):(ar=this.thru(rn),sr?W?ar.value()[0]:ar.value():ar)})}),id(["pop","push","shift","sort","splice","unshift"],function(S){var T=aF[S],A=/^(?:push|sort|unshift)$/.test(S)?"tap":"thru",W=/^(?:pop|shift)$/.test(S);ce.prototype[S]=function(){var Q=arguments;if(W&&!this.__chain__){var de=this.value();return T.apply(Pr(de)?de:[],Q)}return this[A](function(Ee){return T.apply(Pr(Ee)?Ee:[],Q)})}}),H_(vo.prototype,function(S,T){var A=ce[T];if(A){var W=A.name+"";Es.call(rT,W)||(rT[W]=[]),rT[W].push({name:T,func:A})}}),rT[IF(t,v).name]=[{name:"wrapper",func:t}],vo.prototype.clone=uJe,vo.prototype.reverse=dJe,vo.prototype.value=hJe,ce.prototype.at=ztt,ce.prototype.chain=jtt,ce.prototype.commit=Utt,ce.prototype.next=qtt,ce.prototype.plant=Gtt,ce.prototype.reverse=Ytt,ce.prototype.toJSON=ce.prototype.valueOf=ce.prototype.value=Qtt,ce.prototype.first=ce.prototype.head,jA&&(ce.prototype[jA]=Ktt),ce},tT=zZe();_h?((_h.exports=tT)._=tT,Db._=tT):cl._=tT}).call(Co)})(N9,N9.exports);var Bn=N9.exports;/** * Invoice Ninja (https://invoiceninja.com). * * @link https://github.com/invoiceninja/invoiceninja source repository * * @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com) * * @license https://www.elastic.co/licensing/elastic-license */function vi(){var e;const n=Tl(t=>t.companyUsers);return(e=n.api[n.currentIndex])==null?void 0:e.company}function Cct(){const n=vi(),e=Ti();return()=>typeof e>"u"?!1:!Bn.isEqual(n,e)}var UMe={exports:{}};(function(n,e){(function(t,i){n.exports=i()})(Co,function(){var t=1e3,i=6e4,r=36e5,o="millisecond",s="second",a="minute",l="hour",c="day",u="week",d="month",h="quarter",g="year",p="date",m="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(B){var F=["th","st","nd","rd"],H=B%100;return"["+B+(F[(H-20)%10]||F[H]||F[0])+"]"}},y=function(B,F,H){var V=String(B);return!V||V.length>=F?B:""+Array(F+1-V.length).join(H)+B},C={s:y,z:function(B){var F=-B.utcOffset(),H=Math.abs(F),V=Math.floor(H/60),$=H%60;return(F<=0?"+":"-")+y(V,2,"0")+":"+y($,2,"0")},m:function B(F,H){if(F.date()1)return B(Y[0])}else{var ne=F.name;k[ne]=F,$=ne}return!V&&$&&(x=$),$||!V&&x},R=function(B,F){if(L(B))return B.clone();var H=typeof F=="object"?F:{};return H.date=B,H.args=arguments,new M(H)},P=C;P.l=D,P.i=L,P.w=function(B,F){return R(B,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var M=function(){function B(H){this.$L=D(H.locale,null,!0),this.parse(H),this.$x=this.$x||H.x||{},this[I]=!0}var F=B.prototype;return F.parse=function(H){this.$d=function(V){var $=V.date,j=V.utc;if($===null)return new Date(NaN);if(P.u($))return new Date;if($ instanceof Date)return new Date($);if(typeof $=="string"&&!/Z$/i.test($)){var Y=$.match(_);if(Y){var ne=Y[2]-1||0,se=(Y[7]||"0").substring(0,3);return j?new Date(Date.UTC(Y[1],ne,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,se)):new Date(Y[1],ne,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,se)}}return new Date($)}(H),this.init()},F.init=function(){var H=this.$d;this.$y=H.getFullYear(),this.$M=H.getMonth(),this.$D=H.getDate(),this.$W=H.getDay(),this.$H=H.getHours(),this.$m=H.getMinutes(),this.$s=H.getSeconds(),this.$ms=H.getMilliseconds()},F.$utils=function(){return P},F.isValid=function(){return this.$d.toString()!==m},F.isSame=function(H,V){var $=R(H);return this.startOf(V)<=$&&$<=this.endOf(V)},F.isAfter=function(H,V){return R(H)n.length)&&(e=n.length);for(var t=0,i=new Array(e);t1&&arguments[1]!==void 0?arguments[1]:{};Ua(this,n),this.init(e,t)}return qa(n,[{key:"init",value:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=i.prefix||"i18next:",this.logger=t||Ect,this.options=i,this.debug=i.debug}},{key:"setDebug",value:function(t){this.debug=t}},{key:"log",value:function(){for(var t=arguments.length,i=new Array(t),r=0;r1?i-1:0),o=1;o-1?a.replace(/###/g,"."):a}function r(){return!n||typeof n=="string"}for(var o=typeof e!="string"?[].concat(e):e.split(".");o.length>1;){if(r())return{};var s=i(o.shift());!n[s]&&t&&(n[s]=new t),Object.prototype.hasOwnProperty.call(n,s)?n=n[s]:n={}}return r()?{}:{obj:n,k:i(o.shift())}}function j1e(n,e,t){var i=hde(n,e,Object),r=i.obj,o=i.k;r[o]=t}function Tct(n,e,t,i){var r=hde(n,e,Object),o=r.obj,s=r.k;o[s]=o[s]||[],i&&(o[s]=o[s].concat(t)),i||o[s].push(t)}function P9(n,e){var t=hde(n,e),i=t.obj,r=t.k;if(i)return i[r]}function Ict(n,e,t){var i=P9(n,t);return i!==void 0?i:P9(e,t)}function XMe(n,e,t){for(var i in e)i!=="__proto__"&&i!=="constructor"&&(i in n?typeof n[i]=="string"||n[i]instanceof String||typeof e[i]=="string"||e[i]instanceof String?t&&(n[i]=e[i]):XMe(n[i],e[i],t):n[i]=e[i]);return n}function hT(n){return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Lct={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function Dct(n){return typeof n=="string"?n.replace(/[&<>"'\/]/g,function(e){return Lct[e]}):n}var az=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,Act=[" ",",","?","!",";"];function Rct(n,e,t){e=e||"",t=t||"";var i=Act.filter(function(a){return e.indexOf(a)<0&&t.indexOf(a)<0});if(i.length===0)return!0;var r=new RegExp("(".concat(i.map(function(a){return a==="?"?"\\?":a}).join("|"),")")),o=!r.test(n);if(!o){var s=n.indexOf(t);s>0&&!r.test(n.substring(0,s))&&(o=!0)}return o}function M9(n,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(n){if(n[e])return n[e];for(var i=e.split(t),r=n,o=0;oo+s;)s++,a=i.slice(o,o+s).join(t),l=r[a];if(l===void 0)return;if(l===null)return null;if(e.endsWith(a)){if(typeof l=="string")return l;if(a&&typeof l[a]=="string")return l[a]}var c=i.slice(o+s).join(t);return c?M9(l,c,t):void 0}r=r[i[o]]}return r}}function U1e(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,i)}return t}function s6(n){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var Pct=function(n){I_(t,n);var e=Nct(t);function t(i){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Ua(this,t),r=e.call(this),az&&KC.call(Sr(r)),r.data=i||{},r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.options.ignoreJSONStructure===void 0&&(r.options.ignoreJSONStructure=!0),r}return qa(t,[{key:"addNamespaces",value:function(r){this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}},{key:"removeNamespaces",value:function(r){var o=this.options.ns.indexOf(r);o>-1&&this.options.ns.splice(o,1)}},{key:"getResource",value:function(r,o,s){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,c=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure,u=[r,o];s&&typeof s!="string"&&(u=u.concat(s)),s&&typeof s=="string"&&(u=u.concat(l?s.split(l):s)),r.indexOf(".")>-1&&(u=r.split("."));var d=P9(this.data,u);return d||!c||typeof s!="string"?d:M9(this.data&&this.data[r]&&this.data[r][o],s,l)}},{key:"addResource",value:function(r,o,s,a){var l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},c=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator,u=[r,o];s&&(u=u.concat(c?s.split(c):s)),r.indexOf(".")>-1&&(u=r.split("."),a=o,o=u[1]),this.addNamespaces(o),j1e(this.data,u,a),l.silent||this.emit("added",r,o,s,a)}},{key:"addResources",value:function(r,o,s){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var l in s)(typeof s[l]=="string"||Object.prototype.toString.apply(s[l])==="[object Array]")&&this.addResource(r,o,l,s[l],{silent:!0});a.silent||this.emit("added",r,o,s)}},{key:"addResourceBundle",value:function(r,o,s,a,l){var c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},u=[r,o];r.indexOf(".")>-1&&(u=r.split("."),a=s,s=o,o=u[1]),this.addNamespaces(o);var d=P9(this.data,u)||{};a?XMe(d,s,l):d=s6(s6({},d),s),j1e(this.data,u,d),c.silent||this.emit("added",r,o,s)}},{key:"removeResourceBundle",value:function(r,o){this.hasResourceBundle(r,o)&&delete this.data[r][o],this.removeNamespaces(o),this.emit("removed",r,o)}},{key:"hasResourceBundle",value:function(r,o){return this.getResource(r,o)!==void 0}},{key:"getResourceBundle",value:function(r,o){return o||(o=this.options.defaultNS),this.options.compatibilityAPI==="v1"?s6(s6({},{}),this.getResource(r,o)):this.getResource(r,o)}},{key:"getDataByLanguage",value:function(r){return this.data[r]}},{key:"hasLanguageSomeTranslations",value:function(r){var o=this.getDataByLanguage(r),s=o&&Object.keys(o)||[];return!!s.find(function(a){return o[a]&&Object.keys(o[a]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),t}(KC),ZMe={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,i,r,o){var s=this;return e.forEach(function(a){s.processors[a]&&(t=s.processors[a].process(t,i,r,o))}),t}};function q1e(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,i)}return t}function cd(n){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var K1e={},G1e=function(n){I_(t,n);var e=Mct(t);function t(i){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Ua(this,t),r=e.call(this),az&&KC.call(Sr(r)),kct(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],i,Sr(r)),r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.logger=Iv.create("translator"),r}return qa(t,[{key:"changeLanguage",value:function(r){r&&(this.language=r)}},{key:"exists",value:function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(r==null)return!1;var s=this.resolve(r,o);return s&&s.res!==void 0}},{key:"extractFromKey",value:function(r,o){var s=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;s===void 0&&(s=":");var a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,l=o.ns||this.options.defaultNS||[],c=s&&r.indexOf(s)>-1,u=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!Rct(r,s,a);if(c&&!u){var d=r.match(this.interpolator.nestingRegexp);if(d&&d.length>0)return{key:r,namespaces:l};var h=r.split(s);(s!==a||s===a&&this.options.ns.indexOf(h[0])>-1)&&(l=h.shift()),r=h.join(a)}return typeof l=="string"&&(l=[l]),{key:r,namespaces:l}}},{key:"translate",value:function(r,o,s){var a=this;if(Er(o)!=="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),Er(o)==="object"&&(o=cd({},o)),o||(o={}),r==null)return"";Array.isArray(r)||(r=[String(r)]);var l=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,c=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,u=this.extractFromKey(r[r.length-1],o),d=u.key,h=u.namespaces,g=h[h.length-1],p=o.lng||this.language,m=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p&&p.toLowerCase()==="cimode"){if(m){var _=o.nsSeparator||this.options.nsSeparator;return l?{res:"".concat(g).concat(_).concat(d),usedKey:d,exactUsedKey:d,usedLng:p,usedNS:g}:"".concat(g).concat(_).concat(d)}return l?{res:d,usedKey:d,exactUsedKey:d,usedLng:p,usedNS:g}:d}var v=this.resolve(r,o),b=v&&v.res,y=v&&v.usedKey||d,C=v&&v.exactUsedKey||d,x=Object.prototype.toString.apply(b),k=["[object Number]","[object Function]","[object RegExp]"],I=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,L=!this.i18nFormat||this.i18nFormat.handleAsObject,D=typeof b!="string"&&typeof b!="boolean"&&typeof b!="number";if(L&&b&&D&&k.indexOf(x)<0&&!(typeof I=="string"&&x==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var R=this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,b,cd(cd({},o),{},{ns:h})):"key '".concat(d," (").concat(this.language,")' returned an object instead of string.");return l?(v.res=R,v):R}if(c){var P=x==="[object Array]",M=P?[]:{},O=P?C:y;for(var B in b)if(Object.prototype.hasOwnProperty.call(b,B)){var F="".concat(O).concat(c).concat(B);M[B]=this.translate(F,cd(cd({},o),{joinArrays:!1,ns:h})),M[B]===F&&(M[B]=b[B])}b=M}}else if(L&&typeof I=="string"&&x==="[object Array]")b=b.join(I),b&&(b=this.extendTranslation(b,r,o,s));else{var H=!1,V=!1,$=o.count!==void 0&&typeof o.count!="string",j=t.hasDefaultValue(o),Y=$?this.pluralResolver.getSuffix(p,o.count,o):"",ne=o["defaultValue".concat(Y)]||o.defaultValue;!this.isValidLookup(b)&&j&&(H=!0,b=ne),this.isValidLookup(b)||(V=!0,b=d);var se=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,he=se&&V?void 0:b,xe=j&&ne!==b&&this.options.updateMissing;if(V||H||xe){if(this.logger.log(xe?"updateKey":"missingKey",p,g,d,xe?ne:b),c){var _e=this.resolve(d,cd(cd({},o),{},{keySeparator:!1}));_e&&_e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var Ie=[],Re=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Re&&Re[0])for(var Ye=0;Ye1&&arguments[1]!==void 0?arguments[1]:{},a,l,c,u,d;return typeof r=="string"&&(r=[r]),r.forEach(function(h){if(!o.isValidLookup(a)){var g=o.extractFromKey(h,s),p=g.key;l=p;var m=g.namespaces;o.options.fallbackNS&&(m=m.concat(o.options.fallbackNS));var _=s.count!==void 0&&typeof s.count!="string",v=_&&!s.ordinal&&s.count===0&&o.pluralResolver.shouldUseIntlApi(),b=s.context!==void 0&&(typeof s.context=="string"||typeof s.context=="number")&&s.context!=="",y=s.lngs?s.lngs:o.languageUtils.toResolveHierarchy(s.lng||o.language,s.fallbackLng);m.forEach(function(C){o.isValidLookup(a)||(d=C,!K1e["".concat(y[0],"-").concat(C)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(d)&&(K1e["".concat(y[0],"-").concat(C)]=!0,o.logger.warn('key "'.concat(l,'" for languages "').concat(y.join(", "),`" won't get resolved as namespace "`).concat(d,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),y.forEach(function(x){if(!o.isValidLookup(a)){u=x;var k=[p];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(k,p,x,C,s);else{var I;_&&(I=o.pluralResolver.getSuffix(x,s.count,s));var L="".concat(o.options.pluralSeparator,"zero");if(_&&(k.push(p+I),v&&k.push(p+L)),b){var D="".concat(p).concat(o.options.contextSeparator).concat(s.context);k.push(D),_&&(k.push(D+I),v&&k.push(D+L))}}for(var R;R=k.pop();)o.isValidLookup(a)||(c=R,a=o.getResource(x,C,R,s))}}))})}}),{res:a,usedKey:l,exactUsedKey:c,usedLng:u,usedNS:d}}},{key:"isValidLookup",value:function(r){return r!==void 0&&!(!this.options.returnNull&&r===null)&&!(!this.options.returnEmptyString&&r==="")}},{key:"getResource",value:function(r,o,s){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(r,o,s,a):this.resourceStore.getResource(r,o,s,a)}}],[{key:"hasDefaultValue",value:function(r){var o="defaultValue";for(var s in r)if(Object.prototype.hasOwnProperty.call(r,s)&&o===s.substring(0,o.length)&&r[s]!==void 0)return!0;return!1}}]),t}(KC);function vY(n){return n.charAt(0).toUpperCase()+n.slice(1)}var Y1e=function(){function n(e){Ua(this,n),this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Iv.create("languageUtils")}return qa(n,[{key:"getScriptPartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return null;var i=t.split("-");return i.length===2||(i.pop(),i[i.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(i.join("-"))}},{key:"getLanguagePartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return t;var i=t.split("-");return this.formatLanguageCode(i[0])}},{key:"formatLanguageCode",value:function(t){if(typeof t=="string"&&t.indexOf("-")>-1){var i=["hans","hant","latn","cyrl","cans","mong","arab"],r=t.split("-");return this.options.lowerCaseLng?r=r.map(function(o){return o.toLowerCase()}):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),i.indexOf(r[1].toLowerCase())>-1&&(r[1]=vY(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),i.indexOf(r[1].toLowerCase())>-1&&(r[1]=vY(r[1].toLowerCase())),i.indexOf(r[2].toLowerCase())>-1&&(r[2]=vY(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}},{key:"isSupportedCode",value:function(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}},{key:"getBestMatchFromCodes",value:function(t){var i=this;if(!t)return null;var r;return t.forEach(function(o){if(!r){var s=i.formatLanguageCode(o);(!i.options.supportedLngs||i.isSupportedCode(s))&&(r=s)}}),!r&&this.options.supportedLngs&&t.forEach(function(o){if(!r){var s=i.getLanguagePartFromCode(o);if(i.isSupportedCode(s))return r=s;r=i.options.supportedLngs.find(function(a){if(a===s)return a;if(!(a.indexOf("-")<0&&s.indexOf("-")<0)&&a.indexOf(s)===0)return a})}}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}},{key:"getFallbackCodes",value:function(t,i){if(!t)return[];if(typeof t=="function"&&(t=t(i)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!i)return t.default||[];var r=t[i];return r||(r=t[this.getScriptPartFromCode(i)]),r||(r=t[this.formatLanguageCode(i)]),r||(r=t[this.getLanguagePartFromCode(i)]),r||(r=t.default),r||[]}},{key:"toResolveHierarchy",value:function(t,i){var r=this,o=this.getFallbackCodes(i||this.options.fallbackLng||[],t),s=[],a=function(c){c&&(r.isSupportedCode(c)?s.push(c):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(c)))};return typeof t=="string"&&t.indexOf("-")>-1?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):typeof t=="string"&&a(this.formatLanguageCode(t)),o.forEach(function(l){s.indexOf(l)<0&&a(r.formatLanguageCode(l))}),s}}]),n}(),Bct=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],$ct={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}},Vct=["v1","v2","v3"],Q1e={zero:0,one:1,two:2,few:3,many:4,other:5};function Hct(){var n={};return Bct.forEach(function(e){e.lngs.forEach(function(t){n[t]={numbers:e.nr,plurals:$ct[e.fc]}})}),n}var Wct=function(){function n(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ua(this,n),this.languageUtils=e,this.options=t,this.logger=Iv.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Hct()}return qa(n,[{key:"addRule",value:function(t,i){this.rules[t]=i}},{key:"getRule",value:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(t,{type:i.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}},{key:"needsPlural",value:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getRule(t,i);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(t,i){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(function(o){return"".concat(i).concat(o)})}},{key:"getSuffixes",value:function(t){var i=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(t,r);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort(function(s,a){return Q1e[s]-Q1e[a]}).map(function(s){return"".concat(i.options.prepend).concat(s)}):o.numbers.map(function(s){return i.getSuffix(t,s,r)}):[]}},{key:"getSuffix",value:function(t,i){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=this.getRule(t,r);return o?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(o.select(i)):this.getSuffixRetroCompatible(o,i):(this.logger.warn("no plural rule found for: ".concat(t)),"")}},{key:"getSuffixRetroCompatible",value:function(t,i){var r=this,o=t.noAbs?t.plurals(i):t.plurals(Math.abs(i)),s=t.numbers[o];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(s===2?s="plural":s===1&&(s=""));var a=function(){return r.options.prepend&&s.toString()?r.options.prepend+s.toString():s.toString()};return this.options.compatibilityJSON==="v1"?s===1?"":typeof s=="number"?"_plural_".concat(s.toString()):a():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}},{key:"shouldUseIntlApi",value:function(){return!Vct.includes(this.options.compatibilityJSON)}}]),n}();function X1e(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,i)}return t}function mm(n){for(var e=1;e3&&arguments[3]!==void 0?arguments[3]:".",r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=Ict(n,e,t);return!o&&r&&typeof t=="string"&&(o=M9(n,t,i),o===void 0&&(o=M9(e,t,i))),o}var zct=function(){function n(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ua(this,n),this.logger=Iv.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(t){return t},this.init(e)}return qa(n,[{key:"init",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});var i=t.interpolation;this.escape=i.escape!==void 0?i.escape:Dct,this.escapeValue=i.escapeValue!==void 0?i.escapeValue:!0,this.useRawValueToEscape=i.useRawValueToEscape!==void 0?i.useRawValueToEscape:!1,this.prefix=i.prefix?hT(i.prefix):i.prefixEscaped||"{{",this.suffix=i.suffix?hT(i.suffix):i.suffixEscaped||"}}",this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||",",this.unescapePrefix=i.unescapeSuffix?"":i.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":i.unescapeSuffix||"",this.nestingPrefix=i.nestingPrefix?hT(i.nestingPrefix):i.nestingPrefixEscaped||hT("$t("),this.nestingSuffix=i.nestingSuffix?hT(i.nestingSuffix):i.nestingSuffixEscaped||hT(")"),this.nestingOptionsSeparator=i.nestingOptionsSeparator?i.nestingOptionsSeparator:i.nestingOptionsSeparator||",",this.maxReplaces=i.maxReplaces?i.maxReplaces:1e3,this.alwaysFormat=i.alwaysFormat!==void 0?i.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var t="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(t,"g");var i="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(i,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function(t,i,r,o){var s=this,a,l,c,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function d(_){return _.replace(/\$/g,"$$$$")}var h=function(v){if(v.indexOf(s.formatSeparator)<0){var b=Z1e(i,u,v,s.options.keySeparator,s.options.ignoreJSONStructure);return s.alwaysFormat?s.format(b,void 0,r,mm(mm(mm({},o),i),{},{interpolationkey:v})):b}var y=v.split(s.formatSeparator),C=y.shift().trim(),x=y.join(s.formatSeparator).trim();return s.format(Z1e(i,u,C,s.options.keySeparator,s.options.ignoreJSONStructure),x,r,mm(mm(mm({},o),i),{},{interpolationkey:C}))};this.resetRegExp();var g=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,p=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,m=[{regex:this.regexpUnescape,safeValue:function(v){return d(v)}},{regex:this.regexp,safeValue:function(v){return s.escapeValue?d(s.escape(v)):d(v)}}];return m.forEach(function(_){for(c=0;a=_.regex.exec(t);){var v=a[1].trim();if(l=h(v),l===void 0)if(typeof g=="function"){var b=g(t,a,o);l=typeof b=="string"?b:""}else if(o&&Object.prototype.hasOwnProperty.call(o,v))l="";else if(p){l=a[0];continue}else s.logger.warn("missed to pass in variable ".concat(v," for interpolating ").concat(t)),l="";else typeof l!="string"&&!s.useRawValueToEscape&&(l=z1e(l));var y=_.safeValue(l);if(t=t.replace(a[0],y),p?(_.regex.lastIndex+=l.length,_.regex.lastIndex-=a[0].length):_.regex.lastIndex=0,c++,c>=s.maxReplaces)break}}),t}},{key:"nest",value:function(t,i){var r=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,a,l;function c(g,p){var m=this.nestingOptionsSeparator;if(g.indexOf(m)<0)return g;var _=g.split(new RegExp("".concat(m,"[ ]*{"))),v="{".concat(_[1]);g=_[0],v=this.interpolate(v,l);var b=v.match(/'/g),y=v.match(/"/g);(b&&b.length%2===0&&!y||y.length%2!==0)&&(v=v.replace(/'/g,'"'));try{l=JSON.parse(v),p&&(l=mm(mm({},p),l))}catch(C){return this.logger.warn("failed parsing options string in nesting for key ".concat(g),C),"".concat(g).concat(m).concat(v)}return delete l.defaultValue,g}for(;s=this.nestingRegexp.exec(t);){var u=[];l=mm({},o),l=l.replace&&typeof l.replace!="string"?l.replace:l,l.applyPostProcessor=!1,delete l.defaultValue;var d=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){var h=s[1].split(this.formatSeparator).map(function(g){return g.trim()});s[1]=h.shift(),u=h,d=!0}if(a=i(c.call(this,s[1].trim(),l),l),a&&s[0]===t&&typeof a!="string")return a;typeof a!="string"&&(a=z1e(a)),a||(this.logger.warn("missed to resolve ".concat(s[1]," for nesting ").concat(t)),a=""),d&&(a=u.reduce(function(g,p){return r.format(g,p,o.lng,mm(mm({},o),{},{interpolationkey:s[1].trim()}))},a.trim())),t=t.replace(s[0],a),this.regexp.lastIndex=0}return t}}]),n}();function J1e(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,i)}return t}function Wb(n){for(var e=1;e-1){var i=n.split("(");e=i[0].toLowerCase().trim();var r=i[1].substring(0,i[1].length-1);if(e==="currency"&&r.indexOf(":")<0)t.currency||(t.currency=r.trim());else if(e==="relativetime"&&r.indexOf(":")<0)t.range||(t.range=r.trim());else{var o=r.split(";");o.forEach(function(s){if(s){var a=s.split(":"),l=QMe(a),c=l[0],u=l.slice(1),d=u.join(":").trim().replace(/^'+|'+$/g,"");t[c.trim()]||(t[c.trim()]=d),d==="false"&&(t[c.trim()]=!1),d==="true"&&(t[c.trim()]=!0),isNaN(d)||(t[c.trim()]=parseInt(d,10))}})}}return{formatName:e,formatOptions:t}}function fT(n){var e={};return function(i,r,o){var s=r+JSON.stringify(o),a=e[s];return a||(a=n(r,o),e[s]=a),a(i)}}var Uct=function(){function n(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ua(this,n),this.logger=Iv.create("formatter"),this.options=e,this.formats={number:fT(function(t,i){var r=new Intl.NumberFormat(t,Wb({},i));return function(o){return r.format(o)}}),currency:fT(function(t,i){var r=new Intl.NumberFormat(t,Wb(Wb({},i),{},{style:"currency"}));return function(o){return r.format(o)}}),datetime:fT(function(t,i){var r=new Intl.DateTimeFormat(t,Wb({},i));return function(o){return r.format(o)}}),relativetime:fT(function(t,i){var r=new Intl.RelativeTimeFormat(t,Wb({},i));return function(o){return r.format(o,i.range||"day")}}),list:fT(function(t,i){var r=new Intl.ListFormat(t,Wb({},i));return function(o){return r.format(o)}})},this.init(e)}return qa(n,[{key:"init",value:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},r=i.interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}},{key:"add",value:function(t,i){this.formats[t.toLowerCase().trim()]=i}},{key:"addCached",value:function(t,i){this.formats[t.toLowerCase().trim()]=fT(i)}},{key:"format",value:function(t,i,r){var o=this,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=i.split(this.formatSeparator),l=a.reduce(function(c,u){var d=jct(u),h=d.formatName,g=d.formatOptions;if(o.formats[h]){var p=c;try{var m=s&&s.formatParams&&s.formatParams[s.interpolationkey]||{},_=m.locale||m.lng||s.locale||s.lng||r;p=o.formats[h](c,_,Wb(Wb(Wb({},g),s),m))}catch(v){o.logger.warn(v)}return p}else o.logger.warn("there was no format function for ".concat(h));return c},t);return l}}]),n}();function eCe(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,i)}return t}function tCe(n){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Gct(n,e){n.pending[e]!==void 0&&(delete n.pending[e],n.pendingCount--)}var Yct=function(n){I_(t,n);var e=qct(t);function t(i,r,o){var s,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Ua(this,t),s=e.call(this),az&&KC.call(Sr(s)),s.backend=i,s.store=r,s.services=o,s.languageUtils=o.languageUtils,s.options=a,s.logger=Iv.create("backendConnector"),s.waitingReads=[],s.maxParallelReads=a.maxParallelReads||10,s.readingCalls=0,s.maxRetries=a.maxRetries>=0?a.maxRetries:5,s.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,s.state={},s.queue=[],s.backend&&s.backend.init&&s.backend.init(o,a.backend,a),s}return qa(t,[{key:"queueLoad",value:function(r,o,s,a){var l=this,c={},u={},d={},h={};return r.forEach(function(g){var p=!0;o.forEach(function(m){var _="".concat(g,"|").concat(m);!s.reload&&l.store.hasResourceBundle(g,m)?l.state[_]=2:l.state[_]<0||(l.state[_]===1?u[_]===void 0&&(u[_]=!0):(l.state[_]=1,p=!1,u[_]===void 0&&(u[_]=!0),c[_]===void 0&&(c[_]=!0),h[m]===void 0&&(h[m]=!0)))}),p||(d[g]=!0)}),(Object.keys(c).length||Object.keys(u).length)&&this.queue.push({pending:u,pendingCount:Object.keys(u).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(c),pending:Object.keys(u),toLoadLanguages:Object.keys(d),toLoadNamespaces:Object.keys(h)}}},{key:"loaded",value:function(r,o,s){var a=r.split("|"),l=a[0],c=a[1];o&&this.emit("failedLoading",l,c,o),s&&this.store.addResourceBundle(l,c,s),this.state[r]=o?-1:2;var u={};this.queue.forEach(function(d){Tct(d.loaded,[l],c),Gct(d,r),o&&d.errors.push(o),d.pendingCount===0&&!d.done&&(Object.keys(d.loaded).forEach(function(h){u[h]||(u[h]={});var g=d.loaded[h];g.length&&g.forEach(function(p){u[h][p]===void 0&&(u[h][p]=!0)})}),d.done=!0,d.errors.length?d.callback(d.errors):d.callback())}),this.emit("loaded",u),this.queue=this.queue.filter(function(d){return!d.done})}},{key:"read",value:function(r,o,s){var a=this,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,u=arguments.length>5?arguments[5]:void 0;if(!r.length)return u(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:r,ns:o,fcName:s,tried:l,wait:c,callback:u});return}this.readingCalls++;var d=function(m,_){if(a.readingCalls--,a.waitingReads.length>0){var v=a.waitingReads.shift();a.read(v.lng,v.ns,v.fcName,v.tried,v.wait,v.callback)}if(m&&_&&l2&&arguments[2]!==void 0?arguments[2]:{},l=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),l&&l();typeof r=="string"&&(r=this.languageUtils.toResolveHierarchy(r)),typeof o=="string"&&(o=[o]);var c=this.queueLoad(r,o,a,l);if(!c.toLoad.length)return c.pending.length||l(),null;c.toLoad.forEach(function(u){s.loadOne(u)})}},{key:"load",value:function(r,o,s){this.prepareLoading(r,o,{},s)}},{key:"reload",value:function(r,o,s){this.prepareLoading(r,o,{reload:!0},s)}},{key:"loadOne",value:function(r){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=r.split("|"),l=a[0],c=a[1];this.read(l,c,"read",void 0,void 0,function(u,d){u&&o.logger.warn("".concat(s,"loading namespace ").concat(c," for language ").concat(l," failed"),u),!u&&d&&o.logger.log("".concat(s,"loaded namespace ").concat(c," for language ").concat(l),d),o.loaded(r,u,d)})}},{key:"saveMissing",value:function(r,o,s,a,l){var c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},u=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(o)){this.logger.warn('did not save key "'.concat(s,'" as the namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(s==null||s==="")){if(this.backend&&this.backend.create){var d=tCe(tCe({},c),{},{isUpdate:l}),h=this.backend.create.bind(this.backend);if(h.length<6)try{var g;h.length===5?g=h(r,o,s,a,d):g=h(r,o,s,a),g&&typeof g.then=="function"?g.then(function(p){return u(null,p)}).catch(u):u(null,g)}catch(p){u(p)}else h(r,o,s,a,u,d)}!r||!r[0]||this.store.addResource(r[0],o,s,a)}}}]),t}(KC);function nCe(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if(Er(e[1])==="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),Er(e[2])==="object"||Er(e[3])==="object"){var i=e[3]||e[2];Object.keys(i).forEach(function(r){t[r]=i[r]})}return t},interpolation:{escapeValue:!0,format:function(e,t,i,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function iCe(n){return typeof n.ns=="string"&&(n.ns=[n.ns]),typeof n.fallbackLng=="string"&&(n.fallbackLng=[n.fallbackLng]),typeof n.fallbackNS=="string"&&(n.fallbackNS=[n.fallbackNS]),n.supportedLngs&&n.supportedLngs.indexOf("cimode")<0&&(n.supportedLngs=n.supportedLngs.concat(["cimode"])),n}function rCe(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,i)}return t}function U_(n){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function a6(){}function Zct(n){var e=Object.getOwnPropertyNames(Object.getPrototypeOf(n));e.forEach(function(t){typeof n[t]=="function"&&(n[t]=n[t].bind(n))})}var F9=function(n){I_(t,n);var e=Qct(t);function t(){var i,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(Ua(this,t),i=e.call(this),az&&KC.call(Sr(i)),i.options=iCe(r),i.services={},i.logger=Iv,i.modules={external:[]},Zct(Sr(i)),o&&!i.isInitialized&&!r.isClone){if(!i.options.initImmediate)return i.init(r,o),M2(i,Sr(i));setTimeout(function(){i.init(r,o)},0)}return i}return qa(t,[{key:"init",value:function(){var r=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;typeof o=="function"&&(s=o,o={}),!o.defaultNS&&o.defaultNS!==!1&&o.ns&&(typeof o.ns=="string"?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));var a=nCe();this.options=U_(U_(U_({},a),this.options),iCe(o)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=U_(U_({},a.interpolation),this.options.interpolation)),o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);function l(v){return v?typeof v=="function"?new v:v:null}if(!this.options.isClone){this.modules.logger?Iv.init(l(this.modules.logger),this.options):Iv.init(null,this.options);var c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=Uct);var u=new Y1e(this.options);this.store=new Pct(this.options.resources,this.options);var d=this.services;d.logger=Iv,d.resourceStore=this.store,d.languageUtils=u,d.pluralResolver=new Wct(u,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(d.formatter=l(c),d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new zct(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new Yct(l(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",function(v){for(var b=arguments.length,y=new Array(b>1?b-1:0),C=1;C1?b-1:0),C=1;C0&&h[0]!=="dev"&&(this.options.lng=h[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var g=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];g.forEach(function(v){r[v]=function(){var b;return(b=r.store)[v].apply(b,arguments)}});var p=["addResource","addResources","addResourceBundle","removeResourceBundle"];p.forEach(function(v){r[v]=function(){var b;return(b=r.store)[v].apply(b,arguments),r}});var m=hR(),_=function(){var b=function(C,x){r.isInitialized&&!r.initializedStoreOnce&&r.logger.warn("init: i18next is already initialized. You should call init just once!"),r.isInitialized=!0,r.options.isClone||r.logger.log("initialized",r.options),r.emit("initialized",r.options),m.resolve(x),s(C,x)};if(r.languages&&r.options.compatibilityAPI!=="v1"&&!r.isInitialized)return b(null,r.t.bind(r));r.changeLanguage(r.options.lng,b)};return this.options.resources||!this.options.initImmediate?_():setTimeout(_,0),m}},{key:"loadResources",value:function(r){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:a6,a=s,l=typeof r=="string"?r:this.language;if(typeof r=="function"&&(a=r),!this.options.resources||this.options.partialBundledLanguages){if(l&&l.toLowerCase()==="cimode")return a();var c=[],u=function(g){if(g){var p=o.services.languageUtils.toResolveHierarchy(g);p.forEach(function(m){c.indexOf(m)<0&&c.push(m)})}};if(l)u(l);else{var d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.forEach(function(h){return u(h)})}this.options.preload&&this.options.preload.forEach(function(h){return u(h)}),this.services.backendConnector.load(c,this.options.ns,function(h){!h&&!o.resolvedLanguage&&o.language&&o.setResolvedLanguage(o.language),a(h)})}else a(null)}},{key:"reloadResources",value:function(r,o,s){var a=hR();return r||(r=this.languages),o||(o=this.options.ns),s||(s=a6),this.services.backendConnector.reload(r,o,function(l){a.resolve(),s(l)}),a}},{key:"use",value:function(r){if(!r)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!r.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return r.type==="backend"&&(this.modules.backend=r),(r.type==="logger"||r.log&&r.warn&&r.error)&&(this.modules.logger=r),r.type==="languageDetector"&&(this.modules.languageDetector=r),r.type==="i18nFormat"&&(this.modules.i18nFormat=r),r.type==="postProcessor"&&ZMe.addPostProcessor(r),r.type==="formatter"&&(this.modules.formatter=r),r.type==="3rdParty"&&this.modules.external.push(r),this}},{key:"setResolvedLanguage",value:function(r){if(!(!r||!this.languages)&&!(["cimode","dev"].indexOf(r)>-1))for(var o=0;o-1)&&this.store.hasLanguageSomeTranslations(s)){this.resolvedLanguage=s;break}}}},{key:"changeLanguage",value:function(r,o){var s=this;this.isLanguageChangingTo=r;var a=hR();this.emit("languageChanging",r);var l=function(h){s.language=h,s.languages=s.services.languageUtils.toResolveHierarchy(h),s.resolvedLanguage=void 0,s.setResolvedLanguage(h)},c=function(h,g){g?(l(g),s.translator.changeLanguage(g),s.isLanguageChangingTo=void 0,s.emit("languageChanged",g),s.logger.log("languageChanged",g)):s.isLanguageChangingTo=void 0,a.resolve(function(){return s.t.apply(s,arguments)}),o&&o(h,function(){return s.t.apply(s,arguments)})},u=function(h){!r&&!h&&s.services.languageDetector&&(h=[]);var g=typeof h=="string"?h:s.services.languageUtils.getBestMatchFromCodes(h);g&&(s.language||l(g),s.translator.language||s.translator.changeLanguage(g),s.services.languageDetector&&s.services.languageDetector.cacheUserLanguage&&s.services.languageDetector.cacheUserLanguage(g)),s.loadResources(g,function(p){c(p,g)})};return!r&&this.services.languageDetector&&!this.services.languageDetector.async?u(this.services.languageDetector.detect()):!r&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(u):this.services.languageDetector.detect(u):u(r),a}},{key:"getFixedT",value:function(r,o,s){var a=this,l=function c(u,d){var h;if(Er(d)!=="object"){for(var g=arguments.length,p=new Array(g>2?g-2:0),m=2;m1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var a=s.lng||this.resolvedLanguage||this.languages[0],l=this.options?this.options.fallbackLng:!1,c=this.languages[this.languages.length-1];if(a.toLowerCase()==="cimode")return!0;var u=function(g,p){var m=o.services.backendConnector.state["".concat(g,"|").concat(p)];return m===-1||m===2};if(s.precheck){var d=s.precheck(this,u);if(d!==void 0)return d}return!!(this.hasResourceBundle(a,r)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||u(a,r)&&(!l||u(c,r)))}},{key:"loadNamespaces",value:function(r,o){var s=this,a=hR();return this.options.ns?(typeof r=="string"&&(r=[r]),r.forEach(function(l){s.options.ns.indexOf(l)<0&&s.options.ns.push(l)}),this.loadResources(function(l){a.resolve(),o&&o(l)}),a):(o&&o(),Promise.resolve())}},{key:"loadLanguages",value:function(r,o){var s=hR();typeof r=="string"&&(r=[r]);var a=this.options.preload||[],l=r.filter(function(c){return a.indexOf(c)<0});return l.length?(this.options.preload=a.concat(l),this.loadResources(function(c){s.resolve(),o&&o(c)}),s):(o&&o(),Promise.resolve())}},{key:"dir",value:function(r){if(r||(r=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!r)return"rtl";var o=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],s=this.services&&this.services.languageUtils||new Y1e(nCe());return o.indexOf(s.getLanguagePartFromCode(r))>-1||r.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var r=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:a6,a=U_(U_(U_({},this.options),o),{isClone:!0}),l=new t(a);(o.debug!==void 0||o.prefix!==void 0)&&(l.logger=l.logger.clone(o));var c=["store","services","language"];return c.forEach(function(u){l[u]=r[u]}),l.services=U_({},this.services),l.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l.translator=new G1e(l.services,l.options),l.translator.on("*",function(u){for(var d=arguments.length,h=new Array(d>1?d-1:0),g=1;g0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return new F9(n,e)});var Rd=F9.createInstance();Rd.createInstance=F9.createInstance;Rd.createInstance;Rd.dir;Rd.init;Rd.loadResources;Rd.reloadResources;Rd.use;Rd.changeLanguage;Rd.getFixedT;var Wee=Rd.t;Rd.exists;Rd.setDefaultNamespace;Rd.hasLoadedNamespace;Rd.loadNamespaces;Rd.loadLanguages;/** * Invoice Ninja (https://invoiceninja.com). * * @link https://github.com/invoiceninja/invoiceninja source repository * * @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com) * * @license https://www.elastic.co/licensing/elastic-license */function dt(n,e={}){let t=n;for(const i in e)t=t.replace(`:${i}`,e[i]);return t}/** * Invoice Ninja (https://invoiceninja.com). * * @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com) * * @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com) * * @license https://www.elastic.co/licensing/elastic-license */var Di=(n=>(n.Active="active",n.Archived="archived",n.Deleted="deleted",n))(Di||{});/** * Invoice Ninja (https://invoiceninja.com). * * @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com) * * @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com) * * @license https://www.elastic.co/licensing/elastic-license */const bY={[Di.Active]:"active",[Di.Archived]:"archived",[Di.Deleted]:"deleted"};var fde={exports:{}},JMe=function(e,t){return function(){for(var r=new Array(arguments.length),o=0;o"u"}function eut(n){return n!==null&&!B9(n)&&n.constructor!==null&&!B9(n.constructor)&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)}var e4e=hk("ArrayBuffer");function tut(n){var e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(n):e=n&&n.buffer&&e4e(n.buffer),e}function nut(n){return typeof n=="string"}function iut(n){return typeof n=="number"}function t4e(n){return n!==null&&typeof n=="object"}function U$(n){if(pde(n)!=="object")return!1;var e=Object.getPrototypeOf(n);return e===null||e===Object.prototype}var rut=hk("Date"),out=hk("File"),sut=hk("Blob"),aut=hk("FileList");function _de(n){return gde.call(n)==="[object Function]"}function lut(n){return t4e(n)&&_de(n.pipe)}function cut(n){var e="[object FormData]";return n&&(typeof FormData=="function"&&n instanceof FormData||gde.call(n)===e||_de(n.toString)&&n.toString()===e)}var uut=hk("URLSearchParams");function dut(n){return n.trim?n.trim():n.replace(/^\s+|\s+$/g,"")}function hut(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function vde(n,e){if(!(n===null||typeof n>"u"))if(typeof n!="object"&&(n=[n]),mde(n))for(var t=0,i=n.length;t0;)o=i[r],s[o]||(e[o]=n[o],s[o]=!0);n=Object.getPrototypeOf(n)}while(n&&(!t||t(n,e))&&n!==Object.prototype);return e}function _ut(n,e,t){n=String(n),(t===void 0||t>n.length)&&(t=n.length),t-=e.length;var i=n.indexOf(e,t);return i!==-1&&i===t}function vut(n){if(!n)return null;var e=n.length;if(B9(e))return null;for(var t=new Array(e);e-- >0;)t[e]=n[e];return t}var but=function(n){return function(e){return n&&e instanceof n}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array)),Zu={isArray:mde,isArrayBuffer:e4e,isBuffer:eut,isFormData:cut,isArrayBufferView:tut,isString:nut,isNumber:iut,isObject:t4e,isPlainObject:U$,isUndefined:B9,isDate:rut,isFile:out,isBlob:sut,isFunction:_de,isStream:lut,isURLSearchParams:uut,isStandardBrowserEnv:hut,forEach:vde,merge:zee,extend:fut,trim:dut,stripBOM:gut,inherits:put,toFlatObject:mut,kindOf:pde,kindOfTest:hk,endsWith:_ut,toArray:vut,isTypedArray:but,isFileList:aut},gT=Zu;function oCe(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var n4e=function(e,t,i){if(!t)return e;var r;if(i)r=i(t);else if(gT.isURLSearchParams(t))r=t.toString();else{var o=[];gT.forEach(t,function(l,c){l===null||typeof l>"u"||(gT.isArray(l)?c=c+"[]":l=[l],gT.forEach(l,function(d){gT.isDate(d)?d=d.toISOString():gT.isObject(d)&&(d=JSON.stringify(d)),o.push(oCe(c)+"="+oCe(d))}))}),r=o.join("&")}if(r){var s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e},yut=Zu;function lz(){this.handlers=[]}lz.prototype.use=function(e,t,i){return this.handlers.push({fulfilled:e,rejected:t,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1};lz.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)};lz.prototype.forEach=function(e){yut.forEach(this.handlers,function(i){i!==null&&e(i)})};var Cut=lz,wut=Zu,Sut=function(e,t){wut.forEach(e,function(r,o){o!==t&&o.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[o])})},i4e=Zu;function oD(n,e,t,i,r){Error.call(this),this.message=n,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),i&&(this.request=i),r&&(this.response=r)}i4e.inherits(oD,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var r4e=oD.prototype,o4e={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(n){o4e[n]={value:n}});Object.defineProperties(oD,o4e);Object.defineProperty(r4e,"isAxiosError",{value:!0});oD.from=function(n,e,t,i,r,o){var s=Object.create(r4e);return i4e.toFlatObject(n,s,function(l){return l!==Error.prototype}),oD.call(s,n.message,e,t,i,r),s.name=n.name,o&&Object.assign(s,o),s};var F2=oD,s4e={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},_m=Zu;function Eut(n,e){e=e||new FormData;var t=[];function i(o){return o===null?"":_m.isDate(o)?o.toISOString():_m.isArrayBuffer(o)||_m.isTypedArray(o)?typeof Blob=="function"?new Blob([o]):Buffer.from(o):o}function r(o,s){if(_m.isPlainObject(o)||_m.isArray(o)){if(t.indexOf(o)!==-1)throw Error("Circular reference detected in "+s);t.push(o),_m.forEach(o,function(l,c){if(!_m.isUndefined(l)){var u=s?s+"."+c:c,d;if(l&&!s&&typeof l=="object"){if(_m.endsWith(c,"{}"))l=JSON.stringify(l);else if(_m.endsWith(c,"[]")&&(d=_m.toArray(l))){d.forEach(function(h){!_m.isUndefined(h)&&e.append(u,i(h))});return}}r(l,u)}}),t.pop()}else e.append(s,i(o))}return r(n),e}var a4e=Eut,yY,sCe;function xut(){if(sCe)return yY;sCe=1;var n=F2;return yY=function(t,i,r){var o=r.config.validateStatus;!r.status||!o||o(r.status)?t(r):i(new n("Request failed with status code "+r.status,[n.ERR_BAD_REQUEST,n.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))},yY}var CY,aCe;function kut(){if(aCe)return CY;aCe=1;var n=Zu;return CY=n.isStandardBrowserEnv()?function(){return{write:function(i,r,o,s,a,l){var c=[];c.push(i+"="+encodeURIComponent(r)),n.isNumber(o)&&c.push("expires="+new Date(o).toGMTString()),n.isString(s)&&c.push("path="+s),n.isString(a)&&c.push("domain="+a),l===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(i){var r=document.cookie.match(new RegExp("(^|;\\s*)("+i+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(i){this.write(i,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),CY}var Tut=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)},Iut=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e},Lut=Tut,Dut=Iut,l4e=function(e,t){return e&&!Lut(t)?Dut(e,t):t},wY,lCe;function Aut(){if(lCe)return wY;lCe=1;var n=Zu,e=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return wY=function(i){var r={},o,s,a;return i&&n.forEach(i.split(` `),function(c){if(a=c.indexOf(":"),o=n.trim(c.substr(0,a)).toLowerCase(),s=n.trim(c.substr(a+1)),o){if(r[o]&&e.indexOf(o)>=0)return;o==="set-cookie"?r[o]=(r[o]?r[o]:[]).concat([s]):r[o]=r[o]?r[o]+", "+s:s}}),r},wY}var SY,cCe;function Rut(){if(cCe)return SY;cCe=1;var n=Zu;return SY=n.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a"),r;function o(s){var a=s;return t&&(i.setAttribute("href",a),a=i.href),i.setAttribute("href",a),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:i.pathname.charAt(0)==="/"?i.pathname:"/"+i.pathname}}return r=o(window.location.href),function(a){var l=n.isString(a)?o(a):a;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}(),SY}var EY,uCe;function cz(){if(uCe)return EY;uCe=1;var n=F2,e=Zu;function t(i){n.call(this,i??"canceled",n.ERR_CANCELED),this.name="CanceledError"}return e.inherits(t,n,{__CANCEL__:!0}),EY=t,EY}var xY,dCe;function Nut(){return dCe||(dCe=1,xY=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}),xY}var kY,hCe;function fCe(){if(hCe)return kY;hCe=1;var n=Zu,e=xut(),t=kut(),i=n4e,r=l4e,o=Aut(),s=Rut(),a=s4e,l=F2,c=cz(),u=Nut();return kY=function(h){return new Promise(function(p,m){var _=h.data,v=h.headers,b=h.responseType,y;function C(){h.cancelToken&&h.cancelToken.unsubscribe(y),h.signal&&h.signal.removeEventListener("abort",y)}n.isFormData(_)&&n.isStandardBrowserEnv()&&delete v["Content-Type"];var x=new XMLHttpRequest;if(h.auth){var k=h.auth.username||"",I=h.auth.password?unescape(encodeURIComponent(h.auth.password)):"";v.Authorization="Basic "+btoa(k+":"+I)}var L=r(h.baseURL,h.url);x.open(h.method.toUpperCase(),i(L,h.params,h.paramsSerializer),!0),x.timeout=h.timeout;function D(){if(x){var M="getAllResponseHeaders"in x?o(x.getAllResponseHeaders()):null,O=!b||b==="text"||b==="json"?x.responseText:x.response,B={data:O,status:x.status,statusText:x.statusText,headers:M,config:h,request:x};e(function(H){p(H),C()},function(H){m(H),C()},B),x=null}}if("onloadend"in x?x.onloadend=D:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(D)},x.onabort=function(){x&&(m(new l("Request aborted",l.ECONNABORTED,h,x)),x=null)},x.onerror=function(){m(new l("Network Error",l.ERR_NETWORK,h,x,x)),x=null},x.ontimeout=function(){var O=h.timeout?"timeout of "+h.timeout+"ms exceeded":"timeout exceeded",B=h.transitional||a;h.timeoutErrorMessage&&(O=h.timeoutErrorMessage),m(new l(O,B.clarifyTimeoutError?l.ETIMEDOUT:l.ECONNABORTED,h,x)),x=null},n.isStandardBrowserEnv()){var R=(h.withCredentials||s(L))&&h.xsrfCookieName?t.read(h.xsrfCookieName):void 0;R&&(v[h.xsrfHeaderName]=R)}"setRequestHeader"in x&&n.forEach(v,function(O,B){typeof _>"u"&&B.toLowerCase()==="content-type"?delete v[B]:x.setRequestHeader(B,O)}),n.isUndefined(h.withCredentials)||(x.withCredentials=!!h.withCredentials),b&&b!=="json"&&(x.responseType=h.responseType),typeof h.onDownloadProgress=="function"&&x.addEventListener("progress",h.onDownloadProgress),typeof h.onUploadProgress=="function"&&x.upload&&x.upload.addEventListener("progress",h.onUploadProgress),(h.cancelToken||h.signal)&&(y=function(M){x&&(m(!M||M&&M.type?new c:M),x.abort(),x=null)},h.cancelToken&&h.cancelToken.subscribe(y),h.signal&&(h.signal.aborted?y():h.signal.addEventListener("abort",y))),_||(_=null);var P=u(L);if(P&&["http","https","file"].indexOf(P)===-1){m(new l("Unsupported protocol "+P+":",l.ERR_BAD_REQUEST,h));return}x.send(_)})},kY}var TY,gCe;function Out(){return gCe||(gCe=1,TY=null),TY}var Zc=Zu,pCe=Sut,mCe=F2,Put=s4e,Mut=a4e,Fut={"Content-Type":"application/x-www-form-urlencoded"};function _Ce(n,e){!Zc.isUndefined(n)&&Zc.isUndefined(n["Content-Type"])&&(n["Content-Type"]=e)}function But(){var n;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(n=fCe()),n}function $ut(n,e,t){if(Zc.isString(n))try{return(e||JSON.parse)(n),Zc.trim(n)}catch(i){if(i.name!=="SyntaxError")throw i}return(t||JSON.stringify)(n)}var uz={transitional:Put,adapter:But(),transformRequest:[function(e,t){if(pCe(t,"Accept"),pCe(t,"Content-Type"),Zc.isFormData(e)||Zc.isArrayBuffer(e)||Zc.isBuffer(e)||Zc.isStream(e)||Zc.isFile(e)||Zc.isBlob(e))return e;if(Zc.isArrayBufferView(e))return e.buffer;if(Zc.isURLSearchParams(e))return _Ce(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var i=Zc.isObject(e),r=t&&t["Content-Type"],o;if((o=Zc.isFileList(e))||i&&r==="multipart/form-data"){var s=this.env&&this.env.FormData;return Mut(o?{"files[]":e}:e,s&&new s)}else if(i||r==="application/json")return _Ce(t,"application/json"),$ut(e);return e}],transformResponse:[function(e){var t=this.transitional||uz.transitional,i=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,o=!i&&this.responseType==="json";if(o||r&&Zc.isString(e)&&e.length)try{return JSON.parse(e)}catch(s){if(o)throw s.name==="SyntaxError"?mCe.from(s,mCe.ERR_BAD_RESPONSE,this,null,this.response):s}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Out()},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Zc.forEach(["delete","get","head"],function(e){uz.headers[e]={}});Zc.forEach(["post","put","patch"],function(e){uz.headers[e]=Zc.merge(Fut)});var bde=uz,Vut=Zu,Hut=bde,Wut=function(e,t,i){var r=this||Hut;return Vut.forEach(i,function(s){e=s.call(r,e,t)}),e},IY,vCe;function c4e(){return vCe||(vCe=1,IY=function(e){return!!(e&&e.__CANCEL__)}),IY}var bCe=Zu,LY=Wut,zut=c4e(),jut=bde,Uut=cz();function DY(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Uut}var qut=function(e){DY(e),e.headers=e.headers||{},e.data=LY.call(e,e.data,e.headers,e.transformRequest),e.headers=bCe.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),bCe.forEach(["delete","get","head","post","put","patch","common"],function(r){delete e.headers[r]});var t=e.adapter||jut.adapter;return t(e).then(function(r){return DY(e),r.data=LY.call(e,r.data,r.headers,e.transformResponse),r},function(r){return zut(r)||(DY(e),r&&r.response&&(r.response.data=LY.call(e,r.response.data,r.response.headers,e.transformResponse))),Promise.reject(r)})},Df=Zu,u4e=function(e,t){t=t||{};var i={};function r(u,d){return Df.isPlainObject(u)&&Df.isPlainObject(d)?Df.merge(u,d):Df.isPlainObject(d)?Df.merge({},d):Df.isArray(d)?d.slice():d}function o(u){if(Df.isUndefined(t[u])){if(!Df.isUndefined(e[u]))return r(void 0,e[u])}else return r(e[u],t[u])}function s(u){if(!Df.isUndefined(t[u]))return r(void 0,t[u])}function a(u){if(Df.isUndefined(t[u])){if(!Df.isUndefined(e[u]))return r(void 0,e[u])}else return r(void 0,t[u])}function l(u){if(u in t)return r(e[u],t[u]);if(u in e)return r(void 0,e[u])}var c={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l};return Df.forEach(Object.keys(e).concat(Object.keys(t)),function(d){var h=c[d]||o,g=h(d);Df.isUndefined(g)&&h!==l||(i[d]=g)}),i},AY,yCe;function d4e(){return yCe||(yCe=1,AY={version:"0.27.2"}),AY}var Kut=d4e().version,v1=F2,yde={};["object","boolean","number","function","string","symbol"].forEach(function(n,e){yde[n]=function(i){return typeof i===n||"a"+(e<1?"n ":" ")+n}});var CCe={};yde.transitional=function(e,t,i){function r(o,s){return"[Axios v"+Kut+"] Transitional option '"+o+"'"+s+(i?". "+i:"")}return function(o,s,a){if(e===!1)throw new v1(r(s," has been removed"+(t?" in "+t:"")),v1.ERR_DEPRECATED);return t&&!CCe[s]&&(CCe[s]=!0,console.warn(r(s," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(o,s,a):!0}};function Gut(n,e,t){if(typeof n!="object")throw new v1("options must be an object",v1.ERR_BAD_OPTION_VALUE);for(var i=Object.keys(n),r=i.length;r-- >0;){var o=i[r],s=e[o];if(s){var a=n[o],l=a===void 0||s(a,o,n);if(l!==!0)throw new v1("option "+o+" must be "+l,v1.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new v1("Unknown option "+o,v1.ERR_BAD_OPTION)}}var Yut={assertOptions:Gut,validators:yde},h4e=Zu,Qut=n4e,wCe=Cut,SCe=qut,dz=u4e,Xut=l4e,f4e=Yut,pT=f4e.validators;function sD(n){this.defaults=n,this.interceptors={request:new wCe,response:new wCe}}sD.prototype.request=function(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=dz(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var i=t.transitional;i!==void 0&&f4e.assertOptions(i,{silentJSONParsing:pT.transitional(pT.boolean),forcedJSONParsing:pT.transitional(pT.boolean),clarifyTimeoutError:pT.transitional(pT.boolean)},!1);var r=[],o=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(t)===!1||(o=o&&g.synchronous,r.unshift(g.fulfilled,g.rejected))});var s=[];this.interceptors.response.forEach(function(g){s.push(g.fulfilled,g.rejected)});var a;if(!o){var l=[SCe,void 0];for(Array.prototype.unshift.apply(l,r),l=l.concat(s),a=Promise.resolve(t);l.length;)a=a.then(l.shift(),l.shift());return a}for(var c=t;r.length;){var u=r.shift(),d=r.shift();try{c=u(c)}catch(h){d(h);break}}try{a=SCe(c)}catch(h){return Promise.reject(h)}for(;s.length;)a=a.then(s.shift(),s.shift());return a};sD.prototype.getUri=function(e){e=dz(this.defaults,e);var t=Xut(e.baseURL,e.url);return Qut(t,e.params,e.paramsSerializer)};h4e.forEach(["delete","get","head","options"],function(e){sD.prototype[e]=function(t,i){return this.request(dz(i||{},{method:e,url:t,data:(i||{}).data}))}});h4e.forEach(["post","put","patch"],function(e){function t(i){return function(o,s,a){return this.request(dz(a||{},{method:e,headers:i?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}sD.prototype[e]=t(),sD.prototype[e+"Form"]=t(!0)});var Zut=sD,RY,ECe;function Jut(){if(ECe)return RY;ECe=1;var n=cz();function e(t){if(typeof t!="function")throw new TypeError("executor must be a function.");var i;this.promise=new Promise(function(s){i=s});var r=this;this.promise.then(function(o){if(r._listeners){var s,a=r._listeners.length;for(s=0;stypeof window=="object"?((n?n.querySelector("#_goober"):window._goober)||Object.assign((n||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:n||adt,cdt=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,udt=/\/\*[^]*?\*\/| +/g,ICe=/\n+/g,I1=(n,e)=>{let t="",i="",r="";for(let o in n){let s=n[o];o[0]=="@"?o[1]=="i"?t=o+" "+s+";":i+=o[1]=="f"?I1(s,o):o+"{"+I1(s,o[1]=="k"?"":e)+"}":typeof s=="object"?i+=I1(s,e?e.replace(/([^,])+/g,a=>o.replace(/(^:.*)|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,a):a?a+" "+l:l)):o):s!=null&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),r+=I1.p?I1.p(o,s):o+":"+s+";")}return t+(e&&r?e+"{"+r+"}":r)+i},zb={},m4e=n=>{if(typeof n=="object"){let e="";for(let t in n)e+=t+m4e(n[t]);return e}return n},ddt=(n,e,t,i,r)=>{let o=m4e(n),s=zb[o]||(zb[o]=(l=>{let c=0,u=11;for(;c>>0;return"go"+u})(o));if(!zb[s]){let l=o!==n?n:(c=>{let u,d,h=[{}];for(;u=cdt.exec(c.replace(udt,""));)u[4]?h.shift():u[3]?(d=u[3].replace(ICe," ").trim(),h.unshift(h[0][d]=h[0][d]||{})):h[0][u[1]]=u[2].replace(ICe," ").trim();return h[0]})(n);zb[s]=I1(r?{["@keyframes "+s]:l}:l,t?"":"."+s)}let a=t&&zb.g?zb.g:null;return t&&(zb.g=zb[s]),((l,c,u,d)=>{d?c.data=c.data.replace(d,l):c.data.indexOf(l)===-1&&(c.data=u?l+c.data:c.data+l)})(zb[s],e,i,a),s},hdt=(n,e,t)=>n.reduce((i,r,o)=>{let s=e[o];if(s&&s.call){let a=s(t),l=a&&a.props&&a.props.className||/^go/.test(a)&&a;s=l?"."+l:a&&typeof a=="object"?a.props?"":I1(a,""):a===!1?"":a}return i+r+(s??"")},"");function hz(n){let e=this||{},t=n.call?n(e.p):n;return ddt(t.unshift?t.raw?hdt(t,[].slice.call(arguments,1),e.p):t.reduce((i,r)=>Object.assign(i,r&&r.call?r(e.p):r),{}):t,ldt(e.target),e.g,e.o,e.k)}let _4e,jee,Uee;hz.bind({g:1});let c0=hz.bind({k:1});function fdt(n,e,t,i){I1.p=e,_4e=n,jee=t,Uee=i}function Ow(n,e){let t=this||{};return function(){let i=arguments;function r(o,s){let a=Object.assign({},o),l=a.className||r.className;t.p=Object.assign({theme:jee&&jee()},a),t.o=/ *go\d+/.test(l),a.className=hz.apply(t,i)+(l?" "+l:""),e&&(a.ref=s);let c=n;return n[0]&&(c=a.as||n,delete a.as),Uee&&c[0]&&Uee(a),_4e(c,a)}return e?e(r):r}}var gdt=n=>typeof n=="function",$9=(n,e)=>gdt(n)?n(e):n,pdt=(()=>{let n=0;return()=>(++n).toString()})(),v4e=(()=>{let n;return()=>{if(n===void 0&&typeof window<"u"){let e=matchMedia("(prefers-reduced-motion: reduce)");n=!e||e.matches}return n}})(),mdt=20,K$=new Map,_dt=1e3,LCe=n=>{if(K$.has(n))return;let e=setTimeout(()=>{K$.delete(n),fk({type:4,toastId:n})},_dt);K$.set(n,e)},vdt=n=>{let e=K$.get(n);e&&clearTimeout(e)},qee=(n,e)=>{switch(e.type){case 0:return{...n,toasts:[e.toast,...n.toasts].slice(0,mdt)};case 1:return e.toast.id&&vdt(e.toast.id),{...n,toasts:n.toasts.map(o=>o.id===e.toast.id?{...o,...e.toast}:o)};case 2:let{toast:t}=e;return n.toasts.find(o=>o.id===t.id)?qee(n,{type:1,toast:t}):qee(n,{type:0,toast:t});case 3:let{toastId:i}=e;return i?LCe(i):n.toasts.forEach(o=>{LCe(o.id)}),{...n,toasts:n.toasts.map(o=>o.id===i||i===void 0?{...o,visible:!1}:o)};case 4:return e.toastId===void 0?{...n,toasts:[]}:{...n,toasts:n.toasts.filter(o=>o.id!==e.toastId)};case 5:return{...n,pausedAt:e.time};case 6:let r=e.time-(n.pausedAt||0);return{...n,pausedAt:void 0,toasts:n.toasts.map(o=>({...o,pauseDuration:o.pauseDuration+r}))}}},G$=[],Y$={toasts:[],pausedAt:void 0},fk=n=>{Y$=qee(Y$,n),G$.forEach(e=>{e(Y$)})},bdt={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},ydt=(n={})=>{let[e,t]=w.useState(Y$);w.useEffect(()=>(G$.push(t),()=>{let r=G$.indexOf(t);r>-1&&G$.splice(r,1)}),[e]);let i=e.toasts.map(r=>{var o,s;return{...n,...n[r.type],...r,duration:r.duration||((o=n[r.type])==null?void 0:o.duration)||(n==null?void 0:n.duration)||bdt[r.type],style:{...n.style,...(s=n[r.type])==null?void 0:s.style,...r.style}}});return{...e,toasts:i}},Cdt=(n,e="blank",t)=>({createdAt:Date.now(),visible:!0,type:e,ariaProps:{role:"status","aria-live":"polite"},message:n,pauseDuration:0,...t,id:(t==null?void 0:t.id)||pdt()}),Z4=n=>(e,t)=>{let i=Cdt(e,n,t);return fk({type:2,toast:i}),i.id},Pu=(n,e)=>Z4("blank")(n,e);Pu.error=Z4("error");Pu.success=Z4("success");Pu.loading=Z4("loading");Pu.custom=Z4("custom");Pu.dismiss=n=>{fk({type:3,toastId:n})};Pu.remove=n=>fk({type:4,toastId:n});Pu.promise=(n,e,t)=>{let i=Pu.loading(e.loading,{...t,...t==null?void 0:t.loading});return n.then(r=>(Pu.success($9(e.success,r),{id:i,...t,...t==null?void 0:t.success}),r)).catch(r=>{Pu.error($9(e.error,r),{id:i,...t,...t==null?void 0:t.error})}),n};var wdt=(n,e)=>{fk({type:1,toast:{id:n,height:e}})},Sdt=()=>{fk({type:5,time:Date.now()})},Edt=n=>{let{toasts:e,pausedAt:t}=ydt(n);w.useEffect(()=>{if(t)return;let o=Date.now(),s=e.map(a=>{if(a.duration===1/0)return;let l=(a.duration||0)+a.pauseDuration-(o-a.createdAt);if(l<0){a.visible&&Pu.dismiss(a.id);return}return setTimeout(()=>Pu.dismiss(a.id),l)});return()=>{s.forEach(a=>a&&clearTimeout(a))}},[e,t]);let i=w.useCallback(()=>{t&&fk({type:6,time:Date.now()})},[t]),r=w.useCallback((o,s)=>{let{reverseOrder:a=!1,gutter:l=8,defaultPosition:c}=s||{},u=e.filter(g=>(g.position||c)===(o.position||c)&&g.height),d=u.findIndex(g=>g.id===o.id),h=u.filter((g,p)=>pg.visible).slice(...a?[h+1]:[0,h]).reduce((g,p)=>g+(p.height||0)+l,0)},[e]);return{toasts:e,handlers:{updateHeight:wdt,startPause:Sdt,endPause:i,calculateOffset:r}}},xdt=c0` from { transform: scale(0) rotate(45deg); opacity: 0; } to { transform: scale(1) rotate(45deg); opacity: 1; }`,kdt=c0` from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; }`,Tdt=c0` from { transform: scale(0) rotate(90deg); opacity: 0; } to { transform: scale(1) rotate(90deg); opacity: 1; }`,Idt=Ow("div")` width: 20px; opacity: 0; height: 20px; border-radius: 10px; background: ${n=>n.primary||"#ff4b4b"}; position: relative; transform: rotate(45deg); animation: ${xdt} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; animation-delay: 100ms; &:after, &:before { content: ''; animation: ${kdt} 0.15s ease-out forwards; animation-delay: 150ms; position: absolute; border-radius: 3px; opacity: 0; background: ${n=>n.secondary||"#fff"}; bottom: 9px; left: 4px; height: 2px; width: 12px; } &:before { animation: ${Tdt} 0.15s ease-out forwards; animation-delay: 180ms; transform: rotate(90deg); } `,Ldt=c0` from { transform: rotate(0deg); } to { transform: rotate(360deg); } `,Ddt=Ow("div")` width: 12px; height: 12px; box-sizing: border-box; border: 2px solid; border-radius: 100%; border-color: ${n=>n.secondary||"#e0e0e0"}; border-right-color: ${n=>n.primary||"#616161"}; animation: ${Ldt} 1s linear infinite; `,Adt=c0` from { transform: scale(0) rotate(45deg); opacity: 0; } to { transform: scale(1) rotate(45deg); opacity: 1; }`,Rdt=c0` 0% { height: 0; width: 0; opacity: 0; } 40% { height: 0; width: 6px; opacity: 1; } 100% { opacity: 1; height: 10px; }`,Ndt=Ow("div")` width: 20px; opacity: 0; height: 20px; border-radius: 10px; background: ${n=>n.primary||"#61d345"}; position: relative; transform: rotate(45deg); animation: ${Adt} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; animation-delay: 100ms; &:after { content: ''; box-sizing: border-box; animation: ${Rdt} 0.2s ease-out forwards; opacity: 0; animation-delay: 200ms; position: absolute; border-right: 2px solid; border-bottom: 2px solid; border-color: ${n=>n.secondary||"#fff"}; bottom: 6px; left: 6px; height: 10px; width: 6px; } `,Odt=Ow("div")` position: absolute; `,Pdt=Ow("div")` position: relative; display: flex; justify-content: center; align-items: center; min-width: 20px; min-height: 20px; `,Mdt=c0` from { transform: scale(0.6); opacity: 0.4; } to { transform: scale(1); opacity: 1; }`,Fdt=Ow("div")` position: relative; transform: scale(0.6); opacity: 0.4; min-width: 20px; animation: ${Mdt} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; `,Bdt=({toast:n})=>{let{icon:e,type:t,iconTheme:i}=n;return e!==void 0?typeof e=="string"?w.createElement(Fdt,null,e):e:t==="blank"?null:w.createElement(Pdt,null,w.createElement(Ddt,{...i}),t!=="loading"&&w.createElement(Odt,null,t==="error"?w.createElement(Idt,{...i}):w.createElement(Ndt,{...i})))},$dt=n=>` 0% {transform: translate3d(0,${n*-200}%,0) scale(.6); opacity:.5;} 100% {transform: translate3d(0,0,0) scale(1); opacity:1;} `,Vdt=n=>` 0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;} 100% {transform: translate3d(0,${n*-150}%,-1px) scale(.6); opacity:0;} `,Hdt="0%{opacity:0;} 100%{opacity:1;}",Wdt="0%{opacity:1;} 100%{opacity:0;}",zdt=Ow("div")` display: flex; align-items: center; background: #fff; color: #363636; line-height: 1.3; will-change: transform; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05); max-width: 350px; pointer-events: auto; padding: 8px 10px; border-radius: 8px; `,jdt=Ow("div")` display: flex; justify-content: center; margin: 4px 10px; color: inherit; flex: 1 1 auto; white-space: pre-line; `,Udt=(n,e)=>{let t=n.includes("top")?1:-1,[i,r]=v4e()?[Hdt,Wdt]:[$dt(t),Vdt(t)];return{animation:e?`${c0(i)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${c0(r)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},qdt=w.memo(({toast:n,position:e,style:t,children:i})=>{let r=n.height?Udt(n.position||e||"top-center",n.visible):{opacity:0},o=w.createElement(Bdt,{toast:n}),s=w.createElement(jdt,{...n.ariaProps},$9(n.message,n));return w.createElement(zdt,{className:n.className,style:{...r,...t,...n.style}},typeof i=="function"?i({icon:o,message:s}):w.createElement(w.Fragment,null,o,s))});fdt(w.createElement);var Kdt=({id:n,className:e,style:t,onHeightUpdate:i,children:r})=>{let o=w.useCallback(s=>{if(s){let a=()=>{let l=s.getBoundingClientRect().height;i(n,l)};a(),new MutationObserver(a).observe(s,{subtree:!0,childList:!0,characterData:!0})}},[n,i]);return w.createElement("div",{ref:o,className:e,style:t},r)},Gdt=(n,e)=>{let t=n.includes("top"),i=t?{top:0}:{bottom:0},r=n.includes("center")?{justifyContent:"center"}:n.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:v4e()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${e*(t?1:-1)}px)`,...i,...r}},Ydt=hz` z-index: 9999; > * { pointer-events: auto; } `,l6=16,Qdt=({reverseOrder:n,position:e="top-center",toastOptions:t,gutter:i,children:r,containerStyle:o,containerClassName:s})=>{let{toasts:a,handlers:l}=Edt(t);return w.createElement("div",{style:{position:"fixed",zIndex:9999,top:l6,left:l6,right:l6,bottom:l6,pointerEvents:"none",...o},className:s,onMouseEnter:l.startPause,onMouseLeave:l.endPause},a.map(c=>{let u=c.position||e,d=l.calculateOffset(c,{reverseOrder:n,gutter:i,defaultPosition:e}),h=Gdt(u,d);return w.createElement(Kdt,{id:c.id,key:c.id,onHeightUpdate:l.updateHeight,className:c.visible?Ydt:"",style:h},c.type==="custom"?$9(c.message,c):r?r(c):w.createElement(qdt,{toast:c,position:u}))}))},Xdt=Pu;/** * Invoice Ninja (https://invoiceninja.com). * * @link https://github.com/invoiceninja/invoiceninja source repository * * @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com) * * @license https://www.elastic.co/licensing/elastic-license */class Zdt{processing(){return this.currentId=Pu.loading(Wee("processing",{}),{id:this.currentId}),this}success(e="success",t={}){return this.currentId=Pu.success(Ds(e,t),{id:this.currentId}),this}error(e="error_title"){return this.currentId=Pu.error(Wee(e),{id:this.currentId}),this}dismiss(){return Pu.dismiss(this.currentId),this}}const ie=new Zdt;function J4(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,O9(n,e)}var e3=function(){function n(){this.listeners=[]}var e=n.prototype;return e.subscribe=function(i){var r=this,o=i||function(){};return this.listeners.push(o),this.onSubscribe(),function(){r.listeners=r.listeners.filter(function(s){return s!==o}),r.onUnsubscribe()}},e.hasListeners=function(){return this.listeners.length>0},e.onSubscribe=function(){},e.onUnsubscribe=function(){},n}(),V9=typeof window>"u";function pd(){}function Jdt(n,e){return typeof n=="function"?n(e):n}function Kee(n){return typeof n=="number"&&n>=0&&n!==1/0}function H9(n){return Array.isArray(n)?n:[n]}function b4e(n,e){return Math.max(n+(e||0)-Date.now(),0)}function Q$(n,e,t){return fz(n)?typeof e=="function"?rt({},t,{queryKey:n,queryFn:e}):rt({},e,{queryKey:n}):n}function b1(n,e,t){return fz(n)?[rt({},e,{queryKey:n}),t]:[n||{},e]}function eht(n,e){if(n===!0&&e===!0||n==null&&e==null)return"all";if(n===!1&&e===!1)return"none";var t=n??!e;return t?"active":"inactive"}function DCe(n,e){var t=n.active,i=n.exact,r=n.fetching,o=n.inactive,s=n.predicate,a=n.queryKey,l=n.stale;if(fz(a)){if(i){if(e.queryHash!==Cde(a,e.options))return!1}else if(!W9(e.queryKey,a))return!1}var c=eht(t,o);if(c==="none")return!1;if(c!=="all"){var u=e.isActive();if(c==="active"&&!u||c==="inactive"&&u)return!1}return!(typeof l=="boolean"&&e.isStale()!==l||typeof r=="boolean"&&e.isFetching()!==r||s&&!s(e))}function ACe(n,e){var t=n.exact,i=n.fetching,r=n.predicate,o=n.mutationKey;if(fz(o)){if(!e.options.mutationKey)return!1;if(t){if(vE(e.options.mutationKey)!==vE(o))return!1}else if(!W9(e.options.mutationKey,o))return!1}return!(typeof i=="boolean"&&e.state.status==="loading"!==i||r&&!r(e))}function Cde(n,e){var t=(e==null?void 0:e.queryKeyHashFn)||vE;return t(n)}function vE(n){var e=H9(n);return tht(e)}function tht(n){return JSON.stringify(n,function(e,t){return Gee(t)?Object.keys(t).sort().reduce(function(i,r){return i[r]=t[r],i},{}):t})}function W9(n,e){return y4e(H9(n),H9(e))}function y4e(n,e){return n===e?!0:typeof n!=typeof e?!1:n&&e&&typeof n=="object"&&typeof e=="object"?!Object.keys(e).some(function(t){return!y4e(n[t],e[t])}):!1}function z9(n,e){if(n===e)return n;var t=Array.isArray(n)&&Array.isArray(e);if(t||Gee(n)&&Gee(e)){for(var i=t?n.length:Object.keys(n).length,r=t?e:Object.keys(e),o=r.length,s=t?[]:{},a=0,l=0;l"u")return!0;var t=e.prototype;return!(!RCe(t)||!t.hasOwnProperty("isPrototypeOf"))}function RCe(n){return Object.prototype.toString.call(n)==="[object Object]"}function fz(n){return typeof n=="string"||Array.isArray(n)}function iht(n){return new Promise(function(e){setTimeout(e,n)})}function NCe(n){Promise.resolve().then(n).catch(function(e){return setTimeout(function(){throw e})})}function C4e(){if(typeof AbortController=="function")return new AbortController}var rht=function(n){J4(e,n);function e(){var i;return i=n.call(this)||this,i.setup=function(r){var o;if(!V9&&((o=window)!=null&&o.addEventListener)){var s=function(){return r()};return window.addEventListener("visibilitychange",s,!1),window.addEventListener("focus",s,!1),function(){window.removeEventListener("visibilitychange",s),window.removeEventListener("focus",s)}}},i}var t=e.prototype;return t.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},t.onUnsubscribe=function(){if(!this.hasListeners()){var r;(r=this.cleanup)==null||r.call(this),this.cleanup=void 0}},t.setEventListener=function(r){var o,s=this;this.setup=r,(o=this.cleanup)==null||o.call(this),this.cleanup=r(function(a){typeof a=="boolean"?s.setFocused(a):s.onFocus()})},t.setFocused=function(r){this.focused=r,r&&this.onFocus()},t.onFocus=function(){this.listeners.forEach(function(r){r()})},t.isFocused=function(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)},e}(e3),nO=new rht,oht=function(n){J4(e,n);function e(){var i;return i=n.call(this)||this,i.setup=function(r){var o;if(!V9&&((o=window)!=null&&o.addEventListener)){var s=function(){return r()};return window.addEventListener("online",s,!1),window.addEventListener("offline",s,!1),function(){window.removeEventListener("online",s),window.removeEventListener("offline",s)}}},i}var t=e.prototype;return t.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},t.onUnsubscribe=function(){if(!this.hasListeners()){var r;(r=this.cleanup)==null||r.call(this),this.cleanup=void 0}},t.setEventListener=function(r){var o,s=this;this.setup=r,(o=this.cleanup)==null||o.call(this),this.cleanup=r(function(a){typeof a=="boolean"?s.setOnline(a):s.onOnline()})},t.setOnline=function(r){this.online=r,r&&this.onOnline()},t.onOnline=function(){this.listeners.forEach(function(r){r()})},t.isOnline=function(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine},e}(e3),X$=new oht;function sht(n){return Math.min(1e3*Math.pow(2,n),3e4)}function j9(n){return typeof(n==null?void 0:n.cancel)=="function"}var w4e=function(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent};function Z$(n){return n instanceof w4e}var S4e=function(e){var t=this,i=!1,r,o,s,a;this.abort=e.abort,this.cancel=function(h){return r==null?void 0:r(h)},this.cancelRetry=function(){i=!0},this.continueRetry=function(){i=!1},this.continue=function(){return o==null?void 0:o()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(h,g){s=h,a=g});var l=function(g){t.isResolved||(t.isResolved=!0,e.onSuccess==null||e.onSuccess(g),o==null||o(),s(g))},c=function(g){t.isResolved||(t.isResolved=!0,e.onError==null||e.onError(g),o==null||o(),a(g))},u=function(){return new Promise(function(g){o=g,t.isPaused=!0,e.onPause==null||e.onPause()}).then(function(){o=void 0,t.isPaused=!1,e.onContinue==null||e.onContinue()})},d=function h(){if(!t.isResolved){var g;try{g=e.fn()}catch(p){g=Promise.reject(p)}r=function(m){if(!t.isResolved&&(c(new w4e(m)),t.abort==null||t.abort(),j9(g)))try{g.cancel()}catch{}},t.isTransportCancelable=j9(g),Promise.resolve(g).then(l).catch(function(p){var m,_;if(!t.isResolved){var v=(m=e.retry)!=null?m:3,b=(_=e.retryDelay)!=null?_:sht,y=typeof b=="function"?b(t.failureCount,p):b,C=v===!0||typeof v=="number"&&t.failureCount"u"&&(a.exact=!0),this.queries.find(function(l){return DCe(a,l)})},t.findAll=function(r,o){var s=b1(r,o),a=s[0];return Object.keys(a).length>0?this.queries.filter(function(l){return DCe(a,l)}):this.queries},t.notify=function(r){var o=this;vl.batch(function(){o.listeners.forEach(function(s){s(r)})})},t.onFocus=function(){var r=this;vl.batch(function(){r.queries.forEach(function(o){o.onFocus()})})},t.onOnline=function(){var r=this;vl.batch(function(){r.queries.forEach(function(o){o.onOnline()})})},e}(e3),dht=function(){function n(t){this.options=rt({},t.defaultOptions,t.options),this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.observers=[],this.state=t.state||hht(),this.meta=t.meta}var e=n.prototype;return e.setState=function(i){this.dispatch({type:"setState",state:i})},e.addObserver=function(i){this.observers.indexOf(i)===-1&&this.observers.push(i)},e.removeObserver=function(i){this.observers=this.observers.filter(function(r){return r!==i})},e.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(pd).catch(pd)):Promise.resolve()},e.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},e.execute=function(){var i=this,r,o=this.state.status==="loading",s=Promise.resolve();return o||(this.dispatch({type:"loading",variables:this.options.variables}),s=s.then(function(){i.mutationCache.config.onMutate==null||i.mutationCache.config.onMutate(i.state.variables,i)}).then(function(){return i.options.onMutate==null?void 0:i.options.onMutate(i.state.variables)}).then(function(a){a!==i.state.context&&i.dispatch({type:"loading",context:a,variables:i.state.variables})})),s.then(function(){return i.executeMutation()}).then(function(a){r=a,i.mutationCache.config.onSuccess==null||i.mutationCache.config.onSuccess(r,i.state.variables,i.state.context,i)}).then(function(){return i.options.onSuccess==null?void 0:i.options.onSuccess(r,i.state.variables,i.state.context)}).then(function(){return i.options.onSettled==null?void 0:i.options.onSettled(r,null,i.state.variables,i.state.context)}).then(function(){return i.dispatch({type:"success",data:r}),r}).catch(function(a){return i.mutationCache.config.onError==null||i.mutationCache.config.onError(a,i.state.variables,i.state.context,i),U9().error(a),Promise.resolve().then(function(){return i.options.onError==null?void 0:i.options.onError(a,i.state.variables,i.state.context)}).then(function(){return i.options.onSettled==null?void 0:i.options.onSettled(void 0,a,i.state.variables,i.state.context)}).then(function(){throw i.dispatch({type:"error",error:a}),a})})},e.executeMutation=function(){var i=this,r;return this.retryer=new S4e({fn:function(){return i.options.mutationFn?i.options.mutationFn(i.state.variables):Promise.reject("No mutationFn found")},onFail:function(){i.dispatch({type:"failed"})},onPause:function(){i.dispatch({type:"pause"})},onContinue:function(){i.dispatch({type:"continue"})},retry:(r=this.options.retry)!=null?r:0,retryDelay:this.options.retryDelay}),this.retryer.promise},e.dispatch=function(i){var r=this;this.state=fht(this.state,i),vl.batch(function(){r.observers.forEach(function(o){o.onMutationUpdate(i)}),r.mutationCache.notify(r)})},n}();function hht(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function fht(n,e){switch(e.type){case"failed":return rt({},n,{failureCount:n.failureCount+1});case"pause":return rt({},n,{isPaused:!0});case"continue":return rt({},n,{isPaused:!1});case"loading":return rt({},n,{context:e.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:e.variables});case"success":return rt({},n,{data:e.data,error:null,status:"success",isPaused:!1});case"error":return rt({},n,{data:void 0,error:e.error,failureCount:n.failureCount+1,isPaused:!1,status:"error"});case"setState":return rt({},n,e.state);default:return n}}var ght=function(n){J4(e,n);function e(i){var r;return r=n.call(this)||this,r.config=i||{},r.mutations=[],r.mutationId=0,r}var t=e.prototype;return t.build=function(r,o,s){var a=new dht({mutationCache:this,mutationId:++this.mutationId,options:r.defaultMutationOptions(o),state:s,defaultOptions:o.mutationKey?r.getMutationDefaults(o.mutationKey):void 0,meta:o.meta});return this.add(a),a},t.add=function(r){this.mutations.push(r),this.notify(r)},t.remove=function(r){this.mutations=this.mutations.filter(function(o){return o!==r}),r.cancel(),this.notify(r)},t.clear=function(){var r=this;vl.batch(function(){r.mutations.forEach(function(o){r.remove(o)})})},t.getAll=function(){return this.mutations},t.find=function(r){return typeof r.exact>"u"&&(r.exact=!0),this.mutations.find(function(o){return ACe(r,o)})},t.findAll=function(r){return this.mutations.filter(function(o){return ACe(r,o)})},t.notify=function(r){var o=this;vl.batch(function(){o.listeners.forEach(function(s){s(r)})})},t.onFocus=function(){this.resumePausedMutations()},t.onOnline=function(){this.resumePausedMutations()},t.resumePausedMutations=function(){var r=this.mutations.filter(function(o){return o.state.isPaused});return vl.batch(function(){return r.reduce(function(o,s){return o.then(function(){return s.continue().catch(pd)})},Promise.resolve())})},e}(e3);function pht(){return{onFetch:function(e){e.fetchFn=function(){var t,i,r,o,s,a,l=(t=e.fetchOptions)==null||(i=t.meta)==null?void 0:i.refetchPage,c=(r=e.fetchOptions)==null||(o=r.meta)==null?void 0:o.fetchMore,u=c==null?void 0:c.pageParam,d=(c==null?void 0:c.direction)==="forward",h=(c==null?void 0:c.direction)==="backward",g=((s=e.state.data)==null?void 0:s.pages)||[],p=((a=e.state.data)==null?void 0:a.pageParams)||[],m=C4e(),_=m==null?void 0:m.signal,v=p,b=!1,y=e.options.queryFn||function(){return Promise.reject("Missing queryFn")},C=function(B,F,H,V){return v=V?[F].concat(v):[].concat(v,[F]),V?[H].concat(B):[].concat(B,[H])},x=function(B,F,H,V){if(b)return Promise.reject("Cancelled");if(typeof H>"u"&&!F&&B.length)return Promise.resolve(B);var $={queryKey:e.queryKey,signal:_,pageParam:H,meta:e.meta},j=y($),Y=Promise.resolve(j).then(function(se){return C(B,H,se,V)});if(j9(j)){var ne=Y;ne.cancel=j.cancel}return Y},k;if(!g.length)k=x([]);else if(d){var I=typeof u<"u",L=I?u:OCe(e.options,g);k=x(g,I,L)}else if(h){var D=typeof u<"u",R=D?u:mht(e.options,g);k=x(g,D,R,!0)}else(function(){v=[];var O=typeof e.options.getNextPageParam>"u",B=l&&g[0]?l(g[0],0,g):!0;k=B?x([],O,p[0]):Promise.resolve(C([],p[0],g[0]));for(var F=function($){k=k.then(function(j){var Y=l&&g[$]?l(g[$],$,g):!0;if(Y){var ne=O?p[$]:OCe(e.options,j);return x(j,O,ne)}return Promise.resolve(C(j,p[$],g[$]))})},H=1;H"u"&&(u.revert=!0);var d=vl.batch(function(){return s.queryCache.findAll(l).map(function(h){return h.cancel(u)})});return Promise.all(d).then(pd).catch(pd)},e.invalidateQueries=function(i,r,o){var s,a,l,c=this,u=b1(i,r,o),d=u[0],h=u[1],g=rt({},d,{active:(s=(a=d.refetchActive)!=null?a:d.active)!=null?s:!0,inactive:(l=d.refetchInactive)!=null?l:!1});return vl.batch(function(){return c.queryCache.findAll(d).forEach(function(p){p.invalidate()}),c.refetchQueries(g,h)})},e.refetchQueries=function(i,r,o){var s=this,a=b1(i,r,o),l=a[0],c=a[1],u=vl.batch(function(){return s.queryCache.findAll(l).map(function(h){return h.fetch(void 0,rt({},c,{meta:{refetchPage:l==null?void 0:l.refetchPage}}))})}),d=Promise.all(u).then(pd);return c!=null&&c.throwOnError||(d=d.catch(pd)),d},e.fetchQuery=function(i,r,o){var s=Q$(i,r,o),a=this.defaultQueryOptions(s);typeof a.retry>"u"&&(a.retry=!1);var l=this.queryCache.build(this,a);return l.isStaleByTime(a.staleTime)?l.fetch(a):Promise.resolve(l.state.data)},e.prefetchQuery=function(i,r,o){return this.fetchQuery(i,r,o).then(pd).catch(pd)},e.fetchInfiniteQuery=function(i,r,o){var s=Q$(i,r,o);return s.behavior=pht(),this.fetchQuery(s)},e.prefetchInfiniteQuery=function(i,r,o){return this.fetchInfiniteQuery(i,r,o).then(pd).catch(pd)},e.cancelMutations=function(){var i=this,r=vl.batch(function(){return i.mutationCache.getAll().map(function(o){return o.cancel()})});return Promise.all(r).then(pd).catch(pd)},e.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},e.executeMutation=function(i){return this.mutationCache.build(this,i).execute()},e.getQueryCache=function(){return this.queryCache},e.getMutationCache=function(){return this.mutationCache},e.getDefaultOptions=function(){return this.defaultOptions},e.setDefaultOptions=function(i){this.defaultOptions=i},e.setQueryDefaults=function(i,r){var o=this.queryDefaults.find(function(s){return vE(i)===vE(s.queryKey)});o?o.defaultOptions=r:this.queryDefaults.push({queryKey:i,defaultOptions:r})},e.getQueryDefaults=function(i){var r;return i?(r=this.queryDefaults.find(function(o){return W9(i,o.queryKey)}))==null?void 0:r.defaultOptions:void 0},e.setMutationDefaults=function(i,r){var o=this.mutationDefaults.find(function(s){return vE(i)===vE(s.mutationKey)});o?o.defaultOptions=r:this.mutationDefaults.push({mutationKey:i,defaultOptions:r})},e.getMutationDefaults=function(i){var r;return i?(r=this.mutationDefaults.find(function(o){return W9(i,o.mutationKey)}))==null?void 0:r.defaultOptions:void 0},e.defaultQueryOptions=function(i){if(i!=null&&i._defaulted)return i;var r=rt({},this.defaultOptions.queries,this.getQueryDefaults(i==null?void 0:i.queryKey),i,{_defaulted:!0});return!r.queryHash&&r.queryKey&&(r.queryHash=Cde(r.queryKey,r)),r},e.defaultQueryObserverOptions=function(i){return this.defaultQueryOptions(i)},e.defaultMutationOptions=function(i){return i!=null&&i._defaulted?i:rt({},this.defaultOptions.mutations,this.getMutationDefaults(i==null?void 0:i.mutationKey),i,{_defaulted:!0})},e.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},n}(),vht=function(n){J4(e,n);function e(i,r){var o;return o=n.call(this)||this,o.client=i,o.options=r,o.trackedProps=[],o.selectError=null,o.bindMethods(),o.setOptions(r),o}var t=e.prototype;return t.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},t.onSubscribe=function(){this.listeners.length===1&&(this.currentQuery.addObserver(this),PCe(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},t.onUnsubscribe=function(){this.listeners.length||this.destroy()},t.shouldFetchOnReconnect=function(){return Yee(this.currentQuery,this.options,this.options.refetchOnReconnect)},t.shouldFetchOnWindowFocus=function(){return Yee(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},t.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},t.setOptions=function(r,o){var s=this.options,a=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(r),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=s.queryKey),this.updateQuery();var l=this.hasListeners();l&&MCe(this.currentQuery,a,this.options,s)&&this.executeFetch(),this.updateResult(o),l&&(this.currentQuery!==a||this.options.enabled!==s.enabled||this.options.staleTime!==s.staleTime)&&this.updateStaleTimeout();var c=this.computeRefetchInterval();l&&(this.currentQuery!==a||this.options.enabled!==s.enabled||c!==this.currentRefetchInterval)&&this.updateRefetchInterval(c)},t.getOptimisticResult=function(r){var o=this.client.defaultQueryObserverOptions(r),s=this.client.getQueryCache().build(this.client,o);return this.createResult(s,o)},t.getCurrentResult=function(){return this.currentResult},t.trackResult=function(r,o){var s=this,a={},l=function(u){s.trackedProps.includes(u)||s.trackedProps.push(u)};return Object.keys(r).forEach(function(c){Object.defineProperty(a,c,{configurable:!1,enumerable:!0,get:function(){return l(c),r[c]}})}),(o.useErrorBoundary||o.suspense)&&l("error"),a},t.getNextResult=function(r){var o=this;return new Promise(function(s,a){var l=o.subscribe(function(c){c.isFetching||(l(),c.isError&&(r!=null&&r.throwOnError)?a(c.error):s(c))})})},t.getCurrentQuery=function(){return this.currentQuery},t.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},t.refetch=function(r){return this.fetch(rt({},r,{meta:{refetchPage:r==null?void 0:r.refetchPage}}))},t.fetchOptimistic=function(r){var o=this,s=this.client.defaultQueryObserverOptions(r),a=this.client.getQueryCache().build(this.client,s);return a.fetch().then(function(){return o.createResult(a,s)})},t.fetch=function(r){var o=this;return this.executeFetch(r).then(function(){return o.updateResult(),o.currentResult})},t.executeFetch=function(r){this.updateQuery();var o=this.currentQuery.fetch(this.options,r);return r!=null&&r.throwOnError||(o=o.catch(pd)),o},t.updateStaleTimeout=function(){var r=this;if(this.clearStaleTimeout(),!(V9||this.currentResult.isStale||!Kee(this.options.staleTime))){var o=b4e(this.currentResult.dataUpdatedAt,this.options.staleTime),s=o+1;this.staleTimeoutId=setTimeout(function(){r.currentResult.isStale||r.updateResult()},s)}},t.computeRefetchInterval=function(){var r;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(r=this.options.refetchInterval)!=null?r:!1},t.updateRefetchInterval=function(r){var o=this;this.clearRefetchInterval(),this.currentRefetchInterval=r,!(V9||this.options.enabled===!1||!Kee(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(function(){(o.options.refetchIntervalInBackground||nO.isFocused())&&o.executeFetch()},this.currentRefetchInterval))},t.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},t.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},t.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},t.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},t.createResult=function(r,o){var s=this.currentQuery,a=this.options,l=this.currentResult,c=this.currentResultState,u=this.currentResultOptions,d=r!==s,h=d?r.state:this.currentQueryInitialState,g=d?this.currentResult:this.previousQueryResult,p=r.state,m=p.dataUpdatedAt,_=p.error,v=p.errorUpdatedAt,b=p.isFetching,y=p.status,C=!1,x=!1,k;if(o.optimisticResults){var I=this.hasListeners(),L=!I&&PCe(r,o),D=I&&MCe(r,s,o,a);(L||D)&&(b=!0,m||(y="loading"))}if(o.keepPreviousData&&!p.dataUpdateCount&&(g!=null&&g.isSuccess)&&y!=="error")k=g.data,m=g.dataUpdatedAt,y=g.status,C=!0;else if(o.select&&typeof p.data<"u")if(l&&p.data===(c==null?void 0:c.data)&&o.select===this.selectFn)k=this.selectResult;else try{this.selectFn=o.select,k=o.select(p.data),o.structuralSharing!==!1&&(k=z9(l==null?void 0:l.data,k)),this.selectResult=k,this.selectError=null}catch(M){U9().error(M),this.selectError=M}else k=p.data;if(typeof o.placeholderData<"u"&&typeof k>"u"&&(y==="loading"||y==="idle")){var R;if(l!=null&&l.isPlaceholderData&&o.placeholderData===(u==null?void 0:u.placeholderData))R=l.data;else if(R=typeof o.placeholderData=="function"?o.placeholderData():o.placeholderData,o.select&&typeof R<"u")try{R=o.select(R),o.structuralSharing!==!1&&(R=z9(l==null?void 0:l.data,R)),this.selectError=null}catch(M){U9().error(M),this.selectError=M}typeof R<"u"&&(y="success",k=R,x=!0)}this.selectError&&(_=this.selectError,k=this.selectResult,v=Date.now(),y="error");var P={status:y,isLoading:y==="loading",isSuccess:y==="success",isError:y==="error",isIdle:y==="idle",data:k,dataUpdatedAt:m,error:_,errorUpdatedAt:v,failureCount:p.fetchFailureCount,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>h.dataUpdateCount||p.errorUpdateCount>h.errorUpdateCount,isFetching:b,isRefetching:b&&y!=="loading",isLoadingError:y==="error"&&p.dataUpdatedAt===0,isPlaceholderData:x,isPreviousData:C,isRefetchError:y==="error"&&p.dataUpdatedAt!==0,isStale:wde(r,o),refetch:this.refetch,remove:this.remove};return P},t.shouldNotifyListeners=function(r,o){if(!o)return!0;var s=this.options,a=s.notifyOnChangeProps,l=s.notifyOnChangePropsExclusions;if(!a&&!l||a==="tracked"&&!this.trackedProps.length)return!0;var c=a==="tracked"?this.trackedProps:a;return Object.keys(r).some(function(u){var d=u,h=r[d]!==o[d],g=c==null?void 0:c.some(function(m){return m===u}),p=l==null?void 0:l.some(function(m){return m===u});return h&&!p&&(!c||g)})},t.updateResult=function(r){var o=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!nht(this.currentResult,o)){var s={cache:!0};(r==null?void 0:r.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,o)&&(s.listeners=!0),this.notify(rt({},s,r))}},t.updateQuery=function(){var r=this.client.getQueryCache().build(this.client,this.options);if(r!==this.currentQuery){var o=this.currentQuery;this.currentQuery=r,this.currentQueryInitialState=r.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(o==null||o.removeObserver(this),r.addObserver(this))}},t.onQueryUpdate=function(r){var o={};r.type==="success"?o.onSuccess=!0:r.type==="error"&&!Z$(r.error)&&(o.onError=!0),this.updateResult(o),this.hasListeners()&&this.updateTimers()},t.notify=function(r){var o=this;vl.batch(function(){r.onSuccess?(o.options.onSuccess==null||o.options.onSuccess(o.currentResult.data),o.options.onSettled==null||o.options.onSettled(o.currentResult.data,null)):r.onError&&(o.options.onError==null||o.options.onError(o.currentResult.error),o.options.onSettled==null||o.options.onSettled(void 0,o.currentResult.error)),r.listeners&&o.listeners.forEach(function(s){s(o.currentResult)}),r.cache&&o.client.getQueryCache().notify({query:o.currentQuery,type:"observerResultsUpdated"})})},e}(e3);function bht(n,e){return e.enabled!==!1&&!n.state.dataUpdatedAt&&!(n.state.status==="error"&&e.retryOnMount===!1)}function PCe(n,e){return bht(n,e)||n.state.dataUpdatedAt>0&&Yee(n,e,e.refetchOnMount)}function Yee(n,e,t){if(e.enabled!==!1){var i=typeof t=="function"?t(n):t;return i==="always"||i!==!1&&wde(n,e)}return!1}function MCe(n,e,t,i){return t.enabled!==!1&&(n!==e||i.enabled===!1)&&(!t.suspense||n.state.status!=="error")&&wde(n,t)}function wde(n,e){return n.isStaleByTime(e.staleTime)}var yht=VW.unstable_batchedUpdates;vl.setBatchNotifyFunction(yht);var Cht=console;lht(Cht);var FCe=te.createContext(void 0),x4e=te.createContext(!1);function k4e(n){return n&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=FCe),window.ReactQueryClientContext):FCe}var Kr=function(){var e=te.useContext(k4e(te.useContext(x4e)));if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},wht=function(e){var t=e.client,i=e.contextSharing,r=i===void 0?!1:i,o=e.children;te.useEffect(function(){return t.mount(),function(){t.unmount()}},[t]);var s=k4e(r);return te.createElement(x4e.Provider,{value:r},te.createElement(s.Provider,{value:t},o))};function Sht(){var n=!1;return{clearReset:function(){n=!1},reset:function(){n=!0},isReset:function(){return n}}}var Eht=te.createContext(Sht()),xht=function(){return te.useContext(Eht)};function kht(n,e,t){return typeof e=="function"?e.apply(void 0,t):typeof e=="boolean"?e:!!n}function Tht(n,e){var t=te.useRef(!1),i=te.useState(0),r=i[1],o=Kr(),s=xht(),a=o.defaultQueryObserverOptions(n);a.optimisticResults=!0,a.onError&&(a.onError=vl.batchCalls(a.onError)),a.onSuccess&&(a.onSuccess=vl.batchCalls(a.onSuccess)),a.onSettled&&(a.onSettled=vl.batchCalls(a.onSettled)),a.suspense&&(typeof a.staleTime!="number"&&(a.staleTime=1e3),a.cacheTime===0&&(a.cacheTime=1)),(a.suspense||a.useErrorBoundary)&&(s.isReset()||(a.retryOnMount=!1));var l=te.useState(function(){return new e(o,a)}),c=l[0],u=c.getOptimisticResult(a);if(te.useEffect(function(){t.current=!0,s.clearReset();var d=c.subscribe(vl.batchCalls(function(){t.current&&r(function(h){return h+1})}));return c.updateResult(),function(){t.current=!1,d()}},[s,c]),te.useEffect(function(){c.setOptions(a,{listeners:!1})},[a,c]),a.suspense&&u.isLoading)throw c.fetchOptimistic(a).then(function(d){var h=d.data;a.onSuccess==null||a.onSuccess(h),a.onSettled==null||a.onSettled(h,null)}).catch(function(d){s.clearReset(),a.onError==null||a.onError(d),a.onSettled==null||a.onSettled(void 0,d)});if(u.isError&&!s.isReset()&&!u.isFetching&&kht(a.suspense,a.useErrorBoundary,[u.error,c.getCurrentQuery()]))throw u.error;return a.notifyOnChangeProps==="tracked"&&(u=c.trackResult(u,a)),u}function ai(n,e,t){var i=Q$(n,e,t);return Tht(i,vht)}/** * Invoice Ninja (https://invoiceninja.com). * * @link https://github.com/invoiceninja/invoiceninja source repository * * @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com) * * @license https://www.elastic.co/licensing/elastic-license */const dL={invoices:{path:"/api/v1/invoices",dependencies:["/api/v1/clients","/api/v1/charts/totals_v2","/api/v1/charts/chart_summary_v2","/api/v1/activities/entity","/api/v1/activities","/api/v1/documents"]},designs:{path:"/api/v1/designs",dependencies:["/api/v1/invoices","/api/v1/quotes","/api/v1/credits","/api/v1/recurring_invoices","/api/v1/purchase_orders"]},tokens:{path:"/api/v1/tokens",dependencies:[]},webhooks:{path:"/api/v1/webhooks",dependencies:[]},company_gateways:{path:"/api/v1/company_gateways",dependencies:[]},credits:{path:"/api/v1/credits",dependencies:["/api/v1/clients","/api/v1/documents"]},expense_categories:{path:"/api/v1/expense_categories",dependencies:["/api/v1/expenses","/api/v1/recurring_expenses","/api/v1/bank_transaction_rules","/api/v1/vendors","/api/v1/bank_transactions"]},expenses:{path:"/api/v1/expenses",dependencies:["/api/v1/charts/totals_v2","/api/v1/charts/chart_summary_v2","/api/v1/documents"]},group_settings:{path:"/api/v1/group_settings",dependencies:["/api/v1/clients"]},payments:{path:"/api/v1/payments",dependencies:["/api/v1/expenses","/api/v1/invoices","/api/v1/clients","/api/v1/charts/totals_v2","/api/v1/charts/chart_summary_v2","/api/v1/activities","/api/v1/documents"]},purchase_orders:{path:"/api/v1/purchase_orders",dependencies:["/api/v1/vendors"]},recurring_expenses:{path:"/api/v1/recurring_expenses",dependencies:["/api/v1/vendors","/api/v1/documents"]},task_statuses:{path:"/api/v1/task_statuses",dependencies:["/api/v1/tasks"]},tasks:{path:"/api/v1/tasks",dependencies:["/api/v1/projects","/api/v1/documents"]},tax_rates:{path:"/api/v1/tax_rates",dependencies:["/api/v1/invoices","/api/v1/quotes","/api/v1/credits","/api/v1/recurring_invoices","/api/v1/purchase_orders"]},bank_transactions:{path:"/api/v1/bank_transactions",dependencies:["/api/v1/payments","/api/v1/invoices","/api/v1/vendors","/api/v1/expenses","/api/v1/expense_categories"]},bank_transaction_rules:{path:"/api/v1/bank_transaction_rules",dependencies:["/api/v1/bank_transactions"]},vendors:{path:"/api/v1/vendors",dependencies:["/api/v1/expenses","/api/v1/recurring_expenses","/api/v1/purchase_orders"]},users:{path:"/api/v1/users",dependencies:["/api/v1/tasks","/api/v1/invoices","/api/v1/quotes","/api/v1/credits","/api/v1/recurring_invoices","/api/v1/projects","/api/v1/payments","/api/v1/expenses","/api/v1/tasks"]},company_users:{path:"/api/v1/company_users",dependencies:[]},clients:{path:"/api/v1/clients",dependencies:["/api/v1/tasks","/api/v1/invoices","/api/v1/quotes","/api/v1/credits","/api/v1/recurring_invoices","/api/v1/projects","/api/v1/payments","/api/v1/expenses","/api/v1/recurring_expenses","/api/v1/tasks","/api/v1/charts/totals_v2","/api/v1/charts/chart_summary_v2","/api/v1/documents"]},products:{path:"/api/v1/products",dependencies:["/api/v1/subscriptions","/api/v1/invoices"]},projects:{path:"/api/v1/projects",dependencies:["/api/v1/tasks","/api/v1/documents"]},quotes:{path:"/api/v1/quotes",dependencies:["/api/v1/clients","/api/v1/activities","/api/v1/documents"]},recurring_invoices:{path:"/api/v1/recurring_invoices",dependencies:["/api/v1/clients","/api/v1/activities/entity","/api/v1/documents"]},bank_integrations:{path:"/api/v1/bank_integrations",dependencies:["/api/v1/bank_transactions"]},documents:{path:"/api/v1/documents",dependencies:[]},payment_terms:{path:"/api/v1/payment_terms",dependencies:[]},statics:{path:"/api/v1/statics",dependencies:[]},task_schedulers:{path:"/api/v1/task_schedulers",dependencies:[]},subscriptions:{path:"/api/v1/subscriptions",dependencies:[]},activities:{path:"/api/v1/activities",dependencies:["/api/v1/activities/entity"]}};function T4e(){const n=Kr();return e=>{e.map(t=>{dL[t]&&(n.invalidateQueries(dL[t].path),dL[t].dependencies.map(i=>{n.invalidateQueries(i)}))})}}function hn(n){window.dispatchEvent(new CustomEvent("refetch",{detail:{property:n}}))}function Iht(n){return Object.keys(dL).find(t=>dL[t].path.startsWith(n)||n.startsWith(dL[t].path))}function Lht(n){n.map(e=>{const t=Iht(e);t&&hn([t])})}/** * Invoice Ninja (https://invoiceninja.com). * * @link https://github.com/invoiceninja/invoiceninja source repository * * @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com) * * @license https://www.elastic.co/licensing/elastic-license */function I4e(){const n=localStorage.getItem("displayChromeExtensionBanner");localStorage.clear(),n&&localStorage.setItem("displayChromeExtensionBanner",n)}/** * Invoice Ninja (https://invoiceninja.com). * * @link https://github.com/invoiceninja/invoiceninja source repository * * @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com) * * @license https://www.elastic.co/licensing/elastic-license */const L4e=p4e.create();L4e.interceptors.response.use(n=>{const e=Dht(n.config.data),t=n.config.method;return(t==="put"||t==="post"&&(e==null?void 0:e.action)==="delete"||t==="delete")&&hn(["activities"]),n},n=>{var e,t,i,r,o,s,a,l;return(((e=n.response)==null?void 0:e.status)===429||((t=n.response)==null?void 0:t.status)===403)&&(window.location.reload(),I4e()),((i=n.response)==null?void 0:i.status)===404&&window.dispatchEvent(new CustomEvent("navigate.invalid.page")),(r=n.response)!=null&&r.status&&n.response.status!==412&&n.response.status!==422&&n.response.status>399&&n.response.status<500&&ie.error(((o=n.response)==null?void 0:o.data.message)||"error_title"),(s=n.response)!=null&&s.status&&n.response.status===500&&ie.error("error_title"),((a=n.response)==null?void 0:a.status)===409&&ie.processing(),((l=n.response)==null?void 0:l.status)===422&&window.dispatchEvent(new CustomEvent("display.error.toaster",{detail:{error:n}})),console.error(n),Promise.reject(n)});function Te(n,e,t,i){return L4e({method:n,url:e,data:t,...i,headers:{...fx(),...i==null?void 0:i.headers},signal:i==null?void 0:i.signal})}/** * Invoice Ninja (https://invoiceninja.com). * * @link https://github.com/invoiceninja/invoiceninja source repository * * @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com) * * @license https://www.elastic.co/licensing/elastic-license */function Il(){const n=vi(),{data:e}=Nd(),[t,i]=w.useState("0"),[r,o]=w.useState("DD/MMM/YYYY");return w.useEffect(()=>{if(e!=null&&e.date_formats){const s=e.date_formats.find(a=>{var l;return a.id===((l=n==null?void 0:n.settings)==null?void 0:l.date_format_id)});s&&(o(s.format_moment),i(s.id))}},[n,e]),{dateFormatId:t,dateFormat:r}}/** * Invoice Ninja (https://invoiceninja.com). * * @link https://github.com/invoiceninja/invoiceninja source repository * * @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com) * * @license https://www.elastic.co/licensing/elastic-license */function Yo(){return!1}function t3(){return!Yo()}function n3(){return window.location.origin||"https://invoicing.co"}function ye(n,e={}){return n3()+dt(n,e)}function PY(...n){return n.filter(Boolean).join(" ")}function Jr(n,e){return n===0||n===""||n===void 0?"":typeof n=="number"?Cn.unix(n).format(e):Cn(n).format(e)}function $dr(){const{dateFormat:n}=Il(),e=["DD. MMM. YYYY","ddd MMM D, YYYY"];return t=>Cn(t,e.includes(n)?void 0:n)}function nr(n){if(!n.is_deleted&&!n.archived_at)return bY.active;if(n.archived_at&&!n.is_deleted)return bY.archived;if(n.is_deleted)return bY.deleted}function Ds(n,e){let t=Wee(n);for(const i in e)t=t.replace(`:${i}`,e[i]);return t}function Vdr(n,e={}){return n3()+dt(n,e)}function u0(){return"https://demo.invoiceninja.com"===n3()}function Dht(n){try{return n&&JSON.parse(n)}catch{return!1}}/** * Invoice Ninja (https://invoiceninja.com). * * @link https://github.com/invoiceninja/invoiceninja source repository * * @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com) * * @license https://www.elastic.co/licensing/elastic-license */function Nd(){return ai(["/api/v1/statics"],()=>Te("GET",ye("/api/v1/statics")).then(n=>n.data),{enabled:!!localStorage.getItem("X-NINJA-TOKEN"),staleTime:1/0})}/** * Invoice Ninja (https://invoiceninja.com). * * @link https://github.com/invoiceninja/invoiceninja source repository * * @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com) * * @license https://www.elastic.co/licensing/elastic-license */function gz(){const{data:n}=Nd(),[e,t]=w.useState([]);return w.useEffect(()=>{n!=null&&n.languages&&t(n.languages)},[n]),e}/** * Invoice Ninja (https://invoiceninja.com). * * @link https://github.com/invoiceninja/invoiceninja source repository * * @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com) * * @license https://www.elastic.co/licensing/elastic-license */function D4e(){const n=gz();return e=>n.find(t=>t.id.toString()===e.toString())}function uu(n,e){if(n==null)return{};var t=nde(n,e),i,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(t[i]=n[i])}return t}function Aht(){if(console&&console.warn){for(var n,e=arguments.length,t=new Array(e),i=0;i2&&arguments[2]!==void 0?arguments[2]:{},i=e.languages[0],r=e.options?e.options.fallbackLng:!1,o=e.languages[e.languages.length-1];if(i.toLowerCase()==="cimode")return!0;var s=function(l,c){var u=e.services.backendConnector.state["".concat(l,"|").concat(c)];return u===-1||u===2};return t.bindI18n&&t.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!s(e.isLanguageChangingTo,n)?!1:!!(e.hasResourceBundle(i,n)||!e.services.backendConnector.backend||e.options.resources&&!e.options.partialBundledLanguages||s(i,n)&&(!r||s(o,n)))}function Nht(n,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!e.languages||!e.languages.length)return Qee("i18n.languages were undefined or empty",e.languages),!0;var i=e.options.ignoreJSONStructure!==void 0;return i?e.hasLoadedNamespace(n,{lng:t.lng,precheck:function(o,s){if(t.bindI18n&&t.bindI18n.indexOf("languageChanging")>-1&&o.services.backendConnector.backend&&o.isLanguageChangingTo&&!s(o.isLanguageChangingTo,n))return!1}}):Rht(n,e,t)}var Oht=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Pht={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},Mht=function(e){return Pht[e]},Fht=function(e){return e.replace(Oht,Mht)};function HCe(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,i)}return t}function WCe(n){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:{};Xee=WCe(WCe({},Xee),n)}function $ht(){return Xee}var R4e;function Vht(n){R4e=n}function Hht(){return R4e}var Wht={type:"3rdParty",init:function(e){Bht(e.options.react),Vht(e)}},zht=w.createContext(),jht=function(){function n(){Ua(this,n),this.usedNamespaces={}}return qa(n,[{key:"addUsedNamespaces",value:function(t){var i=this;t.forEach(function(r){i.usedNamespaces[r]||(i.usedNamespaces[r]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),n}();function Uht(n,e){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var i,r,o,s,a=[],l=!0,c=!1;try{if(o=(t=t.call(n)).next,e===0){if(Object(t)!==t)return;l=!1}else for(;!(l=(i=o.call(t)).done)&&(a.push(i.value),a.length!==e);l=!0);}catch(u){c=!0,r=u}finally{try{if(!l&&t.return!=null&&(s=t.return(),Object(s)!==s))return}finally{if(c)throw r}}return a}}function $t(n,e){return KMe(n)||Uht(n,e)||dde(n,e)||YMe()}function zCe(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,i)}return t}function MY(n){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:{},t=e.i18n,i=w.useContext(zht)||{},r=i.i18n,o=i.defaultNS,s=t||r||Hht();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new jht),!s){Qee("You will need to pass in an i18next instance by using initReactI18next");var a=function(D,R){return typeof R=="string"?R:R&&Er(R)==="object"&&typeof R.defaultValue=="string"?R.defaultValue:Array.isArray(D)?D[D.length-1]:D},l=[a,{},!1];return l.t=a,l.i18n={},l.ready=!1,l}s.options.react&&s.options.react.wait!==void 0&&Qee("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var c=MY(MY(MY({},$ht()),s.options.react),e),u=c.useSuspense,d=c.keyPrefix,h=n||o||s.options&&s.options.defaultNS;h=typeof h=="string"?[h]:h||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(h);var g=(s.isInitialized||s.initializedStoreOnce)&&h.every(function(L){return Nht(L,s,c)});function p(){return s.getFixedT(e.lng||null,c.nsMode==="fallback"?h:h[0],d)}var m=w.useState(p),_=$t(m,2),v=_[0],b=_[1],y=h.join();e.lng&&(y="".concat(e.lng).concat(y));var C=qht(y),x=w.useRef(!0);w.useEffect(function(){var L=c.bindI18n,D=c.bindI18nStore;x.current=!0,!g&&!u&&(e.lng?VCe(s,e.lng,h,function(){x.current&&b(p)}):$Ce(s,h,function(){x.current&&b(p)})),g&&C&&C!==y&&x.current&&b(p);function R(){x.current&&b(p)}return L&&s&&s.on(L,R),D&&s&&s.store.on(D,R),function(){x.current=!1,L&&s&&L.split(" ").forEach(function(P){return s.off(P,R)}),D&&s&&D.split(" ").forEach(function(P){return s.store.off(P,R)})}},[s,y]);var k=w.useRef(!0);w.useEffect(function(){x.current&&!k.current&&b(p),k.current=!1},[s,d]);var I=[v,s,g];if(I.t=v,I.i18n=s,I.ready=g,g||!g&&!u)return I;throw new Promise(function(L){e.lng?VCe(s,e.lng,h,function(){return L()}):$Ce(s,h,function(){return L()})})}const Kht="modulepreload",Ght=function(n){return"/"+n},jCe={},X=function(e,t,i){if(!t||t.length===0)return e();const r=document.getElementsByTagName("link");return Promise.all(t.map(o=>{if(o=Ght(o),o in jCe)return;jCe[o]=!0;const s=o.endsWith(".css"),a=s?'[rel="stylesheet"]':"";if(!!i)for(let u=r.length-1;u>=0;u--){const d=r[u];if(d.href===o&&(!s||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${a}`))return;const c=document.createElement("link");if(c.rel=s?"stylesheet":Kht,s||(c.as="script",c.crossOrigin=""),c.href=o,document.head.appendChild(c),s)return new Promise((u,d)=>{c.addEventListener("load",u),c.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>e()).catch(o=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o})};/** * @remix-run/router v1.10.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function TP(){return TP=Object.assign?Object.assign.bind():function(n){for(var e=1;e"u")throw new Error(e)}function pz(n,e){if(!n){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function Qht(){return Math.random().toString(36).substr(2,8)}function qCe(n,e){return{usr:n.state,key:n.key,idx:e}}function Zee(n,e,t,i){return t===void 0&&(t=null),TP({pathname:typeof n=="string"?n:n.pathname,search:"",hash:""},typeof e=="string"?B2(e):e,{state:t,key:e&&e.key||i||Qht()})}function q9(n){let{pathname:e="/",search:t="",hash:i=""}=n;return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),i&&i!=="#"&&(e+=i.charAt(0)==="#"?i:"#"+i),e}function B2(n){let e={};if(n){let t=n.indexOf("#");t>=0&&(e.hash=n.substr(t),n=n.substr(0,t));let i=n.indexOf("?");i>=0&&(e.search=n.substr(i),n=n.substr(0,i)),n&&(e.pathname=n)}return e}function Xht(n,e,t,i){i===void 0&&(i={});let{window:r=document.defaultView,v5Compat:o=!1}=i,s=r.history,a=$1.Pop,l=null,c=u();c==null&&(c=0,s.replaceState(TP({},s.state,{idx:c}),""));function u(){return(s.state||{idx:null}).idx}function d(){a=$1.Pop;let _=u(),v=_==null?null:_-c;c=_,l&&l({action:a,location:m.location,delta:v})}function h(_,v){a=$1.Push;let b=Zee(m.location,_,v);t&&t(b,_),c=u()+1;let y=qCe(b,c),C=m.createHref(b);try{s.pushState(y,"",C)}catch(x){if(x instanceof DOMException&&x.name==="DataCloneError")throw x;r.location.assign(C)}o&&l&&l({action:a,location:m.location,delta:1})}function g(_,v){a=$1.Replace;let b=Zee(m.location,_,v);t&&t(b,_),c=u();let y=qCe(b,c),C=m.createHref(b);s.replaceState(y,"",C),o&&l&&l({action:a,location:m.location,delta:0})}function p(_){let v=r.location.origin!=="null"?r.location.origin:r.location.href,b=typeof _=="string"?_:q9(_);return Cl(v,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,v)}let m={get action(){return a},get location(){return n(r,s)},listen(_){if(l)throw new Error("A history only accepts one active listener");return r.addEventListener(UCe,d),l=_,()=>{r.removeEventListener(UCe,d),l=null}},createHref(_){return e(r,_)},createURL:p,encodeLocation(_){let v=p(_);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:h,replace:g,go(_){return s.go(_)}};return m}var KCe;(function(n){n.data="data",n.deferred="deferred",n.redirect="redirect",n.error="error"})(KCe||(KCe={}));function Zht(n,e,t){t===void 0&&(t="/");let i=typeof e=="string"?B2(e):e,r=Sde(i.pathname||"/",t);if(r==null)return null;let o=N4e(n);Jht(o);let s=null;for(let a=0;s==null&&a{let l={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};l.relativePath.startsWith("/")&&(Cl(l.relativePath.startsWith(i),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+i+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(i.length));let c=mC([i,l.relativePath]),u=t.concat(l);o.children&&o.children.length>0&&(Cl(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),N4e(o.children,e,u,c)),!(o.path==null&&!o.index)&&e.push({path:c,score:sft(c,o.index),routesMeta:u})};return n.forEach((o,s)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))r(o,s);else for(let l of O4e(o.path))r(o,s,l)}),e}function O4e(n){let e=n.split("/");if(e.length===0)return[];let[t,...i]=e,r=t.endsWith("?"),o=t.replace(/\?$/,"");if(i.length===0)return r?[o,""]:[o];let s=O4e(i.join("/")),a=[];return a.push(...s.map(l=>l===""?o:[o,l].join("/"))),r&&a.push(...s),a.map(l=>n.startsWith("/")&&l===""?"/":l)}function Jht(n){n.sort((e,t)=>e.score!==t.score?t.score-e.score:aft(e.routesMeta.map(i=>i.childrenIndex),t.routesMeta.map(i=>i.childrenIndex)))}const eft=/^:\w+$/,tft=3,nft=2,ift=1,rft=10,oft=-2,GCe=n=>n==="*";function sft(n,e){let t=n.split("/"),i=t.length;return t.some(GCe)&&(i+=oft),e&&(i+=nft),t.filter(r=>!GCe(r)).reduce((r,o)=>r+(eft.test(o)?tft:o===""?ift:rft),i)}function aft(n,e){return n.length===e.length&&n.slice(0,-1).every((i,r)=>i===e[r])?n[n.length-1]-e[e.length-1]:0}function lft(n,e){let{routesMeta:t}=n,i={},r="/",o=[];for(let s=0;ss==null?"":typeof s=="string"?s:String(s),o=t.split(/\/+/).map((s,a,l)=>{if(a===l.length-1&&s==="*")return r(e["*"]);const u=s.match(/^:(\w+)(\??)$/);if(u){const[,d,h]=u;let g=e[d];return Cl(h==="?"||g!=null,'Missing ":'+d+'" param'),r(g)}return s.replace(/\?$/g,"")}).filter(s=>!!s);return i+o.join("/")}function cft(n,e){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[t,i]=uft(n.path,n.caseSensitive,n.end),r=e.match(t);if(!r)return null;let o=r[0],s=o.replace(/(.)\/+$/,"$1"),a=r.slice(1);return{params:i.reduce((c,u,d)=>{if(u==="*"){let h=a[d]||"";s=o.slice(0,o.length-h.length).replace(/(.)\/+$/,"$1")}return c[u]=hft(a[d]||"",u),c},{}),pathname:o,pathnameBase:s,pattern:n}}function uft(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!0),pz(n==="*"||!n.endsWith("*")||n.endsWith("/*"),'Route path "'+n+'" will be treated as if it were '+('"'+n.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+n.replace(/\*$/,"/*")+'".'));let i=[],r="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(s,a)=>(i.push(a),"/([^\\/]+)"));return n.endsWith("*")?(i.push("*"),r+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):t?r+="\\/*$":n!==""&&n!=="/"&&(r+="(?:(?=\\/|$))"),[new RegExp(r,e?void 0:"i"),i]}function dft(n){try{return decodeURI(n)}catch(e){return pz(!1,'The URL path "'+n+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),n}}function hft(n,e){try{return decodeURIComponent(n)}catch(t){return pz(!1,'The value for the URL param "'+e+'" will not be decoded because'+(' the string "'+n+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+t+").")),n}}function Sde(n,e){if(e==="/")return n;if(!n.toLowerCase().startsWith(e.toLowerCase()))return null;let t=e.endsWith("/")?e.length-1:e.length,i=n.charAt(t);return i&&i!=="/"?null:n.slice(t)||"/"}function fft(n,e){e===void 0&&(e="/");let{pathname:t,search:i="",hash:r=""}=typeof n=="string"?B2(n):n;return{pathname:t?t.startsWith("/")?t:gft(t,e):e,search:mft(i),hash:_ft(r)}}function gft(n,e){let t=e.replace(/\/+$/,"").split("/");return n.split("/").forEach(r=>{r===".."?t.length>1&&t.pop():r!=="."&&t.push(r)}),t.length>1?t.join("/"):"/"}function FY(n,e,t,i){return"Cannot include a '"+n+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(i)+"]. Please separate it out to the ")+("`to."+t+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Ede(n){return n.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function xde(n,e,t,i){i===void 0&&(i=!1);let r;typeof n=="string"?r=B2(n):(r=TP({},n),Cl(!r.pathname||!r.pathname.includes("?"),FY("?","pathname","search",r)),Cl(!r.pathname||!r.pathname.includes("#"),FY("#","pathname","hash",r)),Cl(!r.search||!r.search.includes("#"),FY("#","search","hash",r)));let o=n===""||r.pathname==="",s=o?"/":r.pathname,a;if(i||s==null)a=t;else{let d=e.length-1;if(s.startsWith("..")){let h=s.split("/");for(;h[0]==="..";)h.shift(),d-=1;r.pathname=h.join("/")}a=d>=0?e[d]:"/"}let l=fft(r,a),c=s&&s!=="/"&&s.endsWith("/"),u=(o||s===".")&&t.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const mC=n=>n.join("/").replace(/\/\/+/g,"/"),pft=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),mft=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,_ft=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function vft(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}const P4e=["post","put","patch","delete"];new Set(P4e);const bft=["get",...P4e];new Set(bft);/** * React Router v6.17.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function K9(){return K9=Object.assign?Object.assign.bind():function(n){for(var e=1;el.pathnameBase)),s=w.useRef(!1);return F4e(()=>{s.current=!0}),w.useCallback(function(l,c){if(c===void 0&&(c={}),!s.current)return;if(typeof l=="number"){t.go(l);return}let u=xde(l,JSON.parse(o),r,c.relative==="path");n==null&&e!=="/"&&(u.pathname=u.pathname==="/"?e:mC([e,u.pathname])),(c.replace?t.replace:t.push)(u,c.state,c)},[e,t,o,r,n])}const B4e=w.createContext(null);function $4e(){return w.useContext(B4e)}function Sft(n){let e=w.useContext(bb).outlet;return e&&w.createElement(B4e.Provider,{value:n},e)}function Fa(){let{matches:n}=w.useContext(bb),e=n[n.length-1];return e?e.params:{}}function V4e(n,e){let{relative:t}=e===void 0?{}:e,{matches:i}=w.useContext(bb),{pathname:r}=ol(),o=JSON.stringify(Ede(i).map(s=>s.pathnameBase));return w.useMemo(()=>xde(n,JSON.parse(o),r,t==="path"),[n,o,r,t])}function Eft(n,e){return xft(n,e)}function xft(n,e,t){V2()||Cl(!1);let{navigator:i}=w.useContext($2),{matches:r}=w.useContext(bb),o=r[r.length-1],s=o?o.params:{};o&&o.pathname;let a=o?o.pathnameBase:"/";o&&o.route;let l=ol(),c;if(e){var u;let m=typeof e=="string"?B2(e):e;a==="/"||(u=m.pathname)!=null&&u.startsWith(a)||Cl(!1),c=m}else c=l;let d=c.pathname||"/",h=a==="/"?d:d.slice(a.length)||"/",g=Zht(n,{pathname:h}),p=Dft(g&&g.map(m=>Object.assign({},m,{params:Object.assign({},s,m.params),pathname:mC([a,i.encodeLocation?i.encodeLocation(m.pathname).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?a:mC([a,i.encodeLocation?i.encodeLocation(m.pathnameBase).pathname:m.pathnameBase])})),r,t);return e&&p?w.createElement(mz.Provider,{value:{location:K9({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:$1.Pop}},p):p}function kft(){let n=Oft(),e=vft(n)?n.status+" "+n.statusText:n instanceof Error?n.message:JSON.stringify(n),t=n instanceof Error?n.stack:null,r={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},o=null;return w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},e),t?w.createElement("pre",{style:r},t):null,o)}const Tft=w.createElement(kft,null);class Ift extends w.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?w.createElement(bb.Provider,{value:this.props.routeContext},w.createElement(M4e.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Lft(n){let{routeContext:e,match:t,children:i}=n,r=w.useContext(kde);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),w.createElement(bb.Provider,{value:e},i)}function Dft(n,e,t){var i;if(e===void 0&&(e=[]),t===void 0&&(t=null),n==null){var r;if((r=t)!=null&&r.errors)n=t.matches;else return null}let o=n,s=(i=t)==null?void 0:i.errors;if(s!=null){let a=o.findIndex(l=>l.route.id&&(s==null?void 0:s[l.route.id]));a>=0||Cl(!1),o=o.slice(0,Math.min(o.length,a+1))}return o.reduceRight((a,l,c)=>{let u=l.route.id?s==null?void 0:s[l.route.id]:null,d=null;t&&(d=l.route.errorElement||Tft);let h=e.concat(o.slice(0,c+1)),g=()=>{let p;return u?p=d:l.route.Component?p=w.createElement(l.route.Component,null):l.route.element?p=l.route.element:p=a,w.createElement(Lft,{match:l,routeContext:{outlet:a,matches:h,isDataRoute:t!=null},children:p})};return t&&(l.route.ErrorBoundary||l.route.errorElement||c===0)?w.createElement(Ift,{location:t.location,revalidation:t.revalidation,component:d,error:u,children:g(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):g()},null)}var H4e=function(n){return n.UseBlocker="useBlocker",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n}(H4e||{}),G9=function(n){return n.UseBlocker="useBlocker",n.UseLoaderData="useLoaderData",n.UseActionData="useActionData",n.UseRouteError="useRouteError",n.UseNavigation="useNavigation",n.UseRouteLoaderData="useRouteLoaderData",n.UseMatches="useMatches",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n.UseRouteId="useRouteId",n}(G9||{});function Aft(n){let e=w.useContext(kde);return e||Cl(!1),e}function Rft(n){let e=w.useContext(yft);return e||Cl(!1),e}function Nft(n){let e=w.useContext(bb);return e||Cl(!1),e}function W4e(n){let e=Nft(),t=e.matches[e.matches.length-1];return t.route.id||Cl(!1),t.route.id}function Oft(){var n;let e=w.useContext(M4e),t=Rft(G9.UseRouteError),i=W4e(G9.UseRouteError);return e||((n=t.errors)==null?void 0:n[i])}function Pft(){let{router:n}=Aft(H4e.UseNavigateStable),e=W4e(G9.UseNavigateStable),t=w.useRef(!1);return F4e(()=>{t.current=!0}),w.useCallback(function(r,o){o===void 0&&(o={}),t.current&&(typeof r=="number"?n.navigate(r):n.navigate(r,K9({fromRouteId:e},o)))},[n,e])}function aD(n){let{to:e,replace:t,state:i,relative:r}=n;V2()||Cl(!1);let{matches:o}=w.useContext(bb),{pathname:s}=ol(),a=ri(),l=xde(e,Ede(o).map(u=>u.pathnameBase),s,r==="path"),c=JSON.stringify(l);return w.useEffect(()=>a(JSON.parse(c),{replace:t,state:i,relative:r}),[a,c,r,t,i]),null}function ah(n){return Sft(n.context)}function ge(n){Cl(!1)}function Mft(n){let{basename:e="/",children:t=null,location:i,navigationType:r=$1.Pop,navigator:o,static:s=!1}=n;V2()&&Cl(!1);let a=e.replace(/^\/*/,"/"),l=w.useMemo(()=>({basename:a,navigator:o,static:s}),[a,o,s]);typeof i=="string"&&(i=B2(i));let{pathname:c="/",search:u="",hash:d="",state:h=null,key:g="default"}=i,p=w.useMemo(()=>{let m=Sde(c,a);return m==null?null:{location:{pathname:m,search:u,hash:d,state:h,key:g},navigationType:r}},[a,c,u,d,h,g,r]);return p==null?null:w.createElement($2.Provider,{value:l},w.createElement(mz.Provider,{children:t,value:p}))}function Fft(n){let{children:e,location:t}=n;return Eft(Jee(e),t)}new Promise(()=>{});function Jee(n,e){e===void 0&&(e=[]);let t=[];return w.Children.forEach(n,(i,r)=>{if(!w.isValidElement(i))return;let o=[...e,r];if(i.type===w.Fragment){t.push.apply(t,Jee(i.props.children,o));return}i.type!==ge&&Cl(!1),!i.props.index||!i.props.children||Cl(!1);let s={id:i.props.id||o.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,loader:i.props.loader,action:i.props.action,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(s.children=Jee(i.props.children,o)),t.push(s)}),t}/** * React Router DOM v6.17.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function ete(){return ete=Object.assign?Object.assign.bind():function(n){for(var e=1;e=0)&&(t[r]=n[r]);return t}function $ft(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function Vft(n,e){return n.button===0&&(!e||e==="_self")&&!$ft(n)}function tte(n){return n===void 0&&(n=""),new URLSearchParams(typeof n=="string"||Array.isArray(n)||n instanceof URLSearchParams?n:Object.keys(n).reduce((e,t)=>{let i=n[t];return e.concat(Array.isArray(i)?i.map(r=>[t,r]):[[t,i]])},[]))}function Hft(n,e){let t=tte(n);return e&&e.forEach((i,r)=>{t.has(r)||e.getAll(r).forEach(o=>{t.append(r,o)})}),t}const Wft=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],zft="startTransition",YCe=Rp[zft];function jft(n){let{basename:e,children:t,future:i,window:r}=n,o=w.useRef();o.current==null&&(o.current=Yht({window:r,v5Compat:!0}));let s=o.current,[a,l]=w.useState({action:s.action,location:s.location}),{v7_startTransition:c}=i||{},u=w.useCallback(d=>{c&&YCe?YCe(()=>l(d)):l(d)},[l,c]);return w.useLayoutEffect(()=>s.listen(u),[s,u]),w.createElement(Mft,{basename:e,children:t,location:a.location,navigationType:a.action,navigator:s})}const Uft=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",qft=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,E0=w.forwardRef(function(e,t){let{onClick:i,relative:r,reloadDocument:o,replace:s,state:a,target:l,to:c,preventScrollReset:u,unstable_viewTransition:d}=e,h=Bft(e,Wft),{basename:g}=w.useContext($2),p,m=!1;if(typeof c=="string"&&qft.test(c)&&(p=c,Uft))try{let y=new URL(window.location.href),C=c.startsWith("//")?new URL(y.protocol+c):new URL(c),x=Sde(C.pathname,g);C.origin===y.origin&&x!=null?c=x+C.search+C.hash:m=!0}catch{}let _=Cft(c,{relative:r}),v=Kft(c,{replace:s,state:a,target:l,preventScrollReset:u,relative:r,unstable_viewTransition:d});function b(y){i&&i(y),y.defaultPrevented||v(y)}return w.createElement("a",ete({},h,{href:p||_,onClick:m||o?i:b,ref:t,target:l}))});var QCe;(function(n){n.UseScrollRestoration="useScrollRestoration",n.UseSubmit="useSubmit",n.UseSubmitFetcher="useSubmitFetcher",n.UseFetcher="useFetcher",n.useViewTransitionState="useViewTransitionState"})(QCe||(QCe={}));var XCe;(function(n){n.UseFetchers="useFetchers",n.UseScrollRestoration="useScrollRestoration"})(XCe||(XCe={}));function Kft(n,e){let{target:t,replace:i,state:r,preventScrollReset:o,relative:s,unstable_viewTransition:a}=e===void 0?{}:e,l=ri(),c=ol(),u=V4e(n,{relative:s});return w.useCallback(d=>{if(Vft(d,t)){d.preventDefault();let h=i!==void 0?i:q9(c)===q9(u);l(n,{replace:h,state:r,preventScrollReset:o,relative:s,unstable_viewTransition:a})}},[c,l,u,i,r,t,n,o,s,a])}function i3(n){let e=w.useRef(tte(n)),t=w.useRef(!1),i=ol(),r=w.useMemo(()=>Hft(i.search,t.current?null:e.current),[i.search]),o=ri(),s=w.useCallback((a,l)=>{const c=tte(typeof a=="function"?a(r):a);t.current=!0,o("?"+c,l)},[o,r]);return[r,s]}function su(n){for(var e=arguments.length,t=Array(e>1?e-1:0),i=1;i3?e.i-4:e.i:Array.isArray(n)?1:_z(n)?2:vz(n)?3:0}function _C(n,e){return GC(n)===2?n.has(e):Object.prototype.hasOwnProperty.call(n,e)}function J$(n,e){return GC(n)===2?n.get(e):n[e]}function j4e(n,e,t){var i=GC(n);i===2?n.set(e,t):i===3?n.add(t):n[e]=t}function U4e(n,e){return n===e?n!==0||1/n==1/e:n!=n&&e!=e}function _z(n){return Jft&&n instanceof Map}function vz(n){return egt&&n instanceof Set}function Jc(n){return n.o||n.t}function Tde(n){if(Array.isArray(n))return Array.prototype.slice.call(n);var e=G4e(n);delete e[$r];for(var t=fL(e),i=0;i1&&(n.set=n.add=n.clear=n.delete=Gft),Object.freeze(n),e&&d0(n,function(t,i){return r3(i,!0)},!0)),n}function Gft(){su(2)}function Ide(n){return n==null||typeof n!="object"||Object.isFrozen(n)}function jv(n){var e=ite[n];return e||su(18,n),e}function Lde(n,e){ite[n]||(ite[n]=e)}function IP(){return DP}function BY(n,e){e&&(jv("Patches"),n.u=[],n.s=[],n.v=e)}function Y9(n){nte(n),n.p.forEach(Yft),n.p=null}function nte(n){n===DP&&(DP=n.l)}function ZCe(n){return DP={p:[],l:DP,h:n,m:!0,_:0}}function Yft(n){var e=n[$r];e.i===0||e.i===1?e.j():e.g=!0}function $Y(n,e){e._=e.p.length;var t=e.p[0],i=n!==void 0&&n!==t;return e.h.O||jv("ES5").S(e,n,i),i?(t[$r].P&&(Y9(e),su(4)),vg(n)&&(n=Q9(e,n),e.l||X9(e,n)),e.u&&jv("Patches").M(t[$r].t,n,e.u,e.s)):n=Q9(e,t,[]),Y9(e),e.u&&e.v(e.u,e.s),n!==yz?n:void 0}function Q9(n,e,t){if(Ide(e))return e;var i=e[$r];if(!i)return d0(e,function(a,l){return JCe(n,i,e,a,l,t)},!0),e;if(i.A!==n)return e;if(!i.P)return X9(n,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var r=i.i===4||i.i===5?i.o=Tde(i.k):i.o,o=r,s=!1;i.i===3&&(o=new Set(r),r.clear(),s=!0),d0(o,function(a,l){return JCe(n,i,r,a,l,t,s)}),X9(n,r,!1),t&&n.u&&jv("Patches").N(i,t,n.u,n.s)}return i.o}function JCe(n,e,t,i,r,o,s){if(of(r)){var a=Q9(n,r,o&&e&&e.i!==3&&!_C(e.R,i)?o.concat(i):void 0);if(j4e(t,i,a),!of(a))return;n.m=!1}else s&&t.add(r);if(vg(r)&&!Ide(r)){if(!n.h.D&&n._<1)return;Q9(n,r),e&&e.A.l||X9(n,r)}}function X9(n,e,t){t===void 0&&(t=!1),!n.l&&n.h.D&&n.m&&r3(e,t)}function VY(n,e){var t=n[$r];return(t?Jc(t):n)[e]}function ewe(n,e){if(e in n)for(var t=Object.getPrototypeOf(n);t;){var i=Object.getOwnPropertyDescriptor(t,e);if(i)return i;t=Object.getPrototypeOf(t)}}function Rh(n){n.P||(n.P=!0,n.l&&Rh(n.l))}function HY(n){n.o||(n.o=Tde(n.t))}function LP(n,e,t){var i=_z(e)?jv("MapSet").F(e,t):vz(e)?jv("MapSet").T(e,t):n.O?function(r,o){var s=Array.isArray(r),a={i:s?1:0,A:o?o.A:IP(),P:!1,I:!1,R:{},l:o,t:r,k:null,o:null,j:null,C:!1},l=a,c=AP;s&&(l=[a],c=pN);var u=Proxy.revocable(l,c),d=u.revoke,h=u.proxy;return a.k=h,a.j=d,h}(e,t):jv("ES5").J(e,t);return(t?t.A:IP()).p.push(i),i}function bz(n){return of(n)||su(22,n),function e(t){if(!vg(t))return t;var i,r=t[$r],o=GC(t);if(r){if(!r.P&&(r.i<4||!jv("ES5").K(r)))return r.t;r.I=!0,i=twe(t,o),r.I=!1}else i=twe(t,o);return d0(i,function(s,a){r&&J$(r.t,s)===a||j4e(i,s,e(a))}),o===3?new Set(i):i}(n)}function twe(n,e){switch(e){case 2:return new Map(n);case 3:return Array.from(n)}return Tde(n)}function Dde(){function n(o,s){var a=r[o];return a?a.enumerable=s:r[o]=a={configurable:!0,enumerable:s,get:function(){var l=this[$r];return AP.get(l,o)},set:function(l){var c=this[$r];AP.set(c,o,l)}},a}function e(o){for(var s=o.length-1;s>=0;s--){var a=o[s][$r];if(!a.P)switch(a.i){case 5:i(a)&&Rh(a);break;case 4:t(a)&&Rh(a)}}}function t(o){for(var s=o.t,a=o.k,l=fL(a),c=l.length-1;c>=0;c--){var u=l[c];if(u!==$r){var d=s[u];if(d===void 0&&!_C(s,u))return!0;var h=a[u],g=h&&h[$r];if(g?g.t!==d:!U4e(h,d))return!0}}var p=!!s[$r];return l.length!==fL(s).length+(p?0:1)}function i(o){var s=o.k;if(s.length!==o.t.length)return!0;var a=Object.getOwnPropertyDescriptor(s,s.length-1);if(a&&!a.get)return!0;for(var l=0;l1?v-1:0),y=1;y1?u-1:0),h=1;h=0;r--){var o=i[r];if(o.path.length===0&&o.op==="replace"){t=o.value;break}}r>-1&&(i=i.slice(r+1));var s=jv("Patches").$;return of(t)?s(t,i):this.produce(t,function(a){return s(a,i)})},n}(),bg=new Y4e,lD=bg.produce,ngt=bg.produceWithPatches.bind(bg),igt=bg.setAutoFreeze.bind(bg),rgt=bg.setUseProxies.bind(bg),ogt=bg.applyPatches.bind(bg),sgt=bg.createDraft.bind(bg),agt=bg.finishDraft.bind(bg);const lgt=Object.freeze(Object.defineProperty({__proto__:null,Immer:Y4e,applyPatches:ogt,castDraft:Xft,castImmutable:Zft,createDraft:sgt,current:bz,default:lD,enableAllPlugins:Qft,enableES5:Dde,enableMapSet:K4e,enablePatches:q4e,finishDraft:agt,freeze:r3,immerable:hL,isDraft:of,isDraftable:vg,nothing:yz,original:z4e,produce:lD,produceWithPatches:ngt,setAutoFreeze:igt,setUseProxies:rgt},Symbol.toStringTag,{value:"Module"}));function rwe(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,i)}return t}function Qe(n){for(var e=1;e"u"&&(t=e,e=void 0),typeof t<"u"){if(typeof t!="function")throw new Error(Eu(1));return t(o3)(n,e)}if(typeof n!="function")throw new Error(Eu(2));var r=n,o=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function u(){if(l)throw new Error(Eu(3));return o}function d(m){if(typeof m!="function")throw new Error(Eu(4));if(l)throw new Error(Eu(5));var _=!0;return c(),a.push(m),function(){if(_){if(l)throw new Error(Eu(6));_=!1,c();var b=a.indexOf(m);a.splice(b,1),s=null}}}function h(m){if(!cgt(m))throw new Error(Eu(7));if(typeof m.type>"u")throw new Error(Eu(8));if(l)throw new Error(Eu(9));try{l=!0,o=r(o,m)}finally{l=!1}for(var _=s=a,v=0;v<_.length;v++){var b=_[v];b()}return m}function g(m){if(typeof m!="function")throw new Error(Eu(10));r=m,h({type:RP.REPLACE})}function p(){var m,_=d;return m={subscribe:function(b){if(typeof b!="object"||b===null)throw new Error(Eu(11));function y(){b.next&&b.next(u())}y();var C=_(y);return{unsubscribe:C}}},m[owe]=function(){return this},m}return h({type:RP.INIT}),i={dispatch:h,subscribe:d,getState:u,replaceReducer:g},i[owe]=p,i}var ugt=o3;function dgt(n){Object.keys(n).forEach(function(e){var t=n[e],i=t(void 0,{type:RP.INIT});if(typeof i>"u")throw new Error(Eu(12));if(typeof t(void 0,{type:RP.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Eu(13))})}function Q4e(n){for(var e=Object.keys(n),t={},i=0;i"u")throw c&&c.type,new Error(Eu(14));d[g]=_,u=u||_!==m}return u=u||o.length!==Object.keys(l).length,u?d:l}}function swe(n,e){return function(){return e(n.apply(this,arguments))}}function rte(n,e){if(typeof n=="function")return swe(n,e);if(typeof n!="object"||n===null)throw new Error(Eu(16));var t={};for(var i in n){var r=n[i];typeof r=="function"&&(t[i]=swe(r,e))}return t}function cD(){for(var n=arguments.length,e=new Array(n),t=0;t-1){var c=t[l];return l>0&&(t.splice(l,1),t.unshift(c)),c.value}return Z9}function r(a,l){i(a)===Z9&&(t.unshift({key:a,value:l}),t.length>n&&t.pop())}function o(){return t}function s(){t=[]}return{get:i,put:r,getEntries:o,clear:s}}var X4e=function(e,t){return e===t};function ggt(n){return function(t,i){if(t===null||i===null||t.length!==i.length)return!1;for(var r=t.length,o=0;o1?e-1:0),i=1;i0&&o[o.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]-1}function kgt(n){return""+n}function Tgt(n){return function(){return function(e){return function(t){return e(t)}}}}var o3e=function(n){n3e(e,n);function e(){for(var t=[],i=0;i",value:n};if(typeof n!="object"||n===null||o!=null&&o.has(n))return!1;for(var a=i!=null?i(n):Object.entries(n),l=r.length>0,c=function(_,v){var b=e?e+"."+_:_;if(l){var y=r.some(function(C){return C instanceof RegExp?C.test(b):b===C});if(y)return"continue"}if(!t(v))return{value:{keyPath:b,value:v}};if(typeof v=="object"&&(s=l3e(v,b,t,i,r,o),s))return{value:s}},u=0,d=a;u0;if(b){var y=p.filter(function(C){return c(_,C,m)}).length>0;y&&(m.ids=Object.keys(m.entities))}}function h(p,m){return g([p],m)}function g(p,m){var _=g3e(p,n,m),v=_[0],b=_[1];d(b,m),t(v,m)}return{removeAll:$gt(l),addOne:Pl(e),addMany:Pl(t),setOne:Pl(i),setMany:Pl(r),setAll:Pl(o),updateOne:Pl(u),updateMany:Pl(d),upsertOne:Pl(h),upsertMany:Pl(g),removeOne:Pl(s),removeMany:Pl(a)}}function Vgt(n,e){var t=p3e(n),i=t.removeOne,r=t.removeMany,o=t.removeAll;function s(b,y){return a([b],y)}function a(b,y){b=BE(b);var C=b.filter(function(x){return!(iO(x,n)in y.entities)});C.length!==0&&_(C,y)}function l(b,y){return c([b],y)}function c(b,y){b=BE(b),b.length!==0&&_(b,y)}function u(b,y){b=BE(b),y.entities={},y.ids=[],a(b,y)}function d(b,y){return h([b],y)}function h(b,y){for(var C=!1,x=0,k=b;x-1;return t&&i}function c3(n){return typeof n[0]=="function"&&"pending"in n[0]&&"fulfilled"in n[0]&&"rejected"in n[0]}function b3e(){for(var n=[],e=0;e0)for(var y=g.getState(),C=Array.from(t.values()),x=0,k=C;x{n.currentIndex=e.payload},updateCompanyUsers:(n,e)=>{n.api=e.payload},injectInChanges:(n,e)=>{n.changes[e.payload.object]=e.payload.data},updateChanges:(n,e)=>{n.changes[e.payload.object]=Bn.set(n.changes[e.payload.object],e.payload.property,e.payload.value)},resetChanges:(n,e)=>{n.changes[e.payload]=n.api[n.currentIndex][e.payload]},updateRecord:(n,e)=>{n.api[n.currentIndex][e.payload.object]=e.payload.data}}}),{changeCurrentIndex:Ez,updateCompanyUsers:yb,injectInChanges:gx,resetChanges:Bde,updateChanges:Vr,updateRecord:Pw}=P3e.actions;/** * Invoice Ninja (https://invoiceninja.com). * * @link https://github.com/invoiceninja/invoiceninja source repository * * @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com) * * @license https://www.elastic.co/licensing/elastic-license */var W2=(n=>(n.TOKEN="invoiceninja_token",n.GOOGLE_SSO="google_sso",n))(W2||{});/** * Invoice Ninja (https://invoiceninja.com). * * @link https://github.com/invoiceninja/invoiceninja source repository * * @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com) * * @license https://www.elastic.co/licensing/elastic-license */const upt={authenticated:!1,user:{},changes:{}},M3e=H2({name:"user",initialState:upt,reducers:{updateUser:(n,e)=>{n.user=e.payload},injectInChanges:n=>{n.changes=n.user},injectInChangesWithData:(n,e)=>{n.changes=e.payload},resetChanges:n=>{n.changes=n.user},authenticate:(n,e)=>{n.authenticated=!0,n.user=e.payload.user,localStorage.setItem("X-NINJA-TOKEN",e.payload.token)},register:(n,e)=>{n.authenticated=!0,n.user=e.payload.user,localStorage.setItem("X-NINJA-TOKEN",e.payload.token)},updateChanges:(n,e)=>{Bn.set(n.changes,e.payload.property,e.payload.value)},deletePassword:n=>{delete n.changes.password,delete n.user.password}}}),{updateUser:Uy,injectInChanges:$de,injectInChangesWithData:UY,resetChanges:dpt,authenticate:h3,register:hpt,updateChanges:gk,deletePassword:fpt}=M3e.actions;/** * Invoice Ninja (https://invoiceninja.com). * * @link https://github.com/invoiceninja/invoiceninja source repository * * @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com) * * @license https://www.elastic.co/licensing/elastic-license */function Vde(){const n=Tl(o=>o.user),e=localStorage.getItem("X-NINJA-TOKEN"),t=ri(),i=Ci(),r=Kr();return e===null?!1:(n.authenticated||r.fetchQuery("/api/v1/refresh",()=>Te("POST",ye("/api/v1/refresh")).then(o=>{let s=0;if(localStorage.getItem("X-CURRENT-INDEX"))s=parseInt(localStorage.getItem("X-CURRENT-INDEX")||"0");else{const a=o.data.data,l=a[0].account.default_company_id;s=a.findIndex(c=>c.company.id===l)||0}i(h3({type:W2.TOKEN,user:o.data.data[s].user,token:localStorage.getItem("X-NINJA-TOKEN")})),i(yb(o.data.data)),i(Ez(s))}).catch(()=>{localStorage.removeItem("X-NINJA-TOKEN"),t("/login")})),!0)}let gpt=0;function po(n,e){const t=`atom${++gpt}`,i={toString:()=>t};return typeof n=="function"?i.read=n:(i.init=n,i.read=function(r){return r(this)},i.write=function(r,o,s){return o(this,typeof s=="function"?s(r(this)):s)}),e&&(i.write=e),i}const gwe=n=>"init"in n,pwe=n=>!!n.write,t7=new WeakMap,ppt=(n,e)=>{t7.set(n,e),n.catch(()=>{}).finally(()=>t7.delete(n))},mwe=(n,e)=>{const t=t7.get(n);t&&(t7.delete(n),t(e))},_we=(n,e)=>{n.status="fulfilled",n.value=e},vwe=(n,e)=>{n.status="rejected",n.reason=e},mpt=n=>typeof(n==null?void 0:n.then)=="function",fR=(n,e)=>!!n&&"v"in n&&"v"in e&&Object.is(n.v,e.v),bwe=(n,e)=>!!n&&"e"in n&&"e"in e&&Object.is(n.e,e.e),mT=n=>!!n&&"v"in n&&n.v instanceof Promise,_pt=(n,e)=>"v"in n&&"v"in e&&n.v.orig&&n.v.orig===e.v.orig,u6=n=>{if("e"in n)throw n.e;return n.v},vpt=()=>{const n=new WeakMap,e=new WeakMap,t=new Map;let i,r;const o=L=>n.get(L),s=(L,D)=>{const R=n.get(L);if(n.set(L,D),t.has(L)||t.set(L,R),mT(R)){const P="v"in D?D.v instanceof Promise?D.v:Promise.resolve(D.v):Promise.reject(D.e);R.v!==P&&mwe(R.v,P)}},a=(L,D,R)=>{const P=new Map;let M=!1;R.forEach((O,B)=>{!O&&B===L&&(O=D),O&&(P.set(B,O),D.d.get(B)!==O&&(M=!0))}),(M||D.d.size!==P.size)&&(D.d=P)},l=(L,D,R)=>{const P=o(L),M={d:(P==null?void 0:P.d)||new Map,v:D};if(R&&a(L,M,R),fR(P,M)&&P.d===M.d)return P;if(mT(P)&&mT(M)&&_pt(P,M)){if(P.d===M.d)return P;M.v=P.v}return s(L,M),M},c=(L,D,R,P)=>{if(mpt(D)){let M;const O=()=>{const F=o(L);if(!mT(F)||F.v!==B)return;const H=l(L,B,R);e.has(L)&&F.d!==H.d&&x(L,H,F.d)},B=new Promise((F,H)=>{let V=!1;D.then($=>{V||(V=!0,_we(B,$),F($),O())},$=>{V||(V=!0,vwe(B,$),H($),O())}),M=$=>{V||(V=!0,$.then(j=>_we(B,j),j=>vwe(B,j)),F($))}});return B.orig=D,B.status="pending",ppt(B,F=>{F&&M(F),P==null||P()}),l(L,B,R)}return l(L,D,R)},u=(L,D,R)=>{const P=o(L),M={d:(P==null?void 0:P.d)||new Map,e:D};return R&&a(L,M,R),bwe(P,M)&&P.d===M.d?P:(s(L,M),M)},d=(L,D)=>{const R=o(L);if(!D&&R&&(e.has(L)||Array.from(R.d).every(([V,$])=>{if(V===L)return!0;const j=d(V);return j===$||fR(j,$)})))return R;const P=new Map;let M=!0;const O=V=>{if(V===L){const j=o(V);if(j)return P.set(V,j),u6(j);if(gwe(V))return P.set(V,void 0),V.init;throw new Error("no atom init")}const $=d(V);return P.set(V,$),u6($)};let B,F;const H={get signal(){return B||(B=new AbortController),B.signal},get setSelf(){return!F&&pwe(L)&&(F=(...V)=>{if(!M)return b(L,...V)}),F}};try{const V=L.read(O,H);return c(L,V,P,()=>B==null?void 0:B.abort())}catch(V){return u(L,V,P)}finally{M=!1}},h=L=>u6(d(L)),g=L=>{let D=e.get(L);return D||(D=y(L)),D},p=(L,D)=>!D.l.size&&(!D.t.size||D.t.size===1&&D.t.has(L)),m=L=>{const D=e.get(L);D&&p(L,D)&&C(L)},_=L=>{const D=new Map,R=new WeakMap,P=B=>{var F;const H=new Set((F=e.get(B))==null?void 0:F.t);return t.forEach((V,$)=>{var j;(j=o($))!=null&&j.d.has(B)&&H.add($)}),H},M=B=>{P(B).forEach(F=>{F!==B&&(D.set(F,(D.get(F)||new Set).add(B)),R.set(F,(R.get(F)||0)+1),M(F))})};M(L);const O=B=>{P(B).forEach(F=>{var H;if(F!==B){let V=R.get(F);if(V&&R.set(F,--V),!V){let $=!!((H=D.get(F))!=null&&H.size);if($){const j=o(F),Y=d(F,!0);$=!fR(j,Y)}$||D.forEach(j=>j.delete(F))}O(F)}})};O(L)},v=(L,...D)=>{let R=!0;const P=B=>u6(d(B)),M=(B,...F)=>{let H;if(B===L){if(!gwe(B))throw new Error("atom not writable");const V=o(B),$=c(B,F[0]);fR(V,$)||_(B)}else H=v(B,...F);if(!R){const V=k()}return H},O=L.write(P,M,...D);return R=!1,O},b=(L,...D)=>{const R=v(L,...D),P=k();return R},y=(L,D,R)=>{var P;const M=R||[];(P=o(L))==null||P.d.forEach((B,F)=>{const H=e.get(F);H?H.t.add(L):F!==L&&y(F,L,M)}),d(L);const O={t:new Set(D&&[D]),l:new Set};if(e.set(L,O),pwe(L)&&L.onMount){const{onMount:B}=L;M.push(()=>{const F=B((...H)=>b(L,...H));F&&(O.u=F)})}return R||M.forEach(B=>B()),O},C=L=>{var D;const R=(D=e.get(L))==null?void 0:D.u;R&&R(),e.delete(L);const P=o(L);P&&(mT(P)&&mwe(P.v),P.d.forEach((M,O)=>{if(O!==L){const B=e.get(O);B&&(B.t.delete(L),p(O,B)&&C(O))}}))},x=(L,D,R)=>{const P=new Set(D.d.keys());R==null||R.forEach((M,O)=>{if(P.has(O)){P.delete(O);return}const B=e.get(O);B&&(B.t.delete(L),p(O,B)&&C(O))}),P.forEach(M=>{const O=e.get(M);O?O.t.add(L):e.has(L)&&y(M,L)})},k=()=>{let L;for(;t.size;){const D=Array.from(t);t.clear(),D.forEach(([R,P])=>{const M=o(R);if(M){const O=e.get(R);O&&M.d!==(P==null?void 0:P.d)&&x(R,M,P==null?void 0:P.d),O&&!(!mT(P)&&(fR(P,M)||bwe(P,M)))&&O.l.forEach(B=>B())}})}};return{get:h,set:b,sub:(L,D)=>{const R=g(L),P=k(),M=R.l;return M.add(D),()=>{M.delete(D),m(L)}}}};let qY;const bpt=()=>(qY||(qY=vpt()),qY),ypt=w.createContext(void 0),F3e=n=>{const e=w.useContext(ypt);return(n==null?void 0:n.store)||e||bpt()},Cpt=n=>typeof(n==null?void 0:n.then)=="function",wpt=te.use||(n=>{if(n.status==="pending")throw n;if(n.status==="fulfilled")return n.value;throw n.status==="rejected"?n.reason:(n.status="pending",n.then(e=>{n.status="fulfilled",n.value=e},e=>{n.status="rejected",n.reason=e}),n)});function ki(n,e){const t=F3e(e),[[i,r,o],s]=w.useReducer(c=>{const u=t.get(n);return Object.is(c[0],u)&&c[1]===t&&c[2]===n?c:[u,t,n]},void 0,()=>[t.get(n),t,n]);let a=i;(r!==t||o!==n)&&(s(),a=t.get(n));const l=e==null?void 0:e.delay;return w.useEffect(()=>{const c=t.sub(n,()=>{if(typeof l=="number"){setTimeout(s,l);return}s()});return s(),c},[t,n,l]),w.useDebugValue(a),Cpt(a)?wpt(a):a}function Ri(n,e){const t=F3e(e);return w.useCallback((...r)=>t.set(n,...r),[t,n])}function Mo(n,e){return[ki(n,e),Ri(n,e)]}const Spt=Symbol(),Ept=n=>typeof(n==null?void 0:n.then)=="function";function B3e(n){let e,t;const i={getItem:(r,o)=>{var s,a;const l=u=>{if(u=u||"",e!==u){try{t=JSON.parse(u)}catch{return o}e=u}return t},c=(a=(s=n())==null?void 0:s.getItem(r))!=null?a:null;return Ept(c)?c.then(l):l(c)},setItem:(r,o)=>{var s;return(s=n())==null?void 0:s.setItem(r,JSON.stringify(o))},removeItem:r=>{var o;return(o=n())==null?void 0:o.removeItem(r)}};return typeof window<"u"&&typeof window.addEventListener=="function"&&window.Storage&&(i.subscribe=(r,o,s)=>{if(!(n()instanceof window.Storage))return()=>{};const a=l=>{if(l.storageArea===n()&&l.key===r){let c;try{c=JSON.parse(l.newValue||"")}catch{c=s}o(c)}};return window.addEventListener("storage",a),()=>{window.removeEventListener("storage",a)}}),i}const xpt=B3e(()=>typeof window<"u"?window.localStorage:void 0);function Hde(n,e,t=xpt,i){const r=i==null?void 0:i.unstable_getOnInit,o=po(r?t.getItem(n,e):e);return o.onMount=a=>{r||a(t.getItem(n,e));let l;return t.subscribe&&(l=t.subscribe(n,a,e)),l},po(a=>a(o),(a,l,c)=>{const u=typeof c=="function"?c(a(o)):c;return u===Spt?(l(o,e),t.removeItem(n)):u instanceof Promise?u.then(d=>(l(o,d),t.setItem(n,d))):(l(o,u),t.setItem(n,u))})}/** * Invoice Ninja (https://invoiceninja.com). * * @link https://github.com/invoiceninja/invoiceninja source repository * * @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com) * * @license https://www.elastic.co/licensing/elastic-license */function ha(){return Tl(n=>n.user.user)}/** * Invoice Ninja (https://invoiceninja.com). * * @link https://github.com/invoiceninja/invoiceninja source repository * * @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com) * * @license https://www.elastic.co/licensing/elastic-license */function f3(){return Tl(n=>n.user.changes)}function x0(n){const e=ha(),t=Ci(),i=f3();return w.useEffect(()=>{i&&(n==null?void 0:n.overwrite)===!1||t($de())},[e]),i}/** * Invoice Ninja (https://invoiceninja.com). * * @link https://github.com/invoiceninja/invoiceninja source repository * * @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com) * * @license https://www.elastic.co/licensing/elastic-license */const n7={dashboard_charts:{default_view:"month",currency:1,range:"this_month"},datatables:{clients:{sort:"id|desc"}},reports:{columns:{}},auto_expand_product_table_notes:!1};function sl(n){var o,s;const e=x0({overwrite:n==null?void 0:n.overwrite}),t=Tl(a=>{var l,c;return(c=(l=a.user.changes)==null?void 0:l.company_user)==null?void 0:c.react_settings})||{},r={show_pdf_preview:!0,react_notification_link:!0,react_table_columns:{...(s=(o=e==null?void 0:e.company_user)==null?void 0:o.settings)==null?void 0:s.react_table_columns,...t.react_table_columns},preferences:Bn.cloneDeep(n7)};return Bn.merge({...r},{...t})}/** * Invoice Ninja (https://invoiceninja.com). * * @link https://github.com/invoiceninja/invoiceninja source repository * * @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com) * * @license https://www.elastic.co/licensing/elastic-license */const kpt={name:"invoiceninja.dark",$0:"dark",$1:"#121212",$2:"#121212",$3:"rgba(255, 255, 255, 0.87)",$4:"#1f2e41",$5:"#1f2e41",$6:"#121212",$7:"#151f2c",$8:"#1f2e41",$9:"#ffffff",$10:.87,$11:.6,$12:.38,$13:"#E5E7EB"},$3e={name:"invoiceninja.light",$0:"light",$1:"#ffffff",$2:"#f7f7f7",$3:"#2a303d",$4:"#f7f7f7",$5:"#d1d5db",$6:"#242930",$7:"#f7f7f7",$8:"#363D47",$9:"#ffffff",$10:1,$11:.8,$12:.5,$13:"#E5E7EB"},V3e=Hde("colorScheme",$3e);function Vn(){const n=sl({overwrite:!1}),[e,t]=Mo(V3e);return w.useEffect(()=>{n&&(n.dark_mode?t(kpt):t($3e))},[n==null?void 0:n.dark_mode]),e}function Vo(n){const e=Vn();return N("svg",{style:{color:e.$3},className:`animate-spin h-5 w-5 ${n.variant??"text-black"}`,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[f("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),f("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}function Tpt(){return f("div",{className:"flex items-center justify-center h-screen",children:f(Vo,{variant:"dark"})})}var H3e={exports:{}},Ipt="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Lpt=Ipt,Dpt=Lpt;function W3e(){}function z3e(){}z3e.resetWarningCache=W3e;var Apt=function(){function n(i,r,o,s,a,l){if(l!==Dpt){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}n.isRequired=n;function e(){return n}var t={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:e,element:n,elementType:n,instanceOf:e,node:n,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:z3e,resetWarningCache:W3e};return t.PropTypes=t,t};H3e.exports=Apt();var qt=H3e.exports;const Pe=ja(qt);function cte(){return cte=Object.assign||function(n){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(t[i]=n[i])}return t}function Npt(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o=0)&&(t[r]=n[r]);return t}var Wde=w.forwardRef(function(n,e){var t=n.color,i=t===void 0?"currentColor":t,r=n.size,o=r===void 0?24:r,s=Rpt(n,["color","size"]);return te.createElement("svg",cte({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),te.createElement("polyline",{points:"22 12 18 12 15 21 9 3 6 12 2 12"}))});Wde.propTypes={color:Pe.string,size:Pe.oneOfType([Pe.string,Pe.number])};Wde.displayName="Activity";const Opt=Wde;function ute(){return ute=Object.assign||function(n){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(t[i]=n[i])}return t}function Mpt(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o=0)&&(t[r]=n[r]);return t}var zde=w.forwardRef(function(n,e){var t=n.color,i=t===void 0?"currentColor":t,r=n.size,o=r===void 0?24:r,s=Ppt(n,["color","size"]);return te.createElement("svg",ute({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),te.createElement("circle",{cx:"12",cy:"12",r:"10"}),te.createElement("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),te.createElement("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"}))});zde.propTypes={color:Pe.string,size:Pe.oneOfType([Pe.string,Pe.number])};zde.displayName="AlertCircle";const Fpt=zde;function dte(){return dte=Object.assign||function(n){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(t[i]=n[i])}return t}function $pt(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o=0)&&(t[r]=n[r]);return t}var jde=w.forwardRef(function(n,e){var t=n.color,i=t===void 0?"currentColor":t,r=n.size,o=r===void 0?24:r,s=Bpt(n,["color","size"]);return te.createElement("svg",dte({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),te.createElement("path",{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"}),te.createElement("line",{x1:"12",y1:"9",x2:"12",y2:"13"}),te.createElement("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"}))});jde.propTypes={color:Pe.string,size:Pe.oneOfType([Pe.string,Pe.number])};jde.displayName="AlertTriangle";const j3e=jde;function hte(){return hte=Object.assign||function(n){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(t[i]=n[i])}return t}function Hpt(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o=0)&&(t[r]=n[r]);return t}var Ude=w.forwardRef(function(n,e){var t=n.color,i=t===void 0?"currentColor":t,r=n.size,o=r===void 0?24:r,s=Vpt(n,["color","size"]);return te.createElement("svg",hte({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),te.createElement("line",{x1:"21",y1:"10",x2:"3",y2:"10"}),te.createElement("line",{x1:"21",y1:"6",x2:"3",y2:"6"}),te.createElement("line",{x1:"21",y1:"14",x2:"3",y2:"14"}),te.createElement("line",{x1:"21",y1:"18",x2:"3",y2:"18"}))});Ude.propTypes={color:Pe.string,size:Pe.oneOfType([Pe.string,Pe.number])};Ude.displayName="AlignJustify";const Wpt=Ude;function fte(){return fte=Object.assign||function(n){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(t[i]=n[i])}return t}function jpt(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o=0)&&(t[r]=n[r]);return t}var qde=w.forwardRef(function(n,e){var t=n.color,i=t===void 0?"currentColor":t,r=n.size,o=r===void 0?24:r,s=zpt(n,["color","size"]);return te.createElement("svg",fte({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),te.createElement("path",{d:"M4 19.5A2.5 2.5 0 0 1 6.5 17H20"}),te.createElement("path",{d:"M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"}))});qde.propTypes={color:Pe.string,size:Pe.oneOfType([Pe.string,Pe.number])};qde.displayName="Book";const Upt=qde;function gte(){return gte=Object.assign||function(n){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(t[i]=n[i])}return t}function Kpt(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o=0)&&(t[r]=n[r]);return t}var Kde=w.forwardRef(function(n,e){var t=n.color,i=t===void 0?"currentColor":t,r=n.size,o=r===void 0?24:r,s=qpt(n,["color","size"]);return te.createElement("svg",gte({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),te.createElement("path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"}),te.createElement("polyline",{points:"3.27 6.96 12 12.01 20.73 6.96"}),te.createElement("line",{x1:"12",y1:"22.08",x2:"12",y2:"12"}))});Kde.propTypes={color:Pe.string,size:Pe.oneOfType([Pe.string,Pe.number])};Kde.displayName="Box";const Gpt=Kde;function pte(){return pte=Object.assign||function(n){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(t[i]=n[i])}return t}function Qpt(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o=0)&&(t[r]=n[r]);return t}var Gde=w.forwardRef(function(n,e){var t=n.color,i=t===void 0?"currentColor":t,r=n.size,o=r===void 0?24:r,s=Ypt(n,["color","size"]);return te.createElement("svg",pte({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),te.createElement("rect",{x:"2",y:"7",width:"20",height:"14",rx:"2",ry:"2"}),te.createElement("path",{d:"M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"}))});Gde.propTypes={color:Pe.string,size:Pe.oneOfType([Pe.string,Pe.number])};Gde.displayName="Briefcase";const Xpt=Gde;function mte(){return mte=Object.assign||function(n){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(t[i]=n[i])}return t}function Jpt(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o=0)&&(t[r]=n[r]);return t}var Yde=w.forwardRef(function(n,e){var t=n.color,i=t===void 0?"currentColor":t,r=n.size,o=r===void 0?24:r,s=Zpt(n,["color","size"]);return te.createElement("svg",mte({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),te.createElement("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"}),te.createElement("line",{x1:"16",y1:"2",x2:"16",y2:"6"}),te.createElement("line",{x1:"8",y1:"2",x2:"8",y2:"6"}),te.createElement("line",{x1:"3",y1:"10",x2:"21",y2:"10"}))});Yde.propTypes={color:Pe.string,size:Pe.oneOfType([Pe.string,Pe.number])};Yde.displayName="Calendar";const U3e=Yde;function _te(){return _te=Object.assign||function(n){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(t[i]=n[i])}return t}function tmt(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o=0)&&(t[r]=n[r]);return t}var Qde=w.forwardRef(function(n,e){var t=n.color,i=t===void 0?"currentColor":t,r=n.size,o=r===void 0?24:r,s=emt(n,["color","size"]);return te.createElement("svg",_te({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),te.createElement("path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14"}),te.createElement("polyline",{points:"22 4 12 14.01 9 11.01"}))});Qde.propTypes={color:Pe.string,size:Pe.oneOfType([Pe.string,Pe.number])};Qde.displayName="CheckCircle";const KY=Qde;function vte(){return vte=Object.assign||function(n){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(t[i]=n[i])}return t}function imt(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o=0)&&(t[r]=n[r]);return t}var Xde=w.forwardRef(function(n,e){var t=n.color,i=t===void 0?"currentColor":t,r=n.size,o=r===void 0?24:r,s=nmt(n,["color","size"]);return te.createElement("svg",vte({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),te.createElement("polyline",{points:"20 6 9 17 4 12"}))});Xde.propTypes={color:Pe.string,size:Pe.oneOfType([Pe.string,Pe.number])};Xde.displayName="Check";const Zde=Xde;function bte(){return bte=Object.assign||function(n){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(t[i]=n[i])}return t}function omt(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o=0)&&(t[r]=n[r]);return t}var Jde=w.forwardRef(function(n,e){var t=n.color,i=t===void 0?"currentColor":t,r=n.size,o=r===void 0?24:r,s=rmt(n,["color","size"]);return te.createElement("svg",bte({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),te.createElement("polyline",{points:"6 9 12 15 18 9"}))});Jde.propTypes={color:Pe.string,size:Pe.oneOfType([Pe.string,Pe.number])};Jde.displayName="ChevronDown";const z2=Jde;function yte(){return yte=Object.assign||function(n){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(t[i]=n[i])}return t}function amt(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o=0)&&(t[r]=n[r]);return t}var ehe=w.forwardRef(function(n,e){var t=n.color,i=t===void 0?"currentColor":t,r=n.size,o=r===void 0?24:r,s=smt(n,["color","size"]);return te.createElement("svg",yte({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),te.createElement("polyline",{points:"15 18 9 12 15 6"}))});ehe.propTypes={color:Pe.string,size:Pe.oneOfType([Pe.string,Pe.number])};ehe.displayName="ChevronLeft";const q3e=ehe;function Cte(){return Cte=Object.assign||function(n){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(t[i]=n[i])}return t}function cmt(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o=0)&&(t[r]=n[r]);return t}var the=w.forwardRef(function(n,e){var t=n.color,i=t===void 0?"currentColor":t,r=n.size,o=r===void 0?24:r,s=lmt(n,["color","size"]);return te.createElement("svg",Cte({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),te.createElement("polyline",{points:"9 18 15 12 9 6"}))});the.propTypes={color:Pe.string,size:Pe.oneOfType([Pe.string,Pe.number])};the.displayName="ChevronRight";const nhe=the;function wte(){return wte=Object.assign||function(n){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(t[i]=n[i])}return t}function dmt(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o=0)&&(t[r]=n[r]);return t}var ihe=w.forwardRef(function(n,e){var t=n.color,i=t===void 0?"currentColor":t,r=n.size,o=r===void 0?24:r,s=umt(n,["color","size"]);return te.createElement("svg",wte({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),te.createElement("polyline",{points:"18 15 12 9 6 15"}))});ihe.propTypes={color:Pe.string,size:Pe.oneOfType([Pe.string,Pe.number])};ihe.displayName="ChevronUp";const K3e=ihe;function Ste(){return Ste=Object.assign||function(n){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(t[i]=n[i])}return t}function fmt(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o=0)&&(t[r]=n[r]);return t}var rhe=w.forwardRef(function(n,e){var t=n.color,i=t===void 0?"currentColor":t,r=n.size,o=r===void 0?24:r,s=hmt(n,["color","size"]);return te.createElement("svg",Ste({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),te.createElement("polyline",{points:"11 17 6 12 11 7"}),te.createElement("polyline",{points:"18 17 13 12 18 7"}))});rhe.propTypes={color:Pe.string,size:Pe.oneOfType([Pe.string,Pe.number])};rhe.displayName="ChevronsLeft";const gmt=rhe;function Ete(){return Ete=Object.assign||function(n){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(t[i]=n[i])}return t}function mmt(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o=0)&&(t[r]=n[r]);return t}var ohe=w.forwardRef(function(n,e){var t=n.color,i=t===void 0?"currentColor":t,r=n.size,o=r===void 0?24:r,s=pmt(n,["color","size"]);return te.createElement("svg",Ete({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),te.createElement("polyline",{points:"13 17 18 12 13 7"}),te.createElement("polyline",{points:"6 17 11 12 6 7"}))});ohe.propTypes={color:Pe.string,size:Pe.oneOfType([Pe.string,Pe.number])};ohe.displayName="ChevronsRight";const op=ohe;function xte(){return xte=Object.assign||function(n){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(t[i]=n[i])}return t}function vmt(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o=0)&&(t[r]=n[r]);return t}var she=w.forwardRef(function(n,e){var t=n.color,i=t===void 0?"currentColor":t,r=n.size,o=r===void 0?24:r,s=_mt(n,["color","size"]);return te.createElement("svg",xte({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),te.createElement("circle",{cx:"12",cy:"12",r:"10"}),te.createElement("polyline",{points:"12 6 12 12 16 14"}))});she.propTypes={color:Pe.string,size:Pe.oneOfType([Pe.string,Pe.number])};she.displayName="Clock";const bmt=she;function kte(){return kte=Object.assign||function(n){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(t[i]=n[i])}return t}function Cmt(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o=0)&&(t[r]=n[r]);return t}var ahe=w.forwardRef(function(n,e){var t=n.color,i=t===void 0?"currentColor":t,r=n.size,o=r===void 0?24:r,s=ymt(n,["color","size"]);return te.createElement("svg",kte({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),te.createElement("rect",{x:"1",y:"4",width:"22",height:"16",rx:"2",ry:"2"}),te.createElement("line",{x1:"1",y1:"10",x2:"23",y2:"10"}))});ahe.propTypes={color:Pe.string,size:Pe.oneOfType([Pe.string,Pe.number])};ahe.displayName="CreditCard";const wmt=ahe;function Tte(){return Tte=Object.assign||function(n){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(t[i]=n[i])}return t}function Emt(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o=0)&&(t[r]=n[r]);return t}var lhe=w.forwardRef(function(n,e){var t=n.color,i=t===void 0?"currentColor":t,r=n.size,o=r===void 0?24:r,s=Smt(n,["color","size"]);return te.createElement("svg",Tte({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),te.createElement("polyline",{points:"8 17 12 21 16 17"}),te.createElement("line",{x1:"12",y1:"12",x2:"12",y2:"21"}),te.createElement("path",{d:"M20.88 18.09A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.29"}))});lhe.propTypes={color:Pe.string,size:Pe.oneOfType([Pe.string,Pe.number])};lhe.displayName="DownloadCloud";const xmt=lhe;function Ite(){return Ite=Object.assign||function(n){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(t[i]=n[i])}return t}function Tmt(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o=0)&&(t[r]=n[r]);return t}var che=w.forwardRef(function(n,e){var t=n.color,i=t===void 0?"currentColor":t,r=n.size,o=r===void 0?24:r,s=kmt(n,["color","size"]);return te.createElement("svg",Ite({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),te.createElement("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),te.createElement("polyline",{points:"15 3 21 3 21 9"}),te.createElement("line",{x1:"10",y1:"14",x2:"21",y2:"3"}))});che.propTypes={color:Pe.string,size:Pe.oneOfType([Pe.string,Pe.number])};che.displayName="ExternalLink";const Imt=che;function Lte(){return Lte=Object.assign||function(n){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(t[i]=n[i])}return t}function Dmt(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o=0)&&(t[r]=n[r]);return t}var uhe=w.forwardRef(function(n,e){var t=n.color,i=t===void 0?"currentColor":t,r=n.size,o=r===void 0?24:r,s=Lmt(n,["color","size"]);return te.createElement("svg",Lte({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),te.createElement("path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z"}))});uhe.propTypes={color:Pe.string,size:Pe.oneOfType([Pe.string,Pe.number])};uhe.displayName="Facebook";const Amt=uhe;function Dte(){return Dte=Object.assign||function(n){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(t[i]=n[i])}return t}function Nmt(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o=0)&&(t[r]=n[r]);return t}var dhe=w.forwardRef(function(n,e){var t=n.color,i=t===void 0?"currentColor":t,r=n.size,o=r===void 0?24:r,s=Rmt(n,["color","size"]);return te.createElement("svg",Dte({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),te.createElement("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),te.createElement("polyline",{points:"14 2 14 8 20 8"}),te.createElement("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),te.createElement("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),te.createElement("polyline",{points:"10 9 9 9 8 9"}))});dhe.propTypes={color:Pe.string,size:Pe.oneOfType([Pe.string,Pe.number])};dhe.displayName="FileText";const QC=dhe;function Ate(){return Ate=Object.assign||function(n){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(t[i]=n[i])}return t}function Pmt(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o=0)&&(t[r]=n[r]);return t}var hhe=w.forwardRef(function(n,e){var t=n.color,i=t===void 0?"currentColor":t,r=n.size,o=r===void 0?24:r,s=Omt(n,["color","size"]);return te.createElement("svg",Ate({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),te.createElement("path",{d:"M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"}),te.createElement("polyline",{points:"13 2 13 9 20 9"}))});hhe.propTypes={color:Pe.string,size:Pe.oneOfType([Pe.string,Pe.number])};hhe.displayName="File";const fhe=hhe;function Rte(){return Rte=Object.assign||function(n){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(t[i]=n[i])}return t}function Fmt(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o=0)&&(t[r]=n[r]);return t}var ghe=w.forwardRef(function(n,e){var t=n.color,i=t===void 0?"currentColor":t,r=n.size,o=r===void 0?24:r,s=Mmt(n,["color","size"]);return te.createElement("svg",Rte({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),te.createElement("path",{d:"M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"}))});ghe.propTypes={color:Pe.string,size:Pe.oneOfType([Pe.string,Pe.number])};ghe.displayName="GitHub";const Bmt=ghe;function Nte(){return Nte=Object.assign||function(n){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(t[i]=n[i])}return t}function Vmt(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o=0)&&(t[r]=n[r]);return t}var phe=w.forwardRef(function(n,e){var t=n.color,i=t===void 0?"currentColor":t,r=n.size,o=r===void 0?24:r,s=$mt(n,["color","size"]);return te.createElement("svg",Nte({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),te.createElement("circle",{cx:"12",cy:"12",r:"10"}),te.createElement("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),te.createElement("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"}))});phe.propTypes={color:Pe.string,size:Pe.oneOfType([Pe.string,Pe.number])};phe.displayName="HelpCircle";const Hmt=phe;function Ote(){return Ote=Object.assign||function(n){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(t[i]=n[i])}return t}function zmt(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o=0)&&(t[r]=n[r]);return t}var mhe=w.forwardRef(function(n,e){var t=n.color,i=t===void 0?"currentColor":t,r=n.size,o=r===void 0?24:r,s=Wmt(n,["color","size"]);return te.createElement("svg",Ote({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),te.createElement("path",{d:"M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"}),te.createElement("polyline",{points:"9 22 9 12 15 12 15 22"}))});mhe.propTypes={color:Pe.string,size:Pe.oneOfType([Pe.string,Pe.number])};mhe.displayName="Home";const G3e=mhe;function Pte(){return Pte=Object.assign||function(n){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(t[i]=n[i])}return t}function Umt(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o=0)&&(t[r]=n[r]);return t}var _he=w.forwardRef(function(n,e){var t=n.color,i=t===void 0?"currentColor":t,r=n.size,o=r===void 0?24:r,s=jmt(n,["color","size"]);return te.createElement("svg",Pte({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),te.createElement("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"}),te.createElement("circle",{cx:"8.5",cy:"8.5",r:"1.5"}),te.createElement("polyline",{points:"21 15 16 10 5 21"}))});_he.propTypes={color:Pe.string,size:Pe.oneOfType([Pe.string,Pe.number])};_he.displayName="Image";const px=_he;function Mte(){return Mte=Object.assign||function(n){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(t[i]=n[i])}return t}function Kmt(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o=0)&&(t[r]=n[r]);return t}var vhe=w.forwardRef(function(n,e){var t=n.color,i=t===void 0?"currentColor":t,r=n.size,o=r===void 0?24:r,s=qmt(n,["color","size"]);return te.createElement("svg",Mte({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),te.createElement("circle",{cx:"12",cy:"12",r:"10"}),te.createElement("line",{x1:"12",y1:"16",x2:"12",y2:"12"}),te.createElement("line",{x1:"12",y1:"8",x2:"12.01",y2:"8"}))});vhe.propTypes={color:Pe.string,size:Pe.oneOfType([Pe.string,Pe.number])};vhe.displayName="Info";const Gmt=vhe;function Fte(){return Fte=Object.assign||function(n){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(t[i]=n[i])}return t}function Qmt(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o=0)&&(t[r]=n[r]);return t}var bhe=w.forwardRef(function(n,e){var t=n.color,i=t===void 0?"currentColor":t,r=n.size,o=r===void 0?24:r,s=Ymt(n,["color","size"]);return te.createElement("svg",Fte({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),te.createElement("rect",{x:"3",y:"11",width:"18",height:"11",rx:"2",ry:"2"}),te.createElement("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"}))});bhe.propTypes={color:Pe.string,size:Pe.oneOfType([Pe.string,Pe.number])};bhe.displayName="Lock";const Xmt=bhe;function Bte(){return Bte=Object.assign||function(n){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(t[i]=n[i])}return t}function Jmt(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o=0)&&(t[r]=n[r]);return t}var yhe=w.forwardRef(function(n,e){var t=n.color,i=t===void 0?"currentColor":t,r=n.size,o=r===void 0?24:r,s=Zmt(n,["color","size"]);return te.createElement("svg",Bte({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),te.createElement("path",{d:"M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"}),te.createElement("polyline",{points:"22,6 12,13 2,6"}))});yhe.propTypes={color:Pe.string,size:Pe.oneOfType([Pe.string,Pe.number])};yhe.displayName="Mail";const e_t=yhe;function $te(){return $te=Object.assign||function(n){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(t[i]=n[i])}return t}function n_t(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o=0)&&(t[r]=n[r]);return t}var Che=w.forwardRef(function(n,e){var t=n.color,i=t===void 0?"currentColor":t,r=n.size,o=r===void 0?24:r,s=t_t(n,["color","size"]);return te.createElement("svg",$te({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),te.createElement("line",{x1:"3",y1:"12",x2:"21",y2:"12"}),te.createElement("line",{x1:"3",y1:"6",x2:"21",y2:"6"}),te.createElement("line",{x1:"3",y1:"18",x2:"21",y2:"18"}))});Che.propTypes={color:Pe.string,size:Pe.oneOfType([Pe.string,Pe.number])};Che.displayName="Menu";const i_t=Che;function Vte(){return Vte=Object.assign||function(n){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(t[i]=n[i])}return t}function o_t(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o=0)&&(t[r]=n[r]);return t}var whe=w.forwardRef(function(n,e){var t=n.color,i=t===void 0?"currentColor":t,r=n.size,o=r===void 0?24:r,s=r_t(n,["color","size"]);return te.createElement("svg",Vte({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),te.createElement("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"}))});whe.propTypes={color:Pe.string,size:Pe.oneOfType([Pe.string,Pe.number])};whe.displayName="MessageSquare";const s_t=whe;function Hte(){return Hte=Object.assign||function(n){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(t[i]=n[i])}return t}function l_t(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o=0)&&(t[r]=n[r]);return t}var She=w.forwardRef(function(n,e){var t=n.color,i=t===void 0?"currentColor":t,r=n.size,o=r===void 0?24:r,s=a_t(n,["color","size"]);return te.createElement("svg",Hte({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),te.createElement("path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83"}),te.createElement("path",{d:"M22 12A10 10 0 0 0 12 2v10z"}))});She.propTypes={color:Pe.string,size:Pe.oneOfType([Pe.string,Pe.number])};She.displayName="PieChart";const c_t=She;function Wte(){return Wte=Object.assign||function(n){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(t[i]=n[i])}return t}function d_t(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o=0)&&(t[r]=n[r]);return t}var Ehe=w.forwardRef(function(n,e){var t=n.color,i=t===void 0?"currentColor":t,r=n.size,o=r===void 0?24:r,s=u_t(n,["color","size"]);return te.createElement("svg",Wte({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),te.createElement("circle",{cx:"12",cy:"12",r:"10"}),te.createElement("line",{x1:"12",y1:"8",x2:"12",y2:"16"}),te.createElement("line",{x1:"8",y1:"12",x2:"16",y2:"12"}))});Ehe.propTypes={color:Pe.string,size:Pe.oneOfType([Pe.string,Pe.number])};Ehe.displayName="PlusCircle";const dd=Ehe;function zte(){return zte=Object.assign||function(n){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(t[i]=n[i])}return t}function f_t(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o=0)&&(t[r]=n[r]);return t}var xhe=w.forwardRef(function(n,e){var t=n.color,i=t===void 0?"currentColor":t,r=n.size,o=r===void 0?24:r,s=h_t(n,["color","size"]);return te.createElement("svg",zte({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),te.createElement("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),te.createElement("line",{x1:"5",y1:"12",x2:"19",y2:"12"}))});xhe.propTypes={color:Pe.string,size:Pe.oneOfType([Pe.string,Pe.number])};xhe.displayName="Plus";const g_t=xhe;function jte(){return jte=Object.assign||function(n){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(t[i]=n[i])}return t}function m_t(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o=0)&&(t[r]=n[r]);return t}var khe=w.forwardRef(function(n,e){var t=n.color,i=t===void 0?"currentColor":t,r=n.size,o=r===void 0?24:r,s=p_t(n,["color","size"]);return te.createElement("svg",jte({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),te.createElement("polyline",{points:"17 1 21 5 17 9"}),te.createElement("path",{d:"M3 11V9a4 4 0 0 1 4-4h14"}),te.createElement("polyline",{points:"7 23 3 19 7 15"}),te.createElement("path",{d:"M21 13v2a4 4 0 0 1-4 4H3"}))});khe.propTypes={color:Pe.string,size:Pe.oneOfType([Pe.string,Pe.number])};khe.displayName="Repeat";const i7=khe;function Ute(){return Ute=Object.assign||function(n){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(t[i]=n[i])}return t}function v_t(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o=0)&&(t[r]=n[r]);return t}var The=w.forwardRef(function(n,e){var t=n.color,i=t===void 0?"currentColor":t,r=n.size,o=r===void 0?24:r,s=__t(n,["color","size"]);return te.createElement("svg",Ute({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),te.createElement("circle",{cx:"12",cy:"12",r:"3"}),te.createElement("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"}))});The.propTypes={color:Pe.string,size:Pe.oneOfType([Pe.string,Pe.number])};The.displayName="Settings";const Ihe=The;function qte(){return qte=Object.assign||function(n){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(t[i]=n[i])}return t}function y_t(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o=0)&&(t[r]=n[r]);return t}var Lhe=w.forwardRef(function(n,e){var t=n.color,i=t===void 0?"currentColor":t,r=n.size,o=r===void 0?24:r,s=b_t(n,["color","size"]);return te.createElement("svg",qte({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),te.createElement("path",{d:"M14.5 10c-.83 0-1.5-.67-1.5-1.5v-5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5v5c0 .83-.67 1.5-1.5 1.5z"}),te.createElement("path",{d:"M20.5 10H19V8.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"}),te.createElement("path",{d:"M9.5 14c.83 0 1.5.67 1.5 1.5v5c0 .83-.67 1.5-1.5 1.5S8 21.33 8 20.5v-5c0-.83.67-1.5 1.5-1.5z"}),te.createElement("path",{d:"M3.5 14H5v1.5c0 .83-.67 1.5-1.5 1.5S2 16.33 2 15.5 2.67 14 3.5 14z"}),te.createElement("path",{d:"M14 14.5c0-.83.67-1.5 1.5-1.5h5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-5c-.83 0-1.5-.67-1.5-1.5z"}),te.createElement("path",{d:"M15.5 19H14v1.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5-.67-1.5-1.5-1.5z"}),te.createElement("path",{d:"M10 9.5C10 8.67 9.33 8 8.5 8h-5C2.67 8 2 8.67 2 9.5S2.67 11 3.5 11h5c.83 0 1.5-.67 1.5-1.5z"}),te.createElement("path",{d:"M8.5 5H10V3.5C10 2.67 9.33 2 8.5 2S7 2.67 7 3.5 7.67 5 8.5 5z"}))});Lhe.propTypes={color:Pe.string,size:Pe.oneOfType([Pe.string,Pe.number])};Lhe.displayName="Slack";const C_t=Lhe;function Kte(){return Kte=Object.assign||function(n){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(t[i]=n[i])}return t}function S_t(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o=0)&&(t[r]=n[r]);return t}var Dhe=w.forwardRef(function(n,e){var t=n.color,i=t===void 0?"currentColor":t,r=n.size,o=r===void 0?24:r,s=w_t(n,["color","size"]);return te.createElement("svg",Kte({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),te.createElement("rect",{x:"5",y:"2",width:"14",height:"20",rx:"2",ry:"2"}),te.createElement("line",{x1:"12",y1:"18",x2:"12.01",y2:"18"}))});Dhe.propTypes={color:Pe.string,size:Pe.oneOfType([Pe.string,Pe.number])};Dhe.displayName="Smartphone";const E_t=Dhe;function Gte(){return Gte=Object.assign||function(n){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(t[i]=n[i])}return t}function k_t(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o=0)&&(t[r]=n[r]);return t}var Ahe=w.forwardRef(function(n,e){var t=n.color,i=t===void 0?"currentColor":t,r=n.size,o=r===void 0?24:r,s=x_t(n,["color","size"]);return te.createElement("svg",Gte({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),te.createElement("polyline",{points:"3 6 5 6 21 6"}),te.createElement("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"}),te.createElement("line",{x1:"10",y1:"11",x2:"10",y2:"17"}),te.createElement("line",{x1:"14",y1:"11",x2:"14",y2:"17"}))});Ahe.propTypes={color:Pe.string,size:Pe.oneOfType([Pe.string,Pe.number])};Ahe.displayName="Trash2";const T_t=Ahe;function Yte(){return Yte=Object.assign||function(n){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(t[i]=n[i])}return t}function L_t(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o=0)&&(t[r]=n[r]);return t}var Rhe=w.forwardRef(function(n,e){var t=n.color,i=t===void 0?"currentColor":t,r=n.size,o=r===void 0?24:r,s=I_t(n,["color","size"]);return te.createElement("svg",Yte({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),te.createElement("path",{d:"M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z"}))});Rhe.propTypes={color:Pe.string,size:Pe.oneOfType([Pe.string,Pe.number])};Rhe.displayName="Twitter";const D_t=Rhe;function Qte(){return Qte=Object.assign||function(n){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(t[i]=n[i])}return t}function R_t(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o=0)&&(t[r]=n[r]);return t}var Nhe=w.forwardRef(function(n,e){var t=n.color,i=t===void 0?"currentColor":t,r=n.size,o=r===void 0?24:r,s=A_t(n,["color","size"]);return te.createElement("svg",Qte({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),te.createElement("path",{d:"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"}),te.createElement("circle",{cx:"9",cy:"7",r:"4"}),te.createElement("path",{d:"M23 21v-2a4 4 0 0 0-3-3.87"}),te.createElement("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"}))});Nhe.propTypes={color:Pe.string,size:Pe.oneOfType([Pe.string,Pe.number])};Nhe.displayName="Users";const N_t=Nhe;function Xte(){return Xte=Object.assign||function(n){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(t[i]=n[i])}return t}function P_t(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o=0)&&(t[r]=n[r]);return t}var Ohe=w.forwardRef(function(n,e){var t=n.color,i=t===void 0?"currentColor":t,r=n.size,o=r===void 0?24:r,s=O_t(n,["color","size"]);return te.createElement("svg",Xte({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),te.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),te.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))});Ohe.propTypes={color:Pe.string,size:Pe.oneOfType([Pe.string,Pe.number])};Ohe.displayName="X";const L_=Ohe;function Zte(){return Zte=Object.assign||function(n){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(t[i]=n[i])}return t}function F_t(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o=0)&&(t[r]=n[r]);return t}var Phe=w.forwardRef(function(n,e){var t=n.color,i=t===void 0?"currentColor":t,r=n.size,o=r===void 0?24:r,s=M_t(n,["color","size"]);return te.createElement("svg",Zte({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),te.createElement("path",{d:"M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 0 0-1.94 2A29 29 0 0 0 1 11.75a29 29 0 0 0 .46 5.33A2.78 2.78 0 0 0 3.4 19c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 0 0 1.94-2 29 29 0 0 0 .46-5.25 29 29 0 0 0-.46-5.33z"}),te.createElement("polygon",{points:"9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02"}))});Phe.propTypes={color:Pe.string,size:Pe.oneOfType([Pe.string,Pe.number])};Phe.displayName="Youtube";const B_t=Phe;var Y3e={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */(function(n){(function(){var e={}.hasOwnProperty;function t(){for(var i=[],r=0;ra.user).changes)==null?void 0:t.company_user)==null?void 0:i.settings)==null?void 0:r.accent_color)||((s=(o=n==null?void 0:n.company_user)==null?void 0:o.settings)==null?void 0:s.accent_color)||Q3e.accent}var zh=function(){return zh=Object.assign||function(e){for(var t,i=1,r=arguments.length;i0&&o[o.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]0)&&!(r=i.next()).done;)o.push(r.value)}catch(a){s={error:a}}finally{try{r&&!r.done&&(t=i.return)&&t.call(i)}finally{if(s)throw s.error}}return o}function uD(n,e,t){if(t||arguments.length===2)for(var i=0,r=e.length,o;i0?iu(q2,--Mp):0,hD--,ac===10&&(hD=1,kz--),ac}function l_(){return ac=Mp2||ene(ac)>3?"":" "}function X_t(n,e){for(;--e&&l_()&&!(ac<48||ac>102||ac>57&&ac<65||ac>70&&ac<97););return Iz(n,t8()+(e<6&&$E()==32&&l_()==32))}function tne(n){for(;l_();)switch(ac){case n:return Mp;case 34:case 39:n!==34&&n!==39&&tne(ac);break;case 40:n===41&&tne(n);break;case 92:l_();break}return Mp}function Z_t(n,e){for(;l_()&&n+ac!==47+10;)if(n+ac===42+42&&$E()===47)break;return"/*"+Iz(e,Mp-1)+"*"+Fhe(n===47?n:l_())}function J_t(n){for(;!ene($E());)l_();return Iz(n,Mp)}function evt(n){return Y_t(n8("",null,null,null,[""],n=G_t(n),0,[0],n))}function n8(n,e,t,i,r,o,s,a,l){for(var c=0,u=0,d=s,h=0,g=0,p=0,m=1,_=1,v=1,b=0,y="",C=r,x=o,k=i,I=y;_;)switch(p=b,b=l_()){case 40:if(p!=108&&iu(I,d-1)==58){e8(I+=Zr(GY(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:I+=GY(b);break;case 9:case 10:case 13:case 32:I+=Q_t(p);break;case 92:I+=X_t(t8()-1,7);continue;case 47:switch($E()){case 42:case 47:mN(tvt(Z_t(l_(),t8()),e,t,l),l);break;default:I+="/"}break;case 123*m:a[c++]=ov(I)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:_=0;case 59+u:v==-1&&(I=Zr(I,/\f/g,"")),g>0&&ov(I)-d&&mN(g>32?Swe(I+";",i,t,d-1,l):Swe(Zr(I," ","")+";",i,t,d-2,l),l);break;case 59:I+=";";default:if(mN(k=wwe(I,e,t,c,u,r,a,y,C=[],x=[],d,o),o),b===123)if(u===0)n8(I,e,k,k,C,o,d,a,x);else switch(h===99&&iu(I,3)===110?100:h){case 100:case 108:case 109:case 115:n8(n,k,k,i&&mN(wwe(n,k,k,0,0,r,a,y,r,C=[],d,x),x),r,x,d,a,i?C:x);break;default:n8(I,k,k,k,[""],x,0,a,x)}}c=u=g=0,m=v=1,y=I="",d=s;break;case 58:d=1+ov(I),g=p;default:if(m<1){if(b==123)--m;else if(b==125&&m++==0&&K_t()==125)continue}switch(I+=Fhe(b),b*m){case 38:v=u>0?1:(I+="\f",-1);break;case 44:a[c++]=(ov(I)-1)*v,v=1;break;case 64:$E()===45&&(I+=GY(l_())),h=$E(),u=d=ov(y=I+=J_t(t8())),b++;break;case 45:p===45&&ov(I)==2&&(m=0)}}return o}function wwe(n,e,t,i,r,o,s,a,l,c,u,d){for(var h=r-1,g=r===0?o:[""],p=e5e(g),m=0,_=0,v=0;m0?g[b]+" "+y:Zr(y,/&\f/g,g[b])))&&(l[v++]=C);return Tz(n,e,t,r===0?xz:a,l,c,u,d)}function tvt(n,e,t,i){return Tz(n,e,t,X3e,Fhe(q_t()),dD(n,2,-2),0,i)}function Swe(n,e,t,i,r){return Tz(n,e,t,Mhe,dD(n,0,i),dD(n,i+1,-1),i,r)}function n5e(n,e,t){switch(j_t(n,e)){case 5103:return gs+"print-"+n+n;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return gs+n+n;case 4789:return rO+n+n;case 5349:case 4246:case 4810:case 6968:case 2756:return gs+n+rO+n+Ta+n+n;case 5936:switch(iu(n,e+11)){case 114:return gs+n+Ta+Zr(n,/[svh]\w+-[tblr]{2}/,"tb")+n;case 108:return gs+n+Ta+Zr(n,/[svh]\w+-[tblr]{2}/,"tb-rl")+n;case 45:return gs+n+Ta+Zr(n,/[svh]\w+-[tblr]{2}/,"lr")+n}case 6828:case 4268:case 2903:return gs+n+Ta+n+n;case 6165:return gs+n+Ta+"flex-"+n+n;case 5187:return gs+n+Zr(n,/(\w+).+(:[^]+)/,gs+"box-$1$2"+Ta+"flex-$1$2")+n;case 5443:return gs+n+Ta+"flex-item-"+Zr(n,/flex-|-self/g,"")+(ay(n,/flex-|baseline/)?"":Ta+"grid-row-"+Zr(n,/flex-|-self/g,""))+n;case 4675:return gs+n+Ta+"flex-line-pack"+Zr(n,/align-content|flex-|-self/g,"")+n;case 5548:return gs+n+Ta+Zr(n,"shrink","negative")+n;case 5292:return gs+n+Ta+Zr(n,"basis","preferred-size")+n;case 6060:return gs+"box-"+Zr(n,"-grow","")+gs+n+Ta+Zr(n,"grow","positive")+n;case 4554:return gs+Zr(n,/([^-])(transform)/g,"$1"+gs+"$2")+n;case 6187:return Zr(Zr(Zr(n,/(zoom-|grab)/,gs+"$1"),/(image-set)/,gs+"$1"),n,"")+n;case 5495:case 3959:return Zr(n,/(image-set\([^]*)/,gs+"$1$`$1");case 4968:return Zr(Zr(n,/(.+:)(flex-)?(.*)/,gs+"box-pack:$3"+Ta+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+gs+n+n;case 4200:if(!ay(n,/flex-|baseline/))return Ta+"grid-column-align"+dD(n,e)+n;break;case 2592:case 3360:return Ta+Zr(n,"template-","")+n;case 4384:case 3616:return t&&t.some(function(i,r){return e=r,ay(i.props,/grid-\w+-end/)})?~e8(n+(t=t[e].value),"span")?n:Ta+Zr(n,"-start","")+n+Ta+"grid-row-span:"+(~e8(t,"span")?ay(t,/\d+/):+ay(t,/\d+/)-+ay(n,/\d+/))+";":Ta+Zr(n,"-start","")+n;case 4896:case 4128:return t&&t.some(function(i){return ay(i.props,/grid-\w+-start/)})?n:Ta+Zr(Zr(n,"-end","-span"),"span ","")+n;case 4095:case 3583:case 4068:case 2532:return Zr(n,/(.+)-inline(.+)/,gs+"$1$2")+n;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ov(n)-1-e>6)switch(iu(n,e+1)){case 109:if(iu(n,e+4)!==45)break;case 102:return Zr(n,/(.+:)(.+)-([^]+)/,"$1"+gs+"$2-$3$1"+rO+(iu(n,e+3)==108?"$3":"$2-$3"))+n;case 115:return~e8(n,"stretch")?n5e(Zr(n,"stretch","fill-available"),e,t)+n:n}break;case 5152:case 5920:return Zr(n,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(i,r,o,s,a,l,c){return Ta+r+":"+o+c+(s?Ta+r+"-span:"+(a?l:+l-+o)+c:"")+n});case 4949:if(iu(n,e+6)===121)return Zr(n,":",":"+gs)+n;break;case 6444:switch(iu(n,iu(n,14)===45?18:11)){case 120:return Zr(n,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+gs+(iu(n,14)===45?"inline-":"")+"box$3$1"+gs+"$2$3$1"+Ta+"$2box$3")+n;case 100:return Zr(n,":",":"+Ta)+n}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Zr(n,"scroll-","scroll-snap-")+n}return n}function r7(n,e){for(var t="",i=0;i-1&&!n.return)switch(n.type){case Mhe:n.return=n5e(n.value,n.length,t);return;case Z3e:return r7([a1(n,{value:Zr(n.value,"@","@"+gs)})],i);case xz:if(n.length)return U_t(t=n.props,function(r){switch(ay(r,i=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":_T(a1(n,{props:[Zr(r,/:(read-\w+)/,":"+rO+"$1")]})),_T(a1(n,{props:[r]})),Jte(n,{props:Cwe(t,i)});break;case"::placeholder":_T(a1(n,{props:[Zr(r,/:(plac\w+)/,":"+gs+"input-$1")]})),_T(a1(n,{props:[Zr(r,/:(plac\w+)/,":"+rO+"$1")]})),_T(a1(n,{props:[Zr(r,/:(plac\w+)/,Ta+"input-$1")]})),_T(a1(n,{props:[r]})),Jte(n,{props:Cwe(t,i)});break}return""})}}var i5e={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},fD=typeof process<"u"&&process.env!==void 0&&({}.REACT_APP_SC_ATTR||{}.SC_ATTR)||"data-styled",Bhe=typeof window<"u"&&"HTMLElement"in window,svt=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&{}.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&{}.REACT_APP_SC_DISABLE_SPEEDY!==""?{}.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&{}.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&{}.SC_DISABLE_SPEEDY!==void 0&&{}.SC_DISABLE_SPEEDY!==""&&{}.SC_DISABLE_SPEEDY!=="false"&&{}.SC_DISABLE_SPEEDY),Lz=Object.freeze([]),gD=Object.freeze({});function avt(n,e,t){return t===void 0&&(t=gD),n.theme!==t.theme&&n.theme||e||t.theme}var r5e=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),lvt=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,cvt=/(^-|-$)/g;function Ewe(n){return n.replace(lvt,"-").replace(cvt,"")}var uvt=/(a)(d)/gi,xwe=function(n){return String.fromCharCode(n+(n>25?39:97))};function nne(n){var e,t="";for(e=Math.abs(n);e>52;e=e/52|0)t=xwe(e%52)+t;return(xwe(e%52)+t).replace(uvt,"$1-$2")}var YY,CI=function(n,e){for(var t=e.length;t;)n=33*n^e.charCodeAt(--t);return n},o5e=function(n){return CI(5381,n)};function dvt(n){return nne(o5e(n)>>>0)}function hvt(n){return n.displayName||n.name||"Component"}function QY(n){return typeof n=="string"&&!0}var s5e=typeof Symbol=="function"&&Symbol.for,a5e=s5e?Symbol.for("react.memo"):60115,fvt=s5e?Symbol.for("react.forward_ref"):60112,gvt={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},pvt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},l5e={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},mvt=((YY={})[fvt]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},YY[a5e]=l5e,YY);function kwe(n){return("type"in(e=n)&&e.type.$$typeof)===a5e?l5e:"$$typeof"in n?mvt[n.$$typeof]:gvt;var e}var _vt=Object.defineProperty,vvt=Object.getOwnPropertyNames,Twe=Object.getOwnPropertySymbols,bvt=Object.getOwnPropertyDescriptor,yvt=Object.getPrototypeOf,Iwe=Object.prototype;function c5e(n,e,t){if(typeof e!="string"){if(Iwe){var i=yvt(e);i&&i!==Iwe&&c5e(n,i,t)}var r=vvt(e);Twe&&(r=r.concat(Twe(e)));for(var o=kwe(n),s=kwe(e),a=0;a0?" Args: ".concat(e.join(", ")):""))}var Cvt=function(){function n(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return n.prototype.indexOfGroup=function(e){for(var t=0,i=0;i=this.groupSizes.length){for(var i=this.groupSizes,r=i.length,o=r;e>=o;)if((o<<=1)<0)throw g3(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(i),this.length=o;for(var s=r;s=this.length||this.groupSizes[e]===0)return t;for(var i=this.groupSizes[e],r=this.indexOfGroup(e),o=r+i,s=r;s=0){var i=document.createTextNode(t);return this.element.insertBefore(i,this.nodes[e]||null),this.length++,!0}return!1},n.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},n.prototype.getRule=function(e){return e0&&(_+="".concat(v,","))}),l+="".concat(p).concat(m,'{content:"').concat(_,'"}').concat(`/*!sc*/ `)},u=0;u0?".".concat(e):h},u=l.slice();u.push(function(h){h.type===xz&&h.value.includes("&")&&(h.props[0]=h.props[0].replace(Rvt,t).replace(i,c))}),s.prefix&&u.push(ovt),u.push(nvt);var d=function(h,g,p,m){g===void 0&&(g=""),p===void 0&&(p=""),m===void 0&&(m="&"),e=m,t=g,i=new RegExp("\\".concat(t,"\\b"),"g");var _=h.replace(Nvt,""),v=evt(p||g?"".concat(p," ").concat(g," { ").concat(_," }"):_);s.namespace&&(v=h5e(v,s.namespace));var b=[];return r7(v,ivt(u.concat(rvt(function(y){return b.push(y)})))),b};return d.hash=l.length?l.reduce(function(h,g){return g.name||g3(15),CI(h,g.name)},5381).toString():"",d}var Pvt=new d5e,rne=Ovt(),f5e=te.createContext({shouldForwardProp:void 0,styleSheet:Pvt,stylis:rne});f5e.Consumer;te.createContext(void 0);function Awe(){return w.useContext(f5e)}var Mvt=function(){function n(e,t){var i=this;this.inject=function(r,o){o===void 0&&(o=rne);var s=i.name+o.hash;r.hasNameForId(i.id,s)||r.insertRules(i.id,s,o(i.rules,s,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,Vhe(this,function(){throw g3(12,String(i.name))})}return n.prototype.getName=function(e){return e===void 0&&(e=rne),this.name+e.hash},n}(),Fvt=function(n){return n>="A"&&n<="Z"};function Rwe(n){for(var e="",t=0;t>>0);if(!t.hasNameForId(this.componentId,s)){var a=i(o,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,a)}r=bE(r,s),this.staticRulesId=s}else{for(var l=CI(this.baseHash,i.hash),c="",u=0;u>>0);t.hasNameForId(this.componentId,g)||t.insertRules(this.componentId,g,i(c,".".concat(g),void 0,this.componentId)),r=bE(r,g)}}return r},n}(),m5e=te.createContext(void 0);m5e.Consumer;var ZY={};function Hvt(n,e,t){var i=$he(n),r=n,o=!QY(n),s=e.attrs,a=s===void 0?Lz:s,l=e.componentId,c=l===void 0?function(y,C){var x=typeof y!="string"?"sc":Ewe(y);ZY[x]=(ZY[x]||0)+1;var k="".concat(x,"-").concat(dvt("6.1.0"+x+ZY[x]));return C?"".concat(C,"-").concat(k):k}(e.displayName,e.parentComponentId):l,u=e.displayName;u===void 0&&function(y){return QY(y)?"styled.".concat(y):"Styled(".concat(hvt(y),")")}(n);var d=e.displayName&&e.componentId?"".concat(Ewe(e.displayName),"-").concat(e.componentId):e.componentId||c,h=i&&r.attrs?r.attrs.concat(a).filter(Boolean):a,g=e.shouldForwardProp;if(i&&r.shouldForwardProp){var p=r.shouldForwardProp;if(e.shouldForwardProp){var m=e.shouldForwardProp;g=function(y,C){return p(y,C)&&m(y,C)}}else g=p}var _=new Vvt(t,d,i?r.componentStyle:void 0);function v(y,C){return function(x,k,I){var L=x.attrs,D=x.componentStyle,R=x.defaultProps,P=x.foldedComponentIds,M=x.styledComponentId,O=x.target,B=te.useContext(m5e),F=Awe(),H=x.shouldForwardProp||F.shouldForwardProp,V=function(he,xe,_e){for(var Ie,Re=zh(zh({},xe),{className:void 0,theme:_e}),Ye=0;Yen.theme.color} !important; background-color: ${n=>n.theme.backgroundColor} !important; border-color: ${n=>n.theme.borderColor} !important; `,Uvt=Ea.button` color: ${n=>n.theme.color} !important; background-color: ${n=>n.theme.backgroundColor} !important; border-color: ${n=>n.theme.borderColor} !important; `;function Ut(n){n={...zvt,...n};const e=Vn(),t=ys(),i={backgroundColor:n.type==="primary"?t:n.noBackgroundColor?"transparent":"white",color:n.type!=="primary"&&n.type!=="secondary"?t:""};return n.to?f(jvt,{to:n.to,theme:{backgroundColor:n.type==="primary"?t:e.$1,color:n.type==="primary"?e.$9:e.$3,borderColor:n.type==="primary"?"transparent":e.$5},className:St(`border inline-flex items-center space-x-2 px-4 justify-center rounded text-sm ${n.className} disabled:cursor-not-allowed disabled:opacity-75`,{"py-2 px-4":n.type!=="minimal","w-full":n.variant==="block","p-0 m-0":n.type==="minimal"}),style:i,children:n.disabled?f(Vo,{variant:"light"}):n.children}):f(Uvt,{type:n.behavior,disabled:n.disabled,theme:{backgroundColor:n.type==="primary"?t:e.$1,color:n.type==="primary"?e.$9:e.$3,borderColor:n.type==="primary"?"transparent":e.$5},className:St(`border inline-flex items-center space-x-2 px-4 justify-center rounded text-sm ${n.className} disabled:cursor-not-allowed disabled:opacity-75`,{"py-2 px-4":n.type!=="minimal","w-full":n.variant==="block","p-0 m-0":n.type==="minimal"}),style:i,onClick:n.onClick,children:n.disabled&&!n.disableWithoutIcon?f(Vo,{variant:"light"}):n.children})}const qvt=Ea.input` background-color: ${n=>n.theme.backgroundColor}; `;function Nh(n){const e=Vn();return N("div",{className:"relative flex items-start",children:[f("div",{className:"flex items-center h-5",children:f(qvt,{theme:{backgroundColor:e.$2},ref:n.innerRef,value:n.value,id:n.id,"aria-describedby":"comments-description",type:"checkbox",className:St("h-4 w-4 rounded cursor-pointer disabled:opacity-50",n.className),style:{borderColor:e.$5},onChange:t=>{n.onChange&&n.onChange(t),n.onValueChange&&n.onValueChange(t.target.value,t.target.checked)},checked:n.checked,disabled:n.disabled,"data-cy":n.cypressRef})}),f("div",{className:"ml-3 text-sm",children:f("label",{htmlFor:n.id,className:"font-medium cursor-pointer",style:{color:e.$3},children:n.label})})]})}function Kvt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function pk(n){var e=Kvt();return function(){var i=Pp(n),r;if(e){var o=Pp(this).constructor;r=Reflect.construct(i,arguments,o)}else r=i.apply(this,arguments);return M2(this,r)}}var Jh="top",Fp="bottom",Bp="right",ef="left",Hhe="auto",p3=[Jh,Fp,Bp,ef],mD="start",OP="end",Gvt="clippingParents",v5e="viewport",gR="popper",Yvt="reference",Pwe=p3.reduce(function(n,e){return n.concat([e+"-"+mD,e+"-"+OP])},[]),b5e=[].concat(p3,[Hhe]).reduce(function(n,e){return n.concat([e,e+"-"+mD,e+"-"+OP])},[]),Qvt="beforeRead",Xvt="read",Zvt="afterRead",Jvt="beforeMain",ebt="main",tbt="afterMain",nbt="beforeWrite",ibt="write",rbt="afterWrite",obt=[Qvt,Xvt,Zvt,Jvt,ebt,tbt,nbt,ibt,rbt];function eb(n){return n?(n.nodeName||"").toLowerCase():null}function yg(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var e=n.ownerDocument;return e&&e.defaultView||window}return n}function mx(n){var e=yg(n).Element;return n instanceof e||n instanceof Element}function Ep(n){var e=yg(n).HTMLElement;return n instanceof e||n instanceof HTMLElement}function Whe(n){if(typeof ShadowRoot>"u")return!1;var e=yg(n).ShadowRoot;return n instanceof e||n instanceof ShadowRoot}function sbt(n){var e=n.state;Object.keys(e.elements).forEach(function(t){var i=e.styles[t]||{},r=e.attributes[t]||{},o=e.elements[t];!Ep(o)||!eb(o)||(Object.assign(o.style,i),Object.keys(r).forEach(function(s){var a=r[s];a===!1?o.removeAttribute(s):o.setAttribute(s,a===!0?"":a)}))})}function abt(n){var e=n.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(i){var r=e.elements[i],o=e.attributes[i]||{},s=Object.keys(e.styles.hasOwnProperty(i)?e.styles[i]:t[i]),a=s.reduce(function(l,c){return l[c]="",l},{});!Ep(r)||!eb(r)||(Object.assign(r.style,a),Object.keys(o).forEach(function(l){r.removeAttribute(l)}))})}}const zhe={name:"applyStyles",enabled:!0,phase:"write",fn:sbt,effect:abt,requires:["computeStyles"]};function qv(n){return n.split("-")[0]}var HE=Math.max,s7=Math.min,_D=Math.round;function sne(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function y5e(){return!/^((?!chrome|android).)*safari/i.test(sne())}function vD(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var i=n.getBoundingClientRect(),r=1,o=1;e&&Ep(n)&&(r=n.offsetWidth>0&&_D(i.width)/n.offsetWidth||1,o=n.offsetHeight>0&&_D(i.height)/n.offsetHeight||1);var s=mx(n)?yg(n):window,a=s.visualViewport,l=!y5e()&&t,c=(i.left+(l&&a?a.offsetLeft:0))/r,u=(i.top+(l&&a?a.offsetTop:0))/o,d=i.width/r,h=i.height/o;return{width:d,height:h,top:u,right:c+d,bottom:u+h,left:c,x:c,y:u}}function jhe(n){var e=vD(n),t=n.offsetWidth,i=n.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:n.offsetLeft,y:n.offsetTop,width:t,height:i}}function C5e(n,e){var t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&Whe(t)){var i=e;do{if(i&&n.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function h0(n){return yg(n).getComputedStyle(n)}function lbt(n){return["table","td","th"].indexOf(eb(n))>=0}function Mw(n){return((mx(n)?n.ownerDocument:n.document)||window.document).documentElement}function Dz(n){return eb(n)==="html"?n:n.assignedSlot||n.parentNode||(Whe(n)?n.host:null)||Mw(n)}function Mwe(n){return!Ep(n)||h0(n).position==="fixed"?null:n.offsetParent}function cbt(n){var e=/firefox/i.test(sne()),t=/Trident/i.test(sne());if(t&&Ep(n)){var i=h0(n);if(i.position==="fixed")return null}var r=Dz(n);for(Whe(r)&&(r=r.host);Ep(r)&&["html","body"].indexOf(eb(r))<0;){var o=h0(r);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none")return r;r=r.parentNode}return null}function m3(n){for(var e=yg(n),t=Mwe(n);t&&lbt(t)&&h0(t).position==="static";)t=Mwe(t);return t&&(eb(t)==="html"||eb(t)==="body"&&h0(t).position==="static")?e:t||cbt(n)||e}function Uhe(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function oO(n,e,t){return HE(n,s7(e,t))}function ubt(n,e,t){var i=oO(n,e,t);return i>t?t:i}function w5e(){return{top:0,right:0,bottom:0,left:0}}function S5e(n){return Object.assign({},w5e(),n)}function E5e(n,e){return e.reduce(function(t,i){return t[i]=n,t},{})}var dbt=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,S5e(typeof e!="number"?e:E5e(e,p3))};function hbt(n){var e,t=n.state,i=n.name,r=n.options,o=t.elements.arrow,s=t.modifiersData.popperOffsets,a=qv(t.placement),l=Uhe(a),c=[ef,Bp].indexOf(a)>=0,u=c?"height":"width";if(!(!o||!s)){var d=dbt(r.padding,t),h=jhe(o),g=l==="y"?Jh:ef,p=l==="y"?Fp:Bp,m=t.rects.reference[u]+t.rects.reference[l]-s[l]-t.rects.popper[u],_=s[l]-t.rects.reference[l],v=m3(o),b=v?l==="y"?v.clientHeight||0:v.clientWidth||0:0,y=m/2-_/2,C=d[g],x=b-h[u]-d[p],k=b/2-h[u]/2+y,I=oO(C,k,x),L=l;t.modifiersData[i]=(e={},e[L]=I,e.centerOffset=I-k,e)}}function fbt(n){var e=n.state,t=n.options,i=t.element,r=i===void 0?"[data-popper-arrow]":i;r!=null&&(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r)||C5e(e.elements.popper,r)&&(e.elements.arrow=r))}const gbt={name:"arrow",enabled:!0,phase:"main",fn:hbt,effect:fbt,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function bD(n){return n.split("-")[1]}var pbt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mbt(n,e){var t=n.x,i=n.y,r=e.devicePixelRatio||1;return{x:_D(t*r)/r||0,y:_D(i*r)/r||0}}function Fwe(n){var e,t=n.popper,i=n.popperRect,r=n.placement,o=n.variation,s=n.offsets,a=n.position,l=n.gpuAcceleration,c=n.adaptive,u=n.roundOffsets,d=n.isFixed,h=s.x,g=h===void 0?0:h,p=s.y,m=p===void 0?0:p,_=typeof u=="function"?u({x:g,y:m}):{x:g,y:m};g=_.x,m=_.y;var v=s.hasOwnProperty("x"),b=s.hasOwnProperty("y"),y=ef,C=Jh,x=window;if(c){var k=m3(t),I="clientHeight",L="clientWidth";if(k===yg(t)&&(k=Mw(t),h0(k).position!=="static"&&a==="absolute"&&(I="scrollHeight",L="scrollWidth")),k=k,r===Jh||(r===ef||r===Bp)&&o===OP){C=Fp;var D=d&&k===x&&x.visualViewport?x.visualViewport.height:k[I];m-=D-i.height,m*=l?1:-1}if(r===ef||(r===Jh||r===Fp)&&o===OP){y=Bp;var R=d&&k===x&&x.visualViewport?x.visualViewport.width:k[L];g-=R-i.width,g*=l?1:-1}}var P=Object.assign({position:a},c&&pbt),M=u===!0?mbt({x:g,y:m},yg(t)):{x:g,y:m};if(g=M.x,m=M.y,l){var O;return Object.assign({},P,(O={},O[C]=b?"0":"",O[y]=v?"0":"",O.transform=(x.devicePixelRatio||1)<=1?"translate("+g+"px, "+m+"px)":"translate3d("+g+"px, "+m+"px, 0)",O))}return Object.assign({},P,(e={},e[C]=b?m+"px":"",e[y]=v?g+"px":"",e.transform="",e))}function _bt(n){var e=n.state,t=n.options,i=t.gpuAcceleration,r=i===void 0?!0:i,o=t.adaptive,s=o===void 0?!0:o,a=t.roundOffsets,l=a===void 0?!0:a,c={placement:qv(e.placement),variation:bD(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Fwe(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Fwe(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const vbt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:_bt,data:{}};var h6={passive:!0};function bbt(n){var e=n.state,t=n.instance,i=n.options,r=i.scroll,o=r===void 0?!0:r,s=i.resize,a=s===void 0?!0:s,l=yg(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",t.update,h6)}),a&&l.addEventListener("resize",t.update,h6),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",t.update,h6)}),a&&l.removeEventListener("resize",t.update,h6)}}const ybt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:bbt,data:{}};var Cbt={left:"right",right:"left",bottom:"top",top:"bottom"};function r8(n){return n.replace(/left|right|bottom|top/g,function(e){return Cbt[e]})}var wbt={start:"end",end:"start"};function Bwe(n){return n.replace(/start|end/g,function(e){return wbt[e]})}function qhe(n){var e=yg(n),t=e.pageXOffset,i=e.pageYOffset;return{scrollLeft:t,scrollTop:i}}function Khe(n){return vD(Mw(n)).left+qhe(n).scrollLeft}function Sbt(n,e){var t=yg(n),i=Mw(n),r=t.visualViewport,o=i.clientWidth,s=i.clientHeight,a=0,l=0;if(r){o=r.width,s=r.height;var c=y5e();(c||!c&&e==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}return{width:o,height:s,x:a+Khe(n),y:l}}function Ebt(n){var e,t=Mw(n),i=qhe(n),r=(e=n.ownerDocument)==null?void 0:e.body,o=HE(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=HE(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-i.scrollLeft+Khe(n),l=-i.scrollTop;return h0(r||t).direction==="rtl"&&(a+=HE(t.clientWidth,r?r.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}function Ghe(n){var e=h0(n),t=e.overflow,i=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+r+i)}function x5e(n){return["html","body","#document"].indexOf(eb(n))>=0?n.ownerDocument.body:Ep(n)&&Ghe(n)?n:x5e(Dz(n))}function sO(n,e){var t;e===void 0&&(e=[]);var i=x5e(n),r=i===((t=n.ownerDocument)==null?void 0:t.body),o=yg(i),s=r?[o].concat(o.visualViewport||[],Ghe(i)?i:[]):i,a=e.concat(s);return r?a:a.concat(sO(Dz(s)))}function ane(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function xbt(n,e){var t=vD(n,!1,e==="fixed");return t.top=t.top+n.clientTop,t.left=t.left+n.clientLeft,t.bottom=t.top+n.clientHeight,t.right=t.left+n.clientWidth,t.width=n.clientWidth,t.height=n.clientHeight,t.x=t.left,t.y=t.top,t}function $we(n,e,t){return e===v5e?ane(Sbt(n,t)):mx(e)?xbt(e,t):ane(Ebt(Mw(n)))}function kbt(n){var e=sO(Dz(n)),t=["absolute","fixed"].indexOf(h0(n).position)>=0,i=t&&Ep(n)?m3(n):n;return mx(i)?e.filter(function(r){return mx(r)&&C5e(r,i)&&eb(r)!=="body"}):[]}function Tbt(n,e,t,i){var r=e==="clippingParents"?kbt(n):[].concat(e),o=[].concat(r,[t]),s=o[0],a=o.reduce(function(l,c){var u=$we(n,c,i);return l.top=HE(u.top,l.top),l.right=s7(u.right,l.right),l.bottom=s7(u.bottom,l.bottom),l.left=HE(u.left,l.left),l},$we(n,s,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function k5e(n){var e=n.reference,t=n.element,i=n.placement,r=i?qv(i):null,o=i?bD(i):null,s=e.x+e.width/2-t.width/2,a=e.y+e.height/2-t.height/2,l;switch(r){case Jh:l={x:s,y:e.y-t.height};break;case Fp:l={x:s,y:e.y+e.height};break;case Bp:l={x:e.x+e.width,y:a};break;case ef:l={x:e.x-t.width,y:a};break;default:l={x:e.x,y:e.y}}var c=r?Uhe(r):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case mD:l[c]=l[c]-(e[u]/2-t[u]/2);break;case OP:l[c]=l[c]+(e[u]/2-t[u]/2);break}}return l}function PP(n,e){e===void 0&&(e={});var t=e,i=t.placement,r=i===void 0?n.placement:i,o=t.strategy,s=o===void 0?n.strategy:o,a=t.boundary,l=a===void 0?Gvt:a,c=t.rootBoundary,u=c===void 0?v5e:c,d=t.elementContext,h=d===void 0?gR:d,g=t.altBoundary,p=g===void 0?!1:g,m=t.padding,_=m===void 0?0:m,v=S5e(typeof _!="number"?_:E5e(_,p3)),b=h===gR?Yvt:gR,y=n.rects.popper,C=n.elements[p?b:h],x=Tbt(mx(C)?C:C.contextElement||Mw(n.elements.popper),l,u,s),k=vD(n.elements.reference),I=k5e({reference:k,element:y,strategy:"absolute",placement:r}),L=ane(Object.assign({},y,I)),D=h===gR?L:k,R={top:x.top-D.top+v.top,bottom:D.bottom-x.bottom+v.bottom,left:x.left-D.left+v.left,right:D.right-x.right+v.right},P=n.modifiersData.offset;if(h===gR&&P){var M=P[r];Object.keys(R).forEach(function(O){var B=[Bp,Fp].indexOf(O)>=0?1:-1,F=[Jh,Fp].indexOf(O)>=0?"y":"x";R[O]+=M[F]*B})}return R}function Ibt(n,e){e===void 0&&(e={});var t=e,i=t.placement,r=t.boundary,o=t.rootBoundary,s=t.padding,a=t.flipVariations,l=t.allowedAutoPlacements,c=l===void 0?b5e:l,u=bD(i),d=u?a?Pwe:Pwe.filter(function(p){return bD(p)===u}):p3,h=d.filter(function(p){return c.indexOf(p)>=0});h.length===0&&(h=d);var g=h.reduce(function(p,m){return p[m]=PP(n,{placement:m,boundary:r,rootBoundary:o,padding:s})[qv(m)],p},{});return Object.keys(g).sort(function(p,m){return g[p]-g[m]})}function Lbt(n){if(qv(n)===Hhe)return[];var e=r8(n);return[Bwe(n),e,Bwe(e)]}function Dbt(n){var e=n.state,t=n.options,i=n.name;if(!e.modifiersData[i]._skip){for(var r=t.mainAxis,o=r===void 0?!0:r,s=t.altAxis,a=s===void 0?!0:s,l=t.fallbackPlacements,c=t.padding,u=t.boundary,d=t.rootBoundary,h=t.altBoundary,g=t.flipVariations,p=g===void 0?!0:g,m=t.allowedAutoPlacements,_=e.options.placement,v=qv(_),b=v===_,y=l||(b||!p?[r8(_)]:Lbt(_)),C=[_].concat(y).reduce(function(xe,_e){return xe.concat(qv(_e)===Hhe?Ibt(e,{placement:_e,boundary:u,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:m}):_e)},[]),x=e.rects.reference,k=e.rects.popper,I=new Map,L=!0,D=C[0],R=0;R=0,F=B?"width":"height",H=PP(e,{placement:P,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),V=B?O?Bp:ef:O?Fp:Jh;x[F]>k[F]&&(V=r8(V));var $=r8(V),j=[];if(o&&j.push(H[M]<=0),a&&j.push(H[V]<=0,H[$]<=0),j.every(function(xe){return xe})){D=P,L=!1;break}I.set(P,j)}if(L)for(var Y=p?3:1,ne=function(_e){var Ie=C.find(function(Re){var Ye=I.get(Re);if(Ye)return Ye.slice(0,_e).every(function(Ze){return Ze})});if(Ie)return D=Ie,"break"},se=Y;se>0;se--){var he=ne(se);if(he==="break")break}e.placement!==D&&(e.modifiersData[i]._skip=!0,e.placement=D,e.reset=!0)}}const Abt={name:"flip",enabled:!0,phase:"main",fn:Dbt,requiresIfExists:["offset"],data:{_skip:!1}};function Vwe(n,e,t){return t===void 0&&(t={x:0,y:0}),{top:n.top-e.height-t.y,right:n.right-e.width+t.x,bottom:n.bottom-e.height+t.y,left:n.left-e.width-t.x}}function Hwe(n){return[Jh,Bp,Fp,ef].some(function(e){return n[e]>=0})}function Rbt(n){var e=n.state,t=n.name,i=e.rects.reference,r=e.rects.popper,o=e.modifiersData.preventOverflow,s=PP(e,{elementContext:"reference"}),a=PP(e,{altBoundary:!0}),l=Vwe(s,i),c=Vwe(a,r,o),u=Hwe(l),d=Hwe(c);e.modifiersData[t]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const Nbt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Rbt};function Obt(n,e,t){var i=qv(n),r=[ef,Jh].indexOf(i)>=0?-1:1,o=typeof t=="function"?t(Object.assign({},e,{placement:n})):t,s=o[0],a=o[1];return s=s||0,a=(a||0)*r,[ef,Bp].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}function Pbt(n){var e=n.state,t=n.options,i=n.name,r=t.offset,o=r===void 0?[0,0]:r,s=b5e.reduce(function(u,d){return u[d]=Obt(d,e.rects,o),u},{}),a=s[e.placement],l=a.x,c=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[i]=s}const Mbt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Pbt};function Fbt(n){var e=n.state,t=n.name;e.modifiersData[t]=k5e({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const Bbt={name:"popperOffsets",enabled:!0,phase:"read",fn:Fbt,data:{}};function $bt(n){return n==="x"?"y":"x"}function Vbt(n){var e=n.state,t=n.options,i=n.name,r=t.mainAxis,o=r===void 0?!0:r,s=t.altAxis,a=s===void 0?!1:s,l=t.boundary,c=t.rootBoundary,u=t.altBoundary,d=t.padding,h=t.tether,g=h===void 0?!0:h,p=t.tetherOffset,m=p===void 0?0:p,_=PP(e,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),v=qv(e.placement),b=bD(e.placement),y=!b,C=Uhe(v),x=$bt(C),k=e.modifiersData.popperOffsets,I=e.rects.reference,L=e.rects.popper,D=typeof m=="function"?m(Object.assign({},e.rects,{placement:e.placement})):m,R=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),P=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,M={x:0,y:0};if(k){if(o){var O,B=C==="y"?Jh:ef,F=C==="y"?Fp:Bp,H=C==="y"?"height":"width",V=k[C],$=V+_[B],j=V-_[F],Y=g?-L[H]/2:0,ne=b===mD?I[H]:L[H],se=b===mD?-L[H]:-I[H],he=e.elements.arrow,xe=g&&he?jhe(he):{width:0,height:0},_e=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:w5e(),Ie=_e[B],Re=_e[F],Ye=oO(0,I[H],xe[H]),Ze=y?I[H]/2-Y-Ye-Ie-R.mainAxis:ne-Ye-Ie-R.mainAxis,tt=y?-I[H]/2+Y+Ye+Re+R.mainAxis:se+Ye+Re+R.mainAxis,Be=e.elements.arrow&&m3(e.elements.arrow),kt=Be?C==="y"?Be.clientTop||0:Be.clientLeft||0:0,Vt=(O=P==null?void 0:P[C])!=null?O:0,xt=V+Ze-Vt-kt,Kt=V+tt-Vt,cn=oO(g?s7($,xt):$,V,g?HE(j,Kt):j);k[C]=cn,M[C]=cn-V}if(a){var wn,on=C==="x"?Jh:ef,Zt=C==="x"?Fp:Bp,pe=k[x],me=x==="y"?"height":"width",Z=pe+_[on],G=pe-_[Zt],K=[Jh,ef].indexOf(v)!==-1,oe=(wn=P==null?void 0:P[x])!=null?wn:0,le=K?Z:pe-I[me]-L[me]-oe+R.altAxis,we=K?pe+I[me]+L[me]-oe-R.altAxis:G,Me=g&&K?ubt(le,pe,we):oO(g?le:Z,pe,g?we:G);k[x]=Me,M[x]=Me-pe}e.modifiersData[i]=M}}const Hbt={name:"preventOverflow",enabled:!0,phase:"main",fn:Vbt,requiresIfExists:["offset"]};function Wbt(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function zbt(n){return n===yg(n)||!Ep(n)?qhe(n):Wbt(n)}function jbt(n){var e=n.getBoundingClientRect(),t=_D(e.width)/n.offsetWidth||1,i=_D(e.height)/n.offsetHeight||1;return t!==1||i!==1}function Ubt(n,e,t){t===void 0&&(t=!1);var i=Ep(e),r=Ep(e)&&jbt(e),o=Mw(e),s=vD(n,r,t),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!t)&&((eb(e)!=="body"||Ghe(o))&&(a=zbt(e)),Ep(e)?(l=vD(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):o&&(l.x=Khe(o))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function qbt(n){var e=new Map,t=new Set,i=[];n.forEach(function(o){e.set(o.name,o)});function r(o){t.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(a){if(!t.has(a)){var l=e.get(a);l&&r(l)}}),i.push(o)}return n.forEach(function(o){t.has(o.name)||r(o)}),i}function Kbt(n){var e=qbt(n);return obt.reduce(function(t,i){return t.concat(e.filter(function(r){return r.phase===i}))},[])}function Gbt(n){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(n())})})),e}}function Ybt(n){var e=n.reduce(function(t,i){var r=t[i.name];return t[i.name]=r?Object.assign({},r,i,{options:Object.assign({},r.options,i.options),data:Object.assign({},r.data,i.data)}):i,t},{});return Object.keys(e).map(function(t){return e[t]})}var Wwe={placement:"bottom",modifiers:[],strategy:"absolute"};function zwe(){for(var n=arguments.length,e=new Array(n),t=0;tt(!1)})})]})})})})}var byt=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function yyt(n){var e=n.defaultInputValue,t=e===void 0?"":e,i=n.defaultMenuIsOpen,r=i===void 0?!1:i,o=n.defaultValue,s=o===void 0?null:o,a=n.inputValue,l=n.menuIsOpen,c=n.onChange,u=n.onInputChange,d=n.onMenuClose,h=n.onMenuOpen,g=n.value,p=uu(n,byt),m=w.useState(a!==void 0?a:t),_=$t(m,2),v=_[0],b=_[1],y=w.useState(l!==void 0?l:r),C=$t(y,2),x=C[0],k=C[1],I=w.useState(g!==void 0?g:s),L=$t(I,2),D=L[0],R=L[1],P=w.useCallback(function($,j){typeof c=="function"&&c($,j),R($)},[c]),M=w.useCallback(function($,j){var Y;typeof u=="function"&&(Y=u($,j)),b(Y!==void 0?Y:$)},[u]),O=w.useCallback(function(){typeof h=="function"&&h(),k(!0)},[h]),B=w.useCallback(function(){typeof d=="function"&&d(),k(!1)},[d]),F=a!==void 0?a:v,H=l!==void 0?l:x,V=g!==void 0?g:D;return Qe(Qe({},p),{},{inputValue:F,menuIsOpen:H,onChange:P,onInputChange:M,onMenuClose:B,onMenuOpen:O,value:V})}function Cyt(n){if(Array.isArray(n))return Hee(n)}function wyt(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ir(n){return Cyt(n)||GMe(n)||dde(n)||wyt()}function Syt(n){if(n.sheet)return n.sheet;for(var e=0;e0?Tu(G2,--sf):0,CD--,lc===10&&(CD=1,Oz--),lc}function cg(){return lc=sf2||FP(lc)>3?"":" "}function Myt(n,e){for(;--e&&cg()&&!(lc<48||lc>102||lc>57&&lc<65||lc>70&&lc<97););return v3(n,o8()+(e<6&&Kv()==32&&cg()==32))}function cne(n){for(;cg();)switch(lc){case n:return sf;case 34:case 39:n!==34&&n!==39&&cne(lc);break;case 40:n===41&&cne(n);break;case 92:cg();break}return sf}function Fyt(n,e){for(;cg()&&n+lc!==47+10;)if(n+lc===42+42&&Kv()===47)break;return"/*"+v3(e,sf-1)+"*"+Nz(n===47?n:cg())}function Byt(n){for(;!FP(Kv());)cg();return v3(n,sf)}function H5e(n){return V5e(a8("",null,null,null,[""],n=$5e(n),0,[0],n))}function a8(n,e,t,i,r,o,s,a,l){for(var c=0,u=0,d=s,h=0,g=0,p=0,m=1,_=1,v=1,b=0,y="",C=r,x=o,k=i,I=y;_;)switch(p=b,b=cg()){case 40:if(p!=108&&Tu(I,d-1)==58){lne(I+=ss(s8(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:I+=s8(b);break;case 9:case 10:case 13:case 32:I+=Pyt(p);break;case 92:I+=Myt(o8()-1,7);continue;case 47:switch(Kv()){case 42:case 47:f6($yt(Fyt(cg(),o8()),e,t),l);break;default:I+="/"}break;case 123*m:a[c++]=sv(I)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:_=0;case 59+u:v==-1&&(I=ss(I,/\f/g,"")),g>0&&sv(I)-d&&f6(g>32?Kwe(I+";",i,t,d-1):Kwe(ss(I," ","")+";",i,t,d-2),l);break;case 59:I+=";";default:if(f6(k=qwe(I,e,t,c,u,r,a,y,C=[],x=[],d),o),b===123)if(u===0)a8(I,e,k,k,C,o,d,a,x);else switch(h===99&&Tu(I,3)===110?100:h){case 100:case 108:case 109:case 115:a8(n,k,k,i&&f6(qwe(n,k,k,0,0,r,a,y,r,C=[],d),x),r,x,d,a,i?C:x);break;default:a8(I,k,k,k,[""],x,0,a,x)}}c=u=g=0,m=v=1,y=I="",d=s;break;case 58:d=1+sv(I),g=p;default:if(m<1){if(b==123)--m;else if(b==125&&m++==0&&Oyt()==125)continue}switch(I+=Nz(b),b*m){case 38:v=u>0?1:(I+="\f",-1);break;case 44:a[c++]=(sv(I)-1)*v,v=1;break;case 64:Kv()===45&&(I+=s8(cg())),h=Kv(),u=d=sv(y=I+=Byt(o8())),b++;break;case 45:p===45&&sv(I)==2&&(m=0)}}return o}function qwe(n,e,t,i,r,o,s,a,l,c,u){for(var d=r-1,h=r===0?o:[""],g=ofe(h),p=0,m=0,_=0;p0?h[v]+" "+b:ss(b,/&\f/g,h[v])))&&(l[_++]=y);return Pz(n,e,t,r===0?ife:a,l,c,u)}function $yt(n,e,t){return Pz(n,e,t,P5e,Nz(Nyt()),MP(n,2,-2),0)}function Kwe(n,e,t,i){return Pz(n,e,t,rfe,MP(n,0,i),MP(n,i+1,-1),i)}function WE(n,e){for(var t="",i=ofe(n),r=0;r6)switch(Tu(n,e+1)){case 109:if(Tu(n,e+4)!==45)break;case 102:return ss(n,/(.+:)(.+)-([^]+)/,"$1"+os+"$2-$3$1"+c7+(Tu(n,e+3)==108?"$3":"$2-$3"))+n;case 115:return~lne(n,"stretch")?z5e(ss(n,"stretch","fill-available"),e)+n:n}break;case 4949:if(Tu(n,e+1)!==115)break;case 6444:switch(Tu(n,sv(n)-3-(~lne(n,"!important")&&10))){case 107:return ss(n,":",":"+os)+n;case 101:return ss(n,/(.+:)([^;!]+)(;|!.+)?/,"$1"+os+(Tu(n,14)===45?"inline-":"")+"box$3$1"+os+"$2$3$1"+ud+"$2box$3")+n}break;case 5936:switch(Tu(n,e+11)){case 114:return os+n+ud+ss(n,/[svh]\w+-[tblr]{2}/,"tb")+n;case 108:return os+n+ud+ss(n,/[svh]\w+-[tblr]{2}/,"tb-rl")+n;case 45:return os+n+ud+ss(n,/[svh]\w+-[tblr]{2}/,"lr")+n}return os+n+ud+n+n}return n}var Kyt=function(e,t,i,r){if(e.length>-1&&!e.return)switch(e.type){case rfe:e.return=z5e(e.value,e.length);break;case M5e:return WE([pR(e,{value:ss(e.value,"@","@"+os)})],r);case ife:if(e.length)return Ryt(e.props,function(o){switch(Ayt(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return WE([pR(e,{props:[ss(o,/:(read-\w+)/,":"+c7+"$1")]})],r);case"::placeholder":return WE([pR(e,{props:[ss(o,/:(plac\w+)/,":"+os+"input-$1")]}),pR(e,{props:[ss(o,/:(plac\w+)/,":"+c7+"$1")]}),pR(e,{props:[ss(o,/:(plac\w+)/,ud+"input-$1")]})],r)}return""})}},Gyt=[Kyt],Yyt=function(e){var t=e.key;if(t==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(m){var _=m.getAttribute("data-emotion");_.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var r=e.stylisPlugins||Gyt,o={},s,a=[];s=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var _=m.getAttribute("data-emotion").split(" "),v=1;v<_.length;v++)o[_[v]]=!0;a.push(m)});var l,c=[Uyt,qyt];{var u,d=[W5e,Hyt(function(m){u.insert(m)})],h=Vyt(c.concat(r,d)),g=function(_){return WE(H5e(_),h)};l=function(_,v,b,y){u=b,g(_?_+"{"+v.styles+"}":v.styles),y&&(p.inserted[v.name]=!0)}}var p={key:t,sheet:new xyt({key:t,container:s,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:l};return p.sheet.hydrate(a),p},Qyt=!0;function Xyt(n,e,t){var i="";return t.split(" ").forEach(function(r){n[r]!==void 0?e.push(n[r]+";"):i+=r+" "}),i}var j5e=function(e,t,i){var r=e.key+"-"+t.name;(i===!1||Qyt===!1)&&e.registered[r]===void 0&&(e.registered[r]=t.styles)},Zyt=function(e,t,i){j5e(e,t,i);var r=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var o=t;do e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};function Jyt(n){for(var e=0,t,i=0,r=n.length;r>=4;++i,r-=4)t=n.charCodeAt(i)&255|(n.charCodeAt(++i)&255)<<8|(n.charCodeAt(++i)&255)<<16|(n.charCodeAt(++i)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,e=(t&65535)*1540483477+((t>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(r){case 3:e^=(n.charCodeAt(i+2)&255)<<16;case 2:e^=(n.charCodeAt(i+1)&255)<<8;case 1:e^=n.charCodeAt(i)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var e0t=/[A-Z]|^ms/g,t0t=/_EMO_([^_]+?)_([^]*?)_EMO_/g,U5e=function(e){return e.charCodeAt(1)===45},Ywe=function(e){return e!=null&&typeof e!="boolean"},JY=V_t(function(n){return U5e(n)?n:n.replace(e0t,"-$&").toLowerCase()}),Qwe=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(t0t,function(i,r,o){return av={name:r,styles:o,next:av},r})}return i5e[e]!==1&&!U5e(e)&&typeof t=="number"&&t!==0?t+"px":t};function BP(n,e,t){if(t==null)return"";if(t.__emotion_styles!==void 0)return t;switch(typeof t){case"boolean":return"";case"object":{if(t.anim===1)return av={name:t.name,styles:t.styles,next:av},t.name;if(t.styles!==void 0){var i=t.next;if(i!==void 0)for(;i!==void 0;)av={name:i.name,styles:i.styles,next:av},i=i.next;var r=t.styles+";";return r}return n0t(n,e,t)}case"function":{if(n!==void 0){var o=av,s=t(n);return av=o,BP(n,e,s)}break}}if(e==null)return t;var a=e[t];return a!==void 0?a:t}function n0t(n,e,t){var i="";if(Array.isArray(t))for(var r=0;r({x:n,y:n});function m0t(n){return{...n,top:n.y,left:n.x,right:n.x+n.width,bottom:n.y+n.height}}function G5e(n){return Q5e(n)?(n.nodeName||"").toLowerCase():"#document"}function c_(n){var e;return(n==null||(e=n.ownerDocument)==null?void 0:e.defaultView)||window}function Y5e(n){var e;return(e=(Q5e(n)?n.ownerDocument:n.document)||window.document)==null?void 0:e.documentElement}function Q5e(n){return n instanceof Node||n instanceof c_(n).Node}function dne(n){return n instanceof Element||n instanceof c_(n).Element}function lfe(n){return n instanceof HTMLElement||n instanceof c_(n).HTMLElement}function Zwe(n){return typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof c_(n).ShadowRoot}function X5e(n){const{overflow:e,overflowX:t,overflowY:i,display:r}=cfe(n);return/auto|scroll|overlay|hidden|clip/.test(e+i+t)&&!["inline","contents"].includes(r)}function _0t(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function v0t(n){return["html","body","#document"].includes(G5e(n))}function cfe(n){return c_(n).getComputedStyle(n)}function b0t(n){if(G5e(n)==="html")return n;const e=n.assignedSlot||n.parentNode||Zwe(n)&&n.host||Y5e(n);return Zwe(e)?e.host:e}function Z5e(n){const e=b0t(n);return v0t(e)?n.ownerDocument?n.ownerDocument.body:n.body:lfe(e)&&X5e(e)?e:Z5e(e)}function h7(n,e,t){var i;e===void 0&&(e=[]),t===void 0&&(t=!0);const r=Z5e(n),o=r===((i=n.ownerDocument)==null?void 0:i.body),s=c_(r);return o?e.concat(s,s.visualViewport||[],X5e(r)?r:[],s.frameElement&&t?h7(s.frameElement):[]):e.concat(r,h7(r,[],t))}function y0t(n){const e=cfe(n);let t=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=lfe(n),o=r?n.offsetWidth:t,s=r?n.offsetHeight:i,a=u7(t)!==o||u7(i)!==s;return a&&(t=o,i=s),{width:t,height:i,$:a}}function ufe(n){return dne(n)?n:n.contextElement}function eQ(n){const e=ufe(n);if(!lfe(e))return d7(1);const t=e.getBoundingClientRect(),{width:i,height:r,$:o}=y0t(e);let s=(o?u7(t.width):t.width)/i,a=(o?u7(t.height):t.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const C0t=d7(0);function w0t(n){const e=c_(n);return!_0t()||!e.visualViewport?C0t:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function S0t(n,e,t){return e===void 0&&(e=!1),!t||e&&t!==c_(n)?!1:e}function Jwe(n,e,t,i){e===void 0&&(e=!1),t===void 0&&(t=!1);const r=n.getBoundingClientRect(),o=ufe(n);let s=d7(1);e&&(i?dne(i)&&(s=eQ(i)):s=eQ(n));const a=S0t(o,t,i)?w0t(o):d7(0);let l=(r.left+a.x)/s.x,c=(r.top+a.y)/s.y,u=r.width/s.x,d=r.height/s.y;if(o){const h=c_(o),g=i&&dne(i)?c_(i):i;let p=h.frameElement;for(;p&&i&&g!==h;){const m=eQ(p),_=p.getBoundingClientRect(),v=cfe(p),b=_.left+(p.clientLeft+parseFloat(v.paddingLeft))*m.x,y=_.top+(p.clientTop+parseFloat(v.paddingTop))*m.y;l*=m.x,c*=m.y,u*=m.x,d*=m.y,l+=b,c+=y,p=c_(p).frameElement}}return m0t({width:u,height:d,x:l,y:c})}function E0t(n,e){let t=null,i;const r=Y5e(n);function o(){clearTimeout(i),t&&t.disconnect(),t=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();const{left:c,top:u,width:d,height:h}=n.getBoundingClientRect();if(a||e(),!d||!h)return;const g=g6(u),p=g6(r.clientWidth-(c+d)),m=g6(r.clientHeight-(u+h)),_=g6(c),b={rootMargin:-g+"px "+-p+"px "+-m+"px "+-_+"px",threshold:p0t(0,g0t(1,l))||1};let y=!0;function C(x){const k=x[0].intersectionRatio;if(k!==l){if(!y)return s();k?s(!1,k):i=setTimeout(()=>{s(!1,1e-7)},100)}y=!1}try{t=new IntersectionObserver(C,{...b,root:r.ownerDocument})}catch{t=new IntersectionObserver(C,b)}t.observe(n)}return s(!0),o}function x0t(n,e,t,i){i===void 0&&(i={});const{ancestorScroll:r=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=i,c=ufe(n),u=r||o?[...c?h7(c):[],...h7(e)]:[];u.forEach(v=>{r&&v.addEventListener("scroll",t,{passive:!0}),o&&v.addEventListener("resize",t)});const d=c&&a?E0t(c,t):null;let h=-1,g=null;s&&(g=new ResizeObserver(v=>{let[b]=v;b&&b.target===c&&g&&(g.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{g&&g.observe(e)})),t()}),c&&!l&&g.observe(c),g.observe(e));let p,m=l?Jwe(n):null;l&&_();function _(){const v=Jwe(n);m&&(v.x!==m.x||v.y!==m.y||v.width!==m.width||v.height!==m.height)&&t(),m=v,p=requestAnimationFrame(_)}return t(),()=>{u.forEach(v=>{r&&v.removeEventListener("scroll",t),o&&v.removeEventListener("resize",t)}),d&&d(),g&&g.disconnect(),g=null,l&&cancelAnimationFrame(p)}}var hne=w.useLayoutEffect,k0t=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],f7=function(){};function T0t(n,e){return e?e[0]==="-"?n+e:n+"__"+e:n}function I0t(n,e){for(var t=arguments.length,i=new Array(t>2?t-2:0),r=2;r-1}function L0t(n){return Mz(n)?window.innerHeight:n.clientHeight}function eFe(n){return Mz(n)?window.pageYOffset:n.scrollTop}function g7(n,e){if(Mz(n)){window.scrollTo(0,e);return}n.scrollTop=e}function D0t(n){var e=getComputedStyle(n),t=e.position==="absolute",i=/(auto|scroll)/;if(e.position==="fixed")return document.documentElement;for(var r=n;r=r.parentElement;)if(e=getComputedStyle(r),!(t&&e.position==="static")&&i.test(e.overflow+e.overflowY+e.overflowX))return r;return document.documentElement}function A0t(n,e,t,i){return t*((n=n/i-1)*n*n+1)+e}function p6(n,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:f7,r=eFe(n),o=e-r,s=10,a=0;function l(){a+=s;var c=A0t(a,r,o,t);g7(n,c),at.bottom?g7(n,Math.min(e.offsetTop+e.clientHeight-n.offsetHeight+r,n.scrollHeight)):i.top-r1?t-1:0),r=1;r=p)return{placement:"bottom",maxHeight:e};if(D>=p&&!s)return o&&p6(l,R,M),{placement:"bottom",maxHeight:e};if(!s&&D>=i||s&&I>=i){o&&p6(l,R,M);var O=s?I-C:D-C;return{placement:"bottom",maxHeight:O}}if(r==="auto"||s){var B=e,F=s?k:L;return F>=i&&(B=Math.min(F-C-a,e)),{placement:"top",maxHeight:B}}if(r==="bottom")return o&&g7(l,R),{placement:"bottom",maxHeight:e};break;case"top":if(k>=p)return{placement:"top",maxHeight:e};if(L>=p&&!s)return o&&p6(l,P,M),{placement:"top",maxHeight:e};if(!s&&L>=i||s&&k>=i){var H=e;return(!s&&L>=i||s&&k>=i)&&(H=s?k-x:L-x),o&&p6(l,P,M),{placement:"top",maxHeight:H}}return{placement:"bottom",maxHeight:e};default:throw new Error('Invalid placement provided "'.concat(r,'".'))}return c}function W0t(n){var e={bottom:"top",top:"bottom"};return n?e[n]:"bottom"}var nFe=function(e){return e==="auto"?"bottom":e},z0t=function(e,t){var i,r=e.placement,o=e.theme,s=o.borderRadius,a=o.spacing,l=o.colors;return Qe((i={label:"menu"},$e(i,W0t(r),"100%"),$e(i,"position","absolute"),$e(i,"width","100%"),$e(i,"zIndex",1),i),t?{}:{backgroundColor:l.neutral0,borderRadius:s,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},iFe=w.createContext(null),j0t=function(e){var t=e.children,i=e.minMenuHeight,r=e.maxMenuHeight,o=e.menuPlacement,s=e.menuPosition,a=e.menuShouldScrollIntoView,l=e.theme,c=w.useContext(iFe)||{},u=c.setPortalPlacement,d=w.useRef(null),h=w.useState(r),g=$t(h,2),p=g[0],m=g[1],_=w.useState(null),v=$t(_,2),b=v[0],y=v[1],C=l.spacing.controlHeight;return hne(function(){var x=d.current;if(x){var k=s==="fixed",I=a&&!k,L=H0t({maxHeight:r,menuEl:x,minHeight:i,placement:o,shouldScroll:I,isFixedPosition:k,controlHeight:C});m(L.maxHeight),y(L.placement),u==null||u(L.placement)}},[r,o,s,a,i,u,C]),t({ref:d,placerProps:Qe(Qe({},e),{},{placement:b||nFe(o),maxHeight:p})})},U0t=function(e){var t=e.children,i=e.innerRef,r=e.innerProps;return ir("div",rt({},wl(e,"menu",{menu:!0}),{ref:i},r),t)},q0t=U0t,K0t=function(e,t){var i=e.maxHeight,r=e.theme.spacing.baseUnit;return Qe({maxHeight:i,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},G0t=function(e){var t=e.children,i=e.innerProps,r=e.innerRef,o=e.isMulti;return ir("div",rt({},wl(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},i),t)},rFe=function(e,t){var i=e.theme,r=i.spacing.baseUnit,o=i.colors;return Qe({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(r*2,"px ").concat(r*3,"px")})},Y0t=rFe,Q0t=rFe,X0t=function(e){var t=e.children,i=t===void 0?"No options":t,r=e.innerProps,o=uu(e,$0t);return ir("div",rt({},wl(Qe(Qe({},o),{},{children:i,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),i)},Z0t=function(e){var t=e.children,i=t===void 0?"Loading...":t,r=e.innerProps,o=uu(e,V0t);return ir("div",rt({},wl(Qe(Qe({},o),{},{children:i,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),i)},J0t=function(e){var t=e.rect,i=e.offset,r=e.position;return{left:t.left,position:r,top:i,width:t.width,zIndex:1}},e1t=function(e){var t=e.appendTo,i=e.children,r=e.controlElement,o=e.innerProps,s=e.menuPlacement,a=e.menuPosition,l=w.useRef(null),c=w.useRef(null),u=w.useState(nFe(s)),d=$t(u,2),h=d[0],g=d[1],p=w.useMemo(function(){return{setPortalPlacement:g}},[]),m=w.useState(null),_=$t(m,2),v=_[0],b=_[1],y=w.useCallback(function(){if(r){var I=R0t(r),L=a==="fixed"?0:window.pageYOffset,D=I[h]+L;(D!==(v==null?void 0:v.offset)||I.left!==(v==null?void 0:v.rect.left)||I.width!==(v==null?void 0:v.rect.width))&&b({offset:D,rect:I})}},[r,a,h,v==null?void 0:v.offset,v==null?void 0:v.rect.left,v==null?void 0:v.rect.width]);hne(function(){y()},[y]);var C=w.useCallback(function(){typeof c.current=="function"&&(c.current(),c.current=null),r&&l.current&&(c.current=x0t(r,l.current,y,{elementResize:"ResizeObserver"in window}))},[r,y]);hne(function(){C()},[C]);var x=w.useCallback(function(I){l.current=I,C()},[C]);if(!t&&a!=="fixed"||!v)return null;var k=ir("div",rt({ref:x},wl(Qe(Qe({},e),{},{offset:v.offset,position:a,rect:v.rect}),"menuPortal",{"menu-portal":!0}),o),i);return ir(iFe.Provider,{value:p},t?Yp.createPortal(k,t):k)},t1t=function(e){var t=e.isDisabled,i=e.isRtl;return{label:"container",direction:i?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},n1t=function(e){var t=e.children,i=e.innerProps,r=e.isDisabled,o=e.isRtl;return ir("div",rt({},wl(e,"container",{"--is-disabled":r,"--is-rtl":o}),i),t)},i1t=function(e,t){var i=e.theme.spacing,r=e.isMulti,o=e.hasValue,s=e.selectProps.controlShouldRenderValue;return Qe({alignItems:"center",display:r&&o&&s?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(i.baseUnit/2,"px ").concat(i.baseUnit*2,"px")})},r1t=function(e){var t=e.children,i=e.innerProps,r=e.isMulti,o=e.hasValue;return ir("div",rt({},wl(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),i),t)},o1t=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},s1t=function(e){var t=e.children,i=e.innerProps;return ir("div",rt({},wl(e,"indicatorsContainer",{indicators:!0}),i),t)},iSe,a1t=["size"],l1t=["innerProps","isRtl","size"],c1t={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},oFe=function(e){var t=e.size,i=uu(e,a1t);return ir("svg",rt({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:c1t},i))},dfe=function(e){return ir(oFe,rt({size:20},e),ir("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},sFe=function(e){return ir(oFe,rt({size:20},e),ir("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},aFe=function(e,t){var i=e.isFocused,r=e.theme,o=r.spacing.baseUnit,s=r.colors;return Qe({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:i?s.neutral60:s.neutral20,padding:o*2,":hover":{color:i?s.neutral80:s.neutral40}})},u1t=aFe,d1t=function(e){var t=e.children,i=e.innerProps;return ir("div",rt({},wl(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),i),t||ir(sFe,null))},h1t=aFe,f1t=function(e){var t=e.children,i=e.innerProps;return ir("div",rt({},wl(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),i),t||ir(dfe,null))},g1t=function(e,t){var i=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,s=r.colors;return Qe({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:i?s.neutral10:s.neutral20,marginBottom:o*2,marginTop:o*2})},p1t=function(e){var t=e.innerProps;return ir("span",rt({},t,wl(e,"indicatorSeparator",{"indicator-separator":!0})))},m1t=h0t(iSe||(iSe=f0t([` 0%, 80%, 100% { opacity: 0; } 40% { opacity: 1; } `]))),_1t=function(e,t){var i=e.isFocused,r=e.size,o=e.theme,s=o.colors,a=o.spacing.baseUnit;return Qe({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:i?s.neutral60:s.neutral20,padding:a*2})},tQ=function(e){var t=e.delay,i=e.offset;return ir("span",{css:afe({animation:"".concat(m1t," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:i?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},v1t=function(e){var t=e.innerProps,i=e.isRtl,r=e.size,o=r===void 0?4:r,s=uu(e,l1t);return ir("div",rt({},wl(Qe(Qe({},s),{},{innerProps:t,isRtl:i,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),ir(tQ,{delay:0,offset:i}),ir(tQ,{delay:160,offset:!0}),ir(tQ,{delay:320,offset:!i}))},b1t=function(e,t){var i=e.isDisabled,r=e.isFocused,o=e.theme,s=o.colors,a=o.borderRadius,l=o.spacing;return Qe({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:i?s.neutral5:s.neutral0,borderColor:i?s.neutral10:r?s.primary:s.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(s.primary):void 0,"&:hover":{borderColor:r?s.primary:s.neutral30}})},y1t=function(e){var t=e.children,i=e.isDisabled,r=e.isFocused,o=e.innerRef,s=e.innerProps,a=e.menuIsOpen;return ir("div",rt({ref:o},wl(e,"control",{control:!0,"control--is-disabled":i,"control--is-focused":r,"control--menu-is-open":a}),s,{"aria-disabled":i||void 0}),t)},C1t=y1t,w1t=["data"],S1t=function(e,t){var i=e.theme.spacing;return t?{}:{paddingBottom:i.baseUnit*2,paddingTop:i.baseUnit*2}},E1t=function(e){var t=e.children,i=e.cx,r=e.getStyles,o=e.getClassNames,s=e.Heading,a=e.headingProps,l=e.innerProps,c=e.label,u=e.theme,d=e.selectProps;return ir("div",rt({},wl(e,"group",{group:!0}),l),ir(s,rt({},a,{selectProps:d,theme:u,getStyles:r,getClassNames:o,cx:i}),c),ir("div",null,t))},x1t=function(e,t){var i=e.theme,r=i.colors,o=i.spacing;return Qe({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},k1t=function(e){var t=J5e(e);t.data;var i=uu(t,w1t);return ir("div",rt({},wl(e,"groupHeading",{"group-heading":!0}),i))},T1t=E1t,I1t=["innerRef","isDisabled","isHidden","inputClassName"],L1t=function(e,t){var i=e.isDisabled,r=e.value,o=e.theme,s=o.spacing,a=o.colors;return Qe(Qe({visibility:i?"hidden":"visible",transform:r?"translateZ(0)":""},D1t),t?{}:{margin:s.baseUnit/2,paddingBottom:s.baseUnit/2,paddingTop:s.baseUnit/2,color:a.neutral80})},lFe={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},D1t={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Qe({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},lFe)},A1t=function(e){return Qe({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},lFe)},R1t=function(e){var t=e.cx,i=e.value,r=J5e(e),o=r.innerRef,s=r.isDisabled,a=r.isHidden,l=r.inputClassName,c=uu(r,I1t);return ir("div",rt({},wl(e,"input",{"input-container":!0}),{"data-value":i||""}),ir("input",rt({className:t({input:!0},l),ref:o,style:A1t(a),disabled:s},c)))},N1t=R1t,O1t=function(e,t){var i=e.theme,r=i.spacing,o=i.borderRadius,s=i.colors;return Qe({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:s.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},P1t=function(e,t){var i=e.theme,r=i.borderRadius,o=i.colors,s=e.cropWithEllipsis;return Qe({overflow:"hidden",textOverflow:s||s===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},M1t=function(e,t){var i=e.theme,r=i.spacing,o=i.borderRadius,s=i.colors,a=e.isFocused;return Qe({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:a?s.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:s.dangerLight,color:s.danger}})},cFe=function(e){var t=e.children,i=e.innerProps;return ir("div",i,t)},F1t=cFe,B1t=cFe;function $1t(n){var e=n.children,t=n.innerProps;return ir("div",rt({role:"button"},t),e||ir(dfe,{size:14}))}var V1t=function(e){var t=e.children,i=e.components,r=e.data,o=e.innerProps,s=e.isDisabled,a=e.removeProps,l=e.selectProps,c=i.Container,u=i.Label,d=i.Remove;return ir(c,{data:r,innerProps:Qe(Qe({},wl(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":s})),o),selectProps:l},ir(u,{data:r,innerProps:Qe({},wl(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},t),ir(d,{data:r,innerProps:Qe(Qe({},wl(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:l}))},H1t=V1t,W1t=function(e,t){var i=e.isDisabled,r=e.isFocused,o=e.isSelected,s=e.theme,a=s.spacing,l=s.colors;return Qe({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?l.primary:r?l.primary25:"transparent",color:i?l.neutral20:o?l.neutral0:"inherit",padding:"".concat(a.baseUnit*2,"px ").concat(a.baseUnit*3,"px"),":active":{backgroundColor:i?void 0:o?l.primary:l.primary50}})},z1t=function(e){var t=e.children,i=e.isDisabled,r=e.isFocused,o=e.isSelected,s=e.innerRef,a=e.innerProps;return ir("div",rt({},wl(e,"option",{option:!0,"option--is-disabled":i,"option--is-focused":r,"option--is-selected":o}),{ref:s,"aria-disabled":i},a),t)},j1t=z1t,U1t=function(e,t){var i=e.theme,r=i.spacing,o=i.colors;return Qe({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},q1t=function(e){var t=e.children,i=e.innerProps;return ir("div",rt({},wl(e,"placeholder",{placeholder:!0}),i),t)},K1t=q1t,G1t=function(e,t){var i=e.isDisabled,r=e.theme,o=r.spacing,s=r.colors;return Qe({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:i?s.neutral40:s.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},Y1t=function(e){var t=e.children,i=e.isDisabled,r=e.innerProps;return ir("div",rt({},wl(e,"singleValue",{"single-value":!0,"single-value--is-disabled":i}),r),t)},Q1t=Y1t,X1t={ClearIndicator:f1t,Control:C1t,DropdownIndicator:d1t,DownChevron:sFe,CrossIcon:dfe,Group:T1t,GroupHeading:k1t,IndicatorsContainer:s1t,IndicatorSeparator:p1t,Input:N1t,LoadingIndicator:v1t,Menu:q0t,MenuList:G0t,MenuPortal:e1t,LoadingMessage:Z0t,NoOptionsMessage:X0t,MultiValue:H1t,MultiValueContainer:F1t,MultiValueLabel:B1t,MultiValueRemove:$1t,Option:j1t,Placeholder:K1t,SelectContainer:n1t,SingleValue:Q1t,ValueContainer:r1t},Z1t=function(e){return Qe(Qe({},X1t),e.components)},rSe=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function J1t(n,e){return!!(n===e||rSe(n)&&rSe(e))}function eCt(n,e){if(n.length!==e.length)return!1;for(var t=0;t1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return s?"option ".concat(r," is disabled. Select another option."):"option ".concat(r,", selected.");default:return""}},onFocus:function(e){var t=e.context,i=e.focused,r=e.options,o=e.label,s=o===void 0?"":o,a=e.selectValue,l=e.isDisabled,c=e.isSelected,u=function(p,m){return p&&p.length?"".concat(p.indexOf(m)+1," of ").concat(p.length):""};if(t==="value"&&a)return"value ".concat(s," focused, ").concat(u(a,i),".");if(t==="menu"){var d=l?" disabled":"",h="".concat(c?"selected":"focused").concat(d);return"option ".concat(s," ").concat(h,", ").concat(u(r,i),".")}return""},onFilter:function(e){var t=e.inputValue,i=e.resultsMessage;return"".concat(i).concat(t?" for search term "+t:"",".")}},rCt=function(e){var t=e.ariaSelection,i=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,s=e.isFocused,a=e.selectValue,l=e.selectProps,c=e.id,u=l.ariaLiveMessages,d=l.getOptionLabel,h=l.inputValue,g=l.isMulti,p=l.isOptionDisabled,m=l.isSearchable,_=l.menuIsOpen,v=l.options,b=l.screenReaderStatus,y=l.tabSelectsValue,C=l["aria-label"],x=l["aria-live"],k=w.useMemo(function(){return Qe(Qe({},iCt),u||{})},[u]),I=w.useMemo(function(){var B="";if(t&&k.onChange){var F=t.option,H=t.options,V=t.removedValue,$=t.removedValues,j=t.value,Y=function(Re){return Array.isArray(Re)?null:Re},ne=V||F||Y(j),se=ne?d(ne):"",he=H||$||void 0,xe=he?he.map(d):[],_e=Qe({isDisabled:ne&&p(ne,a),label:se,labels:xe},t);B=k.onChange(_e)}return B},[t,k,p,a,d]),L=w.useMemo(function(){var B="",F=i||r,H=!!(i&&a&&a.includes(i));if(F&&k.onFocus){var V={focused:F,label:d(F),isDisabled:p(F,a),isSelected:H,options:o,context:F===i?"menu":"value",selectValue:a};B=k.onFocus(V)}return B},[i,r,d,p,k,o,a]),D=w.useMemo(function(){var B="";if(_&&v.length&&k.onFilter){var F=b({count:o.length});B=k.onFilter({inputValue:h,resultsMessage:F})}return B},[o,h,_,k,v,b]),R=w.useMemo(function(){var B="";if(k.guidance){var F=r?"value":_?"menu":"input";B=k.guidance({"aria-label":C,context:F,isDisabled:i&&p(i,a),isMulti:g,isSearchable:m,tabSelectsValue:y})}return B},[C,i,r,g,p,m,_,k,a,y]),P="".concat(L," ").concat(D," ").concat(R),M=ir(w.Fragment,null,ir("span",{id:"aria-selection"},I),ir("span",{id:"aria-context"},P)),O=(t==null?void 0:t.action)==="initial-input-focus";return ir(w.Fragment,null,ir(oSe,{id:c},O&&M),ir(oSe,{"aria-live":x,"aria-atomic":"false","aria-relevant":"additions text"},s&&!O&&M))},oCt=rCt,fne=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],sCt=new RegExp("["+fne.map(function(n){return n.letters}).join("")+"]","g"),uFe={};for(var nQ=0;nQ-1}},uCt=["innerRef"];function dCt(n){var e=n.innerRef,t=uu(n,uCt),i=B0t(t,"onExited","in","enter","exit","appear");return ir("input",rt({ref:e},i,{css:afe({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var hCt=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};function fCt(n){var e=n.isEnabled,t=n.onBottomArrive,i=n.onBottomLeave,r=n.onTopArrive,o=n.onTopLeave,s=w.useRef(!1),a=w.useRef(!1),l=w.useRef(0),c=w.useRef(null),u=w.useCallback(function(_,v){if(c.current!==null){var b=c.current,y=b.scrollTop,C=b.scrollHeight,x=b.clientHeight,k=c.current,I=v>0,L=C-x-y,D=!1;L>v&&s.current&&(i&&i(_),s.current=!1),I&&a.current&&(o&&o(_),a.current=!1),I&&v>L?(t&&!s.current&&t(_),k.scrollTop=C,D=!0,s.current=!0):!I&&-v>y&&(r&&!a.current&&r(_),k.scrollTop=0,D=!0,a.current=!0),D&&hCt(_)}},[t,i,r,o]),d=w.useCallback(function(_){u(_,_.deltaY)},[u]),h=w.useCallback(function(_){l.current=_.changedTouches[0].clientY},[]),g=w.useCallback(function(_){var v=l.current-_.changedTouches[0].clientY;u(_,v)},[u]),p=w.useCallback(function(_){if(_){var v=P0t?{passive:!1}:!1;_.addEventListener("wheel",d,v),_.addEventListener("touchstart",h,v),_.addEventListener("touchmove",g,v)}},[g,h,d]),m=w.useCallback(function(_){_&&(_.removeEventListener("wheel",d,!1),_.removeEventListener("touchstart",h,!1),_.removeEventListener("touchmove",g,!1))},[g,h,d]);return w.useEffect(function(){if(e){var _=c.current;return p(_),function(){m(_)}}},[e,p,m]),function(_){c.current=_}}var aSe=["boxSizing","height","overflow","paddingRight","position"],lSe={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function cSe(n){n.preventDefault()}function uSe(n){n.stopPropagation()}function dSe(){var n=this.scrollTop,e=this.scrollHeight,t=n+this.offsetHeight;n===0?this.scrollTop=1:t===e&&(this.scrollTop=n-1)}function hSe(){return"ontouchstart"in window||navigator.maxTouchPoints}var fSe=!!(typeof window<"u"&&window.document&&window.document.createElement),mR=0,vT={capture:!1,passive:!1};function gCt(n){var e=n.isEnabled,t=n.accountForScrollbars,i=t===void 0?!0:t,r=w.useRef({}),o=w.useRef(null),s=w.useCallback(function(l){if(fSe){var c=document.body,u=c&&c.style;if(i&&aSe.forEach(function(p){var m=u&&u[p];r.current[p]=m}),i&&mR<1){var d=parseInt(r.current.paddingRight,10)||0,h=document.body?document.body.clientWidth:0,g=window.innerWidth-h+d||0;Object.keys(lSe).forEach(function(p){var m=lSe[p];u&&(u[p]=m)}),u&&(u.paddingRight="".concat(g,"px"))}c&&hSe()&&(c.addEventListener("touchmove",cSe,vT),l&&(l.addEventListener("touchstart",dSe,vT),l.addEventListener("touchmove",uSe,vT))),mR+=1}},[i]),a=w.useCallback(function(l){if(fSe){var c=document.body,u=c&&c.style;mR=Math.max(mR-1,0),i&&mR<1&&aSe.forEach(function(d){var h=r.current[d];u&&(u[d]=h)}),c&&hSe()&&(c.removeEventListener("touchmove",cSe,vT),l&&(l.removeEventListener("touchstart",dSe,vT),l.removeEventListener("touchmove",uSe,vT)))}},[i]);return w.useEffect(function(){if(e){var l=o.current;return s(l),function(){a(l)}}},[e,s,a]),function(l){o.current=l}}var pCt=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},mCt={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function _Ct(n){var e=n.children,t=n.lockEnabled,i=n.captureEnabled,r=i===void 0?!0:i,o=n.onBottomArrive,s=n.onBottomLeave,a=n.onTopArrive,l=n.onTopLeave,c=fCt({isEnabled:r,onBottomArrive:o,onBottomLeave:s,onTopArrive:a,onTopLeave:l}),u=gCt({isEnabled:t}),d=function(g){c(g),u(g)};return ir(w.Fragment,null,t&&ir("div",{onClick:pCt,css:mCt}),e(d))}var vCt={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},bCt=function(e){var t=e.name,i=e.onFocus;return ir("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:i,css:vCt,value:"",onChange:function(){}})},yCt=bCt,CCt=function(e){return e.label},wCt=function(e){return e.label},SCt=function(e){return e.value},ECt=function(e){return!!e.isDisabled},xCt={clearIndicator:h1t,container:t1t,control:b1t,dropdownIndicator:u1t,group:S1t,groupHeading:x1t,indicatorsContainer:o1t,indicatorSeparator:g1t,input:L1t,loadingIndicator:_1t,loadingMessage:Q0t,menu:z0t,menuList:K0t,menuPortal:J0t,multiValue:O1t,multiValueLabel:P1t,multiValueRemove:M1t,noOptionsMessage:Y0t,option:W1t,placeholder:U1t,singleValue:G1t,valueContainer:i1t},kCt={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},TCt=4,hFe=4,ICt=38,LCt=hFe*2,DCt={baseUnit:hFe,controlHeight:ICt,menuGutter:LCt},oQ={borderRadius:TCt,colors:kCt,spacing:DCt},ACt={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:nSe(),captureMenuScroll:!nSe(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:cCt(),formatGroupLabel:CCt,getOptionLabel:wCt,getOptionValue:SCt,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:ECt,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!N0t(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(t!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function gSe(n,e,t,i){var r=mFe(n,e,t),o=_Fe(n,e,t),s=pFe(n,e),a=p7(n,e);return{type:"option",data:e,isDisabled:r,isSelected:o,label:s,value:a,index:i}}function fFe(n,e){return n.options.map(function(t,i){if("options"in t){var r=t.options.map(function(s,a){return gSe(n,s,e,a)}).filter(function(s){return pSe(n,s)});return r.length>0?{type:"group",data:t,options:r,index:i}:void 0}var o=gSe(n,t,e,i);return pSe(n,o)?o:void 0}).filter(M0t)}function gFe(n){return n.reduce(function(e,t){return t.type==="group"?e.push.apply(e,Ir(t.options.map(function(i){return i.data}))):e.push(t.data),e},[])}function RCt(n,e){return gFe(fFe(n,e))}function pSe(n,e){var t=n.inputValue,i=t===void 0?"":t,r=e.data,o=e.isSelected,s=e.label,a=e.value;return(!bFe(n)||!o)&&vFe(n,{label:s,value:a,data:r},i)}function NCt(n,e){var t=n.focusedValue,i=n.selectValue,r=i.indexOf(t);if(r>-1){var o=e.indexOf(t);if(o>-1)return t;if(r-1?t:e[0]}var pFe=function(e,t){return e.getOptionLabel(t)},p7=function(e,t){return e.getOptionValue(t)};function mFe(n,e,t){return typeof n.isOptionDisabled=="function"?n.isOptionDisabled(e,t):!1}function _Fe(n,e,t){if(t.indexOf(e)>-1)return!0;if(typeof n.isOptionSelected=="function")return n.isOptionSelected(e,t);var i=p7(n,e);return t.some(function(r){return p7(n,r)===i})}function vFe(n,e,t){return n.filterOption?n.filterOption(e,t):!0}var bFe=function(e){var t=e.hideSelectedOptions,i=e.isMulti;return t===void 0?i:t},PCt=1,yFe=function(n){I_(t,n);var e=pk(t);function t(i){var r;if(Ua(this,t),r=e.call(this,i),r.state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.instancePrefix="",r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(a){r.controlRef=a},r.focusedOptionRef=null,r.getFocusedOptionRef=function(a){r.focusedOptionRef=a},r.menuListRef=null,r.getMenuListRef=function(a){r.menuListRef=a},r.inputRef=null,r.getInputRef=function(a){r.inputRef=a},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(a,l){var c=r.props,u=c.onChange,d=c.name;l.name=d,r.ariaOnChange(a,l),u(a,l)},r.setValue=function(a,l,c){var u=r.props,d=u.closeMenuOnSelect,h=u.isMulti,g=u.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:g}),d&&(r.setState({inputIsHiddenAfterUpdate:!h}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(a,{action:l,option:c})},r.selectOption=function(a){var l=r.props,c=l.blurInputOnSelect,u=l.isMulti,d=l.name,h=r.state.selectValue,g=u&&r.isOptionSelected(a,h),p=r.isOptionDisabled(a,h);if(g){var m=r.getOptionValue(a);r.setValue(h.filter(function(_){return r.getOptionValue(_)!==m}),"deselect-option",a)}else if(!p)u?r.setValue([].concat(Ir(h),[a]),"select-option",a):r.setValue(a,"select-option");else{r.ariaOnChange(a,{action:"select-option",option:a,name:d});return}c&&r.blurInput()},r.removeValue=function(a){var l=r.props.isMulti,c=r.state.selectValue,u=r.getOptionValue(a),d=c.filter(function(g){return r.getOptionValue(g)!==u}),h=_6(l,d,d[0]||null);r.onChange(h,{action:"remove-value",removedValue:a}),r.focusInput()},r.clearValue=function(){var a=r.state.selectValue;r.onChange(_6(r.props.isMulti,[],null),{action:"clear",removedValues:a})},r.popValue=function(){var a=r.props.isMulti,l=r.state.selectValue,c=l[l.length-1],u=l.slice(0,l.length-1),d=_6(a,u,u[0]||null);r.onChange(d,{action:"pop-value",removedValue:c})},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var a=arguments.length,l=new Array(a),c=0;ch||d>h}},r.onTouchEnd=function(a){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(a.target)&&r.menuListRef&&!r.menuListRef.contains(a.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(a){r.userIsDragging||r.onControlMouseDown(a)},r.onClearIndicatorTouchEnd=function(a){r.userIsDragging||r.onClearIndicatorMouseDown(a)},r.onDropdownIndicatorTouchEnd=function(a){r.userIsDragging||r.onDropdownIndicatorMouseDown(a)},r.handleInputChange=function(a){var l=r.props.inputValue,c=a.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(c,{action:"input-change",prevInputValue:l}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(a){r.props.onFocus&&r.props.onFocus(a),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(a){var l=r.props.inputValue;if(r.menuListRef&&r.menuListRef.contains(document.activeElement)){r.inputRef.focus();return}r.props.onBlur&&r.props.onBlur(a),r.onInputChange("",{action:"input-blur",prevInputValue:l}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1})},r.onOptionHover=function(a){r.blockOptionHover||r.state.focusedOption===a||r.setState({focusedOption:a})},r.shouldHideSelectedOptions=function(){return bFe(r.props)},r.onValueInputFocus=function(a){a.preventDefault(),a.stopPropagation(),r.focus()},r.onKeyDown=function(a){var l=r.props,c=l.isMulti,u=l.backspaceRemovesValue,d=l.escapeClearsValue,h=l.inputValue,g=l.isClearable,p=l.isDisabled,m=l.menuIsOpen,_=l.onKeyDown,v=l.tabSelectsValue,b=l.openMenuOnFocus,y=r.state,C=y.focusedOption,x=y.focusedValue,k=y.selectValue;if(!p&&!(typeof _=="function"&&(_(a),a.defaultPrevented))){switch(r.blockOptionHover=!0,a.key){case"ArrowLeft":if(!c||h)return;r.focusValue("previous");break;case"ArrowRight":if(!c||h)return;r.focusValue("next");break;case"Delete":case"Backspace":if(h)return;if(x)r.removeValue(x);else{if(!u)return;c?r.popValue():g&&r.clearValue()}break;case"Tab":if(r.isComposing||a.shiftKey||!m||!v||!C||b&&r.isOptionSelected(C,k))return;r.selectOption(C);break;case"Enter":if(a.keyCode===229)break;if(m){if(!C||r.isComposing)return;r.selectOption(C);break}return;case"Escape":m?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:h}),r.onMenuClose()):g&&d&&r.clearValue();break;case" ":if(h)return;if(!m){r.openMenu("first");break}if(!C)return;r.selectOption(C);break;case"ArrowUp":m?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":m?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!m)return;r.focusOption("pageup");break;case"PageDown":if(!m)return;r.focusOption("pagedown");break;case"Home":if(!m)return;r.focusOption("first");break;case"End":if(!m)return;r.focusOption("last");break;default:return}a.preventDefault()}},r.instancePrefix="react-select-"+(r.props.instanceId||++PCt),r.state.selectValue=eSe(i.value),i.menuIsOpen&&r.state.selectValue.length){var o=r.buildFocusableOptions(),s=o.indexOf(r.state.selectValue[0]);r.state.focusedOption=o[s]}return r}return qa(t,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&tSe(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(r){var o=this.props,s=o.isDisabled,a=o.menuIsOpen,l=this.state.isFocused;(l&&!s&&r.isDisabled||l&&a&&!r.menuIsOpen)&&this.focusInput(),l&&s&&!r.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!s&&r.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(tSe(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(r,o){this.props.onInputChange(r,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(r){var o=this,s=this.state,a=s.selectValue,l=s.isFocused,c=this.buildFocusableOptions(),u=r==="first"?0:c.length-1;if(!this.props.isMulti){var d=c.indexOf(a[0]);d>-1&&(u=d)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:c[u]},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(r){var o=this.state,s=o.selectValue,a=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=s.indexOf(a);a||(l=-1);var c=s.length-1,u=-1;if(s.length){switch(r){case"previous":l===0?u=0:l===-1?u=c:u=l-1;break;case"next":l>-1&&l0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,s=this.state.focusedOption,a=this.getFocusableOptions();if(a.length){var l=0,c=a.indexOf(s);s||(c=-1),r==="up"?l=c>0?c-1:a.length-1:r==="down"?l=(c+1)%a.length:r==="pageup"?(l=c-o,l<0&&(l=0)):r==="pagedown"?(l=c+o,l>a.length-1&&(l=a.length-1)):r==="last"&&(l=a.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:a[l],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(oQ):Qe(Qe({},oQ),this.props.theme):oQ}},{key:"getCommonProps",value:function(){var r=this.clearValue,o=this.cx,s=this.getStyles,a=this.getClassNames,l=this.getValue,c=this.selectOption,u=this.setValue,d=this.props,h=d.isMulti,g=d.isRtl,p=d.options,m=this.hasValue();return{clearValue:r,cx:o,getStyles:s,getClassNames:a,getValue:l,hasValue:m,isMulti:h,isRtl:g,options:p,selectOption:c,selectProps:d,setValue:u,theme:this.getTheme()}}},{key:"hasValue",value:function(){var r=this.state.selectValue;return r.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var r=this.props,o=r.isClearable,s=r.isMulti;return o===void 0?s:o}},{key:"isOptionDisabled",value:function(r,o){return mFe(this.props,r,o)}},{key:"isOptionSelected",value:function(r,o){return _Fe(this.props,r,o)}},{key:"filterOption",value:function(r,o){return vFe(this.props,r,o)}},{key:"formatOptionLabel",value:function(r,o){if(typeof this.props.formatOptionLabel=="function"){var s=this.props.inputValue,a=this.state.selectValue;return this.props.formatOptionLabel(r,{context:o,inputValue:s,selectValue:a})}else return this.getOptionLabel(r)}},{key:"formatGroupLabel",value:function(r){return this.props.formatGroupLabel(r)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var r=this.props,o=r.isDisabled,s=r.isSearchable,a=r.inputId,l=r.inputValue,c=r.tabIndex,u=r.form,d=r.menuIsOpen,h=r.required,g=this.getComponents(),p=g.Input,m=this.state,_=m.inputIsHidden,v=m.ariaSelection,b=this.commonProps,y=a||this.getElementId("input"),C=Qe(Qe(Qe({"aria-autocomplete":"list","aria-expanded":d,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":h,role:"combobox"},d&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!s&&{"aria-readonly":!0}),this.hasValue()?(v==null?void 0:v.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return s?w.createElement(p,rt({},b,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:y,innerRef:this.getInputRef,isDisabled:o,isHidden:_,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:c,form:u,type:"text",value:l},C)):w.createElement(dCt,rt({id:y,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:f7,onFocus:this.onInputFocus,disabled:o,tabIndex:c,inputMode:"none",form:u,value:""},C))}},{key:"renderPlaceholderOrValue",value:function(){var r=this,o=this.getComponents(),s=o.MultiValue,a=o.MultiValueContainer,l=o.MultiValueLabel,c=o.MultiValueRemove,u=o.SingleValue,d=o.Placeholder,h=this.commonProps,g=this.props,p=g.controlShouldRenderValue,m=g.isDisabled,_=g.isMulti,v=g.inputValue,b=g.placeholder,y=this.state,C=y.selectValue,x=y.focusedValue,k=y.isFocused;if(!this.hasValue()||!p)return v?null:w.createElement(d,rt({},h,{key:"placeholder",isDisabled:m,isFocused:k,innerProps:{id:this.getElementId("placeholder")}}),b);if(_)return C.map(function(L,D){var R=L===x,P="".concat(r.getOptionLabel(L),"-").concat(r.getOptionValue(L));return w.createElement(s,rt({},h,{components:{Container:a,Label:l,Remove:c},isFocused:R,isDisabled:m,key:P,index:D,removeProps:{onClick:function(){return r.removeValue(L)},onTouchEnd:function(){return r.removeValue(L)},onMouseDown:function(O){O.preventDefault()}},data:L}),r.formatOptionLabel(L,"value"))});if(v)return null;var I=C[0];return w.createElement(u,rt({},h,{data:I,isDisabled:m}),this.formatOptionLabel(I,"value"))}},{key:"renderClearIndicator",value:function(){var r=this.getComponents(),o=r.ClearIndicator,s=this.commonProps,a=this.props,l=a.isDisabled,c=a.isLoading,u=this.state.isFocused;if(!this.isClearable()||!o||l||!this.hasValue()||c)return null;var d={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return w.createElement(o,rt({},s,{innerProps:d,isFocused:u}))}},{key:"renderLoadingIndicator",value:function(){var r=this.getComponents(),o=r.LoadingIndicator,s=this.commonProps,a=this.props,l=a.isDisabled,c=a.isLoading,u=this.state.isFocused;if(!o||!c)return null;var d={"aria-hidden":"true"};return w.createElement(o,rt({},s,{innerProps:d,isDisabled:l,isFocused:u}))}},{key:"renderIndicatorSeparator",value:function(){var r=this.getComponents(),o=r.DropdownIndicator,s=r.IndicatorSeparator;if(!o||!s)return null;var a=this.commonProps,l=this.props.isDisabled,c=this.state.isFocused;return w.createElement(s,rt({},a,{isDisabled:l,isFocused:c}))}},{key:"renderDropdownIndicator",value:function(){var r=this.getComponents(),o=r.DropdownIndicator;if(!o)return null;var s=this.commonProps,a=this.props.isDisabled,l=this.state.isFocused,c={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return w.createElement(o,rt({},s,{innerProps:c,isDisabled:a,isFocused:l}))}},{key:"renderMenu",value:function(){var r=this,o=this.getComponents(),s=o.Group,a=o.GroupHeading,l=o.Menu,c=o.MenuList,u=o.MenuPortal,d=o.LoadingMessage,h=o.NoOptionsMessage,g=o.Option,p=this.commonProps,m=this.state.focusedOption,_=this.props,v=_.captureMenuScroll,b=_.inputValue,y=_.isLoading,C=_.loadingMessage,x=_.minMenuHeight,k=_.maxMenuHeight,I=_.menuIsOpen,L=_.menuPlacement,D=_.menuPosition,R=_.menuPortalTarget,P=_.menuShouldBlockScroll,M=_.menuShouldScrollIntoView,O=_.noOptionsMessage,B=_.onMenuScrollToTop,F=_.onMenuScrollToBottom;if(!I)return null;var H=function(he,xe){var _e=he.type,Ie=he.data,Re=he.isDisabled,Ye=he.isSelected,Ze=he.label,tt=he.value,Be=m===Ie,kt=Re?void 0:function(){return r.onOptionHover(Ie)},Vt=Re?void 0:function(){return r.selectOption(Ie)},xt="".concat(r.getElementId("option"),"-").concat(xe),Kt={id:xt,onClick:Vt,onMouseMove:kt,onMouseOver:kt,tabIndex:-1};return w.createElement(g,rt({},p,{innerProps:Kt,data:Ie,isDisabled:Re,isSelected:Ye,key:xt,label:Ze,type:_e,value:tt,isFocused:Be,innerRef:Be?r.getFocusedOptionRef:void 0}),r.formatOptionLabel(he.data,"menu"))},V;if(this.hasOptions())V=this.getCategorizedOptions().map(function(se){if(se.type==="group"){var he=se.data,xe=se.options,_e=se.index,Ie="".concat(r.getElementId("group"),"-").concat(_e),Re="".concat(Ie,"-heading");return w.createElement(s,rt({},p,{key:Ie,data:he,options:xe,Heading:a,headingProps:{id:Re,data:se.data},label:r.formatGroupLabel(se.data)}),se.options.map(function(Ye){return H(Ye,"".concat(_e,"-").concat(Ye.index))}))}else if(se.type==="option")return H(se,"".concat(se.index))});else if(y){var $=C({inputValue:b});if($===null)return null;V=w.createElement(d,p,$)}else{var j=O({inputValue:b});if(j===null)return null;V=w.createElement(h,p,j)}var Y={minMenuHeight:x,maxMenuHeight:k,menuPlacement:L,menuPosition:D,menuShouldScrollIntoView:M},ne=w.createElement(j0t,rt({},p,Y),function(se){var he=se.ref,xe=se.placerProps,_e=xe.placement,Ie=xe.maxHeight;return w.createElement(l,rt({},p,Y,{innerRef:he,innerProps:{onMouseDown:r.onMenuMouseDown,onMouseMove:r.onMenuMouseMove,id:r.getElementId("listbox")},isLoading:y,placement:_e}),w.createElement(_Ct,{captureEnabled:v,onTopArrive:B,onBottomArrive:F,lockEnabled:P},function(Re){return w.createElement(c,rt({},p,{innerRef:function(Ze){r.getMenuListRef(Ze),Re(Ze)},isLoading:y,maxHeight:Ie,focusedOption:m}),V)}))});return R||D==="fixed"?w.createElement(u,rt({},p,{appendTo:R,controlElement:this.controlRef,menuPlacement:L,menuPosition:D}),ne):ne}},{key:"renderFormField",value:function(){var r=this,o=this.props,s=o.delimiter,a=o.isDisabled,l=o.isMulti,c=o.name,u=o.required,d=this.state.selectValue;if(u&&!this.hasValue()&&!a)return w.createElement(yCt,{name:c,onFocus:this.onValueInputFocus});if(!(!c||a))if(l)if(s){var h=d.map(function(m){return r.getOptionValue(m)}).join(s);return w.createElement("input",{name:c,type:"hidden",value:h})}else{var g=d.length>0?d.map(function(m,_){return w.createElement("input",{key:"i-".concat(_),name:c,type:"hidden",value:r.getOptionValue(m)})}):w.createElement("input",{name:c,type:"hidden",value:""});return w.createElement("div",null,g)}else{var p=d[0]?this.getOptionValue(d[0]):"";return w.createElement("input",{name:c,type:"hidden",value:p})}}},{key:"renderLiveRegion",value:function(){var r=this.commonProps,o=this.state,s=o.ariaSelection,a=o.focusedOption,l=o.focusedValue,c=o.isFocused,u=o.selectValue,d=this.getFocusableOptions();return w.createElement(oCt,rt({},r,{id:this.getElementId("live-region"),ariaSelection:s,focusedOption:a,focusedValue:l,isFocused:c,selectValue:u,focusableOptions:d}))}},{key:"render",value:function(){var r=this.getComponents(),o=r.Control,s=r.IndicatorsContainer,a=r.SelectContainer,l=r.ValueContainer,c=this.props,u=c.className,d=c.id,h=c.isDisabled,g=c.menuIsOpen,p=this.state.isFocused,m=this.commonProps=this.getCommonProps();return w.createElement(a,rt({},m,{className:u,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:h,isFocused:p}),this.renderLiveRegion(),w.createElement(o,rt({},m,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:h,isFocused:p,menuIsOpen:g}),w.createElement(l,rt({},m,{isDisabled:h}),this.renderPlaceholderOrValue(),this.renderInput()),w.createElement(s,rt({},m,{isDisabled:h}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(r,o){var s=o.prevProps,a=o.clearFocusValueOnUpdate,l=o.inputIsHiddenAfterUpdate,c=o.ariaSelection,u=o.isFocused,d=o.prevWasFocused,h=r.options,g=r.value,p=r.menuIsOpen,m=r.inputValue,_=r.isMulti,v=eSe(g),b={};if(s&&(g!==s.value||h!==s.options||p!==s.menuIsOpen||m!==s.inputValue)){var y=p?RCt(r,v):[],C=a?NCt(o,v):null,x=OCt(o,y);b={selectValue:v,focusedOption:x,focusedValue:C,clearFocusValueOnUpdate:!1}}var k=l!=null&&r!==s?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},I=c,L=u&&d;return u&&!L&&(I={value:_6(_,v,v[0]||null),options:v,action:"initial-input-focus"},L=!d),(c==null?void 0:c.action)==="initial-input-focus"&&(I=null),Qe(Qe(Qe({},b),k),{},{prevProps:r,ariaSelection:I,prevWasFocused:L})}}]),t}(w.Component);yFe.defaultProps=ACt;var MCt=w.forwardRef(function(n,e){var t=yyt(n);return w.createElement(yFe,rt({ref:e},t))}),b_=MCt;function nn(n){const e=Vn(),{blankOptionValue:t,withBlank:i,children:r,value:o,defaultValue:s,customSelector:a,onValueChange:l,className:c,disabled:u,cypressRef:d}=n,h=f("option",{value:t??""}),g=te.Children.map([i?h:[],r],v=>w.isValidElement(v)&&{label:Array.isArray(v.props.children)?v.props.children.join(""):v.props.children,value:v.props.value}),p=g==null?void 0:g.find(v=>v.value===o),m=g==null?void 0:g.find(v=>v.value===s),_={input:v=>({...v,color:e.$3}),singleValue:v=>({...v,color:e.$3}),menu:v=>({...v,width:"max-content",minWidth:"100%",backgroundColor:e.$4,borderColor:e.$4}),control:(v,{isDisabled:b})=>({...v,borderRadius:"3px",backgroundColor:e.$1,color:e.$3,borderColor:e.$5,cursor:b?"not-allowed":"pointer",pointerEvents:b?"auto":"unset"}),option:(v,{isSelected:b,isFocused:y})=>({...v,display:"flex",alignItems:"center",color:e.$3,backgroundColor:b||y?e.$7:e.$1,":hover":{backgroundColor:e.$7},minHeight:"1.875rem"})};return N("div",{className:St({"space-y-2":!!a}),children:[n.label&&N($p,{className:"mb-2",for:n.id,children:[n.label,n.required&&f("span",{className:"ml-1 text-red-600",children:"*"})]}),a?f(b_,{className:c,options:g,defaultValue:m,value:p,onChange:v=>v===null?l==null?void 0:l(t??""):l==null?void 0:l(v.value),isDisabled:u,styles:_,isSearchable:!1,isClearable:!0,"data-cy":d}):N("select",{onChange:v=>{n.onValueChange&&n.onValueChange(v.target.value),n.onChange&&n.onChange(v)},id:n.id,className:St(`w-full py-2 rounded text-sm border disabled:cursor-not-allowed ${n.className}`),defaultValue:n.defaultValue,value:n.value,ref:n.innerRef,disabled:n.disabled,style:{backgroundColor:e.$1,borderColor:e.$5,color:e.$3,...n.style},"data-cy":n.cypressRef,children:[n.withBlank&&f("option",{value:n.blankOptionValue??""}),n.children]}),n.errorMessage&&f(bs,{className:"mt-2",type:"danger",children:n.errorMessage})]})}const FCt=po(null);var Fz={},BCt="Expected a function",mSe=0/0,$Ct="[object Symbol]",VCt=/^\s+|\s+$/g,HCt=/^[-+]0x[0-9a-f]+$/i,WCt=/^0b[01]+$/i,zCt=/^0o[0-7]+$/i,jCt=parseInt,UCt=typeof Co=="object"&&Co&&Co.Object===Object&&Co,qCt=typeof self=="object"&&self&&self.Object===Object&&self,KCt=UCt||qCt||Function("return this")(),GCt=Object.prototype,YCt=GCt.toString,QCt=Math.max,XCt=Math.min,sQ=function(){return KCt.Date.now()};function ZCt(n,e,t){var i,r,o,s,a,l,c=0,u=!1,d=!1,h=!0;if(typeof n!="function")throw new TypeError(BCt);e=_Se(e)||0,gne(t)&&(u=!!t.leading,d="maxWait"in t,o=d?QCt(_Se(t.maxWait)||0,e):o,h="trailing"in t?!!t.trailing:h);function g(k){var I=i,L=r;return i=r=void 0,c=k,s=n.apply(L,I),s}function p(k){return c=k,a=setTimeout(v,e),u?g(k):s}function m(k){var I=k-l,L=k-c,D=e-I;return d?XCt(D,o-L):D}function _(k){var I=k-l,L=k-c;return l===void 0||I>=e||I<0||d&&L>=o}function v(){var k=sQ();if(_(k))return b(k);a=setTimeout(v,m(k))}function b(k){return a=void 0,h&&i?g(k):(i=r=void 0,s)}function y(){a!==void 0&&clearTimeout(a),c=0,i=l=r=a=void 0}function C(){return a===void 0?s:b(sQ())}function x(){var k=sQ(),I=_(k);if(i=arguments,r=this,l=k,I){if(a===void 0)return p(l);if(d)return a=setTimeout(v,e),g(l)}return a===void 0&&(a=setTimeout(v,e)),s}return x.cancel=y,x.flush=C,x}function gne(n){var e=typeof n;return!!n&&(e=="object"||e=="function")}function JCt(n){return!!n&&typeof n=="object"}function ewt(n){return typeof n=="symbol"||JCt(n)&&YCt.call(n)==$Ct}function _Se(n){if(typeof n=="number")return n;if(ewt(n))return mSe;if(gne(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=gne(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=n.replace(VCt,"");var t=WCt.test(n);return t||zCt.test(n)?jCt(n.slice(2),t?2:8):HCt.test(n)?mSe:+n}var twt=ZCt;function pne(n){"@babel/helpers - typeof";return pne=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pne(n)}Object.defineProperty(Fz,"__esModule",{value:!0});Fz.DebounceInput=void 0;var vSe=CFe(w),nwt=CFe(twt),iwt=["element","onChange","value","minLength","debounceTimeout","forceNotifyByEnter","forceNotifyOnBlur","onKeyDown","onBlur","inputRef"];function CFe(n){return n&&n.__esModule?n:{default:n}}function rwt(n,e){if(n==null)return{};var t=owt(n,e),i,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(t[i]=n[i])}return t}function owt(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,o;for(o=0;o=0)&&(t[r]=n[r]);return t}function bSe(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,i)}return t}function Yg(n){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function m7(n){return m7=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},m7(n)}function y1(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var wFe=function(n){lwt(t,n);var e=cwt(t);function t(i){var r;swt(this,t),r=e.call(this,i),y1(PS(r),"onChange",function(s){s.persist();var a=r.state.value,l=r.props.minLength;r.setState({value:s.target.value},function(){var c=r.state.value;if(c.length>=l){r.notify(s);return}a.length>c.length&&r.notify(Yg(Yg({},s),{},{target:Yg(Yg({},s.target),{},{value:""})}))})}),y1(PS(r),"onKeyDown",function(s){s.key==="Enter"&&r.forceNotify(s);var a=r.props.onKeyDown;a&&(s.persist(),a(s))}),y1(PS(r),"onBlur",function(s){r.forceNotify(s);var a=r.props.onBlur;a&&(s.persist(),a(s))}),y1(PS(r),"createNotifier",function(s){if(s<0)r.notify=function(){return null};else if(s===0)r.notify=r.doNotify;else{var a=(0,nwt.default)(function(l){r.isDebouncing=!1,r.doNotify(l)},s);r.notify=function(l){r.isDebouncing=!0,a(l)},r.flush=function(){return a.flush()},r.cancel=function(){r.isDebouncing=!1,a.cancel()}}}),y1(PS(r),"doNotify",function(){var s=r.props.onChange;s.apply(void 0,arguments)}),y1(PS(r),"forceNotify",function(s){var a=r.props.debounceTimeout;if(!(!r.isDebouncing&&a>0)){r.cancel&&r.cancel();var l=r.state.value,c=r.props.minLength;l.length>=c?r.doNotify(s):r.doNotify(Yg(Yg({},s),{},{target:Yg(Yg({},s.target),{},{value:l})}))}}),r.isDebouncing=!1,r.state={value:typeof i.value>"u"||i.value===null?"":i.value};var o=r.props.debounceTimeout;return r.createNotifier(o),r}return awt(t,[{key:"componentDidUpdate",value:function(r){if(!this.isDebouncing){var o=this.props,s=o.value,a=o.debounceTimeout,l=r.debounceTimeout,c=r.value,u=this.state.value;typeof s<"u"&&c!==s&&u!==s&&this.setState({value:s}),a!==l&&this.createNotifier(a)}}},{key:"componentWillUnmount",value:function(){this.flush&&this.flush()}},{key:"render",value:function(){var r=this.props,o=r.element;r.onChange,r.value,r.minLength,r.debounceTimeout;var s=r.forceNotifyByEnter,a=r.forceNotifyOnBlur,l=r.onKeyDown,c=r.onBlur,u=r.inputRef,d=rwt(r,iwt),h=this.state.value,g;s?g={onKeyDown:this.onKeyDown}:l?g={onKeyDown:l}:g={};var p;a?p={onBlur:this.onBlur}:c?p={onBlur:c}:p={};var m=u?{ref:u}:{};return vSe.default.createElement(o,Yg(Yg(Yg(Yg({},d),{},{onChange:this.onChange,value:h},g),p),m))}}]),t}(vSe.default.PureComponent);Fz.DebounceInput=wFe;y1(wFe,"defaultProps",{element:"input",type:"text",onKeyDown:void 0,onBlur:void 0,value:void 0,minLength:0,debounceTimeout:100,forceNotifyByEnter:!0,forceNotifyOnBlur:!0,inputRef:void 0});var hwt=Fz,_ne=hwt.DebounceInput;_ne.DebounceInput=_ne;var SFe=_ne;function fwt(n){return bn({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"defs",attr:{},child:[{tag:"clipPath",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M124-288l388-672 388 672H124z",clipRule:"evenodd"}}]}]},{tag:"path",attr:{d:"M508 624a112 112 0 0 0 112-112c0-3.28-.15-6.53-.43-9.74L498.26 623.57c3.21.28 6.45.43 9.74.43zm370.72-458.44L836 122.88a8 8 0 0 0-11.31 0L715.37 232.23Q624.91 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 0 0 0 51.5q56.7 119.43 136.55 191.45L112.56 835a8 8 0 0 0 0 11.31L155.25 889a8 8 0 0 0 11.31 0l712.16-712.12a8 8 0 0 0 0-11.32zM332 512a176 176 0 0 1 258.88-155.28l-48.62 48.62a112.08 112.08 0 0 0-140.92 140.92l-48.62 48.62A175.09 175.09 0 0 1 332 512z"}},{tag:"path",attr:{d:"M942.2 486.2Q889.4 375 816.51 304.85L672.37 449A176.08 176.08 0 0 1 445 676.37L322.74 798.63Q407.82 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 0 0 0-51.5z"}}]})(n)}function gwt(n){return bn({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M396 512a112 112 0 1 0 224 0 112 112 0 1 0-224 0zm546.2-25.8C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 0 0 0 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM508 688c-97.2 0-176-78.8-176-176s78.8-176 176-176 176 78.8 176 176-78.8 176-176 176z"}}]})(n)}function pwt(n){return bn({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M894 462c30.9 0 43.8-39.7 18.7-58L530.8 126.2a31.81 31.81 0 0 0-37.6 0L111.3 404c-25.1 18.2-12.2 58 18.8 58H192v374h-72c-4.4 0-8 3.6-8 8v52c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-52c0-4.4-3.6-8-8-8h-72V462h62zM512 196.7l271.1 197.2H240.9L512 196.7zM264 462h117v374H264V462zm189 0h117v374H453V462zm307 374H642V462h118v374z"}}]})(n)}function $p(n){const e=Vn();return f("label",{className:`text-sm font-medium block ${n.className}`,htmlFor:n.for,style:{color:e.$3},children:n.children})}function ke(n){const e=n.type==="password",[t,i]=w.useState(!0),r=w.useMemo(()=>n.type==="password"&&t?"password":n.type==="password"&&!t?"text":n.type,[n.type,t]),o=Vn(),s=sl({overwrite:!1});return N("section",{style:{width:n.width},children:[n.label&&N($p,{className:St("mb-2",{"whitespace-nowrap":n.withoutLabelWrapping}),for:n.id,children:[n.label,n.required&&f("span",{className:"ml-1 text-red-600",children:"*"})]}),N("div",{className:"relative",children:[f(SFe.DebounceInput,{style:{backgroundColor:o.$1,borderColor:o.$5,color:o.$3,...n.style},min:n.min,max:n.type==="date"?"9999-12-31":void 0,maxLength:n.maxLength,autoComplete:n.autoComplete||"new-password",disabled:n.disabled,element:n.element||"input",inputRef:n.innerRef,debounceTimeout:n.debounceTimeout??300,required:n.required,id:n.id,type:r,className:St(`w-full py-2 px-3 rounded text-sm disabled:opacity-75 disabled:cursor-not-allowed ${n.className}`,{"border border-gray-300":n.border!==!1}),placeholder:n.placeholder||"",onBlur:a=>{a.target.value=a.target.value===""&&n.type==="number"?"0":a.target.value,n.onValueChange&&n.onValueChange(a.target.value),n.onChange&&n.onChange(a)},onChange:a=>{if(n.element==="textarea"&&s.preferences.auto_expand_product_table_notes){const l=a.target.scrollHeight+2;l<200&&(a.target.style.height=l+"px")}n.changeOverride&&n.changeOverride===!0&&(n.onValueChange&&n.onValueChange(a.target.value),n.onChange&&n.onChange(a))},onClick:a=>{if(n.element==="textarea"&&s.preferences.auto_expand_product_table_notes){const l=a.target.scrollHeight+2;l<200&&(a.target.style.height=l+"px"),l>200&&(a.target.style.height="200px")}},onBlurCapture:a=>{n.element==="textarea"&&a.target.style.removeProperty("height")},value:n.value,list:n.list,rows:n.textareaRows||5,step:n.step,"data-cy":n.cypressRef,name:n.name,readOnly:n.readOnly}),e&&f("span",{className:"absolute top-1/4 right-3 cursor-pointer",children:t?f(gwt,{className:"text-gray-400",fontSize:19,onClick:()=>i(!1)}):f(fwt,{className:"text-gray-400",fontSize:19,onClick:()=>i(!0)})})]}),n.errorMessage&&f(bs,{className:"mt-2",type:"danger",children:n.errorMessage})]})}/** * Invoice Ninja (https://invoiceninja.com). * * @link https://github.com/invoiceninja/invoiceninja source repository * * @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com) * * @license https://www.elastic.co/licensing/elastic-license */const b3=po({prevent:!1,actionKey:void 0}),EFe=po({lastLocation:"",nonPreventedLocations:[]});function mwt(){const n=ol(),e=Ri(hfe),[t,i]=Mo(b3),[r,o]=Mo(EFe);w.useEffect(()=>{const s=c=>{if(t.prevent&&t.actionKey!=="switchCompany")return c.preventDefault(),!0},a=r.lastLocation!==window.location.href;a&&t.prevent&&(o(c=>({...c,lastLocation:window.location.href})),history.pushState(null,document.title,window.location.href));const l=()=>{t.prevent&&(a&&history.pushState(null,document.title,window.location.href),i(c=>c&&{...c,actionKey:"browserBack"}),e(!0))};return window.addEventListener("popstate",l),window.addEventListener("beforeunload",s),()=>{window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",s)}},[t]),w.useEffect(()=>{!t.prevent&&o(s=>({...s,nonPreventedLocations:[...s.nonPreventedLocations,n.pathname]}))},[n])}/** * Invoice Ninja (https://invoiceninja.com). * * @link https://github.com/invoiceninja/invoiceninja source repository * * @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com) * * @license https://www.elastic.co/licensing/elastic-license */const hfe=po(!1),xFe=po(void 0);function Y2(n){const{disablePrevention:e}=n||{},t=ri(),[i,r]=Mo(b3),o=Ri(hfe),s=Ri(xFe);return({url:a,externalLink:l=!1,fn:c,actionKey:u})=>(i.prevent&&!e?(s({url:a,externalLink:l,fn:c}),r(d=>d&&{...d,actionKey:u}),o(!0)):(a&&(l?window.open(a,"_blank"):t(a)),c==null||c()),i.prevent)}function Ii(n){const e=ys(),{prevent:t}=ki(b3),i=Y2(),{withoutDefaultStyling:r,setBaseFont:o}=n,s={color:e};return n.external?f("a",{target:"_blank",href:n.to,className:St(`text-center ${n.className}`,{"text-sm":!o,"text-base":o,"hover:underline":!r}),style:r?void 0:s,rel:"noreferrer",onClick:a=>{t&&(a.preventDefault(),i({url:n.to,externalLink:!0}))},children:n.children}):f(E0,{className:St(`${n.className}`,{"text-sm":!o,"text-base":o,"hover:underline":!r}),style:r?void 0:s,to:n.to,onClick:a=>{t&&(a.preventDefault(),i({url:n.to}))},children:n.children})}function kFe(n){const e=ys();return N("fieldset",{children:[f("legend",{className:"sr-only",children:"Notification method"}),f("div",{className:"space-y-4 sm:flex sm:items-center sm:space-y-0 sm:space-x-10",children:n.options.map(t=>N("div",{className:"flex items-center",onChange:i=>{var r;return(r=n.onValueChange)==null?void 0:r.call(n,i.target.value)},children:[f("input",{value:t.value,onClick:n.onClick,onChange:()=>{},disabled:n.disabled,id:t.id,name:n.name,type:"radio",checked:t.value===n.defaultSelected,className:"focus:ring-gray-500 h-4 w-4 border-gray-300 disabled:opacity-75 disabled:cursor-not-allowed",style:{color:e}}),f("label",{htmlFor:t.id,className:St("ml-3 block text-sm font-medium",{"opacity-75 cursor-not-allowed":n.disabled,"cursor-pointer":typeof n.disabled>"u"||!n.disabled}),children:t.title})]},t.id))})]})}var _wt=Object.defineProperty,vwt=(n,e,t)=>e in n?_wt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,aQ=(n,e,t)=>(vwt(n,typeof e!="symbol"?e+"":e,t),t);let bwt=class{constructor(){aQ(this,"current",this.detect()),aQ(this,"handoffState","pending"),aQ(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},qy=new bwt,Gs=(n,e)=>{qy.isServer?w.useEffect(n,e):w.useLayoutEffect(n,e)};function ug(n){let e=w.useRef(n);return Gs(()=>{e.current=n},[n]),e}function ffe(n,e){let[t,i]=w.useState(n),r=ug(n);return Gs(()=>i(r.current),[r,i,...e]),t}function Bz(n){typeof queueMicrotask=="function"?queueMicrotask(n):Promise.resolve().then(n).catch(e=>setTimeout(()=>{throw e}))}function Cg(){let n=[],e={addEventListener(t,i,r,o){return t.addEventListener(i,r,o),e.add(()=>t.removeEventListener(i,r,o))},requestAnimationFrame(...t){let i=requestAnimationFrame(...t);return e.add(()=>cancelAnimationFrame(i))},nextFrame(...t){return e.requestAnimationFrame(()=>e.requestAnimationFrame(...t))},setTimeout(...t){let i=setTimeout(...t);return e.add(()=>clearTimeout(i))},microTask(...t){let i={current:!0};return Bz(()=>{i.current&&t[0]()}),e.add(()=>{i.current=!1})},style(t,i,r){let o=t.style.getPropertyValue(i);return Object.assign(t.style,{[i]:r}),this.add(()=>{Object.assign(t.style,{[i]:o})})},group(t){let i=Cg();return t(i),this.add(()=>i.dispose())},add(t){return n.push(t),()=>{let i=n.indexOf(t);if(i>=0)for(let r of n.splice(i,1))r()}},dispose(){for(let t of n.splice(0))t()}};return e}function k0(){let[n]=w.useState(Cg);return w.useEffect(()=>()=>n.dispose(),[n]),n}let An=function(n){let e=ug(n);return te.useCallback((...t)=>e.current(...t),[e])};function ywt(){let n=typeof document>"u";return"useSyncExternalStore"in Rp?(e=>e.useSyncExternalStore)(Rp)(()=>()=>{},()=>!1,()=>!n):!1}function Q2(){let n=ywt(),[e,t]=w.useState(qy.isHandoffComplete);return e&&qy.isHandoffComplete===!1&&t(!1),w.useEffect(()=>{e!==!0&&t(!0)},[e]),w.useEffect(()=>qy.handoff(),[]),n?!1:e}var CSe;let Sl=(CSe=te.useId)!=null?CSe:function(){let n=Q2(),[e,t]=te.useState(n?()=>qy.nextId():null);return Gs(()=>{e===null&&t(qy.nextId())},[e]),e!=null?""+e:void 0};function cs(n,e,...t){if(n in e){let r=e[n];return typeof r=="function"?r(...t):r}let i=new Error(`Tried to handle "${n}" but there is no handler defined. Only defined handlers are: ${Object.keys(e).map(r=>`"${r}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(i,cs),i}function y3(n){return qy.isServer?null:n instanceof Node?n.ownerDocument:n!=null&&n.hasOwnProperty("current")&&n.current instanceof Node?n.current.ownerDocument:document}let vne=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(n=>`${n}:not([tabindex='-1'])`).join(",");var Ou=(n=>(n[n.First=1]="First",n[n.Previous=2]="Previous",n[n.Next=4]="Next",n[n.Last=8]="Last",n[n.WrapAround=16]="WrapAround",n[n.NoScroll=32]="NoScroll",n))(Ou||{}),$P=(n=>(n[n.Error=0]="Error",n[n.Overflow=1]="Overflow",n[n.Success=2]="Success",n[n.Underflow=3]="Underflow",n))($P||{}),Cwt=(n=>(n[n.Previous=-1]="Previous",n[n.Next=1]="Next",n))(Cwt||{});function C3(n=document.body){return n==null?[]:Array.from(n.querySelectorAll(vne)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}var $z=(n=>(n[n.Strict=0]="Strict",n[n.Loose=1]="Loose",n))($z||{});function Vz(n,e=0){var t;return n===((t=y3(n))==null?void 0:t.body)?!1:cs(e,{0(){return n.matches(vne)},1(){let i=n;for(;i!==null;){if(i.matches(vne))return!0;i=i.parentElement}return!1}})}function TFe(n){let e=y3(n);Cg().nextFrame(()=>{e&&!Vz(e.activeElement,0)&&bC(n)})}var wwt=(n=>(n[n.Keyboard=0]="Keyboard",n[n.Mouse=1]="Mouse",n))(wwt||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",n=>{n.metaKey||n.altKey||n.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",n=>{n.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:n.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function bC(n){n==null||n.focus({preventScroll:!0})}let Swt=["textarea","input"].join(",");function Ewt(n){var e,t;return(t=(e=n==null?void 0:n.matches)==null?void 0:e.call(n,Swt))!=null?t:!1}function gfe(n,e=t=>t){return n.slice().sort((t,i)=>{let r=e(t),o=e(i);if(r===null||o===null)return 0;let s=r.compareDocumentPosition(o);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function xwt(n,e){return pp(C3(),e,{relativeTo:n})}function pp(n,e,{sorted:t=!0,relativeTo:i=null,skipElements:r=[]}={}){let o=Array.isArray(n)?n.length>0?n[0].ownerDocument:document:n.ownerDocument,s=Array.isArray(n)?t?gfe(n):n:C3(n);r.length>0&&s.length>1&&(s=s.filter(g=>!r.includes(g))),i=i??o.activeElement;let a=(()=>{if(e&5)return 1;if(e&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(e&1)return 0;if(e&2)return Math.max(0,s.indexOf(i))-1;if(e&4)return Math.max(0,s.indexOf(i))+1;if(e&8)return s.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=e&32?{preventScroll:!0}:{},u=0,d=s.length,h;do{if(u>=d||u+d<=0)return 0;let g=l+u;if(e&16)g=(g+d)%d;else{if(g<0)return 3;if(g>=d)return 1}h=s[g],h==null||h.focus(c),u+=a}while(h!==o.activeElement);return e&6&&Ewt(h)&&h.select(),2}function v6(n,e,t){let i=ug(e);w.useEffect(()=>{function r(o){i.current(o)}return document.addEventListener(n,r,t),()=>document.removeEventListener(n,r,t)},[n,t])}function IFe(n,e,t){let i=ug(e);w.useEffect(()=>{function r(o){i.current(o)}return window.addEventListener(n,r,t),()=>window.removeEventListener(n,r,t)},[n,t])}function Hz(n,e,t=!0){let i=w.useRef(!1);w.useEffect(()=>{requestAnimationFrame(()=>{i.current=t})},[t]);function r(s,a){if(!i.current||s.defaultPrevented)return;let l=a(s);if(l===null||!l.getRootNode().contains(l)||!l.isConnected)return;let c=function u(d){return typeof d=="function"?u(d()):Array.isArray(d)||d instanceof Set?d:[d]}(n);for(let u of c){if(u===null)continue;let d=u instanceof HTMLElement?u:u.current;if(d!=null&&d.contains(l)||s.composed&&s.composedPath().includes(d))return}return!Vz(l,$z.Loose)&&l.tabIndex!==-1&&s.preventDefault(),e(s,l)}let o=w.useRef(null);v6("pointerdown",s=>{var a,l;i.current&&(o.current=((l=(a=s.composedPath)==null?void 0:a.call(s))==null?void 0:l[0])||s.target)},!0),v6("mousedown",s=>{var a,l;i.current&&(o.current=((l=(a=s.composedPath)==null?void 0:a.call(s))==null?void 0:l[0])||s.target)},!0),v6("click",s=>{o.current&&(r(s,()=>o.current),o.current=null)},!0),v6("touchend",s=>r(s,()=>s.target instanceof HTMLElement?s.target:null),!0),IFe("blur",s=>r(s,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function wSe(n){var e;if(n.type)return n.type;let t=(e=n.as)!=null?e:"button";if(typeof t=="string"&&t.toLowerCase()==="button")return"button"}function Wz(n,e){let[t,i]=w.useState(()=>wSe(n));return Gs(()=>{i(wSe(n))},[n.type,n.as]),Gs(()=>{t||e.current&&e.current instanceof HTMLButtonElement&&!e.current.hasAttribute("type")&&i("button")},[t,e]),t}let LFe=Symbol();function DFe(n,e=!0){return Object.assign(n,{[LFe]:e})}function Xs(...n){let e=w.useRef(n);w.useEffect(()=>{e.current=n},[n]);let t=An(i=>{for(let r of e.current)r!=null&&(typeof r=="function"?r(i):r.current=i)});return n.every(i=>i==null||(i==null?void 0:i[LFe]))?void 0:t}function AFe({container:n,accept:e,walk:t,enabled:i=!0}){let r=w.useRef(e),o=w.useRef(t);w.useEffect(()=>{r.current=e,o.current=t},[e,t]),Gs(()=>{if(!n||!i)return;let s=y3(n);if(!s)return;let a=r.current,l=o.current,c=Object.assign(d=>a(d),{acceptNode:a}),u=s.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,c,!1);for(;u.nextNode();)l(u.currentNode)},[n,i,r,o])}function kwt(n){throw new Error("Unexpected object: "+n)}var ra=(n=>(n[n.First=0]="First",n[n.Previous=1]="Previous",n[n.Next=2]="Next",n[n.Last=3]="Last",n[n.Specific=4]="Specific",n[n.Nothing=5]="Nothing",n))(ra||{});function RFe(n,e){let t=e.resolveItems();if(t.length<=0)return null;let i=e.resolveActiveIndex(),r=i??-1,o=(()=>{switch(n.focus){case 0:return t.findIndex(s=>!e.resolveDisabled(s));case 1:{let s=t.slice().reverse().findIndex((a,l,c)=>r!==-1&&c.length-l-1>=r?!1:!e.resolveDisabled(a));return s===-1?s:t.length-1-s}case 2:return t.findIndex((s,a)=>a<=r?!1:!e.resolveDisabled(s));case 3:{let s=t.slice().reverse().findIndex(a=>!e.resolveDisabled(a));return s===-1?s:t.length-1-s}case 4:return t.findIndex(s=>e.resolveId(s)===n.id);case 5:return null;default:kwt(n)}})();return o===-1?i:o}function _7(...n){return Array.from(new Set(n.flatMap(e=>typeof e=="string"?e.split(" "):[]))).filter(Boolean).join(" ")}var Vp=(n=>(n[n.None=0]="None",n[n.RenderStrategy=1]="RenderStrategy",n[n.Static=2]="Static",n))(Vp||{}),H1=(n=>(n[n.Unmount=0]="Unmount",n[n.Hidden=1]="Hidden",n))(H1||{});function Cs({ourProps:n,theirProps:e,slot:t,defaultTag:i,features:r,visible:o=!0,name:s}){let a=NFe(e,n);if(o)return b6(a,t,i,s);let l=r??0;if(l&2){let{static:c=!1,...u}=a;if(c)return b6(u,t,i,s)}if(l&1){let{unmount:c=!0,...u}=a;return cs(c?0:1,{0(){return null},1(){return b6({...u,hidden:!0,style:{display:"none"}},t,i,s)}})}return b6(a,t,i,s)}function b6(n,e={},t,i){let{as:r=t,children:o,refName:s="ref",...a}=lQ(n,["unmount","static"]),l=n.ref!==void 0?{[s]:n.ref}:{},c=typeof o=="function"?o(e):o;"className"in a&&a.className&&typeof a.className=="function"&&(a.className=a.className(e));let u={};if(e){let d=!1,h=[];for(let[g,p]of Object.entries(e))typeof p=="boolean"&&(d=!0),p===!0&&h.push(g);d&&(u["data-headlessui-state"]=h.join(" "))}if(r===w.Fragment&&Object.keys(v7(a)).length>0){if(!w.isValidElement(c)||Array.isArray(c)&&c.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${i} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(a).map(p=>` - ${p}`).join(` `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(p=>` - ${p}`).join(` `)].join(` `));let d=c.props,h=typeof(d==null?void 0:d.className)=="function"?(...p)=>_7(d==null?void 0:d.className(...p),a.className):_7(d==null?void 0:d.className,a.className),g=h?{className:h}:{};return w.cloneElement(c,Object.assign({},NFe(c.props,v7(lQ(a,["ref"]))),u,l,Twt(c.ref,l.ref),g))}return w.createElement(r,Object.assign({},lQ(a,["ref"]),r!==w.Fragment&&l,r!==w.Fragment&&u),c)}function Twt(...n){return{ref:n.every(e=>e==null)?void 0:e=>{for(let t of n)t!=null&&(typeof t=="function"?t(e):t.current=e)}}}function NFe(...n){if(n.length===0)return{};if(n.length===1)return n[0];let e={},t={};for(let i of n)for(let r in i)r.startsWith("on")&&typeof i[r]=="function"?(t[r]!=null||(t[r]=[]),t[r].push(i[r])):e[r]=i[r];if(e.disabled||e["aria-disabled"])return Object.assign(e,Object.fromEntries(Object.keys(t).map(i=>[i,void 0])));for(let i in t)Object.assign(e,{[i](r,...o){let s=t[i];for(let a of s){if((r instanceof Event||(r==null?void 0:r.nativeEvent)instanceof Event)&&r.defaultPrevented)return;a(r,...o)}}});return e}function ws(n){var e;return Object.assign(w.forwardRef(n),{displayName:(e=n.displayName)!=null?e:n.name})}function v7(n){let e=Object.assign({},n);for(let t in e)e[t]===void 0&&delete e[t];return e}function lQ(n,e=[]){let t=Object.assign({},n);for(let i of e)i in t&&delete t[i];return t}function X2(n){let e=n.parentElement,t=null;for(;e&&!(e instanceof HTMLFieldSetElement);)e instanceof HTMLLegendElement&&(t=e),e=e.parentElement;let i=(e==null?void 0:e.getAttribute("disabled"))==="";return i&&Iwt(t)?!1:i}function Iwt(n){if(!n)return!1;let e=n.previousElementSibling;for(;e!==null;){if(e instanceof HTMLLegendElement)return!1;e=e.previousElementSibling}return!0}function OFe(n={},e=null,t=[]){for(let[i,r]of Object.entries(n))MFe(t,PFe(e,i),r);return t}function PFe(n,e){return n?n+"["+e+"]":e}function MFe(n,e,t){if(Array.isArray(t))for(let[i,r]of t.entries())MFe(n,PFe(e,i.toString()),r);else t instanceof Date?n.push([e,t.toISOString()]):typeof t=="boolean"?n.push([e,t?"1":"0"]):typeof t=="string"?n.push([e,t]):typeof t=="number"?n.push([e,`${t}`]):t==null?n.push([e,""]):OFe(t,e,n)}function Lwt(n){var e,t;let i=(e=n==null?void 0:n.form)!=null?e:n.closest("form");if(i){for(let r of i.elements)if(r!==n&&(r.tagName==="INPUT"&&r.type==="submit"||r.tagName==="BUTTON"&&r.type==="submit"||r.nodeName==="INPUT"&&r.type==="image")){r.click();return}(t=i.requestSubmit)==null||t.call(i)}}let Dwt="div";var nb=(n=>(n[n.None=1]="None",n[n.Focusable=2]="Focusable",n[n.Hidden=4]="Hidden",n))(nb||{});function Awt(n,e){let{features:t=1,...i}=n,r={ref:e,"aria-hidden":(t&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(t&4)===4&&(t&2)!==2&&{display:"none"}}};return Cs({ourProps:r,theirProps:i,slot:{},defaultTag:Dwt,name:"Hidden"})}let g0=ws(Awt),pfe=w.createContext(null);pfe.displayName="OpenClosedContext";var sa=(n=>(n[n.Open=1]="Open",n[n.Closed=2]="Closed",n[n.Closing=4]="Closing",n[n.Opening=8]="Opening",n))(sa||{});function _k(){return w.useContext(pfe)}function zz({value:n,children:e}){return te.createElement(pfe.Provider,{value:n},e)}var ro=(n=>(n.Space=" ",n.Enter="Enter",n.Escape="Escape",n.Backspace="Backspace",n.Delete="Delete",n.ArrowLeft="ArrowLeft",n.ArrowUp="ArrowUp",n.ArrowRight="ArrowRight",n.ArrowDown="ArrowDown",n.Home="Home",n.End="End",n.PageUp="PageUp",n.PageDown="PageDown",n.Tab="Tab",n))(ro||{});function FFe(n,e,t){let[i,r]=w.useState(t),o=n!==void 0,s=w.useRef(o),a=w.useRef(!1),l=w.useRef(!1);return o&&!s.current&&!a.current?(a.current=!0,s.current=o,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!o&&s.current&&!l.current&&(l.current=!0,s.current=o,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[o?n:i,An(c=>(o||r(c),e==null?void 0:e(c)))]}function VP(n,e){let t=w.useRef([]),i=An(n);w.useEffect(()=>{let r=[...t.current];for(let[o,s]of e.entries())if(t.current[o]!==s){let a=i(e,r);return t.current=e,a}},[i,...e])}function SSe(n){return[n.screenX,n.screenY]}function BFe(){let n=w.useRef([-1,-1]);return{wasMoved(e){let t=SSe(e);return n.current[0]===t[0]&&n.current[1]===t[1]?!1:(n.current=t,!0)},update(e){n.current=SSe(e)}}}function $Fe(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Rwt(){return/Android/gi.test(window.navigator.userAgent)}function Nwt(){return $Fe()||Rwt()}function Cb(...n){return w.useMemo(()=>y3(...n),[...n])}var Owt=(n=>(n[n.Open=0]="Open",n[n.Closed=1]="Closed",n))(Owt||{}),Pwt=(n=>(n[n.Single=0]="Single",n[n.Multi=1]="Multi",n))(Pwt||{}),Mwt=(n=>(n[n.Pointer=0]="Pointer",n[n.Other=1]="Other",n))(Mwt||{}),Fwt=(n=>(n[n.OpenCombobox=0]="OpenCombobox",n[n.CloseCombobox=1]="CloseCombobox",n[n.GoToOption=2]="GoToOption",n[n.RegisterOption=3]="RegisterOption",n[n.UnregisterOption=4]="UnregisterOption",n[n.RegisterLabel=5]="RegisterLabel",n))(Fwt||{});function cQ(n,e=t=>t){let t=n.activeOptionIndex!==null?n.options[n.activeOptionIndex]:null,i=gfe(e(n.options.slice()),o=>o.dataRef.current.domRef.current),r=t?i.indexOf(t):null;return r===-1&&(r=null),{options:i,activeOptionIndex:r}}let Bwt={1(n){var e;return(e=n.dataRef.current)!=null&&e.disabled||n.comboboxState===1?n:{...n,activeOptionIndex:null,comboboxState:1}},0(n){var e;if((e=n.dataRef.current)!=null&&e.disabled||n.comboboxState===0)return n;let t=n.activeOptionIndex;if(n.dataRef.current){let{isSelected:i}=n.dataRef.current,r=n.options.findIndex(o=>i(o.dataRef.current.value));r!==-1&&(t=r)}return{...n,comboboxState:0,activeOptionIndex:t}},2(n,e){var t,i,r,o;if((t=n.dataRef.current)!=null&&t.disabled||(i=n.dataRef.current)!=null&&i.optionsRef.current&&!((r=n.dataRef.current)!=null&&r.optionsPropsRef.current.static)&&n.comboboxState===1)return n;let s=cQ(n);if(s.activeOptionIndex===null){let l=s.options.findIndex(c=>!c.dataRef.current.disabled);l!==-1&&(s.activeOptionIndex=l)}let a=RFe(e,{resolveItems:()=>s.options,resolveActiveIndex:()=>s.activeOptionIndex,resolveId:l=>l.id,resolveDisabled:l=>l.dataRef.current.disabled});return{...n,...s,activeOptionIndex:a,activationTrigger:(o=e.trigger)!=null?o:1}},3:(n,e)=>{var t,i;let r={id:e.id,dataRef:e.dataRef},o=cQ(n,a=>[...a,r]);n.activeOptionIndex===null&&(t=n.dataRef.current)!=null&&t.isSelected(e.dataRef.current.value)&&(o.activeOptionIndex=o.options.indexOf(r));let s={...n,...o,activationTrigger:1};return(i=n.dataRef.current)!=null&&i.__demoMode&&n.dataRef.current.value===void 0&&(s.activeOptionIndex=0),s},4:(n,e)=>{let t=cQ(n,i=>{let r=i.findIndex(o=>o.id===e.id);return r!==-1&&i.splice(r,1),i});return{...n,...t,activationTrigger:1}},5:(n,e)=>({...n,labelId:e.id})},mfe=w.createContext(null);mfe.displayName="ComboboxActionsContext";function w3(n){let e=w.useContext(mfe);if(e===null){let t=new Error(`<${n} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,w3),t}return e}let _fe=w.createContext(null);_fe.displayName="ComboboxDataContext";function Z2(n){let e=w.useContext(_fe);if(e===null){let t=new Error(`<${n} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Z2),t}return e}function $wt(n,e){return cs(e.type,Bwt,n,e)}let Vwt=w.Fragment;function Hwt(n,e){let{value:t,defaultValue:i,onChange:r,form:o,name:s,by:a=(xe,_e)=>xe===_e,disabled:l=!1,__demoMode:c=!1,nullable:u=!1,multiple:d=!1,...h}=n,[g=d?[]:void 0,p]=FFe(t,r,i),[m,_]=w.useReducer($wt,{dataRef:w.createRef(),comboboxState:c?0:1,options:[],activeOptionIndex:null,activationTrigger:1,labelId:null}),v=w.useRef(!1),b=w.useRef({static:!1,hold:!1}),y=w.useRef(null),C=w.useRef(null),x=w.useRef(null),k=w.useRef(null),I=An(typeof a=="string"?(xe,_e)=>{let Ie=a;return(xe==null?void 0:xe[Ie])===(_e==null?void 0:_e[Ie])}:a),L=w.useCallback(xe=>cs(D.mode,{1:()=>g.some(_e=>I(_e,xe)),0:()=>I(g,xe)}),[g]),D=w.useMemo(()=>({...m,optionsPropsRef:b,labelRef:y,inputRef:C,buttonRef:x,optionsRef:k,value:g,defaultValue:i,disabled:l,mode:d?1:0,get activeOptionIndex(){if(v.current&&m.activeOptionIndex===null&&m.options.length>0){let xe=m.options.findIndex(_e=>!_e.dataRef.current.disabled);if(xe!==-1)return xe}return m.activeOptionIndex},compare:I,isSelected:L,nullable:u,__demoMode:c}),[g,i,l,d,u,c,m]),R=w.useRef(D.activeOptionIndex!==null?D.options[D.activeOptionIndex]:null);w.useEffect(()=>{let xe=D.activeOptionIndex!==null?D.options[D.activeOptionIndex]:null;R.current!==xe&&(R.current=xe)}),Gs(()=>{m.dataRef.current=D},[D]),Hz([D.buttonRef,D.inputRef,D.optionsRef],()=>Y.closeCombobox(),D.comboboxState===0);let P=w.useMemo(()=>({open:D.comboboxState===0,disabled:l,activeIndex:D.activeOptionIndex,activeOption:D.activeOptionIndex===null?null:D.options[D.activeOptionIndex].dataRef.current.value,value:g}),[D,l,g]),M=An(xe=>{let _e=D.options.find(Ie=>Ie.id===xe);_e&&j(_e.dataRef.current.value)}),O=An(()=>{if(D.activeOptionIndex!==null){let{dataRef:xe,id:_e}=D.options[D.activeOptionIndex];j(xe.current.value),Y.goToOption(ra.Specific,_e)}}),B=An(()=>{_({type:0}),v.current=!0}),F=An(()=>{_({type:1}),v.current=!1}),H=An((xe,_e,Ie)=>(v.current=!1,xe===ra.Specific?_({type:2,focus:ra.Specific,id:_e,trigger:Ie}):_({type:2,focus:xe,trigger:Ie}))),V=An((xe,_e)=>(_({type:3,id:xe,dataRef:_e}),()=>{var Ie;((Ie=R.current)==null?void 0:Ie.id)===xe&&(v.current=!0),_({type:4,id:xe})})),$=An(xe=>(_({type:5,id:xe}),()=>_({type:5,id:null}))),j=An(xe=>cs(D.mode,{0(){return p==null?void 0:p(xe)},1(){let _e=D.value.slice(),Ie=_e.findIndex(Re=>I(Re,xe));return Ie===-1?_e.push(xe):_e.splice(Ie,1),p==null?void 0:p(_e)}})),Y=w.useMemo(()=>({onChange:j,registerOption:V,registerLabel:$,goToOption:H,closeCombobox:F,openCombobox:B,selectActiveOption:O,selectOption:M}),[]),ne=e===null?{}:{ref:e},se=w.useRef(null),he=k0();return w.useEffect(()=>{se.current&&i!==void 0&&he.addEventListener(se.current,"reset",()=>{p==null||p(i)})},[se,p]),te.createElement(mfe.Provider,{value:Y},te.createElement(_fe.Provider,{value:D},te.createElement(zz,{value:cs(D.comboboxState,{0:sa.Open,1:sa.Closed})},s!=null&&g!=null&&OFe({[s]:g}).map(([xe,_e],Ie)=>te.createElement(g0,{features:nb.Hidden,ref:Ie===0?Re=>{var Ye;se.current=(Ye=Re==null?void 0:Re.closest("form"))!=null?Ye:null}:void 0,...v7({key:xe,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:o,name:xe,value:_e})})),Cs({ourProps:ne,theirProps:h,slot:P,defaultTag:Vwt,name:"Combobox"}))))}let Wwt="input";function zwt(n,e){var t,i,r,o;let s=Sl(),{id:a=`headlessui-combobox-input-${s}`,onChange:l,displayValue:c,type:u="text",...d}=n,h=Z2("Combobox.Input"),g=w3("Combobox.Input"),p=Xs(h.inputRef,e),m=Cb(h.inputRef),_=w.useRef(!1),v=k0(),b=An(()=>{g.onChange(null),h.optionsRef.current&&(h.optionsRef.current.scrollTop=0),g.goToOption(ra.Nothing)}),y=function(){var O;return typeof c=="function"&&h.value!==void 0?(O=c(h.value))!=null?O:"":typeof h.value=="string"?h.value:""}();VP(([O,B],[F,H])=>{if(_.current)return;let V=h.inputRef.current;V&&((H===0&&B===1||O!==F)&&(V.value=O),requestAnimationFrame(()=>{if(_.current||!V||(m==null?void 0:m.activeElement)!==V)return;let{selectionStart:$,selectionEnd:j}=V;Math.abs((j??0)-($??0))===0&&$===0&&V.setSelectionRange(V.value.length,V.value.length)}))},[y,h.comboboxState,m]),VP(([O],[B])=>{if(O===0&&B===1){if(_.current)return;let F=h.inputRef.current;if(!F)return;let H=F.value,{selectionStart:V,selectionEnd:$,selectionDirection:j}=F;F.value="",F.value=H,j!==null?F.setSelectionRange(V,$,j):F.setSelectionRange(V,$)}},[h.comboboxState]);let C=w.useRef(!1),x=An(()=>{C.current=!0}),k=An(()=>{v.nextFrame(()=>{C.current=!1})}),I=An(O=>{switch(_.current=!0,O.key){case ro.Enter:if(_.current=!1,h.comboboxState!==0||C.current)return;if(O.preventDefault(),O.stopPropagation(),h.activeOptionIndex===null){g.closeCombobox();return}g.selectActiveOption(),h.mode===0&&g.closeCombobox();break;case ro.ArrowDown:return _.current=!1,O.preventDefault(),O.stopPropagation(),cs(h.comboboxState,{0:()=>{g.goToOption(ra.Next)},1:()=>{g.openCombobox()}});case ro.ArrowUp:return _.current=!1,O.preventDefault(),O.stopPropagation(),cs(h.comboboxState,{0:()=>{g.goToOption(ra.Previous)},1:()=>{g.openCombobox(),v.nextFrame(()=>{h.value||g.goToOption(ra.Last)})}});case ro.Home:if(O.shiftKey)break;return _.current=!1,O.preventDefault(),O.stopPropagation(),g.goToOption(ra.First);case ro.PageUp:return _.current=!1,O.preventDefault(),O.stopPropagation(),g.goToOption(ra.First);case ro.End:if(O.shiftKey)break;return _.current=!1,O.preventDefault(),O.stopPropagation(),g.goToOption(ra.Last);case ro.PageDown:return _.current=!1,O.preventDefault(),O.stopPropagation(),g.goToOption(ra.Last);case ro.Escape:return _.current=!1,h.comboboxState!==0?void 0:(O.preventDefault(),h.optionsRef.current&&!h.optionsPropsRef.current.static&&O.stopPropagation(),h.nullable&&h.mode===0&&h.value===null&&b(),g.closeCombobox());case ro.Tab:if(_.current=!1,h.comboboxState!==0)return;h.mode===0&&g.selectActiveOption(),g.closeCombobox();break}}),L=An(O=>{l==null||l(O),h.nullable&&h.mode===0&&O.target.value===""&&b(),g.openCombobox()}),D=An(()=>{_.current=!1}),R=ffe(()=>{if(h.labelId)return[h.labelId].join(" ")},[h.labelId]),P=w.useMemo(()=>({open:h.comboboxState===0,disabled:h.disabled}),[h]),M={ref:p,id:a,role:"combobox",type:u,"aria-controls":(t=h.optionsRef.current)==null?void 0:t.id,"aria-expanded":h.comboboxState===0,"aria-activedescendant":h.activeOptionIndex===null||(i=h.options[h.activeOptionIndex])==null?void 0:i.id,"aria-labelledby":R,"aria-autocomplete":"list",defaultValue:(o=(r=n.defaultValue)!=null?r:h.defaultValue!==void 0?c==null?void 0:c(h.defaultValue):null)!=null?o:h.defaultValue,disabled:h.disabled,onCompositionStart:x,onCompositionEnd:k,onKeyDown:I,onChange:L,onBlur:D};return Cs({ourProps:M,theirProps:d,slot:P,defaultTag:Wwt,name:"Combobox.Input"})}let jwt="button";function Uwt(n,e){var t;let i=Z2("Combobox.Button"),r=w3("Combobox.Button"),o=Xs(i.buttonRef,e),s=Sl(),{id:a=`headlessui-combobox-button-${s}`,...l}=n,c=k0(),u=An(m=>{switch(m.key){case ro.ArrowDown:return m.preventDefault(),m.stopPropagation(),i.comboboxState===1&&r.openCombobox(),c.nextFrame(()=>{var _;return(_=i.inputRef.current)==null?void 0:_.focus({preventScroll:!0})});case ro.ArrowUp:return m.preventDefault(),m.stopPropagation(),i.comboboxState===1&&(r.openCombobox(),c.nextFrame(()=>{i.value||r.goToOption(ra.Last)})),c.nextFrame(()=>{var _;return(_=i.inputRef.current)==null?void 0:_.focus({preventScroll:!0})});case ro.Escape:return i.comboboxState!==0?void 0:(m.preventDefault(),i.optionsRef.current&&!i.optionsPropsRef.current.static&&m.stopPropagation(),r.closeCombobox(),c.nextFrame(()=>{var _;return(_=i.inputRef.current)==null?void 0:_.focus({preventScroll:!0})}));default:return}}),d=An(m=>{if(X2(m.currentTarget))return m.preventDefault();i.comboboxState===0?r.closeCombobox():(m.preventDefault(),r.openCombobox()),c.nextFrame(()=>{var _;return(_=i.inputRef.current)==null?void 0:_.focus({preventScroll:!0})})}),h=ffe(()=>{if(i.labelId)return[i.labelId,a].join(" ")},[i.labelId,a]),g=w.useMemo(()=>({open:i.comboboxState===0,disabled:i.disabled,value:i.value}),[i]),p={ref:o,id:a,type:Wz(n,i.buttonRef),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":(t=i.optionsRef.current)==null?void 0:t.id,"aria-expanded":i.comboboxState===0,"aria-labelledby":h,disabled:i.disabled,onClick:d,onKeyDown:u};return Cs({ourProps:p,theirProps:l,slot:g,defaultTag:jwt,name:"Combobox.Button"})}let qwt="label";function Kwt(n,e){let t=Sl(),{id:i=`headlessui-combobox-label-${t}`,...r}=n,o=Z2("Combobox.Label"),s=w3("Combobox.Label"),a=Xs(o.labelRef,e);Gs(()=>s.registerLabel(i),[i]);let l=An(()=>{var u;return(u=o.inputRef.current)==null?void 0:u.focus({preventScroll:!0})}),c=w.useMemo(()=>({open:o.comboboxState===0,disabled:o.disabled}),[o]);return Cs({ourProps:{ref:a,id:i,onClick:l},theirProps:r,slot:c,defaultTag:qwt,name:"Combobox.Label"})}let Gwt="ul",Ywt=Vp.RenderStrategy|Vp.Static;function Qwt(n,e){let t=Sl(),{id:i=`headlessui-combobox-options-${t}`,hold:r=!1,...o}=n,s=Z2("Combobox.Options"),a=Xs(s.optionsRef,e),l=_k(),c=(()=>l!==null?(l&sa.Open)===sa.Open:s.comboboxState===0)();Gs(()=>{var g;s.optionsPropsRef.current.static=(g=n.static)!=null?g:!1},[s.optionsPropsRef,n.static]),Gs(()=>{s.optionsPropsRef.current.hold=r},[s.optionsPropsRef,r]),AFe({container:s.optionsRef.current,enabled:s.comboboxState===0,accept(g){return g.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:g.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(g){g.setAttribute("role","none")}});let u=ffe(()=>{var g,p;return(p=s.labelId)!=null?p:(g=s.buttonRef.current)==null?void 0:g.id},[s.labelId,s.buttonRef.current]),d=w.useMemo(()=>({open:s.comboboxState===0}),[s]),h={"aria-labelledby":u,role:"listbox","aria-multiselectable":s.mode===1?!0:void 0,id:i,ref:a};return Cs({ourProps:h,theirProps:o,slot:d,defaultTag:Gwt,features:Ywt,visible:c,name:"Combobox.Options"})}let Xwt="li";function Zwt(n,e){var t,i;let r=Sl(),{id:o=`headlessui-combobox-option-${r}`,disabled:s=!1,value:a,...l}=n,c=Z2("Combobox.Option"),u=w3("Combobox.Option"),d=c.activeOptionIndex!==null?c.options[c.activeOptionIndex].id===o:!1,h=c.isSelected(a),g=w.useRef(null),p=ug({disabled:s,value:a,domRef:g,textValue:(i=(t=g.current)==null?void 0:t.textContent)==null?void 0:i.toLowerCase()}),m=Xs(e,g),_=An(()=>u.selectOption(o));Gs(()=>u.registerOption(o,p),[p,o]);let v=w.useRef(!c.__demoMode);Gs(()=>{if(!c.__demoMode)return;let D=Cg();return D.requestAnimationFrame(()=>{v.current=!0}),D.dispose},[]),Gs(()=>{if(c.comboboxState!==0||!d||!v.current||c.activationTrigger===0)return;let D=Cg();return D.requestAnimationFrame(()=>{var R,P;(P=(R=g.current)==null?void 0:R.scrollIntoView)==null||P.call(R,{block:"nearest"})}),D.dispose},[g,d,c.comboboxState,c.activationTrigger,c.activeOptionIndex]);let b=An(D=>{if(s)return D.preventDefault();_(),c.mode===0&&u.closeCombobox(),Nwt()||requestAnimationFrame(()=>{var R;return(R=c.inputRef.current)==null?void 0:R.focus()})}),y=An(()=>{if(s)return u.goToOption(ra.Nothing);u.goToOption(ra.Specific,o)}),C=BFe(),x=An(D=>C.update(D)),k=An(D=>{C.wasMoved(D)&&(s||d||u.goToOption(ra.Specific,o,0))}),I=An(D=>{C.wasMoved(D)&&(s||d&&(c.optionsPropsRef.current.hold||u.goToOption(ra.Nothing)))}),L=w.useMemo(()=>({active:d,selected:h,disabled:s}),[d,h,s]);return Cs({ourProps:{id:o,ref:m,role:"option",tabIndex:s===!0?void 0:-1,"aria-disabled":s===!0?!0:void 0,"aria-selected":h,disabled:void 0,onClick:b,onFocus:y,onPointerEnter:x,onMouseEnter:x,onPointerMove:k,onMouseMove:k,onPointerLeave:I,onMouseLeave:I},theirProps:l,slot:L,defaultTag:Xwt,name:"Combobox.Option"})}let Jwt=ws(Hwt),eSt=ws(Uwt),tSt=ws(zwt),nSt=ws(Kwt),iSt=ws(Qwt),rSt=ws(Zwt),Hm=Object.assign(Jwt,{Input:tSt,Button:eSt,Label:nSt,Options:iSt,Option:rSt});var Jf=(n=>(n[n.Forwards=0]="Forwards",n[n.Backwards=1]="Backwards",n))(Jf||{});function vfe(){let n=w.useRef(0);return IFe("keydown",e=>{e.key==="Tab"&&(n.current=e.shiftKey?1:0)},!0),n}function S3(){let n=w.useRef(!1);return Gs(()=>(n.current=!0,()=>{n.current=!1}),[]),n}function bfe(n,e,t,i){let r=ug(t);w.useEffect(()=>{n=n??window;function o(s){r.current(s)}return n.addEventListener(e,o,i),()=>n.removeEventListener(e,o,i)},[n,e,i])}function oSt(n){function e(){document.readyState!=="loading"&&(n(),document.removeEventListener("DOMContentLoaded",e))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",e),e())}function VFe(n){let e=An(n),t=w.useRef(!1);w.useEffect(()=>(t.current=!1,()=>{t.current=!0,Bz(()=>{t.current&&e()})}),[e])}function HFe(n){if(!n)return new Set;if(typeof n=="function")return new Set(n());let e=new Set;for(let t of n.current)t.current instanceof HTMLElement&&e.add(t.current);return e}let sSt="div";var WFe=(n=>(n[n.None=1]="None",n[n.InitialFocus=2]="InitialFocus",n[n.TabLock=4]="TabLock",n[n.FocusLock=8]="FocusLock",n[n.RestoreFocus=16]="RestoreFocus",n[n.All=30]="All",n))(WFe||{});function aSt(n,e){let t=w.useRef(null),i=Xs(t,e),{initialFocus:r,containers:o,features:s=30,...a}=n;Q2()||(s=1);let l=Cb(t);uSt({ownerDocument:l},!!(s&16));let c=dSt({ownerDocument:l,container:t,initialFocus:r},!!(s&2));hSt({ownerDocument:l,container:t,containers:o,previousActiveElement:c},!!(s&8));let u=vfe(),d=An(m=>{let _=t.current;_&&(v=>v())(()=>{cs(u.current,{[Jf.Forwards]:()=>{pp(_,Ou.First,{skipElements:[m.relatedTarget]})},[Jf.Backwards]:()=>{pp(_,Ou.Last,{skipElements:[m.relatedTarget]})}})})}),h=k0(),g=w.useRef(!1),p={ref:i,onKeyDown(m){m.key=="Tab"&&(g.current=!0,h.requestAnimationFrame(()=>{g.current=!1}))},onBlur(m){let _=HFe(o);t.current instanceof HTMLElement&&_.add(t.current);let v=m.relatedTarget;v instanceof HTMLElement&&v.dataset.headlessuiFocusGuard!=="true"&&(zFe(_,v)||(g.current?pp(t.current,cs(u.current,{[Jf.Forwards]:()=>Ou.Next,[Jf.Backwards]:()=>Ou.Previous})|Ou.WrapAround,{relativeTo:m.target}):m.target instanceof HTMLElement&&bC(m.target)))}};return te.createElement(te.Fragment,null,!!(s&4)&&te.createElement(g0,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:nb.Focusable}),Cs({ourProps:p,theirProps:a,defaultTag:sSt,name:"FocusTrap"}),!!(s&4)&&te.createElement(g0,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:nb.Focusable}))}let lSt=ws(aSt),_R=Object.assign(lSt,{features:WFe}),L1=[];oSt(()=>{function n(e){e.target instanceof HTMLElement&&e.target!==document.body&&L1[0]!==e.target&&(L1.unshift(e.target),L1=L1.filter(t=>t!=null&&t.isConnected),L1.splice(10))}window.addEventListener("click",n,{capture:!0}),window.addEventListener("mousedown",n,{capture:!0}),window.addEventListener("focus",n,{capture:!0}),document.body.addEventListener("click",n,{capture:!0}),document.body.addEventListener("mousedown",n,{capture:!0}),document.body.addEventListener("focus",n,{capture:!0})});function cSt(n=!0){let e=w.useRef(L1.slice());return VP(([t],[i])=>{i===!0&&t===!1&&Bz(()=>{e.current.splice(0)}),i===!1&&t===!0&&(e.current=L1.slice())},[n,L1,e]),An(()=>{var t;return(t=e.current.find(i=>i!=null&&i.isConnected))!=null?t:null})}function uSt({ownerDocument:n},e){let t=cSt(e);VP(()=>{e||(n==null?void 0:n.activeElement)===(n==null?void 0:n.body)&&bC(t())},[e]),VFe(()=>{e&&bC(t())})}function dSt({ownerDocument:n,container:e,initialFocus:t},i){let r=w.useRef(null),o=S3();return VP(()=>{if(!i)return;let s=e.current;s&&Bz(()=>{if(!o.current)return;let a=n==null?void 0:n.activeElement;if(t!=null&&t.current){if((t==null?void 0:t.current)===a){r.current=a;return}}else if(s.contains(a)){r.current=a;return}t!=null&&t.current?bC(t.current):pp(s,Ou.First)===$P.Error&&console.warn("There are no focusable elements inside the "),r.current=n==null?void 0:n.activeElement})},[i]),r}function hSt({ownerDocument:n,container:e,containers:t,previousActiveElement:i},r){let o=S3();bfe(n==null?void 0:n.defaultView,"focus",s=>{if(!r||!o.current)return;let a=HFe(t);e.current instanceof HTMLElement&&a.add(e.current);let l=i.current;if(!l)return;let c=s.target;c&&c instanceof HTMLElement?zFe(a,c)?(i.current=c,bC(c)):(s.preventDefault(),s.stopPropagation(),bC(l)):bC(i.current)},!0)}function zFe(n,e){for(let t of n)if(t.contains(e))return!0;return!1}let jFe=w.createContext(!1);function fSt(){return w.useContext(jFe)}function bne(n){return te.createElement(jFe.Provider,{value:n.force},n.children)}function gSt(n){let e=fSt(),t=w.useContext(UFe),i=Cb(n),[r,o]=w.useState(()=>{if(!e&&t!==null||qy.isServer)return null;let s=i==null?void 0:i.getElementById("headlessui-portal-root");if(s)return s;if(i===null)return null;let a=i.createElement("div");return a.setAttribute("id","headlessui-portal-root"),i.body.appendChild(a)});return w.useEffect(()=>{r!==null&&(i!=null&&i.body.contains(r)||i==null||i.body.appendChild(r))},[r,i]),w.useEffect(()=>{e||t!==null&&o(t.current)},[t,o,e]),r}let pSt=w.Fragment;function mSt(n,e){let t=n,i=w.useRef(null),r=Xs(DFe(u=>{i.current=u}),e),o=Cb(i),s=gSt(i),[a]=w.useState(()=>{var u;return qy.isServer?null:(u=o==null?void 0:o.createElement("div"))!=null?u:null}),l=w.useContext(yne),c=Q2();return Gs(()=>{!s||!a||s.contains(a)||(a.setAttribute("data-headlessui-portal",""),s.appendChild(a))},[s,a]),Gs(()=>{if(a&&l)return l.register(a)},[l,a]),VFe(()=>{var u;!s||!a||(a instanceof Node&&s.contains(a)&&s.removeChild(a),s.childNodes.length<=0&&((u=s.parentElement)==null||u.removeChild(s)))}),c?!s||!a?null:Yp.createPortal(Cs({ourProps:{ref:r},theirProps:t,defaultTag:pSt,name:"Portal"}),a):null}let _St=w.Fragment,UFe=w.createContext(null);function vSt(n,e){let{target:t,...i}=n,r={ref:Xs(e)};return te.createElement(UFe.Provider,{value:t},Cs({ourProps:r,theirProps:i,defaultTag:_St,name:"Popover.Group"}))}let yne=w.createContext(null);function qFe(){let n=w.useContext(yne),e=w.useRef([]),t=An(o=>(e.current.push(o),n&&n.register(o),()=>i(o))),i=An(o=>{let s=e.current.indexOf(o);s!==-1&&e.current.splice(s,1),n&&n.unregister(o)}),r=w.useMemo(()=>({register:t,unregister:i,portals:e}),[t,i,e]);return[e,w.useMemo(()=>function({children:o}){return te.createElement(yne.Provider,{value:r},o)},[r])]}let bSt=ws(mSt),ySt=ws(vSt),Cne=Object.assign(bSt,{Group:ySt}),KFe=w.createContext(null);function GFe(){let n=w.useContext(KFe);if(n===null){let e=new Error("You used a component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,GFe),e}return n}function YFe(){let[n,e]=w.useState([]);return[n.length>0?n.join(" "):void 0,w.useMemo(()=>function(t){let i=An(o=>(e(s=>[...s,o]),()=>e(s=>{let a=s.slice(),l=a.indexOf(o);return l!==-1&&a.splice(l,1),a}))),r=w.useMemo(()=>({register:i,slot:t.slot,name:t.name,props:t.props}),[i,t.slot,t.name,t.props]);return te.createElement(KFe.Provider,{value:r},t.children)},[e])]}let CSt="p";function wSt(n,e){let t=Sl(),{id:i=`headlessui-description-${t}`,...r}=n,o=GFe(),s=Xs(e);Gs(()=>o.register(i),[i,o.register]);let a={ref:s,...o.props,id:i};return Cs({ourProps:a,theirProps:r,slot:o.slot||{},defaultTag:CSt,name:o.name||"Description"})}let SSt=ws(wSt),QFe=Object.assign(SSt,{}),yfe=w.createContext(()=>{});yfe.displayName="StackContext";var wne=(n=>(n[n.Add=0]="Add",n[n.Remove=1]="Remove",n))(wne||{});function ESt(){return w.useContext(yfe)}function xSt({children:n,onUpdate:e,type:t,element:i,enabled:r}){let o=ESt(),s=An((...a)=>{e==null||e(...a),o(...a)});return Gs(()=>{let a=r===void 0||r===!0;return a&&s(0,t,i),()=>{a&&s(1,t,i)}},[s,t,i,r]),te.createElement(yfe.Provider,{value:s},n)}function kSt(n,e){return n===e&&(n!==0||1/n===1/e)||n!==n&&e!==e}const TSt=typeof Object.is=="function"?Object.is:kSt,{useState:ISt,useEffect:LSt,useLayoutEffect:DSt,useDebugValue:ASt}=Rp;function RSt(n,e,t){const i=e(),[{inst:r},o]=ISt({inst:{value:i,getSnapshot:e}});return DSt(()=>{r.value=i,r.getSnapshot=e,uQ(r)&&o({inst:r})},[n,i,e]),LSt(()=>(uQ(r)&&o({inst:r}),n(()=>{uQ(r)&&o({inst:r})})),[n]),ASt(i),i}function uQ(n){const e=n.getSnapshot,t=n.value;try{const i=e();return!TSt(t,i)}catch{return!0}}function NSt(n,e,t){return e()}const OSt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",PSt=!OSt,MSt=PSt?NSt:RSt,FSt="useSyncExternalStore"in Rp?(n=>n.useSyncExternalStore)(Rp):MSt;function BSt(n){return FSt(n.subscribe,n.getSnapshot,n.getSnapshot)}function $St(n,e){let t=n(),i=new Set;return{getSnapshot(){return t},subscribe(r){return i.add(r),()=>i.delete(r)},dispatch(r,...o){let s=e[r].call(t,...o);s&&(t=s,i.forEach(a=>a()))}}}function VSt(){let n;return{before({doc:e}){var t;let i=e.documentElement;n=((t=e.defaultView)!=null?t:window).innerWidth-i.clientWidth},after({doc:e,d:t}){let i=e.documentElement,r=i.clientWidth-i.offsetWidth,o=n-r;t.style(i,"paddingRight",`${o}px`)}}}function HSt(){if(!$Fe())return{};let n;return{before(){n=window.pageYOffset},after({doc:e,d:t,meta:i}){function r(o){return i.containers.flatMap(s=>s()).some(s=>s.contains(o))}t.microTask(()=>{if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let s=Cg();s.style(e.documentElement,"scroll-behavior","auto"),t.add(()=>t.microTask(()=>s.dispose()))}t.style(e.body,"marginTop",`-${n}px`),window.scrollTo(0,0);let o=null;t.addEventListener(e,"click",s=>{if(s.target instanceof HTMLElement)try{let a=s.target.closest("a");if(!a)return;let{hash:l}=new URL(a.href),c=e.querySelector(l);c&&!r(c)&&(o=c)}catch{}},!0),t.addEventListener(e,"touchmove",s=>{s.target instanceof HTMLElement&&!r(s.target)&&s.preventDefault()},{passive:!1}),t.add(()=>{window.scrollTo(0,window.pageYOffset+n),o&&o.isConnected&&(o.scrollIntoView({block:"nearest"}),o=null)})})}}}function WSt(){return{before({doc:n,d:e}){e.style(n.documentElement,"overflow","hidden")}}}function zSt(n){let e={};for(let t of n)Object.assign(e,t(e));return e}let yE=$St(()=>new Map,{PUSH(n,e){var t;let i=(t=this.get(n))!=null?t:{doc:n,count:0,d:Cg(),meta:new Set};return i.count++,i.meta.add(e),this.set(n,i),this},POP(n,e){let t=this.get(n);return t&&(t.count--,t.meta.delete(e)),this},SCROLL_PREVENT({doc:n,d:e,meta:t}){let i={doc:n,d:e,meta:zSt(t)},r=[HSt(),VSt(),WSt()];r.forEach(({before:o})=>o==null?void 0:o(i)),r.forEach(({after:o})=>o==null?void 0:o(i))},SCROLL_ALLOW({d:n}){n.dispose()},TEARDOWN({doc:n}){this.delete(n)}});yE.subscribe(()=>{let n=yE.getSnapshot(),e=new Map;for(let[t]of n)e.set(t,t.documentElement.style.overflow);for(let t of n.values()){let i=e.get(t.doc)==="hidden",r=t.count!==0;(r&&!i||!r&&i)&&yE.dispatch(t.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",t),t.count===0&&yE.dispatch("TEARDOWN",t)}});function jSt(n,e,t){let i=BSt(yE),r=n?i.get(n):void 0,o=r?r.count>0:!1;return Gs(()=>{if(!(!n||!e))return yE.dispatch("PUSH",n,t),()=>yE.dispatch("POP",n,t)},[e,n]),o}let dQ=new Map,vR=new Map;function ESe(n,e=!0){Gs(()=>{var t;if(!e)return;let i=typeof n=="function"?n():n.current;if(!i)return;function r(){var s;if(!i)return;let a=(s=vR.get(i))!=null?s:1;if(a===1?vR.delete(i):vR.set(i,a-1),a!==1)return;let l=dQ.get(i);l&&(l["aria-hidden"]===null?i.removeAttribute("aria-hidden"):i.setAttribute("aria-hidden",l["aria-hidden"]),i.inert=l.inert,dQ.delete(i))}let o=(t=vR.get(i))!=null?t:0;return vR.set(i,o+1),o!==0||(dQ.set(i,{"aria-hidden":i.getAttribute("aria-hidden"),inert:i.inert}),i.setAttribute("aria-hidden","true"),i.inert=!0),r},[n,e])}function XFe({defaultContainers:n=[],portals:e,mainTreeNodeRef:t}={}){var i;let r=w.useRef((i=t==null?void 0:t.current)!=null?i:null),o=Cb(r),s=An(()=>{var a;let l=[];for(let c of n)c!==null&&(c instanceof HTMLElement?l.push(c):"current"in c&&c.current instanceof HTMLElement&&l.push(c.current));if(e!=null&&e.current)for(let c of e.current)l.push(c);for(let c of(a=o==null?void 0:o.querySelectorAll("html > *, body > *"))!=null?a:[])c!==document.body&&c!==document.head&&c instanceof HTMLElement&&c.id!=="headlessui-portal-root"&&(c.contains(r.current)||l.some(u=>c.contains(u))||l.push(c));return l});return{resolveContainers:s,contains:An(a=>s().some(l=>l.contains(a))),mainTreeNodeRef:r,MainTreeNode:w.useMemo(()=>function(){return t!=null?null:te.createElement(g0,{features:nb.Hidden,ref:r})},[r,t])}}function USt(){let n=w.useRef(null);return{mainTreeNodeRef:n,MainTreeNode:w.useMemo(()=>function(){return te.createElement(g0,{features:nb.Hidden,ref:n})},[n])}}var qSt=(n=>(n[n.Open=0]="Open",n[n.Closed=1]="Closed",n))(qSt||{}),KSt=(n=>(n[n.SetTitleId=0]="SetTitleId",n))(KSt||{});let GSt={0(n,e){return n.titleId===e.id?n:{...n,titleId:e.id}}},b7=w.createContext(null);b7.displayName="DialogContext";function E3(n){let e=w.useContext(b7);if(e===null){let t=new Error(`<${n} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,E3),t}return e}function YSt(n,e,t=()=>[document.body]){jSt(n,e,i=>{var r;return{containers:[...(r=i.containers)!=null?r:[],t]}})}function QSt(n,e){return cs(e.type,GSt,n,e)}let XSt="div",ZSt=Vp.RenderStrategy|Vp.Static;function JSt(n,e){var t;let i=Sl(),{id:r=`headlessui-dialog-${i}`,open:o,onClose:s,initialFocus:a,__demoMode:l=!1,...c}=n,[u,d]=w.useState(0),h=_k();o===void 0&&h!==null&&(o=(h&sa.Open)===sa.Open);let g=w.useRef(null),p=Xs(g,e),m=Cb(g),_=n.hasOwnProperty("open")||h!==null,v=n.hasOwnProperty("onClose");if(!_&&!v)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!_)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!v)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(typeof o!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${o}`);if(typeof s!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${s}`);let b=o?0:1,[y,C]=w.useReducer(QSt,{titleId:null,descriptionId:null,panelRef:w.createRef()}),x=An(()=>s(!1)),k=An(Ze=>C({type:0,id:Ze})),I=Q2()?l?!1:b===0:!1,L=u>1,D=w.useContext(b7)!==null,[R,P]=qFe(),{resolveContainers:M,mainTreeNodeRef:O,MainTreeNode:B}=XFe({portals:R,defaultContainers:[(t=y.panelRef.current)!=null?t:g.current]}),F=L?"parent":"leaf",H=h!==null?(h&sa.Closing)===sa.Closing:!1,V=(()=>D||H?!1:I)(),$=w.useCallback(()=>{var Ze,tt;return(tt=Array.from((Ze=m==null?void 0:m.querySelectorAll("body > *"))!=null?Ze:[]).find(Be=>Be.id==="headlessui-portal-root"?!1:Be.contains(O.current)&&Be instanceof HTMLElement))!=null?tt:null},[O]);ESe($,V);let j=(()=>L?!0:I)(),Y=w.useCallback(()=>{var Ze,tt;return(tt=Array.from((Ze=m==null?void 0:m.querySelectorAll("[data-headlessui-portal]"))!=null?Ze:[]).find(Be=>Be.contains(O.current)&&Be instanceof HTMLElement))!=null?tt:null},[O]);ESe(Y,j);let ne=(()=>!(!I||L))();Hz(M,x,ne);let se=(()=>!(L||b!==0))();bfe(m==null?void 0:m.defaultView,"keydown",Ze=>{se&&(Ze.defaultPrevented||Ze.key===ro.Escape&&(Ze.preventDefault(),Ze.stopPropagation(),x()))});let he=(()=>!(H||b!==0||D))();YSt(m,he,M),w.useEffect(()=>{if(b!==0||!g.current)return;let Ze=new ResizeObserver(tt=>{for(let Be of tt){let kt=Be.target.getBoundingClientRect();kt.x===0&&kt.y===0&&kt.width===0&&kt.height===0&&x()}});return Ze.observe(g.current),()=>Ze.disconnect()},[b,g,x]);let[xe,_e]=YFe(),Ie=w.useMemo(()=>[{dialogState:b,close:x,setTitleId:k},y],[b,y,x,k]),Re=w.useMemo(()=>({open:b===0}),[b]),Ye={ref:p,id:r,role:"dialog","aria-modal":b===0?!0:void 0,"aria-labelledby":y.titleId,"aria-describedby":xe};return te.createElement(xSt,{type:"Dialog",enabled:b===0,element:g,onUpdate:An((Ze,tt)=>{tt==="Dialog"&&cs(Ze,{[wne.Add]:()=>d(Be=>Be+1),[wne.Remove]:()=>d(Be=>Be-1)})})},te.createElement(bne,{force:!0},te.createElement(Cne,null,te.createElement(b7.Provider,{value:Ie},te.createElement(Cne.Group,{target:g},te.createElement(bne,{force:!1},te.createElement(_e,{slot:Re,name:"Dialog.Description"},te.createElement(_R,{initialFocus:a,containers:M,features:I?cs(F,{parent:_R.features.RestoreFocus,leaf:_R.features.All&~_R.features.FocusLock}):_R.features.None},te.createElement(P,null,Cs({ourProps:Ye,theirProps:c,slot:Re,defaultTag:XSt,features:ZSt,visible:b===0,name:"Dialog"}))))))))),te.createElement(B,null))}let eEt="div";function tEt(n,e){let t=Sl(),{id:i=`headlessui-dialog-overlay-${t}`,...r}=n,[{dialogState:o,close:s}]=E3("Dialog.Overlay"),a=Xs(e),l=An(u=>{if(u.target===u.currentTarget){if(X2(u.currentTarget))return u.preventDefault();u.preventDefault(),u.stopPropagation(),s()}}),c=w.useMemo(()=>({open:o===0}),[o]);return Cs({ourProps:{ref:a,id:i,"aria-hidden":!0,onClick:l},theirProps:r,slot:c,defaultTag:eEt,name:"Dialog.Overlay"})}let nEt="div";function iEt(n,e){let t=Sl(),{id:i=`headlessui-dialog-backdrop-${t}`,...r}=n,[{dialogState:o},s]=E3("Dialog.Backdrop"),a=Xs(e);w.useEffect(()=>{if(s.panelRef.current===null)throw new Error("A component is being used, but a component is missing.")},[s.panelRef]);let l=w.useMemo(()=>({open:o===0}),[o]);return te.createElement(bne,{force:!0},te.createElement(Cne,null,Cs({ourProps:{ref:a,id:i,"aria-hidden":!0},theirProps:r,slot:l,defaultTag:nEt,name:"Dialog.Backdrop"})))}let rEt="div";function oEt(n,e){let t=Sl(),{id:i=`headlessui-dialog-panel-${t}`,...r}=n,[{dialogState:o},s]=E3("Dialog.Panel"),a=Xs(e,s.panelRef),l=w.useMemo(()=>({open:o===0}),[o]),c=An(u=>{u.stopPropagation()});return Cs({ourProps:{ref:a,id:i,onClick:c},theirProps:r,slot:l,defaultTag:rEt,name:"Dialog.Panel"})}let sEt="h2";function aEt(n,e){let t=Sl(),{id:i=`headlessui-dialog-title-${t}`,...r}=n,[{dialogState:o,setTitleId:s}]=E3("Dialog.Title"),a=Xs(e);w.useEffect(()=>(s(i),()=>s(null)),[i,s]);let l=w.useMemo(()=>({open:o===0}),[o]);return Cs({ourProps:{ref:a,id:i},theirProps:r,slot:l,defaultTag:sEt,name:"Dialog.Title"})}let lEt=ws(JSt),cEt=ws(iEt),uEt=ws(oEt),dEt=ws(tEt),hEt=ws(aEt),aO=Object.assign(lEt,{Backdrop:cEt,Panel:uEt,Overlay:dEt,Title:hEt,Description:QFe}),xSe=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function kSe(n){var e,t;let i=(e=n.innerText)!=null?e:"",r=n.cloneNode(!0);if(!(r instanceof HTMLElement))return i;let o=!1;for(let a of r.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))a.remove(),o=!0;let s=o?(t=r.innerText)!=null?t:"":i;return xSe.test(s)&&(s=s.replace(xSe,"")),s}function fEt(n){let e=n.getAttribute("aria-label");if(typeof e=="string")return e.trim();let t=n.getAttribute("aria-labelledby");if(t){let i=t.split(" ").map(r=>{let o=document.getElementById(r);if(o){let s=o.getAttribute("aria-label");return typeof s=="string"?s.trim():kSe(o).trim()}return null}).filter(Boolean);if(i.length>0)return i.join(", ")}return kSe(n).trim()}function gEt(n){let e=w.useRef(""),t=w.useRef("");return An(()=>{let i=n.current;if(!i)return"";let r=i.innerText;if(e.current===r)return t.current;let o=fEt(i).trim().toLowerCase();return e.current=r,t.current=o,o})}var pEt=(n=>(n[n.Open=0]="Open",n[n.Closed=1]="Closed",n))(pEt||{}),mEt=(n=>(n[n.Pointer=0]="Pointer",n[n.Other=1]="Other",n))(mEt||{}),_Et=(n=>(n[n.OpenMenu=0]="OpenMenu",n[n.CloseMenu=1]="CloseMenu",n[n.GoToItem=2]="GoToItem",n[n.Search=3]="Search",n[n.ClearSearch=4]="ClearSearch",n[n.RegisterItem=5]="RegisterItem",n[n.UnregisterItem=6]="UnregisterItem",n))(_Et||{});function hQ(n,e=t=>t){let t=n.activeItemIndex!==null?n.items[n.activeItemIndex]:null,i=gfe(e(n.items.slice()),o=>o.dataRef.current.domRef.current),r=t?i.indexOf(t):null;return r===-1&&(r=null),{items:i,activeItemIndex:r}}let vEt={1(n){return n.menuState===1?n:{...n,activeItemIndex:null,menuState:1}},0(n){return n.menuState===0?n:{...n,__demoMode:!1,menuState:0}},2:(n,e)=>{var t;let i=hQ(n),r=RFe(e,{resolveItems:()=>i.items,resolveActiveIndex:()=>i.activeItemIndex,resolveId:o=>o.id,resolveDisabled:o=>o.dataRef.current.disabled});return{...n,...i,searchQuery:"",activeItemIndex:r,activationTrigger:(t=e.trigger)!=null?t:1}},3:(n,e)=>{let t=n.searchQuery!==""?0:1,i=n.searchQuery+e.value.toLowerCase(),r=(n.activeItemIndex!==null?n.items.slice(n.activeItemIndex+t).concat(n.items.slice(0,n.activeItemIndex+t)):n.items).find(s=>{var a;return((a=s.dataRef.current.textValue)==null?void 0:a.startsWith(i))&&!s.dataRef.current.disabled}),o=r?n.items.indexOf(r):-1;return o===-1||o===n.activeItemIndex?{...n,searchQuery:i}:{...n,searchQuery:i,activeItemIndex:o,activationTrigger:1}},4(n){return n.searchQuery===""?n:{...n,searchQuery:"",searchActiveItemIndex:null}},5:(n,e)=>{let t=hQ(n,i=>[...i,{id:e.id,dataRef:e.dataRef}]);return{...n,...t}},6:(n,e)=>{let t=hQ(n,i=>{let r=i.findIndex(o=>o.id===e.id);return r!==-1&&i.splice(r,1),i});return{...n,...t,activationTrigger:1}}},Cfe=w.createContext(null);Cfe.displayName="MenuContext";function jz(n){let e=w.useContext(Cfe);if(e===null){let t=new Error(`<${n} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,jz),t}return e}function bEt(n,e){return cs(e.type,vEt,n,e)}let yEt=w.Fragment;function CEt(n,e){let{__demoMode:t=!1,...i}=n,r=w.useReducer(bEt,{__demoMode:t,menuState:t?0:1,buttonRef:w.createRef(),itemsRef:w.createRef(),items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:o,itemsRef:s,buttonRef:a},l]=r,c=Xs(e);Hz([a,s],(g,p)=>{var m;l({type:1}),Vz(p,$z.Loose)||(g.preventDefault(),(m=a.current)==null||m.focus())},o===0);let u=An(()=>{l({type:1})}),d=w.useMemo(()=>({open:o===0,close:u}),[o,u]),h={ref:c};return te.createElement(Cfe.Provider,{value:r},te.createElement(zz,{value:cs(o,{0:sa.Open,1:sa.Closed})},Cs({ourProps:h,theirProps:i,slot:d,defaultTag:yEt,name:"Menu"})))}let wEt="button";function SEt(n,e){var t;let i=Sl(),{id:r=`headlessui-menu-button-${i}`,...o}=n,[s,a]=jz("Menu.Button"),l=Xs(s.buttonRef,e),c=k0(),u=An(m=>{switch(m.key){case ro.Space:case ro.Enter:case ro.ArrowDown:m.preventDefault(),m.stopPropagation(),a({type:0}),c.nextFrame(()=>a({type:2,focus:ra.First}));break;case ro.ArrowUp:m.preventDefault(),m.stopPropagation(),a({type:0}),c.nextFrame(()=>a({type:2,focus:ra.Last}));break}}),d=An(m=>{switch(m.key){case ro.Space:m.preventDefault();break}}),h=An(m=>{if(X2(m.currentTarget))return m.preventDefault();n.disabled||(s.menuState===0?(a({type:1}),c.nextFrame(()=>{var _;return(_=s.buttonRef.current)==null?void 0:_.focus({preventScroll:!0})})):(m.preventDefault(),a({type:0})))}),g=w.useMemo(()=>({open:s.menuState===0}),[s]),p={ref:l,id:r,type:Wz(n,s.buttonRef),"aria-haspopup":"menu","aria-controls":(t=s.itemsRef.current)==null?void 0:t.id,"aria-expanded":s.menuState===0,onKeyDown:u,onKeyUp:d,onClick:h};return Cs({ourProps:p,theirProps:o,slot:g,defaultTag:wEt,name:"Menu.Button"})}let EEt="div",xEt=Vp.RenderStrategy|Vp.Static;function kEt(n,e){var t,i;let r=Sl(),{id:o=`headlessui-menu-items-${r}`,...s}=n,[a,l]=jz("Menu.Items"),c=Xs(a.itemsRef,e),u=Cb(a.itemsRef),d=k0(),h=_k(),g=(()=>h!==null?(h&sa.Open)===sa.Open:a.menuState===0)();w.useEffect(()=>{let b=a.itemsRef.current;b&&a.menuState===0&&b!==(u==null?void 0:u.activeElement)&&b.focus({preventScroll:!0})},[a.menuState,a.itemsRef,u]),AFe({container:a.itemsRef.current,enabled:a.menuState===0,accept(b){return b.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:b.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(b){b.setAttribute("role","none")}});let p=An(b=>{var y,C;switch(d.dispose(),b.key){case ro.Space:if(a.searchQuery!=="")return b.preventDefault(),b.stopPropagation(),l({type:3,value:b.key});case ro.Enter:if(b.preventDefault(),b.stopPropagation(),l({type:1}),a.activeItemIndex!==null){let{dataRef:x}=a.items[a.activeItemIndex];(C=(y=x.current)==null?void 0:y.domRef.current)==null||C.click()}TFe(a.buttonRef.current);break;case ro.ArrowDown:return b.preventDefault(),b.stopPropagation(),l({type:2,focus:ra.Next});case ro.ArrowUp:return b.preventDefault(),b.stopPropagation(),l({type:2,focus:ra.Previous});case ro.Home:case ro.PageUp:return b.preventDefault(),b.stopPropagation(),l({type:2,focus:ra.First});case ro.End:case ro.PageDown:return b.preventDefault(),b.stopPropagation(),l({type:2,focus:ra.Last});case ro.Escape:b.preventDefault(),b.stopPropagation(),l({type:1}),Cg().nextFrame(()=>{var x;return(x=a.buttonRef.current)==null?void 0:x.focus({preventScroll:!0})});break;case ro.Tab:b.preventDefault(),b.stopPropagation(),l({type:1}),Cg().nextFrame(()=>{xwt(a.buttonRef.current,b.shiftKey?Ou.Previous:Ou.Next)});break;default:b.key.length===1&&(l({type:3,value:b.key}),d.setTimeout(()=>l({type:4}),350));break}}),m=An(b=>{switch(b.key){case ro.Space:b.preventDefault();break}}),_=w.useMemo(()=>({open:a.menuState===0}),[a]),v={"aria-activedescendant":a.activeItemIndex===null||(t=a.items[a.activeItemIndex])==null?void 0:t.id,"aria-labelledby":(i=a.buttonRef.current)==null?void 0:i.id,id:o,onKeyDown:p,onKeyUp:m,role:"menu",tabIndex:0,ref:c};return Cs({ourProps:v,theirProps:s,slot:_,defaultTag:EEt,features:xEt,visible:g,name:"Menu.Items"})}let TEt=w.Fragment;function IEt(n,e){let t=Sl(),{id:i=`headlessui-menu-item-${t}`,disabled:r=!1,...o}=n,[s,a]=jz("Menu.Item"),l=s.activeItemIndex!==null?s.items[s.activeItemIndex].id===i:!1,c=w.useRef(null),u=Xs(e,c);Gs(()=>{if(s.__demoMode||s.menuState!==0||!l||s.activationTrigger===0)return;let x=Cg();return x.requestAnimationFrame(()=>{var k,I;(I=(k=c.current)==null?void 0:k.scrollIntoView)==null||I.call(k,{block:"nearest"})}),x.dispose},[s.__demoMode,c,l,s.menuState,s.activationTrigger,s.activeItemIndex]);let d=gEt(c),h=w.useRef({disabled:r,domRef:c,get textValue(){return d()}});Gs(()=>{h.current.disabled=r},[h,r]),Gs(()=>(a({type:5,id:i,dataRef:h}),()=>a({type:6,id:i})),[h,i]);let g=An(()=>{a({type:1})}),p=An(x=>{if(r)return x.preventDefault();a({type:1}),TFe(s.buttonRef.current)}),m=An(()=>{if(r)return a({type:2,focus:ra.Nothing});a({type:2,focus:ra.Specific,id:i})}),_=BFe(),v=An(x=>_.update(x)),b=An(x=>{_.wasMoved(x)&&(r||l||a({type:2,focus:ra.Specific,id:i,trigger:0}))}),y=An(x=>{_.wasMoved(x)&&(r||l&&a({type:2,focus:ra.Nothing}))}),C=w.useMemo(()=>({active:l,disabled:r,close:g}),[l,r,g]);return Cs({ourProps:{id:i,ref:u,role:"menuitem",tabIndex:r===!0?void 0:-1,"aria-disabled":r===!0?!0:void 0,disabled:void 0,onClick:p,onFocus:m,onPointerEnter:v,onMouseEnter:v,onPointerMove:b,onMouseMove:b,onPointerLeave:y,onMouseLeave:y},theirProps:o,slot:C,defaultTag:TEt,name:"Menu.Item"})}let LEt=ws(CEt),DEt=ws(SEt),AEt=ws(kEt),REt=ws(IEt),K0=Object.assign(LEt,{Button:DEt,Items:AEt,Item:REt});var NEt=(n=>(n[n.Open=0]="Open",n[n.Closed=1]="Closed",n))(NEt||{}),OEt=(n=>(n[n.TogglePopover=0]="TogglePopover",n[n.ClosePopover=1]="ClosePopover",n[n.SetButton=2]="SetButton",n[n.SetButtonId=3]="SetButtonId",n[n.SetPanel=4]="SetPanel",n[n.SetPanelId=5]="SetPanelId",n))(OEt||{});let PEt={0:n=>{let e={...n,popoverState:cs(n.popoverState,{0:1,1:0})};return e.popoverState===0&&(e.__demoMode=!1),e},1(n){return n.popoverState===1?n:{...n,popoverState:1}},2(n,e){return n.button===e.button?n:{...n,button:e.button}},3(n,e){return n.buttonId===e.buttonId?n:{...n,buttonId:e.buttonId}},4(n,e){return n.panel===e.panel?n:{...n,panel:e.panel}},5(n,e){return n.panelId===e.panelId?n:{...n,panelId:e.panelId}}},wfe=w.createContext(null);wfe.displayName="PopoverContext";function Uz(n){let e=w.useContext(wfe);if(e===null){let t=new Error(`<${n} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Uz),t}return e}let Sfe=w.createContext(null);Sfe.displayName="PopoverAPIContext";function Efe(n){let e=w.useContext(Sfe);if(e===null){let t=new Error(`<${n} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Efe),t}return e}let xfe=w.createContext(null);xfe.displayName="PopoverGroupContext";function ZFe(){return w.useContext(xfe)}let qz=w.createContext(null);qz.displayName="PopoverPanelContext";function MEt(){return w.useContext(qz)}function FEt(n,e){return cs(e.type,PEt,n,e)}let BEt="div";function $Et(n,e){var t;let{__demoMode:i=!1,...r}=n,o=w.useRef(null),s=Xs(e,DFe(H=>{o.current=H})),a=w.useRef([]),l=w.useReducer(FEt,{__demoMode:i,popoverState:i?0:1,buttons:a,button:null,buttonId:null,panel:null,panelId:null,beforePanelSentinel:w.createRef(),afterPanelSentinel:w.createRef()}),[{popoverState:c,button:u,buttonId:d,panel:h,panelId:g,beforePanelSentinel:p,afterPanelSentinel:m},_]=l,v=Cb((t=o.current)!=null?t:u),b=w.useMemo(()=>{if(!u||!h)return!1;for(let se of document.querySelectorAll("body > *"))if(Number(se==null?void 0:se.contains(u))^Number(se==null?void 0:se.contains(h)))return!0;let H=C3(),V=H.indexOf(u),$=(V+H.length-1)%H.length,j=(V+1)%H.length,Y=H[$],ne=H[j];return!h.contains(Y)&&!h.contains(ne)},[u,h]),y=ug(d),C=ug(g),x=w.useMemo(()=>({buttonId:y,panelId:C,close:()=>_({type:1})}),[y,C,_]),k=ZFe(),I=k==null?void 0:k.registerPopover,L=An(()=>{var H;return(H=k==null?void 0:k.isFocusWithinPopoverGroup())!=null?H:(v==null?void 0:v.activeElement)&&((u==null?void 0:u.contains(v.activeElement))||(h==null?void 0:h.contains(v.activeElement)))});w.useEffect(()=>I==null?void 0:I(x),[I,x]);let[D,R]=qFe(),P=XFe({mainTreeNodeRef:k==null?void 0:k.mainTreeNodeRef,portals:D,defaultContainers:[u,h]});bfe(v==null?void 0:v.defaultView,"focus",H=>{var V,$,j,Y;H.target!==window&&H.target instanceof HTMLElement&&c===0&&(L()||u&&h&&(P.contains(H.target)||($=(V=p.current)==null?void 0:V.contains)!=null&&$.call(V,H.target)||(Y=(j=m.current)==null?void 0:j.contains)!=null&&Y.call(j,H.target)||_({type:1})))},!0),Hz(P.resolveContainers,(H,V)=>{_({type:1}),Vz(V,$z.Loose)||(H.preventDefault(),u==null||u.focus())},c===0);let M=An(H=>{_({type:1});let V=(()=>H?H instanceof HTMLElement?H:"current"in H&&H.current instanceof HTMLElement?H.current:u:u)();V==null||V.focus()}),O=w.useMemo(()=>({close:M,isPortalled:b}),[M,b]),B=w.useMemo(()=>({open:c===0,close:M}),[c,M]),F={ref:s};return te.createElement(qz.Provider,{value:null},te.createElement(wfe.Provider,{value:l},te.createElement(Sfe.Provider,{value:O},te.createElement(zz,{value:cs(c,{0:sa.Open,1:sa.Closed})},te.createElement(R,null,Cs({ourProps:F,theirProps:r,slot:B,defaultTag:BEt,name:"Popover"}),te.createElement(P.MainTreeNode,null))))))}let VEt="button";function HEt(n,e){let t=Sl(),{id:i=`headlessui-popover-button-${t}`,...r}=n,[o,s]=Uz("Popover.Button"),{isPortalled:a}=Efe("Popover.Button"),l=w.useRef(null),c=`headlessui-focus-sentinel-${Sl()}`,u=ZFe(),d=u==null?void 0:u.closeOthers,h=MEt()!==null;w.useEffect(()=>{if(!h)return s({type:3,buttonId:i}),()=>{s({type:3,buttonId:null})}},[h,i,s]);let[g]=w.useState(()=>Symbol()),p=Xs(l,e,h?null:P=>{if(P)o.buttons.current.push(g);else{let M=o.buttons.current.indexOf(g);M!==-1&&o.buttons.current.splice(M,1)}o.buttons.current.length>1&&console.warn("You are already using a but only 1 is supported."),P&&s({type:2,button:P})}),m=Xs(l,e),_=Cb(l),v=An(P=>{var M,O,B;if(h){if(o.popoverState===1)return;switch(P.key){case ro.Space:case ro.Enter:P.preventDefault(),(O=(M=P.target).click)==null||O.call(M),s({type:1}),(B=o.button)==null||B.focus();break}}else switch(P.key){case ro.Space:case ro.Enter:P.preventDefault(),P.stopPropagation(),o.popoverState===1&&(d==null||d(o.buttonId)),s({type:0});break;case ro.Escape:if(o.popoverState!==0)return d==null?void 0:d(o.buttonId);if(!l.current||_!=null&&_.activeElement&&!l.current.contains(_.activeElement))return;P.preventDefault(),P.stopPropagation(),s({type:1});break}}),b=An(P=>{h||P.key===ro.Space&&P.preventDefault()}),y=An(P=>{var M,O;X2(P.currentTarget)||n.disabled||(h?(s({type:1}),(M=o.button)==null||M.focus()):(P.preventDefault(),P.stopPropagation(),o.popoverState===1&&(d==null||d(o.buttonId)),s({type:0}),(O=o.button)==null||O.focus()))}),C=An(P=>{P.preventDefault(),P.stopPropagation()}),x=o.popoverState===0,k=w.useMemo(()=>({open:x}),[x]),I=Wz(n,l),L=h?{ref:m,type:I,onKeyDown:v,onClick:y}:{ref:p,id:o.buttonId,type:I,"aria-expanded":o.popoverState===0,"aria-controls":o.panel?o.panelId:void 0,onKeyDown:v,onKeyUp:b,onClick:y,onMouseDown:C},D=vfe(),R=An(()=>{let P=o.panel;if(!P)return;function M(){cs(D.current,{[Jf.Forwards]:()=>pp(P,Ou.First),[Jf.Backwards]:()=>pp(P,Ou.Last)})===$P.Error&&pp(C3().filter(O=>O.dataset.headlessuiFocusGuard!=="true"),cs(D.current,{[Jf.Forwards]:Ou.Next,[Jf.Backwards]:Ou.Previous}),{relativeTo:o.button})}M()});return te.createElement(te.Fragment,null,Cs({ourProps:L,theirProps:r,slot:k,defaultTag:VEt,name:"Popover.Button"}),x&&!h&&a&&te.createElement(g0,{id:c,features:nb.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:R}))}let WEt="div",zEt=Vp.RenderStrategy|Vp.Static;function jEt(n,e){let t=Sl(),{id:i=`headlessui-popover-overlay-${t}`,...r}=n,[{popoverState:o},s]=Uz("Popover.Overlay"),a=Xs(e),l=_k(),c=(()=>l!==null?(l&sa.Open)===sa.Open:o===0)(),u=An(h=>{if(X2(h.currentTarget))return h.preventDefault();s({type:1})}),d=w.useMemo(()=>({open:o===0}),[o]);return Cs({ourProps:{ref:a,id:i,"aria-hidden":!0,onClick:u},theirProps:r,slot:d,defaultTag:WEt,features:zEt,visible:c,name:"Popover.Overlay"})}let UEt="div",qEt=Vp.RenderStrategy|Vp.Static;function KEt(n,e){let t=Sl(),{id:i=`headlessui-popover-panel-${t}`,focus:r=!1,...o}=n,[s,a]=Uz("Popover.Panel"),{close:l,isPortalled:c}=Efe("Popover.Panel"),u=`headlessui-focus-sentinel-before-${Sl()}`,d=`headlessui-focus-sentinel-after-${Sl()}`,h=w.useRef(null),g=Xs(h,e,I=>{a({type:4,panel:I})}),p=Cb(h);Gs(()=>(a({type:5,panelId:i}),()=>{a({type:5,panelId:null})}),[i,a]);let m=_k(),_=(()=>m!==null?(m&sa.Open)===sa.Open:s.popoverState===0)(),v=An(I=>{var L;switch(I.key){case ro.Escape:if(s.popoverState!==0||!h.current||p!=null&&p.activeElement&&!h.current.contains(p.activeElement))return;I.preventDefault(),I.stopPropagation(),a({type:1}),(L=s.button)==null||L.focus();break}});w.useEffect(()=>{var I;n.static||s.popoverState===1&&((I=n.unmount)==null||I)&&a({type:4,panel:null})},[s.popoverState,n.unmount,n.static,a]),w.useEffect(()=>{if(s.__demoMode||!r||s.popoverState!==0||!h.current)return;let I=p==null?void 0:p.activeElement;h.current.contains(I)||pp(h.current,Ou.First)},[s.__demoMode,r,h,s.popoverState]);let b=w.useMemo(()=>({open:s.popoverState===0,close:l}),[s,l]),y={ref:g,id:i,onKeyDown:v,onBlur:r&&s.popoverState===0?I=>{var L,D,R,P,M;let O=I.relatedTarget;O&&h.current&&((L=h.current)!=null&&L.contains(O)||(a({type:1}),((R=(D=s.beforePanelSentinel.current)==null?void 0:D.contains)!=null&&R.call(D,O)||(M=(P=s.afterPanelSentinel.current)==null?void 0:P.contains)!=null&&M.call(P,O))&&O.focus({preventScroll:!0})))}:void 0,tabIndex:-1},C=vfe(),x=An(()=>{let I=h.current;if(!I)return;function L(){cs(C.current,{[Jf.Forwards]:()=>{var D;pp(I,Ou.First)===$P.Error&&((D=s.afterPanelSentinel.current)==null||D.focus())},[Jf.Backwards]:()=>{var D;(D=s.button)==null||D.focus({preventScroll:!0})}})}L()}),k=An(()=>{let I=h.current;if(!I)return;function L(){cs(C.current,{[Jf.Forwards]:()=>{var D;if(!s.button)return;let R=C3(),P=R.indexOf(s.button),M=R.slice(0,P+1),O=[...R.slice(P+1),...M];for(let B of O.slice())if(B.dataset.headlessuiFocusGuard==="true"||(D=s.panel)!=null&&D.contains(B)){let F=O.indexOf(B);F!==-1&&O.splice(F,1)}pp(O,Ou.First,{sorted:!1})},[Jf.Backwards]:()=>{var D;pp(I,Ou.Previous)===$P.Error&&((D=s.button)==null||D.focus())}})}L()});return te.createElement(qz.Provider,{value:i},_&&c&&te.createElement(g0,{id:u,ref:s.beforePanelSentinel,features:nb.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:x}),Cs({ourProps:y,theirProps:o,slot:b,defaultTag:UEt,features:qEt,visible:_,name:"Popover.Panel"}),_&&c&&te.createElement(g0,{id:d,ref:s.afterPanelSentinel,features:nb.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:k}))}let GEt="div";function YEt(n,e){let t=w.useRef(null),i=Xs(t,e),[r,o]=w.useState([]),s=USt(),a=An(m=>{o(_=>{let v=_.indexOf(m);if(v!==-1){let b=_.slice();return b.splice(v,1),b}return _})}),l=An(m=>(o(_=>[..._,m]),()=>a(m))),c=An(()=>{var m;let _=y3(t);if(!_)return!1;let v=_.activeElement;return(m=t.current)!=null&&m.contains(v)?!0:r.some(b=>{var y,C;return((y=_.getElementById(b.buttonId.current))==null?void 0:y.contains(v))||((C=_.getElementById(b.panelId.current))==null?void 0:C.contains(v))})}),u=An(m=>{for(let _ of r)_.buttonId.current!==m&&_.close()}),d=w.useMemo(()=>({registerPopover:l,unregisterPopover:a,isFocusWithinPopoverGroup:c,closeOthers:u,mainTreeNodeRef:s.mainTreeNodeRef}),[l,a,c,u,s.mainTreeNodeRef]),h=w.useMemo(()=>({}),[]),g=n,p={ref:i};return te.createElement(xfe.Provider,{value:d},Cs({ourProps:p,theirProps:g,slot:h,defaultTag:GEt,name:"Popover.Group"}),te.createElement(s.MainTreeNode,null))}let QEt=ws($Et),XEt=ws(HEt),ZEt=ws(jEt),JEt=ws(KEt),ext=ws(YEt),fQ=Object.assign(QEt,{Button:XEt,Overlay:ZEt,Panel:JEt,Group:ext});function txt(n=0){let[e,t]=w.useState(n),i=S3(),r=w.useCallback(l=>{i.current&&t(c=>c|l)},[e,i]),o=w.useCallback(l=>!!(e&l),[e]),s=w.useCallback(l=>{i.current&&t(c=>c&~l)},[t,i]),a=w.useCallback(l=>{i.current&&t(c=>c^l)},[t]);return{flags:e,addFlag:r,hasFlag:o,removeFlag:s,toggleFlag:a}}let JFe=w.createContext(null);function e6e(){let n=w.useContext(JFe);if(n===null){let e=new Error("You used a