diff --git a/dependabot/npm_and_yarn/vite-d4fe43cea2/.htaccess b/dependabot/npm_and_yarn/vite-d4fe43cea2/.htaccess new file mode 100644 index 00000000..680e1a5e --- /dev/null +++ b/dependabot/npm_and_yarn/vite-d4fe43cea2/.htaccess @@ -0,0 +1,16 @@ +RewriteEngine on +RewriteBase / + +# do not do anything for already existing files +RewriteCond %{REQUEST_FILENAME} -f [OR] +RewriteCond %{REQUEST_FILENAME} -l [OR] +RewriteCond %{REQUEST_FILENAME} -d +RewriteRule (.*) - [L] + +# if request is no valid file NOR directory +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d +# if static asset do not do anything +RewriteRule (.*)(css|js|html|png|jpe?g|gif|bmp|ico|json|csv|otf|eot|svg|svgz|ttf|woff|woff2|ijmap|pdf|tif|map) - [NC,L,R=404] +# everything else should be redirected to /index.html so it can be routed by it +RewriteRule (.*) /index.html [L] diff --git a/dependabot/npm_and_yarn/vite-d4fe43cea2/assets/index-B1tNf8e9.js b/dependabot/npm_and_yarn/vite-d4fe43cea2/assets/index-B1tNf8e9.js new file mode 100644 index 00000000..0402ab27 --- /dev/null +++ b/dependabot/npm_and_yarn/vite-d4fe43cea2/assets/index-B1tNf8e9.js @@ -0,0 +1,840 @@ +var sq=Object.defineProperty;var lq=(e,t,n)=>t in e?sq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ec=(e,t,n)=>lq(e,typeof t!="symbol"?t+"":t,n);function uq(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Lv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Nt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var i1={exports:{}},nh={},o1={exports:{}},Ct={};/** + * @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 q3;function cq(){if(q3)return Ct;q3=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.iterator;function v(z){return z===null||typeof z!="object"?null:(z=p&&z[p]||z["@@iterator"],typeof z=="function"?z:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,_={};function w(z,ne,X){this.props=z,this.context=ne,this.refs=_,this.updater=X||b}w.prototype.isReactComponent={},w.prototype.setState=function(z,ne){if(typeof z!="object"&&typeof z!="function"&&z!=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,z,ne,"setState")},w.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function O(){}O.prototype=w.prototype;function P(z,ne,X){this.props=z,this.context=ne,this.refs=_,this.updater=X||b}var E=P.prototype=new O;E.constructor=P,x(E,w.prototype),E.isPureReactComponent=!0;var T=Array.isArray,A=Object.prototype.hasOwnProperty,j={current:null},N={key:!0,ref:!0,__self:!0,__source:!0};function $(z,ne,X){var le,ce={},de=null,be=null;if(ne!=null)for(le in ne.ref!==void 0&&(be=ne.ref),ne.key!==void 0&&(de=""+ne.key),ne)A.call(ne,le)&&!N.hasOwnProperty(le)&&(ce[le]=ne[le]);var M=arguments.length-2;if(M===1)ce.children=X;else if(1>>1,ne=oe[z];if(0>>1;zi(ce,G))dei(be,ce)?(oe[z]=be,oe[de]=G,z=de):(oe[z]=ce,oe[le]=G,z=le);else if(dei(be,G))oe[z]=be,oe[de]=G,z=de;else break e}}return K}function i(oe,K){var G=oe.sortIndex-K.sortIndex;return G!==0?G:oe.id-K.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var c=[],u=[],h=1,p=null,v=3,b=!1,x=!1,_=!1,w=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function E(oe){for(var K=n(u);K!==null;){if(K.callback===null)r(u);else if(K.startTime<=oe)r(u),K.sortIndex=K.expirationTime,t(c,K);else break;K=n(u)}}function T(oe){if(_=!1,E(oe),!x)if(n(c)!==null)x=!0,ae(A);else{var K=n(u);K!==null&&se(T,K.startTime-oe)}}function A(oe,K){x=!1,_&&(_=!1,O($),$=-1),b=!0;var G=v;try{for(E(K),p=n(c);p!==null&&(!(p.expirationTime>K)||oe&&!V());){var z=p.callback;if(typeof z=="function"){p.callback=null,v=p.priorityLevel;var ne=z(p.expirationTime<=K);K=e.unstable_now(),typeof ne=="function"?p.callback=ne:p===n(c)&&r(c),E(K)}else r(c);p=n(c)}if(p!==null)var X=!0;else{var le=n(u);le!==null&&se(T,le.startTime-K),X=!1}return X}finally{p=null,v=G,b=!1}}var j=!1,N=null,$=-1,W=5,B=-1;function V(){return!(e.unstable_now()-Boe||125z?(oe.sortIndex=G,t(u,oe),n(c)===null&&oe===n(u)&&(_?(O($),$=-1):_=!0,se(T,G-z))):(oe.sortIndex=ne,t(c,oe),x||b||(x=!0,ae(A))),oe},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(oe){var K=v;return function(){var G=v;v=K;try{return oe.apply(this,arguments)}finally{v=G}}}}(l1)),l1}var Z3;function pq(){return Z3||(Z3=1,s1.exports=hq()),s1.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 X3;function mq(){if(X3)return zr;X3=1;var e=x0(),t=pq();function n(l){for(var d="https://reactjs.org/docs/error-decoder.html?invariant="+l,y=1;y"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),c=Object.prototype.hasOwnProperty,u=/^[: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]*$/,h={},p={};function v(l){return c.call(p,l)?!0:c.call(h,l)?!1:u.test(l)?p[l]=!0:(h[l]=!0,!1)}function b(l,d,y,C){if(y!==null&&y.type===0)return!1;switch(typeof d){case"function":case"symbol":return!0;case"boolean":return C?!1:y!==null?!y.acceptsBooleans:(l=l.toLowerCase().slice(0,5),l!=="data-"&&l!=="aria-");default:return!1}}function x(l,d,y,C){if(d===null||typeof d>"u"||b(l,d,y,C))return!0;if(C)return!1;if(y!==null)switch(y.type){case 3:return!d;case 4:return d===!1;case 5:return isNaN(d);case 6:return isNaN(d)||1>d}return!1}function _(l,d,y,C,R,I,ee){this.acceptsBooleans=d===2||d===3||d===4,this.attributeName=C,this.attributeNamespace=R,this.mustUseProperty=y,this.propertyName=l,this.type=d,this.sanitizeURL=I,this.removeEmptyString=ee}var w={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(l){w[l]=new _(l,0,!1,l,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(l){var d=l[0];w[d]=new _(d,1,!1,l[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(l){w[l]=new _(l,2,!1,l.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(l){w[l]=new _(l,2,!1,l,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(l){w[l]=new _(l,3,!1,l.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(l){w[l]=new _(l,3,!0,l,null,!1,!1)}),["capture","download"].forEach(function(l){w[l]=new _(l,4,!1,l,null,!1,!1)}),["cols","rows","size","span"].forEach(function(l){w[l]=new _(l,6,!1,l,null,!1,!1)}),["rowSpan","start"].forEach(function(l){w[l]=new _(l,5,!1,l.toLowerCase(),null,!1,!1)});var O=/[\-:]([a-z])/g;function P(l){return l[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(l){var d=l.replace(O,P);w[d]=new _(d,1,!1,l,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(l){var d=l.replace(O,P);w[d]=new _(d,1,!1,l,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(l){var d=l.replace(O,P);w[d]=new _(d,1,!1,l,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(l){w[l]=new _(l,1,!1,l.toLowerCase(),null,!1,!1)}),w.xlinkHref=new _("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(l){w[l]=new _(l,1,!1,l.toLowerCase(),null,!0,!0)});function E(l,d,y,C){var R=w.hasOwnProperty(d)?w[d]:null;(R!==null?R.type!==0:C||!(2fe||R[ee]!==I[fe]){var me=` +`+R[ee].replace(" at new "," at ");return l.displayName&&me.includes("")&&(me=me.replace("",l.displayName)),me}while(1<=ee&&0<=fe);break}}}finally{X=!1,Error.prepareStackTrace=y}return(l=l?l.displayName||l.name:"")?ne(l):""}function ce(l){switch(l.tag){case 5:return ne(l.type);case 16:return ne("Lazy");case 13:return ne("Suspense");case 19:return ne("SuspenseList");case 0:case 2:case 15:return l=le(l.type,!1),l;case 11:return l=le(l.type.render,!1),l;case 1:return l=le(l.type,!0),l;default:return""}}function de(l){if(l==null)return null;if(typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case N:return"Fragment";case j:return"Portal";case W:return"Profiler";case $:return"StrictMode";case J:return"Suspense";case Q:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case V:return(l.displayName||"Context")+".Consumer";case B:return(l._context.displayName||"Context")+".Provider";case H:var d=l.render;return l=l.displayName,l||(l=d.displayName||d.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case re:return d=l.displayName||null,d!==null?d:de(l.type)||"Memo";case ae:d=l._payload,l=l._init;try{return de(l(d))}catch{}}return null}function be(l){var d=l.type;switch(l.tag){case 24:return"Cache";case 9:return(d.displayName||"Context")+".Consumer";case 10:return(d._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return l=d.render,l=l.displayName||l.name||"",d.displayName||(l!==""?"ForwardRef("+l+")":"ForwardRef");case 7:return"Fragment";case 5:return d;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return de(d);case 8:return d===$?"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 d=="function")return d.displayName||d.name||null;if(typeof d=="string")return d}return null}function M(l){switch(typeof l){case"boolean":case"number":case"string":case"undefined":return l;case"object":return l;default:return""}}function D(l){var d=l.type;return(l=l.nodeName)&&l.toLowerCase()==="input"&&(d==="checkbox"||d==="radio")}function Y(l){var d=D(l)?"checked":"value",y=Object.getOwnPropertyDescriptor(l.constructor.prototype,d),C=""+l[d];if(!l.hasOwnProperty(d)&&typeof y<"u"&&typeof y.get=="function"&&typeof y.set=="function"){var R=y.get,I=y.set;return Object.defineProperty(l,d,{configurable:!0,get:function(){return R.call(this)},set:function(ee){C=""+ee,I.call(this,ee)}}),Object.defineProperty(l,d,{enumerable:y.enumerable}),{getValue:function(){return C},setValue:function(ee){C=""+ee},stopTracking:function(){l._valueTracker=null,delete l[d]}}}}function ue(l){l._valueTracker||(l._valueTracker=Y(l))}function ie(l){if(!l)return!1;var d=l._valueTracker;if(!d)return!0;var y=d.getValue(),C="";return l&&(C=D(l)?l.checked?"true":"false":l.value),l=C,l!==y?(d.setValue(l),!0):!1}function he(l){if(l=l||(typeof document<"u"?document:void 0),typeof l>"u")return null;try{return l.activeElement||l.body}catch{return l.body}}function Se(l,d){var y=d.checked;return G({},d,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:y??l._wrapperState.initialChecked})}function Fe(l,d){var y=d.defaultValue==null?"":d.defaultValue,C=d.checked!=null?d.checked:d.defaultChecked;y=M(d.value!=null?d.value:y),l._wrapperState={initialChecked:C,initialValue:y,controlled:d.type==="checkbox"||d.type==="radio"?d.checked!=null:d.value!=null}}function ge(l,d){d=d.checked,d!=null&&E(l,"checked",d,!1)}function Ee(l,d){ge(l,d);var y=M(d.value),C=d.type;if(y!=null)C==="number"?(y===0&&l.value===""||l.value!=y)&&(l.value=""+y):l.value!==""+y&&(l.value=""+y);else if(C==="submit"||C==="reset"){l.removeAttribute("value");return}d.hasOwnProperty("value")?Me(l,d.type,y):d.hasOwnProperty("defaultValue")&&Me(l,d.type,M(d.defaultValue)),d.checked==null&&d.defaultChecked!=null&&(l.defaultChecked=!!d.defaultChecked)}function je(l,d,y){if(d.hasOwnProperty("value")||d.hasOwnProperty("defaultValue")){var C=d.type;if(!(C!=="submit"&&C!=="reset"||d.value!==void 0&&d.value!==null))return;d=""+l._wrapperState.initialValue,y||d===l.value||(l.value=d),l.defaultValue=d}y=l.name,y!==""&&(l.name=""),l.defaultChecked=!!l._wrapperState.initialChecked,y!==""&&(l.name=y)}function Me(l,d,y){(d!=="number"||he(l.ownerDocument)!==l)&&(y==null?l.defaultValue=""+l._wrapperState.initialValue:l.defaultValue!==""+y&&(l.defaultValue=""+y))}var He=Array.isArray;function Ue(l,d,y,C){if(l=l.options,d){d={};for(var R=0;R"+d.valueOf().toString()+"",d=Ke.firstChild;l.firstChild;)l.removeChild(l.firstChild);for(;d.firstChild;)l.appendChild(d.firstChild)}});function bt(l,d){if(d){var y=l.firstChild;if(y&&y===l.lastChild&&y.nodeType===3){y.nodeValue=d;return}}l.textContent=d}var Ot={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},xt=["Webkit","ms","Moz","O"];Object.keys(Ot).forEach(function(l){xt.forEach(function(d){d=d+l.charAt(0).toUpperCase()+l.substring(1),Ot[d]=Ot[l]})});function en(l,d,y){return d==null||typeof d=="boolean"||d===""?"":y||typeof d!="number"||d===0||Ot.hasOwnProperty(l)&&Ot[l]?(""+d).trim():d+"px"}function Gt(l,d){l=l.style;for(var y in d)if(d.hasOwnProperty(y)){var C=y.indexOf("--")===0,R=en(y,d[y],C);y==="float"&&(y="cssFloat"),C?l.setProperty(y,R):l[y]=R}}var kn=G({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 Dn(l,d){if(d){if(kn[l]&&(d.children!=null||d.dangerouslySetInnerHTML!=null))throw Error(n(137,l));if(d.dangerouslySetInnerHTML!=null){if(d.children!=null)throw Error(n(60));if(typeof d.dangerouslySetInnerHTML!="object"||!("__html"in d.dangerouslySetInnerHTML))throw Error(n(61))}if(d.style!=null&&typeof d.style!="object")throw Error(n(62))}}function Nr(l,d){if(l.indexOf("-")===-1)return typeof d.is=="string";switch(l){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 En=null;function ua(l){return l=l.target||l.srcElement||window,l.correspondingUseElement&&(l=l.correspondingUseElement),l.nodeType===3?l.parentNode:l}var Mr=null,to=null,no=null;function xl(l){if(l=xa(l)){if(typeof Mr!="function")throw Error(n(280));var d=l.stateNode;d&&(d=dc(d),Mr(l.stateNode,l.type,d))}}function rs(l){to?no?no.push(l):no=[l]:to=l}function ko(){if(to){var l=to,d=no;if(no=to=null,xl(l),d)for(l=0;l>>=0,l===0?32:31-(tn(l)/Wu|0)|0}var ro=64,as=4194304;function gt(l){switch(l&-l){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 l&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return l&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return l}}function Kt(l,d){var y=l.pendingLanes;if(y===0)return 0;var C=0,R=l.suspendedLanes,I=l.pingedLanes,ee=y&268435455;if(ee!==0){var fe=ee&~R;fe!==0?C=gt(fe):(I&=ee,I!==0&&(C=gt(I)))}else ee=y&~R,ee!==0?C=gt(ee):I!==0&&(C=gt(I));if(C===0)return 0;if(d!==0&&d!==C&&!(d&R)&&(R=C&-C,I=d&-d,R>=I||R===16&&(I&4194240)!==0))return d;if(C&4&&(C|=y&16),d=l.entangledLanes,d!==0)for(l=l.entanglements,d&=C;0y;y++)d.push(l);return d}function ei(l,d,y){l.pendingLanes|=d,d!==536870912&&(l.suspendedLanes=0,l.pingedLanes=0),l=l.eventTimes,d=31-wt(d),l[d]=y}function On(l,d){var y=l.pendingLanes&~d;l.pendingLanes=d,l.suspendedLanes=0,l.pingedLanes=0,l.expiredLanes&=d,l.mutableReadLanes&=d,l.entangledLanes&=d,d=l.entanglements;var C=l.eventTimes;for(l=l.expirationTimes;0=kl),ga=" ",Fm=!1;function hs(l,d){switch(l){case"keyup":return ii.indexOf(d.keyCode)!==-1;case"keydown":return d.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ad(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var so=!1;function Yb(l,d){switch(l){case"compositionend":return Ad(d);case"keypress":return d.which!==32?null:(Fm=!0,ga);case"textInput":return l=d.data,l===ga&&Fm?null:l;default:return null}}function Io(l,d){if(so)return l==="compositionend"||!Lo&&hs(l,d)?(l=xd(),Mo=yr=No=null,so=!1,l):null;switch(l){case"paste":return null;case"keypress":if(!(d.ctrlKey||d.altKey||d.metaKey)||d.ctrlKey&&d.altKey){if(d.char&&1=d)return{node:y,offset:d-l};l=C}e:{for(;y;){if(y.nextSibling){y=y.nextSibling;break e}y=y.parentNode}y=void 0}y=zm(y)}}function Vm(l,d){return l&&d?l===d?!0:l&&l.nodeType===3?!1:d&&d.nodeType===3?Vm(l,d.parentNode):"contains"in l?l.contains(d):l.compareDocumentPosition?!!(l.compareDocumentPosition(d)&16):!1:!1}function Nd(){for(var l=window,d=he();d instanceof l.HTMLIFrameElement;){try{var y=typeof d.contentWindow.location.href=="string"}catch{y=!1}if(y)l=d.contentWindow;else break;d=he(l.document)}return d}function Md(l){var d=l&&l.nodeName&&l.nodeName.toLowerCase();return d&&(d==="input"&&(l.type==="text"||l.type==="search"||l.type==="tel"||l.type==="url"||l.type==="password")||d==="textarea"||l.contentEditable==="true")}function Ti(l){var d=Nd(),y=l.focusedElem,C=l.selectionRange;if(d!==y&&y&&y.ownerDocument&&Vm(y.ownerDocument.documentElement,y)){if(C!==null&&Md(y)){if(d=C.start,l=C.end,l===void 0&&(l=d),"selectionStart"in y)y.selectionStart=d,y.selectionEnd=Math.min(l,y.value.length);else if(l=(d=y.ownerDocument||document)&&d.defaultView||window,l.getSelection){l=l.getSelection();var R=y.textContent.length,I=Math.min(C.start,R);C=C.end===void 0?I:Math.min(C.end,R),!l.extend&&I>C&&(R=C,C=I,I=R),R=Rd(y,I);var ee=Rd(y,C);R&&ee&&(l.rangeCount!==1||l.anchorNode!==R.node||l.anchorOffset!==R.offset||l.focusNode!==ee.node||l.focusOffset!==ee.offset)&&(d=d.createRange(),d.setStart(R.node,R.offset),l.removeAllRanges(),I>C?(l.addRange(d),l.extend(ee.node,ee.offset)):(d.setEnd(ee.node,ee.offset),l.addRange(d)))}}for(d=[],l=y;l=l.parentNode;)l.nodeType===1&&d.push({element:l,left:l.scrollLeft,top:l.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y=document.documentMode,vs=null,gs=null,Ml=null,cc=!1;function Wm(l,d,y){var C=y.window===y?y.document:y.nodeType===9?y:y.ownerDocument;cc||vs==null||vs!==he(C)||(C=vs,"selectionStart"in C&&Md(C)?C={start:C.selectionStart,end:C.selectionEnd}:(C=(C.ownerDocument&&C.ownerDocument.defaultView||window).getSelection(),C={anchorNode:C.anchorNode,anchorOffset:C.anchorOffset,focusNode:C.focusNode,focusOffset:C.focusOffset}),Ml&&Do(Ml,C)||(Ml=C,C=S(gs,"onSelect"),0hc||(l.current=t_[hc],t_[hc]=null,hc--)}function Yt(l,d){hc++,t_[hc]=l.current,l.current=d}var Cs={},fr=Ps(Cs),Dr=Ps(!1),Dl=Cs;function pc(l,d){var y=l.type.contextTypes;if(!y)return Cs;var C=l.stateNode;if(C&&C.__reactInternalMemoizedUnmaskedChildContext===d)return C.__reactInternalMemoizedMaskedChildContext;var R={},I;for(I in y)R[I]=d[I];return C&&(l=l.stateNode,l.__reactInternalMemoizedUnmaskedChildContext=d,l.__reactInternalMemoizedMaskedChildContext=R),R}function $r(l){return l=l.childContextTypes,l!=null}function Xm(){nn(Dr),nn(fr)}function hA(l,d,y){if(fr.current!==Cs)throw Error(n(168));Yt(fr,d),Yt(Dr,y)}function pA(l,d,y){var C=l.stateNode;if(d=d.childContextTypes,typeof C.getChildContext!="function")return y;C=C.getChildContext();for(var R in C)if(!(R in d))throw Error(n(108,be(l)||"Unknown",R));return G({},y,C)}function Qm(l){return l=(l=l.stateNode)&&l.__reactInternalMemoizedMergedChildContext||Cs,Dl=fr.current,Yt(fr,l),Yt(Dr,Dr.current),!0}function mA(l,d,y){var C=l.stateNode;if(!C)throw Error(n(169));y?(l=pA(l,d,Dl),C.__reactInternalMemoizedMergedChildContext=l,nn(Dr),nn(fr),Yt(fr,l)):nn(Dr),Yt(Dr,y)}var Oa=null,Jm=!1,n_=!1;function vA(l){Oa===null?Oa=[l]:Oa.push(l)}function CW(l){Jm=!0,vA(l)}function Es(){if(!n_&&Oa!==null){n_=!0;var l=0,d=kt;try{var y=Oa;for(kt=1;l>=ee,R-=ee,Sa=1<<32-wt(d)+R|y<vt?(Yn=ut,ut=null):Yn=ut.sibling;var Lt=Le(xe,ut,Oe[vt],We);if(Lt===null){ut===null&&(ut=Yn);break}l&&ut&&Lt.alternate===null&&d(xe,ut),ve=I(Lt,ve,vt),lt===null?ot=Lt:lt.sibling=Lt,lt=Lt,ut=Yn}if(vt===Oe.length)return y(xe,ut),ln&&Fl(xe,vt),ot;if(ut===null){for(;vtvt?(Yn=ut,ut=null):Yn=ut.sibling;var Is=Le(xe,ut,Lt.value,We);if(Is===null){ut===null&&(ut=Yn);break}l&&ut&&Is.alternate===null&&d(xe,ut),ve=I(Is,ve,vt),lt===null?ot=Is:lt.sibling=Is,lt=Is,ut=Yn}if(Lt.done)return y(xe,ut),ln&&Fl(xe,vt),ot;if(ut===null){for(;!Lt.done;vt++,Lt=Oe.next())Lt=$e(xe,Lt.value,We),Lt!==null&&(ve=I(Lt,ve,vt),lt===null?ot=Lt:lt.sibling=Lt,lt=Lt);return ln&&Fl(xe,vt),ot}for(ut=C(xe,ut);!Lt.done;vt++,Lt=Oe.next())Lt=Qe(ut,xe,vt,Lt.value,We),Lt!==null&&(l&&Lt.alternate!==null&&ut.delete(Lt.key===null?vt:Lt.key),ve=I(Lt,ve,vt),lt===null?ot=Lt:lt.sibling=Lt,lt=Lt);return l&&ut.forEach(function(aq){return d(xe,aq)}),ln&&Fl(xe,vt),ot}function Tn(xe,ve,Oe,We){if(typeof Oe=="object"&&Oe!==null&&Oe.type===N&&Oe.key===null&&(Oe=Oe.props.children),typeof Oe=="object"&&Oe!==null){switch(Oe.$$typeof){case A:e:{for(var ot=Oe.key,lt=ve;lt!==null;){if(lt.key===ot){if(ot=Oe.type,ot===N){if(lt.tag===7){y(xe,lt.sibling),ve=R(lt,Oe.props.children),ve.return=xe,xe=ve;break e}}else if(lt.elementType===ot||typeof ot=="object"&&ot!==null&&ot.$$typeof===ae&&wA(ot)===lt.type){y(xe,lt.sibling),ve=R(lt,Oe.props),ve.ref=zd(xe,lt,Oe),ve.return=xe,xe=ve;break e}y(xe,lt);break}else d(xe,lt);lt=lt.sibling}Oe.type===N?(ve=Gl(Oe.props.children,xe.mode,We,Oe.key),ve.return=xe,xe=ve):(We=Ev(Oe.type,Oe.key,Oe.props,null,xe.mode,We),We.ref=zd(xe,ve,Oe),We.return=xe,xe=We)}return ee(xe);case j:e:{for(lt=Oe.key;ve!==null;){if(ve.key===lt)if(ve.tag===4&&ve.stateNode.containerInfo===Oe.containerInfo&&ve.stateNode.implementation===Oe.implementation){y(xe,ve.sibling),ve=R(ve,Oe.children||[]),ve.return=xe,xe=ve;break e}else{y(xe,ve);break}else d(xe,ve);ve=ve.sibling}ve=J_(Oe,xe.mode,We),ve.return=xe,xe=ve}return ee(xe);case ae:return lt=Oe._init,Tn(xe,ve,lt(Oe._payload),We)}if(He(Oe))return tt(xe,ve,Oe,We);if(K(Oe))return nt(xe,ve,Oe,We);rv(xe,Oe)}return typeof Oe=="string"&&Oe!==""||typeof Oe=="number"?(Oe=""+Oe,ve!==null&&ve.tag===6?(y(xe,ve.sibling),ve=R(ve,Oe),ve.return=xe,xe=ve):(y(xe,ve),ve=Q_(Oe,xe.mode,We),ve.return=xe,xe=ve),ee(xe)):y(xe,ve)}return Tn}var yc=OA(!0),SA=OA(!1),iv=Ps(null),ov=null,bc=null,l_=null;function u_(){l_=bc=ov=null}function c_(l){var d=iv.current;nn(iv),l._currentValue=d}function f_(l,d,y){for(;l!==null;){var C=l.alternate;if((l.childLanes&d)!==d?(l.childLanes|=d,C!==null&&(C.childLanes|=d)):C!==null&&(C.childLanes&d)!==d&&(C.childLanes|=d),l===y)break;l=l.return}}function _c(l,d){ov=l,l_=bc=null,l=l.dependencies,l!==null&&l.firstContext!==null&&(l.lanes&d&&(Fr=!0),l.firstContext=null)}function Ni(l){var d=l._currentValue;if(l_!==l)if(l={context:l,memoizedValue:d,next:null},bc===null){if(ov===null)throw Error(n(308));bc=l,ov.dependencies={lanes:0,firstContext:l}}else bc=bc.next=l;return d}var Bl=null;function d_(l){Bl===null?Bl=[l]:Bl.push(l)}function PA(l,d,y,C){var R=d.interleaved;return R===null?(y.next=y,d_(d)):(y.next=R.next,R.next=y),d.interleaved=y,Ca(l,C)}function Ca(l,d){l.lanes|=d;var y=l.alternate;for(y!==null&&(y.lanes|=d),y=l,l=l.return;l!==null;)l.childLanes|=d,y=l.alternate,y!==null&&(y.childLanes|=d),y=l,l=l.return;return y.tag===3?y.stateNode:null}var Ts=!1;function h_(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function CA(l,d){l=l.updateQueue,d.updateQueue===l&&(d.updateQueue={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,effects:l.effects})}function Ea(l,d){return{eventTime:l,lane:d,tag:0,payload:null,callback:null,next:null}}function js(l,d,y){var C=l.updateQueue;if(C===null)return null;if(C=C.shared,Mt&2){var R=C.pending;return R===null?d.next=d:(d.next=R.next,R.next=d),C.pending=d,Ca(l,y)}return R=C.interleaved,R===null?(d.next=d,d_(C)):(d.next=R.next,R.next=d),C.interleaved=d,Ca(l,y)}function av(l,d,y){if(d=d.updateQueue,d!==null&&(d=d.shared,(y&4194240)!==0)){var C=d.lanes;C&=l.pendingLanes,y|=C,d.lanes=y,io(l,y)}}function EA(l,d){var y=l.updateQueue,C=l.alternate;if(C!==null&&(C=C.updateQueue,y===C)){var R=null,I=null;if(y=y.firstBaseUpdate,y!==null){do{var ee={eventTime:y.eventTime,lane:y.lane,tag:y.tag,payload:y.payload,callback:y.callback,next:null};I===null?R=I=ee:I=I.next=ee,y=y.next}while(y!==null);I===null?R=I=d:I=I.next=d}else R=I=d;y={baseState:C.baseState,firstBaseUpdate:R,lastBaseUpdate:I,shared:C.shared,effects:C.effects},l.updateQueue=y;return}l=y.lastBaseUpdate,l===null?y.firstBaseUpdate=d:l.next=d,y.lastBaseUpdate=d}function sv(l,d,y,C){var R=l.updateQueue;Ts=!1;var I=R.firstBaseUpdate,ee=R.lastBaseUpdate,fe=R.shared.pending;if(fe!==null){R.shared.pending=null;var me=fe,Ce=me.next;me.next=null,ee===null?I=Ce:ee.next=Ce,ee=me;var Ie=l.alternate;Ie!==null&&(Ie=Ie.updateQueue,fe=Ie.lastBaseUpdate,fe!==ee&&(fe===null?Ie.firstBaseUpdate=Ce:fe.next=Ce,Ie.lastBaseUpdate=me))}if(I!==null){var $e=R.baseState;ee=0,Ie=Ce=me=null,fe=I;do{var Le=fe.lane,Qe=fe.eventTime;if((C&Le)===Le){Ie!==null&&(Ie=Ie.next={eventTime:Qe,lane:0,tag:fe.tag,payload:fe.payload,callback:fe.callback,next:null});e:{var tt=l,nt=fe;switch(Le=d,Qe=y,nt.tag){case 1:if(tt=nt.payload,typeof tt=="function"){$e=tt.call(Qe,$e,Le);break e}$e=tt;break e;case 3:tt.flags=tt.flags&-65537|128;case 0:if(tt=nt.payload,Le=typeof tt=="function"?tt.call(Qe,$e,Le):tt,Le==null)break e;$e=G({},$e,Le);break e;case 2:Ts=!0}}fe.callback!==null&&fe.lane!==0&&(l.flags|=64,Le=R.effects,Le===null?R.effects=[fe]:Le.push(fe))}else Qe={eventTime:Qe,lane:Le,tag:fe.tag,payload:fe.payload,callback:fe.callback,next:null},Ie===null?(Ce=Ie=Qe,me=$e):Ie=Ie.next=Qe,ee|=Le;if(fe=fe.next,fe===null){if(fe=R.shared.pending,fe===null)break;Le=fe,fe=Le.next,Le.next=null,R.lastBaseUpdate=Le,R.shared.pending=null}}while(!0);if(Ie===null&&(me=$e),R.baseState=me,R.firstBaseUpdate=Ce,R.lastBaseUpdate=Ie,d=R.shared.interleaved,d!==null){R=d;do ee|=R.lane,R=R.next;while(R!==d)}else I===null&&(R.shared.lanes=0);Vl|=ee,l.lanes=ee,l.memoizedState=$e}}function TA(l,d,y){if(l=d.effects,d.effects=null,l!==null)for(d=0;dy?y:4,l(!0);var C=y_.transition;y_.transition={};try{l(!1),d()}finally{kt=y,y_.transition=C}}function GA(){return Mi().memoizedState}function AW(l,d,y){var C=Ns(l);if(y={lane:C,action:y,hasEagerState:!1,eagerState:null,next:null},KA(l))YA(d,y);else if(y=PA(l,d,y,C),y!==null){var R=wr();po(y,l,C,R),ZA(y,d,C)}}function kW(l,d,y){var C=Ns(l),R={lane:C,action:y,hasEagerState:!1,eagerState:null,next:null};if(KA(l))YA(d,R);else{var I=l.alternate;if(l.lanes===0&&(I===null||I.lanes===0)&&(I=d.lastRenderedReducer,I!==null))try{var ee=d.lastRenderedState,fe=I(ee,y);if(R.hasEagerState=!0,R.eagerState=fe,oi(fe,ee)){var me=d.interleaved;me===null?(R.next=R,d_(d)):(R.next=me.next,me.next=R),d.interleaved=R;return}}catch{}finally{}y=PA(l,d,R,C),y!==null&&(R=wr(),po(y,l,C,R),ZA(y,d,C))}}function KA(l){var d=l.alternate;return l===_n||d!==null&&d===_n}function YA(l,d){Hd=cv=!0;var y=l.pending;y===null?d.next=d:(d.next=y.next,y.next=d),l.pending=d}function ZA(l,d,y){if(y&4194240){var C=d.lanes;C&=l.pendingLanes,y|=C,d.lanes=y,io(l,y)}}var hv={readContext:Ni,useCallback:dr,useContext:dr,useEffect:dr,useImperativeHandle:dr,useInsertionEffect:dr,useLayoutEffect:dr,useMemo:dr,useReducer:dr,useRef:dr,useState:dr,useDebugValue:dr,useDeferredValue:dr,useTransition:dr,useMutableSource:dr,useSyncExternalStore:dr,useId:dr,unstable_isNewReconciler:!1},RW={readContext:Ni,useCallback:function(l,d){return zo().memoizedState=[l,d===void 0?null:d],l},useContext:Ni,useEffect:FA,useImperativeHandle:function(l,d,y){return y=y!=null?y.concat([l]):null,fv(4194308,4,zA.bind(null,d,l),y)},useLayoutEffect:function(l,d){return fv(4194308,4,l,d)},useInsertionEffect:function(l,d){return fv(4,2,l,d)},useMemo:function(l,d){var y=zo();return d=d===void 0?null:d,l=l(),y.memoizedState=[l,d],l},useReducer:function(l,d,y){var C=zo();return d=y!==void 0?y(d):d,C.memoizedState=C.baseState=d,l={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:d},C.queue=l,l=l.dispatch=AW.bind(null,_n,l),[C.memoizedState,l]},useRef:function(l){var d=zo();return l={current:l},d.memoizedState=l},useState:DA,useDebugValue:P_,useDeferredValue:function(l){return zo().memoizedState=l},useTransition:function(){var l=DA(!1),d=l[0];return l=jW.bind(null,l[1]),zo().memoizedState=l,[d,l]},useMutableSource:function(){},useSyncExternalStore:function(l,d,y){var C=_n,R=zo();if(ln){if(y===void 0)throw Error(n(407));y=y()}else{if(y=d(),Kn===null)throw Error(n(349));zl&30||RA(C,d,y)}R.memoizedState=y;var I={value:y,getSnapshot:d};return R.queue=I,FA(MA.bind(null,C,I,l),[l]),C.flags|=2048,Yd(9,NA.bind(null,C,I,y,d),void 0,null),y},useId:function(){var l=zo(),d=Kn.identifierPrefix;if(ln){var y=Pa,C=Sa;y=(C&~(1<<32-wt(C)-1)).toString(32)+y,d=":"+d+"R"+y,y=Gd++,0<\/script>",l=l.removeChild(l.firstChild)):typeof C.is=="string"?l=ee.createElement(y,{is:C.is}):(l=ee.createElement(y),y==="select"&&(ee=l,C.multiple?ee.multiple=!0:C.size&&(ee.size=C.size))):l=ee.createElementNS(l,y),l[Ai]=d,l[Os]=C,v3(l,d,!1,!1),d.stateNode=l;e:{switch(ee=Nr(y,C),y){case"dialog":zt("cancel",l),zt("close",l),R=C;break;case"iframe":case"object":case"embed":zt("load",l),R=C;break;case"video":case"audio":for(R=0;R<_s.length;R++)zt(_s[R],l);R=C;break;case"source":zt("error",l),R=C;break;case"img":case"image":case"link":zt("error",l),zt("load",l),R=C;break;case"details":zt("toggle",l),R=C;break;case"input":Fe(l,C),R=Se(l,C),zt("invalid",l);break;case"option":R=C;break;case"select":l._wrapperState={wasMultiple:!!C.multiple},R=G({},C,{value:void 0}),zt("invalid",l);break;case"textarea":ye(l,C),R=qe(l,C),zt("invalid",l);break;default:R=C}Dn(y,R),fe=R;for(I in fe)if(fe.hasOwnProperty(I)){var me=fe[I];I==="style"?Gt(l,me):I==="dangerouslySetInnerHTML"?(me=me?me.__html:void 0,me!=null&&Xe(l,me)):I==="children"?typeof me=="string"?(y!=="textarea"||me!=="")&&bt(l,me):typeof me=="number"&&bt(l,""+me):I!=="suppressContentEditableWarning"&&I!=="suppressHydrationWarning"&&I!=="autoFocus"&&(i.hasOwnProperty(I)?me!=null&&I==="onScroll"&&zt("scroll",l):me!=null&&E(l,I,me,ee))}switch(y){case"input":ue(l),je(l,C,!1);break;case"textarea":ue(l),Ae(l);break;case"option":C.value!=null&&l.setAttribute("value",""+M(C.value));break;case"select":l.multiple=!!C.multiple,I=C.value,I!=null?Ue(l,!!C.multiple,I,!1):C.defaultValue!=null&&Ue(l,!!C.multiple,C.defaultValue,!0);break;default:typeof R.onClick=="function"&&(l.onclick=Re)}switch(y){case"button":case"input":case"select":case"textarea":C=!!C.autoFocus;break e;case"img":C=!0;break e;default:C=!1}}C&&(d.flags|=4)}d.ref!==null&&(d.flags|=512,d.flags|=2097152)}return hr(d),null;case 6:if(l&&d.stateNode!=null)y3(l,d,l.memoizedProps,C);else{if(typeof C!="string"&&d.stateNode===null)throw Error(n(166));if(y=Ul(qd.current),Ul(Uo.current),nv(d)){if(C=d.stateNode,y=d.memoizedProps,C[Ai]=d,(I=C.nodeValue!==y)&&(l=si,l!==null))switch(l.tag){case 3:Pe(C.nodeValue,y,(l.mode&1)!==0);break;case 5:l.memoizedProps.suppressHydrationWarning!==!0&&Pe(C.nodeValue,y,(l.mode&1)!==0)}I&&(d.flags|=4)}else C=(y.nodeType===9?y:y.ownerDocument).createTextNode(C),C[Ai]=d,d.stateNode=C}return hr(d),null;case 13:if(nn(bn),C=d.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(ln&&li!==null&&d.mode&1&&!(d.flags&128))xA(),gc(),d.flags|=98560,I=!1;else if(I=nv(d),C!==null&&C.dehydrated!==null){if(l===null){if(!I)throw Error(n(318));if(I=d.memoizedState,I=I!==null?I.dehydrated:null,!I)throw Error(n(317));I[Ai]=d}else gc(),!(d.flags&128)&&(d.memoizedState=null),d.flags|=4;hr(d),I=!1}else uo!==null&&(G_(uo),uo=null),I=!0;if(!I)return d.flags&65536?d:null}return d.flags&128?(d.lanes=y,d):(C=C!==null,C!==(l!==null&&l.memoizedState!==null)&&C&&(d.child.flags|=8192,d.mode&1&&(l===null||bn.current&1?zn===0&&(zn=3):Z_())),d.updateQueue!==null&&(d.flags|=4),hr(d),null);case 4:return xc(),I_(l,d),l===null&&xs(d.stateNode.containerInfo),hr(d),null;case 10:return c_(d.type._context),hr(d),null;case 17:return $r(d.type)&&Xm(),hr(d),null;case 19:if(nn(bn),I=d.memoizedState,I===null)return hr(d),null;if(C=(d.flags&128)!==0,ee=I.rendering,ee===null)if(C)Zd(I,!1);else{if(zn!==0||l!==null&&l.flags&128)for(l=d.child;l!==null;){if(ee=lv(l),ee!==null){for(d.flags|=128,Zd(I,!1),C=ee.updateQueue,C!==null&&(d.updateQueue=C,d.flags|=4),d.subtreeFlags=0,C=y,y=d.child;y!==null;)I=y,l=C,I.flags&=14680066,ee=I.alternate,ee===null?(I.childLanes=0,I.lanes=l,I.child=null,I.subtreeFlags=0,I.memoizedProps=null,I.memoizedState=null,I.updateQueue=null,I.dependencies=null,I.stateNode=null):(I.childLanes=ee.childLanes,I.lanes=ee.lanes,I.child=ee.child,I.subtreeFlags=0,I.deletions=null,I.memoizedProps=ee.memoizedProps,I.memoizedState=ee.memoizedState,I.updateQueue=ee.updateQueue,I.type=ee.type,l=ee.dependencies,I.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),y=y.sibling;return Yt(bn,bn.current&1|2),d.child}l=l.sibling}I.tail!==null&&gn()>Pc&&(d.flags|=128,C=!0,Zd(I,!1),d.lanes=4194304)}else{if(!C)if(l=lv(ee),l!==null){if(d.flags|=128,C=!0,y=l.updateQueue,y!==null&&(d.updateQueue=y,d.flags|=4),Zd(I,!0),I.tail===null&&I.tailMode==="hidden"&&!ee.alternate&&!ln)return hr(d),null}else 2*gn()-I.renderingStartTime>Pc&&y!==1073741824&&(d.flags|=128,C=!0,Zd(I,!1),d.lanes=4194304);I.isBackwards?(ee.sibling=d.child,d.child=ee):(y=I.last,y!==null?y.sibling=ee:d.child=ee,I.last=ee)}return I.tail!==null?(d=I.tail,I.rendering=d,I.tail=d.sibling,I.renderingStartTime=gn(),d.sibling=null,y=bn.current,Yt(bn,C?y&1|2:y&1),d):(hr(d),null);case 22:case 23:return Y_(),C=d.memoizedState!==null,l!==null&&l.memoizedState!==null!==C&&(d.flags|=8192),C&&d.mode&1?ui&1073741824&&(hr(d),d.subtreeFlags&6&&(d.flags|=8192)):hr(d),null;case 24:return null;case 25:return null}throw Error(n(156,d.tag))}function BW(l,d){switch(i_(d),d.tag){case 1:return $r(d.type)&&Xm(),l=d.flags,l&65536?(d.flags=l&-65537|128,d):null;case 3:return xc(),nn(Dr),nn(fr),g_(),l=d.flags,l&65536&&!(l&128)?(d.flags=l&-65537|128,d):null;case 5:return m_(d),null;case 13:if(nn(bn),l=d.memoizedState,l!==null&&l.dehydrated!==null){if(d.alternate===null)throw Error(n(340));gc()}return l=d.flags,l&65536?(d.flags=l&-65537|128,d):null;case 19:return nn(bn),null;case 4:return xc(),null;case 10:return c_(d.type._context),null;case 22:case 23:return Y_(),null;case 24:return null;default:return null}}var gv=!1,pr=!1,UW=typeof WeakSet=="function"?WeakSet:Set,Je=null;function Oc(l,d){var y=l.ref;if(y!==null)if(typeof y=="function")try{y(null)}catch(C){Sn(l,d,C)}else y.current=null}function D_(l,d,y){try{y()}catch(C){Sn(l,d,C)}}var b3=!1;function zW(l,d){if(Ze=jl,l=Nd(),Md(l)){if("selectionStart"in l)var y={start:l.selectionStart,end:l.selectionEnd};else e:{y=(y=l.ownerDocument)&&y.defaultView||window;var C=y.getSelection&&y.getSelection();if(C&&C.rangeCount!==0){y=C.anchorNode;var R=C.anchorOffset,I=C.focusNode;C=C.focusOffset;try{y.nodeType,I.nodeType}catch{y=null;break e}var ee=0,fe=-1,me=-1,Ce=0,Ie=0,$e=l,Le=null;t:for(;;){for(var Qe;$e!==y||R!==0&&$e.nodeType!==3||(fe=ee+R),$e!==I||C!==0&&$e.nodeType!==3||(me=ee+C),$e.nodeType===3&&(ee+=$e.nodeValue.length),(Qe=$e.firstChild)!==null;)Le=$e,$e=Qe;for(;;){if($e===l)break t;if(Le===y&&++Ce===R&&(fe=ee),Le===I&&++Ie===C&&(me=ee),(Qe=$e.nextSibling)!==null)break;$e=Le,Le=$e.parentNode}$e=Qe}y=fe===-1||me===-1?null:{start:fe,end:me}}else y=null}y=y||{start:0,end:0}}else y=null;for(st={focusedElem:l,selectionRange:y},jl=!1,Je=d;Je!==null;)if(d=Je,l=d.child,(d.subtreeFlags&1028)!==0&&l!==null)l.return=d,Je=l;else for(;Je!==null;){d=Je;try{var tt=d.alternate;if(d.flags&1024)switch(d.tag){case 0:case 11:case 15:break;case 1:if(tt!==null){var nt=tt.memoizedProps,Tn=tt.memoizedState,xe=d.stateNode,ve=xe.getSnapshotBeforeUpdate(d.elementType===d.type?nt:co(d.type,nt),Tn);xe.__reactInternalSnapshotBeforeUpdate=ve}break;case 3:var Oe=d.stateNode.containerInfo;Oe.nodeType===1?Oe.textContent="":Oe.nodeType===9&&Oe.documentElement&&Oe.removeChild(Oe.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(We){Sn(d,d.return,We)}if(l=d.sibling,l!==null){l.return=d.return,Je=l;break}Je=d.return}return tt=b3,b3=!1,tt}function Xd(l,d,y){var C=d.updateQueue;if(C=C!==null?C.lastEffect:null,C!==null){var R=C=C.next;do{if((R.tag&l)===l){var I=R.destroy;R.destroy=void 0,I!==void 0&&D_(d,y,I)}R=R.next}while(R!==C)}}function yv(l,d){if(d=d.updateQueue,d=d!==null?d.lastEffect:null,d!==null){var y=d=d.next;do{if((y.tag&l)===l){var C=y.create;y.destroy=C()}y=y.next}while(y!==d)}}function $_(l){var d=l.ref;if(d!==null){var y=l.stateNode;switch(l.tag){case 5:l=y;break;default:l=y}typeof d=="function"?d(l):d.current=l}}function _3(l){var d=l.alternate;d!==null&&(l.alternate=null,_3(d)),l.child=null,l.deletions=null,l.sibling=null,l.tag===5&&(d=l.stateNode,d!==null&&(delete d[Ai],delete d[Os],delete d[Ss],delete d[Jb],delete d[e_])),l.stateNode=null,l.return=null,l.dependencies=null,l.memoizedProps=null,l.memoizedState=null,l.pendingProps=null,l.stateNode=null,l.updateQueue=null}function x3(l){return l.tag===5||l.tag===3||l.tag===4}function w3(l){e:for(;;){for(;l.sibling===null;){if(l.return===null||x3(l.return))return null;l=l.return}for(l.sibling.return=l.return,l=l.sibling;l.tag!==5&&l.tag!==6&&l.tag!==18;){if(l.flags&2||l.child===null||l.tag===4)continue e;l.child.return=l,l=l.child}if(!(l.flags&2))return l.stateNode}}function F_(l,d,y){var C=l.tag;if(C===5||C===6)l=l.stateNode,d?y.nodeType===8?y.parentNode.insertBefore(l,d):y.insertBefore(l,d):(y.nodeType===8?(d=y.parentNode,d.insertBefore(l,y)):(d=y,d.appendChild(l)),y=y._reactRootContainer,y!=null||d.onclick!==null||(d.onclick=Re));else if(C!==4&&(l=l.child,l!==null))for(F_(l,d,y),l=l.sibling;l!==null;)F_(l,d,y),l=l.sibling}function B_(l,d,y){var C=l.tag;if(C===5||C===6)l=l.stateNode,d?y.insertBefore(l,d):y.appendChild(l);else if(C!==4&&(l=l.child,l!==null))for(B_(l,d,y),l=l.sibling;l!==null;)B_(l,d,y),l=l.sibling}var rr=null,fo=!1;function As(l,d,y){for(y=y.child;y!==null;)O3(l,d,y),y=y.sibling}function O3(l,d,y){if(Jr&&typeof Jr.onCommitFiberUnmount=="function")try{Jr.onCommitFiberUnmount(Ol,y)}catch{}switch(y.tag){case 5:pr||Oc(y,d);case 6:var C=rr,R=fo;rr=null,As(l,d,y),rr=C,fo=R,rr!==null&&(fo?(l=rr,y=y.stateNode,l.nodeType===8?l.parentNode.removeChild(y):l.removeChild(y)):rr.removeChild(y.stateNode));break;case 18:rr!==null&&(fo?(l=rr,y=y.stateNode,l.nodeType===8?Ud(l.parentNode,y):l.nodeType===1&&Ud(l,y),ni(l)):Ud(rr,y.stateNode));break;case 4:C=rr,R=fo,rr=y.stateNode.containerInfo,fo=!0,As(l,d,y),rr=C,fo=R;break;case 0:case 11:case 14:case 15:if(!pr&&(C=y.updateQueue,C!==null&&(C=C.lastEffect,C!==null))){R=C=C.next;do{var I=R,ee=I.destroy;I=I.tag,ee!==void 0&&(I&2||I&4)&&D_(y,d,ee),R=R.next}while(R!==C)}As(l,d,y);break;case 1:if(!pr&&(Oc(y,d),C=y.stateNode,typeof C.componentWillUnmount=="function"))try{C.props=y.memoizedProps,C.state=y.memoizedState,C.componentWillUnmount()}catch(fe){Sn(y,d,fe)}As(l,d,y);break;case 21:As(l,d,y);break;case 22:y.mode&1?(pr=(C=pr)||y.memoizedState!==null,As(l,d,y),pr=C):As(l,d,y);break;default:As(l,d,y)}}function S3(l){var d=l.updateQueue;if(d!==null){l.updateQueue=null;var y=l.stateNode;y===null&&(y=l.stateNode=new UW),d.forEach(function(C){var R=XW.bind(null,l,C);y.has(C)||(y.add(C),C.then(R,R))})}}function ho(l,d){var y=d.deletions;if(y!==null)for(var C=0;CR&&(R=ee),C&=~I}if(C=R,C=gn()-C,C=(120>C?120:480>C?480:1080>C?1080:1920>C?1920:3e3>C?3e3:4320>C?4320:1960*WW(C/1960))-C,10l?16:l,Rs===null)var C=!1;else{if(l=Rs,Rs=null,Ov=0,Mt&6)throw Error(n(331));var R=Mt;for(Mt|=4,Je=l.current;Je!==null;){var I=Je,ee=I.child;if(Je.flags&16){var fe=I.deletions;if(fe!==null){for(var me=0;megn()-V_?ql(l,0):z_|=y),Ur(l,d)}function D3(l,d){d===0&&(l.mode&1?(d=as,as<<=1,!(as&130023424)&&(as=4194304)):d=1);var y=wr();l=Ca(l,d),l!==null&&(ei(l,d,y),Ur(l,y))}function ZW(l){var d=l.memoizedState,y=0;d!==null&&(y=d.retryLane),D3(l,y)}function XW(l,d){var y=0;switch(l.tag){case 13:var C=l.stateNode,R=l.memoizedState;R!==null&&(y=R.retryLane);break;case 19:C=l.stateNode;break;default:throw Error(n(314))}C!==null&&C.delete(d),D3(l,y)}var $3;$3=function(l,d,y){if(l!==null)if(l.memoizedProps!==d.pendingProps||Dr.current)Fr=!0;else{if(!(l.lanes&y)&&!(d.flags&128))return Fr=!1,$W(l,d,y);Fr=!!(l.flags&131072)}else Fr=!1,ln&&d.flags&1048576&&gA(d,tv,d.index);switch(d.lanes=0,d.tag){case 2:var C=d.type;vv(l,d),l=d.pendingProps;var R=pc(d,fr.current);_c(d,y),R=__(null,d,C,l,R,y);var I=x_();return d.flags|=1,typeof R=="object"&&R!==null&&typeof R.render=="function"&&R.$$typeof===void 0?(d.tag=1,d.memoizedState=null,d.updateQueue=null,$r(C)?(I=!0,Qm(d)):I=!1,d.memoizedState=R.state!==null&&R.state!==void 0?R.state:null,h_(d),R.updater=pv,d.stateNode=R,R._reactInternals=d,E_(d,C,l,y),d=k_(null,d,C,!0,I,y)):(d.tag=0,ln&&I&&r_(d),xr(null,d,R,y),d=d.child),d;case 16:C=d.elementType;e:{switch(vv(l,d),l=d.pendingProps,R=C._init,C=R(C._payload),d.type=C,R=d.tag=JW(C),l=co(C,l),R){case 0:d=A_(null,d,C,l,y);break e;case 1:d=c3(null,d,C,l,y);break e;case 11:d=o3(null,d,C,l,y);break e;case 14:d=a3(null,d,C,co(C.type,l),y);break e}throw Error(n(306,C,""))}return d;case 0:return C=d.type,R=d.pendingProps,R=d.elementType===C?R:co(C,R),A_(l,d,C,R,y);case 1:return C=d.type,R=d.pendingProps,R=d.elementType===C?R:co(C,R),c3(l,d,C,R,y);case 3:e:{if(f3(d),l===null)throw Error(n(387));C=d.pendingProps,I=d.memoizedState,R=I.element,CA(l,d),sv(d,C,null,y);var ee=d.memoizedState;if(C=ee.element,I.isDehydrated)if(I={element:C,isDehydrated:!1,cache:ee.cache,pendingSuspenseBoundaries:ee.pendingSuspenseBoundaries,transitions:ee.transitions},d.updateQueue.baseState=I,d.memoizedState=I,d.flags&256){R=wc(Error(n(423)),d),d=d3(l,d,C,y,R);break e}else if(C!==R){R=wc(Error(n(424)),d),d=d3(l,d,C,y,R);break e}else for(li=Bo(d.stateNode.containerInfo.firstChild),si=d,ln=!0,uo=null,y=SA(d,null,C,y),d.child=y;y;)y.flags=y.flags&-3|4096,y=y.sibling;else{if(gc(),C===R){d=Ta(l,d,y);break e}xr(l,d,C,y)}d=d.child}return d;case 5:return jA(d),l===null&&a_(d),C=d.type,R=d.pendingProps,I=l!==null?l.memoizedProps:null,ee=R.children,St(C,R)?ee=null:I!==null&&St(C,I)&&(d.flags|=32),u3(l,d),xr(l,d,ee,y),d.child;case 6:return l===null&&a_(d),null;case 13:return h3(l,d,y);case 4:return p_(d,d.stateNode.containerInfo),C=d.pendingProps,l===null?d.child=yc(d,null,C,y):xr(l,d,C,y),d.child;case 11:return C=d.type,R=d.pendingProps,R=d.elementType===C?R:co(C,R),o3(l,d,C,R,y);case 7:return xr(l,d,d.pendingProps,y),d.child;case 8:return xr(l,d,d.pendingProps.children,y),d.child;case 12:return xr(l,d,d.pendingProps.children,y),d.child;case 10:e:{if(C=d.type._context,R=d.pendingProps,I=d.memoizedProps,ee=R.value,Yt(iv,C._currentValue),C._currentValue=ee,I!==null)if(oi(I.value,ee)){if(I.children===R.children&&!Dr.current){d=Ta(l,d,y);break e}}else for(I=d.child,I!==null&&(I.return=d);I!==null;){var fe=I.dependencies;if(fe!==null){ee=I.child;for(var me=fe.firstContext;me!==null;){if(me.context===C){if(I.tag===1){me=Ea(-1,y&-y),me.tag=2;var Ce=I.updateQueue;if(Ce!==null){Ce=Ce.shared;var Ie=Ce.pending;Ie===null?me.next=me:(me.next=Ie.next,Ie.next=me),Ce.pending=me}}I.lanes|=y,me=I.alternate,me!==null&&(me.lanes|=y),f_(I.return,y,d),fe.lanes|=y;break}me=me.next}}else if(I.tag===10)ee=I.type===d.type?null:I.child;else if(I.tag===18){if(ee=I.return,ee===null)throw Error(n(341));ee.lanes|=y,fe=ee.alternate,fe!==null&&(fe.lanes|=y),f_(ee,y,d),ee=I.sibling}else ee=I.child;if(ee!==null)ee.return=I;else for(ee=I;ee!==null;){if(ee===d){ee=null;break}if(I=ee.sibling,I!==null){I.return=ee.return,ee=I;break}ee=ee.return}I=ee}xr(l,d,R.children,y),d=d.child}return d;case 9:return R=d.type,C=d.pendingProps.children,_c(d,y),R=Ni(R),C=C(R),d.flags|=1,xr(l,d,C,y),d.child;case 14:return C=d.type,R=co(C,d.pendingProps),R=co(C.type,R),a3(l,d,C,R,y);case 15:return s3(l,d,d.type,d.pendingProps,y);case 17:return C=d.type,R=d.pendingProps,R=d.elementType===C?R:co(C,R),vv(l,d),d.tag=1,$r(C)?(l=!0,Qm(d)):l=!1,_c(d,y),QA(d,C,R),E_(d,C,R,y),k_(null,d,C,!0,l,y);case 19:return m3(l,d,y);case 22:return l3(l,d,y)}throw Error(n(156,d.tag))};function F3(l,d){return Cm(l,d)}function QW(l,d,y,C){this.tag=l,this.key=y,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=d,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=C,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ii(l,d,y,C){return new QW(l,d,y,C)}function X_(l){return l=l.prototype,!(!l||!l.isReactComponent)}function JW(l){if(typeof l=="function")return X_(l)?1:0;if(l!=null){if(l=l.$$typeof,l===H)return 11;if(l===re)return 14}return 2}function Ls(l,d){var y=l.alternate;return y===null?(y=Ii(l.tag,d,l.key,l.mode),y.elementType=l.elementType,y.type=l.type,y.stateNode=l.stateNode,y.alternate=l,l.alternate=y):(y.pendingProps=d,y.type=l.type,y.flags=0,y.subtreeFlags=0,y.deletions=null),y.flags=l.flags&14680064,y.childLanes=l.childLanes,y.lanes=l.lanes,y.child=l.child,y.memoizedProps=l.memoizedProps,y.memoizedState=l.memoizedState,y.updateQueue=l.updateQueue,d=l.dependencies,y.dependencies=d===null?null:{lanes:d.lanes,firstContext:d.firstContext},y.sibling=l.sibling,y.index=l.index,y.ref=l.ref,y}function Ev(l,d,y,C,R,I){var ee=2;if(C=l,typeof l=="function")X_(l)&&(ee=1);else if(typeof l=="string")ee=5;else e:switch(l){case N:return Gl(y.children,R,I,d);case $:ee=8,R|=8;break;case W:return l=Ii(12,y,d,R|2),l.elementType=W,l.lanes=I,l;case J:return l=Ii(13,y,d,R),l.elementType=J,l.lanes=I,l;case Q:return l=Ii(19,y,d,R),l.elementType=Q,l.lanes=I,l;case se:return Tv(y,R,I,d);default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case B:ee=10;break e;case V:ee=9;break e;case H:ee=11;break e;case re:ee=14;break e;case ae:ee=16,C=null;break e}throw Error(n(130,l==null?l:typeof l,""))}return d=Ii(ee,y,d,R),d.elementType=l,d.type=C,d.lanes=I,d}function Gl(l,d,y,C){return l=Ii(7,l,C,d),l.lanes=y,l}function Tv(l,d,y,C){return l=Ii(22,l,C,d),l.elementType=se,l.lanes=y,l.stateNode={isHidden:!1},l}function Q_(l,d,y){return l=Ii(6,l,null,d),l.lanes=y,l}function J_(l,d,y){return d=Ii(4,l.children!==null?l.children:[],l.key,d),d.lanes=y,d.stateNode={containerInfo:l.containerInfo,pendingChildren:null,implementation:l.implementation},d}function eq(l,d,y,C,R){this.tag=d,this.containerInfo=l,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ss(0),this.expirationTimes=ss(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ss(0),this.identifierPrefix=C,this.onRecoverableError=R,this.mutableSourceEagerHydrationData=null}function e1(l,d,y,C,R,I,ee,fe,me){return l=new eq(l,d,y,fe,me),d===1?(d=1,I===!0&&(d|=8)):d=0,I=Ii(3,null,null,d),l.current=I,I.stateNode=l,I.memoizedState={element:C,isDehydrated:y,cache:null,transitions:null,pendingSuspenseBoundaries:null},h_(I),l}function tq(l,d,y){var C=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),a1.exports=mq(),a1.exports}var J3;function vq(){if(J3)return Iv;J3=1;var e=g8();return Iv.createRoot=e.createRoot,Iv.hydrateRoot=e.hydrateRoot,Iv}var gq=vq(),F=x0();const Z=Nt(F),GO=uq({__proto__:null,default:Z},[F]);var u1={exports:{}},c1={};/** + * @license React + * use-sync-external-store-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 ek;function yq(){if(ek)return c1;ek=1;var e=x0();function t(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,i=e.useRef,o=e.useEffect,a=e.useMemo,s=e.useDebugValue;return c1.useSyncExternalStoreWithSelector=function(c,u,h,p,v){var b=i(null);if(b.current===null){var x={hasValue:!1,value:null};b.current=x}else x=b.current;b=a(function(){function w(A){if(!O){if(O=!0,P=A,A=p(A),v!==void 0&&x.hasValue){var j=x.value;if(v(j,A))return E=j}return E=A}if(j=E,n(P,A))return j;var N=p(A);return v!==void 0&&v(j,N)?j:(P=A,E=N)}var O=!1,P,E,T=h===void 0?null:h;return[function(){return w(u())},T===null?void 0:function(){return w(T())}]},[u,h,p,v]);var _=r(c,b[0],b[1]);return o(function(){x.hasValue=!0,x.value=_},[_]),s(_),_},c1}var tk;function bq(){return tk||(tk=1,u1.exports=yq()),u1.exports}bq();var Ft="default"in GO?Z:GO,nk=Symbol.for("react-redux-context"),rk=typeof globalThis<"u"?globalThis:{};function _q(){if(!Ft.createContext)return{};const e=rk[nk]??(rk[nk]=new Map);let t=e.get(Ft.createContext);return t||(t=Ft.createContext(null),e.set(Ft.createContext,t)),t}var y8=_q(),xq=()=>{throw new Error("uSES not initialized!")},wq=Symbol.for("react.element"),Oq=Symbol.for("react.portal"),Sq=Symbol.for("react.fragment"),Pq=Symbol.for("react.strict_mode"),Cq=Symbol.for("react.profiler"),Eq=Symbol.for("react.provider"),Tq=Symbol.for("react.context"),jq=Symbol.for("react.server_context"),b8=Symbol.for("react.forward_ref"),Aq=Symbol.for("react.suspense"),kq=Symbol.for("react.suspense_list"),TE=Symbol.for("react.memo"),Rq=Symbol.for("react.lazy"),Nq=b8,Mq=TE;function Lq(e){if(typeof e=="object"&&e!==null){const t=e.$$typeof;switch(t){case wq:{const n=e.type;switch(n){case Sq:case Cq:case Pq:case Aq:case kq:return n;default:{const r=n&&n.$$typeof;switch(r){case jq:case Tq:case b8:case Rq:case TE:case Eq:return r;default:return t}}}}case Oq:return t}}}function Iq(e){return Lq(e)===TE}function Dq(e,t,n,r,{areStatesEqual:i,areOwnPropsEqual:o,areStatePropsEqual:a}){let s=!1,c,u,h,p,v;function b(P,E){return c=P,u=E,h=e(c,u),p=t(r,u),v=n(h,p,u),s=!0,v}function x(){return h=e(c,u),t.dependsOnOwnProps&&(p=t(r,u)),v=n(h,p,u),v}function _(){return e.dependsOnOwnProps&&(h=e(c,u)),t.dependsOnOwnProps&&(p=t(r,u)),v=n(h,p,u),v}function w(){const P=e(c,u),E=!a(P,h);return h=P,E&&(v=n(h,p,u)),v}function O(P,E){const T=!o(E,u),A=!i(P,c,E,u);return c=P,u=E,T&&A?x():T?_():A?w():v}return function(E,T){return s?O(E,T):b(E,T)}}function $q(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...i}){const o=t(e,i),a=n(e,i),s=r(e,i);return Dq(o,a,s,e,i)}function Fq(e,t){const n={};for(const r in e){const i=e[r];typeof i=="function"&&(n[r]=(...o)=>t(i(...o)))}return n}function KO(e){return function(n){const r=e(n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function ik(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function _8(e,t){return function(r,{displayName:i}){const o=function(s,c){return o.dependsOnOwnProps?o.mapToProps(s,c):o.mapToProps(s,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(s,c){o.mapToProps=e,o.dependsOnOwnProps=ik(e);let u=o(s,c);return typeof u=="function"&&(o.mapToProps=u,o.dependsOnOwnProps=ik(u),u=o(s,c)),u},o}}function jE(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function Bq(e){return e&&typeof e=="object"?KO(t=>Fq(e,t)):e?typeof e=="function"?_8(e):jE(e,"mapDispatchToProps"):KO(t=>({dispatch:t}))}function Uq(e){return e?typeof e=="function"?_8(e):jE(e,"mapStateToProps"):KO(()=>({}))}function zq(e,t,n){return{...n,...e,...t}}function Vq(e){return function(n,{displayName:r,areMergedPropsEqual:i}){let o=!1,a;return function(c,u,h){const p=e(c,u,h);return o?i(p,a)||(a=p):(o=!0,a=p),a}}}function Wq(e){return e?typeof e=="function"?Vq(e):jE(e,"mergeProps"):()=>zq}function qq(e){e()}function Hq(){let e=null,t=null;return{clear(){e=null,t=null},notify(){qq(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var ok={notify(){},get:()=>[]};function x8(e,t){let n,r=ok,i=0,o=!1;function a(_){h();const w=r.subscribe(_);let O=!1;return()=>{O||(O=!0,w(),p())}}function s(){r.notify()}function c(){x.onStateChange&&x.onStateChange()}function u(){return o}function h(){i++,n||(n=t?t.addNestedSub(c):e.subscribe(c),r=Hq())}function p(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=ok)}function v(){o||(o=!0,h())}function b(){o&&(o=!1,p())}const x={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:c,isSubscribed:u,trySubscribe:v,tryUnsubscribe:b,getListeners:()=>r};return x}var Gq=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Kq=typeof navigator<"u"&&navigator.product==="ReactNative",wg=Gq||Kq?Ft.useLayoutEffect:Ft.useEffect;function ak(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function f1(e,t){if(ak(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=0;i{O8=e},iH=[null,null];function oH(e,t,n){wg(()=>e(...t),n)}function aH(e,t,n,r,i,o){e.current=r,n.current=!1,i.current&&(i.current=null,o())}function sH(e,t,n,r,i,o,a,s,c,u,h){if(!e)return()=>{};let p=!1,v=null;const b=()=>{if(p||!s.current)return;const _=t.getState();let w,O;try{w=r(_,i.current)}catch(P){O=P,v=P}O||(v=null),w===o.current?a.current||u():(o.current=w,c.current=w,a.current=!0,h())};return n.onStateChange=b,n.trySubscribe(),b(),()=>{if(p=!0,n.tryUnsubscribe(),n.onStateChange=null,v)throw v}}function lH(e,t){return e===t}function uH(e,t,n,{pure:r,areStatesEqual:i=lH,areOwnPropsEqual:o=f1,areStatePropsEqual:a=f1,areMergedPropsEqual:s=f1,forwardRef:c=!1,context:u=y8}={}){const h=u,p=Uq(e),v=Bq(t),b=Wq(n),x=!!e;return w=>{const O=w.displayName||w.name||"Component",P=`Connect(${O})`,E={shouldHandleStateChanges:x,displayName:P,wrappedComponentName:O,WrappedComponent:w,initMapStateToProps:p,initMapDispatchToProps:v,initMergeProps:b,areStatesEqual:i,areStatePropsEqual:a,areOwnPropsEqual:o,areMergedPropsEqual:s};function T(N){const[$,W,B]=Ft.useMemo(()=>{const{reactReduxForwardedRef:ie,...he}=N;return[N.context,ie,he]},[N]),V=Ft.useMemo(()=>{let ie=h;return $!=null&&$.Consumer,ie},[$,h]),H=Ft.useContext(V),J=!!N.store&&!!N.store.getState&&!!N.store.dispatch,Q=!!H&&!!H.store,re=J?N.store:H.store,ae=Q?H.getServerState:re.getState,se=Ft.useMemo(()=>$q(re.dispatch,E),[re]),[oe,K]=Ft.useMemo(()=>{if(!x)return iH;const ie=x8(re,J?void 0:H.subscription),he=ie.notifyNestedSubs.bind(ie);return[ie,he]},[re,J,H]),G=Ft.useMemo(()=>J?H:{...H,subscription:oe},[J,H,oe]),z=Ft.useRef(void 0),ne=Ft.useRef(B),X=Ft.useRef(void 0),le=Ft.useRef(!1),ce=Ft.useRef(!1),de=Ft.useRef(void 0);wg(()=>(ce.current=!0,()=>{ce.current=!1}),[]);const be=Ft.useMemo(()=>()=>X.current&&B===ne.current?X.current:se(re.getState(),B),[re,B]),M=Ft.useMemo(()=>he=>oe?sH(x,re,oe,se,ne,z,le,ce,X,K,he):()=>{},[oe]);oH(aH,[ne,z,le,B,X,K]);let D;try{D=O8(M,be,ae?()=>se(ae(),B):be)}catch(ie){throw de.current&&(ie.message+=` +The error may be correlated with this previous error: +${de.current.stack} + +`),ie}wg(()=>{de.current=void 0,X.current=void 0,z.current=D});const Y=Ft.useMemo(()=>Ft.createElement(w,{...D,ref:W}),[W,w,D]);return Ft.useMemo(()=>x?Ft.createElement(V.Provider,{value:G},Y):Y,[V,Y,G])}const j=Ft.memo(T);if(j.WrappedComponent=w,j.displayName=T.displayName=P,c){const $=Ft.forwardRef(function(B,V){return Ft.createElement(j,{...B,reactReduxForwardedRef:V})});return $.displayName=P,$.WrappedComponent=w,YO($,w)}return YO(j,w)}}var S8=uH;function cH({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:o="once"}){const a=Ft.useMemo(()=>{const u=x8(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:o}},[e,r,i,o]),s=Ft.useMemo(()=>e.getState(),[e]);wg(()=>{const{subscription:u}=a;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),s!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[a,s]);const c=t||y8;return Ft.createElement(c.Provider,{value:a},n)}var P8=cH;rH(F.useSyncExternalStore);var AE=g8();const su=Nt(AE);/** + * @remix-run/router v1.21.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 Gh(){return Gh=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function C8(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function dH(){return Math.random().toString(36).substr(2,8)}function fk(e,t){return{usr:e.state,key:e.key,idx:t}}function ZO(e,t,n,r){return n===void 0&&(n=null),Gh({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Hf(t):t,{state:n,key:t&&t.key||r||dH()})}function Og(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Hf(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function hH(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=Hs.Pop,c=null,u=h();u==null&&(u=0,a.replaceState(Gh({},a.state,{idx:u}),""));function h(){return(a.state||{idx:null}).idx}function p(){s=Hs.Pop;let w=h(),O=w==null?null:w-u;u=w,c&&c({action:s,location:_.location,delta:O})}function v(w,O){s=Hs.Push;let P=ZO(_.location,w,O);u=h()+1;let E=fk(P,u),T=_.createHref(P);try{a.pushState(E,"",T)}catch(A){if(A instanceof DOMException&&A.name==="DataCloneError")throw A;i.location.assign(T)}o&&c&&c({action:s,location:_.location,delta:1})}function b(w,O){s=Hs.Replace;let P=ZO(_.location,w,O);u=h();let E=fk(P,u),T=_.createHref(P);a.replaceState(E,"",T),o&&c&&c({action:s,location:_.location,delta:0})}function x(w){let O=i.location.origin!=="null"?i.location.origin:i.location.href,P=typeof w=="string"?w:Og(w);return P=P.replace(/ $/,"%20"),wn(O,"No window.location.(origin|href) available to create URL for href: "+P),new URL(P,O)}let _={get action(){return s},get location(){return e(i,a)},listen(w){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(ck,p),c=w,()=>{i.removeEventListener(ck,p),c=null}},createHref(w){return t(i,w)},createURL:x,encodeLocation(w){let O=x(w);return{pathname:O.pathname,search:O.search,hash:O.hash}},push:v,replace:b,go(w){return a.go(w)}};return _}var dk;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(dk||(dk={}));function pH(e,t,n){return n===void 0&&(n="/"),mH(e,t,n,!1)}function mH(e,t,n,r){let i=typeof t=="string"?Hf(t):t,o=of(i.pathname||"/",n);if(o==null)return null;let a=E8(e);vH(a);let s=null;for(let c=0;s==null&&c{let c={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};c.relativePath.startsWith("/")&&(wn(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let u=Xs([r,c.relativePath]),h=n.concat(c);o.children&&o.children.length>0&&(wn(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),E8(o.children,t,h,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:OH(u,o.index),routesMeta:h})};return e.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,a);else for(let c of T8(o.path))i(o,a,c)}),t}function T8(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let a=T8(r.join("/")),s=[];return s.push(...a.map(c=>c===""?o:[o,c].join("/"))),i&&s.push(...a),s.map(c=>e.startsWith("/")&&c===""?"/":c)}function vH(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:SH(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const gH=/^:[\w-]+$/,yH=3,bH=2,_H=1,xH=10,wH=-2,hk=e=>e==="*";function OH(e,t){let n=e.split("/"),r=n.length;return n.some(hk)&&(r+=wH),t&&(r+=bH),n.filter(i=>!hk(i)).reduce((i,o)=>i+(gH.test(o)?yH:o===""?_H:xH),r)}function SH(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function PH(e,t,n){let{routesMeta:r}=e,i={},o="/",a=[];for(let s=0;s{let{paramName:v,isOptional:b}=h;if(v==="*"){let _=s[p]||"";a=o.slice(0,o.length-_.length).replace(/(.)\/+$/,"$1")}const x=s[p];return b&&!x?u[v]=void 0:u[v]=(x||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:a,pattern:e}}function CH(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),C8(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,c)=>(r.push({paramName:s,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function EH(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return C8(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function of(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function TH(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Hf(e):e;return{pathname:n?n.startsWith("/")?n:jH(n,t):t,search:RH(r),hash:NH(i)}}function jH(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function d1(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function AH(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function kE(e,t){let n=AH(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function RE(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Hf(e):(i=Gh({},e),wn(!i.pathname||!i.pathname.includes("?"),d1("?","pathname","search",i)),wn(!i.pathname||!i.pathname.includes("#"),d1("#","pathname","hash",i)),wn(!i.search||!i.search.includes("#"),d1("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,s;if(a==null)s=n;else{let p=t.length-1;if(!r&&a.startsWith("..")){let v=a.split("/");for(;v[0]==="..";)v.shift(),p-=1;i.pathname=v.join("/")}s=p>=0?t[p]:"/"}let c=TH(i,s),u=a&&a!=="/"&&a.endsWith("/"),h=(o||a===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||h)&&(c.pathname+="/"),c}const Xs=e=>e.join("/").replace(/\/\/+/g,"/"),kH=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),RH=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,NH=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function MH(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const j8=["post","put","patch","delete"];new Set(j8);const LH=["get",...j8];new Set(LH);/** + * React Router v6.28.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 Kh(){return Kh=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),F.useCallback(function(u,h){if(h===void 0&&(h={}),!s.current)return;if(typeof u=="number"){r.go(u);return}let p=RE(u,JSON.parse(a),o,h.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:Xs([t,p.pathname])),(h.replace?r.replace:r.push)(p,h.state,h)},[t,r,a,o,e])}function Gf(){let{matches:e}=F.useContext(Ya),t=e[e.length-1];return t?t.params:{}}function S0(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=F.useContext(Ka),{matches:i}=F.useContext(Ya),{pathname:o}=Kr(),a=JSON.stringify(kE(i,r.v7_relativeSplatPath));return F.useMemo(()=>RE(e,JSON.parse(a),o,n==="path"),[e,a,o,n])}function $H(e,t){return FH(e,t)}function FH(e,t,n,r){Nu()||wn(!1);let{navigator:i}=F.useContext(Ka),{matches:o}=F.useContext(Ya),a=o[o.length-1],s=a?a.params:{};a&&a.pathname;let c=a?a.pathnameBase:"/";a&&a.route;let u=Kr(),h;if(t){var p;let w=typeof t=="string"?Hf(t):t;c==="/"||(p=w.pathname)!=null&&p.startsWith(c)||wn(!1),h=w}else h=u;let v=h.pathname||"/",b=v;if(c!=="/"){let w=c.replace(/^\//,"").split("/");b="/"+v.replace(/^\//,"").split("/").slice(w.length).join("/")}let x=pH(e,{pathname:b}),_=WH(x&&x.map(w=>Object.assign({},w,{params:Object.assign({},s,w.params),pathname:Xs([c,i.encodeLocation?i.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?c:Xs([c,i.encodeLocation?i.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),o,n,r);return t&&_?F.createElement(O0.Provider,{value:{location:Kh({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:Hs.Pop}},_):_}function BH(){let e=KH(),t=MH(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return F.createElement(F.Fragment,null,F.createElement("h2",null,"Unexpected Application Error!"),F.createElement("h3",{style:{fontStyle:"italic"}},t),n?F.createElement("pre",{style:i},n):null,null)}const UH=F.createElement(BH,null);class zH extends F.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?F.createElement(Ya.Provider,{value:this.props.routeContext},F.createElement(k8.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function VH(e){let{routeContext:t,match:n,children:r}=e,i=F.useContext(w0);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),F.createElement(Ya.Provider,{value:t},r)}function WH(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,s=(i=n)==null?void 0:i.errors;if(s!=null){let h=a.findIndex(p=>p.route.id&&(s==null?void 0:s[p.route.id])!==void 0);h>=0||wn(!1),a=a.slice(0,Math.min(a.length,h+1))}let c=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let h=0;h=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((h,p,v)=>{let b,x=!1,_=null,w=null;n&&(b=s&&p.route.id?s[p.route.id]:void 0,_=p.route.errorElement||UH,c&&(u<0&&v===0?(x=!0,w=null):u===v&&(x=!0,w=p.route.hydrateFallbackElement||null)));let O=t.concat(a.slice(0,v+1)),P=()=>{let E;return b?E=_:x?E=w:p.route.Component?E=F.createElement(p.route.Component,null):p.route.element?E=p.route.element:E=h,F.createElement(VH,{match:p,routeContext:{outlet:h,matches:O,isDataRoute:n!=null},children:E})};return n&&(p.route.ErrorBoundary||p.route.errorElement||v===0)?F.createElement(zH,{location:n.location,revalidation:n.revalidation,component:_,error:b,children:P(),routeContext:{outlet:null,matches:O,isDataRoute:!0}}):P()},null)}var N8=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(N8||{}),Pg=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Pg||{});function qH(e){let t=F.useContext(w0);return t||wn(!1),t}function HH(e){let t=F.useContext(A8);return t||wn(!1),t}function GH(e){let t=F.useContext(Ya);return t||wn(!1),t}function M8(e){let t=GH(),n=t.matches[t.matches.length-1];return n.route.id||wn(!1),n.route.id}function KH(){var e;let t=F.useContext(k8),n=HH(Pg.UseRouteError),r=M8(Pg.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function YH(){let{router:e}=qH(N8.UseNavigateStable),t=M8(Pg.UseNavigateStable),n=F.useRef(!1);return R8(()=>{n.current=!0}),F.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Kh({fromRouteId:t},o)))},[e,t])}const pk={};function ZH(e,t){pk[t]||(pk[t]=!0,console.warn(t))}const mk=(e,t,n)=>ZH(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function XH(e,t){e!=null&&e.v7_startTransition||mk("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),!(e!=null&&e.v7_relativeSplatPath)&&!t&&mk("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath")}function NE(e){let{to:t,replace:n,state:r,relative:i}=e;Nu()||wn(!1);let{future:o,static:a}=F.useContext(Ka),{matches:s}=F.useContext(Ya),{pathname:c}=Kr(),u=oa(),h=RE(t,kE(s,o.v7_relativeSplatPath),c,i==="path"),p=JSON.stringify(h);return F.useEffect(()=>u(JSON.parse(p),{replace:n,state:r,relative:i}),[u,p,i,n,r]),null}function Rt(e){wn(!1)}function QH(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Hs.Pop,navigator:o,static:a=!1,future:s}=e;Nu()&&wn(!1);let c=t.replace(/^\/*/,"/"),u=F.useMemo(()=>({basename:c,navigator:o,static:a,future:Kh({v7_relativeSplatPath:!1},s)}),[c,s,o,a]);typeof r=="string"&&(r=Hf(r));let{pathname:h="/",search:p="",hash:v="",state:b=null,key:x="default"}=r,_=F.useMemo(()=>{let w=of(h,c);return w==null?null:{location:{pathname:w,search:p,hash:v,state:b,key:x},navigationType:i}},[c,h,p,v,b,x,i]);return _==null?null:F.createElement(Ka.Provider,{value:u},F.createElement(O0.Provider,{children:n,value:_}))}function P0(e){let{children:t,location:n}=e;return $H(XO(t),n)}new Promise(()=>{});function XO(e,t){t===void 0&&(t=[]);let n=[];return F.Children.forEach(e,(r,i)=>{if(!F.isValidElement(r))return;let o=[...t,i];if(r.type===F.Fragment){n.push.apply(n,XO(r.props.children,o));return}r.type!==Rt&&wn(!1),!r.props.index||!r.props.children||wn(!1);let a={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=XO(r.props.children,o)),n.push(a)}),n}/** + * React Router DOM v6.28.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 Cg(){return Cg=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function JH(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function eG(e,t){return e.button===0&&(!t||t==="_self")&&!JH(e)}const tG=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],nG=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],rG="6";try{window.__reactRouterVersion=rG}catch{}const iG=F.createContext({isTransitioning:!1}),oG="startTransition",vk=GO[oG];function I8(e){let{basename:t,children:n,future:r,window:i}=e,o=F.useRef();o.current==null&&(o.current=fH({window:i,v5Compat:!0}));let a=o.current,[s,c]=F.useState({action:a.action,location:a.location}),{v7_startTransition:u}=r||{},h=F.useCallback(p=>{u&&vk?vk(()=>c(p)):c(p)},[c,u]);return F.useLayoutEffect(()=>a.listen(h),[a,h]),F.useEffect(()=>XH(r),[r]),F.createElement(QH,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:a,future:r})}const aG=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",sG=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Jt=F.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:s,target:c,to:u,preventScrollReset:h,viewTransition:p}=t,v=L8(t,tG),{basename:b}=F.useContext(Ka),x,_=!1;if(typeof u=="string"&&sG.test(u)&&(x=u,aG))try{let E=new URL(window.location.href),T=u.startsWith("//")?new URL(E.protocol+u):new URL(u),A=of(T.pathname,b);T.origin===E.origin&&A!=null?u=A+T.search+T.hash:_=!0}catch{}let w=IH(u,{relative:i}),O=uG(u,{replace:a,state:s,target:c,preventScrollReset:h,relative:i,viewTransition:p});function P(E){r&&r(E),E.defaultPrevented||O(E)}return F.createElement("a",Cg({},v,{href:x||w,onClick:_||o?r:P,ref:n,target:c}))}),D8=F.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:o="",end:a=!1,style:s,to:c,viewTransition:u,children:h}=t,p=L8(t,nG),v=S0(c,{relative:p.relative}),b=Kr(),x=F.useContext(A8),{navigator:_,basename:w}=F.useContext(Ka),O=x!=null&&cG(v)&&u===!0,P=_.encodeLocation?_.encodeLocation(v).pathname:v.pathname,E=b.pathname,T=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;i||(E=E.toLowerCase(),T=T?T.toLowerCase():null,P=P.toLowerCase()),T&&w&&(T=of(T,w)||T);const A=P!=="/"&&P.endsWith("/")?P.length-1:P.length;let j=E===P||!a&&E.startsWith(P)&&E.charAt(A)==="/",N=T!=null&&(T===P||!a&&T.startsWith(P)&&T.charAt(P.length)==="/"),$={isActive:j,isPending:N,isTransitioning:O},W=j?r:void 0,B;typeof o=="function"?B=o($):B=[o,j?"active":null,N?"pending":null,O?"transitioning":null].filter(Boolean).join(" ");let V=typeof s=="function"?s($):s;return F.createElement(Jt,Cg({},p,{"aria-current":W,className:B,ref:n,style:V,to:c,viewTransition:u}),typeof h=="function"?h($):h)});var QO;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(QO||(QO={}));var gk;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(gk||(gk={}));function lG(e){let t=F.useContext(w0);return t||wn(!1),t}function uG(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a,viewTransition:s}=t===void 0?{}:t,c=oa(),u=Kr(),h=S0(e,{relative:a});return F.useCallback(p=>{if(eG(p,n)){p.preventDefault();let v=r!==void 0?r:Og(u)===Og(h);c(e,{replace:v,state:i,preventScrollReset:o,relative:a,viewTransition:s})}},[u,c,h,r,i,n,e,o,a,s])}function cG(e,t){t===void 0&&(t={});let n=F.useContext(iG);n==null&&wn(!1);let{basename:r}=lG(QO.useViewTransitionState),i=S0(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=of(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=of(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Sg(i.pathname,a)!=null||Sg(i.pathname,o)!=null}const fG="shlink-web-client",dG="A React-based progressive web application for shlink",hG="/shlink-web-client/dependabot/npm_and_yarn/vite-d4fe43cea2",pG="https://github.com/shlinkio/shlink-web-client",mG="MIT",vG="module",gG={lint:"node --run lint:css && node --run lint:js","lint:css":"stylelint src/*.scss src/**/*.scss","lint:js":"eslint src test config/test","lint:fix":"node --run lint:css:fix && node --run lint:js:fix","lint:css:fix":"node --run lint:css -- --fix","lint:js:fix":"node --run lint:js -- --fix",types:"tsc",start:"vite serve --host=0.0.0.0",preview:"vite preview --host=0.0.0.0",build:"node --run types && vite build && node scripts/replace-version.mjs","build:dist":"node --run build && node scripts/create-dist-file.mjs",test:"vitest run --run","test:watch":"vitest --watch","test:ci":"node --run test -- --coverage","test:verbose":"node --run test -- --verbose"},yG={"@fortawesome/fontawesome-free":"^6.7.1","@fortawesome/fontawesome-svg-core":"^6.7.1","@fortawesome/free-brands-svg-icons":"^6.7.1","@fortawesome/free-regular-svg-icons":"^6.7.1","@fortawesome/free-solid-svg-icons":"^6.7.1","@fortawesome/react-fontawesome":"^0.2.2","@json2csv/plainjs":"^7.0.6","@reduxjs/toolkit":"^2.4.0","@shlinkio/data-manipulation":"^1.0.3","@shlinkio/shlink-frontend-kit":"^0.6.0","@shlinkio/shlink-js-sdk":"^1.3.0","@shlinkio/shlink-web-component":"^0.11.0",bootstrap:"5.2.3",bottlejs:"^2.0.1",clsx:"^2.1.1","compare-versions":"^6.1.1",csvtojson:"^2.0.10","date-fns":"^4.1.0",react:"^18.3.1","react-dom":"^18.3.1","react-external-link":"^2.3.1","react-redux":"^9.1.2","react-router-dom":"^6.28.0",reactstrap:"^9.2.3","redux-localstorage-simple":"^2.5.1","workbox-core":"^7.3.0","workbox-expiration":"^7.3.0","workbox-precaching":"^7.3.0","workbox-routing":"^7.3.0","workbox-strategies":"^7.3.0"},bG={"@shlinkio/eslint-config-js-coding-standard":"~3.2.1","@shlinkio/stylelint-config-css-coding-standard":"~1.1.1","@stylistic/eslint-plugin":"^2.11.0","@testing-library/jest-dom":"^6.6.3","@testing-library/react":"^16.0.1","@testing-library/user-event":"^14.5.2","@total-typescript/shoehorn":"^0.1.2","@types/react":"^18.3.12","@types/react-dom":"^18.3.1","@types/uuid":"^10.0.0","@vitejs/plugin-react":"^4.3.4","@vitest/coverage-v8":"^2.1.6","adm-zip":"^0.5.16","axe-core":"^4.10.2",chalk:"^5.3.0",eslint:"^9.16.0","eslint-plugin-jsx-a11y":"^6.10.2","eslint-plugin-react":"^7.37.2","eslint-plugin-react-hooks":"^5.0.0","eslint-plugin-simple-import-sort":"^12.1.1",history:"^5.3.0",jsdom:"^25.0.1",sass:"^1.81.0",stylelint:"^15.11.0",typescript:"^5.7.2","typescript-eslint":"^8.16.0",vite:"^6.0.3","vite-plugin-pwa":"^0.21.1",vitest:"^2.0.2"},_G=[">0.2%","not dead","not ie <= 11","not op_mini all"],Eg={name:fG,description:dG,private:!1,homepage:hG,repository:pG,license:mG,type:vG,scripts:gG,dependencies:yG,devDependencies:bG,browserslist:_G};var So,ea=".",$8="function",F8="string",B8="__global__",ME="Provider",xG=0,LE=Array.prototype.slice,wG=function(t,n){var r=t[n];if(r===void 0&&So.config.strict)throw new Error("Bottle was unable to resolve a service. `"+n+"` is undefined.");return r},C0=function(t){var n;return this.nested[t]||(n=So.pop(),this.nested[t]=n,this.factory(t,function(){return n.container})),this.nested[t]},U8=function(t){return t.split(ea).reduce(wG,this)},OG=function(t,n,r,i){var o={configurable:!0,enumerable:!0};return t.length?o.get=function(){var s=0,c=function(h){if(h)throw h;t[s]&&t[s++](r,c)};return c(),r}:(o.value=r,o.writable=!0),Object.defineProperty(i,n,o),i[n]},SG=function(t,n){var r,i;return typeof t===$8&&(n=t,t=B8),r=t.split(ea),i=r.shift(),r.length?C0.call(this,i).middleware(r.join(ea),n):(this.middlewares[i]||(this.middlewares[i]=[]),this.middlewares[i].push(n)),this},PG=function(t,n){return n(t)},yk=function(t,n){return(t[n]||[]).concat(t.__global__||[])},CG=function(t,n){var r,i,o,a,s;return this.id,o=this.container,a=this.decorators,s=this.middlewares,r=t+ME,i=Object.create(null),i[r]={configurable:!0,enumerable:!0,get:function(){var u=new n;return delete o[r],o[r]=u,u}},i[t]={configurable:!0,enumerable:!0,get:function(){var u=o[r],h;return u&&(h=yk(a,t).reduce(PG,u.$get(o)),delete o[r],delete o[t]),h===void 0?h:OG(yk(s,t),t,h,o)}},Object.defineProperties(o,i),this},z8=function(t,n){var r,i;return r=t.split(ea),this.providerMap[t]&&r.length===1&&!this.container[t+ME]?console.error(t+" provider already instantiated."):(this.originalProviders[t]=n,this.providerMap[t]=!0,i=r.shift(),r.length?(C0.call(this,i).provider(r.join(ea),n),this):CG.call(this,i,n))},IE=function(t,n){return z8.call(this,t,function(){this.$get=n})},V8=function(t,n,r){var i=arguments.length>3?LE.call(arguments,3):[],o=this;return IE.call(this,t,function(){var s=n,c=i.map(U8,o.container);return r?new(n.bind.apply(n,[null].concat(c))):s.apply(null,c)})},EG=function(t,n){return V8.apply(this,[t,n,!0].concat(LE.call(arguments,2)))},TG=function(t,n){return V8.apply(this,[t,n,!1].concat(LE.call(arguments,2)))},W8=function(t,n){Object.defineProperty(this,t,{configurable:!0,enumerable:!0,value:n,writable:!0})},q8=function(t,n){var r=t[n];return r||(r={},W8.call(t,n,r)),r},jG=function(t,n){var r;return r=t.split(ea),t=r.pop(),W8.call(r.reduce(q8,this.container),t,n),this},AG=function(t,n){Object.defineProperty(this,t,{configurable:!1,enumerable:!0,value:n,writable:!1})},kG=function(t,n){var r=t.split(ea);return t=r.pop(),AG.call(r.reduce(q8,this.container),t,n),this},H8=function(t,n){var r,i;return typeof t===$8&&(n=t,t=B8),r=t.split(ea),i=r.shift(),r.length?C0.call(this,i).decorator(r.join(ea),n):(this.decorators[i]||(this.decorators[i]=[]),this.decorators[i].push(n)),this},RG=function(t){return this.deferred.push(t),this},NG=function(t){return(t||[]).map(U8,this.container)},MG=function(t,n){return IE.call(this,t,function(i){return{instance:n.bind(n,i)}})},LG=function(t){return!/^\$(?:decorator|register|list)$|Provider$/.test(t)},DE=function(t){return Object.keys(t||this.container||{}).filter(LG)},Tg={},IG=function(t){var n;return typeof t===F8?(n=Tg[t],n||(Tg[t]=n=new So,n.constant("BOTTLE_NAME",t)),n):new So},DG=function(t){typeof t===F8?delete Tg[t]:Tg={}},G8=function(t){var n=t.$value===void 0?t:t.$value;return this[t.$type||"service"].apply(this,[t.$name,n].concat(t.$inject||[]))},bk=function(t){delete this.providerMap[t],delete this.container[t],delete this.container[t+ME]},$G=function(t){var n=this.originalProviders,r=Array.isArray(t);Object.keys(this.originalProviders).forEach(function(o){if(!(r&&t.indexOf(o)===-1)){var a=o.split(ea);a.length>1&&a.forEach(bk,C0.call(this,a[0])),bk.call(this,o),this.provider(o,n[o])}},this)},FG=function(t){return this.deferred.forEach(function(r){r(t)}),this};So=function e(t){if(!(this instanceof e))return e.pop(t);this.id=xG++,this.decorators={},this.middlewares={},this.nested={},this.providerMap={},this.originalProviders={},this.deferred=[],this.container={$decorator:H8.bind(this),$register:G8.bind(this),$list:DE.bind(this)}};So.prototype={constant:kG,decorator:H8,defer:RG,digest:NG,factory:IE,instanceFactory:MG,list:DE,middleware:SG,provider:z8,resetProviders:$G,register:G8,resolve:FG,service:EG,serviceFactory:TG,value:jG};So.pop=IG;So.clear=DG;So.list=DE;So.config={strict:!1};const K8=So;var BG=Object.defineProperty,UG=(e,t,n)=>t in e?BG(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,zG=(e,t,n)=>UG(e,t+"",n);const VG=(e,t)=>`${e}/rest/v${t}`,WG=e=>e.dir?`${e.field}-${e.dir}`:void 0,qG=({orderBy:e={},excludeMaxVisitsReached:t,excludePastValidUntil:n,...r})=>({...r,excludeMaxVisitsReached:t===!0?"true":void 0,excludePastValidUntil:n===!0?"true":void 0,orderBy:WG(e)}),HG=(e,t)=>{const[n,r]=e.split("://");if(!r)throw new Error(`It is not possible to determine authority on "${e}" for replacement`);const[,...i]=r.split("/"),o=i.length?`/${i.join("/")}`:"";return`${n}://${t}${o}`},GG=(e={})=>{const t=Object.entries(e).flatMap(([n,r])=>r==null?[]:Array.isArray(r)?r.map(i=>[`${n}[]`,i]):[[n,r]]);return new URLSearchParams(t).toString()};class KG{constructor(t,n){zG(this,"apiVersion"),this.httpClient=t,this.serverInfo=n,this.apiVersion=3}async listShortUrls(t={}){return this.performRequest({url:"/short-urls",query:qG(t)}).then(({shortUrls:n})=>n)}async createShortUrl(t){const n=Object.entries(t).reduce((r,[i,o])=>(o&&(r[i]=o),r),{});return this.performRequest({url:"/short-urls",method:"POST",body:n})}async getShortUrl(t,n){return this.performRequest({url:`/short-urls/${t}`,query:{domain:n}})}async deleteShortUrl(t,n){return this.performEmptyRequest({url:`/short-urls/${t}`,method:"DELETE",query:{domain:n}})}async updateShortUrl(t,n,r){return this.performRequest({url:`/short-urls/${t}`,method:"PATCH",query:{domain:n},body:r})}async getShortUrlRedirectRules(t,n){return this.performRequest({url:`/short-urls/${t}/redirect-rules`,method:"GET",query:{domain:n}})}async setShortUrlRedirectRules(t,n,r){return this.performRequest({url:`/short-urls/${t}/redirect-rules`,method:"POST",query:{domain:n},body:r})}async getVisitsOverview(){return this.performRequest({url:"/visits"}).then(({visits:t})=>t)}async getShortUrlVisits(t,n){return this.performVisitsRequest({url:`/short-urls/${t}/visits`,query:n})}async getTagVisits(t,n){return this.performVisitsRequest({url:`/tags/${t}/visits`,query:n})}async getDomainVisits(t,n){return this.performVisitsRequest({url:`/domains/${t}/visits`,query:n})}async getOrphanVisits(t){return this.performVisitsRequest({url:"/visits/orphan",query:t})}async getNonOrphanVisits(t){return this.performVisitsRequest({url:"/visits/non-orphan",query:t})}async performVisitsRequest(t){return this.performRequest(t).then(({visits:n})=>n)}async deleteShortUrlVisits(t,n){const r=n?{domain:n}:void 0;return this.performRequest({method:"DELETE",url:`/short-urls/${t}/visits`,query:r})}async deleteOrphanVisits(){return this.performRequest({method:"DELETE",url:"/visits/orphan"})}async listTags(){return this.performRequest({url:"/tags",query:{withStats:"true"}}).then(({tags:t})=>t)}async tagsStats(){return this.performRequest({url:"/tags/stats"}).then(({tags:t})=>t)}async deleteTags(t){return this.performEmptyRequest({url:"/tags",method:"DELETE",query:{tags:t}}).then(()=>({tags:t}))}async editTag(t,n){return this.performEmptyRequest({url:"/tags",method:"PUT",body:{oldName:t,newName:n}}).then(()=>({oldName:t,newName:n}))}async listDomains(){return this.performRequest({url:"/domains"}).then(({domains:t})=>t)}async editDomainRedirects(t){return this.performRequest({url:"/domains/redirects",method:"PATCH",body:t})}async health(t){return this.performRequest({url:"/health",domain:t})}async mercureInfo(){return this.performRequest({url:"/mercure-info"})}async performRequest(t){return this.httpClient.jsonRequest(...this.toFetchParams(t))}async performEmptyRequest(t){return this.httpClient.emptyRequest(...this.toFetchParams(t))}toFetchParams({url:t,method:n="GET",query:r={},body:i,domain:o}){const a=GG(r),s=a?`?${a}`:"",c=o?HG(this.serverInfo.baseUrl,o):this.serverInfo.baseUrl;return[`${VG(c,this.apiVersion)}${t}${s}`,{method:n,body:i&&JSON.stringify(i),headers:{"X-Api-Key":this.serverInfo.apiKey}}]}}const Y8=e=>!!(e!=null&&e.url)&&!!(e!=null&&e.apiKey),Th=e=>!!(e!=null&&e.id),$E=e=>!!(e!=null&&e.version),YG=e=>!!(e!=null&&e.serverNotFound),ZG=e=>Th(e)?e.id:"",XG=({name:e,url:t,apiKey:n})=>({name:e,url:t,apiKey:n}),_k={},QG=e=>typeof e=="function",JG=e=>{const{selectedServer:t}=e();if(!Y8(t))throw new Error("There's no selected server or it is not found");return t},eK=e=>t=>{const{url:n,apiKey:r}=QG(t)?JG(t):t,i=`${r}_${n}`,o=_k[i]??new KG(e,{apiKey:r,baseUrl:n});return _k[i]=o,o},tK=e=>{e.serviceFactory("buildShlinkApiClient",eK,"HttpClient")};/*! + * Font Awesome Free 6.7.1 by @fontawesome - https://fontawesome.com + * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) + * Copyright 2024 Fonticons, Inc. + */const nK={prefix:"fas",iconName:"trash-can",icon:[448,512,[61460,"trash-alt"],"f2ed","M135.2 17.7C140.6 6.8 151.7 0 163.8 0L284.2 0c12.1 0 23.2 6.8 28.6 17.7L320 32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 96C14.3 96 0 81.7 0 64S14.3 32 32 32l96 0 7.2-14.3zM32 128l384 0 0 320c0 35.3-28.7 64-64 64L96 512c-35.3 0-64-28.7-64-64l0-320zm96 64c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16z"]},rK={prefix:"fas",iconName:"down-left-and-up-right-to-center",icon:[512,512,["compress-alt"],"f422","M439 7c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8l-144 0c-13.3 0-24-10.7-24-24l0-144c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39L439 7zM72 272l144 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39L73 505c-9.4 9.4-24.6 9.4-33.9 0L7 473c-9.4-9.4-9.4-24.6 0-33.9l87-87L55 313c-6.9-6.9-8.9-17.2-5.2-26.2s12.5-14.8 22.2-14.8z"]},iK={prefix:"fas",iconName:"calendar-days",icon:[448,512,["calendar-alt"],"f073","M128 0c17.7 0 32 14.3 32 32l0 32 128 0 0-32c0-17.7 14.3-32 32-32s32 14.3 32 32l0 32 48 0c26.5 0 48 21.5 48 48l0 48L0 160l0-48C0 85.5 21.5 64 48 64l48 0 0-32c0-17.7 14.3-32 32-32zM0 192l448 0 0 272c0 26.5-21.5 48-48 48L48 512c-26.5 0-48-21.5-48-48L0 192zm64 80l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm128 0l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0zM64 400l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0zm112 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16z"]},oK=iK,aK={prefix:"fas",iconName:"circle-minus",icon:[512,512,["minus-circle"],"f056","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM184 232l144 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-144 0c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]},FE=aK,sK={prefix:"fas",iconName:"file-csv",icon:[512,512,[],"f6dd","M0 64C0 28.7 28.7 0 64 0L224 0l0 128c0 17.7 14.3 32 32 32l128 0 0 144-208 0c-35.3 0-64 28.7-64 64l0 144-48 0c-35.3 0-64-28.7-64-64L0 64zm384 64l-128 0L256 0 384 128zM200 352l16 0c22.1 0 40 17.9 40 40l0 8c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-8c0-4.4-3.6-8-8-8l-16 0c-4.4 0-8 3.6-8 8l0 80c0 4.4 3.6 8 8 8l16 0c4.4 0 8-3.6 8-8l0-8c0-8.8 7.2-16 16-16s16 7.2 16 16l0 8c0 22.1-17.9 40-40 40l-16 0c-22.1 0-40-17.9-40-40l0-80c0-22.1 17.9-40 40-40zm133.1 0l34.9 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-34.9 0c-7.2 0-13.1 5.9-13.1 13.1c0 5.2 3 9.9 7.8 12l37.4 16.6c16.3 7.2 26.8 23.4 26.8 41.2c0 24.9-20.2 45.1-45.1 45.1L304 512c-8.8 0-16-7.2-16-16s7.2-16 16-16l42.9 0c7.2 0 13.1-5.9 13.1-13.1c0-5.2-3-9.9-7.8-12l-37.4-16.6c-16.3-7.2-26.8-23.4-26.8-41.2c0-24.9 20.2-45.1 45.1-45.1zm98.9 0c8.8 0 16 7.2 16 16l0 31.6c0 23 5.5 45.6 16 66c10.5-20.3 16-42.9 16-66l0-31.6c0-8.8 7.2-16 16-16s16 7.2 16 16l0 31.6c0 34.7-10.3 68.7-29.6 97.6l-5.1 7.7c-3 4.5-8 7.1-13.3 7.1s-10.3-2.7-13.3-7.1l-5.1-7.7c-19.3-28.9-29.6-62.9-29.6-97.6l0-31.6c0-8.8 7.2-16 16-16z"]},lK={prefix:"fas",iconName:"pencil",icon:[512,512,[9999,61504,"pencil-alt"],"f303","M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1 0 32c0 8.8 7.2 16 16 16l32 0zM362.7 18.7L348.3 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z"]},Z8=lK,X8={prefix:"fas",iconName:"circle-notch",icon:[512,512,[],"f1ce","M222.7 32.1c5 16.9-4.6 34.8-21.5 39.8C121.8 95.6 64 169.1 64 256c0 106 86 192 192 192s192-86 192-192c0-86.9-57.8-160.4-137.1-184.1c-16.9-5-26.6-22.9-21.5-39.8s22.9-26.6 39.8-21.5C434.9 42.1 512 140 512 256c0 141.4-114.6 256-256 256S0 397.4 0 256C0 140 77.1 42.1 182.9 10.6c16.9-5 34.8 4.6 39.8 21.5z"]},uK={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]},BE={prefix:"fas",iconName:"list",icon:[512,512,["list-squares"],"f03a","M40 48C26.7 48 16 58.7 16 72l0 48c0 13.3 10.7 24 24 24l48 0c13.3 0 24-10.7 24-24l0-48c0-13.3-10.7-24-24-24L40 48zM192 64c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L192 64zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-288 0zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-288 0zM16 232l0 48c0 13.3 10.7 24 24 24l48 0c13.3 0 24-10.7 24-24l0-48c0-13.3-10.7-24-24-24l-48 0c-13.3 0-24 10.7-24 24zM40 368c-13.3 0-24 10.7-24 24l0 48c0 13.3 10.7 24 24 24l48 0c13.3 0 24-10.7 24-24l0-48c0-13.3-10.7-24-24-24l-48 0z"]},cK={prefix:"fas",iconName:"circle-dot",icon:[512,512,[128280,"dot-circle"],"f192","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-352a96 96 0 1 1 0 192 96 96 0 1 1 0-192z"]},fK=cK,dK={prefix:"fas",iconName:"pen-to-square",icon:[512,512,["edit"],"f044","M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160L0 416c0 53 43 96 96 96l256 0c53 0 96-43 96-96l0-96c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7-14.3 32-32 32L96 448c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L96 64z"]},UE=dK,hK={prefix:"fas",iconName:"plug",icon:[384,512,[128268],"f1e6","M96 0C78.3 0 64 14.3 64 32l0 96 64 0 0-96c0-17.7-14.3-32-32-32zM288 0c-17.7 0-32 14.3-32 32l0 96 64 0 0-96c0-17.7-14.3-32-32-32zM32 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l0 32c0 77.4 55 142 128 156.8l0 67.2c0 17.7 14.3 32 32 32s32-14.3 32-32l0-67.2C297 398 352 333.4 352 256l0-32c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 160z"]},pK={prefix:"fas",iconName:"globe",icon:[512,512,[127760],"f0ac","M352 256c0 22.2-1.2 43.6-3.3 64l-185.3 0c-2.2-20.4-3.3-41.8-3.3-64s1.2-43.6 3.3-64l185.3 0c2.2 20.4 3.3 41.8 3.3 64zm28.8-64l123.1 0c5.3 20.5 8.1 41.9 8.1 64s-2.8 43.5-8.1 64l-123.1 0c2.1-20.6 3.2-42 3.2-64s-1.1-43.4-3.2-64zm112.6-32l-116.7 0c-10-63.9-29.8-117.4-55.3-151.6c78.3 20.7 142 77.5 171.9 151.6zm-149.1 0l-176.6 0c6.1-36.4 15.5-68.6 27-94.7c10.5-23.6 22.2-40.7 33.5-51.5C239.4 3.2 248.7 0 256 0s16.6 3.2 27.8 13.8c11.3 10.8 23 27.9 33.5 51.5c11.6 26 20.9 58.2 27 94.7zm-209 0L18.6 160C48.6 85.9 112.2 29.1 190.6 8.4C165.1 42.6 145.3 96.1 135.3 160zM8.1 192l123.1 0c-2.1 20.6-3.2 42-3.2 64s1.1 43.4 3.2 64L8.1 320C2.8 299.5 0 278.1 0 256s2.8-43.5 8.1-64zM194.7 446.6c-11.6-26-20.9-58.2-27-94.6l176.6 0c-6.1 36.4-15.5 68.6-27 94.6c-10.5 23.6-22.2 40.7-33.5 51.5C272.6 508.8 263.3 512 256 512s-16.6-3.2-27.8-13.8c-11.3-10.8-23-27.9-33.5-51.5zM135.3 352c10 63.9 29.8 117.4 55.3 151.6C112.2 482.9 48.6 426.1 18.6 352l116.7 0zm358.1 0c-30 74.1-93.6 130.9-171.9 151.6c25.5-34.2 45.2-87.7 55.3-151.6l116.7 0z"]},mK={prefix:"fas",iconName:"ban",icon:[512,512,[128683,"cancel"],"f05e","M367.2 412.5L99.5 144.8C77.1 176.1 64 214.5 64 256c0 106 86 192 192 192c41.5 0 79.9-13.1 111.2-35.5zm45.3-45.3C434.9 335.9 448 297.5 448 256c0-106-86-192-192-192c-41.5 0-79.9 13.1-111.2 35.5L412.5 367.2zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z"]},xk={prefix:"fas",iconName:"server",icon:[512,512,[],"f233","M64 32C28.7 32 0 60.7 0 96l0 64c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-64c0-35.3-28.7-64-64-64L64 32zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm48 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zM64 288c-35.3 0-64 28.7-64 64l0 64c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-64c0-35.3-28.7-64-64-64L64 288zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm56 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]},vK={prefix:"fas",iconName:"file-arrow-up",icon:[384,512,["file-upload"],"f574","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM216 408c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-102.1-31 31c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l72-72c9.4-9.4 24.6-9.4 33.9 0l72 72c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-31-31L216 408z"]},gK=vK,yK={prefix:"fas",iconName:"map-location-dot",icon:[576,512,["map-marked-alt"],"f5a0","M408 120c0 54.6-73.1 151.9-105.2 192c-7.7 9.6-22 9.6-29.6 0C241.1 271.9 168 174.6 168 120C168 53.7 221.7 0 288 0s120 53.7 120 120zm8 80.4c3.5-6.9 6.7-13.8 9.6-20.6c.5-1.2 1-2.5 1.5-3.7l116-46.4C558.9 123.4 576 135 576 152l0 270.8c0 9.8-6 18.6-15.1 22.3L416 503l0-302.6zM137.6 138.3c2.4 14.1 7.2 28.3 12.8 41.5c2.9 6.8 6.1 13.7 9.6 20.6l0 251.4L32.9 502.7C17.1 509 0 497.4 0 480.4L0 209.6c0-9.8 6-18.6 15.1-22.3l122.6-49zM327.8 332c13.9-17.4 35.7-45.7 56.2-77l0 249.3L192 449.4 192 255c20.5 31.3 42.3 59.6 56.2 77c20.5 25.6 59.1 25.6 79.6 0zM288 152a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]},JO=yK,bK={prefix:"fas",iconName:"caret-up",icon:[320,512,[],"f0d8","M182.6 137.4c-12.5-12.5-32.8-12.5-45.3 0l-128 128c-9.2 9.2-11.9 22.9-6.9 34.9s16.6 19.8 29.6 19.8l256 0c12.9 0 24.6-7.8 29.6-19.8s2.2-25.7-6.9-34.9l-128-128z"]},_K={prefix:"fas",iconName:"palette",icon:[512,512,[127912],"f53f","M512 256c0 .9 0 1.8 0 2.7c-.4 36.5-33.6 61.3-70.1 61.3L344 320c-26.5 0-48 21.5-48 48c0 3.4 .4 6.7 1 9.9c2.1 10.2 6.5 20 10.8 29.9c6.1 13.8 12.1 27.5 12.1 42c0 31.8-21.6 60.7-53.4 62c-3.5 .1-7 .2-10.6 .2C114.6 512 0 397.4 0 256S114.6 0 256 0S512 114.6 512 256zM128 288a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm0-96a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM288 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm96 96a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},xK={prefix:"fas",iconName:"arrow-down-wide-short",icon:[576,512,["sort-amount-asc","sort-amount-down"],"f160","M151.6 469.6C145.5 476.2 137 480 128 480s-17.5-3.8-23.6-10.4l-88-96c-11.9-13-11.1-33.3 2-45.2s33.3-11.1 45.2 2L96 365.7 96 64c0-17.7 14.3-32 32-32s32 14.3 32 32l0 301.7 32.4-35.4c11.9-13 32.2-13.9 45.2-2s13.9 32.2 2 45.2l-88 96zM320 480c-17.7 0-32-14.3-32-32s14.3-32 32-32l32 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-32 0zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-96 0zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32l160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-160 0zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32l224 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L320 96z"]},wK=xK,zE={prefix:"fas",iconName:"chart-pie",icon:[576,512,["pie-chart"],"f200","M304 240l0-223.4c0-9 7-16.6 16-16.6C443.7 0 544 100.3 544 224c0 9-7.6 16-16.6 16L304 240zM32 272C32 150.7 122.1 50.3 239 34.3c9.2-1.3 17 6.1 17 15.4L256 288 412.5 444.5c6.7 6.7 6.2 17.7-1.5 23.1C371.8 495.6 323.8 512 272 512C139.5 512 32 404.6 32 272zm526.4 16c9.3 0 16.6 7.8 15.4 17c-7.7 55.9-34.6 105.6-73.9 142.3c-6 5.6-15.4 5.2-21.2-.7L320 288l238.4 0z"]},E0={prefix:"fas",iconName:"chart-line",icon:[512,512,["line-chart"],"f201","M64 64c0-17.7-14.3-32-32-32S0 46.3 0 64L0 400c0 44.2 35.8 80 80 80l400 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 416c-8.8 0-16-7.2-16-16L64 64zm406.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L320 210.7l-57.4-57.4c-12.5-12.5-32.8-12.5-45.3 0l-112 112c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L240 221.3l57.4 57.4c12.5 12.5 32.8 12.5 45.3 0l128-128z"]},Q8={prefix:"fas",iconName:"tags",icon:[512,512,[],"f02c","M345 39.1L472.8 168.4c52.4 53 52.4 138.2 0 191.2L360.8 472.9c-9.3 9.4-24.5 9.5-33.9 .2s-9.5-24.5-.2-33.9L438.6 325.9c33.9-34.3 33.9-89.4 0-123.7L310.9 72.9c-9.3-9.4-9.2-24.6 .2-33.9s24.6-9.2 33.9 .2zM0 229.5L0 80C0 53.5 21.5 32 48 32l149.5 0c17 0 33.3 6.7 45.3 18.7l168 168c25 25 25 65.5 0 90.5L277.3 442.7c-25 25-65.5 25-90.5 0l-168-168C6.7 262.7 0 246.5 0 229.5zM144 144a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},wk={prefix:"fas",iconName:"calendar-xmark",icon:[448,512,["calendar-times"],"f273","M128 0c17.7 0 32 14.3 32 32l0 32 128 0 0-32c0-17.7 14.3-32 32-32s32 14.3 32 32l0 32 48 0c26.5 0 48 21.5 48 48l0 48L0 160l0-48C0 85.5 21.5 64 48 64l48 0 0-32c0-17.7 14.3-32 32-32zM0 192l448 0 0 272c0 26.5-21.5 48-48 48L48 512c-26.5 0-48-21.5-48-48L0 192zM305 305c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-47 47-47-47c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l47 47-47 47c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l47-47 47 47c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-47-47 47-47z"]},OK={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M135.2 17.7L128 32 32 32C14.3 32 0 46.3 0 64S14.3 96 32 96l384 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0-7.2-14.3C307.4 6.8 296.3 0 284.2 0L163.8 0c-12.1 0-23.2 6.8-28.6 17.7zM416 128L32 128 53.2 467c1.6 25.3 22.6 45 47.9 45l245.8 0c25.3 0 46.3-19.7 47.9-45L416 128z"]},SK={prefix:"fas",iconName:"arrow-left",icon:[448,512,[8592],"f060","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.2 288 416 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"]},PK={prefix:"fas",iconName:"up-right-from-square",icon:[512,512,["external-link-alt"],"f35d","M352 0c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9L370.7 96 201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L416 141.3l41.4 41.4c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6l0-128c0-17.7-14.3-32-32-32L352 0zM80 32C35.8 32 0 67.8 0 112L0 432c0 44.2 35.8 80 80 80l320 0c44.2 0 80-35.8 80-80l0-112c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 112c0 8.8-7.2 16-16 16L80 448c-8.8 0-16-7.2-16-16l0-320c0-8.8 7.2-16 16-16l112 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 32z"]},CK=PK,EK={prefix:"fas",iconName:"tag",icon:[448,512,[127991],"f02b","M0 80L0 229.5c0 17 6.7 33.3 18.7 45.3l176 176c25 25 65.5 25 90.5 0L418.7 317.3c25-25 25-65.5 0-90.5l-176-176c-12-12-28.3-18.7-45.3-18.7L48 32C21.5 32 0 53.5 0 80zm112 32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},TK={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},VE=TK,WE={prefix:"fas",iconName:"arrow-rotate-left",icon:[512,512,[8634,"arrow-left-rotate","arrow-rotate-back","arrow-rotate-backward","undo"],"f0e2","M125.7 160l50.3 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L48 224c-17.7 0-32-14.3-32-32L16 64c0-17.7 14.3-32 32-32s32 14.3 32 32l0 51.2L97.6 97.6c87.5-87.5 229.3-87.5 316.8 0s87.5 229.3 0 316.8s-229.3 87.5-316.8 0c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0c62.5 62.5 163.8 62.5 226.3 0s62.5-163.8 0-226.3s-163.8-62.5-226.3 0L125.7 160z"]},jK=WE,AK={prefix:"fas",iconName:"grip-vertical",icon:[320,512,[],"f58e","M40 352l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zm192 0l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 320c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 192l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 160c-22.1 0-40-17.9-40-40L0 72C0 49.9 17.9 32 40 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40z"]},kK={prefix:"fas",iconName:"caret-down",icon:[320,512,[],"f0d7","M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z"]},RK={prefix:"fas",iconName:"ellipsis-vertical",icon:[128,512,["ellipsis-v"],"f142","M64 360a56 56 0 1 0 0 112 56 56 0 1 0 0-112zm0-160a56 56 0 1 0 0 112 56 56 0 1 0 0-112zM120 96A56 56 0 1 0 8 96a56 56 0 1 0 112 0z"]},NK=RK,MK={prefix:"fas",iconName:"house",icon:[576,512,[127968,63498,63500,"home","home-alt","home-lg-alt"],"f015","M575.8 255.5c0 18-15 32.1-32 32.1l-32 0 .7 160.2c0 2.7-.2 5.4-.5 8.1l0 16.2c0 22.1-17.9 40-40 40l-16 0c-1.1 0-2.2 0-3.3-.1c-1.4 .1-2.8 .1-4.2 .1L416 512l-24 0c-22.1 0-40-17.9-40-40l0-24 0-64c0-17.7-14.3-32-32-32l-64 0c-17.7 0-32 14.3-32 32l0 64 0 24c0 22.1-17.9 40-40 40l-24 0-31.9 0c-1.5 0-3-.1-4.5-.2c-1.2 .1-2.4 .2-3.6 .2l-16 0c-22.1 0-40-17.9-40-40l0-112c0-.9 0-1.9 .1-2.8l0-69.7-32 0c-18 0-32-14-32-32.1c0-9 3-17 10-24L266.4 8c7-7 15-8 22-8s15 2 21 7L564.8 231.5c8 7 12 15 11 24z"]},LK=MK,IK={prefix:"fas",iconName:"arrow-up-wide-short",icon:[576,512,["sort-amount-up"],"f161","M151.6 42.4C145.5 35.8 137 32 128 32s-17.5 3.8-23.6 10.4l-88 96c-11.9 13-11.1 33.3 2 45.2s33.3 11.1 45.2-2L96 146.3 96 448c0 17.7 14.3 32 32 32s32-14.3 32-32l0-301.7 32.4 35.4c11.9 13 32.2 13.9 45.2 2s13.9-32.2 2-45.2l-88-96zM320 480l32 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-32 0c-17.7 0-32 14.3-32 32s14.3 32 32 32zm0-128l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0c-17.7 0-32 14.3-32 32s14.3 32 32 32zm0-128l160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-160 0c-17.7 0-32 14.3-32 32s14.3 32 32 32zm0-128l224 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32z"]},DK=IK,$K={prefix:"fas",iconName:"file-arrow-down",icon:[384,512,["file-download"],"f56d","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM216 232l0 102.1 31-31c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-72 72c-9.4 9.4-24.6 9.4-33.9 0l-72-72c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l31 31L168 232c0-13.3 10.7-24 24-24s24 10.7 24 24z"]},J8=$K,FK={prefix:"fas",iconName:"sun",icon:[512,512,[9728],"f185","M361.5 1.2c5 2.1 8.6 6.6 9.6 11.9L391 121l107.9 19.8c5.3 1 9.8 4.6 11.9 9.6s1.5 10.7-1.6 15.2L446.9 256l62.3 90.3c3.1 4.5 3.7 10.2 1.6 15.2s-6.6 8.6-11.9 9.6L391 391 371.1 498.9c-1 5.3-4.6 9.8-9.6 11.9s-10.7 1.5-15.2-1.6L256 446.9l-90.3 62.3c-4.5 3.1-10.2 3.7-15.2 1.6s-8.6-6.6-9.6-11.9L121 391 13.1 371.1c-5.3-1-9.8-4.6-11.9-9.6s-1.5-10.7 1.6-15.2L65.1 256 2.8 165.7c-3.1-4.5-3.7-10.2-1.6-15.2s6.6-8.6 11.9-9.6L121 121 140.9 13.1c1-5.3 4.6-9.8 9.6-11.9s10.7-1.5 15.2 1.6L256 65.1 346.3 2.8c4.5-3.1 10.2-3.7 15.2-1.6zM160 256a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zm224 0a128 128 0 1 0 -256 0 128 128 0 1 0 256 0z"]},BK={prefix:"fas",iconName:"arrow-down",icon:[384,512,[8595],"f063","M169.4 470.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 370.8 224 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 306.7L54.6 265.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"]},UK={prefix:"fas",iconName:"link",icon:[640,512,[128279,"chain"],"f0c1","M579.8 267.7c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114L422.3 334.8c-31.5 31.5-82.5 31.5-114 0c-27.9-27.9-31.5-71.8-8.6-103.8l1.1-1.6c10.3-14.4 6.9-34.4-7.4-44.6s-34.4-6.9-44.6 7.4l-1.1 1.6C206.5 251.2 213 330 263 380c56.5 56.5 148 56.5 204.5 0L579.8 267.7zM60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5L217.7 177.2c31.5-31.5 82.5-31.5 114 0c27.9 27.9 31.5 71.8 8.6 103.9l-1.1 1.6c-10.3 14.4-6.9 34.4 7.4 44.6s34.4 6.9 44.6-7.4l1.1-1.6C433.5 260.8 427 182 377 132c-56.5-56.5-148-56.5-204.5 0L60.2 244.3z"]},zK={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},VK=zK,WK={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},qK={prefix:"fas",iconName:"arrow-up",icon:[384,512,[8593],"f062","M214.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 141.2 160 448c0 17.7 14.3 32 32 32s32-14.3 32-32l0-306.7L329.4 246.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160z"]},Hp={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 144L48 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0 0 144c0 17.7 14.3 32 32 32s32-14.3 32-32l0-144 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-144z"]},e$={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},eS=e$,HK={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},GK={prefix:"fas",iconName:"rotate",icon:[512,512,[128260,"sync-alt"],"f2f1","M142.9 142.9c-17.5 17.5-30.1 38-37.8 59.8c-5.9 16.7-24.2 25.4-40.8 19.5s-25.4-24.2-19.5-40.8C55.6 150.7 73.2 122 97.6 97.6c87.2-87.2 228.3-87.5 315.8-1L455 55c6.9-6.9 17.2-8.9 26.2-5.2s14.8 12.5 14.8 22.2l0 128c0 13.3-10.7 24-24 24l-8.4 0c0 0 0 0 0 0L344 224c-9.7 0-18.5-5.8-22.2-14.8s-1.7-19.3 5.2-26.2l41.1-41.1c-62.6-61.5-163.1-61.2-225.3 1zM16 312c0-13.3 10.7-24 24-24l7.6 0 .7 0L168 288c9.7 0 18.5 5.8 22.2 14.8s1.7 19.3-5.2 26.2l-41.1 41.1c62.6 61.5 163.1 61.2 225.3-1c17.5-17.5 30.1-38 37.8-59.8c5.9-16.7 24.2-25.4 40.8-19.5s25.4 24.2 19.5 40.8c-10.8 30.6-28.4 59.3-52.9 83.8c-87.2 87.2-228.3 87.5-315.8 1L57 457c-6.9 6.9-17.2 8.9-26.2 5.2S16 449.7 16 440l0-119.6 0-.7 0-7.6z"]},KK=GK,Ok={prefix:"fas",iconName:"robot",icon:[640,512,[129302],"f544","M320 0c17.7 0 32 14.3 32 32l0 64 120 0c39.8 0 72 32.2 72 72l0 272c0 39.8-32.2 72-72 72l-304 0c-39.8 0-72-32.2-72-72l0-272c0-39.8 32.2-72 72-72l120 0 0-64c0-17.7 14.3-32 32-32zM208 384c-8.8 0-16 7.2-16 16s7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0zM264 256a40 40 0 1 0 -80 0 40 40 0 1 0 80 0zm152 40a40 40 0 1 0 0-80 40 40 0 1 0 0 80zM48 224l16 0 0 192-16 0c-26.5 0-48-21.5-48-48l0-96c0-26.5 21.5-48 48-48zm544 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-16 0 0-192 16 0z"]},t$={prefix:"fas",iconName:"gears",icon:[640,512,["cogs"],"f085","M308.5 135.3c7.1-6.3 9.9-16.2 6.2-25c-2.3-5.3-4.8-10.5-7.6-15.5L304 89.4c-3-5-6.3-9.9-9.8-14.6c-5.7-7.6-15.7-10.1-24.7-7.1l-28.2 9.3c-10.7-8.8-23-16-36.2-20.9L199 27.1c-1.9-9.3-9.1-16.7-18.5-17.8C173.9 8.4 167.2 8 160.4 8l-.7 0c-6.8 0-13.5 .4-20.1 1.2c-9.4 1.1-16.6 8.6-18.5 17.8L115 56.1c-13.3 5-25.5 12.1-36.2 20.9L50.5 67.8c-9-3-19-.5-24.7 7.1c-3.5 4.7-6.8 9.6-9.9 14.6l-3 5.3c-2.8 5-5.3 10.2-7.6 15.6c-3.7 8.7-.9 18.6 6.2 25l22.2 19.8C32.6 161.9 32 168.9 32 176s.6 14.1 1.7 20.9L11.5 216.7c-7.1 6.3-9.9 16.2-6.2 25c2.3 5.3 4.8 10.5 7.6 15.6l3 5.2c3 5.1 6.3 9.9 9.9 14.6c5.7 7.6 15.7 10.1 24.7 7.1l28.2-9.3c10.7 8.8 23 16 36.2 20.9l6.1 29.1c1.9 9.3 9.1 16.7 18.5 17.8c6.7 .8 13.5 1.2 20.4 1.2s13.7-.4 20.4-1.2c9.4-1.1 16.6-8.6 18.5-17.8l6.1-29.1c13.3-5 25.5-12.1 36.2-20.9l28.2 9.3c9 3 19 .5 24.7-7.1c3.5-4.7 6.8-9.5 9.8-14.6l3.1-5.4c2.8-5 5.3-10.2 7.6-15.5c3.7-8.7 .9-18.6-6.2-25l-22.2-19.8c1.1-6.8 1.7-13.8 1.7-20.9s-.6-14.1-1.7-20.9l22.2-19.8zM112 176a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM504.7 500.5c6.3 7.1 16.2 9.9 25 6.2c5.3-2.3 10.5-4.8 15.5-7.6l5.4-3.1c5-3 9.9-6.3 14.6-9.8c7.6-5.7 10.1-15.7 7.1-24.7l-9.3-28.2c8.8-10.7 16-23 20.9-36.2l29.1-6.1c9.3-1.9 16.7-9.1 17.8-18.5c.8-6.7 1.2-13.5 1.2-20.4s-.4-13.7-1.2-20.4c-1.1-9.4-8.6-16.6-17.8-18.5L583.9 307c-5-13.3-12.1-25.5-20.9-36.2l9.3-28.2c3-9 .5-19-7.1-24.7c-4.7-3.5-9.6-6.8-14.6-9.9l-5.3-3c-5-2.8-10.2-5.3-15.6-7.6c-8.7-3.7-18.6-.9-25 6.2l-19.8 22.2c-6.8-1.1-13.8-1.7-20.9-1.7s-14.1 .6-20.9 1.7l-19.8-22.2c-6.3-7.1-16.2-9.9-25-6.2c-5.3 2.3-10.5 4.8-15.6 7.6l-5.2 3c-5.1 3-9.9 6.3-14.6 9.9c-7.6 5.7-10.1 15.7-7.1 24.7l9.3 28.2c-8.8 10.7-16 23-20.9 36.2L315.1 313c-9.3 1.9-16.7 9.1-17.8 18.5c-.8 6.7-1.2 13.5-1.2 20.4s.4 13.7 1.2 20.4c1.1 9.4 8.6 16.6 17.8 18.5l29.1 6.1c5 13.3 12.1 25.5 20.9 36.2l-9.3 28.2c-3 9-.5 19 7.1 24.7c4.7 3.5 9.5 6.8 14.6 9.8l5.4 3.1c5 2.8 10.2 5.3 15.5 7.6c8.7 3.7 18.6 .9 25-6.2l19.8-22.2c6.8 1.1 13.8 1.7 20.9 1.7s14.1-.6 20.9-1.7l19.8 22.2zM464 304a48 48 0 1 1 0 96 48 48 0 1 1 0-96z"]},YK=t$,ZK={prefix:"fas",iconName:"qrcode",icon:[448,512,[],"f029","M0 80C0 53.5 21.5 32 48 32l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48L0 80zM64 96l0 64 64 0 0-64L64 96zM0 336c0-26.5 21.5-48 48-48l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48l0-96zm64 16l0 64 64 0 0-64-64 0zM304 32l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48l0-96c0-26.5 21.5-48 48-48zm80 64l-64 0 0 64 64 0 0-64zM256 304c0-8.8 7.2-16 16-16l64 0c8.8 0 16 7.2 16 16s7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s7.2-16 16-16s16 7.2 16 16l0 96c0 8.8-7.2 16-16 16l-64 0c-8.8 0-16-7.2-16-16s-7.2-16-16-16s-16 7.2-16 16l0 64c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-160zM368 480a16 16 0 1 1 0-32 16 16 0 1 1 0 32zm64 0a16 16 0 1 1 0-32 16 16 0 1 1 0 32z"]},XK={prefix:"fas",iconName:"moon",icon:[384,512,[127769,9214],"f186","M223.5 32C100 32 0 132.3 0 256S100 480 223.5 480c60.6 0 115.5-24.2 155.8-63.4c5-4.9 6.3-12.5 3.1-18.7s-10.1-9.7-17-8.5c-9.8 1.7-19.8 2.6-30.1 2.6c-96.9 0-175.5-78.8-175.5-176c0-65.8 36-123.1 89.3-153.3c6.1-3.5 9.2-10.5 7.7-17.3s-7.3-11.9-14.3-12.5c-6.3-.5-12.6-.8-19-.8z"]},QK={prefix:"fas",iconName:"up-right-and-down-left-from-center",icon:[512,512,["expand-alt"],"f424","M344 0L488 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39-87 87c-9.4 9.4-24.6 9.4-33.9 0l-32-32c-9.4-9.4-9.4-24.6 0-33.9l87-87L327 41c-6.9-6.9-8.9-17.2-5.2-26.2S334.3 0 344 0zM168 512L24 512c-13.3 0-24-10.7-24-24L0 344c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39 87-87c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8z"]},JK={prefix:"fas",iconName:"link-slash",icon:[640,512,["chain-broken","chain-slash","unlink"],"f127","M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L489.3 358.2l90.5-90.5c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114l-96 96-31.9-25C430.9 239.6 420.1 175.1 377 132c-52.2-52.3-134.5-56.2-191.3-11.7L38.8 5.1zM239 162c30.1-14.9 67.7-9.9 92.8 15.3c20 20 27.5 48.3 21.7 74.5L239 162zM406.6 416.4L220.9 270c-2.1 39.8 12.2 80.1 42.2 110c38.9 38.9 94.4 51 143.6 36.3zm-290-228.5L60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5l61.8-61.8-50.6-39.9z"]},eY={prefix:"fas",iconName:"desktop",icon:[576,512,[128421,61704,"desktop-alt"],"f390","M64 0C28.7 0 0 28.7 0 64L0 352c0 35.3 28.7 64 64 64l176 0-10.7 32L160 448c-17.7 0-32 14.3-32 32s14.3 32 32 32l256 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-69.3 0L336 416l176 0c35.3 0 64-28.7 64-64l0-288c0-35.3-28.7-64-64-64L64 0zM512 64l0 224L64 288 64 64l448 0z"]},Yh={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},n$={prefix:"fas",iconName:"arrows-split-up-and-left",icon:[512,512,[],"e4bc","M246.6 150.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l96-96c12.5-12.5 32.8-12.5 45.3 0l96 96c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L352 109.3 352 384c0 35.3 28.7 64 64 64l64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-64 0c-70.7 0-128-57.3-128-128c0-35.3-28.7-64-64-64l-114.7 0 41.4 41.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0l-96-96c-12.5-12.5-12.5-32.8 0-45.3l96-96c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3L109.3 256 224 256c23.3 0 45.2 6.2 64 17.1l0-163.9-41.4 41.4z"]},tY={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480L40 480c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24l0 112c0 13.3 10.7 24 24 24s24-10.7 24-24l0-112c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},nY=tY;/*! + * Font Awesome Free 6.7.1 by @fontawesome - https://fontawesome.com + * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) + * Copyright 2024 Fonticons, Inc. + */function rY(e,t,n){return(t=oY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ze(e){for(var t=1;t{};let qE={},r$={},i$=null,o$={mark:Pk,measure:Pk};try{typeof window<"u"&&(qE=window),typeof document<"u"&&(r$=document),typeof MutationObserver<"u"&&(i$=MutationObserver),typeof performance<"u"&&(o$=performance)}catch{}const{userAgent:Ck=""}=qE.navigator||{},rl=qE,an=r$,Ek=i$,Dv=o$;rl.document;const Za=!!an.documentElement&&!!an.head&&typeof an.addEventListener=="function"&&typeof an.createElement=="function",a$=~Ck.indexOf("MSIE")||~Ck.indexOf("Trident/");var aY=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,sY=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,s$={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"}},lY={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},l$=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],gr="classic",T0="duotone",uY="sharp",cY="sharp-duotone",u$=[gr,T0,uY,cY],fY={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"}},dY={"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"}},hY=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}]]),pY={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",brands:"fab"},duotone:{solid:"fad",regular:"fadr",light:"fadl",thin:"fadt"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds",regular:"fasdr",light:"fasdl",thin:"fasdt"}},mY=["fak","fa-kit","fakd","fa-kit-duotone"],Tk={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},vY=["kit"],gY={kit:{"fa-kit":"fak"},"kit-duotone":{"fa-kit-duotone":"fakd"}},yY=["fak","fakd"],bY={kit:{fak:"fa-kit"},"kit-duotone":{fakd:"fa-kit-duotone"}},jk={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},$v={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},_Y=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],xY=["fak","fa-kit","fakd","fa-kit-duotone"],wY={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},OY={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"}},SY={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]},tS={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"}},PY=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],nS=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt",..._Y,...PY],CY=["solid","regular","light","thin","duotone","brands"],c$=[1,2,3,4,5,6,7,8,9,10],EY=c$.concat([11,12,13,14,15,16,17,18,19,20]),TY=[...Object.keys(SY),...CY,"2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",$v.GROUP,$v.SWAP_OPACITY,$v.PRIMARY,$v.SECONDARY].concat(c$.map(e=>"".concat(e,"x"))).concat(EY.map(e=>"w-".concat(e))),jY={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}};const Fa="___FONT_AWESOME___",rS=16,f$="fa",d$="svg-inline--fa",bu="data-fa-i2svg",iS="data-fa-pseudo-element",AY="data-fa-pseudo-element-pending",HE="data-prefix",GE="data-icon",Ak="fontawesome-i2svg",kY="async",RY=["HTML","HEAD","STYLE","SCRIPT"],h$=(()=>{try{return!0}catch{return!1}})();function Gp(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[gr]}})}const p$=ze({},s$);p$[gr]=ze(ze(ze(ze({},{"fa-duotone":"duotone"}),s$[gr]),Tk.kit),Tk["kit-duotone"]);const NY=Gp(p$),oS=ze({},pY);oS[gr]=ze(ze(ze(ze({},{duotone:"fad"}),oS[gr]),jk.kit),jk["kit-duotone"]);const kk=Gp(oS),aS=ze({},tS);aS[gr]=ze(ze({},aS[gr]),bY.kit);const KE=Gp(aS),sS=ze({},OY);sS[gr]=ze(ze({},sS[gr]),gY.kit);Gp(sS);const MY=aY,m$="fa-layers-text",LY=sY,IY=ze({},fY);Gp(IY);const DY=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],h1=lY,$Y=[...vY,...TY],jh=rl.FontAwesomeConfig||{};function FY(e){var t=an.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function BY(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}an&&typeof an.querySelector=="function"&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(t=>{let[n,r]=t;const i=BY(FY(n));i!=null&&(jh[r]=i)});const v$={styleDefault:"solid",familyDefault:gr,cssPrefix:f$,replacementClass:d$,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};jh.familyPrefix&&(jh.cssPrefix=jh.familyPrefix);const af=ze(ze({},v$),jh);af.autoReplaceSvg||(af.observeMutations=!1);const at={};Object.keys(v$).forEach(e=>{Object.defineProperty(at,e,{enumerable:!0,set:function(t){af[e]=t,Ah.forEach(n=>n(at))},get:function(){return af[e]}})});Object.defineProperty(at,"familyPrefix",{enumerable:!0,set:function(e){af.cssPrefix=e,Ah.forEach(t=>t(at))},get:function(){return af.cssPrefix}});rl.FontAwesomeConfig=at;const Ah=[];function UY(e){return Ah.push(e),()=>{Ah.splice(Ah.indexOf(e),1)}}const Ds=rS,Ho={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function zY(e){if(!e||!Za)return;const t=an.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=an.head.childNodes;let r=null;for(let i=n.length-1;i>-1;i--){const o=n[i],a=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=o)}return an.head.insertBefore(t,r),e}const VY="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Zh(){let e=12,t="";for(;e-- >0;)t+=VY[Math.random()*62|0];return t}function Kf(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function YE(e){return e.classList?Kf(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function g$(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function WY(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat(g$(e[n]),'" '),"").trim()}function j0(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function ZE(e){return e.size!==Ho.size||e.x!==Ho.x||e.y!==Ho.y||e.rotate!==Ho.rotate||e.flipX||e.flipY}function qY(e){let{transform:t,containerWidth:n,iconWidth:r}=e;const i={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(t.x*32,", ").concat(t.y*32,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)"),c={transform:"".concat(o," ").concat(a," ").concat(s)},u={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:c,path:u}}function HY(e){let{transform:t,width:n=rS,height:r=rS,startCentered:i=!1}=e,o="";return i&&a$?o+="translate(".concat(t.x/Ds-n/2,"em, ").concat(t.y/Ds-r/2,"em) "):i?o+="translate(calc(-50% + ".concat(t.x/Ds,"em), calc(-50% + ").concat(t.y/Ds,"em)) "):o+="translate(".concat(t.x/Ds,"em, ").concat(t.y/Ds,"em) "),o+="scale(".concat(t.size/Ds*(t.flipX?-1:1),", ").concat(t.size/Ds*(t.flipY?-1:1),") "),o+="rotate(".concat(t.rotate,"deg) "),o}var GY=`:root, :host { + --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free"; + --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free"; + --fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro"; + --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro"; + --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone"; + --fa-font-duotone-regular: normal 400 1em/1 "Font Awesome 6 Duotone"; + --fa-font-duotone-light: normal 300 1em/1 "Font Awesome 6 Duotone"; + --fa-font-duotone-thin: normal 100 1em/1 "Font Awesome 6 Duotone"; + --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands"; + --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp"; + --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp"; + --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp"; + --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp"; + --fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone"; + --fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 6 Sharp Duotone"; + --fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 6 Sharp Duotone"; + --fa-font-sharp-duotone-thin: normal 100 1em/1 "Font Awesome 6 Sharp Duotone"; +} + +svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa { + overflow: visible; + box-sizing: content-box; +} + +.svg-inline--fa { + display: var(--fa-display, inline-block); + height: 1em; + overflow: visible; + vertical-align: -0.125em; +} +.svg-inline--fa.fa-2xs { + vertical-align: 0.1em; +} +.svg-inline--fa.fa-xs { + vertical-align: 0em; +} +.svg-inline--fa.fa-sm { + vertical-align: -0.0714285705em; +} +.svg-inline--fa.fa-lg { + vertical-align: -0.2em; +} +.svg-inline--fa.fa-xl { + vertical-align: -0.25em; +} +.svg-inline--fa.fa-2xl { + vertical-align: -0.3125em; +} +.svg-inline--fa.fa-pull-left { + margin-right: var(--fa-pull-margin, 0.3em); + width: auto; +} +.svg-inline--fa.fa-pull-right { + margin-left: var(--fa-pull-margin, 0.3em); + width: auto; +} +.svg-inline--fa.fa-li { + width: var(--fa-li-width, 2em); + top: 0.25em; +} +.svg-inline--fa.fa-fw { + width: var(--fa-fw-width, 1.25em); +} + +.fa-layers svg.svg-inline--fa { + bottom: 0; + left: 0; + margin: auto; + position: absolute; + right: 0; + top: 0; +} + +.fa-layers-counter, .fa-layers-text { + display: inline-block; + position: absolute; + text-align: center; +} + +.fa-layers { + display: inline-block; + height: 1em; + position: relative; + text-align: center; + vertical-align: -0.125em; + width: 1em; +} +.fa-layers svg.svg-inline--fa { + transform-origin: center center; +} + +.fa-layers-text { + left: 50%; + top: 50%; + transform: translate(-50%, -50%); + transform-origin: center center; +} + +.fa-layers-counter { + background-color: var(--fa-counter-background-color, #ff253a); + border-radius: var(--fa-counter-border-radius, 1em); + box-sizing: border-box; + color: var(--fa-inverse, #fff); + line-height: var(--fa-counter-line-height, 1); + max-width: var(--fa-counter-max-width, 5em); + min-width: var(--fa-counter-min-width, 1.5em); + overflow: hidden; + padding: var(--fa-counter-padding, 0.25em 0.5em); + right: var(--fa-right, 0); + text-overflow: ellipsis; + top: var(--fa-top, 0); + transform: scale(var(--fa-counter-scale, 0.25)); + transform-origin: top right; +} + +.fa-layers-bottom-right { + bottom: var(--fa-bottom, 0); + right: var(--fa-right, 0); + top: auto; + transform: scale(var(--fa-layers-scale, 0.25)); + transform-origin: bottom right; +} + +.fa-layers-bottom-left { + bottom: var(--fa-bottom, 0); + left: var(--fa-left, 0); + right: auto; + top: auto; + transform: scale(var(--fa-layers-scale, 0.25)); + transform-origin: bottom left; +} + +.fa-layers-top-right { + top: var(--fa-top, 0); + right: var(--fa-right, 0); + transform: scale(var(--fa-layers-scale, 0.25)); + transform-origin: top right; +} + +.fa-layers-top-left { + left: var(--fa-left, 0); + right: auto; + top: var(--fa-top, 0); + transform: scale(var(--fa-layers-scale, 0.25)); + transform-origin: top left; +} + +.fa-1x { + font-size: 1em; +} + +.fa-2x { + font-size: 2em; +} + +.fa-3x { + font-size: 3em; +} + +.fa-4x { + font-size: 4em; +} + +.fa-5x { + font-size: 5em; +} + +.fa-6x { + font-size: 6em; +} + +.fa-7x { + font-size: 7em; +} + +.fa-8x { + font-size: 8em; +} + +.fa-9x { + font-size: 9em; +} + +.fa-10x { + font-size: 10em; +} + +.fa-2xs { + font-size: 0.625em; + line-height: 0.1em; + vertical-align: 0.225em; +} + +.fa-xs { + font-size: 0.75em; + line-height: 0.0833333337em; + vertical-align: 0.125em; +} + +.fa-sm { + font-size: 0.875em; + line-height: 0.0714285718em; + vertical-align: 0.0535714295em; +} + +.fa-lg { + font-size: 1.25em; + line-height: 0.05em; + vertical-align: -0.075em; +} + +.fa-xl { + font-size: 1.5em; + line-height: 0.0416666682em; + vertical-align: -0.125em; +} + +.fa-2xl { + font-size: 2em; + line-height: 0.03125em; + vertical-align: -0.1875em; +} + +.fa-fw { + text-align: center; + width: 1.25em; +} + +.fa-ul { + list-style-type: none; + margin-left: var(--fa-li-margin, 2.5em); + padding-left: 0; +} +.fa-ul > li { + position: relative; +} + +.fa-li { + left: calc(-1 * var(--fa-li-width, 2em)); + position: absolute; + text-align: center; + width: var(--fa-li-width, 2em); + line-height: inherit; +} + +.fa-border { + border-color: var(--fa-border-color, #eee); + border-radius: var(--fa-border-radius, 0.1em); + border-style: var(--fa-border-style, solid); + border-width: var(--fa-border-width, 0.08em); + padding: var(--fa-border-padding, 0.2em 0.25em 0.15em); +} + +.fa-pull-left { + float: left; + margin-right: var(--fa-pull-margin, 0.3em); +} + +.fa-pull-right { + float: right; + margin-left: var(--fa-pull-margin, 0.3em); +} + +.fa-beat { + animation-name: fa-beat; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 1s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, ease-in-out); +} + +.fa-bounce { + animation-name: fa-bounce; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 1s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); +} + +.fa-fade { + animation-name: fa-fade; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 1s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); +} + +.fa-beat-fade { + animation-name: fa-beat-fade; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 1s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); +} + +.fa-flip { + animation-name: fa-flip; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 1s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, ease-in-out); +} + +.fa-shake { + animation-name: fa-shake; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 1s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, linear); +} + +.fa-spin { + animation-name: fa-spin; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 2s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, linear); +} + +.fa-spin-reverse { + --fa-animation-direction: reverse; +} + +.fa-pulse, +.fa-spin-pulse { + animation-name: fa-spin; + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 1s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, steps(8)); +} + +@media (prefers-reduced-motion: reduce) { + .fa-beat, +.fa-bounce, +.fa-fade, +.fa-beat-fade, +.fa-flip, +.fa-pulse, +.fa-shake, +.fa-spin, +.fa-spin-pulse { + animation-delay: -1ms; + animation-duration: 1ms; + animation-iteration-count: 1; + transition-delay: 0s; + transition-duration: 0s; + } +} +@keyframes fa-beat { + 0%, 90% { + transform: scale(1); + } + 45% { + transform: scale(var(--fa-beat-scale, 1.25)); + } +} +@keyframes fa-bounce { + 0% { + transform: scale(1, 1) translateY(0); + } + 10% { + transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + } + 30% { + transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); + } + 50% { + transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + } + 57% { + transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + } + 64% { + transform: scale(1, 1) translateY(0); + } + 100% { + transform: scale(1, 1) translateY(0); + } +} +@keyframes fa-fade { + 50% { + opacity: var(--fa-fade-opacity, 0.4); + } +} +@keyframes fa-beat-fade { + 0%, 100% { + opacity: var(--fa-beat-fade-opacity, 0.4); + transform: scale(1); + } + 50% { + opacity: 1; + transform: scale(var(--fa-beat-fade-scale, 1.125)); + } +} +@keyframes fa-flip { + 50% { + transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + } +} +@keyframes fa-shake { + 0% { + transform: rotate(-15deg); + } + 4% { + transform: rotate(15deg); + } + 8%, 24% { + transform: rotate(-18deg); + } + 12%, 28% { + transform: rotate(18deg); + } + 16% { + transform: rotate(-22deg); + } + 20% { + transform: rotate(22deg); + } + 32% { + transform: rotate(-12deg); + } + 36% { + transform: rotate(12deg); + } + 40%, 100% { + transform: rotate(0deg); + } +} +@keyframes fa-spin { + 0% { + transform: rotate(0deg); + } + 100% { + transform: rotate(360deg); + } +} +.fa-rotate-90 { + transform: rotate(90deg); +} + +.fa-rotate-180 { + transform: rotate(180deg); +} + +.fa-rotate-270 { + transform: rotate(270deg); +} + +.fa-flip-horizontal { + transform: scale(-1, 1); +} + +.fa-flip-vertical { + transform: scale(1, -1); +} + +.fa-flip-both, +.fa-flip-horizontal.fa-flip-vertical { + transform: scale(-1, -1); +} + +.fa-rotate-by { + transform: rotate(var(--fa-rotate-angle, 0)); +} + +.fa-stack { + display: inline-block; + vertical-align: middle; + height: 2em; + position: relative; + width: 2.5em; +} + +.fa-stack-1x, +.fa-stack-2x { + bottom: 0; + left: 0; + margin: auto; + position: absolute; + right: 0; + top: 0; + z-index: var(--fa-stack-z-index, auto); +} + +.svg-inline--fa.fa-stack-1x { + height: 1em; + width: 1.25em; +} +.svg-inline--fa.fa-stack-2x { + height: 2em; + width: 2.5em; +} + +.fa-inverse { + color: var(--fa-inverse, #fff); +} + +.sr-only, +.fa-sr-only { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border-width: 0; +} + +.sr-only-focusable:not(:focus), +.fa-sr-only-focusable:not(:focus) { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border-width: 0; +} + +.svg-inline--fa .fa-primary { + fill: var(--fa-primary-color, currentColor); + opacity: var(--fa-primary-opacity, 1); +} + +.svg-inline--fa .fa-secondary { + fill: var(--fa-secondary-color, currentColor); + opacity: var(--fa-secondary-opacity, 0.4); +} + +.svg-inline--fa.fa-swap-opacity .fa-primary { + opacity: var(--fa-secondary-opacity, 0.4); +} + +.svg-inline--fa.fa-swap-opacity .fa-secondary { + opacity: var(--fa-primary-opacity, 1); +} + +.svg-inline--fa mask .fa-primary, +.svg-inline--fa mask .fa-secondary { + fill: black; +}`;function y$(){const e=f$,t=d$,n=at.cssPrefix,r=at.replacementClass;let i=GY;if(n!==e||r!==t){const o=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(s,".".concat(r))}return i}let Rk=!1;function p1(){at.autoAddCss&&!Rk&&(zY(y$()),Rk=!0)}var KY={mixout(){return{dom:{css:y$,insertCss:p1}}},hooks(){return{beforeDOMElementCreation(){p1()},beforeI2svg(){p1()}}}};const Ba=rl||{};Ba[Fa]||(Ba[Fa]={});Ba[Fa].styles||(Ba[Fa].styles={});Ba[Fa].hooks||(Ba[Fa].hooks={});Ba[Fa].shims||(Ba[Fa].shims=[]);var Go=Ba[Fa];const b$=[],_$=function(){an.removeEventListener("DOMContentLoaded",_$),jg=1,b$.map(e=>e())};let jg=!1;Za&&(jg=(an.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(an.readyState),jg||an.addEventListener("DOMContentLoaded",_$));function YY(e){Za&&(jg?setTimeout(e,0):b$.push(e))}function Kp(e){const{tag:t,attributes:n={},children:r=[]}=e;return typeof e=="string"?g$(e):"<".concat(t," ").concat(WY(n),">").concat(r.map(Kp).join(""),"")}function Nk(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var m1=function(t,n,r,i){var o=Object.keys(t),a=o.length,s=n,c,u,h;for(r===void 0?(c=1,h=t[o[0]]):(c=0,h=r);c=55296&&i<=56319&&n=55296&&r<=56319&&n>t+1&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function Mk(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return!!r.icon?t[r.iconName]=r.icon:t[n]=r,t},{})}function uS(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:r=!1}=n,i=Mk(t);typeof Go.hooks.addPack=="function"&&!r?Go.hooks.addPack(e,Mk(t)):Go.styles[e]=ze(ze({},Go.styles[e]||{}),i),e==="fas"&&uS("fa",t)}const{styles:Xh,shims:QY}=Go,x$=Object.keys(KE),JY=x$.reduce((e,t)=>(e[t]=Object.keys(KE[t]),e),{});let XE=null,w$={},O$={},S$={},P$={},C$={};function eZ(e){return~$Y.indexOf(e)}function tZ(e,t){const n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!eZ(i)?i:null}const E$=()=>{const e=r=>m1(Xh,(i,o,a)=>(i[a]=m1(o,r,{}),i),{});w$=e((r,i,o)=>(i[3]&&(r[i[3]]=o),i[2]&&i[2].filter(s=>typeof s=="number").forEach(s=>{r[s.toString(16)]=o}),r)),O$=e((r,i,o)=>(r[o]=o,i[2]&&i[2].filter(s=>typeof s=="string").forEach(s=>{r[s]=o}),r)),C$=e((r,i,o)=>{const a=i[2];return r[o]=o,a.forEach(s=>{r[s]=o}),r});const t="far"in Xh||at.autoFetchSvg,n=m1(QY,(r,i)=>{const o=i[0];let a=i[1];const s=i[2];return a==="far"&&!t&&(a="fas"),typeof o=="string"&&(r.names[o]={prefix:a,iconName:s}),typeof o=="number"&&(r.unicodes[o.toString(16)]={prefix:a,iconName:s}),r},{names:{},unicodes:{}});S$=n.names,P$=n.unicodes,XE=A0(at.styleDefault,{family:at.familyDefault})};UY(e=>{XE=A0(e.styleDefault,{family:at.familyDefault})});E$();function QE(e,t){return(w$[e]||{})[t]}function nZ(e,t){return(O$[e]||{})[t]}function lu(e,t){return(C$[e]||{})[t]}function T$(e){return S$[e]||{prefix:null,iconName:null}}function rZ(e){const t=P$[e],n=QE("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function il(){return XE}const j$=()=>({prefix:null,iconName:null,rest:[]});function iZ(e){let t=gr;const n=x$.reduce((r,i)=>(r[i]="".concat(at.cssPrefix,"-").concat(i),r),{});return u$.forEach(r=>{(e.includes(n[r])||e.some(i=>JY[r].includes(i)))&&(t=r)}),t}function A0(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:n=gr}=t,r=NY[n][e];if(n===T0&&!e)return"fad";const i=kk[n][e]||kk[n][r],o=e in Go.styles?e:null;return i||o||null}function oZ(e){let t=[],n=null;return e.forEach(r=>{const i=tZ(at.cssPrefix,r);i?n=i:r&&t.push(r)}),{iconName:n,rest:t}}function Lk(e){return e.sort().filter((t,n,r)=>r.indexOf(t)===n)}function k0(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:n=!1}=t;let r=null;const i=nS.concat(xY),o=Lk(e.filter(p=>i.includes(p))),a=Lk(e.filter(p=>!nS.includes(p))),s=o.filter(p=>(r=p,!l$.includes(p))),[c=null]=s,u=iZ(o),h=ze(ze({},oZ(a)),{},{prefix:A0(c,{family:u})});return ze(ze(ze({},h),uZ({values:e,family:u,styles:Xh,config:at,canonical:h,givenPrefix:r})),aZ(n,r,h))}function aZ(e,t,n){let{prefix:r,iconName:i}=n;if(e||!r||!i)return{prefix:r,iconName:i};const o=t==="fa"?T$(i):{},a=lu(r,i);return i=o.iconName||a||i,r=o.prefix||r,r==="far"&&!Xh.far&&Xh.fas&&!at.autoFetchSvg&&(r="fas"),{prefix:r,iconName:i}}const sZ=u$.filter(e=>e!==gr||e!==T0),lZ=Object.keys(tS).filter(e=>e!==gr).map(e=>Object.keys(tS[e])).flat();function uZ(e){const{values:t,family:n,canonical:r,givenPrefix:i="",styles:o={},config:a={}}=e,s=n===T0,c=t.includes("fa-duotone")||t.includes("fad"),u=a.familyDefault==="duotone",h=r.prefix==="fad"||r.prefix==="fa-duotone";if(!s&&(c||u||h)&&(r.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(r.prefix="fab"),!r.prefix&&sZ.includes(n)&&(Object.keys(o).find(v=>lZ.includes(v))||a.autoFetchSvg)){const v=hY.get(n).defaultShortPrefixId;r.prefix=v,r.iconName=lu(r.prefix,r.iconName)||r.iconName}return(r.prefix==="fa"||i==="fa")&&(r.prefix=il()||"fas"),r}class cZ{constructor(){this.definitions={}}add(){for(var t=arguments.length,n=new Array(t),r=0;r{this.definitions[o]=ze(ze({},this.definitions[o]||{}),i[o]),uS(o,i[o]);const a=KE[gr][o];a&&uS(a,i[o]),E$()})}reset(){this.definitions={}}_pullDefinitions(t,n){const r=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(r).map(i=>{const{prefix:o,iconName:a,icon:s}=r[i],c=s[2];t[o]||(t[o]={}),c.length>0&&c.forEach(u=>{typeof u=="string"&&(t[o][u]=s)}),t[o][a]=s}),t}}let Ik=[],Vc={};const Qc={},fZ=Object.keys(Qc);function dZ(e,t){let{mixoutsTo:n}=t;return Ik=e,Vc={},Object.keys(Qc).forEach(r=>{fZ.indexOf(r)===-1&&delete Qc[r]}),Ik.forEach(r=>{const i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(o=>{typeof i[o]=="function"&&(n[o]=i[o]),typeof i[o]=="object"&&Object.keys(i[o]).forEach(a=>{n[o]||(n[o]={}),n[o][a]=i[o][a]})}),r.hooks){const o=r.hooks();Object.keys(o).forEach(a=>{Vc[a]||(Vc[a]=[]),Vc[a].push(o[a])})}r.provides&&r.provides(Qc)}),n}function cS(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i{t=a.apply(null,[t,...r])}),t}function _u(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{o.apply(null,n)})}function ol(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Qc[e]?Qc[e].apply(null,t):void 0}function fS(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||il();if(t)return t=lu(n,t)||t,Nk(A$.definitions,n,t)||Nk(Go.styles,n,t)}const A$=new cZ,hZ=()=>{at.autoReplaceSvg=!1,at.observeMutations=!1,_u("noAuto")},pZ={i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Za?(_u("beforeI2svg",e),ol("pseudoElements2svg",e),ol("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;at.autoReplaceSvg===!1&&(at.autoReplaceSvg=!0),at.observeMutations=!0,YY(()=>{vZ({autoReplaceSvgRoot:t}),_u("watch",e)})}},mZ={icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:lu(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){const t=e[1].indexOf("fa-")===0?e[1].slice(3):e[1],n=A0(e[0]);return{prefix:n,iconName:lu(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(at.cssPrefix,"-"))>-1||e.match(MY))){const t=k0(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||il(),iconName:lu(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=il();return{prefix:t,iconName:lu(t,e)||e}}}},xi={noAuto:hZ,config:at,dom:pZ,parse:mZ,library:A$,findIconDefinition:fS,toHtml:Kp},vZ=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=an}=e;(Object.keys(Go.styles).length>0||at.autoFetchSvg)&&Za&&at.autoReplaceSvg&&xi.dom.i2svg({node:t})};function R0(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(n=>Kp(n))}}),Object.defineProperty(e,"node",{get:function(){if(!Za)return;const n=an.createElement("div");return n.innerHTML=e.html,n.children}}),e}function gZ(e){let{children:t,main:n,mask:r,attributes:i,styles:o,transform:a}=e;if(ZE(a)&&n.found&&!r.found){const{width:s,height:c}=n,u={x:s/c/2,y:.5};i.style=j0(ze(ze({},o),{},{"transform-origin":"".concat(u.x+a.x/16,"em ").concat(u.y+a.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function yZ(e){let{prefix:t,iconName:n,children:r,attributes:i,symbol:o}=e;const a=o===!0?"".concat(t,"-").concat(at.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:ze(ze({},i),{},{id:a}),children:r}]}]}function JE(e){const{icons:{main:t,mask:n},prefix:r,iconName:i,transform:o,symbol:a,title:s,maskId:c,titleId:u,extra:h,watchable:p=!1}=e,{width:v,height:b}=n.found?n:t,x=yY.includes(r),_=[at.replacementClass,i?"".concat(at.cssPrefix,"-").concat(i):""].filter(A=>h.classes.indexOf(A)===-1).filter(A=>A!==""||!!A).concat(h.classes).join(" ");let w={children:[],attributes:ze(ze({},h.attributes),{},{"data-prefix":r,"data-icon":i,class:_,role:h.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(v," ").concat(b)})};const O=x&&!~h.classes.indexOf("fa-fw")?{width:"".concat(v/b*16*.0625,"em")}:{};p&&(w.attributes[bu]=""),s&&(w.children.push({tag:"title",attributes:{id:w.attributes["aria-labelledby"]||"title-".concat(u||Zh())},children:[s]}),delete w.attributes.title);const P=ze(ze({},w),{},{prefix:r,iconName:i,main:t,mask:n,maskId:c,transform:o,symbol:a,styles:ze(ze({},O),h.styles)}),{children:E,attributes:T}=n.found&&t.found?ol("generateAbstractMask",P)||{children:[],attributes:{}}:ol("generateAbstractIcon",P)||{children:[],attributes:{}};return P.children=E,P.attributes=T,a?yZ(P):gZ(P)}function Dk(e){const{content:t,width:n,height:r,transform:i,title:o,extra:a,watchable:s=!1}=e,c=ze(ze(ze({},a.attributes),o?{title:o}:{}),{},{class:a.classes.join(" ")});s&&(c[bu]="");const u=ze({},a.styles);ZE(i)&&(u.transform=HY({transform:i,startCentered:!0,width:n,height:r}),u["-webkit-transform"]=u.transform);const h=j0(u);h.length>0&&(c.style=h);const p=[];return p.push({tag:"span",attributes:c,children:[t]}),o&&p.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),p}function bZ(e){const{content:t,title:n,extra:r}=e,i=ze(ze(ze({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),o=j0(r.styles);o.length>0&&(i.style=o);const a=[];return a.push({tag:"span",attributes:i,children:[t]}),n&&a.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),a}const{styles:v1}=Go;function dS(e){const t=e[0],n=e[1],[r]=e.slice(4);let i=null;return Array.isArray(r)?i={tag:"g",attributes:{class:"".concat(at.cssPrefix,"-").concat(h1.GROUP)},children:[{tag:"path",attributes:{class:"".concat(at.cssPrefix,"-").concat(h1.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(at.cssPrefix,"-").concat(h1.PRIMARY),fill:"currentColor",d:r[1]}}]}:i={tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:i}}const _Z={found:!1,width:512,height:512};function xZ(e,t){!h$&&!at.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function hS(e,t){let n=t;return t==="fa"&&at.styleDefault!==null&&(t=il()),new Promise((r,i)=>{if(n==="fa"){const o=T$(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&v1[t]&&v1[t][e]){const o=v1[t][e];return r(dS(o))}xZ(e,t),r(ze(ze({},_Z),{},{icon:at.showMissingIcons&&e?ol("missingIconAbstract")||{}:{}}))})}const $k=()=>{},pS=at.measurePerformance&&Dv&&Dv.mark&&Dv.measure?Dv:{mark:$k,measure:$k},yh='FA "6.7.1"',wZ=e=>(pS.mark("".concat(yh," ").concat(e," begins")),()=>k$(e)),k$=e=>{pS.mark("".concat(yh," ").concat(e," ends")),pS.measure("".concat(yh," ").concat(e),"".concat(yh," ").concat(e," begins"),"".concat(yh," ").concat(e," ends"))};var eT={begin:wZ,end:k$};const dg=()=>{};function Fk(e){return typeof(e.getAttribute?e.getAttribute(bu):null)=="string"}function OZ(e){const t=e.getAttribute?e.getAttribute(HE):null,n=e.getAttribute?e.getAttribute(GE):null;return t&&n}function SZ(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(at.replacementClass)}function PZ(){return at.autoReplaceSvg===!0?hg.replace:hg[at.autoReplaceSvg]||hg.replace}function CZ(e){return an.createElementNS("http://www.w3.org/2000/svg",e)}function EZ(e){return an.createElement(e)}function R$(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?CZ:EZ}=t;if(typeof e=="string")return an.createTextNode(e);const r=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(o){r.setAttribute(o,e.attributes[o])}),(e.children||[]).forEach(function(o){r.appendChild(R$(o,{ceFn:n}))}),r}function TZ(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const hg={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(n=>{t.parentNode.insertBefore(R$(n),t)}),t.getAttribute(bu)===null&&at.keepOriginalSource){let n=an.createComment(TZ(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~YE(t).indexOf(at.replacementClass))return hg.replace(e);const r=new RegExp("".concat(at.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const o=n[0].attributes.class.split(" ").reduce((a,s)=>(s===at.replacementClass||s.match(r)?a.toSvg.push(s):a.toNode.push(s),a),{toNode:[],toSvg:[]});n[0].attributes.class=o.toSvg.join(" "),o.toNode.length===0?t.removeAttribute("class"):t.setAttribute("class",o.toNode.join(" "))}const i=n.map(o=>Kp(o)).join(` +`);t.setAttribute(bu,""),t.innerHTML=i}};function Bk(e){e()}function N$(e,t){const n=typeof t=="function"?t:dg;if(e.length===0)n();else{let r=Bk;at.mutateApproach===kY&&(r=rl.requestAnimationFrame||Bk),r(()=>{const i=PZ(),o=eT.begin("mutate");e.map(i),o(),n()})}}let tT=!1;function M$(){tT=!0}function mS(){tT=!1}let Ag=null;function Uk(e){if(!Ek||!at.observeMutations)return;const{treeCallback:t=dg,nodeCallback:n=dg,pseudoElementsCallback:r=dg,observeMutationsRoot:i=an}=e;Ag=new Ek(o=>{if(tT)return;const a=il();Kf(o).forEach(s=>{if(s.type==="childList"&&s.addedNodes.length>0&&!Fk(s.addedNodes[0])&&(at.searchPseudoElements&&r(s.target),t(s.target)),s.type==="attributes"&&s.target.parentNode&&at.searchPseudoElements&&r(s.target.parentNode),s.type==="attributes"&&Fk(s.target)&&~DY.indexOf(s.attributeName))if(s.attributeName==="class"&&OZ(s.target)){const{prefix:c,iconName:u}=k0(YE(s.target));s.target.setAttribute(HE,c||a),u&&s.target.setAttribute(GE,u)}else SZ(s.target)&&n(s.target)})}),Za&&Ag.observe(i,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function jZ(){Ag&&Ag.disconnect()}function AZ(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce((r,i)=>{const o=i.split(":"),a=o[0],s=o.slice(1);return a&&s.length>0&&(r[a]=s.join(":").trim()),r},{})),n}function kZ(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"";let i=k0(YE(e));return i.prefix||(i.prefix=il()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=nZ(i.prefix,e.innerText)||QE(i.prefix,lS(e.innerText))),!i.iconName&&at.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function RZ(e){const t=Kf(e.attributes).reduce((i,o)=>(i.name!=="class"&&i.name!=="style"&&(i[o.name]=o.value),i),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return at.autoA11y&&(n?t["aria-labelledby"]="".concat(at.replacementClass,"-title-").concat(r||Zh()):(t["aria-hidden"]="true",t.focusable="false")),t}function NZ(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Ho,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function zk(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:i}=kZ(e),o=RZ(e),a=cS("parseNodeAttributes",{},e);let s=t.styleParser?AZ(e):[];return ze({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:Ho,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:s,attributes:o}},a)}const{styles:MZ}=Go;function L$(e){const t=at.autoReplaceSvg==="nest"?zk(e,{styleParser:!1}):zk(e);return~t.extra.classes.indexOf(m$)?ol("generateLayersText",e,t):ol("generateSvgReplacementMutation",e,t)}function LZ(){return[...mY,...nS]}function Vk(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Za)return Promise.resolve();const n=an.documentElement.classList,r=h=>n.add("".concat(Ak,"-").concat(h)),i=h=>n.remove("".concat(Ak,"-").concat(h)),o=at.autoFetchSvg?LZ():l$.concat(Object.keys(MZ));o.includes("fa")||o.push("fa");const a=[".".concat(m$,":not([").concat(bu,"])")].concat(o.map(h=>".".concat(h,":not([").concat(bu,"])"))).join(", ");if(a.length===0)return Promise.resolve();let s=[];try{s=Kf(e.querySelectorAll(a))}catch{}if(s.length>0)r("pending"),i("complete");else return Promise.resolve();const c=eT.begin("onTree"),u=s.reduce((h,p)=>{try{const v=L$(p);v&&h.push(v)}catch(v){h$||v.name==="MissingIcon"&&console.error(v)}return h},[]);return new Promise((h,p)=>{Promise.all(u).then(v=>{N$(v,()=>{r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),c(),h()})}).catch(v=>{c(),p(v)})})}function IZ(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;L$(e).then(n=>{n&&N$([n],t)})}function DZ(e){return function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=(t||{}).icon?t:fS(t||{});let{mask:i}=n;return i&&(i=(i||{}).icon?i:fS(i||{})),e(r,ze(ze({},n),{},{mask:i}))}}const $Z=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Ho,symbol:r=!1,mask:i=null,maskId:o=null,title:a=null,titleId:s=null,classes:c=[],attributes:u={},styles:h={}}=t;if(!e)return;const{prefix:p,iconName:v,icon:b}=e;return R0(ze({type:"icon"},e),()=>(_u("beforeDOMElementCreation",{iconDefinition:e,params:t}),at.autoA11y&&(a?u["aria-labelledby"]="".concat(at.replacementClass,"-title-").concat(s||Zh()):(u["aria-hidden"]="true",u.focusable="false")),JE({icons:{main:dS(b),mask:i?dS(i.icon):{found:!1,width:null,height:null,icon:{}}},prefix:p,iconName:v,transform:ze(ze({},Ho),n),symbol:r,title:a,maskId:o,titleId:s,extra:{attributes:u,styles:h,classes:c}})))};var FZ={mixout(){return{icon:DZ($Z)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=Vk,e.nodeCallback=IZ,e}}},provides(e){e.i2svg=function(t){const{node:n=an,callback:r=()=>{}}=t;return Vk(n,r)},e.generateSvgReplacementMutation=function(t,n){const{iconName:r,title:i,titleId:o,prefix:a,transform:s,symbol:c,mask:u,maskId:h,extra:p}=n;return new Promise((v,b)=>{Promise.all([hS(r,a),u.iconName?hS(u.iconName,u.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(x=>{let[_,w]=x;v([t,JE({icons:{main:_,mask:w},prefix:a,iconName:r,transform:s,symbol:c,maskId:h,title:i,titleId:o,extra:p,watchable:!0})])}).catch(b)})},e.generateAbstractIcon=function(t){let{children:n,attributes:r,main:i,transform:o,styles:a}=t;const s=j0(a);s.length>0&&(r.style=s);let c;return ZE(o)&&(c=ol("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),n.push(c||i.icon),{children:n,attributes:r}}}},BZ={mixout(){return{layer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:n=[]}=t;return R0({type:"layer"},()=>{_u("beforeDOMElementCreation",{assembler:e,params:t});let r=[];return e(i=>{Array.isArray(i)?i.map(o=>{r=r.concat(o.abstract)}):r=r.concat(i.abstract)}),[{tag:"span",attributes:{class:["".concat(at.cssPrefix,"-layers"),...n].join(" ")},children:r}]})}}}},UZ={mixout(){return{counter(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:n=null,classes:r=[],attributes:i={},styles:o={}}=t;return R0({type:"counter",content:e},()=>(_u("beforeDOMElementCreation",{content:e,params:t}),bZ({content:e.toString(),title:n,extra:{attributes:i,styles:o,classes:["".concat(at.cssPrefix,"-layers-counter"),...r]}})))}}}},zZ={mixout(){return{text(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Ho,title:r=null,classes:i=[],attributes:o={},styles:a={}}=t;return R0({type:"text",content:e},()=>(_u("beforeDOMElementCreation",{content:e,params:t}),Dk({content:e,transform:ze(ze({},Ho),n),title:r,extra:{attributes:o,styles:a,classes:["".concat(at.cssPrefix,"-layers-text"),...i]}})))}}},provides(e){e.generateLayersText=function(t,n){const{title:r,transform:i,extra:o}=n;let a=null,s=null;if(a$){const c=parseInt(getComputedStyle(t).fontSize,10),u=t.getBoundingClientRect();a=u.width/c,s=u.height/c}return at.autoA11y&&!r&&(o.attributes["aria-hidden"]="true"),Promise.resolve([t,Dk({content:t.innerHTML,width:a,height:s,transform:i,title:r,extra:o,watchable:!0})])}}};const VZ=new RegExp('"',"ug"),Wk=[1105920,1112319],qk=ze(ze(ze(ze({},{FontAwesome:{normal:"fas",400:"fas"}}),dY),jY),wY),vS=Object.keys(qk).reduce((e,t)=>(e[t.toLowerCase()]=qk[t],e),{}),WZ=Object.keys(vS).reduce((e,t)=>{const n=vS[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e},{});function qZ(e){const t=e.replace(VZ,""),n=XY(t,0),r=n>=Wk[0]&&n<=Wk[1],i=t.length===2?t[0]===t[1]:!1;return{value:lS(i?t[0]:t),isSecondary:r||i}}function HZ(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),i=isNaN(r)?"normal":r;return(vS[n]||{})[i]||WZ[n]}function Hk(e,t){const n="".concat(AY).concat(t.replace(":","-"));return new Promise((r,i)=>{if(e.getAttribute(n)!==null)return r();const a=Kf(e.children).filter(v=>v.getAttribute(iS)===t)[0],s=rl.getComputedStyle(e,t),c=s.getPropertyValue("font-family"),u=c.match(LY),h=s.getPropertyValue("font-weight"),p=s.getPropertyValue("content");if(a&&!u)return e.removeChild(a),r();if(u&&p!=="none"&&p!==""){const v=s.getPropertyValue("content");let b=HZ(c,h);const{value:x,isSecondary:_}=qZ(v),w=u[0].startsWith("FontAwesome");let O=QE(b,x),P=O;if(w){const E=rZ(x);E.iconName&&E.prefix&&(O=E.iconName,b=E.prefix)}if(O&&!_&&(!a||a.getAttribute(HE)!==b||a.getAttribute(GE)!==P)){e.setAttribute(n,P),a&&e.removeChild(a);const E=NZ(),{extra:T}=E;T.attributes[iS]=t,hS(O,b).then(A=>{const j=JE(ze(ze({},E),{},{icons:{main:A,mask:j$()},prefix:b,iconName:P,extra:T,watchable:!0})),N=an.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(N,e.firstChild):e.appendChild(N),N.outerHTML=j.map($=>Kp($)).join(` +`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function GZ(e){return Promise.all([Hk(e,"::before"),Hk(e,"::after")])}function KZ(e){return e.parentNode!==document.head&&!~RY.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(iS)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Gk(e){if(Za)return new Promise((t,n)=>{const r=Kf(e.querySelectorAll("*")).filter(KZ).map(GZ),i=eT.begin("searchPseudoElements");M$(),Promise.all(r).then(()=>{i(),mS(),t()}).catch(()=>{i(),mS(),n()})})}var YZ={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=Gk,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:n=an}=t;at.searchPseudoElements&&Gk(n)}}};let Kk=!1;var ZZ={mixout(){return{dom:{unwatch(){M$(),Kk=!0}}}},hooks(){return{bootstrap(){Uk(cS("mutationObserverCallbacks",{}))},noAuto(){jZ()},watch(e){const{observeMutationsRoot:t}=e;Kk?mS():Uk(cS("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const Yk=e=>{let t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce((n,r)=>{const i=r.toLowerCase().split("-"),o=i[0];let a=i.slice(1).join("-");if(o&&a==="h")return n.flipX=!0,n;if(o&&a==="v")return n.flipY=!0,n;if(a=parseFloat(a),isNaN(a))return n;switch(o){case"grow":n.size=n.size+a;break;case"shrink":n.size=n.size-a;break;case"left":n.x=n.x-a;break;case"right":n.x=n.x+a;break;case"up":n.y=n.y-a;break;case"down":n.y=n.y+a;break;case"rotate":n.rotate=n.rotate+a;break}return n},t)};var XZ={mixout(){return{parse:{transform:e=>Yk(e)}}},hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=Yk(n)),e}}},provides(e){e.generateAbstractTransformGrouping=function(t){let{main:n,transform:r,containerWidth:i,iconWidth:o}=t;const a={transform:"translate(".concat(i/2," 256)")},s="translate(".concat(r.x*32,", ").concat(r.y*32,") "),c="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),u="rotate(".concat(r.rotate," 0 0)"),h={transform:"".concat(s," ").concat(c," ").concat(u)},p={transform:"translate(".concat(o/2*-1," -256)")},v={outer:a,inner:h,path:p};return{tag:"g",attributes:ze({},v.outer),children:[{tag:"g",attributes:ze({},v.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:ze(ze({},n.icon.attributes),v.path)}]}]}}}};const g1={x:0,y:0,width:"100%",height:"100%"};function Zk(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function QZ(e){return e.tag==="g"?e.children:[e]}var JZ={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),r=n?k0(n.split(" ").map(i=>i.trim())):j$();return r.prefix||(r.prefix=il()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides(e){e.generateAbstractMask=function(t){let{children:n,attributes:r,main:i,mask:o,maskId:a,transform:s}=t;const{width:c,icon:u}=i,{width:h,icon:p}=o,v=qY({transform:s,containerWidth:h,iconWidth:c}),b={tag:"rect",attributes:ze(ze({},g1),{},{fill:"white"})},x=u.children?{children:u.children.map(Zk)}:{},_={tag:"g",attributes:ze({},v.inner),children:[Zk(ze({tag:u.tag,attributes:ze(ze({},u.attributes),v.path)},x))]},w={tag:"g",attributes:ze({},v.outer),children:[_]},O="mask-".concat(a||Zh()),P="clip-".concat(a||Zh()),E={tag:"mask",attributes:ze(ze({},g1),{},{id:O,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[b,w]},T={tag:"defs",children:[{tag:"clipPath",attributes:{id:P},children:QZ(p)},E]};return n.push(T,{tag:"rect",attributes:ze({fill:"currentColor","clip-path":"url(#".concat(P,")"),mask:"url(#".concat(O,")")},g1)}),{children:n,attributes:r}}}},eX={provides(e){let t=!1;rl.matchMedia&&(t=rl.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const n=[],r={fill:"currentColor"},i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:ze(ze({},r),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});const o=ze(ze({},i),{},{attributeName:"opacity"}),a={tag:"circle",attributes:ze(ze({},r),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||a.children.push({tag:"animate",attributes:ze(ze({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:ze(ze({},o),{},{values:"1;0;1;1;0;1;"})}),n.push(a),n.push({tag:"path",attributes:ze(ze({},r),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:ze(ze({},o),{},{values:"1;0;0;0;0;1;"})}]}),t||n.push({tag:"path",attributes:ze(ze({},r),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:ze(ze({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},tX={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),r=n===null?!1:n===""?!0:n;return e.symbol=r,e}}}},nX=[KY,FZ,BZ,UZ,zZ,YZ,ZZ,XZ,JZ,eX,tX];dZ(nX,{mixoutsTo:xi});xi.noAuto;xi.config;xi.library;xi.dom;const gS=xi.parse;xi.findIconDefinition;xi.toHtml;const rX=xi.icon;xi.layer;xi.text;xi.counter;var y1={exports:{}},b1,Xk;function iX(){if(Xk)return b1;Xk=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return b1=e,b1}var _1,Qk;function oX(){if(Qk)return _1;Qk=1;var e=iX();function t(){}function n(){}return n.resetWarningCache=t,_1=function(){function r(a,s,c,u,h,p){if(p!==e){var v=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 v.name="Invariant Violation",v}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},_1}var Jk;function aX(){return Jk||(Jk=1,y1.exports=oX()()),y1.exports}var sX=aX();const q=Nt(sX);function eR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function qo(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function uX(e,t){if(e==null)return{};var n=lX(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function yS(e){return cX(e)||fX(e)||dX(e)||hX()}function cX(e){if(Array.isArray(e))return bS(e)}function fX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function dX(e,t){if(e){if(typeof e=="string")return bS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bS(e,t)}}function bS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(c){return D$(e,c)}),i=Object.keys(t.attributes||{}).reduce(function(c,u){var h=t.attributes[u];switch(u){case"class":c.attrs.className=h,delete t.attributes.class;break;case"style":c.attrs.style=yX(h);break;default:u.indexOf("aria-")===0||u.indexOf("data-")===0?c.attrs[u.toLowerCase()]=h:c.attrs[I$(u)]=h}return c},{attrs:{}}),o=n.style,a=o===void 0?{}:o,s=uX(n,vX);return i.attrs.style=qo(qo({},i.attrs.style),a),e.apply(void 0,[t.tag,qo(qo({},i.attrs),s)].concat(yS(r)))}var $$=!1;try{$$=!0}catch{}function bX(){if(!$$&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function tR(e){if(e&&kg(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(gS.icon)return gS.icon(e);if(e===null)return null;if(e&&kg(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function x1(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Wc({},e,t):{}}var nR={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1},Ge=Z.forwardRef(function(e,t){var n=qo(qo({},nR),e),r=n.icon,i=n.mask,o=n.symbol,a=n.className,s=n.title,c=n.titleId,u=n.maskId,h=tR(r),p=x1("classes",[].concat(yS(pX(n)),yS((a||"").split(" ")))),v=x1("transform",typeof n.transform=="string"?gS.transform(n.transform):n.transform),b=x1("mask",tR(i)),x=rX(h,qo(qo(qo(qo({},p),v),b),{},{symbol:o,title:s,titleId:c,maskId:u}));if(!x)return bX("Could not find icon",h),null;var _=x.abstract,w={ref:t};return Object.keys(n).forEach(function(O){nR.hasOwnProperty(O)||(w[O]=n[O])}),_X(_[0],w)});Ge.displayName="FontAwesomeIcon";Ge.propTypes={beat:q.bool,border:q.bool,beatFade:q.bool,bounce:q.bool,className:q.string,fade:q.bool,flash:q.bool,mask:q.oneOfType([q.object,q.array,q.string]),maskId:q.string,fixedWidth:q.bool,inverse:q.bool,flip:q.oneOf([!0,!1,"horizontal","vertical","both"]),icon:q.oneOfType([q.object,q.array,q.string]),listItem:q.bool,pull:q.oneOf(["right","left"]),pulse:q.bool,rotation:q.oneOf([0,90,180,270]),shake:q.bool,size:q.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:q.bool,spinPulse:q.bool,spinReverse:q.bool,symbol:q.oneOfType([q.bool,q.string]),title:q.string,titleId:q.string,transform:q.oneOfType([q.string,q.object]),swapOpacity:q.bool};var _X=D$.bind(null,Z.createElement);function F$(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t0?"".concat(e,"px"):null}function CX(){return document.body.clientWidth0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:jX;return t?e.split(" ").map(function(n){return t[n]||n}).join(" "):e}function fl(e,t){var n={};return Object.keys(e).forEach(function(r){t.indexOf(r)===-1&&(n[r]=e[r])}),n}function U$(e,t){for(var n=Array.isArray(t)?t:[t],r=n.length,i,o={};r>0;)r-=1,i=n[r],o[i]=e[i];return o}var oR={};function _S(e){oR[e]||(typeof console<"u"&&console.error(e),oR[e]=!0)}function z$(e,t){return function(r,i,o){r[i]!==null&&typeof r[i]<"u"&&_S('"'.concat(i,'" property of "').concat(o,`" has been deprecated. +`).concat(t));for(var a=arguments.length,s=new Array(a>3?a-3:0),c=3;c"u"?"undefined":xu(window))==="object"&&window.Element||function(){};function nT(e,t,n){if(!(e[t]instanceof AX))return new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")}var sf=q.oneOfType([q.string,q.func,nT,q.shape({current:q.any})]),At=q.oneOfType([q.func,q.string,q.shape({$$typeof:q.symbol,render:q.func}),q.arrayOf(q.oneOfType([q.func,q.string,q.shape({$$typeof:q.symbol,render:q.func})]))]),Rg={Fade:150,Collapse:350,Modal:300,Carousel:600,Offcanvas:300},Ng=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],Fv={ENTERING:"entering",ENTERED:"entered",EXITING:"exiting",EXITED:"exited"},Bt={esc:27,space:32,enter:13,tab:9,up:38,down:40,home:36,end:35,n:78,p:80},kX=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],rT=!!(typeof window<"u"&&window.document&&window.document.createElement);function RX(e){return e&&xu(e)==="object"?"current"in e:!1}function V$(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function xS(e){var t=xu(e);return e!=null&&(t==="object"||t==="function")}function aR(e){var t=xu(e),n=NaN;if(t==="number")return e;if(t==="symbol"||t==="object"&&V$(e)==="[object Symbol]")return n;if(xS(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=xS(r)?"".concat(r):r}if(t!=="string")return e===0?e:+e;e=e.replace(/^\s+|\s+$/g,"");var i=/^0b[01]+$/i.test(e);return i||/^0o[0-7]+$/i.test(e)?parseInt(e.slice(2),i?2:8):/^[-+]0x[0-9a-f]+$/i.test(e)?n:+e}function NX(e){if(!xS(e))return!1;var t=V$(e);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object Proxy]"}function MX(e){if(RX(e))return e.current;if(NX(e))return e();if(typeof e=="string"&&rT){var t=document.querySelectorAll(e);if(t.length||(t=document.querySelectorAll("#".concat(e))),!t.length)throw new Error("The target '".concat(e,"' could not be identified in the dom, tip: check spelling"));return t}return e}function sR(e){return e===null?!1:Array.isArray(e)||rT&&typeof e.length=="number"}function Qh(e,t){var n=MX(e);return t?sR(n)?n:n===null?[]:[n]:sR(n)?n[0]:n}var LX=["a[href]","area[href]","input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","object","embed","[tabindex]:not(.modal):not(.offcanvas)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'];function iT(e,t){if(!e||!t)return t;var n=OX({},t);return Object.keys(e).forEach(function(r){n[r]===void 0&&(n[r]=e[r]),Object.keys(e[r]||{}).length>0&&xu(e[r])==="object"&&iT(e[r],n)}),n}var IX=["className","cssModule","noGutters","tag","widths"];function wS(){return wS=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $X(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var FX=["xs","sm","md","lg","xl","xxl"],Tc=q.oneOfType([q.number,q.string]),BX={tag:At,noGutters:z$(q.bool,"Please use Bootstrap 5 gutter utility classes. https://getbootstrap.com/docs/5.0/layout/gutters/"),className:q.string,cssModule:q.object,xs:Tc,sm:Tc,md:Tc,lg:Tc,xl:Tc,xxl:Tc,widths:q.array};function qi(e){var t=e.className,n=e.cssModule,r=e.noGutters,i=e.tag,o=i===void 0?"div":i,a=e.widths,s=a===void 0?FX:a,c=DX(e,IX),u=[];s.forEach(function(p,v){var b=e[p];if(delete c[p],!!b){var x=!v;u.push(x?"row-cols-".concat(b):"row-cols-".concat(p,"-").concat(b))}});var h=ct(mt(t,r?"gx-0":null,"row",u),n);return Z.createElement(o,wS({},c,{className:h}))}qi.propTypes=BX;var UX=["expand","className","cssModule","light","dark","fixed","sticky","color","container","tag","children"];function OS(){return OS=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function VX(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var WX={children:q.node,className:q.string,color:q.string,container:q.oneOfType([q.bool,q.string]),cssModule:q.object,dark:q.bool,expand:q.oneOfType([q.bool,q.string]),fixed:q.string,light:q.bool,role:q.string,sticky:q.string,tag:At},qX=function(t){return t===!1?!1:t===!0||t==="xs"?"navbar-expand":"navbar-expand-".concat(t)};function W$(e){var t,n=e.expand,r=n===void 0?!1:n,i=e.className,o=e.cssModule,a=e.light,s=e.dark,c=e.fixed,u=e.sticky,h=e.color,p=e.container,v=p===void 0?"fluid":p,b=e.tag,x=b===void 0?"nav":b,_=e.children,w=zX(e,UX),O=ct(mt(i,"navbar",qX(r),(t={"navbar-light":a,"navbar-dark":s},O1(t,"bg-".concat(h),h),O1(t,"fixed-".concat(c),c),O1(t,"sticky-".concat(u),u),t)),o),P=v&&v===!0?"container":"container-".concat(v);return Z.createElement(x,OS({},w,{className:O}),v?Z.createElement("div",{className:P},_):_)}W$.propTypes=WX;var HX=["className","cssModule","tag"];function SS(){return SS=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function KX(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var YX={className:q.string,cssModule:q.object,tag:At};function q$(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"a":r,o=GX(e,HX),a=ct(mt(t,"navbar-brand"),n);return Z.createElement(i,SS({},o,{className:a}))}q$.propTypes=YX;var ZX=["className","cssModule","children","tag"];function PS(){return PS=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function eQ(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var tQ={className:q.string,cssModule:q.object,tag:At,type:q.string,children:q.node};function H$(e){var t=e.className,n=e.cssModule,r=e.children,i=e.tag,o=i===void 0?"button":i,a=JX(e,ZX),s=ct(mt(t,"navbar-toggler"),n);return Z.createElement(o,PS({"aria-label":"Toggle navigation"},XX({type:"button"},a),{className:s}),r||Z.createElement("span",{className:ct("navbar-toggler-icon",n)}))}H$.propTypes=tQ;var nQ=["className","cssModule","tabs","pills","vertical","horizontal","justified","fill","navbar","card","tag"];function CS(){return CS=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function iQ(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var oQ={card:q.bool,className:q.string,cssModule:q.object,fill:q.bool,horizontal:q.oneOf(["center","end"]),justified:q.bool,navbar:q.bool,pills:q.bool,tabs:q.bool,tag:At,vertical:q.oneOfType([q.bool,q.string])},aQ=function(t){return t===!1?!1:t===!0||t==="xs"?"flex-column":"flex-".concat(t,"-column")};function oT(e){var t=e.className,n=e.cssModule,r=e.tabs,i=e.pills,o=e.vertical,a=o===void 0?!1:o,s=e.horizontal,c=e.justified,u=e.fill,h=e.navbar,p=e.card,v=e.tag,b=v===void 0?"ul":v,x=rQ(e,nQ),_=ct(mt(t,h?"navbar-nav":"nav",s?"justify-content-".concat(s):!1,aQ(a),{"nav-tabs":r,"card-header-tabs":p&&r,"nav-pills":i,"card-header-pills":p&&i,"nav-justified":c,"nav-fill":u}),n);return Z.createElement(b,CS({},x,{className:_}))}oT.propTypes=oQ;var sQ=["className","cssModule","active","tag"];function ES(){return ES=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function uQ(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var cQ={active:q.bool,className:q.string,cssModule:q.object,tag:At};function aT(e){var t=e.className,n=e.cssModule,r=e.active,i=e.tag,o=i===void 0?"li":i,a=lQ(e,sQ),s=ct(mt(t,"nav-item",r?"active":!1),n);return Z.createElement(o,ES({},a,{className:s}))}aT.propTypes=cQ;function TS(e){"@babel/helpers - typeof";return TS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},TS(e)}var fQ=["className","cssModule","active","tag","innerRef"];function jS(){return jS=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function hQ(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function pQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mQ(e,t){for(var n=0;n"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 Mg(e){return Mg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Mg(e)}var xQ={active:q.bool,className:q.string,cssModule:q.object,disabled:q.bool,href:q.any,innerRef:q.oneOfType([q.object,q.func,q.string]),onClick:q.func,tag:At},sT=function(e){gQ(n,e);var t=yQ(n);function n(r){var i;return pQ(this,n),i=t.call(this,r),i.onClick=i.onClick.bind(G$(i)),i}return vQ(n,[{key:"onClick",value:function(i){if(this.props.disabled){i.preventDefault();return}this.props.href==="#"&&i.preventDefault(),this.props.onClick&&this.props.onClick(i)}},{key:"render",value:function(){var i=this.props,o=i.className,a=i.cssModule,s=i.active,c=i.tag,u=c===void 0?"a":c,h=i.innerRef,p=dQ(i,fQ),v=ct(mt(o,"nav-link",{disabled:p.disabled,active:s}),a);return Z.createElement(u,jS({},p,{ref:h,onClick:this.onClick,className:v}))}}]),n}(Z.Component);sT.propTypes=xQ;var wQ=["className","cssModule","variant","innerRef"];function kS(){return kS=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function CQ(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var EQ={active:q.bool,"aria-label":q.string,onClick:q.func,variant:q.oneOf(["white"]),className:q.string,cssModule:q.object,innerRef:q.oneOfType([q.object,q.string,q.func])};function K$(e){var t=e.className;e.cssModule;var n=e.variant,r=e.innerRef,i=PQ(e,wQ),o=ct(mt(t,"btn-close",n&&"btn-close-".concat(n)));return Z.createElement("button",kS({ref:r,type:"button",className:o},OQ({"aria-label":"close"},i)))}K$.propTypes=EQ;var TQ=["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"];function RS(){return RS=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function AQ(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var kQ={active:q.bool,"aria-label":q.string,block:q.bool,children:q.node,className:q.string,cssModule:q.object,close:q.bool,color:q.string,disabled:q.bool,innerRef:q.oneOfType([q.object,q.func,q.string]),onClick:q.func,outline:q.bool,size:q.string,tag:At};function _t(e){var t=F.useCallback(function(P){if(e.disabled){P.preventDefault();return}if(e.onClick)return e.onClick(P)},[e.onClick,e.disabled]),n=e.active,r=e["aria-label"],i=e.block,o=e.className,a=e.close,s=e.cssModule,c=e.color,u=c===void 0?"secondary":c,h=e.outline,p=e.size,v=e.tag,b=v===void 0?"button":v,x=e.innerRef,_=jQ(e,TQ);if(a)return Z.createElement(K$,_);var w="btn".concat(h?"-outline":"","-").concat(u),O=ct(mt(o,"btn",w,p?"btn-".concat(p):!1,i?"d-block w-100":!1,{active:n,disabled:e.disabled}),s);return _.href&&b==="button"&&(b="a"),Z.createElement(b,RS({type:b==="button"&&_.onClick?"button":void 0},_,{className:O,ref:x,onClick:t,"aria-label":r}))}_t.propTypes=kQ;var Y$=F.createContext(),Z$=F.createContext();function cR(e){var t=e.children,n=F.useState(null),r=n[0],i=n[1],o=F.useRef(!1);F.useEffect(function(){return function(){o.current=!0}},[]);var a=F.useCallback(function(s){o.current||i(s)},[]);return F.createElement(Y$.Provider,{value:r},F.createElement(Z$.Provider,{value:a},t))}var X$=function(t){return Array.isArray(t)?t[0]:t},Q$=function(t){if(typeof t=="function"){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i"u")return!1;var t=gi(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function WQ(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!Gi(o)||!ta(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function qQ(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(c,u){return c[u]="",c},{});!Gi(i)||!ta(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(c){i.removeAttribute(c)}))})}}const HQ={name:"applyStyles",enabled:!0,phase:"write",fn:WQ,effect:qQ,requires:["computeStyles"]};function Zo(e){return e.split("-")[0]}var pu=Math.max,Lg=Math.min,uf=Math.round;function MS(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function tF(){return!/^((?!chrome|android).)*safari/i.test(MS())}function cf(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Gi(e)&&(i=e.offsetWidth>0&&uf(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&uf(r.height)/e.offsetHeight||1);var a=wu(e)?gi(e):window,s=a.visualViewport,c=!tF()&&n,u=(r.left+(c&&s?s.offsetLeft:0))/i,h=(r.top+(c&&s?s.offsetTop:0))/o,p=r.width/i,v=r.height/o;return{width:p,height:v,top:h,right:u+p,bottom:h+v,left:u,x:u,y:h}}function cT(e){var t=cf(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function nF(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&uT(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ua(e){return gi(e).getComputedStyle(e)}function GQ(e){return["table","td","th"].indexOf(ta(e))>=0}function dl(e){return((wu(e)?e.ownerDocument:e.document)||window.document).documentElement}function N0(e){return ta(e)==="html"?e:e.assignedSlot||e.parentNode||(uT(e)?e.host:null)||dl(e)}function pR(e){return!Gi(e)||Ua(e).position==="fixed"?null:e.offsetParent}function KQ(e){var t=/firefox/i.test(MS()),n=/Trident/i.test(MS());if(n&&Gi(e)){var r=Ua(e);if(r.position==="fixed")return null}var i=N0(e);for(uT(i)&&(i=i.host);Gi(i)&&["html","body"].indexOf(ta(i))<0;){var o=Ua(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Zp(e){for(var t=gi(e),n=pR(e);n&&GQ(n)&&Ua(n).position==="static";)n=pR(n);return n&&(ta(n)==="html"||ta(n)==="body"&&Ua(n).position==="static")?t:n||KQ(e)||t}function fT(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function kh(e,t,n){return pu(e,Lg(t,n))}function YQ(e,t,n){var r=kh(e,t,n);return r>n?n:r}function rF(){return{top:0,right:0,bottom:0,left:0}}function iF(e){return Object.assign({},rF(),e)}function oF(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var ZQ=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,iF(typeof t!="number"?t:oF(t,Yp))};function XQ(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Zo(n.placement),c=fT(s),u=[Hr,Zi].indexOf(s)>=0,h=u?"height":"width";if(!(!o||!a)){var p=ZQ(i.padding,n),v=cT(o),b=c==="y"?qr:Hr,x=c==="y"?Yi:Zi,_=n.rects.reference[h]+n.rects.reference[c]-a[c]-n.rects.popper[h],w=a[c]-n.rects.reference[c],O=Zp(o),P=O?c==="y"?O.clientHeight||0:O.clientWidth||0:0,E=_/2-w/2,T=p[b],A=P-v[h]-p[x],j=P/2-v[h]/2+E,N=kh(T,j,A),$=c;n.modifiersData[r]=(t={},t[$]=N,t.centerOffset=N-j,t)}}function QQ(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||nF(t.elements.popper,i)&&(t.elements.arrow=i))}const JQ={name:"arrow",enabled:!0,phase:"main",fn:XQ,effect:QQ,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ff(e){return e.split("-")[1]}var eJ={top:"auto",right:"auto",bottom:"auto",left:"auto"};function tJ(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:uf(n*i)/i||0,y:uf(r*i)/i||0}}function mR(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,c=e.gpuAcceleration,u=e.adaptive,h=e.roundOffsets,p=e.isFixed,v=a.x,b=v===void 0?0:v,x=a.y,_=x===void 0?0:x,w=typeof h=="function"?h({x:b,y:_}):{x:b,y:_};b=w.x,_=w.y;var O=a.hasOwnProperty("x"),P=a.hasOwnProperty("y"),E=Hr,T=qr,A=window;if(u){var j=Zp(n),N="clientHeight",$="clientWidth";if(j===gi(n)&&(j=dl(n),Ua(j).position!=="static"&&s==="absolute"&&(N="scrollHeight",$="scrollWidth")),j=j,i===qr||(i===Hr||i===Zi)&&o===Jh){T=Yi;var W=p&&j===A&&A.visualViewport?A.visualViewport.height:j[N];_-=W-r.height,_*=c?1:-1}if(i===Hr||(i===qr||i===Yi)&&o===Jh){E=Zi;var B=p&&j===A&&A.visualViewport?A.visualViewport.width:j[$];b-=B-r.width,b*=c?1:-1}}var V=Object.assign({position:s},u&&eJ),H=h===!0?tJ({x:b,y:_},gi(n)):{x:b,y:_};if(b=H.x,_=H.y,c){var J;return Object.assign({},V,(J={},J[T]=P?"0":"",J[E]=O?"0":"",J.transform=(A.devicePixelRatio||1)<=1?"translate("+b+"px, "+_+"px)":"translate3d("+b+"px, "+_+"px, 0)",J))}return Object.assign({},V,(t={},t[T]=P?_+"px":"",t[E]=O?b+"px":"",t.transform="",t))}function nJ(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,c=s===void 0?!0:s,u={placement:Zo(t.placement),variation:ff(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,mR(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,mR(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const rJ={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:nJ,data:{}};var Bv={passive:!0};function iJ(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,c=gi(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(h){h.addEventListener("scroll",n.update,Bv)}),s&&c.addEventListener("resize",n.update,Bv),function(){o&&u.forEach(function(h){h.removeEventListener("scroll",n.update,Bv)}),s&&c.removeEventListener("resize",n.update,Bv)}}const oJ={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:iJ,data:{}};var aJ={left:"right",right:"left",bottom:"top",top:"bottom"};function pg(e){return e.replace(/left|right|bottom|top/g,function(t){return aJ[t]})}var sJ={start:"end",end:"start"};function vR(e){return e.replace(/start|end/g,function(t){return sJ[t]})}function dT(e){var t=gi(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function hT(e){return cf(dl(e)).left+dT(e).scrollLeft}function lJ(e,t){var n=gi(e),r=dl(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,c=0;if(i){o=i.width,a=i.height;var u=tF();(u||!u&&t==="fixed")&&(s=i.offsetLeft,c=i.offsetTop)}return{width:o,height:a,x:s+hT(e),y:c}}function uJ(e){var t,n=dl(e),r=dT(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=pu(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=pu(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+hT(e),c=-r.scrollTop;return Ua(i||n).direction==="rtl"&&(s+=pu(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:c}}function pT(e){var t=Ua(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function aF(e){return["html","body","#document"].indexOf(ta(e))>=0?e.ownerDocument.body:Gi(e)&&pT(e)?e:aF(N0(e))}function Rh(e,t){var n;t===void 0&&(t=[]);var r=aF(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=gi(r),a=i?[o].concat(o.visualViewport||[],pT(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(Rh(N0(a)))}function LS(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function cJ(e,t){var n=cf(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function gR(e,t,n){return t===J$?LS(lJ(e,n)):wu(t)?cJ(t,n):LS(uJ(dl(e)))}function fJ(e){var t=Rh(N0(e)),n=["absolute","fixed"].indexOf(Ua(e).position)>=0,r=n&&Gi(e)?Zp(e):e;return wu(r)?t.filter(function(i){return wu(i)&&nF(i,r)&&ta(i)!=="body"}):[]}function dJ(e,t,n,r){var i=t==="clippingParents"?fJ(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(c,u){var h=gR(e,u,r);return c.top=pu(h.top,c.top),c.right=Lg(h.right,c.right),c.bottom=Lg(h.bottom,c.bottom),c.left=pu(h.left,c.left),c},gR(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function sF(e){var t=e.reference,n=e.element,r=e.placement,i=r?Zo(r):null,o=r?ff(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case qr:c={x:a,y:t.y-n.height};break;case Yi:c={x:a,y:t.y+t.height};break;case Zi:c={x:t.x+t.width,y:s};break;case Hr:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var u=i?fT(i):null;if(u!=null){var h=u==="y"?"height":"width";switch(o){case lf:c[u]=c[u]-(t[h]/2-n[h]/2);break;case Jh:c[u]=c[u]+(t[h]/2-n[h]/2);break}}return c}function ep(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,s=n.boundary,c=s===void 0?RQ:s,u=n.rootBoundary,h=u===void 0?J$:u,p=n.elementContext,v=p===void 0?rh:p,b=n.altBoundary,x=b===void 0?!1:b,_=n.padding,w=_===void 0?0:_,O=iF(typeof w!="number"?w:oF(w,Yp)),P=v===rh?NQ:rh,E=e.rects.popper,T=e.elements[x?P:v],A=dJ(wu(T)?T:T.contextElement||dl(e.elements.popper),c,h,a),j=cf(e.elements.reference),N=sF({reference:j,element:E,strategy:"absolute",placement:i}),$=LS(Object.assign({},E,N)),W=v===rh?$:j,B={top:A.top-W.top+O.top,bottom:W.bottom-A.bottom+O.bottom,left:A.left-W.left+O.left,right:W.right-A.right+O.right},V=e.modifiersData.offset;if(v===rh&&V){var H=V[i];Object.keys(B).forEach(function(J){var Q=[Zi,Yi].indexOf(J)>=0?1:-1,re=[qr,Yi].indexOf(J)>=0?"y":"x";B[J]+=H[re]*Q})}return B}function hJ(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?eF:c,h=ff(r),p=h?s?hR:hR.filter(function(x){return ff(x)===h}):Yp,v=p.filter(function(x){return u.indexOf(x)>=0});v.length===0&&(v=p);var b=v.reduce(function(x,_){return x[_]=ep(e,{placement:_,boundary:i,rootBoundary:o,padding:a})[Zo(_)],x},{});return Object.keys(b).sort(function(x,_){return b[x]-b[_]})}function pJ(e){if(Zo(e)===lT)return[];var t=pg(e);return[vR(e),t,vR(t)]}function mJ(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,c=n.fallbackPlacements,u=n.padding,h=n.boundary,p=n.rootBoundary,v=n.altBoundary,b=n.flipVariations,x=b===void 0?!0:b,_=n.allowedAutoPlacements,w=t.options.placement,O=Zo(w),P=O===w,E=c||(P||!x?[pg(w)]:pJ(w)),T=[w].concat(E).reduce(function(le,ce){return le.concat(Zo(ce)===lT?hJ(t,{placement:ce,boundary:h,rootBoundary:p,padding:u,flipVariations:x,allowedAutoPlacements:_}):ce)},[]),A=t.rects.reference,j=t.rects.popper,N=new Map,$=!0,W=T[0],B=0;B=0,re=Q?"width":"height",ae=ep(t,{placement:V,boundary:h,rootBoundary:p,altBoundary:v,padding:u}),se=Q?J?Zi:Hr:J?Yi:qr;A[re]>j[re]&&(se=pg(se));var oe=pg(se),K=[];if(o&&K.push(ae[H]<=0),s&&K.push(ae[se]<=0,ae[oe]<=0),K.every(function(le){return le})){W=V,$=!1;break}N.set(V,K)}if($)for(var G=x?3:1,z=function(ce){var de=T.find(function(be){var M=N.get(be);if(M)return M.slice(0,ce).every(function(D){return D})});if(de)return W=de,"break"},ne=G;ne>0;ne--){var X=z(ne);if(X==="break")break}t.placement!==W&&(t.modifiersData[r]._skip=!0,t.placement=W,t.reset=!0)}}const vJ={name:"flip",enabled:!0,phase:"main",fn:mJ,requiresIfExists:["offset"],data:{_skip:!1}};function yR(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function bR(e){return[qr,Zi,Yi,Hr].some(function(t){return e[t]>=0})}function gJ(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=ep(t,{elementContext:"reference"}),s=ep(t,{altBoundary:!0}),c=yR(a,r),u=yR(s,i,o),h=bR(c),p=bR(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:h,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":p})}const yJ={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:gJ};function bJ(e,t,n){var r=Zo(e),i=[Hr,qr].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Hr,Zi].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function _J(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=eF.reduce(function(h,p){return h[p]=bJ(p,t.rects,o),h},{}),s=a[t.placement],c=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}const xJ={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:_J};function wJ(e){var t=e.state,n=e.name;t.modifiersData[n]=sF({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const OJ={name:"popperOffsets",enabled:!0,phase:"read",fn:wJ,data:{}};function SJ(e){return e==="x"?"y":"x"}function PJ(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,c=n.boundary,u=n.rootBoundary,h=n.altBoundary,p=n.padding,v=n.tether,b=v===void 0?!0:v,x=n.tetherOffset,_=x===void 0?0:x,w=ep(t,{boundary:c,rootBoundary:u,padding:p,altBoundary:h}),O=Zo(t.placement),P=ff(t.placement),E=!P,T=fT(O),A=SJ(T),j=t.modifiersData.popperOffsets,N=t.rects.reference,$=t.rects.popper,W=typeof _=="function"?_(Object.assign({},t.rects,{placement:t.placement})):_,B=typeof W=="number"?{mainAxis:W,altAxis:W}:Object.assign({mainAxis:0,altAxis:0},W),V=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,H={x:0,y:0};if(j){if(o){var J,Q=T==="y"?qr:Hr,re=T==="y"?Yi:Zi,ae=T==="y"?"height":"width",se=j[T],oe=se+w[Q],K=se-w[re],G=b?-$[ae]/2:0,z=P===lf?N[ae]:$[ae],ne=P===lf?-$[ae]:-N[ae],X=t.elements.arrow,le=b&&X?cT(X):{width:0,height:0},ce=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:rF(),de=ce[Q],be=ce[re],M=kh(0,N[ae],le[ae]),D=E?N[ae]/2-G-M-de-B.mainAxis:z-M-de-B.mainAxis,Y=E?-N[ae]/2+G+M+be+B.mainAxis:ne+M+be+B.mainAxis,ue=t.elements.arrow&&Zp(t.elements.arrow),ie=ue?T==="y"?ue.clientTop||0:ue.clientLeft||0:0,he=(J=V==null?void 0:V[T])!=null?J:0,Se=se+D-he-ie,Fe=se+Y-he,ge=kh(b?Lg(oe,Se):oe,se,b?pu(K,Fe):K);j[T]=ge,H[T]=ge-se}if(s){var Ee,je=T==="x"?qr:Hr,Me=T==="x"?Yi:Zi,He=j[A],Ue=A==="y"?"height":"width",qe=He+w[je],ye=He-w[Me],we=[qr,Hr].indexOf(O)!==-1,Ae=(Ee=V==null?void 0:V[A])!=null?Ee:0,ke=we?qe:He-N[Ue]-$[Ue]-Ae+B.altAxis,De=we?He+N[Ue]+$[Ue]-Ae-B.altAxis:ye,Ke=b&&we?YQ(ke,He,De):kh(b?ke:qe,He,b?De:ye);j[A]=Ke,H[A]=Ke-He}t.modifiersData[r]=H}}const CJ={name:"preventOverflow",enabled:!0,phase:"main",fn:PJ,requiresIfExists:["offset"]};function EJ(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function TJ(e){return e===gi(e)||!Gi(e)?dT(e):EJ(e)}function jJ(e){var t=e.getBoundingClientRect(),n=uf(t.width)/e.offsetWidth||1,r=uf(t.height)/e.offsetHeight||1;return n!==1||r!==1}function AJ(e,t,n){n===void 0&&(n=!1);var r=Gi(t),i=Gi(t)&&jJ(t),o=dl(t),a=cf(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((ta(t)!=="body"||pT(o))&&(s=TJ(t)),Gi(t)?(c=cf(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=hT(o))),{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function kJ(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var c=t.get(s);c&&i(c)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function RJ(e){var t=kJ(e);return VQ.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function NJ(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function MJ(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var _R={placement:"bottom",modifiers:[],strategy:"absolute"};function xR(){for(var e=arguments.length,t=new Array(e),n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function QJ(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function JJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eee(e,t){for(var n=0;n"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 Ig(e){return Ig=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ig(e)}var aee={a11y:q.bool,disabled:q.bool,direction:q.oneOf(["up","down","start","end","left","right"]),group:q.bool,isOpen:q.bool,nav:q.bool,active:q.bool,size:q.string,tag:At,toggle:q.func,children:q.node,className:q.string,cssModule:q.object,dropup:q.bool,inNavbar:q.bool,setActiveFromChild:q.bool,menuRole:q.oneOf(["listbox","menu"])},see={a11y:!0,isOpen:!1,direction:"down",nav:!1,active:!1,inNavbar:!1,setActiveFromChild:!1},lee=[Bt.space,Bt.enter,Bt.up,Bt.down,Bt.end,Bt.home],hl=function(e){nee(n,e);var t=ree(n);function n(r){var i;return JJ(this,n),i=t.call(this,r),i.addEvents=i.addEvents.bind(Bs(i)),i.handleDocumentClick=i.handleDocumentClick.bind(Bs(i)),i.handleKeyDown=i.handleKeyDown.bind(Bs(i)),i.removeEvents=i.removeEvents.bind(Bs(i)),i.toggle=i.toggle.bind(Bs(i)),i.handleMenuRef=i.handleMenuRef.bind(Bs(i)),i.handleToggleRef=i.handleToggleRef.bind(Bs(i)),i.containerRef=Z.createRef(),i.menuRef=Z.createRef(),i.toggleRef=Z.createRef(),i}return tee(n,[{key:"componentDidMount",value:function(){this.handleProps()}},{key:"componentDidUpdate",value:function(i){this.props.isOpen!==i.isOpen&&this.handleProps()}},{key:"componentWillUnmount",value:function(){this.removeEvents()}},{key:"handleMenuRef",value:function(i){this.menuRef.current=i}},{key:"handleToggleRef",value:function(i){this.toggleRef.current=i}},{key:"handleDocumentClick",value:function(i){if(!(i&&(i.which===3||i.type==="keyup"&&i.which!==Bt.tab))){var o=this.getContainer(),a=this.getMenu(),s=this.getToggle();if(s){var c=s.contains(i.target),u=a&&a.contains(i.target)&&a!==i.target,h=!1;o&&(h=o.classList.contains("input-group")&&o.classList.contains("dropdown")&&i.target.tagName==="INPUT"),!((c&&!h||u)&&(i.type!=="keyup"||i.which===Bt.tab))&&this.toggle(i)}}}},{key:"handleKeyDown",value:function(i){var o=this,a=i.target.getAttribute("role")==="menuitem"||i.target.getAttribute("role")==="option",s=this.getMenuCtrl()===i.target,c=Bt.tab===i.which;if(!(/input|textarea/i.test(i.target.tagName)||c&&!this.props.a11y||c&&!(a||s))&&((lee.indexOf(i.which)!==-1||i.which>=48&&i.which<=90)&&i.preventDefault(),!this.props.disabled)){if(s)if([Bt.space,Bt.enter,Bt.up,Bt.down].indexOf(i.which)>-1)this.props.isOpen||this.toggle(i),setTimeout(function(){var P;return(P=o.getMenuItems()[0])===null||P===void 0?void 0:P.focus()});else if(this.props.isOpen&&c){var u;i.preventDefault(),(u=this.getMenuItems()[0])===null||u===void 0||u.focus()}else this.props.isOpen&&i.which===Bt.esc&&this.toggle(i);if(this.props.isOpen&&a){if([Bt.tab,Bt.esc].indexOf(i.which)>-1)this.toggle(i),this.getMenuCtrl().focus();else if([Bt.space,Bt.enter].indexOf(i.which)>-1)i.target.click(),this.getMenuCtrl().focus();else if([Bt.down,Bt.up].indexOf(i.which)>-1||[Bt.n,Bt.p].indexOf(i.which)>-1&&i.ctrlKey){var h=this.getMenuItems(),p=h.indexOf(i.target);Bt.up===i.which||Bt.p===i.which&&i.ctrlKey?p=p!==0?p-1:h.length-1:(Bt.down===i.which||Bt.n===i.which&&i.ctrlKey)&&(p=p===h.length-1?0:p+1),h[p].focus()}else if(Bt.end===i.which){var v=this.getMenuItems();v[v.length-1].focus()}else if(Bt.home===i.which){var b=this.getMenuItems();b[0].focus()}else if(i.which>=48&&i.which<=90)for(var x=this.getMenuItems(),_=String.fromCharCode(i.which).toLowerCase(),w=0;w=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function fee(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function dee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hee(e,t){for(var n=0;n"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 Dg(e){return Dg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Dg(e)}var bee={children:q.node,active:q.bool,disabled:q.bool,divider:q.bool,tag:At,header:q.bool,onClick:q.func,className:q.string,cssModule:q.object,toggle:q.bool,text:q.bool},Ye=function(e){mee(n,e);var t=vee(n);function n(r){var i;return dee(this,n),i=t.call(this,r),i.onClick=i.onClick.bind(zS(i)),i.getTabIndex=i.getTabIndex.bind(zS(i)),i}return pee(n,[{key:"onClick",value:function(i){var o,a=this.props,s=a.disabled,c=a.header,u=a.divider,h=a.text;if(s||c||u||h){i.preventDefault();return}this.props.onClick&&this.props.onClick(i),(!((o=this.props.toggle)!==null&&o!==void 0)||o)&&this.context.toggle(i)}},{key:"getRole",value:function(){return this.context.menuRole==="listbox"?"option":"menuitem"}},{key:"getTabIndex",value:function(){var i=this.props,o=i.disabled,a=i.header,s=i.divider,c=i.text;return o||a||s||c?"-1":"0"}},{key:"render",value:function(){var i=this.getTabIndex(),o=i>-1?this.getRole():void 0,a=fl(this.props,["toggle"]),s=a.className,c=a.cssModule,u=a.divider,h=a.tag,p=h===void 0?"button":h,v=a.header,b=a.active,x=a.text,_=cee(a,uee),w=ct(mt(s,{disabled:_.disabled,"dropdown-item":!u&&!v&&!x,active:b,"dropdown-header":v,"dropdown-divider":u,"dropdown-item-text":x}),c);return p==="button"&&(v?p="h6":u?p="div":_.href?p="a":x&&(p="span")),Z.createElement(p,BS({type:p==="button"&&(_.onClick||this.props.toggle)?"button":void 0},_,{tabIndex:i,role:o,className:w,onClick:this.onClick}))}}]),n}(Z.Component);Ye.propTypes=bee;Ye.contextType=tp;function VS(e){"@babel/helpers - typeof";return VS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},VS(e)}var _ee=["className","cssModule","dark","end","right","tag","flip","modifiers","persist","strategy","container","updateOnSelect"];function $g(){return $g=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Tee(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function jee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Aee(e,t){for(var n=0;n"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 Fg(e){return Fg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Fg(e)}var Dee={tag:At,children:q.node.isRequired,dark:q.bool,end:q.bool,flip:q.bool,modifiers:q.array,className:q.string,cssModule:q.object,style:q.object,persist:q.bool,strategy:q.string,container:sf,updateOnSelect:q.bool,right:z$(q.bool,'Please use "end" instead.')},$ee={up:"top",left:"left",right:"right",start:"left",end:"right",down:"bottom"},pl=function(e){Ree(n,e);var t=Nee(n);function n(){return jee(this,n),t.apply(this,arguments)}return kee(n,[{key:"getRole",value:function(){return this.context.menuRole==="listbox"?"listbox":"menu"}},{key:"render",value:function(){var i=this,o=this.props,a=o.className,s=o.cssModule,c=o.dark,u=o.end,h=o.right,p=o.tag,v=p===void 0?"div":p,b=o.flip,x=b===void 0?!0:b,_=o.modifiers,w=_===void 0?[]:_,O=o.persist,P=o.strategy,E=o.container,T=o.updateOnSelect,A=Eee(o,_ee),j=ct(mt(a,"dropdown-menu",{"dropdown-menu-dark":c,"dropdown-menu-end":u||h,show:this.context.isOpen}),s),N=v;if(O||this.context.isOpen&&!this.context.inNavbar){var $=$ee[this.context.direction]||"bottom",W=u||h?"end":"start",B="".concat($,"-").concat(W),V=[].concat(wee(w),[{name:"flip",enabled:!!x}]),H={};O&&(H.display="block",H.visibility=this.context.isOpen?"visible":"hidden");var J=Z.createElement(lF,{placement:B,modifiers:V,strategy:P},function(re){var ae=re.ref,se=re.style,oe=re.placement,K=re.update,G=C1(C1(C1({},i.props.style),H),se),z=function(X){ae(X);var le=i.context.onMenuRef;le&&le(X)};return Z.createElement(N,$g({tabIndex:"-1",role:i.getRole(),ref:z},A,{style:G,"aria-hidden":!i.context.isOpen,className:j,"data-popper-placement":oe,onClick:function(){return T&&K()}}))});return E?su.createPortal(J,Qh(E)):J}var Q=this.context.onMenuRef;return Z.createElement(N,$g({tabIndex:"-1",role:this.getRole()},A,{ref:Q,"aria-hidden":!this.context.isOpen,className:j,"data-popper-placement":A.placement,"data-bs-popper":"static"}))}}]),n}(Z.Component);pl.propTypes=Dee;pl.contextType=tp;function HS(e){"@babel/helpers - typeof";return HS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},HS(e)}var Fee=["className","color","cssModule","caret","split","nav","tag","innerRef"];function GS(){return GS=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function zee(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function Vee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wee(e,t){for(var n=0;n"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 Bg(e){return Bg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Bg(e)}var Zee={caret:q.bool,color:q.string,children:q.node,className:q.string,cssModule:q.object,disabled:q.bool,onClick:q.func,"aria-haspopup":q.bool,split:q.bool,tag:At,nav:q.bool,innerRef:q.oneOfType([q.object,q.string,q.func])},Xee={color:"secondary","aria-haspopup":!0},Xa=function(e){Hee(n,e);var t=Gee(n);function n(r){var i;return Vee(this,n),i=t.call(this,r),i.onClick=i.onClick.bind(cF(i)),i}return qee(n,[{key:"onClick",value:function(i){if(this.props.disabled||this.context.disabled){i.preventDefault();return}this.props.nav&&!this.props.tag&&i.preventDefault(),this.props.onClick&&this.props.onClick(i),this.context.toggle(i)}},{key:"getRole",value:function(){return this.context.menuRole||this.props["aria-haspopup"]}},{key:"render",value:function(){var i=this,o=this.props,a=o.className,s=o.color,c=o.cssModule,u=o.caret,h=o.split,p=o.nav,v=o.tag,b=o.innerRef,x=Uee(o,Fee),_=x["aria-label"]||"Toggle Dropdown",w=ct(mt(a,{"dropdown-toggle":u||h,"dropdown-toggle-split":h,"nav-link":p}),c),O=typeof x.children<"u"?x.children:Z.createElement("span",{className:"visually-hidden"},_),P;p&&!v?(P="a",x.href="#"):v?P=v:(P=_t,x.color=s,x.cssModule=c);var E=function(A){var j=A.ref,N=function(W){j(W);var B=i.context.onToggleRef;B&&B(W)};return Z.createElement(P,GS({},x,Bee({},typeof P=="string"?"ref":"innerRef",N),{className:w,onClick:i.onClick,"aria-expanded":i.context.isOpen,"aria-haspopup":i.getRole(),children:O}))};return this.context.inNavbar?Z.createElement(Z.Fragment,null,E({ref:this.context.onToggleRef})):Z.createElement(YJ,{innerRef:b},E)}}]),n}(Z.Component);Xa.propTypes=Zee;Xa.defaultProps=Xee;Xa.contextType=tp;function Qee(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function YS(e,t){return YS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},YS(e,t)}function Jee(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,YS(e,t)}const PR={disabled:!1},fF=Z.createContext(null);var ete=function(t){return t.scrollTop},bh="unmounted",Ql="exited",Jl="entering",Bc="entered",ZS="exiting",Yr=function(e){Jee(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var a=i,s=a&&!a.isMounting?r.enter:r.appear,c;return o.appearStatus=null,r.in?s?(c=Ql,o.appearStatus=Jl):c=Bc:r.unmountOnExit||r.mountOnEnter?c=bh:c=Ql,o.state={status:c},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===bh?{status:Ql}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==Jl&&a!==Bc&&(o=Jl):(a===Jl||a===Bc)&&(o=ZS)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,a,s;return o=a=s=i,i!=null&&typeof i!="number"&&(o=i.exit,a=i.enter,s=i.appear!==void 0?i.appear:a),{exit:o,enter:a,appear:s}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===Jl){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:su.findDOMNode(this);a&&ete(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ql&&this.setState({status:bh})},n.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,c=this.props.nodeRef?[s]:[su.findDOMNode(this),s],u=c[0],h=c[1],p=this.getTimeouts(),v=s?p.appear:p.enter;if(!i&&!a||PR.disabled){this.safeSetState({status:Bc},function(){o.props.onEntered(u)});return}this.props.onEnter(u,h),this.safeSetState({status:Jl},function(){o.props.onEntering(u,h),o.onTransitionEnd(v,function(){o.safeSetState({status:Bc},function(){o.props.onEntered(u,h)})})})},n.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:su.findDOMNode(this);if(!o||PR.disabled){this.safeSetState({status:Ql},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:ZS},function(){i.props.onExiting(s),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:Ql},function(){i.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,o.nextCallback=null,i(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:su.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=c[0],h=c[1];this.props.addEndListener(u,h)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===bh)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=Qee(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Z.createElement(fF.Provider,{value:null},typeof a=="function"?a(i,s):Z.cloneElement(Z.Children.only(a),s))},t}(Z.Component);Yr.contextType=fF;Yr.propTypes={};function jc(){}Yr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:jc,onEntering:jc,onEntered:jc,onExit:jc,onExiting:jc,onExited:jc};Yr.UNMOUNTED=bh;Yr.EXITED=Ql;Yr.ENTERING=Jl;Yr.ENTERED=Bc;Yr.EXITING=ZS;var tte=["tag","baseClass","baseClassActive","className","cssModule","children","innerRef"];function Ug(){return Ug=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function rte(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function CR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function np(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function lte(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function ute(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cte(e,t){for(var n=0;n"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 Vg(e){return Vg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Vg(e)}function TR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function df(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function wte(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var Ote={body:q.bool,className:q.string,color:q.string,cssModule:q.object,innerRef:q.oneOfType([q.object,q.string,q.func]),inverse:q.bool,outline:q.bool,tag:At};function wi(e){var t=e.className,n=e.cssModule,r=e.color,i=e.body,o=e.inverse,a=e.outline,s=e.tag,c=s===void 0?"div":s,u=e.innerRef,h=xte(e,_te),p=ct(mt(t,"card",o?"text-white":!1,i?"card-body":!1,r?"".concat(a?"border":"bg","-").concat(r):!1),n);return Z.createElement(c,JS({},h,{className:p,ref:u}))}wi.propTypes=Ote;var Ste=["className","cssModule","innerRef","tag"];function eP(){return eP=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Cte(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var Ete={className:q.string,cssModule:q.object,innerRef:q.oneOfType([q.object,q.string,q.func]),tag:At};function Xp(e){var t=e.className,n=e.cssModule,r=e.innerRef,i=e.tag,o=i===void 0?"div":i,a=Pte(e,Ste),s=ct(mt(t,"card-body"),n);return Z.createElement(o,eP({},a,{className:s,ref:r}))}Xp.propTypes=Ete;var Tte=["className","cssModule","tag"];function tP(){return tP=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ate(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var kte={className:q.string,cssModule:q.object,tag:At};function hF(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=jte(e,Tte),a=ct(mt(t,"card-footer"),n);return Z.createElement(i,tP({},o,{className:a}))}hF.propTypes=kte;var Rte=["className","cssModule","tag"];function nP(){return nP=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Mte(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var Lte={className:q.string,cssModule:q.object,tag:At};function Qp(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=Nte(e,Rte),a=ct(mt(t,"card-header"),n);return Z.createElement(i,nP({},o,{className:a}))}Qp.propTypes=Lte;var Ite=["className","cssModule","tag"];function rP(){return rP=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $te(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var Fte={className:q.string,cssModule:q.object,tag:At};function pF(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"p":r,o=Dte(e,Ite),a=ct(mt(t,"card-text"),n);return Z.createElement(i,rP({},o,{className:a}))}pF.propTypes=Fte;var Bte=["className","cssModule","tag"];function iP(){return iP=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function zte(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var Vte={className:q.string,cssModule:q.object,tag:At};function mF(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=Ute(e,Bte),a=ct(mt(t,"card-title"),n);return Z.createElement(i,iP({},o,{className:a}))}mF.propTypes=Vte;function oP(e){"@babel/helpers - typeof";return oP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oP(e)}var Wte=["cssModule","children","isOpen","flip","target","offset","fallbackPlacements","placementPrefix","arrowClassName","hideArrow","popperClassName","tag","container","modifiers","strategy","boundariesElement","onClosed","fade","transition","placement"];function aP(){return aP=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Zte(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function Xte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function AR(e,t){for(var n=0;n"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 Wg(e){return Wg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Wg(e)}function kR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function mg(e){for(var t=1;t"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 qg(e){return qg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},qg(e)}var gT={children:q.oneOfType([q.node,q.func]),placement:q.oneOf(kX),target:sf.isRequired,container:sf,isOpen:q.bool,disabled:q.bool,hideArrow:q.bool,boundariesElement:q.oneOfType([q.string,nT]),className:q.string,innerClassName:q.string,arrowClassName:q.string,popperClassName:q.string,cssModule:q.object,toggle:q.func,autohide:q.bool,placementPrefix:q.string,delay:q.oneOfType([q.shape({show:q.number,hide:q.number}),q.number]),modifiers:q.array,strategy:q.string,offset:q.arrayOf(q.number),innerRef:q.oneOfType([q.func,q.string,q.object]),trigger:q.string,fade:q.bool,flip:q.bool},vF={show:0,hide:50},hne={isOpen:!1,hideArrow:!1,autohide:!1,delay:vF,toggle:function(){},trigger:"click",fade:!0};function gF(e,t){return t&&(e===t||t.contains(e))}function NR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return t&&t.length&&t.filter(function(n){return gF(e,n)})[0]}var yT=function(e){une(n,e);var t=cne(n);function n(r){var i;return sne(this,n),i=t.call(this,r),i._targets=[],i.currentTargetElement=null,i.addTargetEvents=i.addTargetEvents.bind(ci(i)),i.handleDocumentClick=i.handleDocumentClick.bind(ci(i)),i.removeTargetEvents=i.removeTargetEvents.bind(ci(i)),i.toggle=i.toggle.bind(ci(i)),i.showWithDelay=i.showWithDelay.bind(ci(i)),i.hideWithDelay=i.hideWithDelay.bind(ci(i)),i.onMouseOverTooltipContent=i.onMouseOverTooltipContent.bind(ci(i)),i.onMouseLeaveTooltipContent=i.onMouseLeaveTooltipContent.bind(ci(i)),i.show=i.show.bind(ci(i)),i.hide=i.hide.bind(ci(i)),i.onEscKeyDown=i.onEscKeyDown.bind(ci(i)),i.getRef=i.getRef.bind(ci(i)),i.state={isOpen:r.isOpen},i._isMounted=!1,i}return lne(n,[{key:"componentDidMount",value:function(){this._isMounted=!0,this.updateTarget()}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.removeTargetEvents(),this._targets=null,this.clearShowTimeout(),this.clearHideTimeout()}},{key:"handleDocumentClick",value:function(i){var o=this.props.trigger.split(" ");o.indexOf("legacy")>-1&&(this.props.isOpen||NR(i.target,this._targets))?(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen&&!gF(i.target,this._popover)?this.hideWithDelay(i):this.props.isOpen||this.showWithDelay(i)):o.indexOf("click")>-1&&NR(i.target,this._targets)&&(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen?this.hideWithDelay(i):this.showWithDelay(i))}},{key:"onMouseOverTooltipContent",value:function(){this.props.trigger.indexOf("hover")>-1&&!this.props.autohide&&(this._hideTimeout&&this.clearHideTimeout(),this.state.isOpen&&!this.props.isOpen&&this.toggle())}},{key:"onMouseLeaveTooltipContent",value:function(i){this.props.trigger.indexOf("hover")>-1&&!this.props.autohide&&(this._showTimeout&&this.clearShowTimeout(),i.persist(),this._hideTimeout=setTimeout(this.hide.bind(this,i),this.getDelay("hide")))}},{key:"onEscKeyDown",value:function(i){i.key==="Escape"&&this.hide(i)}},{key:"getRef",value:function(i){var o=this.props.innerRef;o&&(typeof o=="function"?o(i):rp(o)==="object"&&(o.current=i)),this._popover=i}},{key:"getDelay",value:function(i){var o=this.props.delay;return rp(o)==="object"?isNaN(o[i])?vF[i]:o[i]:o}},{key:"getCurrentTarget",value:function(i){if(!i)return null;var o=this._targets.indexOf(i);return o>=0?this._targets[o]:this.getCurrentTarget(i.parentElement)}},{key:"show",value:function(i){if(!this.props.isOpen){if(this.clearShowTimeout(),this.currentTargetElement=i?i.currentTarget||this.getCurrentTarget(i.target):null,i&&i.composedPath&&typeof i.composedPath=="function"){var o=i.composedPath();this.currentTargetElement=o&&o[0]||this.currentTargetElement}this.toggle(i)}}},{key:"showWithDelay",value:function(i){this._hideTimeout&&this.clearHideTimeout(),this._showTimeout=setTimeout(this.show.bind(this,i),this.getDelay("show"))}},{key:"hide",value:function(i){this.props.isOpen&&(this.clearHideTimeout(),this.currentTargetElement=null,this.toggle(i))}},{key:"hideWithDelay",value:function(i){this._showTimeout&&this.clearShowTimeout(),this._hideTimeout=setTimeout(this.hide.bind(this,i),this.getDelay("hide"))}},{key:"clearShowTimeout",value:function(){clearTimeout(this._showTimeout),this._showTimeout=void 0}},{key:"clearHideTimeout",value:function(){clearTimeout(this._hideTimeout),this._hideTimeout=void 0}},{key:"addEventOnTargets",value:function(i,o,a){this._targets.forEach(function(s){s.addEventListener(i,o,a)})}},{key:"removeEventOnTargets",value:function(i,o,a){this._targets.forEach(function(s){s.removeEventListener(i,o,a)})}},{key:"addTargetEvents",value:function(){if(this.props.trigger){var i=this.props.trigger.split(" ");i.indexOf("manual")===-1&&((i.indexOf("click")>-1||i.indexOf("legacy")>-1)&&document.addEventListener("click",this.handleDocumentClick,!0),this._targets&&this._targets.length&&(i.indexOf("hover")>-1&&(this.addEventOnTargets("mouseover",this.showWithDelay,!0),this.addEventOnTargets("mouseout",this.hideWithDelay,!0)),i.indexOf("focus")>-1&&(this.addEventOnTargets("focusin",this.show,!0),this.addEventOnTargets("focusout",this.hide,!0)),this.addEventOnTargets("keydown",this.onEscKeyDown,!0)))}}},{key:"removeTargetEvents",value:function(){this._targets&&(this.removeEventOnTargets("mouseover",this.showWithDelay,!0),this.removeEventOnTargets("mouseout",this.hideWithDelay,!0),this.removeEventOnTargets("keydown",this.onEscKeyDown,!0),this.removeEventOnTargets("focusin",this.show,!0),this.removeEventOnTargets("focusout",this.hide,!0)),document.removeEventListener("click",this.handleDocumentClick,!0)}},{key:"updateTarget",value:function(){var i=Qh(this.props.target,!0);i!==this._targets&&(this.removeTargetEvents(),this._targets=i?Array.from(i):[],this.currentTargetElement=this.currentTargetElement||this._targets[0],this.addTargetEvents())}},{key:"toggle",value:function(i){return this.props.disabled||!this._isMounted?i&&i.preventDefault():this.props.toggle(i)}},{key:"render",value:function(){var i=this;this.props.isOpen&&this.updateTarget();var o=this.currentTargetElement||this._targets[0];if(!o)return null;var a=this.props,s=a.className,c=a.cssModule,u=a.innerClassName,h=a.isOpen,p=a.hideArrow,v=a.boundariesElement,b=a.placement,x=a.placementPrefix,_=a.arrowClassName,w=a.popperClassName,O=a.container,P=a.modifiers,E=a.strategy,T=a.offset,A=a.fade,j=a.flip,N=a.children,$=fl(this.props,Object.keys(gT)),W=ct(w,c),B=ct(u,c);return Z.createElement(vT,{className:s,target:o,isOpen:h,hideArrow:p,boundariesElement:v,placement:b,placementPrefix:x,arrowClassName:_,popperClassName:W,container:O,modifiers:P,strategy:E,offset:T,cssModule:c,fade:A,flip:j},function(V){var H=V.update;return Z.createElement("div",uP({},$,{ref:i.getRef,className:B,role:"tooltip",onMouseOver:i.onMouseOverTooltipContent,onMouseLeave:i.onMouseLeaveTooltipContent,onKeyDown:i.onEscKeyDown}),typeof N=="function"?N({update:H}):N)})}}],[{key:"getDerivedStateFromProps",value:function(i,o){return i.isOpen&&!o.isOpen?{isOpen:i.isOpen}:null}}]),n}(Z.Component);yT.propTypes=gT;yT.defaultProps=hne;var pne=["children","className","barClassName","cssModule","value","min","max","animated","striped","color","bar","multi","tag","style","barStyle","barAriaValueText","barAriaLabelledBy"];function Hg(){return Hg=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function gne(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var yne={animated:q.bool,bar:q.bool,barAriaLabelledBy:q.string,barAriaValueText:q.string,barClassName:q.string,barStyle:q.object,children:q.node,className:q.string,cssModule:q.object,color:q.string,max:q.oneOfType([q.string,q.number]),min:q.oneOfType([q.string,q.number]),multi:q.bool,striped:q.bool,style:q.object,tag:At,value:q.oneOfType([q.string,q.number])};function yF(e){var t=e.children,n=e.className,r=e.barClassName,i=e.cssModule,o=e.value,a=o===void 0?0:o,s=e.min,c=s===void 0?0:s,u=e.max,h=u===void 0?100:u,p=e.animated,v=e.striped,b=e.color,x=e.bar,_=e.multi,w=e.tag,O=w===void 0?"div":w,P=e.style,E=P===void 0?{}:P,T=e.barStyle,A=T===void 0?{}:T,j=e.barAriaValueText,N=e.barAriaLabelledBy,$=vne(e,pne),W=aR(a)/aR(h)*100,B=ct(mt(n,"progress"),i),V=ct(mt("progress-bar",x&&n||r,p?"progress-bar-animated":null,b?"bg-".concat(b):null,v||p?"progress-bar-striped":null),i),H={className:V,style:E1(E1(E1({},x?E:{}),A),{},{width:"".concat(W,"%")}),role:"progressbar","aria-valuenow":a,"aria-valuemin":c,"aria-valuemax":h,"aria-valuetext":j,"aria-labelledby":N,children:t};return x?Z.createElement(O,Hg({},$,H)):Z.createElement(O,Hg({},$,{style:E,className:B}),_?t:Z.createElement("div",H))}yF.propTypes=yne;function fP(e){"@babel/helpers - typeof";return fP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fP(e)}function bne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _ne(e,t){for(var n=0;n"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 Gg(e){return Gg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Gg(e)}var Ene={children:q.node.isRequired,node:q.any},bF=function(e){wne(n,e);var t=One(n);function n(){return bne(this,n),t.apply(this,arguments)}return xne(n,[{key:"componentWillUnmount",value:function(){this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null}},{key:"render",value:function(){return rT?(!this.props.node&&!this.defaultNode&&(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode)),su.createPortal(this.props.children,this.props.node||this.defaultNode)):null}}]),n}(Z.Component);bF.propTypes=Ene;function hP(e){"@babel/helpers - typeof";return hP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hP(e)}function LR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function kc(e){for(var t=1;t"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 Kg(e){return Kg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Kg(e)}function Yg(){}var IR=q.shape(Vr.propTypes),_F={autoFocus:q.bool,backdrop:q.oneOfType([q.bool,q.oneOf(["static"])]),backdropClassName:q.string,backdropTransition:IR,centered:q.bool,children:q.node,contentClassName:q.string,className:q.string,container:sf,cssModule:q.object,external:q.node,fade:q.bool,fullscreen:q.oneOfType([q.bool,q.oneOf(["sm","md","lg","xl"])]),innerRef:q.oneOfType([q.object,q.string,q.func]),isOpen:q.bool,keyboard:q.bool,labelledBy:q.string,modalClassName:q.string,modalTransition:IR,onClosed:q.func,onEnter:q.func,onExit:q.func,onOpened:q.func,returnFocusAfterClose:q.bool,role:q.string,scrollable:q.bool,size:q.string,toggle:q.func,trapFocus:q.bool,unmountOnClose:q.bool,wrapClassName:q.string,zIndex:q.oneOfType([q.number,q.string])},Lne=Object.keys(_F),Ine={isOpen:!1,autoFocus:!0,centered:!1,scrollable:!1,role:"dialog",backdrop:!0,keyboard:!0,zIndex:1050,fade:!0,onOpened:Yg,onClosed:Yg,modalTransition:{timeout:Rg.Modal},backdropTransition:{mountOnEnter:!0,timeout:Rg.Fade},unmountOnClose:!0,returnFocusAfterClose:!0,container:"body",trapFocus:!1},Zr=function(e){kne(n,e);var t=Rne(n);function n(r){var i;return Tne(this,n),i=t.call(this,r),i._element=null,i._originalBodyPadding=null,i.getFocusableChildren=i.getFocusableChildren.bind(Bi(i)),i.handleBackdropClick=i.handleBackdropClick.bind(Bi(i)),i.handleBackdropMouseDown=i.handleBackdropMouseDown.bind(Bi(i)),i.handleEscape=i.handleEscape.bind(Bi(i)),i.handleStaticBackdropAnimation=i.handleStaticBackdropAnimation.bind(Bi(i)),i.handleTab=i.handleTab.bind(Bi(i)),i.onOpened=i.onOpened.bind(Bi(i)),i.onClosed=i.onClosed.bind(Bi(i)),i.manageFocusAfterClose=i.manageFocusAfterClose.bind(Bi(i)),i.clearBackdropAnimationTimeout=i.clearBackdropAnimationTimeout.bind(Bi(i)),i.trapFocus=i.trapFocus.bind(Bi(i)),i.state={isOpen:!1,showStaticBackdropAnimation:!1},i}return Ane(n,[{key:"componentDidMount",value:function(){var i=this.props,o=i.isOpen,a=i.autoFocus,s=i.onEnter;o&&(this.init(),this.setState({isOpen:!0}),a&&this.setFocus()),s&&s(),document.addEventListener("focus",this.trapFocus,!0),this._isMounted=!0}},{key:"componentDidUpdate",value:function(i,o){if(this.props.isOpen&&!i.isOpen){this.init(),this.setState({isOpen:!0});return}this.props.autoFocus&&this.state.isOpen&&!o.isOpen&&this.setFocus(),this._element&&i.zIndex!==this.props.zIndex&&(this._element.style.zIndex=this.props.zIndex)}},{key:"componentWillUnmount",value:function(){this.clearBackdropAnimationTimeout(),this.props.onExit&&this.props.onExit(),this._element&&(this.destroy(),(this.props.isOpen||this.state.isOpen)&&this.close()),document.removeEventListener("focus",this.trapFocus,!0),this._isMounted=!1}},{key:"handleBackdropClick",value:function(i){if(i.target===this._mouseDownElement){i.stopPropagation();var o=this._dialog?this._dialog.parentNode:null;if(o&&i.target===o&&this.props.backdrop==="static"&&this.handleStaticBackdropAnimation(),!this.props.isOpen||this.props.backdrop!==!0)return;o&&i.target===o&&this.props.toggle&&this.props.toggle(i)}}},{key:"handleTab",value:function(i){if(i.which===9&&!(this.modalIndex0&&(i.preventDefault(),i.stopPropagation(),o[0].focus())}}},{key:"init",value:function(){try{this._triggeringElement=document.activeElement}catch{this._triggeringElement=null}this._element||(this._element=document.createElement("div"),this._element.setAttribute("tabindex","-1"),this._element.style.position="relative",this._element.style.zIndex=this.props.zIndex,this._mountContainer=Qh(this.props.container),this._mountContainer.appendChild(this._element)),this._originalBodyPadding=EX(),n.openCount<1&&(n.originalBodyOverflow=window.getComputedStyle(document.body).overflow),TX(),n.openCount===0&&(document.body.className=mt(document.body.className,ct("modal-open",this.props.cssModule)),document.body.style.overflow="hidden"),this.modalIndex=n.openCount,n.openCount+=1}},{key:"destroy",value:function(){this._element&&(this._mountContainer.removeChild(this._element),this._element=null),this.manageFocusAfterClose()}},{key:"manageFocusAfterClose",value:function(){if(this._triggeringElement){var i=this.props.returnFocusAfterClose;this._triggeringElement.focus&&i&&this._triggeringElement.focus(),this._triggeringElement=null}}},{key:"close",value:function(){if(n.openCount<=1){var i=ct("modal-open",this.props.cssModule),o=new RegExp("(^| )".concat(i,"( |$)"));document.body.className=document.body.className.replace(o," ").trim(),document.body.style.overflow=n.originalBodyOverflow}this.manageFocusAfterClose(),n.openCount=Math.max(0,n.openCount-1),B$(this._originalBodyPadding)}},{key:"clearBackdropAnimationTimeout",value:function(){this._backdropAnimationTimeout&&(clearTimeout(this._backdropAnimationTimeout),this._backdropAnimationTimeout=void 0)}},{key:"renderModalDialog",value:function(){var i,o=this,a=fl(this.props,Lne),s="modal-dialog";return Z.createElement("div",Nh({},a,{className:ct(mt(s,this.props.className,(i={},Uc(i,"modal-".concat(this.props.size),this.props.size),Uc(i,"".concat(s,"-centered"),this.props.centered),Uc(i,"".concat(s,"-scrollable"),this.props.scrollable),Uc(i,"modal-fullscreen",this.props.fullscreen===!0),Uc(i,"modal-fullscreen-".concat(this.props.fullscreen,"-down"),typeof this.props.fullscreen=="string"),i)),this.props.cssModule),role:"document",ref:function(u){o._dialog=u}}),Z.createElement("div",{className:ct(mt("modal-content",this.props.contentClassName),this.props.cssModule)},this.props.children))}},{key:"render",value:function(){var i=this.props.unmountOnClose;if(this._element&&(this.state.isOpen||!i)){var o=!!this._element&&!this.state.isOpen&&!i;this._element.style.display=o?"none":"block";var a=this.props,s=a.wrapClassName,c=a.modalClassName,u=a.backdropClassName,h=a.cssModule,p=a.isOpen,v=a.backdrop,b=a.role,x=a.labelledBy,_=a.external,w=a.innerRef,O={onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown,onKeyUp:this.handleEscape,onKeyDown:this.handleTab,style:{display:"block"},"aria-labelledby":x,"aria-modal":!0,role:b,tabIndex:"-1"},P=this.props.fade,E=kc(kc(kc({},Vr.defaultProps),this.props.modalTransition),{},{baseClass:P?this.props.modalTransition.baseClass:"",timeout:P?this.props.modalTransition.timeout:0}),T=kc(kc(kc({},Vr.defaultProps),this.props.backdropTransition),{},{baseClass:P?this.props.backdropTransition.baseClass:"",timeout:P?this.props.backdropTransition.timeout:0}),A=v&&(P?Z.createElement(Vr,Nh({},T,{in:p&&!!v,cssModule:h,className:ct(mt("modal-backdrop",u),h)})):Z.createElement("div",{className:ct(mt("modal-backdrop","show",u),h)}));return Z.createElement(bF,{node:this._element},Z.createElement("div",{className:ct(s)},Z.createElement(Vr,Nh({},O,E,{in:p,onEntered:this.onOpened,onExited:this.onClosed,cssModule:h,className:ct(mt("modal",c,this.state.showStaticBackdropAnimation&&"modal-static"),h),innerRef:w}),_,this.renderModalDialog()),A))}return null}}]),n}(Z.Component);Zr.propTypes=_F;Zr.defaultProps=Ine;Zr.openCount=0;Zr.originalBodyOverflow=null;var Dne=["className","cssModule","children","toggle","tag","wrapTag","closeAriaLabel","close"];function mP(){return mP=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Fne(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var Bne={children:q.node,className:q.string,close:q.object,closeAriaLabel:q.string,cssModule:q.object,tag:At,toggle:q.func,wrapTag:At};function aa(e){var t,n=e.className,r=e.cssModule,i=e.children,o=e.toggle,a=e.tag,s=a===void 0?"h5":a,c=e.wrapTag,u=c===void 0?"div":c,h=e.closeAriaLabel,p=h===void 0?"Close":h,v=e.close,b=$ne(e,Dne),x=ct(mt(n,"modal-header"),r);return!v&&o&&(t=Z.createElement("button",{type:"button",onClick:o,className:ct("btn-close",r),"aria-label":p})),Z.createElement(u,mP({},b,{className:x}),Z.createElement(s,{className:ct("modal-title",r)},i),v||t)}aa.propTypes=Bne;var Une=["className","cssModule","tag"];function vP(){return vP=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Vne(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var Wne={className:q.string,cssModule:q.object,tag:At};function Po(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=zne(e,Une),a=ct(mt(t,"modal-body"),n);return Z.createElement(i,vP({},o,{className:a}))}Po.propTypes=Wne;var qne=["className","cssModule","tag"];function gP(){return gP=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Gne(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var Kne={className:q.string,cssModule:q.object,tag:At};function Qa(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=Hne(e,qne),a=ct(mt(t,"modal-footer"),n);return Z.createElement(i,gP({},o,{className:a}))}Qa.propTypes=Kne;function yP(){return yP=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Qne(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var Jne={className:q.string,cssModule:q.object,flush:q.bool,horizontal:q.oneOfType([q.bool,q.string]),numbered:q.bool,tag:At},ere=function(t){return t===!1?!1:t===!0||t==="xs"?"list-group-horizontal":"list-group-horizontal-".concat(t)};function xF(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"ul":r,o=e.flush,a=e.horizontal,s=a===void 0?!1:a,c=e.numbered,u=c===void 0?!1:c,h=Xne(e,Zne),p=ct(mt(t,"list-group",o?"list-group-flush":ere(s),{"list-group-numbered":u}),n);return Z.createElement(i,bP({},h,{className:p}))}xF.propTypes=Jne;var tre=["className","cssModule","row","disabled","check","inline","floating","noMargin","tag","switch"];function _P(){return _P=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function rre(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var ire={children:q.node,row:q.bool,check:q.bool,switch:q.bool,inline:q.bool,floating:q.bool,noMargin:q.bool,disabled:q.bool,tag:At,className:q.string,cssModule:q.object};function Zg(e){var t=e.className,n=e.cssModule,r=e.row,i=e.disabled,o=e.check,a=e.inline,s=e.floating,c=e.noMargin,u=e.tag,h=u===void 0?"div":u,p=e.switch,v=nre(e,tre),b=o||p,x=ct(mt(t,r?"row":!1,b?"form-check":!1,p?"form-switch":!1,b||c?!1:"mb-3",b&&a?"form-check-inline":!1,b&&i?"disabled":!1,s&&"form-floating"),n);return h==="fieldset"&&(v.disabled=i),Z.createElement(h,_P({},v,{className:x}))}Zg.propTypes=ire;function xP(e){"@babel/helpers - typeof";return xP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xP(e)}var ore=["className","cssModule","type","bsSize","valid","invalid","tag","addon","plaintext","innerRef"];function wP(){return wP=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function sre(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function lre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ure(e,t){for(var n=0;n"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 Xg(e){return Xg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Xg(e)}var mre={children:q.node,type:q.string,size:q.oneOfType([q.number,q.string]),bsSize:q.string,valid:q.bool,invalid:q.bool,tag:At,innerRef:q.oneOfType([q.object,q.func,q.string]),plaintext:q.bool,addon:q.bool,className:q.string,cssModule:q.object},Qn=function(e){fre(n,e);var t=dre(n);function n(r){var i;return lre(this,n),i=t.call(this,r),i.getRef=i.getRef.bind(SP(i)),i.focus=i.focus.bind(SP(i)),i}return cre(n,[{key:"getRef",value:function(i){this.props.innerRef&&this.props.innerRef(i),this.ref=i}},{key:"focus",value:function(){this.ref&&this.ref.focus()}},{key:"render",value:function(){var i=this.props,o=i.className,a=i.cssModule,s=i.type,c=s===void 0?"text":s,u=i.bsSize,h=i.valid,p=i.invalid,v=i.tag,b=i.addon,x=i.plaintext,_=i.innerRef,w=are(i,ore),O=["switch","radio","checkbox"].indexOf(c)>-1,P=/\D/g,E=c==="textarea",T=c==="select",A=c==="range",j=v||(T||E?c:"input"),N="form-control";x?(N="".concat(N,"-plaintext"),j=v||"input"):A?N="form-range":T?N="form-select":O&&(b?N=null:N="form-check-input"),w.size&&P.test(w.size)&&(_S(`Please use the prop "bsSize" instead of the "size" to bootstrap's input sizing.`),u=w.size,delete w.size);var $=ct(mt(o,p&&"is-invalid",h&&"is-valid",u?T?"form-select-".concat(u):"form-control-".concat(u):!1,N),a);return(j==="input"||v&&typeof v=="function")&&(w.type=c==="switch"?"checkbox":c),w.children&&!(x||c==="select"||typeof j!="string"||j==="select")&&(_S('Input with a type of "'.concat(c,'" cannot have children. Please use "value"/"defaultValue" instead.')),delete w.children),Z.createElement(j,wP({},w,{ref:_,className:$,"aria-invalid":p}))}}]),n}(Z.Component);Qn.propTypes=mre;var vre=["className","cssModule","tag","type","size"];function Qg(){return Qg=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function yre(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var bre={className:q.string,cssModule:q.object,size:q.string,tag:At,type:q.string};function Jp(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r;e.type;var o=e.size,a=gre(e,vre),s=ct(mt(t,"input-group",o?"input-group-".concat(o):null),n);return e.type==="dropdown"?Z.createElement(hl,Qg({},a,{className:s})):Z.createElement(uF.Provider,{value:{insideInputGroup:!0}},Z.createElement(i,Qg({},a,{className:s})))}Jp.propTypes=bre;var _re=["className","listClassName","cssModule","size","tag","listTag","aria-label"];function PP(){return PP=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ore(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var Sre={children:q.node,className:q.string,listClassName:q.string,cssModule:q.object,size:q.string,tag:At,listTag:At,"aria-label":q.string};function bT(e){var t=e.className,n=e.listClassName,r=e.cssModule,i=e.size,o=e.tag,a=o===void 0?"nav":o,s=e.listTag,c=s===void 0?"ul":s,u=e["aria-label"],h=u===void 0?"pagination":u,p=wre(e,_re),v=ct(mt(t),r),b=ct(mt(n,"pagination",xre({},"pagination-".concat(i),!!i)),r);return Z.createElement(a,{className:v,"aria-label":h},Z.createElement(c,PP({},p,{className:b})))}bT.propTypes=Sre;var Pre=["active","className","cssModule","disabled","tag"];function CP(){return CP=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ere(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var Tre={active:q.bool,children:q.node,className:q.string,cssModule:q.object,disabled:q.bool,tag:At};function mu(e){var t=e.active,n=e.className,r=e.cssModule,i=e.disabled,o=e.tag,a=o===void 0?"li":o,s=Cre(e,Pre),c=ct(mt(n,"page-item",{active:t,disabled:i}),r);return Z.createElement(a,CP({},s,{className:c}))}mu.propTypes=Tre;var jre=["className","cssModule","next","previous","first","last","tag"];function EP(){return EP=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function kre(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var Rre={"aria-label":q.string,children:q.node,className:q.string,cssModule:q.object,next:q.bool,previous:q.bool,first:q.bool,last:q.bool,tag:At};function vu(e){var t=e.className,n=e.cssModule,r=e.next,i=e.previous,o=e.first,a=e.last,s=e.tag,c=s===void 0?"a":s,u=Are(e,jre),h=ct(mt(t,"page-link"),n),p;i?p="Previous":r?p="Next":o?p="First":a&&(p="Last");var v=e["aria-label"]||p,b;i?b="‹":r?b="›":o?b="«":a&&(b="»");var x=e.children;return x&&Array.isArray(x)&&x.length===0&&(x=null),!u.href&&c==="a"&&(c="button"),(i||r||o||a)&&(x=[Z.createElement("span",{"aria-hidden":"true",key:"caret"},x||b),Z.createElement("span",{className:"visually-hidden",key:"ariaLabel"},v)]),Z.createElement(c,EP({},u,{className:h,"aria-label":v}),x)}vu.propTypes=Rre;var Nre=["className","closeClassName","closeAriaLabel","cssModule","tag","color","isOpen","toggle","children","transition","fade","innerRef"];function TP(){return TP=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ire(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var Dre={children:q.node,className:q.string,closeClassName:q.string,closeAriaLabel:q.string,color:q.string,cssModule:q.object,fade:q.bool,innerRef:q.oneOfType([q.object,q.string,q.func]),isOpen:q.bool,tag:At,toggle:q.func,transition:q.shape(Vr.propTypes)};function wF(e){var t=e.className,n=e.closeClassName,r=e.closeAriaLabel,i=r===void 0?"Close":r,o=e.cssModule,a=e.tag,s=a===void 0?"div":a,c=e.color,u=c===void 0?"success":c,h=e.isOpen,p=h===void 0?!0:h,v=e.toggle,b=e.children,x=e.transition,_=x===void 0?ih(ih({},Vr.defaultProps),{},{unmountOnExit:!0}):x,w=e.fade,O=w===void 0?!0:w,P=e.innerRef,E=Lre(e,Nre),T=ct(mt(t,"alert","alert-".concat(u),{"alert-dismissible":v}),o),A=ct(mt("btn-close",n),o),j=ih(ih(ih({},Vr.defaultProps),_),{},{baseClass:O?_.baseClass:"",timeout:O?_.timeout:0});return Z.createElement(Vr,TP({},E,j,{tag:s,className:T,in:p,role:"alert",innerRef:P}),v?Z.createElement("button",{type:"button",className:A,"aria-label":i,onClick:v}):null,b)}wF.propTypes=Dre;var $re=["className","cssModule","tag","active","disabled","action","color"];function jP(){return jP=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Bre(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var Ure={action:q.bool,active:q.bool,className:q.string,cssModule:q.object,color:q.string,disabled:q.bool,tag:At},zre=function(t){t.preventDefault()};function OF(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"li":r,o=e.active,a=e.disabled,s=e.action,c=e.color,u=Fre(e,$re),h=ct(mt(t,o?"active":!1,a?"disabled":!1,s?"list-group-item-action":!1,c?"list-group-item-".concat(c):!1,"list-group-item"),n);return a&&(u.onClick=zre),Z.createElement(i,jP({},u,{className:h}))}OF.propTypes=Ure;function AP(e){"@babel/helpers - typeof";return AP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},AP(e)}function $R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Vre(e){for(var t=1;t"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 Jg(e){return Jg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Jg(e)}var Qre=["defaultOpen"],em=function(e){Kre(n,e);var t=Yre(n);function n(r){var i;return qre(this,n),i=t.call(this,r),i.state={isOpen:r.defaultOpen||!1},i.toggle=i.toggle.bind(SF(i)),i}return Gre(n,[{key:"toggle",value:function(i){var o=this;this.setState(function(a){return{isOpen:!a.isOpen}},function(){o.props.onToggle&&o.props.onToggle(i,o.state.isOpen)})}},{key:"render",value:function(){return Z.createElement(hl,kP({isOpen:this.state.isOpen,toggle:this.toggle},fl(this.props,Qre)))}}]),n}(F.Component);em.propTypes=Vre({defaultOpen:q.bool,onToggle:q.func},hl.propTypes);function NP(e){"@babel/helpers - typeof";return NP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},NP(e)}function FR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Jre(e){for(var t=1;t"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 ey(e){return ey=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ey(e)}var lie=["defaultOpen"],Oi=function(e){iie(n,e);var t=oie(n);function n(r){var i;return tie(this,n),i=t.call(this,r),i.state={isOpen:r.defaultOpen||!1},i.toggle=i.toggle.bind(PF(i)),i}return rie(n,[{key:"toggle",value:function(){this.setState(function(i){return{isOpen:!i.isOpen}})}},{key:"render",value:function(){return Z.createElement(M0,MP({isOpen:this.state.isOpen,toggle:this.toggle},fl(this.props,lie)))}}]),n}(F.Component);Oi.propTypes=Jre({defaultOpen:q.bool},M0.propTypes);const uie=e=>({error:"border-danger",default:""})[e],cie=e=>({error:"text-danger",default:"text-muted"})[e],za=({className:e,children:t,loading:n=!1,type:r="default",fullWidth:i=!1})=>{const o=Be({"col-md-12":i,"col-md-10 offset-md-1":!i});return g.jsx(qi,{className:Be("g-0",e),children:g.jsx("div",{className:o,children:g.jsx(wi,{className:uie(r),body:!0,children:g.jsxs("h3",{className:Be("text-center mb-0",cie(r)),children:[n&&g.jsx(Ge,{icon:X8,spin:!0}),n&&g.jsx("span",{className:"ms-2",children:t??"Loading..."}),!n&&t]})})})})},qt=({title:e,children:t,bodyClassName:n,...r})=>g.jsxs(wi,{...r,children:[e&&g.jsx(Qp,{role:"heading","aria-level":4,children:e}),g.jsx(Xp,{className:n,children:t})]}),Tr=({children:e,type:t,className:n,small:r=!1})=>g.jsx(qi,{className:n,children:g.jsx("div",{className:Be({"col-md-10 offset-md-1":!r,"col-12":r}),children:g.jsx(qt,{role:"document",className:Be("text-center",{"bg-main":t==="success","bg-danger":t==="error","bg-warning":t==="warning","text-white":t!=="warning"}),bodyClassName:Be({"p-2":r}),children:e})})}),CF=({checked:e=!1,onChange:t,className:n,children:r,type:i,inline:o=!1})=>{const a=F.useId(),s=h=>t==null?void 0:t(h.target.checked,h),c={"form-switch":i==="switch","form-checkbox":i==="checkbox"},u=o?{display:"inline-block"}:{};return g.jsxs("span",{className:Be("form-check",c,n),style:u,children:[g.jsx("input",{type:"checkbox",className:"form-check-input",id:a,checked:e,onChange:s}),g.jsx("label",{className:"form-check-label",htmlFor:a,children:r})]})},EF=e=>g.jsx(CF,{type:"checkbox",...e}),Va=e=>g.jsx(CF,{type:"switch",...e}),Yf=({children:e,label:t,className:n="",labelClassName:r="",noMargin:i=!1,id:o})=>g.jsxs("div",{className:`${n} ${i?"":"mb-3"}`,children:[g.jsx("label",{className:`form-label ${r}`,htmlFor:o,children:t}),e]}),vg=({children:e,value:t,onChange:n,type:r,required:i,placeholder:o,className:a,labelClassName:s})=>{const c=F.useId();return g.jsx(Yf,{label:g.jsxs(g.Fragment,{children:[e,":"]}),className:a,labelClassName:s,id:c,children:g.jsx("input",{id:c,className:"form-control",type:r??"text",value:t,required:i??!0,placeholder:o,onChange:u=>n(u.target.value)})})},fie=500;let gg;const BR=()=>{gg!==null&&clearTimeout(gg),gg=null},tm=({onChange:e,className:t,large:n=!0,noBorder:r=!1,initialValue:i="",setTimeout_:o=setTimeout})=>{const[a,s]=F.useState(i),c=(u,h=fie)=>{s(u),BR(),gg=o(()=>{e(u),BR()},h)};return g.jsxs("div",{className:Be("search-field",t),children:[g.jsx("input",{type:"text",className:Be("form-control search-field__input",{"form-control-lg":n,"search-field__input--no-border":r}),placeholder:"Search...",value:a,onChange:u=>c(u.target.value)}),g.jsx(Ge,{icon:VK,className:"search-field__icon"}),g.jsx("button",{"aria-label":"Clear search",type:"button",className:"close search-field__close btn-close",hidden:a==="",id:"search-field__close",onClick:()=>c("",0)})]})},TF=e=>{const t=new URLSearchParams(e),n={};return t.forEach((r,i)=>{if(i.endsWith("[]")){const o=i.slice(0,-2);n[o]??(n[o]=[]),n[o].push(r)}else n[i]=r}),n},L0=e=>{const t=new URLSearchParams;for(const[n,r]of Object.entries(e))r!==void 0&&(Array.isArray(r)?r.forEach(i=>t.append(`${n}[]`,`${i}`)):t.append(n,`${r}`));return t.toString()},cn=(e=!1)=>{const[t,n]=F.useState(e),r=F.useCallback(()=>n(a=>!a),[]),i=F.useCallback(()=>n(!0),[]),o=F.useCallback(()=>n(!1),[]);return[t,r,i,o]},jF=(e=!1,t=2e3,n=window.setTimeout,r=window.clearTimeout)=>{const[i,o]=F.useState(e),a=F.useRef(e),s=F.useRef(),c=F.useCallback(()=>{o(!a.current),s.current&&r(s.current),s.current=n(()=>o(a.current),t)},[r,t,n]);return[i,c]},Xi=()=>F.useRef(null),Zf=()=>{const{search:e}=Kr();return F.useMemo(()=>TF(e),[e])},Ja=({text:e,disabled:t=!1,className:n,children:r,dropdownClassName:i,noCaret:o,end:a=!1,minWidth:s,inline:c,size:u,...h})=>{const[p,v]=cn(),b=Be("dropdown-btn__toggle",n,{"btn-block":!c,"dropdown-btn__toggle--with-caret":!o}),x={minWidth:s&&`${s}px`};return g.jsxs(hl,{isOpen:p,toggle:v,disabled:t,className:i,children:[g.jsx(Xa,{size:u,caret:!o,className:b,color:"primary",...h,children:e}),g.jsx(pl,{className:"w-100",end:a,style:x,children:r})]})},I0=({children:e,minWidth:t,label:n="Options"})=>g.jsx(Ja,{text:g.jsx(Ge,{className:"px-1",icon:NK}),"aria-label":n,size:"sm",minWidth:t,end:!0,noCaret:!0,inline:!0,children:e}),Mh=({children:e,...t})=>g.jsx(aT,{children:g.jsx(sT,{className:"nav-pills__nav-link",tag:D8,...t,children:e})}),AF=({children:e,fill:t=!1,className:n=""})=>g.jsx(wi,{className:`nav-pills__nav p-0 overflow-hidden ${n}`,body:!0,children:g.jsx(oT,{pills:!0,fill:t,children:F.Children.map(e,r=>{if(!F.isValidElement(r)||r.type!==Mh)throw new Error("Only NavPillItem children are allowed inside NavPills.");return r})})}),D0=(e,t,n)=>e!==t?"ASC":n?{ASC:"DESC",DESC:void 0}[n]:"ASC",kF=(e,{field:t,dir:n})=>!t||!n?e:e.sort((r,i)=>{const o=n==="ASC"?1:-1,a=n==="ASC"?-1:1;return r[t]>i[t]?o:a}),die=e=>e.dir?`${e.field}-${e.dir}`:void 0,hie=e=>{const[t,n]=e.split("-");return{field:t,dir:n}};function nm({items:e,order:t,onChange:n,isButton:r=!0,right:i=!1,prefixed:o=!0}){const a=s=>()=>{const c=D0(s,t.field,t.dir);n(c?s:void 0,c)};return g.jsxs(em,{children:[g.jsxs(Xa,{caret:!0,color:r?"primary":"link",className:Be({"dropdown-btn__toggle btn-block pe-4 overflow-hidden":r,"btn-sm p-0":!r}),children:[!r&&g.jsx(g.Fragment,{children:"Order by"}),r&&!t.field&&g.jsx("i",{children:"Order by..."}),r&&t.field&&g.jsxs(g.Fragment,{children:[o&&"Order by: ",e[t.field]," - ",g.jsx("small",{children:t.dir??"DESC"})]})]}),g.jsxs(pl,{end:i,className:Be("w-100",{"ordering-dropdown__menu--link":!r}),children:[Object.entries(e).map(([s,c])=>g.jsxs(Ye,{active:t.field===s,onClick:a(s),children:[c,t.field===s&&g.jsx(Ge,{icon:t.dir==="ASC"?DK:wK,className:"ordering-dropdown__sort-icon"})]},s)),g.jsx(Ye,{divider:!0}),g.jsx(Ye,{disabled:!t.field,onClick:()=>n(),children:g.jsx("i",{children:"Clear selection"})})]})]})}const ip="#4696e5",pie="rgba(70, 150, 229, 0.4)",IP="#f77f28",mie="rgba(247, 127, 40, 0.4)",vie="white",gie="#161b22",yie=e=>{var t;return(t=document.querySelector("html"))==null?void 0:t.setAttribute("data-theme",e)},rm=()=>{var e;return((e=document.querySelector("html"))==null?void 0:e.getAttribute("data-theme"))==="dark"},_T=(e=window.matchMedia.bind(window))=>e("(prefers-color-scheme: dark)").matches?"dark":"light",bie=F.forwardRef(({isOpen:e,toggle:t,forceUpdate:n},r)=>{const[i,,o]=cn(),a=F.useCallback(()=>{o(),n()},[n,o]);return g.jsxs(wF,{className:"app-update-banner",isOpen:e,toggle:t,tag:qt,color:"secondary",innerRef:r,children:[g.jsx("h4",{className:"mb-4",children:"This app has just been updated!"}),g.jsxs("p",{className:"mb-0",children:["Restart it to enjoy the new features.",g.jsxs(_t,{role:"button",disabled:i,className:"ms-2",color:"secondary",size:"sm",onClick:a,children:[!i&&g.jsxs(g.Fragment,{children:["Restart now ",g.jsx(Ge,{icon:KK,className:"ms-1"})]}),i&&g.jsx(g.Fragment,{children:"Restarting..."})]})]})]})}),RF=({to:e="/",children:t="Home"})=>g.jsx("div",{className:"home",children:g.jsxs(qt,{className:"p-4",children:[g.jsx("h2",{children:"Oops! We could not find requested route."}),g.jsx("p",{children:"Use your browser's back button to navigate to the page you have previously come from, or just press this button."}),g.jsx("br",{}),g.jsx(Jt,{to:e,className:"btn btn-outline-primary btn-lg",children:t})]})});function Co(e){return F.useRef(e).current}function Eo(e,t){return(n,r=globalThis.console)=>(t.forEach(i=>{const o=n[i];e[i]=o}),e)}const _ie=async()=>{var t;(await((t=navigator.serviceWorker)==null?void 0:t.getRegistrations())??[]).forEach(({waiting:n})=>{n==null||n.addEventListener("statechange",r=>{var i;((i=r.target)==null?void 0:i.state)==="activated"&&window.location.reload()}),n==null||n.postMessage({type:"SKIP_WAITING"})})},NF=({fetchServers:e,servers:t,settings:n,appUpdated:r,resetAppUpdate:i})=>{var w;const{MainHeader:o,Home:a,ShlinkWebComponentContainer:s,CreateServer:c,EditServer:u,Settings:h,ManageServers:p,ShlinkVersionsContainer:v}=Co(NF),b=Kr(),x=F.useRef(t),_=b.pathname==="/";return F.useEffect(()=>{Object.keys(x.current).length===0&&e()},[e]),F.useEffect(()=>{var O;yie(((O=n.ui)==null?void 0:O.theme)??_T())},[(w=n.ui)==null?void 0:w.theme]),g.jsxs("div",{className:"container-fluid app-container",children:[g.jsx(o,{}),g.jsxs("div",{className:"app",children:[g.jsx("div",{className:Be("shlink-wrapper",{"d-flex align-items-center pt-3":_}),children:g.jsxs(P0,{children:[g.jsx(Rt,{index:!0,element:g.jsx(a,{})}),g.jsx(Rt,{path:"/settings/*",element:g.jsx(h,{})}),g.jsx(Rt,{path:"/manage-servers",element:g.jsx(p,{})}),g.jsx(Rt,{path:"/server/create",element:g.jsx(c,{})}),g.jsx(Rt,{path:"/server/:serverId/edit",element:g.jsx(u,{})}),g.jsx(Rt,{path:"/server/:serverId/*",element:g.jsx(s,{})}),g.jsx(Rt,{path:"*",element:g.jsx(RF,{})})]})}),g.jsx("div",{className:"shlink-footer",children:g.jsx(v,{})})]}),g.jsx(bie,{isOpen:r,toggle:i,forceUpdate:_ie})]})},xie=Eo(NF,["MainHeader","Home","ShlinkWebComponentContainer","CreateServer","EditServer","Settings","ManageServers","ShlinkVersionsContainer"]);function or(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var wie=typeof Symbol=="function"&&Symbol.observable||"@@observable",UR=wie,T1=()=>Math.random().toString(36).substring(7).split("").join("."),Oie={INIT:`@@redux/INIT${T1()}`,REPLACE:`@@redux/REPLACE${T1()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${T1()}`},ty=Oie;function xT(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function MF(e,t,n){if(typeof e!="function")throw new Error(or(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(or(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(or(1));return n(MF)(e,t)}let r=e,i=t,o=new Map,a=o,s=0,c=!1;function u(){a===o&&(a=new Map,o.forEach((w,O)=>{a.set(O,w)}))}function h(){if(c)throw new Error(or(3));return i}function p(w){if(typeof w!="function")throw new Error(or(4));if(c)throw new Error(or(5));let O=!0;u();const P=s++;return a.set(P,w),function(){if(O){if(c)throw new Error(or(6));O=!1,u(),a.delete(P),o=null}}}function v(w){if(!xT(w))throw new Error(or(7));if(typeof w.type>"u")throw new Error(or(8));if(typeof w.type!="string")throw new Error(or(17));if(c)throw new Error(or(9));try{c=!0,i=r(i,w)}finally{c=!1}return(o=a).forEach(P=>{P()}),w}function b(w){if(typeof w!="function")throw new Error(or(10));r=w,v({type:ty.REPLACE})}function x(){const w=p;return{subscribe(O){if(typeof O!="object"||O===null)throw new Error(or(11));function P(){const T=O;T.next&&T.next(h())}return P(),{unsubscribe:w(P)}},[UR](){return this}}}return v({type:ty.INIT}),{dispatch:v,subscribe:p,getState:h,replaceReducer:b,[UR]:x}}function Sie(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:ty.INIT})>"u")throw new Error(or(12));if(typeof n(void 0,{type:ty.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(or(13))})}function wT(e){const t=Object.keys(e),n={};for(let o=0;o"u")throw s&&s.type,new Error(or(14));u[p]=x,c=c||x!==b}return c=c||r.length!==Object.keys(a).length,c?u:a}}function ny(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function Pie(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(or(15))};const a={getState:i.getState,dispatch:(c,...u)=>o(c,...u)},s=e.map(c=>c(a));return o=ny(...s)(i.dispatch),{...i,dispatch:o}}}function Cie(e){return xT(e)&&"type"in e&&typeof e.type=="string"}var LF=Symbol.for("immer-nothing"),zR=Symbol.for("immer-draftable"),yi=Symbol.for("immer-state");function bo(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var hf=Object.getPrototypeOf;function Ou(e){return!!e&&!!e[yi]}function Wa(e){var t;return e?IF(e)||Array.isArray(e)||!!e[zR]||!!((t=e.constructor)!=null&&t[zR])||F0(e)||B0(e):!1}var Eie=Object.prototype.constructor.toString();function IF(e){if(!e||typeof e!="object")return!1;const t=hf(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===Eie}function op(e,t){$0(e)===0?Object.entries(e).forEach(([n,r])=>{t(n,r,e)}):e.forEach((n,r)=>t(r,n,e))}function $0(e){const t=e[yi];return t?t.type_:Array.isArray(e)?1:F0(e)?2:B0(e)?3:0}function DP(e,t){return $0(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function DF(e,t,n){const r=$0(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function Tie(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function F0(e){return e instanceof Map}function B0(e){return e instanceof Set}function eu(e){return e.copy_||e.base_}function $P(e,t){if(F0(e))return new Map(e);if(B0(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&IF(e))return hf(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[yi];let r=Reflect.ownKeys(n);for(let i=0;i1&&(e.set=e.add=e.clear=e.delete=jie),Object.freeze(e),t&&op(e,(n,r)=>OT(r,!0))),e}function jie(){bo(2)}function U0(e){return Object.isFrozen(e)}var Aie={};function Su(e){const t=Aie[e];return t||bo(0,e),t}var ap;function $F(){return ap}function kie(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function VR(e,t){t&&(Su("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function FP(e){BP(e),e.drafts_.forEach(Rie),e.drafts_=null}function BP(e){e===ap&&(ap=e.parent_)}function WR(e){return ap=kie(ap,e)}function Rie(e){const t=e[yi];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function qR(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[yi].modified_&&(FP(t),bo(4)),Wa(e)&&(e=ry(t,e),t.parent_||iy(t,e)),t.patches_&&Su("Patches").generateReplacementPatches_(n[yi].base_,e,t.patches_,t.inversePatches_)):e=ry(t,n,[]),FP(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==LF?e:void 0}function ry(e,t,n){if(U0(t))return t;const r=t[yi];if(!r)return op(t,(i,o)=>HR(e,r,t,i,o,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return iy(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let o=i,a=!1;r.type_===3&&(o=new Set(i),i.clear(),a=!0),op(o,(s,c)=>HR(e,r,i,s,c,n,a)),iy(e,i,!1),n&&e.patches_&&Su("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function HR(e,t,n,r,i,o,a){if(Ou(i)){const s=o&&t&&t.type_!==3&&!DP(t.assigned_,r)?o.concat(r):void 0,c=ry(e,i,s);if(DF(n,r,c),Ou(c))e.canAutoFreeze_=!1;else return}else a&&n.add(i);if(Wa(i)&&!U0(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;ry(e,i),(!t||!t.scope_.parent_)&&iy(e,i)}}function iy(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&OT(t,n)}function Nie(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:$F(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=ST;n&&(i=[r],o=sp);const{revoke:a,proxy:s}=Proxy.revocable(i,o);return r.draft_=s,r.revoke_=a,s}var ST={get(e,t){if(t===yi)return e;const n=eu(e);if(!DP(n,t))return Mie(e,n,t);const r=n[t];return e.finalized_||!Wa(r)?r:r===j1(e.base_,t)?(A1(e),e.copy_[t]=zP(r,e)):r},has(e,t){return t in eu(e)},ownKeys(e){return Reflect.ownKeys(eu(e))},set(e,t,n){const r=FF(eu(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=j1(eu(e),t),o=i==null?void 0:i[yi];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(Tie(n,i)&&(n!==void 0||DP(e.base_,t)))return!0;A1(e),UP(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return j1(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,A1(e),UP(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=eu(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){bo(11)},getPrototypeOf(e){return hf(e.base_)},setPrototypeOf(){bo(12)}},sp={};op(ST,(e,t)=>{sp[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});sp.deleteProperty=function(e,t){return sp.set.call(this,e,t,void 0)};sp.set=function(e,t,n){return ST.set.call(this,e[0],t,n,e[0])};function j1(e,t){const n=e[yi];return(n?eu(n):e)[t]}function Mie(e,t,n){var i;const r=FF(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function FF(e,t){if(!(t in e))return;let n=hf(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=hf(n)}}function UP(e){e.modified_||(e.modified_=!0,e.parent_&&UP(e.parent_))}function A1(e){e.copy_||(e.copy_=$P(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Lie=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const o=n;n=t;const a=this;return function(c=o,...u){return a.produce(c,h=>n.call(this,h,...u))}}typeof n!="function"&&bo(6),r!==void 0&&typeof r!="function"&&bo(7);let i;if(Wa(t)){const o=WR(this),a=zP(t,void 0);let s=!0;try{i=n(a),s=!1}finally{s?FP(o):BP(o)}return VR(o,r),qR(i,o)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===LF&&(i=void 0),this.autoFreeze_&&OT(i,!0),r){const o=[],a=[];Su("Patches").generateReplacementPatches_(t,i,o,a),r(o,a)}return i}else bo(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...s)=>this.produceWithPatches(a,c=>t(c,...s));let r,i;return[this.produce(t,n,(a,s)=>{r=a,i=s}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Wa(e)||bo(8),Ou(e)&&(e=Iie(e));const t=WR(this),n=zP(e,void 0);return n[yi].isManual_=!0,BP(t),n}finishDraft(e,t){const n=e&&e[yi];(!n||!n.isManual_)&&bo(9);const{scope_:r}=n;return VR(r,t),qR(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=Su("Patches").applyPatches_;return Ou(e)?r(e,t):this.produce(e,i=>r(i,t))}};function zP(e,t){const n=F0(e)?Su("MapSet").proxyMap_(e,t):B0(e)?Su("MapSet").proxySet_(e,t):Nie(e,t);return(t?t.scope_:$F()).drafts_.push(n),n}function Iie(e){return Ou(e)||bo(10,e),BF(e)}function BF(e){if(!Wa(e)||U0(e))return e;const t=e[yi];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=$P(e,t.scope_.immer_.useStrictShallowCopy_)}else n=$P(e,!0);return op(n,(r,i)=>{DF(n,r,BF(i))}),t&&(t.finalized_=!1),n}var bi=new Lie,UF=bi.produce;bi.produceWithPatches.bind(bi);bi.setAutoFreeze.bind(bi);bi.setUseStrictShallowCopy.bind(bi);bi.applyPatches.bind(bi);bi.createDraft.bind(bi);bi.finishDraft.bind(bi);function zF(e){return({dispatch:n,getState:r})=>i=>o=>typeof o=="function"?o(n,r,e):i(o)}var Die=zF(),$ie=zF,Fie=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ny:ny.apply(null,arguments)},Bie=e=>e&&typeof e.match=="function";function jr(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(La(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>Cie(r)&&r.type===e,n}var VF=class xh extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,xh.prototype)}static get[Symbol.species](){return xh}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new xh(...t[0].concat(this)):new xh(...t.concat(this))}};function GR(e){return Wa(e)?UF(e,()=>{}):e}function KR(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function Uie(e){return typeof e=="boolean"}var zie=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let a=new VF;return n&&(Uie(n)?a.push(Die):a.push($ie(n.extraArgument))),a},Vie="RTK_autoBatch",YR=e=>t=>{setTimeout(t,e)},Wie=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,o=!1,a=!1;const s=new Set,c=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:YR(10):e.type==="callback"?e.queueNotification:YR(e.timeout),u=()=>{a=!1,o&&(o=!1,s.forEach(h=>h()))};return Object.assign({},r,{subscribe(h){const p=()=>i&&h(),v=r.subscribe(p);return s.add(h),()=>{v(),s.delete(h)}},dispatch(h){var p;try{return i=!((p=h==null?void 0:h.meta)!=null&&p[Vie]),o=!i,o&&(a||(a=!0,c(u))),r.dispatch(h)}finally{i=!0}}})},qie=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new VF(e);return r&&i.push(Wie(typeof r=="object"?r:void 0)),i};function WF(e){const t=zie(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:o=void 0,enhancers:a=void 0}=e||{};let s;if(typeof n=="function")s=n;else if(xT(n))s=wT(n);else throw new Error(La(1));let c;typeof r=="function"?c=r(t):c=t();let u=ny;i&&(u=Fie({trace:!1,...typeof i=="object"&&i}));const h=Pie(...c),p=qie(h);let v=typeof a=="function"?a(p):p();const b=u(...v);return MF(s,o,b)}function qF(e){const t={},n=[];let r;const i={addCase(o,a){const s=typeof o=="string"?o:o.type;if(!s)throw new Error(La(28));if(s in t)throw new Error(La(29));return t[s]=a,i},addMatcher(o,a){return n.push({matcher:o,reducer:a}),i},addDefaultCase(o){return r=o,i}};return e(i),[t,n,r]}function Hie(e){return typeof e=="function"}function Gie(e,t){let[n,r,i]=qF(t),o;if(Hie(e))o=()=>GR(e());else{const s=GR(e);o=()=>s}function a(s=o(),c){let u=[n[c.type],...r.filter(({matcher:h})=>h(c)).map(({reducer:h})=>h)];return u.filter(h=>!!h).length===0&&(u=[i]),u.reduce((h,p)=>{if(p)if(Ou(h)){const b=p(h,c);return b===void 0?h:b}else{if(Wa(h))return UF(h,v=>p(v,c));{const v=p(h,c);if(v===void 0){if(h===null)return h;throw Error("A case reducer on a non-draftable value must not return undefined")}return v}}return h},s)}return a.getInitialState=o,a}var Kie=(e,t)=>Bie(e)?e.match(t):e(t);function Yie(...e){return t=>e.some(n=>Kie(n,t))}var Zie="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Xie=(e=21)=>{let t="",n=e;for(;n--;)t+=Zie[Math.random()*64|0];return t},Qie=["name","message","stack","code"],k1=class{constructor(e,t){Ec(this,"_type");this.payload=e,this.meta=t}},ZR=class{constructor(e,t){Ec(this,"_type");this.payload=e,this.meta=t}},Jie=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of Qie)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},HF=(()=>{function e(t,n,r){const i=jr(t+"/fulfilled",(c,u,h,p)=>({payload:c,meta:{...p||{},arg:h,requestId:u,requestStatus:"fulfilled"}})),o=jr(t+"/pending",(c,u,h)=>({payload:void 0,meta:{...h||{},arg:u,requestId:c,requestStatus:"pending"}})),a=jr(t+"/rejected",(c,u,h,p,v)=>({payload:p,error:(r&&r.serializeError||Jie)(c||"Rejected"),meta:{...v||{},arg:h,requestId:u,rejectedWithValue:!!p,requestStatus:"rejected",aborted:(c==null?void 0:c.name)==="AbortError",condition:(c==null?void 0:c.name)==="ConditionError"}}));function s(c){return(u,h,p)=>{const v=r!=null&&r.idGenerator?r.idGenerator(c):Xie(),b=new AbortController;let x,_;function w(P){_=P,b.abort()}const O=async function(){var T,A;let P;try{let j=(T=r==null?void 0:r.condition)==null?void 0:T.call(r,c,{getState:h,extra:p});if(toe(j)&&(j=await j),j===!1||b.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const N=new Promise(($,W)=>{x=()=>{W({name:"AbortError",message:_||"Aborted"})},b.signal.addEventListener("abort",x)});u(o(v,c,(A=r==null?void 0:r.getPendingMeta)==null?void 0:A.call(r,{requestId:v,arg:c},{getState:h,extra:p}))),P=await Promise.race([N,Promise.resolve(n(c,{dispatch:u,getState:h,extra:p,requestId:v,signal:b.signal,abort:w,rejectWithValue:($,W)=>new k1($,W),fulfillWithValue:($,W)=>new ZR($,W)})).then($=>{if($ instanceof k1)throw $;return $ instanceof ZR?i($.payload,v,c,$.meta):i($,v,c)})])}catch(j){P=j instanceof k1?a(null,v,c,j.payload,j.meta):a(j,v,c)}finally{x&&b.signal.removeEventListener("abort",x)}return r&&!r.dispatchConditionRejection&&a.match(P)&&P.meta.condition||u(P),P}();return Object.assign(O,{abort:w,requestId:v,arg:c,unwrap(){return O.then(eoe)}})}}return Object.assign(s,{pending:o,rejected:a,fulfilled:i,settled:Yie(a,i),typePrefix:t})}return e.withTypes=()=>e,e})();function eoe(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function toe(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var noe=Symbol.for("rtk-slice-createasyncthunk");function roe(e,t){return`${e}/${t}`}function ioe({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[noe];return function(i){const{name:o,reducerPath:a=o}=i;if(!o)throw new Error(La(11));typeof process<"u";const s=(typeof i.reducers=="function"?i.reducers(aoe()):i.reducers)||{},c=Object.keys(s),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},h={addCase(E,T){const A=typeof E=="string"?E:E.type;if(!A)throw new Error(La(12));if(A in u.sliceCaseReducersByType)throw new Error(La(13));return u.sliceCaseReducersByType[A]=T,h},addMatcher(E,T){return u.sliceMatchers.push({matcher:E,reducer:T}),h},exposeAction(E,T){return u.actionCreators[E]=T,h},exposeCaseReducer(E,T){return u.sliceCaseReducersByName[E]=T,h}};c.forEach(E=>{const T=s[E],A={reducerName:E,type:roe(o,E),createNotation:typeof i.reducers=="function"};loe(T)?coe(A,T,h,t):soe(A,T,h)});function p(){const[E={},T=[],A=void 0]=typeof i.extraReducers=="function"?qF(i.extraReducers):[i.extraReducers],j={...E,...u.sliceCaseReducersByType};return Gie(i.initialState,N=>{for(let $ in j)N.addCase($,j[$]);for(let $ of u.sliceMatchers)N.addMatcher($.matcher,$.reducer);for(let $ of T)N.addMatcher($.matcher,$.reducer);A&&N.addDefaultCase(A)})}const v=E=>E,b=new Map;let x;function _(E,T){return x||(x=p()),x(E,T)}function w(){return x||(x=p()),x.getInitialState()}function O(E,T=!1){function A(N){let $=N[E];return typeof $>"u"&&T&&($=w()),$}function j(N=v){const $=KR(b,T,()=>new WeakMap);return KR($,N,()=>{const W={};for(const[B,V]of Object.entries(i.selectors??{}))W[B]=ooe(V,N,w,T);return W})}return{reducerPath:E,getSelectors:j,get selectors(){return j(A)},selectSlice:A}}const P={name:o,reducer:_,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:w,...O(a),injectInto(E,{reducerPath:T,...A}={}){const j=T??a;return E.inject({reducerPath:j,reducer:_},A),{...P,...O(j,!0)}}};return P}}function ooe(e,t,n,r){function i(o,...a){let s=t(o);return typeof s>"u"&&r&&(s=n()),e(s,...a)}return i.unwrapped=e,i}var An=ioe();function aoe(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function soe({type:e,reducerName:t,createNotation:n},r,i){let o,a;if("reducer"in r){if(n&&!uoe(r))throw new Error(La(17));o=r.reducer,a=r.prepare}else o=r;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,a?jr(e,a):jr(e))}function loe(e){return e._reducerDefinitionType==="asyncThunk"}function uoe(e){return e._reducerDefinitionType==="reducerWithPrepare"}function coe({type:e,reducerName:t},n,r,i){if(!i)throw new Error(La(18));const{payloadCreator:o,fulfilled:a,pending:s,rejected:c,settled:u,options:h}=n,p=i(e,o,h);r.exposeAction(t,p),a&&r.addCase(p.fulfilled,a),s&&r.addCase(p.pending,s),c&&r.addCase(p.rejected,c),u&&r.addMatcher(p.settled,u),r.exposeCaseReducer(t,{fulfilled:a||Uv,pending:s||Uv,rejected:c||Uv,settled:u||Uv})}function Uv(){}function La(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const{actions:foe,reducer:doe}=An({name:"shlink/appUpdates",initialState:!1,reducers:{appUpdateAvailable:()=>!0,resetAppUpdate:()=>!1}}),{appUpdateAvailable:hoe,resetAppUpdate:poe}=foe,moe=doe,voe=(e,t)=>{e.factory("App",xie),e.decorator("App",t(["servers","settings","appUpdated"],["fetchServers","resetAppUpdate"])),e.serviceFactory("appUpdateAvailable",()=>hoe),e.serviceFactory("resetAppUpdate",()=>poe)},XR={"Content-Type":"application/json"},QR=e=>e!=null&&e.body?e?{...e,headers:{...e.headers??{},...XR}}:{headers:XR}:e;let goe=class{constructor(t=window.fetch.bind(window)){this.fetch=t}async jsonRequest(t,n){return this.fetch(t,QR(n)).then(async r=>{const i=await r.json();if(!r.ok)throw i;return i})}async emptyRequest(t,n){return this.fetch(t,QR(n)).then(async r=>{if(!r.ok)throw await r.json()})}};var PT=(e=>(e.INVALID_ARGUMENT="https://shlink.io/api/error/invalid-data",e.INVALID_SHORT_URL_DELETION="https://shlink.io/api/error/invalid-short-url-deletion",e.DOMAIN_NOT_FOUND="https://shlink.io/api/error/domain-not-found",e.FORBIDDEN_OPERATION="https://shlink.io/api/error/forbidden-tag-operation",e.INVALID_SLUG="https://shlink.io/api/error/non-unique-slug",e.INVALID_SHORTCODE="https://shlink.io/api/error/short-url-not-found",e.TAG_CONFLICT="https://shlink.io/api/error/tag-conflict",e.TAG_NOT_FOUND="https://shlink.io/api/error/tag-not-found",e.MERCURE_NOT_CONFIGURED="https://shlink.io/api/error/mercure-not-configured",e.INVALID_AUTHORIZATION="https://shlink.io/api/error/missing-authentication",e.INVALID_API_KEY="https://shlink.io/api/error/invalid-api-key",e.NOT_FOUND="https://shlink.io/api/error/not-found",e.INVALID_URL="https://shlink.io/api/error/invalid-url",e))(PT||{});const yoe=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,JR=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(yoe);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},eN=e=>e==="*"||e==="x"||e==="X",tN=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},boe=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],_oe=(e,t)=>{if(eN(e)||eN(t))return 0;const[n,r]=boe(tN(e),tN(t));return n>r?1:n{for(let n=0;n{const n=JR(e),r=JR(t),i=n.pop(),o=r.pop(),a=nN(n,r);return a!==0?a:i&&o?nN(i.split("."),o.split(".")):i||o?i?-1:1:0},VP=(e,t,n)=>{woe(n);const r=xoe(e,t);return GF[n].includes(r)},GF={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},rN=Object.keys(GF),woe=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(rN.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${rN.join("|")}`)},KF=(e,t)=>e.reduce((n,r)=>{const i=t(r);return n[i]=(n[i]||0)+1,n},{}),YF=(e,t)=>e.reduce((n,r)=>{const i=t(r);return(n[i]=n[i]||[]).push(r),n},{}),R1=e=>Object.prototype.toString.call(e)==="[object Object]",ZF=(e,t)=>{const n={};return(...r)=>{const i=e(...r);if(n[i])return n[i];const o=t(...r);return n[i]=o,o}},z0=(e,t)=>{const n={...e};return!R1(e)||!R1(t)||Object.keys(t).forEach(r=>{R1(t[r])?n[r]=r in e&&e[r]!==void 0?z0(e[r],t[r]):{...t[r]}:n[r]=t[r]}),n},CT=(e,t)=>Array.from({length:t-e},(n,r)=>e+r),Ooe=(e,t)=>[...e].sort((n,r)=>{const i=t(n),o=t(r);return i===o?0:i{const n=[];for(let r=0;rObject.fromEntries(e.map((n,r)=>[n,t[r]])),Gr=({href:e,children:t,rel:n,...r})=>g.jsx("a",{target:"_blank",rel:`noopener noreferrer${n?` ${n}`:""}`,href:e,...r,children:t??e}),Soe="Left",Poe="Right",Coe="Up",Eoe="Down",Hc={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},WP={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},oN="mousemove",aN="mouseup",Toe="touchend",joe="touchmove",Aoe="touchstart";function koe(e,t,n,r){return e>t?n>0?Poe:Soe:r>0?Eoe:Coe}function sN(e,t){if(t===0)return e;const n=Math.PI/180*t,r=e[0]*Math.cos(n)+e[1]*Math.sin(n),i=e[1]*Math.cos(n)-e[0]*Math.sin(n);return[r,i]}function Roe(e,t){const n=h=>{const p="touches"in h;p&&h.touches.length>1||e((v,b)=>{b.trackMouse&&!p&&(document.addEventListener(oN,r),document.addEventListener(aN,a));const{clientX:x,clientY:_}=p?h.touches[0]:h,w=sN([x,_],b.rotationAngle);return b.onTouchStartOrOnMouseDown&&b.onTouchStartOrOnMouseDown({event:h}),Object.assign(Object.assign(Object.assign({},v),WP),{initial:w.slice(),xy:w,start:h.timeStamp||0})})},r=h=>{e((p,v)=>{const b="touches"in h;if(b&&h.touches.length>1)return p;if(h.timeStamp-p.start>v.swipeDuration)return p.swiping?Object.assign(Object.assign({},p),{swiping:!1}):p;const{clientX:x,clientY:_}=b?h.touches[0]:h,[w,O]=sN([x,_],v.rotationAngle),P=w-p.xy[0],E=O-p.xy[1],T=Math.abs(P),A=Math.abs(E),j=(h.timeStamp||0)-p.start,N=Math.sqrt(T*T+A*A)/(j||1),$=[P/(j||1),E/(j||1)],W=koe(T,A,P,E),B=typeof v.delta=="number"?v.delta:v.delta[W.toLowerCase()]||Hc.delta;if(T{e((p,v)=>{let b;if(p.swiping&&p.eventData){if(h.timeStamp-p.start{document.removeEventListener(oN,r),document.removeEventListener(aN,a)},a=h=>{o(),i(h)},s=(h,p)=>{let v=()=>{};if(h&&h.addEventListener){const b=Object.assign(Object.assign({},Hc.touchEventOptions),p.touchEventOptions),x=[[Aoe,n,b],[joe,r,Object.assign(Object.assign({},b),p.preventScrollOnSwipe?{passive:!1}:{})],[Toe,i,b]];x.forEach(([_,w,O])=>h.addEventListener(_,w,O)),v=()=>x.forEach(([_,w])=>h.removeEventListener(_,w))}return v},u={ref:h=>{h!==null&&e((p,v)=>{if(p.el===h)return p;const b={};return p.el&&p.el!==h&&p.cleanUpTouch&&(p.cleanUpTouch(),b.cleanUpTouch=void 0),v.trackTouch&&h&&(b.cleanUpTouch=s(h,v)),Object.assign(Object.assign(Object.assign({},p),{el:h}),b)})}};return t.trackMouse&&(u.onMouseDown=n),[u,s]}function Noe(e,t,n,r){return!t.trackTouch||!e.el?(e.cleanUpTouch&&e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:void 0})):e.cleanUpTouch?t.preventScrollOnSwipe!==n.preventScrollOnSwipe||t.touchEventOptions.passive!==n.touchEventOptions.passive?(e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:r(e.el,t)})):e:Object.assign(Object.assign({},e),{cleanUpTouch:r(e.el,t)})}function Moe(e){const{trackMouse:t}=e,n=F.useRef(Object.assign({},WP)),r=F.useRef(Object.assign({},Hc)),i=F.useRef(Object.assign({},r.current));i.current=Object.assign({},r.current),r.current=Object.assign(Object.assign({},Hc),e);let o;for(o in Hc)r.current[o]===void 0&&(r.current[o]=Hc[o]);const[a,s]=F.useMemo(()=>Roe(c=>n.current=c(n.current,r.current),{trackMouse:t}),[t]);return n.current=Noe(n.current,r.current,i.current,s),a}var wh={exports:{}};/** @license + * eventsource.js + * Available under MIT License (MIT) + * https://github.com/Yaffle/EventSource/ + */var Loe=wh.exports,lN;function Ioe(){return lN||(lN=1,function(e,t){(function(n){var r=n.setTimeout,i=n.clearTimeout,o=n.XMLHttpRequest,a=n.XDomainRequest,s=n.ActiveXObject,c=n.EventSource,u=n.document,h=n.Promise,p=n.fetch,v=n.Response,b=n.TextDecoder,x=n.TextEncoder,_=n.AbortController;if(typeof window<"u"&&typeof u<"u"&&!("readyState"in u)&&u.body==null&&(u.readyState="loading",window.addEventListener("load",function(ge){u.readyState="complete"},!1)),o==null&&s!=null&&(o=function(){return new s("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(ge){function Ee(){}return Ee.prototype=ge,new Ee}),Date.now||(Date.now=function(){return new Date().getTime()}),_==null){var w=p;p=function(ge,Ee){var je=Ee.signal;return w(ge,{headers:Ee.headers,credentials:Ee.credentials,cache:Ee.cache}).then(function(Me){var He=Me.body.getReader();return je._reader=He,je._aborted&&je._reader.cancel(),{status:Me.status,statusText:Me.statusText,headers:Me.headers,body:{getReader:function(){return He}}}})},_=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function O(){this.bitsNeeded=0,this.codePoint=0}O.prototype.decode=function(ge){function Ee(Ae,ke,De){if(De===1)return Ae>=128>>ke&&Ae<=2048>>ke&&Ae<=57344>>ke&&Ae<=65536>>ke&&Ae<>6>15?3:ke>31?2:1;if(Ae===6*2)return ke>15?3:2;if(Ae===6*3)return 3;throw new Error}for(var Me=65533,He="",Ue=this.bitsNeeded,qe=this.codePoint,ye=0;ye191||!Ee(qe<<6|we&63,Ue-6,je(Ue,qe)))&&(Ue=0,qe=Me,He+=String.fromCharCode(qe)),Ue===0?(we>=0&&we<=127?(Ue=0,qe=we):we>=192&&we<=223?(Ue=6*1,qe=we&31):we>=224&&we<=239?(Ue=6*2,qe=we&15):we>=240&&we<=247?(Ue=6*3,qe=we&7):(Ue=0,qe=Me),Ue!==0&&!Ee(qe,Ue,je(Ue,qe))&&(Ue=0,qe=Me)):(Ue-=6,qe=qe<<6|we&63),Ue===0&&(qe<=65535?He+=String.fromCharCode(qe):(He+=String.fromCharCode(55296+(qe-65535-1>>10)),He+=String.fromCharCode(56320+(qe-65535-1&1023))))}return this.bitsNeeded=Ue,this.codePoint=qe,He};var P=function(){try{return new b().decode(new x().encode("test"),{stream:!0})==="test"}catch(ge){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+ge)}return!1};(b==null||x==null||!P())&&(b=O);var E=function(){};function T(ge){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=E,this.onload=E,this.onerror=E,this.onreadystatechange=E,this._contentType="",this._xhr=ge,this._sendTimeout=0,this._abort=E}T.prototype.open=function(ge,Ee){this._abort(!0);var je=this,Me=this._xhr,He=1,Ue=0;this._abort=function(De){je._sendTimeout!==0&&(i(je._sendTimeout),je._sendTimeout=0),(He===1||He===2||He===3)&&(He=4,Me.onload=E,Me.onerror=E,Me.onabort=E,Me.onprogress=E,Me.onreadystatechange=E,Me.abort(),Ue!==0&&(i(Ue),Ue=0),De||(je.readyState=4,je.onabort(null),je.onreadystatechange())),He=0};var qe=function(){if(He===1){var De=0,Ke="",Xe=void 0;if("contentType"in Me)De=200,Ke="OK",Xe=Me.contentType;else try{De=Me.status,Ke=Me.statusText,Xe=Me.getResponseHeader("Content-Type")}catch{De=0,Ke="",Xe=void 0}De!==0&&(He=2,je.readyState=2,je.status=De,je.statusText=Ke,je._contentType=Xe,je.onreadystatechange())}},ye=function(){if(qe(),He===2||He===3){He=3;var De="";try{De=Me.responseText}catch{}je.readyState=3,je.responseText=De,je.onprogress()}},we=function(De,Ke){if((Ke==null||Ke.preventDefault==null)&&(Ke={preventDefault:E}),ye(),He===1||He===2||He===3){if(He=4,Ue!==0&&(i(Ue),Ue=0),je.readyState=4,De==="load")je.onload(Ke);else if(De==="error")je.onerror(Ke);else if(De==="abort")je.onabort(Ke);else throw new TypeError;je.onreadystatechange()}},Ae=function(De){Me!=null&&(Me.readyState===4?(!("onload"in Me)||!("onerror"in Me)||!("onabort"in Me))&&we(Me.responseText===""?"error":"load",De):Me.readyState===3?"onprogress"in Me||ye():Me.readyState===2&&qe())},ke=function(){Ue=r(function(){ke()},500),Me.readyState===3&&ye()};"onload"in Me&&(Me.onload=function(De){we("load",De)}),"onerror"in Me&&(Me.onerror=function(De){we("error",De)}),"onabort"in Me&&(Me.onabort=function(De){we("abort",De)}),"onprogress"in Me&&(Me.onprogress=ye),"onreadystatechange"in Me&&(Me.onreadystatechange=function(De){Ae(De)}),("contentType"in Me||!("ontimeout"in o.prototype))&&(Ee+=(Ee.indexOf("?")===-1?"?":"&")+"padding=true"),Me.open(ge,Ee,!0),"readyState"in Me&&(Ue=r(function(){ke()},0))},T.prototype.abort=function(){this._abort(!1)},T.prototype.getResponseHeader=function(ge){return this._contentType},T.prototype.setRequestHeader=function(ge,Ee){var je=this._xhr;"setRequestHeader"in je&&je.setRequestHeader(ge,Ee)},T.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},T.prototype.send=function(){if((!("ontimeout"in o.prototype)||!("sendAsBinary"in o.prototype)&&!("mozAnon"in o.prototype))&&u!=null&&u.readyState!=null&&u.readyState!=="complete"){var ge=this;ge._sendTimeout=r(function(){ge._sendTimeout=0,ge.send()},4);return}var Ee=this._xhr;"withCredentials"in Ee&&(Ee.withCredentials=this.withCredentials);try{Ee.send(void 0)}catch(je){throw je}};function A(ge){return ge.replace(/[A-Z]/g,function(Ee){return String.fromCharCode(Ee.charCodeAt(0)+32)})}function j(ge){for(var Ee=Object.create(null),je=ge.split(`\r +`),Me=0;Me"u"?typeof window<"u"?window:typeof self<"u"?self:Loe:globalThis)}(wh,wh.exports)),wh.exports}var Doe=Ioe();const Qs=({children:e})=>g.jsx("small",{className:"form-text text-muted d-block",children:e}),$oe=({toggleRealTimeUpdates:e,setRealTimeUpdatesInterval:t})=>{const{enabled:n,interval:r}=Rr("realTimeUpdates",{enabled:!0}),i=F.useId();return g.jsxs(qt,{title:"Real-time updates",className:"h-100",children:[g.jsx(Zg,{children:g.jsxs(Va,{checked:n,onChange:e,children:["Enable or disable real-time updates.",g.jsxs(Qs,{children:["Real-time updates are currently being ",g.jsx("b",{children:n?"processed":"ignored"}),"."]})]})}),g.jsxs(Yf,{noMargin:!0,label:"Real-time updates frequency (in minutes):",labelClassName:Be("form-label",{"text-muted":!n}),id:i,children:[g.jsx(Qn,{type:"number",min:0,placeholder:"Immediate",disabled:!n,value:`${r??""}`,id:i,onChange:({target:o})=>t(Number(o.value))}),n&&g.jsx(Qs,{children:r?g.jsxs("span",{children:["Updates will be reflected in the UI every ",g.jsx("b",{children:r})," minute",r>1&&"s","."]}):"Updates will be reflected in the UI as soon as they happen."})]})]})},N1=e=>e==="includes"?"Suggest tags including input":"Suggest tags starting with input",Foe=e=>e==="includes"?g.jsxs(g.Fragment,{children:["The list of suggested tags will contain those ",g.jsx("b",{children:"including"})," provided input."]}):g.jsxs(g.Fragment,{children:["The list of suggested tags will contain those ",g.jsx("b",{children:"starting with"})," provided input."]}),Boe=({updateShortUrlCreationSettings:e})=>{const t=Rr("shortUrlCreation",{validateUrls:!1}),n=r=>()=>e({...t??{validateUrls:!1},tagFilteringMode:r});return g.jsxs(qt,{title:"Short URLs form",className:"h-100",bodyClassName:"d-flex flex-column gap-3",children:[g.jsxs(Va,{checked:t.validateUrls??!1,onChange:r=>e({...t,validateUrls:r}),children:["Request validation on long URLs when creating new short URLs."," ",g.jsxs("b",{children:["This option is ignored by Shlink ",">=","4.0.0"]}),g.jsxs(Qs,{children:["The initial state of the ",g.jsx("b",{children:"Validate URL"})," checkbox will be ",g.jsx("b",{children:t.validateUrls?"checked":"unchecked"}),"."]})]}),g.jsxs(Va,{checked:t.forwardQuery??!0,onChange:r=>e({...t,forwardQuery:r}),children:["Make all new short URLs forward their query params to the long URL.",g.jsxs(Qs,{children:["The initial state of the ",g.jsx("b",{children:"Forward query params on redirect"})," checkbox will be ",g.jsx("b",{children:t.forwardQuery??!0?"checked":"unchecked"}),"."]})]}),g.jsxs(Yf,{noMargin:!0,label:"Tag suggestions search mode:",children:[g.jsxs(Ja,{text:N1(t.tagFilteringMode),children:[g.jsx(Ye,{active:!t.tagFilteringMode||t.tagFilteringMode==="startsWith",onClick:n("startsWith"),children:N1("startsWith")}),g.jsx(Ye,{active:t.tagFilteringMode==="includes",onClick:n("includes"),children:N1("includes")})]}),g.jsx(Qs,{children:Foe(t.tagFilteringMode)})]})]})},Uoe={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},zoe=({updateShortUrlsListSettings:e,defaultOrdering:t})=>{const n=Rr("shortUrlsList"),r=(n==null?void 0:n.confirmDeletions)??!0;return g.jsxs(qt,{title:"Short URLs list",className:"h-100",bodyClassName:"d-flex flex-column gap-3",children:[g.jsxs(Va,{checked:r,onChange:i=>e({...n,confirmDeletions:i}),children:["Request confirmation before deleting a short URL.",g.jsxs(Qs,{children:["When deleting a short URL, confirmation ",g.jsx("b",{children:r?"will":"won't"})," be required."]})]}),g.jsx(Yf,{noMargin:!0,label:"Default ordering for short URLs list:",children:g.jsx(nm,{items:Uoe,order:(n==null?void 0:n.defaultOrdering)??t,onChange:(i,o)=>e({defaultOrdering:{field:i,dir:o}})})})]})},Voe={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},Woe=({updateTagsSettings:e})=>{const t=Rr("tags",{});return g.jsx(qt,{title:"Tags",className:"h-100",children:g.jsx(Yf,{noMargin:!0,label:"Default ordering for tags list:",children:g.jsx(nm,{items:Voe,order:t.defaultOrdering??{},onChange:(n,r)=>e({...t,defaultOrdering:{field:n,dir:r}})})})})},qoe=({updateUiSettings:e,_matchMedia:t})=>{const n=Rr("ui"),r=F.useMemo(()=>(n==null?void 0:n.theme)??_T(t),[n==null?void 0:n.theme,t]);return g.jsxs(qt,{title:"User interface",className:"h-100",bodyClassName:"d-flex justify-content-between align-items-center",children:[g.jsx(Va,{checked:r==="dark",onChange:i=>{e({...n,theme:i?"dark":"light"})},children:"Use dark theme."}),g.jsx(Ge,{icon:r==="dark"?XK:FK})]})},XF={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days"},Hoe=(e,t)=>!e||e==="all"?t:XF[e],Goe=({onChange:e,active:t,allText:n})=>g.jsxs(Ja,{text:Hoe(t,n),children:[g.jsx(Ye,{active:t==="all",onClick:()=>e("all"),children:n}),g.jsx(Ye,{divider:!0}),Object.entries(XF).map(([r,i])=>g.jsx(Ye,{active:t===r,onClick:()=>e(r),children:i},r))]}),uN=e=>(e==null?void 0:e.defaultInterval)??"last30Days",Koe=({updateVisitsSettings:e})=>{const t=Rr("visits"),n=F.useCallback(({defaultInterval:r,...i})=>e({defaultInterval:r??uN(t),...i}),[e,t]);return g.jsxs(qt,{title:"Visits",className:"h-100",children:[g.jsx(Zg,{children:g.jsxs(Va,{checked:!!(t!=null&&t.excludeBots),onChange:r=>n({excludeBots:r}),children:["Exclude bots wherever possible (this option‘s effect might depend on Shlink server‘s version).",g.jsxs(Qs,{children:["The visits coming from potential bots will be ",g.jsx("b",{children:t!=null&&t.excludeBots?"excluded":"included"}),"."]})]})}),g.jsx(Zg,{children:g.jsxs(Va,{checked:!!(t!=null&&t.loadPrevInterval),onChange:r=>n({loadPrevInterval:r}),children:["Compare visits with previous period.",g.jsxs(Qs,{children:["When loading visits, previous period ",g.jsx("b",{children:t!=null&&t.loadPrevInterval?"will":"won't"})," be loaded by default."]})]})}),g.jsx(Yf,{noMargin:!0,label:"Default interval to load on visits sections:",children:g.jsx(Goe,{allText:"All visits",active:uN(t),onChange:r=>n({defaultInterval:r})})})]})},M1=({children:e})=>F.Children.map(e,(t,n)=>g.jsx("div",{className:"mb-3",children:t},n)),Yoe=({settings:e,updateSettings:t,defaultShortUrlsListOrdering:n})=>{const r=F.useCallback(s=>t(z0(e,s)),[e,t]),i=F.useCallback(s=>r({realTimeUpdates:{enabled:s}}),[r]),o=F.useCallback(s=>r({realTimeUpdates:{interval:s}}),[r]),a=F.useCallback((s,c)=>r({[s]:c}),[r]);return g.jsxs(e7,{value:e,children:[g.jsxs(AF,{className:"mb-3",children:[g.jsx(Mh,{to:"general",children:"General"}),g.jsx(Mh,{to:"short-urls",children:"Short URLs"}),g.jsx(Mh,{to:"other-items",children:"Other items"})]}),g.jsxs(P0,{children:[g.jsx(Rt,{path:"general",element:g.jsxs(M1,{children:[g.jsx(qoe,{updateUiSettings:s=>a("ui",s)}),g.jsx($oe,{toggleRealTimeUpdates:i,setRealTimeUpdatesInterval:o})]})}),g.jsx(Rt,{path:"short-urls",element:g.jsxs(M1,{children:[g.jsx(Boe,{updateShortUrlCreationSettings:s=>a("shortUrlCreation",s)}),g.jsx(zoe,{defaultOrdering:n,updateShortUrlsListSettings:s=>a("shortUrlsList",s)})]})}),g.jsx(Rt,{path:"other-items",element:g.jsxs(M1,{children:[g.jsx(Woe,{updateTagsSettings:s=>a("tags",s)}),g.jsx(Koe,{updateVisitsSettings:s=>a("visits",s)})]})}),g.jsx(Rt,{path:"*",element:g.jsx(NE,{replace:!0,to:"general"})})]})]})},QF={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:{field:"dateCreated",dir:"DESC"}}},JF=F.createContext(QF),{Provider:e7}=JF,ET=()=>F.useContext(JF)??QF;function Rr(e,t){return ET()[e]??t}/*! + * Font Awesome Free 6.7.1 by @fontawesome - https://fontawesome.com + * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) + * Copyright 2024 Fonticons, Inc. + */const Zoe={prefix:"far",iconName:"circle-right",icon:[512,512,[61838,"arrow-alt-circle-right"],"f35a","M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM294.6 151.2c-4.2-4.6-10.1-7.2-16.4-7.2C266 144 256 154 256 166.3l0 41.7-96 0c-17.7 0-32 14.3-32 32l0 32c0 17.7 14.3 32 32 32l96 0 0 41.7c0 12.3 10 22.3 22.3 22.3c6.2 0 12.1-2.6 16.4-7.2l84-91c3.5-3.8 5.4-8.7 5.4-13.9s-1.9-10.1-5.4-13.9l-84-91z"]},Xoe=Zoe,Qoe={prefix:"far",iconName:"circle",icon:[512,512,[128308,128309,128992,128993,128994,128995,128996,9679,9898,9899,11044,61708,61915],"f111","M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z"]},t7={prefix:"far",iconName:"clone",icon:[512,512,[],"f24d","M64 464l224 0c8.8 0 16-7.2 16-16l0-64 48 0 0 64c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 224c0-35.3 28.7-64 64-64l64 0 0 48-64 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16zM224 304l224 0c8.8 0 16-7.2 16-16l0-224c0-8.8-7.2-16-16-16L224 48c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16zm-64-16l0-224c0-35.3 28.7-64 64-64L448 0c35.3 0 64 28.7 64 64l0 224c0 35.3-28.7 64-64 64l-224 0c-35.3 0-64-28.7-64-64z"]},TT=6048e5,Joe=864e5,n7=6e4,jT=36e5,zv=43200,cN=1440,fN=Symbol.for("constructDateFrom");function sr(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&fN in e?e[fN](t):e instanceof Date?new e.constructor(t):new Date(t)}function jt(e,t){return sr(t||e,e)}function AT(e,t,n){const r=jt(e,n==null?void 0:n.in);return isNaN(t)?sr(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function eae(e,t,n){const r=jt(e,n==null?void 0:n.in);if(isNaN(t))return sr(e,NaN);if(!t)return r;const i=r.getDate(),o=sr(e,r.getTime());o.setMonth(r.getMonth()+t+1,0);const a=o.getDate();return i>=a?o:(r.setFullYear(o.getFullYear(),o.getMonth(),i),r)}function tae(e,t,n){const{years:r=0,months:i=0,weeks:o=0,days:a=0,hours:s=0,minutes:c=0,seconds:u=0}=t,h=jt(e,n==null?void 0:n.in),p=i||r?eae(h,i+r*12):h,v=a||o?AT(p,a+o*7):p,b=c+s*60,_=(u+b*60)*1e3;return sr(e,+v+_)}let nae={};function im(){return nae}function Pu(e,t){var s,c,u,h;const n=im(),r=(t==null?void 0:t.weekStartsOn)??((c=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((h=(u=n.locale)==null?void 0:u.options)==null?void 0:h.weekStartsOn)??0,i=jt(e,t==null?void 0:t.in),o=i.getDay(),a=(o=o.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function pf(e){const t=jt(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Mu(e,...t){const n=sr.bind(null,e||t.find(r=>typeof r=="object"));return t.map(n)}function Cu(e,t){const n=jt(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function V0(e,t,n){const[r,i]=Mu(n==null?void 0:n.in,e,t),o=Cu(r),a=Cu(i),s=+o-pf(o),c=+a-pf(a);return Math.round((s-c)/Joe)}function rae(e,t){const n=r7(e,t),r=sr(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),lp(r)}function i7(e,t){let n,r=t==null?void 0:t.in;return e.forEach(i=>{!r&&typeof i=="object"&&(r=sr.bind(null,i));const o=jt(i,r);(!n||n{!r&&typeof i=="object"&&(r=sr.bind(null,i));const o=jt(i,r);(!n||n>o||isNaN(+o))&&(n=o)}),sr(r,n||NaN)}function yg(e,t){const n=+jt(e)-+jt(t);return n<0?-1:n>0?1:n}function oae(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function aae(e){return!(!oae(e)&&typeof e!="number"||isNaN(+jt(e)))}function oy(e,t,n){const[r,i]=Mu(n==null?void 0:n.in,e,t),o=r.getFullYear()-i.getFullYear(),a=r.getMonth()-i.getMonth();return o*12+a}function sae(e,t,n){const[r,i]=Mu(n==null?void 0:n.in,e,t),o=Pu(r,n),a=Pu(i,n),s=+o-pf(o),c=+a-pf(a);return Math.round((s-c)/TT)}function o7(e,t,n){const[r,i]=Mu(n==null?void 0:n.in,e,t),o=dN(r,i),a=Math.abs(V0(r,i));r.setDate(r.getDate()-o*a);const s=+(dN(r,i)===-o),c=o*(a-s);return c===0?0:c}function dN(e,t){const n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function a7(e){return t=>{const r=(e?Math[e]:Math.trunc)(t);return r===0?0:r}}function lae(e,t,n){const[r,i]=Mu(n==null?void 0:n.in,e,t),o=(+r-+i)/jT;return a7(n==null?void 0:n.roundingMethod)(o)}function uae(e,t){return+jt(e)-+jt(t)}function mf(e,t){const n=jt(e,t==null?void 0:t.in);return n.setHours(23,59,59,999),n}function cae(e,t){const n=jt(e,t==null?void 0:t.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function fae(e,t){const n=jt(e,t==null?void 0:t.in);return+mf(n,t)==+cae(n,t)}function dae(e,t,n){const[r,i,o]=Mu(n==null?void 0:n.in,e,e,t),a=yg(i,o),s=Math.abs(oy(i,o));if(s<1)return 0;i.getMonth()===1&&i.getDate()>27&&i.setDate(30),i.setMonth(i.getMonth()-a*s);let c=yg(i,o)===-a;fae(r)&&s===1&&yg(r,o)===1&&(c=!1);const u=a*(s-+c);return u===0?0:u}function hae(e,t,n){const r=uae(e,t)/1e3;return a7(n==null?void 0:n.roundingMethod)(r)}function pae(e,t){const n=jt(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function mae(e,t){const n=t==null?void 0:t.weekStartsOn,r=jt(e,t==null?void 0:t.in),i=r.getDay(),o=(i{let r;const i=gae[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function L1(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const bae={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},_ae={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},xae={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},wae={date:L1({formats:bae,defaultWidth:"full"}),time:L1({formats:_ae,defaultWidth:"full"}),dateTime:L1({formats:xae,defaultWidth:"full"})},Oae={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Sae=(e,t,n,r)=>Oae[e];function oh(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):a;i=e.formattingValues[s]||e.formattingValues[a]}else{const a=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[s]||e.values[a]}const o=e.argumentCallback?e.argumentCallback(t):t;return i[o]}}const Pae={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Cae={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Eae={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Tae={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},jae={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Aae={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},kae=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Rae={ordinalNumber:kae,era:oh({values:Pae,defaultWidth:"wide"}),quarter:oh({values:Cae,defaultWidth:"wide",argumentCallback:e=>e-1}),month:oh({values:Eae,defaultWidth:"wide"}),day:oh({values:Tae,defaultWidth:"wide"}),dayPeriod:oh({values:jae,defaultWidth:"wide",formattingValues:Aae,defaultFormattingWidth:"wide"})};function ah(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const a=o[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?Mae(s,p=>p.test(a)):Nae(s,p=>p.test(a));let u;u=e.valueCallback?e.valueCallback(c):c,u=n.valueCallback?n.valueCallback(u):u;const h=t.slice(a.length);return{value:u,rest:h}}}function Nae(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Mae(e,t){for(let n=0;n{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;const s=t.slice(i.length);return{value:a,rest:s}}}const Iae=/^(\d+)(th|st|nd|rd)?/i,Dae=/\d+/i,$ae={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Fae={any:[/^b/i,/^(a|c)/i]},Bae={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Uae={any:[/1/i,/2/i,/3/i,/4/i]},zae={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Vae={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Wae={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},qae={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Hae={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Gae={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Kae={ordinalNumber:Lae({matchPattern:Iae,parsePattern:Dae,valueCallback:e=>parseInt(e,10)}),era:ah({matchPatterns:$ae,defaultMatchWidth:"wide",parsePatterns:Fae,defaultParseWidth:"any"}),quarter:ah({matchPatterns:Bae,defaultMatchWidth:"wide",parsePatterns:Uae,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ah({matchPatterns:zae,defaultMatchWidth:"wide",parsePatterns:Vae,defaultParseWidth:"any"}),day:ah({matchPatterns:Wae,defaultMatchWidth:"wide",parsePatterns:qae,defaultParseWidth:"any"}),dayPeriod:ah({matchPatterns:Hae,defaultMatchWidth:"any",parsePatterns:Gae,defaultParseWidth:"any"})},s7={code:"en-US",formatDistance:yae,formatLong:wae,formatRelative:Sae,localize:Rae,match:Kae,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Yae(e,t){const n=jt(e,t==null?void 0:t.in);return V0(n,pae(n))+1}function Zae(e,t){const n=jt(e,t==null?void 0:t.in),r=+lp(n)-+rae(n);return Math.round(r/TT)+1}function l7(e,t){var h,p,v,b;const n=jt(e,t==null?void 0:t.in),r=n.getFullYear(),i=im(),o=(t==null?void 0:t.firstWeekContainsDate)??((p=(h=t==null?void 0:t.locale)==null?void 0:h.options)==null?void 0:p.firstWeekContainsDate)??i.firstWeekContainsDate??((b=(v=i.locale)==null?void 0:v.options)==null?void 0:b.firstWeekContainsDate)??1,a=sr((t==null?void 0:t.in)||e,0);a.setFullYear(r+1,0,o),a.setHours(0,0,0,0);const s=Pu(a,t),c=sr((t==null?void 0:t.in)||e,0);c.setFullYear(r,0,o),c.setHours(0,0,0,0);const u=Pu(c,t);return+n>=+s?r+1:+n>=+u?r:r-1}function Xae(e,t){var s,c,u,h;const n=im(),r=(t==null?void 0:t.firstWeekContainsDate)??((c=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:c.firstWeekContainsDate)??n.firstWeekContainsDate??((h=(u=n.locale)==null?void 0:u.options)==null?void 0:h.firstWeekContainsDate)??1,i=l7(e,t),o=sr((t==null?void 0:t.in)||e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),Pu(o,t)}function Qae(e,t){const n=jt(e,t==null?void 0:t.in),r=+Pu(n,t)-+Xae(n,t);return Math.round(r/TT)+1}function Tt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Fs={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Tt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Tt(n+1,2)},d(e,t){return Tt(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Tt(e.getHours()%12||12,t.length)},H(e,t){return Tt(e.getHours(),t.length)},m(e,t){return Tt(e.getMinutes(),t.length)},s(e,t){return Tt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return Tt(i,t.length)}},Rc={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},hN={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return Fs.y(e,t)},Y:function(e,t,n,r){const i=l7(e,r),o=i>0?i:1-i;if(t==="YY"){const a=o%100;return Tt(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):Tt(o,t.length)},R:function(e,t){const n=r7(e);return Tt(n,t.length)},u:function(e,t){const n=e.getFullYear();return Tt(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Tt(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Tt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Fs.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Tt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=Qae(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Tt(i,t.length)},I:function(e,t,n){const r=Zae(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Tt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Fs.d(e,t)},D:function(e,t,n){const r=Yae(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Tt(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Tt(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Tt(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return Tt(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=Rc.noon:r===0?i=Rc.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=Rc.evening:r>=12?i=Rc.afternoon:r>=4?i=Rc.morning:i=Rc.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Fs.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Fs.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Tt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Tt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Fs.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Fs.s(e,t)},S:function(e,t){return Fs.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return mN(r);case"XXXX":case"XX":return tu(r);case"XXXXX":case"XXX":default:return tu(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return mN(r);case"xxxx":case"xx":return tu(r);case"xxxxx":case"xxx":default:return tu(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+pN(r,":");case"OOOO":default:return"GMT"+tu(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+pN(r,":");case"zzzz":default:return"GMT"+tu(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return Tt(r,t.length)},T:function(e,t,n){return Tt(+e,t.length)}};function pN(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return o===0?n+String(i):n+String(i)+t+Tt(o,2)}function mN(e,t){return e%60===0?(e>0?"-":"+")+Tt(Math.abs(e)/60,2):tu(e,t)}function tu(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Tt(Math.trunc(r/60),2),o=Tt(r%60,2);return n+i+t+o}const vN=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},u7=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Jae=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return vN(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",vN(r,t)).replace("{{time}}",u7(i,t))},ese={p:u7,P:Jae},tse=/^D+$/,nse=/^Y+$/,rse=["D","DD","YY","YYYY"];function ise(e){return tse.test(e)}function ose(e){return nse.test(e)}function ase(e,t,n){const r=sse(e,t,n);if(console.warn(r),rse.includes(e))throw new RangeError(r)}function sse(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const lse=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,use=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,cse=/^'([^]*?)'?$/,fse=/''/g,dse=/[a-zA-Z]/;function ay(e,t,n){var h,p,v,b;const r=im(),i=r.locale??s7,o=r.firstWeekContainsDate??((p=(h=r.locale)==null?void 0:h.options)==null?void 0:p.firstWeekContainsDate)??1,a=r.weekStartsOn??((b=(v=r.locale)==null?void 0:v.options)==null?void 0:b.weekStartsOn)??0,s=jt(e,n==null?void 0:n.in);if(!aae(s))throw new RangeError("Invalid time value");let c=t.match(use).map(x=>{const _=x[0];if(_==="p"||_==="P"){const w=ese[_];return w(x,i.formatLong)}return x}).join("").match(lse).map(x=>{if(x==="''")return{isToken:!1,value:"'"};const _=x[0];if(_==="'")return{isToken:!1,value:hse(x)};if(hN[_])return{isToken:!0,value:x};if(_.match(dse))throw new RangeError("Format string contains an unescaped latin alphabet character `"+_+"`");return{isToken:!1,value:x}});i.localize.preprocessor&&(c=i.localize.preprocessor(s,c));const u={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return c.map(x=>{if(!x.isToken)return x.value;const _=x.value;(ose(_)||ise(_))&&ase(_,t,String(e));const w=hN[_[0]];return w(s,_,i.localize,u)}).join("")}function hse(e){const t=e.match(cse);return t?t[1].replace(fse,"'"):e}function pse(e,t,n){const r=im(),i=(n==null?void 0:n.locale)??r.locale??s7,o=2520,a=yg(e,t);if(isNaN(a))throw new RangeError("Invalid time value");const s=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:a}),[c,u]=Mu(n==null?void 0:n.in,...a>0?[t,e]:[e,t]),h=hae(u,c),p=(pf(u)-pf(c))/1e3,v=Math.round((h-p)/60);let b;if(v<2)return n!=null&&n.includeSeconds?h<5?i.formatDistance("lessThanXSeconds",5,s):h<10?i.formatDistance("lessThanXSeconds",10,s):h<20?i.formatDistance("lessThanXSeconds",20,s):h<40?i.formatDistance("halfAMinute",0,s):h<60?i.formatDistance("lessThanXMinutes",1,s):i.formatDistance("xMinutes",1,s):v===0?i.formatDistance("lessThanXMinutes",1,s):i.formatDistance("xMinutes",v,s);if(v<45)return i.formatDistance("xMinutes",v,s);if(v<90)return i.formatDistance("aboutXHours",1,s);if(v+jt(t)}function sy(e,t){return+jt(e)<+jt(t)}function qP(e,t){return+jt(e)==+jt(t)}function yse(e,t,n){const r=+jt(e,n==null?void 0:n.in),[i,o]=[+jt(t.start,n==null?void 0:n.in),+jt(t.end,n==null?void 0:n.in)].sort((a,s)=>a-s);return r>=i&&r<=o}function ly(e,t,n){return AT(e,-t,n)}function al(e,t){const n=()=>sr(t==null?void 0:t.in,NaN),i=wse(e);let o;if(i.date){const u=Ose(i.date,2);o=Sse(u.restDateString,u.year)}if(!o||isNaN(+o))return n();const a=+o;let s=0,c;if(i.time&&(s=Pse(i.time),isNaN(s)))return n();if(i.timezone){if(c=Cse(i.timezone),isNaN(c))return n()}else{const u=new Date(a+s),h=jt(0,t==null?void 0:t.in);return h.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),h.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),h}return jt(a+s+c,t==null?void 0:t.in)}const Vv={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},bse=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,_se=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,xse=/^([+-])(\d{2})(?::?(\d{2}))?$/;function wse(e){const t={},n=e.split(Vv.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Vv.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Vv.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const i=Vv.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function Ose(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:o===null?i:o*100,restDateString:e.slice((r[1]||r[2]).length)}}function Sse(e,t){if(t===null)return new Date(NaN);const n=e.match(bse);if(!n)return new Date(NaN);const r=!!n[4],i=sh(n[1]),o=sh(n[2])-1,a=sh(n[3]),s=sh(n[4]),c=sh(n[5])-1;if(r)return kse(t,s,c)?Ese(t,s,c):new Date(NaN);{const u=new Date(0);return!jse(t,o,a)||!Ase(t,i)?new Date(NaN):(u.setUTCFullYear(t,o,Math.max(i,a)),u)}}function sh(e){return e?parseInt(e):1}function Pse(e){const t=e.match(_se);if(!t)return NaN;const n=I1(t[1]),r=I1(t[2]),i=I1(t[3]);return Rse(n,r,i)?n*jT+r*n7+i*1e3:NaN}function I1(e){return e&&parseFloat(e.replace(",","."))||0}function Cse(e){if(e==="Z")return 0;const t=e.match(xse);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return Nse(r,i)?n*(r*jT+i*n7):NaN}function Ese(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const i=r.getUTCDay()||7,o=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}const Tse=[31,null,31,30,31,30,31,31,30,31,30,31];function c7(e){return e%400===0||e%4===0&&e%100!==0}function jse(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Tse[t]||(c7(e)?29:28))}function Ase(e,t){return t>=1&&t<=(c7(e)?366:365)}function kse(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function Rse(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function Nse(e,t){return t>=0&&t<=59}/*! + * Font Awesome Free 6.7.1 by @fontawesome - https://fontawesome.com + * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) + * Copyright 2024 Fonticons, Inc. + */const Mse={prefix:"fab",iconName:"apple",icon:[384,512,[],"f179","M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"]},Lse={prefix:"fab",iconName:"android",icon:[576,512,[],"f17b","M420.55,301.93a24,24,0,1,1,24-24,24,24,0,0,1-24,24m-265.1,0a24,24,0,1,1,24-24,24,24,0,0,1-24,24m273.7-144.48,47.94-83a10,10,0,1,0-17.27-10h0l-48.54,84.07a301.25,301.25,0,0,0-246.56,0L116.18,64.45a10,10,0,1,0-17.27,10h0l47.94,83C64.53,202.22,8.24,285.55,0,384H576c-8.24-98.45-64.54-181.78-146.85-226.55"]},nu={Enter:"Enter",Escape:"Escape",Tab:"Tab",Backspace:"Backspace",UpArrow:"ArrowUp",UpArrowCompat:"Up",DownArrow:"ArrowDown",DownArrowCompat:"Down",PageDown:"PageDown",PageUp:"PageUp"},kT=Symbol("Create new tag"),f7=Symbol("No options"),zc=()=>{},er=Z.createContext(void 0);function gN(e,t){return e===t?[]:e.filter(n=>!t.includes(n))}function Ise(e){return e.selectionStart===0&&e.selectionEnd===0}function Dse(e){const t=e.value.length;return e.selectionStart===t&&e.selectionEnd===t}function W0(e){return`${e}-label`}function $se(e){return`${e}-combobox`}function Fse(e){return`${e}-input`}function d7(e){return`${e}-listbox`}function h7(e,t){return`${e}-option-${Hse(t)}`}function Bse(e,t){if((e==null?void 0:e.value)===kT&&e.disabled===!1)return{value:t,label:t}}function Use(e){const t=Bse(e.activeOption,e.value)||e.activeOption||Zse(e.value,e.options);return t&&!t.disabled?t:void 0}function zse(e,t,n){const r=t-1;return e>r?n:en===e.value)}const Gse=/[-\\^$*+?.()|[\]{}]/g;function p7(e){return e.replace(Gse,"\\$&")}function m7(e){return new RegExp(p7(e),"i")}function Kse(e){return new RegExp(`^${p7(e)}$`,"i")}function Yse(e,t){if(e){const n=m7(e);return t.filter(r=>n.test(r.label))}else return[].concat(t)}function Zse(e,t){const n=Kse(e);return t.find(r=>n.test(r.label))||null}const Xse={autoComplete:"off",autoCorrect:"off","data-form-type":"other",spellCheck:!1};function Qse({allowBackspace:e,ariaDescribedBy:t,ariaErrorMessage:n,delimiterKeys:r}){const{id:i,comboBoxRef:o,inputRef:a,isDisabled:s,isInvalid:c,managerRef:u}=F.useContext(er),h=F.useMemo(()=>{const x=B=>{const V=B.currentTarget.value;u.current.updateInputValue(V),document.activeElement===a.current&&u.current.listBoxExpand(V)},_=()=>{u.current.listBoxExpand()},w=B=>{var V;((V=o.current)==null?void 0:V.contains(B.relatedTarget))===!1&&u.current.listBoxCollapse()},O=()=>{u.current.listBoxExpand()},P=B=>{const{activeIndex:V,isExpanded:H}=u.current.state;H?(B.preventDefault(),u.current.updateActiveIndex(V+1)):(Dse(B.currentTarget)||B.altKey)&&(B.preventDefault(),u.current.listBoxExpand())},E=B=>{const{activeIndex:V,isExpanded:H}=u.current.state;H?(B.preventDefault(),u.current.updateActiveIndex(V-1)):Ise(B.currentTarget)&&(B.preventDefault(),u.current.listBoxExpand())},T=B=>{const{isExpanded:V,options:H}=u.current.state;V&&(B.preventDefault(),u.current.updateActiveIndex(H.length-1))},A=B=>{u.current.state.isExpanded&&(B.preventDefault(),u.current.updateActiveIndex(0))},j=()=>{u.current.state.isExpanded?u.current.listBoxCollapse():u.current.updateInputValue("")},N=()=>{if(e){const{value:B,selected:V}=u.current.state,H=V[V.length-1];B===""&&H&&u.current.selectTag(H)}},$=B=>{u.current.state.isExpanded&&(B.preventDefault(),u.current.selectTag())};return{onBlur:w,onChange:x,onClick:O,onFocus:_,onKeyDown:B=>{if(B.key===nu.UpArrow)return E(B);if(B.key===nu.DownArrow)return P(B);if(B.key===nu.PageUp)return A(B);if(B.key===nu.PageDown)return T(B);if(B.key===nu.Escape)return j();if(B.key===nu.Backspace)return N();if(r.includes(B.key))return $(B)}}},[e,o,r,a,u]),{activeOption:p,isExpanded:v,value:b}=u.current.state;return{...Xse,"aria-autocomplete":"list","aria-activedescendant":p?h7(i,p):void 0,"aria-controls":d7(i),"aria-describedby":t||void 0,"aria-disabled":s,"aria-errormessage":c&&n||void 0,"aria-invalid":c,"aria-labelledby":W0(i),"aria-expanded":v,id:Fse(i),onBlur:s?zc:h.onBlur,onChange:s?zc:h.onChange,onClick:s?zc:h.onClick,onFocus:s?zc:h.onFocus,onKeyDown:s?zc:h.onKeyDown,ref:a,role:"combobox",type:"text",value:b}}const Jse={position:"absolute",width:0,height:0,visibility:"hidden",overflow:"scroll",whiteSpace:"pre"},ele=["font-family","font-size","font-style","font-weight","letter-spacing","text-transform"];function tle({allowResize:e=!0,text:t}){const n=F.useRef(null),{inputRef:r}=F.useContext(er),[i,o]=F.useState(null);return F.useLayoutEffect(()=>{if(e&&r.current&&n.current&&window.getComputedStyle){const a=window.getComputedStyle(r.current);ele.forEach(s=>{const c=a.getPropertyValue(s);n.current.style.setProperty(s,c)})}},[e,r,n]),F.useLayoutEffect(()=>{var a;if(e){const s=Math.ceil(((a=n.current)==null?void 0:a.scrollWidth)??0)+2;i!==s&&o(s)}},[e,t,i]),{width:i,sizerProps:{ref:n,style:Jse}}}function nle(){const{id:e,inputRef:t,listBoxRef:n,managerRef:r}=F.useContext(er),i=r.current.state.activeIndex===-1,o=F.useCallback(a=>{var s;a.target!==t.current&&((s=t.current)==null||s.focus({preventScroll:!0}))},[t]);return F.useEffect(()=>{var a;i&&((a=n.current)==null||a.scrollTo({top:0}))},[n,i]),{"aria-labelledby":W0(e),id:d7(e),onFocus:o,ref:n,role:"listbox",tabIndex:-1}}function rle({activateFirstOption:e,allowNew:t,collapseOnSelect:n,newOptionPosition:r,newOptionText:i,noOptionsText:o,onAdd:a,onDelete:s,onCollapse:c,onExpand:u,onInput:h,onShouldCollapse:p,onShouldExpand:v,onValidate:b,selected:x,suggestions:_,suggestionsTransform:w}){const O=F.useRef(),[P,E]=F.useState(null),[T,A]=F.useState(!1),[j,N]=F.useState(""),$=F.useMemo(()=>{const re=w(j,_);return j&&(t&&re[r==="first"?"unshift":"push"]({disabled:b?!b(j):!1,label:i,value:kT}),re.length===0&&re.push({disabled:!0,label:o,value:f7})),re},[t,r,i,o,b,_,w,j]),W=P?GP(P,$):-1,B=e?Math.max(W,0):W,V=$[B],H={activeIndex:B,activeOption:V,isExpanded:T,options:$,selected:x,value:j},J={tagsAdded:O.current?gN(x,O.current.state.selected):[],tagsDeleted:O.current?gN(O.current.state.selected,x):[]},Q={listBoxCollapse(re){T&&(!p||p(re??H.value))&&(A(!1),E(null),c==null||c())},listBoxExpand(re){T||(!v||v(re??H.value))&&(A(!0),E($[B]),u==null||u())},updateActiveIndex(re){const ae=zse(re,$.length,e?0:-1);E($[ae])},updateInputValue(re){j!==re&&(N(re),h==null||h(re))},selectTag(re){if(re??(re=Use(H)),re){const ae=GP(re,H.selected);ae>-1?s(ae):a(re),n&&this.listBoxCollapse(),this.updateInputValue("")}}};return O.current={...Q,flags:J,state:H},O}function ile(e){const{id:t,inputRef:n,listBoxRef:r,managerRef:i}=F.useContext(er),o=F.useRef(null),a=i.current.state.options[e],s=e===i.current.state.activeIndex,c=a.disabled??!1,u=GP(a,i.current.state.selected)>-1,h=F.useCallback(()=>{var v;i.current.selectTag(),(v=n.current)==null||v.focus()},[n,i]),p=F.useCallback(()=>{e!==i.current.state.activeIndex&&i.current.updateActiveIndex(e)},[e,i]);return sle(o,r,s),{option:{...a,active:s,disabled:c,index:e,selected:u},optionProps:{"aria-disabled":c,"aria-posinset":e+1,"aria-selected":c?void 0:u,"aria-setsize":i.current.state.options.length,id:h7(t,a),onClick:h,onMouseDown:p,ref:o,role:"option",tabIndex:-1}}}function ole({inputRef:e,managerRef:t}){return F.useRef({input:{blur(){var r;(r=e.current)==null||r.blur()},focus(){var r;(r=e.current)==null||r.focus()},get value(){return t.current.state.value},set value(r){typeof r!="string"&&(r=String(r)),t.current.updateInputValue(r)}},listBox:{collapse(){t.current.listBoxCollapse()},expand(){t.current.listBoxExpand()},get activeOption(){return t.current.state.activeOption},get isExpanded(){return t.current.state.isExpanded}},select(r){t.current.selectTag(r)}}).current}function ale({onBlur:e,onFocus:t}){const[n,r]=F.useState(!1),{id:i,inputRef:o,rootRef:a}=F.useContext(er),s=F.useMemo(()=>({"aria-describedby":W0(i),id:i,onFocus(){r(!0),t==null||t()},onBlur(){var c;(c=a.current)!=null&&c.contains(document.activeElement)||(r(!1),e==null||e())},onClick(){var c;document.activeElement===a.current&&((c=o.current)==null||c.focus())},ref:a,tabIndex:-1}),[o,i,e,t,a]);return{isActive:n,rootProps:s}}function sle(e,t,n){F.useEffect(()=>{var r,i,o,a;if(n){const s=(r=e.current)==null?void 0:r.offsetHeight,c=(i=e.current)==null?void 0:i.offsetTop,u=(o=t.current)==null?void 0:o.offsetHeight,h=(a=t.current)==null?void 0:a.scrollTop;ch+u&&t.current.scrollTo(0,c+s-u)}},[n,t,e])}function lle(e,t){const{isDisabled:n,managerRef:r}=F.useContext(er),i=r.current.state.selected[e],o=F.useCallback(()=>r.current.selectTag(i),[r,i]);return{tag:i,tagProps:{"aria-disabled":n,title:uy(t,i.label),onClick:n?zc:o}}}function ule({label:e}){var t;const{rootRef:n,managerRef:r}=F.useContext(er),i=F.useRef(),o=r.current.flags.tagsDeleted[0],a=(t=i.current)==null?void 0:t.contains(document.activeElement);return F.useLayoutEffect(()=>{var s,c;if(o){const u=(s=i.current)==null?void 0:s.contains(document.activeElement);a&&!u&&((c=n.current)==null||c.focus({preventScroll:!0}))}},[a,i,n,o]),{ref:i,"aria-label":e}}const cle={position:"absolute",width:1,height:1,left:-9999,overflow:"hidden",clip:"rect(0 0 0 0)"};function fle({ariaAddedText:e,ariaDeletedText:t}){const{managerRef:n}=F.useContext(er),r=F.useRef([]);return n.current.flags.tagsAdded.forEach(i=>{r.current.push(uy(e,i.label))}),n.current.flags.tagsDeleted.forEach(i=>{r.current.push(uy(t,i.label))}),Z.createElement("div",{"aria-live":"polite","aria-relevant":"additions",role:"status",style:cle},r.current.join(` +`))}function dle({children:e}){const{classNames:t,comboBoxRef:n,id:r}=F.useContext(er);return Z.createElement("div",{className:t.comboBox,id:$se(r),ref:n},e)}const hle=({classNames:e,text:t})=>Z.createElement("mark",{className:e.highlight},t);function ple({option:e,query:t,render:n=hle}){const{classNames:r}=F.useContext(er);if(e.value===kT||e.value===f7)return Z.createElement(Z.Fragment,null,uy(e.label,t));if(t){const i=Wse(e.label,t);if(i){const o=n({text:i[1],classNames:r});return Z.createElement(Z.Fragment,null,i[0],o,i[2])}}return Z.createElement(Z.Fragment,null,e.label)}const mle=Z.memo(ple),vle=({classNames:e,inputWidth:t,...n})=>Z.createElement("input",{className:e.input,style:{width:t},...n});function gle({allowBackspace:e=!0,allowResize:t=!0,ariaDescribedBy:n,ariaErrorMessage:r,delimiterKeys:i,placeholderText:o,render:a=vle}){const{classNames:s}=F.useContext(er),{value:c,...u}=Qse({allowBackspace:e,ariaDescribedBy:n,ariaErrorMessage:r,delimiterKeys:i}),h=c.lengthZ.createElement("div",{className:t.label,id:n},e);function ble({children:e,render:t=yle}){const{classNames:n,id:r}=F.useContext(er);return t({children:e,classNames:n,id:W0(r)})}const _le=({children:e,classNames:t,...n})=>Z.createElement("div",{className:t.listBox,...n},e);function xle({children:e,render:t=_le}){const{classNames:n,managerRef:r}=F.useContext(er),i=nle();return!r.current.state.isExpanded||Z.Children.count(e)===0?null:t({children:e,classNames:n,...i})}const wle=({children:e,classNames:t,option:n,...r})=>{const i=[t.option];return n.active&&i.push(t.optionIsActive),Z.createElement("div",{className:i.join(" "),...r},e)};function Ole({children:e,index:t,render:n=wle}){const{classNames:r}=F.useContext(er),{option:i,optionProps:o}=ile(t);return n({classNames:r,children:e,option:i,...o})}const Sle=({children:e,classNames:t,isActive:n,isDisabled:r,isInvalid:i,...o})=>{const a=[t.root];return n&&a.push(t.rootIsActive),r&&a.push(t.rootIsDisabled),i&&a.push(t.rootIsInvalid),Z.createElement("div",{className:a.join(" "),...o},e)};function Ple({children:e,onBlur:t,onFocus:n,render:r=Sle}){const{classNames:i,isDisabled:o,isInvalid:a}=F.useContext(er),{isActive:s,rootProps:c}=ale({onBlur:t,onFocus:n});return r({children:e,classNames:i,isActive:s,isDisabled:o,isInvalid:a,...c})}const Cle=({classNames:e,tag:t,...n})=>Z.createElement("button",{type:"button",className:e.tag,...n},Z.createElement("span",{className:e.tagName},t.label));function Ele({render:e=Cle,index:t,title:n}){const{classNames:r}=F.useContext(er),{tag:i,tagProps:o}=lle(t,n);return e({classNames:r,tag:i,...o})}const Tle=({children:e,classNames:t,...n})=>Z.createElement("ul",{className:t.tagList,...n,role:"list"},Z.Children.map(e,r=>{if(Z.isValidElement(r))return Z.createElement("li",{className:t.tagListItem,key:r.key,role:"listitem"},r)}));function jle({children:e,label:t,render:n=Tle}){const{classNames:r}=F.useContext(er),i=ule({label:t});return n({classNames:r,children:e,...i})}const Ale={root:"react-tags",rootIsActive:"is-active",rootIsDisabled:"is-disabled",rootIsInvalid:"is-invalid",label:"react-tags__label",tagList:"react-tags__list",tagListItem:"react-tags__list-item",tag:"react-tags__tag",tagName:"react-tags__tag-name",comboBox:"react-tags__combobox",input:"react-tags__combobox-input",listBox:"react-tags__listbox",option:"react-tags__listbox-option",optionIsActive:"is-active",highlight:"react-tags__listbox-option-highlight"},kle=[nu.Enter];function Rle({activateFirstOption:e=!1,allowBackspace:t=!0,allowNew:n=!1,allowResize:r=!0,ariaAddedText:i="Added tag %value%",ariaDescribedBy:o,ariaErrorMessage:a,ariaDeletedText:s="Removed tag %value%",classNames:c=Ale,collapseOnSelect:u=!1,deleteButtonText:h="Remove %value% from the list",delimiterKeys:p=kle,id:v="react-tags",isDisabled:b=!1,isInvalid:x=!1,labelText:_="Select tags",newOptionPosition:w="last",newOptionText:O="Add %value%",noOptionsText:P="No options found for %value%",onAdd:E,onBlur:T,onCollapse:A,onDelete:j,onExpand:N,onFocus:$,onInput:W,onShouldCollapse:B,onShouldExpand:V,onValidate:H,placeholderText:J="Add a tag",renderHighlight:Q,renderInput:re,renderLabel:ae,renderListBox:se,renderOption:oe,renderRoot:K,renderTag:G,renderTagList:z,selected:ne=[],suggestions:X=[],suggestionsTransform:le=Yse,tagListLabelText:ce="Selected tags"},de){const be=F.useRef(null),M=F.useRef(null),D=F.useRef(null),Y=F.useRef(null),ue=rle({activateFirstOption:e,allowNew:n,collapseOnSelect:u,newOptionPosition:w,newOptionText:O,noOptionsText:P,onAdd:E,onDelete:j,onCollapse:A,onExpand:N,onInput:W,onShouldCollapse:B,onShouldExpand:V,onValidate:H,selected:ne,suggestions:X,suggestionsTransform:le}),ie=ole({inputRef:M,managerRef:ue});return de&&(typeof de=="function"?de(ie):de.current=ie),Z.createElement(er.Provider,{value:{classNames:c,comboBoxRef:be,id:v,inputRef:M,isDisabled:b,isInvalid:x,listBoxRef:D,managerRef:ue,rootRef:Y}},Z.createElement(Ple,{onBlur:T,onFocus:$,render:K},Z.createElement(ble,{render:ae},_),Z.createElement(jle,{render:z,label:ce},ue.current.state.selected.map((he,Se)=>Z.createElement(Ele,{key:HP(he),index:Se,render:G,title:h}))),Z.createElement(dle,null,Z.createElement(gle,{allowBackspace:t,allowResize:r,ariaDescribedBy:o,ariaErrorMessage:a,delimiterKeys:p,placeholderText:J,render:re}),Z.createElement(xle,{render:se},ue.current.state.options.map((he,Se)=>Z.createElement(Ole,{key:HP(he),index:Se,render:oe},Z.createElement(mle,{option:he,query:ue.current.state.value,render:Q}))))),Z.createElement(fle,{ariaAddedText:i,ariaDeletedText:s})))}const Nle=Z.forwardRef(Rle);function D1(e){return e==null?"":`${e}`}function Mle(e={}){const{separator:t,decimals:n}=e;return t?n?r=>r.toFixed(n).replace(".",t):r=>`${r}`.replace(".",t):n?r=>r.toFixed(n):r=>`${r}`}function RT(e={}){const t=typeof e.quote=="string"?e.quote:'"',n=typeof e.escapedQuote=="string"?e.escapedQuote:`${t}${t}`;if(!t||t===n)return i=>i;const r=new RegExp(t,"g");return i=>(i.includes(t)&&(i=i.replace(r,n)),`${t}${i}${t}`)}function Lle(e={stringFormatter:RT()}){return t=>e.stringFormatter(t.toString().slice(7,-1))}function Ile(e={stringFormatter:RT()}){return t=>{if(t===null)return"";let n=JSON.stringify(t);return n===void 0?"":(n[0]==='"'&&(n=n.replace(/^"(.+)"$/,"$1")),e.stringFormatter(n))}}const Dle=RegExp(`[^.[\\]]+|\\[(?:([^"'][^[]*)|(["'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))`,"g");function $le(e){var t,n,r;const i=[];let o;for(;o=Dle.exec(e);)i.push((r=(t=o[3])!==null&&t!==void 0?t:(n=o[1])===null||n===void 0?void 0:n.trim())!==null&&r!==void 0?r:o[0]);return i}function yN(e,t,n){if(t in e){const o=e[t];return o===void 0?n:o}const r=Array.isArray(t)?t:$le(t);let i=e;for(const o of r)if(i=i==null?void 0:i[o],i===void 0)return n;return i}function v7(e,t){try{return Array.isArray(t)?e.push(...t):e.push(t),e}catch{return e.concat(t)}}function KP(e,t){let n=!0;return e.reduce((r,i)=>(i==null&&(i=""),n?(n=!1,`${i}`):`${r}${t}${i}`),"")}var bN;(function(e){e.header="header",e.undefined="undefined",e.boolean="boolean",e.number="number",e.bigint="bigint",e.string="string",e.symbol="symbol",e.function="function",e.object="object"})(bN||(bN={}));class Fle{constructor(t){this.opts=this.preprocessOpts(t)}preprocessOpts(t){const n=Object.assign({},t);n.fields&&(n.fields=this.preprocessFieldsInfo(n.fields,n.defaultValue)),n.transforms=n.transforms||[];const r=n.formatters&&n.formatters.string||RT(),i=Ile({stringFormatter:r}),o={header:r,undefined:D1,boolean:D1,number:Mle(),bigint:D1,string:r,symbol:Lle({stringFormatter:r}),function:i,object:i};return n.formatters=Object.assign(Object.assign({},o),n.formatters),n.delimiter=n.delimiter||",",n.eol=n.eol||` +`,n.header=n.header!==!1,n.includeEmptyRows=n.includeEmptyRows||!1,n.withBOM=n.withBOM||!1,n}preprocessFieldsInfo(t,n){return t.map(r=>{if(typeof r=="string")return{label:r,value:i=>yN(i,r,n)};if(typeof r=="object"){const i="default"in r?r.default:n;if(typeof r.value=="string"){const o=r.value;return{label:r.label||r.value,value:a=>yN(a,o,i)}}if(typeof r.value=="function"){const o=r.label||r.value.name||"",a={label:o,default:i},s=r.value;return{label:o,value(c){const u=s(c,a);return u===void 0?i:u}}}}throw new Error("Invalid field info option. "+JSON.stringify(r))})}getHeader(){return KP(this.opts.fields.map(t=>this.opts.formatters.header(t.label)),this.opts.delimiter)}preprocessRow(t){return this.opts.transforms.reduce((n,r)=>n.map(i=>r(i)).reduce(v7,[]),[t])}processRow(t){if(!t)return;const n=this.opts.fields.map(r=>this.processCell(t,r));if(!(!this.opts.includeEmptyRows&&n.every(r=>r==="")))return KP(n,this.opts.delimiter)}processCell(t,n){return this.processValue(n.value(t))}processValue(t){const n=this.opts.formatters[typeof t];return n(t)}}class g7 extends Fle{constructor(t){super(t)}parse(t){const n=this.preprocessData(t);this.opts.fields=this.opts.fields||this.preprocessFieldsInfo(n.reduce((a,s)=>(Object.keys(s).forEach(c=>{a.includes(c)||a.push(c)}),a),[]),this.opts.defaultValue);const r=this.opts.header?this.getHeader():"",i=this.processData(n);return(this.opts.withBOM?"\uFEFF":"")+r+(r&&i?this.opts.eol:"")+i}preprocessData(t){const n=Array.isArray(t)?t:[t];if(!this.opts.fields){if(t==null||n.length===0)throw new Error('Data should not be empty or the "fields" option should be included');if(typeof n[0]!="object")throw new Error('Data items should be objects or the "fields" option should be included')}return this.opts.transforms.length===0?n:n.map(r=>this.preprocessRow(r)).reduce(v7,[])}processData(t){return KP(t.map(n=>this.processRow(n)).filter(n=>n),this.opts.eol)}}var Zn;(function(e){e[e.BACKSPACE=8]="BACKSPACE",e[e.FORM_FEED=12]="FORM_FEED",e[e.NEWLINE=10]="NEWLINE",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.TAB=9]="TAB",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.NUMBER_SIGN=35]="NUMBER_SIGN",e[e.DOLLAR_SIGN=36]="DOLLAR_SIGN",e[e.PERCENT_SIGN=37]="PERCENT_SIGN",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.LEFT_PARENTHESIS=40]="LEFT_PARENTHESIS",e[e.RIGHT_PARENTHESIS=41]="RIGHT_PARENTHESIS",e[e.ASTERISK=42]="ASTERISK",e[e.PLUS_SIGN=43]="PLUS_SIGN",e[e.COMMA=44]="COMMA",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.FULL_STOP=46]="FULL_STOP",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_ZERO=48]="DIGIT_ZERO",e[e.DIGIT_ONE=49]="DIGIT_ONE",e[e.DIGIT_TWO=50]="DIGIT_TWO",e[e.DIGIT_THREE=51]="DIGIT_THREE",e[e.DIGIT_FOUR=52]="DIGIT_FOUR",e[e.DIGIT_FIVE=53]="DIGIT_FIVE",e[e.DIGIT_SIX=54]="DIGIT_SIX",e[e.DIGIT_SEVEN=55]="DIGIT_SEVEN",e[e.DIGIT_EIGHT=56]="DIGIT_EIGHT",e[e.DIGIT_NINE=57]="DIGIT_NINE",e[e.COLON=58]="COLON",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.COMMERCIAL_AT=64]="COMMERCIAL_AT",e[e.LATIN_CAPITAL_LETTER_A=65]="LATIN_CAPITAL_LETTER_A",e[e.LATIN_CAPITAL_LETTER_B=66]="LATIN_CAPITAL_LETTER_B",e[e.LATIN_CAPITAL_LETTER_C=67]="LATIN_CAPITAL_LETTER_C",e[e.LATIN_CAPITAL_LETTER_D=68]="LATIN_CAPITAL_LETTER_D",e[e.LATIN_CAPITAL_LETTER_E=69]="LATIN_CAPITAL_LETTER_E",e[e.LATIN_CAPITAL_LETTER_F=70]="LATIN_CAPITAL_LETTER_F",e[e.LATIN_CAPITAL_LETTER_G=71]="LATIN_CAPITAL_LETTER_G",e[e.LATIN_CAPITAL_LETTER_H=72]="LATIN_CAPITAL_LETTER_H",e[e.LATIN_CAPITAL_LETTER_I=73]="LATIN_CAPITAL_LETTER_I",e[e.LATIN_CAPITAL_LETTER_J=74]="LATIN_CAPITAL_LETTER_J",e[e.LATIN_CAPITAL_LETTER_K=75]="LATIN_CAPITAL_LETTER_K",e[e.LATIN_CAPITAL_LETTER_L=76]="LATIN_CAPITAL_LETTER_L",e[e.LATIN_CAPITAL_LETTER_M=77]="LATIN_CAPITAL_LETTER_M",e[e.LATIN_CAPITAL_LETTER_N=78]="LATIN_CAPITAL_LETTER_N",e[e.LATIN_CAPITAL_LETTER_O=79]="LATIN_CAPITAL_LETTER_O",e[e.LATIN_CAPITAL_LETTER_P=80]="LATIN_CAPITAL_LETTER_P",e[e.LATIN_CAPITAL_LETTER_Q=81]="LATIN_CAPITAL_LETTER_Q",e[e.LATIN_CAPITAL_LETTER_R=82]="LATIN_CAPITAL_LETTER_R",e[e.LATIN_CAPITAL_LETTER_S=83]="LATIN_CAPITAL_LETTER_S",e[e.LATIN_CAPITAL_LETTER_T=84]="LATIN_CAPITAL_LETTER_T",e[e.LATIN_CAPITAL_LETTER_U=85]="LATIN_CAPITAL_LETTER_U",e[e.LATIN_CAPITAL_LETTER_V=86]="LATIN_CAPITAL_LETTER_V",e[e.LATIN_CAPITAL_LETTER_W=87]="LATIN_CAPITAL_LETTER_W",e[e.LATIN_CAPITAL_LETTER_X=88]="LATIN_CAPITAL_LETTER_X",e[e.LATIN_CAPITAL_LETTER_Y=89]="LATIN_CAPITAL_LETTER_Y",e[e.LATIN_CAPITAL_LETTER_Z=90]="LATIN_CAPITAL_LETTER_Z",e[e.LEFT_SQUARE_BRACKET=91]="LEFT_SQUARE_BRACKET",e[e.REVERSE_SOLIDUS=92]="REVERSE_SOLIDUS",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.CIRCUMFLEX_ACCENT=94]="CIRCUMFLEX_ACCENT",e[e.LOW_LINE=95]="LOW_LINE",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_LETTER_A=97]="LATIN_SMALL_LETTER_A",e[e.LATIN_SMALL_LETTER_B=98]="LATIN_SMALL_LETTER_B",e[e.LATIN_SMALL_LETTER_C=99]="LATIN_SMALL_LETTER_C",e[e.LATIN_SMALL_LETTER_D=100]="LATIN_SMALL_LETTER_D",e[e.LATIN_SMALL_LETTER_E=101]="LATIN_SMALL_LETTER_E",e[e.LATIN_SMALL_LETTER_F=102]="LATIN_SMALL_LETTER_F",e[e.LATIN_SMALL_LETTER_G=103]="LATIN_SMALL_LETTER_G",e[e.LATIN_SMALL_LETTER_H=104]="LATIN_SMALL_LETTER_H",e[e.LATIN_SMALL_LETTER_I=105]="LATIN_SMALL_LETTER_I",e[e.LATIN_SMALL_LETTER_J=106]="LATIN_SMALL_LETTER_J",e[e.LATIN_SMALL_LETTER_K=107]="LATIN_SMALL_LETTER_K",e[e.LATIN_SMALL_LETTER_L=108]="LATIN_SMALL_LETTER_L",e[e.LATIN_SMALL_LETTER_M=109]="LATIN_SMALL_LETTER_M",e[e.LATIN_SMALL_LETTER_N=110]="LATIN_SMALL_LETTER_N",e[e.LATIN_SMALL_LETTER_O=111]="LATIN_SMALL_LETTER_O",e[e.LATIN_SMALL_LETTER_P=112]="LATIN_SMALL_LETTER_P",e[e.LATIN_SMALL_LETTER_Q=113]="LATIN_SMALL_LETTER_Q",e[e.LATIN_SMALL_LETTER_R=114]="LATIN_SMALL_LETTER_R",e[e.LATIN_SMALL_LETTER_S=115]="LATIN_SMALL_LETTER_S",e[e.LATIN_SMALL_LETTER_T=116]="LATIN_SMALL_LETTER_T",e[e.LATIN_SMALL_LETTER_U=117]="LATIN_SMALL_LETTER_U",e[e.LATIN_SMALL_LETTER_V=118]="LATIN_SMALL_LETTER_V",e[e.LATIN_SMALL_LETTER_W=119]="LATIN_SMALL_LETTER_W",e[e.LATIN_SMALL_LETTER_X=120]="LATIN_SMALL_LETTER_X",e[e.LATIN_SMALL_LETTER_Y=121]="LATIN_SMALL_LETTER_Y",e[e.LATIN_SMALL_LETTER_Z=122]="LATIN_SMALL_LETTER_Z",e[e.LEFT_CURLY_BRACKET=123]="LEFT_CURLY_BRACKET",e[e.VERTICAL_LINE=124]="VERTICAL_LINE",e[e.RIGHT_CURLY_BRACKET=125]="RIGHT_CURLY_BRACKET",e[e.TILDE=126]="TILDE"})(Zn||(Zn={}));Zn.QUOTATION_MARK+"",Zn.QUOTATION_MARK,Zn.REVERSE_SOLIDUS+"",Zn.REVERSE_SOLIDUS,Zn.SOLIDUS+"",Zn.SOLIDUS,Zn.LATIN_SMALL_LETTER_B+"",Zn.BACKSPACE,Zn.LATIN_SMALL_LETTER_F+"",Zn.FORM_FEED,Zn.LATIN_SMALL_LETTER_N+"",Zn.NEWLINE,Zn.LATIN_SMALL_LETTER_R+"",Zn.CARRIAGE_RETURN,Zn.LATIN_SMALL_LETTER_T+"",Zn.TAB;var _N;(function(e){e[e.LEFT_BRACE=0]="LEFT_BRACE",e[e.RIGHT_BRACE=1]="RIGHT_BRACE",e[e.LEFT_BRACKET=2]="LEFT_BRACKET",e[e.RIGHT_BRACKET=3]="RIGHT_BRACKET",e[e.COLON=4]="COLON",e[e.COMMA=5]="COMMA",e[e.TRUE=6]="TRUE",e[e.FALSE=7]="FALSE",e[e.NULL=8]="NULL",e[e.STRING=9]="STRING",e[e.NUMBER=10]="NUMBER",e[e.SEPARATOR=11]="SEPARATOR"})(_N||(_N={}));var xN;(function(e){e[e.START=0]="START",e[e.ENDED=1]="ENDED",e[e.ERROR=2]="ERROR",e[e.TRUE1=3]="TRUE1",e[e.TRUE2=4]="TRUE2",e[e.TRUE3=5]="TRUE3",e[e.FALSE1=6]="FALSE1",e[e.FALSE2=7]="FALSE2",e[e.FALSE3=8]="FALSE3",e[e.FALSE4=9]="FALSE4",e[e.NULL1=10]="NULL1",e[e.NULL2=11]="NULL2",e[e.NULL3=12]="NULL3",e[e.STRING_DEFAULT=13]="STRING_DEFAULT",e[e.STRING_AFTER_BACKSLASH=14]="STRING_AFTER_BACKSLASH",e[e.STRING_UNICODE_DIGIT_1=15]="STRING_UNICODE_DIGIT_1",e[e.STRING_UNICODE_DIGIT_2=16]="STRING_UNICODE_DIGIT_2",e[e.STRING_UNICODE_DIGIT_3=17]="STRING_UNICODE_DIGIT_3",e[e.STRING_UNICODE_DIGIT_4=18]="STRING_UNICODE_DIGIT_4",e[e.STRING_INCOMPLETE_CHAR=19]="STRING_INCOMPLETE_CHAR",e[e.NUMBER_AFTER_INITIAL_MINUS=20]="NUMBER_AFTER_INITIAL_MINUS",e[e.NUMBER_AFTER_INITIAL_ZERO=21]="NUMBER_AFTER_INITIAL_ZERO",e[e.NUMBER_AFTER_INITIAL_NON_ZERO=22]="NUMBER_AFTER_INITIAL_NON_ZERO",e[e.NUMBER_AFTER_FULL_STOP=23]="NUMBER_AFTER_FULL_STOP",e[e.NUMBER_AFTER_DECIMAL=24]="NUMBER_AFTER_DECIMAL",e[e.NUMBER_AFTER_E=25]="NUMBER_AFTER_E",e[e.NUMBER_AFTER_E_AND_SIGN=26]="NUMBER_AFTER_E_AND_SIGN",e[e.NUMBER_AFTER_E_AND_DIGIT=27]="NUMBER_AFTER_E_AND_DIGIT",e[e.SEPARATOR=28]="SEPARATOR",e[e.BOM_OR_START=29]="BOM_OR_START",e[e.BOM=30]="BOM"})(xN||(xN={}));var wN;(function(e){e[e.OBJECT=0]="OBJECT",e[e.ARRAY=1]="ARRAY"})(wN||(wN={}));var ON;(function(e){e[e.VALUE=0]="VALUE",e[e.KEY=1]="KEY",e[e.COLON=2]="COLON",e[e.COMMA=3]="COMMA",e[e.ENDED=4]="ENDED",e[e.ERROR=5]="ERROR",e[e.SEPARATOR=6]="SEPARATOR"})(ON||(ON={}));var $1,SN;function Xr(){if(SN)return $1;SN=1;var e=Array.isArray;return $1=e,$1}var F1,PN;function y7(){if(PN)return F1;PN=1;var e=typeof Lv=="object"&&Lv&&Lv.Object===Object&&Lv;return F1=e,F1}var B1,CN;function sa(){if(CN)return B1;CN=1;var e=y7(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return B1=n,B1}var U1,EN;function om(){if(EN)return U1;EN=1;var e=sa(),t=e.Symbol;return U1=t,U1}var z1,TN;function Ble(){if(TN)return z1;TN=1;var e=om(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function o(a){var s=n.call(a,i),c=a[i];try{a[i]=void 0;var u=!0}catch{}var h=r.call(a);return u&&(s?a[i]=c:delete a[i]),h}return z1=o,z1}var V1,jN;function Ule(){if(jN)return V1;jN=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return V1=n,V1}var W1,AN;function es(){if(AN)return W1;AN=1;var e=om(),t=Ble(),n=Ule(),r="[object Null]",i="[object Undefined]",o=e?e.toStringTag:void 0;function a(s){return s==null?s===void 0?i:r:o&&o in Object(s)?t(s):n(s)}return W1=a,W1}var q1,kN;function ts(){if(kN)return q1;kN=1;function e(t){return t!=null&&typeof t=="object"}return q1=e,q1}var H1,RN;function Xf(){if(RN)return H1;RN=1;var e=es(),t=ts(),n="[object Symbol]";function r(i){return typeof i=="symbol"||t(i)&&e(i)==n}return H1=r,H1}var G1,NN;function NT(){if(NN)return G1;NN=1;var e=Xr(),t=Xf(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(o,a){if(e(o))return!1;var s=typeof o;return s=="number"||s=="symbol"||s=="boolean"||o==null||t(o)?!0:r.test(o)||!n.test(o)||a!=null&&o in Object(a)}return G1=i,G1}var K1,MN;function ml(){if(MN)return K1;MN=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return K1=e,K1}var Y1,LN;function MT(){if(LN)return Y1;LN=1;var e=es(),t=ml(),n="[object AsyncFunction]",r="[object Function]",i="[object GeneratorFunction]",o="[object Proxy]";function a(s){if(!t(s))return!1;var c=e(s);return c==r||c==i||c==n||c==o}return Y1=a,Y1}var Z1,IN;function zle(){if(IN)return Z1;IN=1;var e=sa(),t=e["__core-js_shared__"];return Z1=t,Z1}var X1,DN;function Vle(){if(DN)return X1;DN=1;var e=zle(),t=function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function n(r){return!!t&&t in r}return X1=n,X1}var Q1,$N;function b7(){if($N)return Q1;$N=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}return Q1=n,Q1}var J1,FN;function Wle(){if(FN)return J1;FN=1;var e=MT(),t=Vle(),n=ml(),r=b7(),i=/[\\^$.*+?()[\]{}|]/g,o=/^\[object .+?Constructor\]$/,a=Function.prototype,s=Object.prototype,c=a.toString,u=s.hasOwnProperty,h=RegExp("^"+c.call(u).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function p(v){if(!n(v)||t(v))return!1;var b=e(v)?h:o;return b.test(r(v))}return J1=p,J1}var ex,BN;function qle(){if(BN)return ex;BN=1;function e(t,n){return t==null?void 0:t[n]}return ex=e,ex}var tx,UN;function Lu(){if(UN)return tx;UN=1;var e=Wle(),t=qle();function n(r,i){var o=t(r,i);return e(o)?o:void 0}return tx=n,tx}var nx,zN;function q0(){if(zN)return nx;zN=1;var e=Lu(),t=e(Object,"create");return nx=t,nx}var rx,VN;function Hle(){if(VN)return rx;VN=1;var e=q0();function t(){this.__data__=e?e(null):{},this.size=0}return rx=t,rx}var ix,WN;function Gle(){if(WN)return ix;WN=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return ix=e,ix}var ox,qN;function Kle(){if(qN)return ox;qN=1;var e=q0(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function i(o){var a=this.__data__;if(e){var s=a[o];return s===t?void 0:s}return r.call(a,o)?a[o]:void 0}return ox=i,ox}var ax,HN;function Yle(){if(HN)return ax;HN=1;var e=q0(),t=Object.prototype,n=t.hasOwnProperty;function r(i){var o=this.__data__;return e?o[i]!==void 0:n.call(o,i)}return ax=r,ax}var sx,GN;function Zle(){if(GN)return sx;GN=1;var e=q0(),t="__lodash_hash_undefined__";function n(r,i){var o=this.__data__;return this.size+=this.has(r)?0:1,o[r]=e&&i===void 0?t:i,this}return sx=n,sx}var lx,KN;function Xle(){if(KN)return lx;KN=1;var e=Hle(),t=Gle(),n=Kle(),r=Yle(),i=Zle();function o(a){var s=-1,c=a==null?0:a.length;for(this.clear();++s-1}return px=t,px}var mx,tM;function nue(){if(tM)return mx;tM=1;var e=H0();function t(n,r){var i=this.__data__,o=e(i,n);return o<0?(++this.size,i.push([n,r])):i[o][1]=r,this}return mx=t,mx}var vx,nM;function G0(){if(nM)return vx;nM=1;var e=Qle(),t=Jle(),n=eue(),r=tue(),i=nue();function o(a){var s=-1,c=a==null?0:a.length;for(this.clear();++s0?1:-1},uu=function(t){return am(t)&&t.indexOf("%")===t.length-1},Ve=function(t){return Pue(t)&&!Jf(t)},Wn=function(t){return Ve(t)||am(t)},Cue=0,vl=function(t){var n=++Cue;return"".concat(t||"").concat(n)},Cr=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!Ve(t)&&!am(t))return r;var o;if(uu(t)){var a=t.indexOf("%");o=n*parseFloat(t.slice(0,a))/100}else o=+t;return Jf(o)&&(o=r),i&&o>n&&(o=n),o},qs=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},Eue=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Mue(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function ZP(e){"@babel/helpers - typeof";return ZP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ZP(e)}var AM={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},Ia=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},kM=null,zx=null,UT=function e(t){if(t===kM&&Array.isArray(zx))return zx;var n=[];return F.Children.forEach(t,function(r){ft(r)||(xue.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),zx=n,kM=t,n};function Ar(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(i){return Ia(i)}):r=[Ia(t)],UT(e).forEach(function(i){var o=vi(i,"type.displayName")||vi(i,"type.name");r.indexOf(o)!==-1&&n.push(i)}),n}function hi(e,t){var n=Ar(e,t);return n&&n[0]}var RM=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,i=n.height;return!(!Ve(r)||r<=0||!Ve(i)||i<=0)},Lue=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],Iue=function(t){return t&&t.type&&am(t.type)&&Lue.indexOf(t.type)>=0},P7=function(t){return t&&ZP(t)==="object"&&"clipDot"in t},Due=function(t,n,r,i){var o,a=(o=Ux==null?void 0:Ux[i])!==null&&o!==void 0?o:[];return!dt(t)&&(i&&a.includes(n)||Aue.includes(n))||r&&BT.includes(n)},it=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(F.isValidElement(t)&&(i=t.props),!Qf(i))return null;var o={};return Object.keys(i).forEach(function(a){var s;Due((s=i)===null||s===void 0?void 0:s[a],a,n,r)&&(o[a]=i[a])}),o},XP=function e(t,n){if(t===n)return!0;var r=F.Children.count(t);if(r!==F.Children.count(n))return!1;if(r===0)return!0;if(r===1)return NM(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function zue(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function JP(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,o=e.className,a=e.style,s=e.title,c=e.desc,u=Uue(e,Bue),h=i||{width:n,height:r,x:0,y:0},p=Be("recharts-surface",o);return Z.createElement("svg",QP({},it(u,!0,"svg"),{className:p,width:n,height:r,style:a,viewBox:"".concat(h.x," ").concat(h.y," ").concat(h.width," ").concat(h.height)}),Z.createElement("title",null,s),Z.createElement("desc",null,c),t)}var Vue=["children","className"];function eC(){return eC=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function que(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Pt=Z.forwardRef(function(e,t){var n=e.children,r=e.className,i=Wue(e,Vue),o=Be("recharts-layer",r);return Z.createElement("g",eC({className:o},it(i,!0),{ref:t}),n)}),wo=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;oo?0:o+n),r=r>o?o:r,r<0&&(r+=o),o=n>r?0:r-n>>>0,n>>>=0;for(var a=Array(o);++i=o?n:e(n,r,i)}return Wx=t,Wx}var qx,DM;function C7(){if(DM)return qx;DM=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,o="\\ufe0e\\ufe0f",a="\\u200d",s=RegExp("["+a+e+i+o+"]");function c(u){return s.test(u)}return qx=c,qx}var Hx,$M;function Kue(){if($M)return Hx;$M=1;function e(t){return t.split("")}return Hx=e,Hx}var Gx,FM;function Yue(){if(FM)return Gx;FM=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,o="\\ufe0e\\ufe0f",a="["+e+"]",s="["+i+"]",c="\\ud83c[\\udffb-\\udfff]",u="(?:"+s+"|"+c+")",h="[^"+e+"]",p="(?:\\ud83c[\\udde6-\\uddff]){2}",v="[\\ud800-\\udbff][\\udc00-\\udfff]",b="\\u200d",x=u+"?",_="["+o+"]?",w="(?:"+b+"(?:"+[h,p,v].join("|")+")"+_+x+")*",O=_+x+w,P="(?:"+[h+s+"?",s,p,v,a].join("|")+")",E=RegExp(c+"(?="+c+")|"+P+O,"g");function T(A){return A.match(E)||[]}return Gx=T,Gx}var Kx,BM;function Zue(){if(BM)return Kx;BM=1;var e=Kue(),t=C7(),n=Yue();function r(i){return t(i)?n(i):e(i)}return Kx=r,Kx}var Yx,UM;function Xue(){if(UM)return Yx;UM=1;var e=Gue(),t=C7(),n=Zue(),r=x7();function i(o){return function(a){a=r(a);var s=t(a)?n(a):void 0,c=s?s[0]:a.charAt(0),u=s?e(s,1).join(""):a.slice(1);return c[o]()+u}}return Yx=i,Yx}var Zx,zM;function Que(){if(zM)return Zx;zM=1;var e=Xue(),t=e("toUpperCase");return Zx=t,Zx}var Jue=Que();const Z0=Nt(Jue);function Xt(e){return function(){return e}}const E7=Math.cos,dy=Math.sin,To=Math.sqrt,hy=Math.PI,X0=2*hy,tC=Math.PI,nC=2*tC,ru=1e-6,ece=nC-ru;function T7(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return T7;const n=10**t;return function(r){this._+=r[0];for(let i=1,o=r.length;iru)if(!(Math.abs(p*c-u*h)>ru)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let b=r-a,x=i-s,_=c*c+u*u,w=b*b+x*x,O=Math.sqrt(_),P=Math.sqrt(v),E=o*Math.tan((tC-Math.acos((_+v-w)/(2*O*P)))/2),T=E/P,A=E/O;Math.abs(T-1)>ru&&this._append`L${t+T*h},${n+T*p}`,this._append`A${o},${o},0,0,${+(p*b>h*x)},${this._x1=t+A*c},${this._y1=n+A*u}`}}arc(t,n,r,i,o,a){if(t=+t,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),c=r*Math.sin(i),u=t+s,h=n+c,p=1^a,v=a?i-o:o-i;this._x1===null?this._append`M${u},${h}`:(Math.abs(this._x1-u)>ru||Math.abs(this._y1-h)>ru)&&this._append`L${u},${h}`,r&&(v<0&&(v=v%nC+nC),v>ece?this._append`A${r},${r},0,1,${p},${t-s},${n-c}A${r},${r},0,1,${p},${this._x1=u},${this._y1=h}`:v>ru&&this._append`A${r},${r},0,${+(v>=tC)},${p},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function zT(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new nce(t)}function VT(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function j7(e){this._context=e}j7.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Q0(e){return new j7(e)}function A7(e){return e[0]}function k7(e){return e[1]}function R7(e,t){var n=Xt(!0),r=null,i=Q0,o=null,a=zT(s);e=typeof e=="function"?e:e===void 0?A7:Xt(e),t=typeof t=="function"?t:t===void 0?k7:Xt(t);function s(c){var u,h=(c=VT(c)).length,p,v=!1,b;for(r==null&&(o=i(b=a())),u=0;u<=h;++u)!(u=b;--x)s.point(E[x],T[x]);s.lineEnd(),s.areaEnd()}O&&(E[v]=+e(w,v,p),T[v]=+t(w,v,p),s.point(r?+r(w,v,p):E[v],n?+n(w,v,p):T[v]))}if(P)return s=null,P+""||null}function h(){return R7().defined(i).curve(a).context(o)}return u.x=function(p){return arguments.length?(e=typeof p=="function"?p:Xt(+p),r=null,u):e},u.x0=function(p){return arguments.length?(e=typeof p=="function"?p:Xt(+p),u):e},u.x1=function(p){return arguments.length?(r=p==null?null:typeof p=="function"?p:Xt(+p),u):r},u.y=function(p){return arguments.length?(t=typeof p=="function"?p:Xt(+p),n=null,u):t},u.y0=function(p){return arguments.length?(t=typeof p=="function"?p:Xt(+p),u):t},u.y1=function(p){return arguments.length?(n=p==null?null:typeof p=="function"?p:Xt(+p),u):n},u.lineX0=u.lineY0=function(){return h().x(e).y(t)},u.lineY1=function(){return h().x(e).y(n)},u.lineX1=function(){return h().x(r).y(t)},u.defined=function(p){return arguments.length?(i=typeof p=="function"?p:Xt(!!p),u):i},u.curve=function(p){return arguments.length?(a=p,o!=null&&(s=a(o)),u):a},u.context=function(p){return arguments.length?(p==null?o=s=null:s=a(o=p),u):o},u}class N7{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function rce(e){return new N7(e,!0)}function ice(e){return new N7(e,!1)}const WT={draw(e,t){const n=To(t/hy);e.moveTo(n,0),e.arc(0,0,n,0,X0)}},oce={draw(e,t){const n=To(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},M7=To(1/3),ace=M7*2,sce={draw(e,t){const n=To(t/ace),r=n*M7;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},lce={draw(e,t){const n=To(t),r=-n/2;e.rect(r,r,n,n)}},uce=.8908130915292852,L7=dy(hy/10)/dy(7*hy/10),cce=dy(X0/10)*L7,fce=-E7(X0/10)*L7,dce={draw(e,t){const n=To(t*uce),r=cce*n,i=fce*n;e.moveTo(0,-n),e.lineTo(r,i);for(let o=1;o<5;++o){const a=X0*o/5,s=E7(a),c=dy(a);e.lineTo(c*n,-s*n),e.lineTo(s*r-c*i,c*r+s*i)}e.closePath()}},Xx=To(3),hce={draw(e,t){const n=-To(t/(Xx*3));e.moveTo(0,n*2),e.lineTo(-Xx*n,-n),e.lineTo(Xx*n,-n),e.closePath()}},Di=-.5,$i=To(3)/2,rC=1/To(12),pce=(rC/2+1)*3,mce={draw(e,t){const n=To(t/pce),r=n/2,i=n*rC,o=r,a=n*rC+n,s=-o,c=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(s,c),e.lineTo(Di*r-$i*i,$i*r+Di*i),e.lineTo(Di*o-$i*a,$i*o+Di*a),e.lineTo(Di*s-$i*c,$i*s+Di*c),e.lineTo(Di*r+$i*i,Di*i-$i*r),e.lineTo(Di*o+$i*a,Di*a-$i*o),e.lineTo(Di*s+$i*c,Di*c-$i*s),e.closePath()}};function vce(e,t){let n=null,r=zT(i);e=typeof e=="function"?e:Xt(e||WT),t=typeof t=="function"?t:Xt(t===void 0?64:+t);function i(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return i.type=function(o){return arguments.length?(e=typeof o=="function"?o:Xt(o),i):e},i.size=function(o){return arguments.length?(t=typeof o=="function"?o:Xt(+o),i):t},i.context=function(o){return arguments.length?(n=o??null,i):n},i}function py(){}function my(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function I7(e){this._context=e}I7.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:my(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:my(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function gce(e){return new I7(e)}function D7(e){this._context=e}D7.prototype={areaStart:py,areaEnd:py,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:my(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function yce(e){return new D7(e)}function $7(e){this._context=e}$7.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:my(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function bce(e){return new $7(e)}function F7(e){this._context=e}F7.prototype={areaStart:py,areaEnd:py,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function _ce(e){return new F7(e)}function VM(e){return e<0?-1:1}function WM(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(VM(o)+VM(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function qM(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Qx(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function vy(e){this._context=e}vy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Qx(this,this._t0,qM(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Qx(this,qM(this,n=WM(this,e,t)),n);break;default:Qx(this,this._t0,n=WM(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function B7(e){this._context=new U7(e)}(B7.prototype=Object.create(vy.prototype)).point=function(e,t){vy.prototype.point.call(this,t,e)};function U7(e){this._context=e}U7.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};function xce(e){return new vy(e)}function wce(e){return new B7(e)}function z7(e){this._context=e}z7.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=HM(e),i=HM(t),o=0,a=1;a=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function Sce(e){return new J0(e,.5)}function Pce(e){return new J0(e,0)}function Cce(e){return new J0(e,1)}function vf(e,t){if((a=e.length)>1)for(var n=1,r,i,o=e[t[0]],a,s=o.length;n=0;)n[t]=t;return n}function Ece(e,t){return e[t]}function Tce(e){const t=[];return t.key=e,t}function jce(){var e=Xt([]),t=iC,n=vf,r=Ece;function i(o){var a=Array.from(e.apply(this,arguments),Tce),s,c=a.length,u=-1,h;for(const p of o)for(s=0,++u;s0){for(var n,r,i=0,o=e[0].length,a;i0){for(var n=0,r=e[t[0]],i,o=r.length;n0)||!((o=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,o,a;r=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $ce(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var V7={symbolCircle:WT,symbolCross:oce,symbolDiamond:sce,symbolSquare:lce,symbolStar:dce,symbolTriangle:hce,symbolWye:mce},Fce=Math.PI/180,Bce=function(t){var n="symbol".concat(Z0(t));return V7[n]||WT},Uce=function(t,n,r){if(n==="area")return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*Fce;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},zce=function(t,n){V7["symbol".concat(Z0(t))]=n},eb=function(t){var n=t.type,r=n===void 0?"circle":n,i=t.size,o=i===void 0?64:i,a=t.sizeType,s=a===void 0?"area":a,c=Dce(t,Nce),u=KM(KM({},c),{},{type:r,size:o,sizeType:s}),h=function(){var w=Bce(r),O=vce().type(w).size(Uce(o,s,r));return O()},p=u.className,v=u.cx,b=u.cy,x=it(u,!0);return v===+v&&b===+b&&o===+o?Z.createElement("path",oC({},x,{className:Be("recharts-symbols",p),transform:"translate(".concat(v,", ").concat(b,")"),d:h()})):null};eb.registerSymbol=zce;function gf(e){"@babel/helpers - typeof";return gf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gf(e)}function aC(){return aC=Object.assign?Object.assign.bind():function(e){for(var t=1;t`);var P=b.inactive?u:b.color;return Z.createElement("li",aC({className:w,style:p,key:"legend-item-".concat(x)},sl(r.props,b,x)),Z.createElement(JP,{width:a,height:a,viewBox:h,style:v},r.renderIcon(b)),Z.createElement("span",{className:"recharts-legend-item-text",style:{color:P}},_?_(O,b,x):O))})}},{key:"render",value:function(){var r=this.props,i=r.payload,o=r.layout,a=r.align;if(!i||!i.length)return null;var s={padding:0,margin:0,textAlign:o==="horizontal"?a:"left"};return Z.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])}(F.PureComponent);cp(qT,"displayName","Legend");cp(qT,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Jx,ZM;function Qce(){if(ZM)return Jx;ZM=1;var e=G0();function t(){this.__data__=new e,this.size=0}return Jx=t,Jx}var ew,XM;function Jce(){if(XM)return ew;XM=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return ew=e,ew}var tw,QM;function efe(){if(QM)return tw;QM=1;function e(t){return this.__data__.get(t)}return tw=e,tw}var nw,JM;function tfe(){if(JM)return nw;JM=1;function e(t){return this.__data__.has(t)}return nw=e,nw}var rw,eL;function nfe(){if(eL)return rw;eL=1;var e=G0(),t=IT(),n=DT(),r=200;function i(o,a){var s=this.__data__;if(s instanceof e){var c=s.__data__;if(!t||c.lengthb))return!1;var _=p.get(a),w=p.get(s);if(_&&w)return _==s&&w==a;var O=-1,P=!0,E=c&i?new e:void 0;for(p.set(a,s),p.set(s,a);++O-1&&r%1==0&&r-1&&n%1==0&&n<=e}return Pw=t,Pw}var Cw,SL;function mfe(){if(SL)return Cw;SL=1;var e=es(),t=YT(),n=ts(),r="[object Arguments]",i="[object Array]",o="[object Boolean]",a="[object Date]",s="[object Error]",c="[object Function]",u="[object Map]",h="[object Number]",p="[object Object]",v="[object RegExp]",b="[object Set]",x="[object String]",_="[object WeakMap]",w="[object ArrayBuffer]",O="[object DataView]",P="[object Float32Array]",E="[object Float64Array]",T="[object Int8Array]",A="[object Int16Array]",j="[object Int32Array]",N="[object Uint8Array]",$="[object Uint8ClampedArray]",W="[object Uint16Array]",B="[object Uint32Array]",V={};V[P]=V[E]=V[T]=V[A]=V[j]=V[N]=V[$]=V[W]=V[B]=!0,V[r]=V[i]=V[w]=V[o]=V[O]=V[a]=V[s]=V[c]=V[u]=V[h]=V[p]=V[v]=V[b]=V[x]=V[_]=!1;function H(J){return n(J)&&t(J.length)&&!!V[e(J)]}return Cw=H,Cw}var Ew,PL;function J7(){if(PL)return Ew;PL=1;function e(t){return function(n){return t(n)}}return Ew=e,Ew}var Sh={exports:{}};Sh.exports;var CL;function vfe(){return CL||(CL=1,function(e,t){var n=y7(),r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o&&n.process,s=function(){try{var c=i&&i.require&&i.require("util").types;return c||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s}(Sh,Sh.exports)),Sh.exports}var Tw,EL;function eB(){if(EL)return Tw;EL=1;var e=mfe(),t=J7(),n=vfe(),r=n&&n.isTypedArray,i=r?t(r):e;return Tw=i,Tw}var jw,TL;function gfe(){if(TL)return jw;TL=1;var e=dfe(),t=GT(),n=Xr(),r=Q7(),i=KT(),o=eB(),a=Object.prototype,s=a.hasOwnProperty;function c(u,h){var p=n(u),v=!p&&t(u),b=!p&&!v&&r(u),x=!p&&!v&&!b&&o(u),_=p||v||b||x,w=_?e(u.length,String):[],O=w.length;for(var P in u)(h||s.call(u,P))&&!(_&&(P=="length"||b&&(P=="offset"||P=="parent")||x&&(P=="buffer"||P=="byteLength"||P=="byteOffset")||i(P,O)))&&w.push(P);return w}return jw=c,jw}var Aw,jL;function yfe(){if(jL)return Aw;jL=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,i=typeof r=="function"&&r.prototype||e;return n===i}return Aw=t,Aw}var kw,AL;function tB(){if(AL)return kw;AL=1;function e(t,n){return function(r){return t(n(r))}}return kw=e,kw}var Rw,kL;function bfe(){if(kL)return Rw;kL=1;var e=tB(),t=e(Object.keys,Object);return Rw=t,Rw}var Nw,RL;function _fe(){if(RL)return Nw;RL=1;var e=yfe(),t=bfe(),n=Object.prototype,r=n.hasOwnProperty;function i(o){if(!e(o))return t(o);var a=[];for(var s in Object(o))r.call(o,s)&&s!="constructor"&&a.push(s);return a}return Nw=i,Nw}var Mw,NL;function sm(){if(NL)return Mw;NL=1;var e=MT(),t=YT();function n(r){return r!=null&&t(r.length)&&!e(r)}return Mw=n,Mw}var Lw,ML;function tb(){if(ML)return Lw;ML=1;var e=gfe(),t=_fe(),n=sm();function r(i){return n(i)?e(i):t(i)}return Lw=r,Lw}var Iw,LL;function xfe(){if(LL)return Iw;LL=1;var e=lfe(),t=ffe(),n=tb();function r(i){return e(i,n,t)}return Iw=r,Iw}var Dw,IL;function wfe(){if(IL)return Dw;IL=1;var e=xfe(),t=1,n=Object.prototype,r=n.hasOwnProperty;function i(o,a,s,c,u,h){var p=s&t,v=e(o),b=v.length,x=e(a),_=x.length;if(b!=_&&!p)return!1;for(var w=b;w--;){var O=v[w];if(!(p?O in a:r.call(a,O)))return!1}var P=h.get(o),E=h.get(a);if(P&&E)return P==a&&E==o;var T=!0;h.set(o,a),h.set(a,o);for(var A=p;++w-1}return u2=t,u2}var c2,u4;function zfe(){if(u4)return c2;u4=1;function e(t,n,r){for(var i=-1,o=t==null?0:t.length;++i=a){var O=u?null:i(c);if(O)return o(O);x=!1,v=r,w=new e}else w=u?[]:_;e:for(;++p=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function rde(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function ide(e){return e.value}function ode(e,t){if(Z.isValidElement(e))return Z.cloneElement(e,t);if(typeof e=="function")return Z.createElement(e,t);t.ref;var n=nde(t,Kfe);return Z.createElement(qT,n)}var g4=1,tf=function(e){function t(){var n;Yfe(this,t);for(var r=arguments.length,i=new Array(r),o=0;og4||Math.abs(i.height-this.lastBoundingBox.height)>g4)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,r&&r(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Aa({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var i=this.props,o=i.layout,a=i.align,s=i.verticalAlign,c=i.margin,u=i.chartWidth,h=i.chartHeight,p,v;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(a==="center"&&o==="vertical"){var b=this.getBBoxSnapshot();p={left:((u||0)-b.width)/2}}else p=a==="right"?{right:c&&c.right||0}:{left:c&&c.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(s==="middle"){var x=this.getBBoxSnapshot();v={top:((h||0)-x.height)/2}}else v=s==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return Aa(Aa({},p),v)}},{key:"render",value:function(){var r=this,i=this.props,o=i.content,a=i.width,s=i.height,c=i.wrapperStyle,u=i.payloadUniqBy,h=i.payload,p=Aa(Aa({position:"absolute",width:a||"auto",height:s||"auto"},this.getDefaultPosition(c)),c);return Z.createElement("div",{className:"recharts-legend-wrapper",style:p,ref:function(b){r.wrapperNode=b}},ode(o,Aa(Aa({},this.props),{},{payload:aB(h,u,ide)})))}}],[{key:"getWithHeight",value:function(r,i){var o=Aa(Aa({},this.defaultProps),r.props),a=o.layout;return a==="vertical"&&Ve(r.props.height)?{height:r.props.height}:a==="horizontal"?{width:r.props.width||i}:null}}])}(F.PureComponent);nb(tf,"displayName","Legend");nb(tf,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var m2,y4;function ade(){if(y4)return m2;y4=1;var e=om(),t=GT(),n=Xr(),r=e?e.isConcatSpreadable:void 0;function i(o){return n(o)||t(o)||!!(r&&o&&o[r])}return m2=i,m2}var v2,b4;function uB(){if(b4)return v2;b4=1;var e=X7(),t=ade();function n(r,i,o,a,s){var c=-1,u=r.length;for(o||(o=t),s||(s=[]);++c0&&o(h)?i>1?n(h,i-1,o,a,s):e(s,h):a||(s[s.length]=h)}return s}return v2=n,v2}var g2,_4;function sde(){if(_4)return g2;_4=1;function e(t){return function(n,r,i){for(var o=-1,a=Object(n),s=i(n),c=s.length;c--;){var u=s[t?c:++o];if(r(a[u],u,a)===!1)break}return n}}return g2=e,g2}var y2,x4;function lde(){if(x4)return y2;x4=1;var e=sde(),t=e();return y2=t,y2}var b2,w4;function cB(){if(w4)return b2;w4=1;var e=lde(),t=tb();function n(r,i){return r&&e(r,i,t)}return b2=n,b2}var _2,O4;function ude(){if(O4)return _2;O4=1;var e=sm();function t(n,r){return function(i,o){if(i==null)return i;if(!e(i))return n(i,o);for(var a=i.length,s=r?a:-1,c=Object(i);(r?s--:++sr||s&&c&&h&&!u&&!p||o&&c&&h||!i&&h||!a)return 1;if(!o&&!s&&!p&&n=u)return h;var p=i[o];return h*(p=="desc"?-1:1)}}return n.index-r.index}return P2=t,P2}var C2,j4;function hde(){if(j4)return C2;j4=1;var e=$T(),t=FT(),n=la(),r=fB(),i=cde(),o=J7(),a=dde(),s=ed(),c=Xr();function u(h,p,v){p.length?p=e(p,function(_){return c(_)?function(w){return t(w,_.length===1?_[0]:_)}:_}):p=[s];var b=-1;p=e(p,o(n));var x=r(h,function(_,w,O){var P=e(p,function(E){return E(_)});return{criteria:P,index:++b,value:_}});return i(x,function(_,w){return a(_,w,v)})}return C2=u,C2}var E2,A4;function pde(){if(A4)return E2;A4=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return E2=e,E2}var T2,k4;function mde(){if(k4)return T2;k4=1;var e=pde(),t=Math.max;function n(r,i,o){return i=t(i===void 0?r.length-1:i,0),function(){for(var a=arguments,s=-1,c=t(a.length-i,0),u=Array(c);++s0){if(++o>=e)return arguments[0]}else o=0;return i.apply(void 0,arguments)}}return R2=r,R2}var N2,I4;function bde(){if(I4)return N2;I4=1;var e=gde(),t=yde(),n=t(e);return N2=n,N2}var M2,D4;function _de(){if(D4)return M2;D4=1;var e=ed(),t=mde(),n=bde();function r(i,o){return n(t(i,o,e),i+"")}return M2=r,M2}var L2,$4;function rb(){if($4)return L2;$4=1;var e=LT(),t=sm(),n=KT(),r=ml();function i(o,a,s){if(!r(s))return!1;var c=typeof a;return(c=="number"?t(s)&&n(a,s.length):c=="string"&&a in s)?e(s[a],o):!1}return L2=i,L2}var I2,F4;function xde(){if(F4)return I2;F4=1;var e=uB(),t=hde(),n=_de(),r=rb(),i=n(function(o,a){if(o==null)return[];var s=a.length;return s>1&&r(o,a[0],a[1])?a=[]:s>2&&r(a[0],a[1],a[2])&&(a=[a[0]]),t(o,e(a,1),[])});return I2=i,I2}var wde=xde();const QT=Nt(wde);function fp(e){"@babel/helpers - typeof";return fp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fp(e)}function uC(){return uC=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=t.x),"".concat(lh,"-left"),Ve(n)&&t&&Ve(t.x)&&n=t.y),"".concat(lh,"-top"),Ve(r)&&t&&Ve(t.y)&&r_?Math.max(h,c[r]):Math.max(p,c[r])}function Dde(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function $de(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,i=e.position,o=e.reverseDirection,a=e.tooltipBox,s=e.useTranslate3d,c=e.viewBox,u,h,p;return a.height>0&&a.width>0&&n?(h=z4({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:a.width,viewBox:c,viewBoxDimension:c.width}),p=z4({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:a.height,viewBox:c,viewBoxDimension:c.height}),u=Dde({translateX:h,translateY:p,useTranslate3d:s})):u=Lde,{cssProperties:u,cssClasses:Ide({translateX:h,translateY:p,coordinate:n})}}function bf(e){"@babel/helpers - typeof";return bf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bf(e)}function V4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function W4(e){for(var t=1;tq4||Math.abs(r.height-this.state.lastBoundingBox.height)>q4)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var r,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,i=this.props,o=i.active,a=i.allowEscapeViewBox,s=i.animationDuration,c=i.animationEasing,u=i.children,h=i.coordinate,p=i.hasPayload,v=i.isAnimationActive,b=i.offset,x=i.position,_=i.reverseDirection,w=i.useTranslate3d,O=i.viewBox,P=i.wrapperStyle,E=$de({allowEscapeViewBox:a,coordinate:h,offsetTopLeft:b,position:x,reverseDirection:_,tooltipBox:this.state.lastBoundingBox,useTranslate3d:w,viewBox:O}),T=E.cssClasses,A=E.cssProperties,j=W4(W4({transition:v&&o?"transform ".concat(s,"ms ").concat(c):void 0},A),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&p?"visible":"hidden",position:"absolute",top:0,left:0},P);return Z.createElement("div",{tabIndex:-1,className:T,style:j,ref:function($){r.wrapperNode=$}},u)}}])}(F.PureComponent),Kde=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Ki={isSsr:Kde(),get:function(t){return Ki[t]},set:function(t,n){if(typeof t=="string")Ki[t]=n;else{var r=Object.keys(t);r&&r.length&&r.forEach(function(i){Ki[i]=t[i]})}}};function _f(e){"@babel/helpers - typeof";return _f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_f(e)}function H4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function G4(e){for(var t=1;t0;return Z.createElement(Gde,{allowEscapeViewBox:a,animationDuration:s,animationEasing:c,isAnimationActive:v,active:o,coordinate:h,hasPayload:j,offset:b,position:w,reverseDirection:O,useTranslate3d:P,viewBox:E,wrapperStyle:T},ihe(u,G4(G4({},this.props),{},{payload:A})))}}])}(F.PureComponent);JT(zi,"displayName","Tooltip");JT(zi,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Ki.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var $2,K4;function ohe(){if(K4)return $2;K4=1;var e=sa(),t=function(){return e.Date.now()};return $2=t,$2}var F2,Y4;function ahe(){if(Y4)return F2;Y4=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return F2=t,F2}var B2,Z4;function she(){if(Z4)return B2;Z4=1;var e=ahe(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return B2=n,B2}var U2,X4;function gB(){if(X4)return U2;X4=1;var e=she(),t=ml(),n=Xf(),r=NaN,i=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,a=/^0o[0-7]+$/i,s=parseInt;function c(u){if(typeof u=="number")return u;if(n(u))return r;if(t(u)){var h=typeof u.valueOf=="function"?u.valueOf():u;u=t(h)?h+"":h}if(typeof u!="string")return u===0?u:+u;u=e(u);var p=o.test(u);return p||a.test(u)?s(u.slice(2),p?2:8):i.test(u)?r:+u}return U2=c,U2}var z2,Q4;function lhe(){if(Q4)return z2;Q4=1;var e=ml(),t=ohe(),n=gB(),r="Expected a function",i=Math.max,o=Math.min;function a(s,c,u){var h,p,v,b,x,_,w=0,O=!1,P=!1,E=!0;if(typeof s!="function")throw new TypeError(r);c=n(c)||0,e(u)&&(O=!!u.leading,P="maxWait"in u,v=P?i(n(u.maxWait)||0,c):v,E="trailing"in u?!!u.trailing:E);function T(J){var Q=h,re=p;return h=p=void 0,w=J,b=s.apply(re,Q),b}function A(J){return w=J,x=setTimeout($,c),O?T(J):b}function j(J){var Q=J-_,re=J-w,ae=c-Q;return P?o(ae,v-re):ae}function N(J){var Q=J-_,re=J-w;return _===void 0||Q>=c||Q<0||P&&re>=v}function $(){var J=t();if(N(J))return W(J);x=setTimeout($,j(J))}function W(J){return x=void 0,E&&h?T(J):(h=p=void 0,b)}function B(){x!==void 0&&clearTimeout(x),w=0,h=_=p=x=void 0}function V(){return x===void 0?b:W(t())}function H(){var J=t(),Q=N(J);if(h=arguments,p=this,_=J,Q){if(x===void 0)return A(_);if(P)return clearTimeout(x),x=setTimeout($,c),T(_)}return x===void 0&&(x=setTimeout($,c)),b}return H.cancel=B,H.flush=V,H}return z2=a,z2}var V2,J4;function uhe(){if(J4)return V2;J4=1;var e=lhe(),t=ml(),n="Expected a function";function r(i,o,a){var s=!0,c=!0;if(typeof i!="function")throw new TypeError(n);return t(a)&&(s="leading"in a?!!a.leading:s,c="trailing"in a?!!a.trailing:c),e(i,o,{leading:s,maxWait:o,trailing:c})}return V2=r,V2}var che=uhe();const yB=Nt(che);function hp(e){"@babel/helpers - typeof";return hp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hp(e)}function eI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Hv(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&(J=yB(J,_,{trailing:!0,leading:!1}));var Q=new ResizeObserver(J),re=A.current.getBoundingClientRect(),ae=re.width,se=re.height;return V(ae,se),Q.observe(A.current),function(){Q.disconnect()}},[V,_]);var H=F.useMemo(function(){var J=W.containerWidth,Q=W.containerHeight;if(J<0||Q<0)return null;wo(uu(a)||uu(c),`The width(%s) and height(%s) are both fixed numbers, + maybe you don't need to use a ResponsiveContainer.`,a,c),wo(!n||n>0,"The aspect(%s) must be greater than zero.",n);var re=uu(a)?J:a,ae=uu(c)?Q:c;n&&n>0&&(re?ae=re/n:ae&&(re=ae*n),v&&ae>v&&(ae=v)),wo(re>0||ae>0,`The width(%s) and height(%s) of chart should be greater than 0, + please check the style of container, or the props width(%s) and height(%s), + or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the + height and width.`,re,ae,a,c,h,p,n);var se=!Array.isArray(b)&&Ia(b.type).endsWith("Chart");return Z.Children.map(b,function(oe){return Z.isValidElement(oe)?F.cloneElement(oe,Hv({width:re,height:ae},se?{style:Hv({height:"100%",width:"100%",maxHeight:ae,maxWidth:re},oe.props.style)}:{})):oe})},[n,b,c,v,p,h,W,a]);return Z.createElement("div",{id:w?"".concat(w):void 0,className:Be("recharts-responsive-container",O),style:Hv(Hv({},T),{},{width:a,height:c,minWidth:h,minHeight:p,maxHeight:v}),ref:A},H)}),Js=function(t){return null};Js.displayName="Cell";function pp(e){"@babel/helpers - typeof";return pp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pp(e)}function nI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function hC(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Ki.isSsr)return{width:0,height:0};var r=She(n),i=JSON.stringify({text:t,copyStyle:r});if(Nc.widthCache[i])return Nc.widthCache[i];try{var o=document.getElementById(rI);o||(o=document.createElement("span"),o.setAttribute("id",rI),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var a=hC(hC({},Ohe),r);Object.assign(o.style,a),o.textContent="".concat(t);var s=o.getBoundingClientRect(),c={width:s.width,height:s.height};return Nc.widthCache[i]=c,++Nc.cacheCount>whe&&(Nc.cacheCount=0,Nc.widthCache={}),c}catch{return{width:0,height:0}}},Phe=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function mp(e){"@babel/helpers - typeof";return mp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mp(e)}function xy(e,t){return jhe(e)||The(e,t)||Ehe(e,t)||Che()}function Che(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ehe(e,t){if(e){if(typeof e=="string")return iI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return iI(e,t)}}function iI(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Vhe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function cI(e,t){return Ghe(e)||Hhe(e,t)||qhe(e,t)||Whe()}function Whe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qhe(e,t){if(e){if(typeof e=="string")return fI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fI(e,t)}}function fI(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:[];return re.reduce(function(ae,se){var oe=se.word,K=se.width,G=ae[ae.length-1];if(G&&(i==null||o||G.width+K+rse.width?ae:se})};if(!h)return b;for(var _="…",w=function(re){var ae=p.slice(0,re),se=wB({breakAll:u,style:c,children:ae+_}).wordsWithComputedWidth,oe=v(se),K=oe.length>a||x(oe).width>Number(i);return[K,oe]},O=0,P=p.length-1,E=0,T;O<=P&&E<=p.length-1;){var A=Math.floor((O+P)/2),j=A-1,N=w(j),$=cI(N,2),W=$[0],B=$[1],V=w(A),H=cI(V,1),J=H[0];if(!W&&!J&&(O=A+1),W&&J&&(P=A-1),!W&&J){T=B;break}E++}return T||b},dI=function(t){var n=ft(t)?[]:t.toString().split(xB);return[{words:n}]},Yhe=function(t){var n=t.width,r=t.scaleToFit,i=t.children,o=t.style,a=t.breakAll,s=t.maxLines;if((n||r)&&!Ki.isSsr){var c,u,h=wB({breakAll:a,children:i,style:o});if(h){var p=h.wordsWithComputedWidth,v=h.spaceWidth;c=p,u=v}else return dI(i);return Khe({breakAll:a,children:i,maxLines:s,style:o},c,u,n,r)}return dI(i)},hI="#808080",Eu=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,o=i===void 0?0:i,a=t.lineHeight,s=a===void 0?"1em":a,c=t.capHeight,u=c===void 0?"0.71em":c,h=t.scaleToFit,p=h===void 0?!1:h,v=t.textAnchor,b=v===void 0?"start":v,x=t.verticalAnchor,_=x===void 0?"end":x,w=t.fill,O=w===void 0?hI:w,P=uI(t,Uhe),E=F.useMemo(function(){return Yhe({breakAll:P.breakAll,children:P.children,maxLines:P.maxLines,scaleToFit:p,style:P.style,width:P.width})},[P.breakAll,P.children,P.maxLines,p,P.style,P.width]),T=P.dx,A=P.dy,j=P.angle,N=P.className,$=P.breakAll,W=uI(P,zhe);if(!Wn(r)||!Wn(o))return null;var B=r+(Ve(T)?T:0),V=o+(Ve(A)?A:0),H;switch(_){case"start":H=W2("calc(".concat(u,")"));break;case"middle":H=W2("calc(".concat((E.length-1)/2," * -").concat(s," + (").concat(u," / 2))"));break;default:H=W2("calc(".concat(E.length-1," * -").concat(s,")"));break}var J=[];if(p){var Q=E[0].width,re=P.width;J.push("scale(".concat((Ve(re)?re/Q:1)/Q,")"))}return j&&J.push("rotate(".concat(j,", ").concat(B,", ").concat(V,")")),J.length&&(W.transform=J.join(" ")),Z.createElement("text",pC({},it(W,!0),{x:B,y:V,className:Be("recharts-text",N),textAnchor:b,fill:O.includes("url")?hI:O}),E.map(function(ae,se){var oe=ae.words.join($?"":" ");return Z.createElement("tspan",{x:B,dy:se===0?H:s,key:"".concat(oe,"-").concat(se)},oe)}))};function el(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function Zhe(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function tj(e){let t,n,r;e.length!==2?(t=el,n=(s,c)=>el(e(s),c),r=(s,c)=>e(s)-c):(t=e===el||e===Zhe?e:Xhe,n=e,r=e);function i(s,c,u=0,h=s.length){if(u>>1;n(s[p],c)<0?u=p+1:h=p}while(u>>1;n(s[p],c)<=0?u=p+1:h=p}while(uu&&r(s[p-1],c)>-r(s[p],c)?p-1:p}return{left:i,center:a,right:o}}function Xhe(){return 0}function OB(e){return e===null?NaN:+e}function*Qhe(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const Jhe=tj(el),lm=Jhe.right;tj(OB).center;class pI extends Map{constructor(t,n=npe){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(mI(this,t))}has(t){return super.has(mI(this,t))}set(t,n){return super.set(epe(this,t),n)}delete(t){return super.delete(tpe(this,t))}}function mI({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function epe({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function tpe({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function npe(e){return e!==null&&typeof e=="object"?e.valueOf():e}function rpe(e=el){if(e===el)return SB;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function SB(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const ipe=Math.sqrt(50),ope=Math.sqrt(10),ape=Math.sqrt(2);function wy(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=ipe?10:o>=ope?5:o>=ape?2:1;let s,c,u;return i<0?(u=Math.pow(10,-i)/a,s=Math.round(e*u),c=Math.round(t*u),s/ut&&--c,u=-u):(u=Math.pow(10,i)*a,s=Math.round(e/u),c=Math.round(t/u),s*ut&&--c),c0))return[];if(e===t)return[e];const r=t=i))return[];const s=o-i+1,c=new Array(s);if(r)if(a<0)for(let u=0;u=r)&&(n=r);return n}function gI(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function PB(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?SB:rpe(i);r>n;){if(r-n>600){const c=r-n+1,u=t-n+1,h=Math.log(c),p=.5*Math.exp(2*h/3),v=.5*Math.sqrt(h*p*(c-p)/c)*(u-c/2<0?-1:1),b=Math.max(n,Math.floor(t-u*p/c+v)),x=Math.min(r,Math.floor(t+(c-u)*p/c+v));PB(e,t,b,x,i)}const o=e[t];let a=n,s=r;for(uh(e,n,t),i(e[r],o)>0&&uh(e,n,r);a0;)--s}i(e[n],o)===0?uh(e,n,s):(++s,uh(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function uh(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function spe(e,t,n){if(e=Float64Array.from(Qhe(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return gI(e);if(t>=1)return vI(e);var r,i=(r-1)*t,o=Math.floor(i),a=vI(PB(e,o).subarray(0,o+1)),s=gI(e.subarray(o+1));return a+(s-a)*(i-o)}}function lpe(e,t,n=OB){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e),s=+n(e[o+1],o+1,e);return a+(s-a)*(i-o)}}function upe(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,o=new Array(i);++r>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Kv(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Kv(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=fpe.exec(e))?new Wr(t[1],t[2],t[3],1):(t=dpe.exec(e))?new Wr(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=hpe.exec(e))?Kv(t[1],t[2],t[3],t[4]):(t=ppe.exec(e))?Kv(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=mpe.exec(e))?SI(t[1],t[2]/100,t[3]/100,1):(t=vpe.exec(e))?SI(t[1],t[2]/100,t[3]/100,t[4]):yI.hasOwnProperty(e)?xI(yI[e]):e==="transparent"?new Wr(NaN,NaN,NaN,0):null}function xI(e){return new Wr(e>>16&255,e>>8&255,e&255,1)}function Kv(e,t,n,r){return r<=0&&(e=t=n=NaN),new Wr(e,t,n,r)}function bpe(e){return e instanceof um||(e=bp(e)),e?(e=e.rgb(),new Wr(e.r,e.g,e.b,e.opacity)):new Wr}function bC(e,t,n,r){return arguments.length===1?bpe(e):new Wr(e,t,n,r??1)}function Wr(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}rj(Wr,bC,EB(um,{brighter(e){return e=e==null?Oy:Math.pow(Oy,e),new Wr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?gp:Math.pow(gp,e),new Wr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Wr(gu(this.r),gu(this.g),gu(this.b),Sy(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:wI,formatHex:wI,formatHex8:_pe,formatRgb:OI,toString:OI}));function wI(){return`#${cu(this.r)}${cu(this.g)}${cu(this.b)}`}function _pe(){return`#${cu(this.r)}${cu(this.g)}${cu(this.b)}${cu((isNaN(this.opacity)?1:this.opacity)*255)}`}function OI(){const e=Sy(this.opacity);return`${e===1?"rgb(":"rgba("}${gu(this.r)}, ${gu(this.g)}, ${gu(this.b)}${e===1?")":`, ${e})`}`}function Sy(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function gu(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function cu(e){return e=gu(e),(e<16?"0":"")+e.toString(16)}function SI(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new _o(e,t,n,r)}function TB(e){if(e instanceof _o)return new _o(e.h,e.s,e.l,e.opacity);if(e instanceof um||(e=bp(e)),!e)return new _o;if(e instanceof _o)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,c=(o+i)/2;return s?(t===o?a=(n-r)/s+(n0&&c<1?0:a,new _o(a,s,c,e.opacity)}function xpe(e,t,n,r){return arguments.length===1?TB(e):new _o(e,t,n,r??1)}function _o(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}rj(_o,xpe,EB(um,{brighter(e){return e=e==null?Oy:Math.pow(Oy,e),new _o(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?gp:Math.pow(gp,e),new _o(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Wr(q2(e>=240?e-240:e+120,i,r),q2(e,i,r),q2(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new _o(PI(this.h),Yv(this.s),Yv(this.l),Sy(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Sy(this.opacity);return`${e===1?"hsl(":"hsla("}${PI(this.h)}, ${Yv(this.s)*100}%, ${Yv(this.l)*100}%${e===1?")":`, ${e})`}`}}));function PI(e){return e=(e||0)%360,e<0?e+360:e}function Yv(e){return Math.max(0,Math.min(1,e||0))}function q2(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const ij=e=>()=>e;function wpe(e,t){return function(n){return e+n*t}}function Ope(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function Spe(e){return(e=+e)==1?jB:function(t,n){return n-t?Ope(t,n,e):ij(isNaN(t)?n:t)}}function jB(e,t){var n=t-e;return n?wpe(e,n):ij(isNaN(e)?t:e)}const CI=function e(t){var n=Spe(t);function r(i,o){var a=n((i=bC(i)).r,(o=bC(o)).r),s=n(i.g,o.g),c=n(i.b,o.b),u=jB(i.opacity,o.opacity);return function(h){return i.r=a(h),i.g=s(h),i.b=c(h),i.opacity=u(h),i+""}}return r.gamma=e,r}(1);function Ppe(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(o){for(i=0;in&&(o=t.slice(n,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,c.push({i:a,x:Py(r,i)})),n=H2.lastIndex;return nt&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function Ipe(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i2?Dpe:Ipe,c=u=null,p}function p(v){return v==null||isNaN(v=+v)?o:(c||(c=s(e.map(r),t,n)))(r(a(v)))}return p.invert=function(v){return a(i((u||(u=s(t,e.map(r),Py)))(v)))},p.domain=function(v){return arguments.length?(e=Array.from(v,Cy),h()):e.slice()},p.range=function(v){return arguments.length?(t=Array.from(v),h()):t.slice()},p.rangeRound=function(v){return t=Array.from(v),n=oj,h()},p.clamp=function(v){return arguments.length?(a=v?!0:Er,h()):a!==Er},p.interpolate=function(v){return arguments.length?(n=v,h()):n},p.unknown=function(v){return arguments.length?(o=v,p):o},function(v,b){return r=v,i=b,h()}}function aj(){return ib()(Er,Er)}function $pe(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Ey(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function xf(e){return e=Ey(Math.abs(e)),e?e[1]:NaN}function Fpe(e,t){return function(n,r){for(var i=n.length,o=[],a=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),o.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(t)}}function Bpe(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var Upe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function _p(e){if(!(t=Upe.exec(e)))throw new Error("invalid format: "+e);var t;return new sj({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}_p.prototype=sj.prototype;function sj(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}sj.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function zpe(e){e:for(var t=e.length,n=1,r=-1,i;n0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var AB;function Vpe(e,t){var n=Ey(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(AB=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Ey(e,Math.max(0,t+o-1))[0]}function TI(e,t){var n=Ey(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const jI={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:$pe,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>TI(e*100,t),r:TI,s:Vpe,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function AI(e){return e}var kI=Array.prototype.map,RI=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Wpe(e){var t=e.grouping===void 0||e.thousands===void 0?AI:Fpe(kI.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?AI:Bpe(kI.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function u(p){p=_p(p);var v=p.fill,b=p.align,x=p.sign,_=p.symbol,w=p.zero,O=p.width,P=p.comma,E=p.precision,T=p.trim,A=p.type;A==="n"?(P=!0,A="g"):jI[A]||(E===void 0&&(E=12),T=!0,A="g"),(w||v==="0"&&b==="=")&&(w=!0,v="0",b="=");var j=_==="$"?n:_==="#"&&/[boxX]/.test(A)?"0"+A.toLowerCase():"",N=_==="$"?r:/[%p]/.test(A)?a:"",$=jI[A],W=/[defgprs%]/.test(A);E=E===void 0?6:/[gprs]/.test(A)?Math.max(1,Math.min(21,E)):Math.max(0,Math.min(20,E));function B(V){var H=j,J=N,Q,re,ae;if(A==="c")J=$(V)+J,V="";else{V=+V;var se=V<0||1/V<0;if(V=isNaN(V)?c:$(Math.abs(V),E),T&&(V=zpe(V)),se&&+V==0&&x!=="+"&&(se=!1),H=(se?x==="("?x:s:x==="-"||x==="("?"":x)+H,J=(A==="s"?RI[8+AB/3]:"")+J+(se&&x==="("?")":""),W){for(Q=-1,re=V.length;++Qae||ae>57){J=(ae===46?i+V.slice(Q+1):V.slice(Q))+J,V=V.slice(0,Q);break}}}P&&!w&&(V=t(V,1/0));var oe=H.length+V.length+J.length,K=oe>1)+H+V+J+K.slice(oe);break;default:V=K+H+V+J;break}return o(V)}return B.toString=function(){return p+""},B}function h(p,v){var b=u((p=_p(p),p.type="f",p)),x=Math.max(-8,Math.min(8,Math.floor(xf(v)/3)))*3,_=Math.pow(10,-x),w=RI[8+x/3];return function(O){return b(_*O)+w}}return{format:u,formatPrefix:h}}var Zv,lj,kB;qpe({thousands:",",grouping:[3],currency:["$",""]});function qpe(e){return Zv=Wpe(e),lj=Zv.format,kB=Zv.formatPrefix,Zv}function Hpe(e){return Math.max(0,-xf(Math.abs(e)))}function Gpe(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(xf(t)/3)))*3-xf(Math.abs(e)))}function Kpe(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,xf(t)-xf(e))+1}function RB(e,t,n,r){var i=gC(e,t,n),o;switch(r=_p(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=Gpe(i,a))&&(r.precision=o),kB(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=Kpe(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=Hpe(i))&&(r.precision=o-(r.type==="%")*2);break}}return lj(r)}function gl(e){var t=e.domain;return e.ticks=function(n){var r=t();return mC(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return RB(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,o=r.length-1,a=r[i],s=r[o],c,u,h=10;for(s0;){if(u=vC(a,s,n),u===c)return r[i]=a,r[o]=s,t(r);if(u>0)a=Math.floor(a/u)*u,s=Math.ceil(s/u)*u;else if(u<0)a=Math.ceil(a*u)/u,s=Math.floor(s*u)/u;else break;c=u}return e},e}function Ty(){var e=aj();return e.copy=function(){return cm(e,Ty())},eo.apply(e,arguments),gl(e)}function NB(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,Cy),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return NB(e).unknown(t)},e=arguments.length?Array.from(e,Cy):[0,1],gl(n)}function MB(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],o=e[r],a;return oMath.pow(e,t)}function Jpe(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function LI(e){return(t,n)=>-e(-t,n)}function uj(e){const t=e(NI,MI),n=t.domain;let r=10,i,o;function a(){return i=Jpe(r),o=Qpe(r),n()[0]<0?(i=LI(i),o=LI(o),e(Ype,Zpe)):e(NI,MI),t}return t.base=function(s){return arguments.length?(r=+s,a()):r},t.domain=function(s){return arguments.length?(n(s),a()):n()},t.ticks=s=>{const c=n();let u=c[0],h=c[c.length-1];const p=h0){for(;v<=b;++v)for(x=1;xh)break;O.push(_)}}else for(;v<=b;++v)for(x=r-1;x>=1;--x)if(_=v>0?x/o(-v):x*o(v),!(_h)break;O.push(_)}O.length*2{if(s==null&&(s=10),c==null&&(c=r===10?"s":","),typeof c!="function"&&(!(r%1)&&(c=_p(c)).precision==null&&(c.trim=!0),c=lj(c)),s===1/0)return c;const u=Math.max(1,r*s/t.ticks().length);return h=>{let p=h/o(Math.round(i(h)));return p*rn(MB(n(),{floor:s=>o(Math.floor(i(s))),ceil:s=>o(Math.ceil(i(s)))})),t}function LB(){const e=uj(ib()).domain([1,10]);return e.copy=()=>cm(e,LB()).base(e.base()),eo.apply(e,arguments),e}function II(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function DI(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function cj(e){var t=1,n=e(II(t),DI(t));return n.constant=function(r){return arguments.length?e(II(t=+r),DI(t)):t},gl(n)}function IB(){var e=cj(ib());return e.copy=function(){return cm(e,IB()).constant(e.constant())},eo.apply(e,arguments)}function $I(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function eme(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function tme(e){return e<0?-e*e:e*e}function fj(e){var t=e(Er,Er),n=1;function r(){return n===1?e(Er,Er):n===.5?e(eme,tme):e($I(n),$I(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},gl(t)}function dj(){var e=fj(ib());return e.copy=function(){return cm(e,dj()).exponent(e.exponent())},eo.apply(e,arguments),e}function nme(){return dj.apply(null,arguments).exponent(.5)}function FI(e){return Math.sign(e)*e*e}function rme(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function DB(){var e=aj(),t=[0,1],n=!1,r;function i(o){var a=rme(e(o));return isNaN(a)?r:n?Math.round(a):a}return i.invert=function(o){return e.invert(FI(o))},i.domain=function(o){return arguments.length?(e.domain(o),i):e.domain()},i.range=function(o){return arguments.length?(e.range((t=Array.from(o,Cy)).map(FI)),i):t.slice()},i.rangeRound=function(o){return i.range(o).round(!0)},i.round=function(o){return arguments.length?(n=!!o,i):n},i.clamp=function(o){return arguments.length?(e.clamp(o),i):e.clamp()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return DB(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},eo.apply(i,arguments),gl(i)}function $B(){var e=[],t=[],n=[],r;function i(){var a=0,s=Math.max(1,t.length);for(n=new Array(s-1);++a0?n[s-1]:e[0],s=n?[r[n-1],t]:[r[u-1],r[u]]},a.unknown=function(c){return arguments.length&&(o=c),a},a.thresholds=function(){return r.slice()},a.copy=function(){return FB().domain([e,t]).range(i).unknown(o)},eo.apply(gl(a),arguments)}function BB(){var e=[.5],t=[0,1],n,r=1;function i(o){return o!=null&&o<=o?t[lm(e,o,0,r)]:n}return i.domain=function(o){return arguments.length?(e=Array.from(o),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(o){return arguments.length?(t=Array.from(o),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(o){var a=t.indexOf(o);return[e[a-1],e[a]]},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return BB().domain(e).range(t).unknown(n)},eo.apply(i,arguments)}const G2=new Date,K2=new Date;function Hn(e,t,n,r){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(e(o=new Date(+o)),o),i.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),i.round=o=>{const a=i(o),s=i.ceil(o);return o-a(t(o=new Date(+o),a==null?1:Math.floor(a)),o),i.range=(o,a,s)=>{const c=[];if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o0))return c;let u;do c.push(u=new Date(+o)),t(o,s),e(o);while(uHn(a=>{if(a>=a)for(;e(a),!o(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!o(a););else for(;--s>=0;)for(;t(a,1),!o(a););}),n&&(i.count=(o,a)=>(G2.setTime(+o),K2.setTime(+a),e(G2),e(K2),Math.floor(n(G2,K2))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?a=>r(a)%o===0:a=>i.count(0,a)%o===0):i)),i}const jy=Hn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);jy.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Hn(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):jy);jy.range;const Ra=1e3,Hi=Ra*60,Na=Hi*60,qa=Na*24,hj=qa*7,BI=qa*30,Y2=qa*365,fu=Hn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Ra)},(e,t)=>(t-e)/Ra,e=>e.getUTCSeconds());fu.range;const pj=Hn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ra)},(e,t)=>{e.setTime(+e+t*Hi)},(e,t)=>(t-e)/Hi,e=>e.getMinutes());pj.range;const mj=Hn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Hi)},(e,t)=>(t-e)/Hi,e=>e.getUTCMinutes());mj.range;const vj=Hn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ra-e.getMinutes()*Hi)},(e,t)=>{e.setTime(+e+t*Na)},(e,t)=>(t-e)/Na,e=>e.getHours());vj.range;const gj=Hn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Na)},(e,t)=>(t-e)/Na,e=>e.getUTCHours());gj.range;const fm=Hn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Hi)/qa,e=>e.getDate()-1);fm.range;const ob=Hn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/qa,e=>e.getUTCDate()-1);ob.range;const UB=Hn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/qa,e=>Math.floor(e/qa));UB.range;function Iu(e){return Hn(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Hi)/hj)}const ab=Iu(0),Ay=Iu(1),ime=Iu(2),ome=Iu(3),wf=Iu(4),ame=Iu(5),sme=Iu(6);ab.range;Ay.range;ime.range;ome.range;wf.range;ame.range;sme.range;function Du(e){return Hn(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/hj)}const sb=Du(0),ky=Du(1),lme=Du(2),ume=Du(3),Of=Du(4),cme=Du(5),fme=Du(6);sb.range;ky.range;lme.range;ume.range;Of.range;cme.range;fme.range;const yj=Hn(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());yj.range;const bj=Hn(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());bj.range;const Ha=Hn(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Ha.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Hn(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});Ha.range;const Ga=Hn(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Ga.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Hn(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});Ga.range;function zB(e,t,n,r,i,o){const a=[[fu,1,Ra],[fu,5,5*Ra],[fu,15,15*Ra],[fu,30,30*Ra],[o,1,Hi],[o,5,5*Hi],[o,15,15*Hi],[o,30,30*Hi],[i,1,Na],[i,3,3*Na],[i,6,6*Na],[i,12,12*Na],[r,1,qa],[r,2,2*qa],[n,1,hj],[t,1,BI],[t,3,3*BI],[e,1,Y2]];function s(u,h,p){const v=hw).right(a,v);if(b===a.length)return e.every(gC(u/Y2,h/Y2,p));if(b===0)return jy.every(Math.max(gC(u,h,p),1));const[x,_]=a[v/a[b-1][2]53)return null;"w"in ie||(ie.w=1),"Z"in ie?(Se=X2(ch(ie.y,0,1)),Fe=Se.getUTCDay(),Se=Fe>4||Fe===0?ky.ceil(Se):ky(Se),Se=ob.offset(Se,(ie.V-1)*7),ie.y=Se.getUTCFullYear(),ie.m=Se.getUTCMonth(),ie.d=Se.getUTCDate()+(ie.w+6)%7):(Se=Z2(ch(ie.y,0,1)),Fe=Se.getDay(),Se=Fe>4||Fe===0?Ay.ceil(Se):Ay(Se),Se=fm.offset(Se,(ie.V-1)*7),ie.y=Se.getFullYear(),ie.m=Se.getMonth(),ie.d=Se.getDate()+(ie.w+6)%7)}else("W"in ie||"U"in ie)&&("w"in ie||(ie.w="u"in ie?ie.u%7:"W"in ie?1:0),Fe="Z"in ie?X2(ch(ie.y,0,1)).getUTCDay():Z2(ch(ie.y,0,1)).getDay(),ie.m=0,ie.d="W"in ie?(ie.w+6)%7+ie.W*7-(Fe+5)%7:ie.w+ie.U*7-(Fe+6)%7);return"Z"in ie?(ie.H+=ie.Z/100|0,ie.M+=ie.Z%100,X2(ie)):Z2(ie)}}function $(D,Y,ue,ie){for(var he=0,Se=Y.length,Fe=ue.length,ge,Ee;he=Fe)return-1;if(ge=Y.charCodeAt(he++),ge===37){if(ge=Y.charAt(he++),Ee=A[ge in UI?Y.charAt(he++):ge],!Ee||(ie=Ee(D,ue,ie))<0)return-1}else if(ge!=ue.charCodeAt(ie++))return-1}return ie}function W(D,Y,ue){var ie=u.exec(Y.slice(ue));return ie?(D.p=h.get(ie[0].toLowerCase()),ue+ie[0].length):-1}function B(D,Y,ue){var ie=b.exec(Y.slice(ue));return ie?(D.w=x.get(ie[0].toLowerCase()),ue+ie[0].length):-1}function V(D,Y,ue){var ie=p.exec(Y.slice(ue));return ie?(D.w=v.get(ie[0].toLowerCase()),ue+ie[0].length):-1}function H(D,Y,ue){var ie=O.exec(Y.slice(ue));return ie?(D.m=P.get(ie[0].toLowerCase()),ue+ie[0].length):-1}function J(D,Y,ue){var ie=_.exec(Y.slice(ue));return ie?(D.m=w.get(ie[0].toLowerCase()),ue+ie[0].length):-1}function Q(D,Y,ue){return $(D,t,Y,ue)}function re(D,Y,ue){return $(D,n,Y,ue)}function ae(D,Y,ue){return $(D,r,Y,ue)}function se(D){return a[D.getDay()]}function oe(D){return o[D.getDay()]}function K(D){return c[D.getMonth()]}function G(D){return s[D.getMonth()]}function z(D){return i[+(D.getHours()>=12)]}function ne(D){return 1+~~(D.getMonth()/3)}function X(D){return a[D.getUTCDay()]}function le(D){return o[D.getUTCDay()]}function ce(D){return c[D.getUTCMonth()]}function de(D){return s[D.getUTCMonth()]}function be(D){return i[+(D.getUTCHours()>=12)]}function M(D){return 1+~~(D.getUTCMonth()/3)}return{format:function(D){var Y=j(D+="",E);return Y.toString=function(){return D},Y},parse:function(D){var Y=N(D+="",!1);return Y.toString=function(){return D},Y},utcFormat:function(D){var Y=j(D+="",T);return Y.toString=function(){return D},Y},utcParse:function(D){var Y=N(D+="",!0);return Y.toString=function(){return D},Y}}}var UI={"-":"",_:" ",0:"0"},tr=/^\s*\d+/,gme=/^%/,yme=/[\\^$*+?|[\]().{}]/g;function It(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o[t.toLowerCase(),n]))}function _me(e,t,n){var r=tr.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function xme(e,t,n){var r=tr.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function wme(e,t,n){var r=tr.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Ome(e,t,n){var r=tr.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Sme(e,t,n){var r=tr.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function zI(e,t,n){var r=tr.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function VI(e,t,n){var r=tr.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Pme(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Cme(e,t,n){var r=tr.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Eme(e,t,n){var r=tr.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function WI(e,t,n){var r=tr.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Tme(e,t,n){var r=tr.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function qI(e,t,n){var r=tr.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function jme(e,t,n){var r=tr.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Ame(e,t,n){var r=tr.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function kme(e,t,n){var r=tr.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Rme(e,t,n){var r=tr.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Nme(e,t,n){var r=gme.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Mme(e,t,n){var r=tr.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Lme(e,t,n){var r=tr.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function HI(e,t){return It(e.getDate(),t,2)}function Ime(e,t){return It(e.getHours(),t,2)}function Dme(e,t){return It(e.getHours()%12||12,t,2)}function $me(e,t){return It(1+fm.count(Ha(e),e),t,3)}function VB(e,t){return It(e.getMilliseconds(),t,3)}function Fme(e,t){return VB(e,t)+"000"}function Bme(e,t){return It(e.getMonth()+1,t,2)}function Ume(e,t){return It(e.getMinutes(),t,2)}function zme(e,t){return It(e.getSeconds(),t,2)}function Vme(e){var t=e.getDay();return t===0?7:t}function Wme(e,t){return It(ab.count(Ha(e)-1,e),t,2)}function WB(e){var t=e.getDay();return t>=4||t===0?wf(e):wf.ceil(e)}function qme(e,t){return e=WB(e),It(wf.count(Ha(e),e)+(Ha(e).getDay()===4),t,2)}function Hme(e){return e.getDay()}function Gme(e,t){return It(Ay.count(Ha(e)-1,e),t,2)}function Kme(e,t){return It(e.getFullYear()%100,t,2)}function Yme(e,t){return e=WB(e),It(e.getFullYear()%100,t,2)}function Zme(e,t){return It(e.getFullYear()%1e4,t,4)}function Xme(e,t){var n=e.getDay();return e=n>=4||n===0?wf(e):wf.ceil(e),It(e.getFullYear()%1e4,t,4)}function Qme(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+It(t/60|0,"0",2)+It(t%60,"0",2)}function GI(e,t){return It(e.getUTCDate(),t,2)}function Jme(e,t){return It(e.getUTCHours(),t,2)}function eve(e,t){return It(e.getUTCHours()%12||12,t,2)}function tve(e,t){return It(1+ob.count(Ga(e),e),t,3)}function qB(e,t){return It(e.getUTCMilliseconds(),t,3)}function nve(e,t){return qB(e,t)+"000"}function rve(e,t){return It(e.getUTCMonth()+1,t,2)}function ive(e,t){return It(e.getUTCMinutes(),t,2)}function ove(e,t){return It(e.getUTCSeconds(),t,2)}function ave(e){var t=e.getUTCDay();return t===0?7:t}function sve(e,t){return It(sb.count(Ga(e)-1,e),t,2)}function HB(e){var t=e.getUTCDay();return t>=4||t===0?Of(e):Of.ceil(e)}function lve(e,t){return e=HB(e),It(Of.count(Ga(e),e)+(Ga(e).getUTCDay()===4),t,2)}function uve(e){return e.getUTCDay()}function cve(e,t){return It(ky.count(Ga(e)-1,e),t,2)}function fve(e,t){return It(e.getUTCFullYear()%100,t,2)}function dve(e,t){return e=HB(e),It(e.getUTCFullYear()%100,t,2)}function hve(e,t){return It(e.getUTCFullYear()%1e4,t,4)}function pve(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Of(e):Of.ceil(e),It(e.getUTCFullYear()%1e4,t,4)}function mve(){return"+0000"}function KI(){return"%"}function YI(e){return+e}function ZI(e){return Math.floor(+e/1e3)}var Mc,GB,KB;vve({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function vve(e){return Mc=vme(e),GB=Mc.format,Mc.parse,KB=Mc.utcFormat,Mc.utcParse,Mc}function gve(e){return new Date(e)}function yve(e){return e instanceof Date?+e:+new Date(+e)}function _j(e,t,n,r,i,o,a,s,c,u){var h=aj(),p=h.invert,v=h.domain,b=u(".%L"),x=u(":%S"),_=u("%I:%M"),w=u("%I %p"),O=u("%a %d"),P=u("%b %d"),E=u("%B"),T=u("%Y");function A(j){return(c(j)t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,o)=>spe(e,o/r))},n.copy=function(){return QB(t).domain(e)},ns.apply(n,arguments)}function ub(){var e=0,t=.5,n=1,r=1,i,o,a,s,c,u=Er,h,p=!1,v;function b(_){return isNaN(_=+_)?v:(_=.5+((_=+h(_))-o)*(r*_n}return J2=e,J2}var eO,e6;function Ove(){if(e6)return eO;e6=1;var e=cb(),t=nU(),n=ed();function r(i){return i&&i.length?e(i,n,t):void 0}return eO=r,eO}var Sve=Ove();const Gs=Nt(Sve);var tO,t6;function rU(){if(t6)return tO;t6=1;function e(t,n){return te.e^o.s<0?1:-1;for(r=o.d.length,i=e.d.length,t=0,n=re.d[t]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1};et.decimalPlaces=et.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*rn;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};et.dividedBy=et.div=function(e){return Da(this,new this.constructor(e))};et.dividedToIntegerBy=et.idiv=function(e){var t=this,n=t.constructor;return Ht(Da(t,new n(e),0,1),n.precision)};et.equals=et.eq=function(e){return!this.cmp(e)};et.exponent=function(){return In(this)};et.greaterThan=et.gt=function(e){return this.cmp(e)>0};et.greaterThanOrEqualTo=et.gte=function(e){return this.cmp(e)>=0};et.isInteger=et.isint=function(){return this.e>this.d.length-2};et.isNegative=et.isneg=function(){return this.s<0};et.isPositive=et.ispos=function(){return this.s>0};et.isZero=function(){return this.s===0};et.lessThan=et.lt=function(e){return this.cmp(e)<0};et.lessThanOrEqualTo=et.lte=function(e){return this.cmp(e)<1};et.logarithm=et.log=function(e){var t,n=this,r=n.constructor,i=r.precision,o=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(pi))throw Error(Qi+"NaN");if(n.s<1)throw Error(Qi+(n.s?"NaN":"-Infinity"));return n.eq(pi)?new r(0):(un=!1,t=Da(xp(n,o),xp(e,o),o),un=!0,Ht(t,i))};et.minus=et.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?sU(t,e):oU(t,(e.s=-e.s,e))};et.modulo=et.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(Qi+"NaN");return n.s?(un=!1,t=Da(n,e,0,1).times(e),un=!0,n.minus(t)):Ht(new r(n),i)};et.naturalExponential=et.exp=function(){return aU(this)};et.naturalLogarithm=et.ln=function(){return xp(this)};et.negated=et.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};et.plus=et.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?oU(t,e):sU(t,(e.s=-e.s,e))};et.precision=et.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(yu+e);if(t=In(i)+1,r=i.d.length-1,n=r*rn+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};et.squareRoot=et.sqrt=function(){var e,t,n,r,i,o,a,s=this,c=s.constructor;if(s.s<1){if(!s.s)return new c(0);throw Error(Qi+"NaN")}for(e=In(s),un=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=Ko(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=rd((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new c(t)):r=new c(i.toString()),n=c.precision,i=a=n+3;;)if(o=r,r=o.plus(Da(s,o,a+2)).times(.5),Ko(o.d).slice(0,a)===(t=Ko(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&t=="4999"){if(Ht(o,n+1,0),o.times(o).eq(s)){r=o;break}}else if(t!="9999")break;a+=4}return un=!0,Ht(r,n)};et.times=et.mul=function(e){var t,n,r,i,o,a,s,c,u,h=this,p=h.constructor,v=h.d,b=(e=new p(e)).d;if(!h.s||!e.s)return new p(0);for(e.s*=h.s,n=h.e+e.e,c=v.length,u=b.length,c=0;){for(t=0,i=c+r;i>r;)s=o[i]+b[r]*v[i-r-1]+t,o[i--]=s%Xn|0,t=s/Xn|0;o[i]=(o[i]+t)%Xn|0}for(;!o[--a];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,un?Ht(e,p.precision):e};et.toDecimalPlaces=et.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(na(e,0,nd),t===void 0?t=r.rounding:na(t,0,8),Ht(n,e+In(n)+1,t))};et.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=Tu(r,!0):(na(e,0,nd),t===void 0?t=i.rounding:na(t,0,8),r=Ht(new i(r),e+1,t),n=Tu(r,!0,e+1)),n};et.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?Tu(i):(na(e,0,nd),t===void 0?t=o.rounding:na(t,0,8),r=Ht(new o(i),e+In(i)+1,t),n=Tu(r.abs(),!1,e+In(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};et.toInteger=et.toint=function(){var e=this,t=e.constructor;return Ht(new t(e),In(e)+1,t.rounding)};et.toNumber=function(){return+this};et.toPower=et.pow=function(e){var t,n,r,i,o,a,s=this,c=s.constructor,u=12,h=+(e=new c(e));if(!e.s)return new c(pi);if(s=new c(s),!s.s){if(e.s<1)throw Error(Qi+"Infinity");return s}if(s.eq(pi))return s;if(r=c.precision,e.eq(pi))return Ht(s,r);if(t=e.e,n=e.d.length-1,a=t>=n,o=s.s,a){if((n=h<0?-h:h)<=iU){for(i=new c(pi),t=Math.ceil(r/rn+4),un=!1;n%2&&(i=i.times(s),s6(i.d,t)),n=rd(n/2),n!==0;)s=s.times(s),s6(s.d,t);return un=!0,e.s<0?new c(pi).div(i):Ht(i,r)}}else if(o<0)throw Error(Qi+"NaN");return o=o<0&&e.d[Math.max(t,n)]&1?-1:1,s.s=1,un=!1,i=e.times(xp(s,r+u)),un=!0,i=aU(i),i.s=o,i};et.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?(n=In(i),r=Tu(i,n<=o.toExpNeg||n>=o.toExpPos)):(na(e,1,nd),t===void 0?t=o.rounding:na(t,0,8),i=Ht(new o(i),e,t),n=In(i),r=Tu(i,e<=n||n<=o.toExpNeg,e)),r};et.toSignificantDigits=et.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(na(e,1,nd),t===void 0?t=r.rounding:na(t,0,8)),Ht(new r(n),e,t)};et.toString=et.valueOf=et.val=et.toJSON=et[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=In(e),n=e.constructor;return Tu(e,t<=n.toExpNeg||t>=n.toExpPos)};function oU(e,t){var n,r,i,o,a,s,c,u,h=e.constructor,p=h.precision;if(!e.s||!t.s)return t.s||(t=new h(e)),un?Ht(t,p):t;if(c=e.d,u=t.d,a=e.e,i=t.e,c=c.slice(),o=a-i,o){for(o<0?(r=c,o=-o,s=u.length):(r=u,i=a,s=c.length),a=Math.ceil(p/rn),s=a>s?a+1:s+1,o>s&&(o=s,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(s=c.length,o=u.length,s-o<0&&(o=s,r=u,u=c,c=r),n=0;o;)n=(c[--o]=c[o]+u[o]+n)/Xn|0,c[o]%=Xn;for(n&&(c.unshift(n),++i),s=c.length;c[--s]==0;)c.pop();return t.d=c,t.e=i,un?Ht(t,p):t}function na(e,t,n){if(e!==~~e||en)throw Error(yu+e)}function Ko(e){var t,n,r,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;ta?1:-1;else for(s=c=0;si[s]?1:-1;break}return c}function n(r,i,o){for(var a=0;o--;)r[o]-=a,a=r[o]1;)r.shift()}return function(r,i,o,a){var s,c,u,h,p,v,b,x,_,w,O,P,E,T,A,j,N,$,W=r.constructor,B=r.s==i.s?1:-1,V=r.d,H=i.d;if(!r.s)return new W(r);if(!i.s)throw Error(Qi+"Division by zero");for(c=r.e-i.e,N=H.length,A=V.length,b=new W(B),x=b.d=[],u=0;H[u]==(V[u]||0);)++u;if(H[u]>(V[u]||0)&&--c,o==null?P=o=W.precision:a?P=o+(In(r)-In(i))+1:P=o,P<0)return new W(0);if(P=P/rn+2|0,u=0,N==1)for(h=0,H=H[0],P++;(u1&&(H=e(H,h),V=e(V,h),N=H.length,A=V.length),T=N,_=V.slice(0,N),w=_.length;w=Xn/2&&++j;do h=0,s=t(H,_,N,w),s<0?(O=_[0],N!=w&&(O=O*Xn+(_[1]||0)),h=O/j|0,h>1?(h>=Xn&&(h=Xn-1),p=e(H,h),v=p.length,w=_.length,s=t(p,_,v,w),s==1&&(h--,n(p,N16)throw Error(Oj+In(e));if(!e.s)return new h(pi);for(t==null?(un=!1,s=p):s=t,a=new h(.03125);e.abs().gte(.1);)e=e.times(a),u+=5;for(r=Math.log(iu(2,u))/Math.LN10*2+5|0,s+=r,n=i=o=new h(pi),h.precision=s;;){if(i=Ht(i.times(e),s),n=n.times(++c),a=o.plus(Da(i,n,s)),Ko(a.d).slice(0,s)===Ko(o.d).slice(0,s)){for(;u--;)o=Ht(o.times(o),s);return h.precision=p,t==null?(un=!0,Ht(o,p)):o}o=a}}function In(e){for(var t=e.e*rn,n=e.d[0];n>=10;n/=10)t++;return t}function aO(e,t,n){if(t>e.LN10.sd())throw un=!0,n&&(e.precision=n),Error(Qi+"LN10 precision limit exceeded");return Ht(new e(e.LN10),t)}function Ws(e){for(var t="";e--;)t+="0";return t}function xp(e,t){var n,r,i,o,a,s,c,u,h,p=1,v=10,b=e,x=b.d,_=b.constructor,w=_.precision;if(b.s<1)throw Error(Qi+(b.s?"NaN":"-Infinity"));if(b.eq(pi))return new _(0);if(t==null?(un=!1,u=w):u=t,b.eq(10))return t==null&&(un=!0),aO(_,u);if(u+=v,_.precision=u,n=Ko(x),r=n.charAt(0),o=In(b),Math.abs(o)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)b=b.times(e),n=Ko(b.d),r=n.charAt(0),p++;o=In(b),r>1?(b=new _("0."+n),o++):b=new _(r+"."+n.slice(1))}else return c=aO(_,u+2,w).times(o+""),b=xp(new _(r+"."+n.slice(1)),u-v).plus(c),_.precision=w,t==null?(un=!0,Ht(b,w)):b;for(s=a=b=Da(b.minus(pi),b.plus(pi),u),h=Ht(b.times(b),u),i=3;;){if(a=Ht(a.times(h),u),c=s.plus(Da(a,new _(i),u)),Ko(c.d).slice(0,u)===Ko(s.d).slice(0,u))return s=s.times(2),o!==0&&(s=s.plus(aO(_,u+2,w).times(o+""))),s=Da(s,new _(p),u),_.precision=w,t==null?(un=!0,Ht(s,w)):s;s=c,i+=2}}function a6(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=rd(n/rn),e.d=[],r=(n+1)%rn,n<0&&(r+=rn),rRy||e.e<-Ry))throw Error(Oj+n)}else e.s=0,e.e=0,e.d=[0];return e}function Ht(e,t,n){var r,i,o,a,s,c,u,h,p=e.d;for(a=1,o=p[0];o>=10;o/=10)a++;if(r=t-a,r<0)r+=rn,i=t,u=p[h=0];else{if(h=Math.ceil((r+1)/rn),o=p.length,h>=o)return e;for(u=o=p[h],a=1;o>=10;o/=10)a++;r%=rn,i=r-rn+a}if(n!==void 0&&(o=iu(10,a-i-1),s=u/o%10|0,c=t<0||p[h+1]!==void 0||u%o,c=n<4?(s||c)&&(n==0||n==(e.s<0?3:2)):s>5||s==5&&(n==4||c||n==6&&(r>0?i>0?u/iu(10,a-i):0:p[h-1])%10&1||n==(e.s<0?8:7))),t<1||!p[0])return c?(o=In(e),p.length=1,t=t-o-1,p[0]=iu(10,(rn-t%rn)%rn),e.e=rd(-t/rn)||0):(p.length=1,p[0]=e.e=e.s=0),e;if(r==0?(p.length=h,o=1,h--):(p.length=h+1,o=iu(10,rn-r),p[h]=i>0?(u/iu(10,a-i)%iu(10,i)|0)*o:0),c)for(;;)if(h==0){(p[0]+=o)==Xn&&(p[0]=1,++e.e);break}else{if(p[h]+=o,p[h]!=Xn)break;p[h--]=0,o=1}for(r=p.length;p[--r]===0;)p.pop();if(un&&(e.e>Ry||e.e<-Ry))throw Error(Oj+In(e));return e}function sU(e,t){var n,r,i,o,a,s,c,u,h,p,v=e.constructor,b=v.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new v(e),un?Ht(t,b):t;if(c=e.d,p=t.d,r=t.e,u=e.e,c=c.slice(),a=u-r,a){for(h=a<0,h?(n=c,a=-a,s=p.length):(n=p,r=u,s=c.length),i=Math.max(Math.ceil(b/rn),s)+2,a>i&&(a=i,n.length=1),n.reverse(),i=a;i--;)n.push(0);n.reverse()}else{for(i=c.length,s=p.length,h=i0;--i)c[s++]=0;for(i=p.length;i>a;){if(c[--i]0?o=o.charAt(0)+"."+o.slice(1)+Ws(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+Ws(-i-1)+o,n&&(r=n-a)>0&&(o+=Ws(r))):i>=a?(o+=Ws(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+Ws(r))):((r=i+1)0&&(i+1===a&&(o+="."),o+=Ws(r))),e.s<0?"-"+o:o}function s6(e,t){if(e.length>t)return e.length=t,!0}function lU(e){var t,n,r;function i(o){var a=this;if(!(a instanceof i))return new i(o);if(a.constructor=i,o instanceof i){a.s=o.s,a.e=o.e,a.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(yu+o);if(o>0)a.s=1;else if(o<0)o=-o,a.s=-1;else{a.s=0,a.e=0,a.d=[0];return}if(o===~~o&&o<1e7){a.e=0,a.d=[o];return}return a6(a,o.toString())}else if(typeof o!="string")throw Error(yu+o);if(o.charCodeAt(0)===45?(o=o.slice(1),a.s=-1):a.s=1,Mve.test(o))a6(a,o);else throw Error(yu+o)}if(i.prototype=et,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=lU,i.config=i.set=Lve,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(yu+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(yu+n+": "+r);return this}var Sj=lU(Nve);pi=new Sj(1);const Vt=Sj;function Ive(e){return Bve(e)||Fve(e)||$ve(e)||Dve()}function Dve(){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 $ve(e,t){if(e){if(typeof e=="string")return wC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wC(e,t)}}function Fve(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Bve(e){if(Array.isArray(e))return wC(e)}function wC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=t?n.apply(void 0,i):e(t-a,l6(function(){for(var s=arguments.length,c=new Array(s),u=0;ue.length)&&(t=e.length);for(var n=0,r=new Array(t);n"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,o=void 0;try{for(var a=e[Symbol.iterator](),s;!(r=(s=a.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(c){i=!0,o=c}finally{try{!r&&a.return!=null&&a.return()}finally{if(i)throw o}}return n}}function tge(e){if(Array.isArray(e))return e}function hU(e){var t=wp(e,2),n=t[0],r=t[1],i=n,o=r;return n>r&&(i=r,o=n),[i,o]}function pU(e,t,n){if(e.lte(0))return new Vt(0);var r=hb.getDigitCount(e.toNumber()),i=new Vt(10).pow(r),o=e.div(i),a=r!==1?.05:.1,s=new Vt(Math.ceil(o.div(a).toNumber())).add(n).mul(a),c=s.mul(i);return t?c:new Vt(Math.ceil(c))}function nge(e,t,n){var r=1,i=new Vt(e);if(!i.isint()&&n){var o=Math.abs(e);o<1?(r=new Vt(10).pow(hb.getDigitCount(e)-1),i=new Vt(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new Vt(Math.floor(e)))}else e===0?i=new Vt(Math.floor((t-1)/2)):n||(i=new Vt(Math.floor(e)));var a=Math.floor((t-1)/2),s=Wve(Vve(function(c){return i.add(new Vt(c-a).mul(r)).toNumber()}),OC);return s(0,t)}function mU(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new Vt(0),tickMin:new Vt(0),tickMax:new Vt(0)};var o=pU(new Vt(t).sub(e).div(n-1),r,i),a;e<=0&&t>=0?a=new Vt(0):(a=new Vt(e).add(t).div(2),a=a.sub(new Vt(a).mod(o)));var s=Math.ceil(a.sub(e).div(o).toNumber()),c=Math.ceil(new Vt(t).sub(a).div(o).toNumber()),u=s+c+1;return u>n?mU(e,t,n,r,i+1):(u0?c+(n-u):c,s=t>0?s:s+(n-u)),{step:o,tickMin:a.sub(new Vt(s).mul(o)),tickMax:a.add(new Vt(c).mul(o))})}function rge(e){var t=wp(e,2),n=t[0],r=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=Math.max(i,2),s=hU([n,r]),c=wp(s,2),u=c[0],h=c[1];if(u===-1/0||h===1/0){var p=h===1/0?[u].concat(PC(OC(0,i-1).map(function(){return 1/0}))):[].concat(PC(OC(0,i-1).map(function(){return-1/0})),[h]);return n>r?SC(p):p}if(u===h)return nge(u,i,o);var v=mU(u,h,a,o),b=v.step,x=v.tickMin,_=v.tickMax,w=hb.rangeStep(x,_.add(new Vt(.1).mul(b)),b);return n>r?SC(w):w}function ige(e,t){var n=wp(e,2),r=n[0],i=n[1],o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=hU([r,i]),s=wp(a,2),c=s[0],u=s[1];if(c===-1/0||u===1/0)return[r,i];if(c===u)return[c];var h=Math.max(t,2),p=pU(new Vt(u).sub(c).div(h-1),o,0),v=[].concat(PC(hb.rangeStep(new Vt(c),new Vt(u).sub(new Vt(.99).mul(p)),p)),[u]);return r>i?SC(v):v}var oge=fU(rge),age=fU(ige),sge="Invariant failed";function ju(e,t){throw new Error(sge)}var lge=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Sf(e){"@babel/helpers - typeof";return Sf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sf(e)}function Ny(){return Ny=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mge(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function vge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gge(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,a=-1,s=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(s<=1)return 0;if(o&&o.axisType==="angleAxis"&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var c=o.range,u=0;u0?i[u-1].coordinate:i[s-1].coordinate,p=i[u].coordinate,v=u>=s-1?i[0].coordinate:i[u+1].coordinate,b=void 0;if(Pr(p-h)!==Pr(v-p)){var x=[];if(Pr(v-p)===Pr(c[1]-c[0])){b=v;var _=p+c[1]-c[0];x[0]=Math.min(_,(_+h)/2),x[1]=Math.max(_,(_+h)/2)}else{b=h;var w=v+c[1]-c[0];x[0]=Math.min(p,(w+p)/2),x[1]=Math.max(p,(w+p)/2)}var O=[Math.min(p,(b+p)/2),Math.max(p,(b+p)/2)];if(t>O[0]&&t<=O[1]||t>=x[0]&&t<=x[1]){a=i[u].index;break}}else{var P=Math.min(h,v),E=Math.max(h,v);if(t>(P+p)/2&&t<=(E+p)/2){a=i[u].index;break}}}else for(var T=0;T0&&T(r[T].coordinate+r[T-1].coordinate)/2&&t<=(r[T].coordinate+r[T+1].coordinate)/2||T===s-1&&t>(r[T].coordinate+r[T-1].coordinate)/2){a=r[T].index;break}return a},Pj=function(t){var n,r=t,i=r.type.displayName,o=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Pn(Pn({},t.type.defaultProps),t.props):t.props,a=o.stroke,s=o.fill,c;switch(i){case"Line":c=a;break;case"Area":case"Radar":c=a&&a!=="none"?a:s;break;default:c=s;break}return c},Mge=function(t){var n=t.barSize,r=t.totalSize,i=t.stackGroups,o=i===void 0?{}:i;if(!o)return{};for(var a={},s=Object.keys(o),c=0,u=s.length;c=0});if(O&&O.length){var P=O[0].type.defaultProps,E=P!==void 0?Pn(Pn({},P),O[0].props):O[0].props,T=E.barSize,A=E[w];a[A]||(a[A]=[]);var j=ft(T)?n:T;a[A].push({item:O[0],stackList:O.slice(1),barSize:ft(j)?void 0:Cr(j,r,0)})}}return a},Lge=function(t){var n=t.barGap,r=t.barCategoryGap,i=t.bandSize,o=t.sizeList,a=o===void 0?[]:o,s=t.maxBarSize,c=a.length;if(c<1)return null;var u=Cr(n,i,0,!0),h,p=[];if(a[0].barSize===+a[0].barSize){var v=!1,b=i/c,x=a.reduce(function(T,A){return T+A.barSize||0},0);x+=(c-1)*u,x>=i&&(x-=(c-1)*u,u=0),x>=i&&b>0&&(v=!0,b*=.9,x=c*b);var _=(i-x)/2>>0,w={offset:_-u,size:0};h=a.reduce(function(T,A){var j={item:A.item,position:{offset:w.offset+w.size+u,size:v?b:A.barSize}},N=[].concat(f6(T),[j]);return w=N[N.length-1].position,A.stackList&&A.stackList.length&&A.stackList.forEach(function($){N.push({item:$,position:w})}),N},p)}else{var O=Cr(r,i,0,!0);i-2*O-(c-1)*u<=0&&(u=0);var P=(i-2*O-(c-1)*u)/c;P>1&&(P>>=0);var E=s===+s?Math.min(P,s):P;h=a.reduce(function(T,A,j){var N=[].concat(f6(T),[{item:A.item,position:{offset:O+(P+u)*j+(P-E)/2,size:E}}]);return A.stackList&&A.stackList.length&&A.stackList.forEach(function($){N.push({item:$,position:N[N.length-1].position})}),N},p)}return h},Ige=function(t,n,r,i){var o=r.children,a=r.width,s=r.margin,c=a-(s.left||0)-(s.right||0),u=bU({children:o,legendWidth:c});if(u){var h=i||{},p=h.width,v=h.height,b=u.align,x=u.verticalAlign,_=u.layout;if((_==="vertical"||_==="horizontal"&&x==="middle")&&b!=="center"&&Ve(t[b]))return Pn(Pn({},t),{},rf({},b,t[b]+(p||0)));if((_==="horizontal"||_==="vertical"&&b==="center")&&x!=="middle"&&Ve(t[x]))return Pn(Pn({},t),{},rf({},x,t[x]+(v||0)))}return t},Dge=function(t,n,r){return ft(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},_U=function(t,n,r,i,o){var a=n.props.children,s=Ar(a,id).filter(function(u){return Dge(i,o,u.props.direction)});if(s&&s.length){var c=s.map(function(u){return u.props.dataKey});return t.reduce(function(u,h){var p=on(h,r);if(ft(p))return u;var v=Array.isArray(p)?[fb(p),Gs(p)]:[p,p],b=c.reduce(function(x,_){var w=on(h,_,0),O=v[0]-Math.abs(Array.isArray(w)?w[0]:w),P=v[1]+Math.abs(Array.isArray(w)?w[1]:w);return[Math.min(O,x[0]),Math.max(P,x[1])]},[1/0,-1/0]);return[Math.min(b[0],u[0]),Math.max(b[1],u[1])]},[1/0,-1/0])}return null},$ge=function(t,n,r,i,o){var a=n.map(function(s){return _U(t,s,r,o,i)}).filter(function(s){return!ft(s)});return a&&a.length?a.reduce(function(s,c){return[Math.min(s[0],c[0]),Math.max(s[1],c[1])]},[1/0,-1/0]):null},xU=function(t,n,r,i,o){var a=n.map(function(c){var u=c.props.dataKey;return r==="number"&&u&&_U(t,c,u,i)||Dh(t,u,r,o)});if(r==="number")return a.reduce(function(c,u){return[Math.min(c[0],u[0]),Math.max(c[1],u[1])]},[1/0,-1/0]);var s={};return a.reduce(function(c,u){for(var h=0,p=u.length;h=2?Pr(s[0]-s[1])*2*u:u,n&&(t.ticks||t.niceTicks)){var h=(t.ticks||t.niceTicks).map(function(p){var v=o?o.indexOf(p):p;return{coordinate:i(v)+u,value:p,offset:u}});return h.filter(function(p){return!Jf(p.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(p,v){return{coordinate:i(p)+u,value:p,index:v,offset:u}}):i.ticks&&!r?i.ticks(t.tickCount).map(function(p){return{coordinate:i(p)+u,value:p,offset:u}}):i.domain().map(function(p,v){return{coordinate:i(p)+u,value:o?o[p]:p,index:v,offset:u}})},sO=new WeakMap,Xv=function(t,n){if(typeof n!="function")return t;sO.has(t)||sO.set(t,new WeakMap);var r=sO.get(t);if(r.has(n))return r.get(n);var i=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,i),i},SU=function(t,n,r){var i=t.scale,o=t.type,a=t.layout,s=t.axisType;if(i==="auto")return a==="radial"&&s==="radiusAxis"?{scale:vp(),realScaleType:"band"}:a==="radial"&&s==="angleAxis"?{scale:Ty(),realScaleType:"linear"}:o==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:Ih(),realScaleType:"point"}:o==="category"?{scale:vp(),realScaleType:"band"}:{scale:Ty(),realScaleType:"linear"};if(am(i)){var c="scale".concat(Z0(i));return{scale:(XI[c]||Ih)(),realScaleType:XI[c]?c:"point"}}return dt(i)?{scale:i}:{scale:Ih(),realScaleType:"point"}},h6=1e-4,PU=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,i=t.range(),o=Math.min(i[0],i[1])-h6,a=Math.max(i[0],i[1])+h6,s=t(n[0]),c=t(n[r-1]);(sa||ca)&&t.domain([n[0],n[r-1]])}},Fge=function(t,n){if(!t)return null;for(var r=0,i=t.length;ri)&&(o[1]=i),o[0]>i&&(o[0]=i),o[1]=0?(t[s][r][0]=o,t[s][r][1]=o+c,o=t[s][r][1]):(t[s][r][0]=a,t[s][r][1]=a+c,a=t[s][r][1])}},zge=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r=0?(t[a][r][0]=o,t[a][r][1]=o+s,o=t[a][r][1]):(t[a][r][0]=0,t[a][r][1]=0)}},Vge={sign:Uge,expand:Ace,none:vf,silhouette:kce,wiggle:Rce,positive:zge},Wge=function(t,n,r){var i=n.map(function(s){return s.props.dataKey}),o=Vge[r],a=jce().keys(i).value(function(s,c){return+on(s,c,0)}).order(iC).offset(o);return a(t)},qge=function(t,n,r,i,o,a){if(!t)return null;var s=a?n.reverse():n,c={},u=s.reduce(function(p,v){var b,x=(b=v.type)!==null&&b!==void 0&&b.defaultProps?Pn(Pn({},v.type.defaultProps),v.props):v.props,_=x.stackId,w=x.hide;if(w)return p;var O=x[r],P=p[O]||{hasStack:!1,stackGroups:{}};if(Wn(_)){var E=P.stackGroups[_]||{numericAxisId:r,cateAxisId:i,items:[]};E.items.push(v),P.hasStack=!0,P.stackGroups[_]=E}else P.stackGroups[vl("_stackId_")]={numericAxisId:r,cateAxisId:i,items:[v]};return Pn(Pn({},p),{},rf({},O,P))},c),h={};return Object.keys(u).reduce(function(p,v){var b=u[v];if(b.hasStack){var x={};b.stackGroups=Object.keys(b.stackGroups).reduce(function(_,w){var O=b.stackGroups[w];return Pn(Pn({},_),{},rf({},w,{numericAxisId:r,cateAxisId:i,items:O.items,stackedData:Wge(t,O.items,o)}))},x)}return Pn(Pn({},p),{},rf({},v,b))},h)},CU=function(t,n){var r=n.realScaleType,i=n.type,o=n.tickCount,a=n.originalDomain,s=n.allowDecimals,c=r||n.scale;if(c!=="auto"&&c!=="linear")return null;if(o&&i==="number"&&a&&(a[0]==="auto"||a[1]==="auto")){var u=t.domain();if(!u.length)return null;var h=oge(u,o,s);return t.domain([fb(h),Gs(h)]),{niceTicks:h}}if(o&&i==="number"){var p=t.domain(),v=age(p,o,s);return{niceTicks:v}}return null};function Pf(e){var t=e.axis,n=e.ticks,r=e.bandSize,i=e.entry,o=e.index,a=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!ft(i[t.dataKey])){var s=cy(n,"value",i[t.dataKey]);if(s)return s.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var c=on(i,ft(a)?t.dataKey:a);return ft(c)?null:t.scale(c)}var p6=function(t){var n=t.axis,r=t.ticks,i=t.offset,o=t.bandSize,a=t.entry,s=t.index;if(n.type==="category")return r[s]?r[s].coordinate+i:null;var c=on(a,n.dataKey,n.domain[s]);return ft(c)?null:n.scale(c)-o/2+i},Hge=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var i=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);return i<=0&&o>=0?0:o<0?o:i}return r[0]},Gge=function(t,n){var r,i=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Pn(Pn({},t.type.defaultProps),t.props):t.props,o=i.stackId;if(Wn(o)){var a=n[o];if(a){var s=a.items.indexOf(t);return s>=0?a.stackedData[s]:null}}return null},Kge=function(t){return t.reduce(function(n,r){return[fb(r.concat([n[0]]).filter(Ve)),Gs(r.concat([n[1]]).filter(Ve))]},[1/0,-1/0])},EU=function(t,n,r){return Object.keys(t).reduce(function(i,o){var a=t[o],s=a.stackedData,c=s.reduce(function(u,h){var p=Kge(h.slice(n,r+1));return[Math.min(u[0],p[0]),Math.max(u[1],p[1])]},[1/0,-1/0]);return[Math.min(c[0],i[0]),Math.max(c[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},m6=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,v6=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,jC=function(t,n,r){if(dt(t))return t(n,r);if(!Array.isArray(t))return n;var i=[];if(Ve(t[0]))i[0]=r?t[0]:Math.min(t[0],n[0]);else if(m6.test(t[0])){var o=+m6.exec(t[0])[1];i[0]=n[0]-o}else dt(t[0])?i[0]=t[0](n[0]):i[0]=n[0];if(Ve(t[1]))i[1]=r?t[1]:Math.max(t[1],n[1]);else if(v6.test(t[1])){var a=+v6.exec(t[1])[1];i[1]=n[1]+a}else dt(t[1])?i[1]=t[1](n[1]):i[1]=n[1];return i},Ly=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!r||i>0)return i}if(t&&n&&n.length>=2){for(var o=QT(n,function(p){return p.coordinate}),a=1/0,s=1,c=o.length;se.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},rye=function(t,n,r,i,o){var a=t.width,s=t.height,c=t.startAngle,u=t.endAngle,h=Cr(t.cx,a,a/2),p=Cr(t.cy,s,s/2),v=AU(a,s,r),b=Cr(t.innerRadius,v,0),x=Cr(t.outerRadius,v,v*.8),_=Object.keys(n);return _.reduce(function(w,O){var P=n[O],E=P.domain,T=P.reversed,A;if(ft(P.range))i==="angleAxis"?A=[c,u]:i==="radiusAxis"&&(A=[b,x]),T&&(A=[A[1],A[0]]);else{A=P.range;var j=A,N=Xge(j,2);c=N[0],u=N[1]}var $=SU(P,o),W=$.realScaleType,B=$.scale;B.domain(E).range(A),PU(B);var V=CU(B,ka(ka({},P),{},{realScaleType:W})),H=ka(ka(ka({},P),V),{},{range:A,radius:x,realScaleType:W,scale:B,cx:h,cy:p,innerRadius:b,outerRadius:x,startAngle:c,endAngle:u});return ka(ka({},w),{},jU({},O,H))},{})},iye=function(t,n){var r=t.x,i=t.y,o=n.x,a=n.y;return Math.sqrt(Math.pow(r-o,2)+Math.pow(i-a,2))},oye=function(t,n){var r=t.x,i=t.y,o=n.cx,a=n.cy,s=iye({x:r,y:i},{x:o,y:a});if(s<=0)return{radius:s};var c=(r-o)/s,u=Math.acos(c);return i>a&&(u=2*Math.PI-u),{radius:s,angle:nye(u),angleInRadian:u}},aye=function(t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),o=Math.floor(r/360),a=Math.min(i,o);return{startAngle:n-a*360,endAngle:r-a*360}},sye=function(t,n){var r=n.startAngle,i=n.endAngle,o=Math.floor(r/360),a=Math.floor(i/360),s=Math.min(o,a);return t+s*360},_6=function(t,n){var r=t.x,i=t.y,o=oye({x:r,y:i},n),a=o.radius,s=o.angle,c=n.innerRadius,u=n.outerRadius;if(au)return!1;if(a===0)return!0;var h=aye(n),p=h.startAngle,v=h.endAngle,b=s,x;if(p<=v){for(;b>v;)b-=360;for(;b=p&&b<=v}else{for(;b>p;)b-=360;for(;b=v&&b<=p}return x?ka(ka({},n),{},{radius:a,angle:sye(b,n)}):null},kU=function(t){return!F.isValidElement(t)&&!dt(t)&&typeof t!="boolean"?t.className:""};function Cp(e){"@babel/helpers - typeof";return Cp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cp(e)}var lye=["offset"];function uye(e){return hye(e)||dye(e)||fye(e)||cye()}function cye(){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 fye(e,t){if(e){if(typeof e=="string")return AC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return AC(e,t)}}function dye(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hye(e){if(Array.isArray(e))return AC(e)}function AC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mye(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function x6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Vn(e){for(var t=1;t=0?1:-1,E,T;i==="insideStart"?(E=b+P*a,T=_):i==="insideEnd"?(E=x-P*a,T=!_):i==="end"&&(E=x+P*a,T=_),T=O<=0?T:!T;var A=Qt(u,h,w,E),j=Qt(u,h,w,E+(T?1:-1)*359),N="M".concat(A.x,",").concat(A.y,` + A`).concat(w,",").concat(w,",0,1,").concat(T?0:1,`, + `).concat(j.x,",").concat(j.y),$=ft(t.id)?vl("recharts-radial-line-"):t.id;return Z.createElement("text",Ep({},r,{dominantBaseline:"central",className:Be("recharts-radial-bar-label",s)}),Z.createElement("defs",null,Z.createElement("path",{id:$,d:N})),Z.createElement("textPath",{xlinkHref:"#".concat($)},n))},wye=function(t){var n=t.viewBox,r=t.offset,i=t.position,o=n,a=o.cx,s=o.cy,c=o.innerRadius,u=o.outerRadius,h=o.startAngle,p=o.endAngle,v=(h+p)/2;if(i==="outside"){var b=Qt(a,s,u+r,v),x=b.x,_=b.y;return{x,y:_,textAnchor:x>=a?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"end"};var w=(c+u)/2,O=Qt(a,s,w,v),P=O.x,E=O.y;return{x:P,y:E,textAnchor:"middle",verticalAnchor:"middle"}},Oye=function(t){var n=t.viewBox,r=t.parentViewBox,i=t.offset,o=t.position,a=n,s=a.x,c=a.y,u=a.width,h=a.height,p=h>=0?1:-1,v=p*i,b=p>0?"end":"start",x=p>0?"start":"end",_=u>=0?1:-1,w=_*i,O=_>0?"end":"start",P=_>0?"start":"end";if(o==="top"){var E={x:s+u/2,y:c-p*i,textAnchor:"middle",verticalAnchor:b};return Vn(Vn({},E),r?{height:Math.max(c-r.y,0),width:u}:{})}if(o==="bottom"){var T={x:s+u/2,y:c+h+v,textAnchor:"middle",verticalAnchor:x};return Vn(Vn({},T),r?{height:Math.max(r.y+r.height-(c+h),0),width:u}:{})}if(o==="left"){var A={x:s-w,y:c+h/2,textAnchor:O,verticalAnchor:"middle"};return Vn(Vn({},A),r?{width:Math.max(A.x-r.x,0),height:h}:{})}if(o==="right"){var j={x:s+u+w,y:c+h/2,textAnchor:P,verticalAnchor:"middle"};return Vn(Vn({},j),r?{width:Math.max(r.x+r.width-j.x,0),height:h}:{})}var N=r?{width:u,height:h}:{};return o==="insideLeft"?Vn({x:s+w,y:c+h/2,textAnchor:P,verticalAnchor:"middle"},N):o==="insideRight"?Vn({x:s+u-w,y:c+h/2,textAnchor:O,verticalAnchor:"middle"},N):o==="insideTop"?Vn({x:s+u/2,y:c+v,textAnchor:"middle",verticalAnchor:x},N):o==="insideBottom"?Vn({x:s+u/2,y:c+h-v,textAnchor:"middle",verticalAnchor:b},N):o==="insideTopLeft"?Vn({x:s+w,y:c+v,textAnchor:P,verticalAnchor:x},N):o==="insideTopRight"?Vn({x:s+u-w,y:c+v,textAnchor:O,verticalAnchor:x},N):o==="insideBottomLeft"?Vn({x:s+w,y:c+h-v,textAnchor:P,verticalAnchor:b},N):o==="insideBottomRight"?Vn({x:s+u-w,y:c+h-v,textAnchor:O,verticalAnchor:b},N):Qf(o)&&(Ve(o.x)||uu(o.x))&&(Ve(o.y)||uu(o.y))?Vn({x:s+Cr(o.x,u),y:c+Cr(o.y,h),textAnchor:"end",verticalAnchor:"end"},N):Vn({x:s+u/2,y:c+h/2,textAnchor:"middle",verticalAnchor:"middle"},N)},Sye=function(t){return"cx"in t&&Ve(t.cx)};function Jn(e){var t=e.offset,n=t===void 0?5:t,r=pye(e,lye),i=Vn({offset:n},r),o=i.viewBox,a=i.position,s=i.value,c=i.children,u=i.content,h=i.className,p=h===void 0?"":h,v=i.textBreakAll;if(!o||ft(s)&&ft(c)&&!F.isValidElement(u)&&!dt(u))return null;if(F.isValidElement(u))return F.cloneElement(u,i);var b;if(dt(u)){if(b=F.createElement(u,i),F.isValidElement(b))return b}else b=bye(i);var x=Sye(o),_=it(i,!0);if(x&&(a==="insideStart"||a==="insideEnd"||a==="end"))return xye(i,b,_);var w=x?wye(i):Oye(i);return Z.createElement(Eu,Ep({className:Be("recharts-label",p)},_,w,{breakAll:v}),b)}Jn.displayName="Label";var RU=function(t){var n=t.cx,r=t.cy,i=t.angle,o=t.startAngle,a=t.endAngle,s=t.r,c=t.radius,u=t.innerRadius,h=t.outerRadius,p=t.x,v=t.y,b=t.top,x=t.left,_=t.width,w=t.height,O=t.clockWise,P=t.labelViewBox;if(P)return P;if(Ve(_)&&Ve(w)){if(Ve(p)&&Ve(v))return{x:p,y:v,width:_,height:w};if(Ve(b)&&Ve(x))return{x:b,y:x,width:_,height:w}}return Ve(p)&&Ve(v)?{x:p,y:v,width:0,height:0}:Ve(n)&&Ve(r)?{cx:n,cy:r,startAngle:o||i||0,endAngle:a||i||0,innerRadius:u||0,outerRadius:h||c||s||0,clockWise:O}:t.viewBox?t.viewBox:{}},Pye=function(t,n){return t?t===!0?Z.createElement(Jn,{key:"label-implicit",viewBox:n}):Wn(t)?Z.createElement(Jn,{key:"label-implicit",viewBox:n,value:t}):F.isValidElement(t)?t.type===Jn?F.cloneElement(t,{key:"label-implicit",viewBox:n}):Z.createElement(Jn,{key:"label-implicit",content:t,viewBox:n}):dt(t)?Z.createElement(Jn,{key:"label-implicit",content:t,viewBox:n}):Qf(t)?Z.createElement(Jn,Ep({viewBox:n},t,{key:"label-implicit"})):null:null},Cye=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var i=t.children,o=RU(t),a=Ar(i,Jn).map(function(c,u){return F.cloneElement(c,{viewBox:n||o,key:"label-".concat(u)})});if(!r)return a;var s=Pye(t.label,n||o);return[s].concat(uye(a))};Jn.parseViewBox=RU;Jn.renderCallByParent=Cye;var lO,w6;function Eye(){if(w6)return lO;w6=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return lO=e,lO}var Tye=Eye();const jye=Nt(Tye);function Tp(e){"@babel/helpers - typeof";return Tp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tp(e)}var Aye=["valueAccessor"],kye=["data","dataKey","clockWise","id","textBreakAll"];function Rye(e){return Iye(e)||Lye(e)||Mye(e)||Nye()}function Nye(){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 Mye(e,t){if(e){if(typeof e=="string")return kC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kC(e,t)}}function Lye(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Iye(e){if(Array.isArray(e))return kC(e)}function kC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Bye(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Uye=function(t){return Array.isArray(t.value)?jye(t.value):t.value};function Oo(e){var t=e.valueAccessor,n=t===void 0?Uye:t,r=P6(e,Aye),i=r.data,o=r.dataKey,a=r.clockWise,s=r.id,c=r.textBreakAll,u=P6(r,kye);return!i||!i.length?null:Z.createElement(Pt,{className:"recharts-label-list"},i.map(function(h,p){var v=ft(o)?n(h,p):on(h&&h.payload,o),b=ft(s)?{}:{id:"".concat(s,"-").concat(p)};return Z.createElement(Jn,Dy({},it(h,!0),u,b,{parentViewBox:h.parentViewBox,value:v,textBreakAll:c,viewBox:Jn.parseViewBox(ft(a)?h:S6(S6({},h),{},{clockWise:a})),key:"label-".concat(p),index:p}))}))}Oo.displayName="LabelList";function zye(e,t){return e?e===!0?Z.createElement(Oo,{key:"labelList-implicit",data:t}):Z.isValidElement(e)||dt(e)?Z.createElement(Oo,{key:"labelList-implicit",data:t,content:e}):Qf(e)?Z.createElement(Oo,Dy({data:t},e,{key:"labelList-implicit"})):null:null}function Vye(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=Ar(r,Oo).map(function(a,s){return F.cloneElement(a,{data:t,key:"labelList-".concat(s)})});if(!n)return i;var o=zye(e.label,t);return[o].concat(Rye(i))}Oo.renderCallByParent=Vye;function jp(e){"@babel/helpers - typeof";return jp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jp(e)}function RC(){return RC=Object.assign?Object.assign.bind():function(e){for(var t=1;t180),",").concat(+(a>u),`, + `).concat(p.x,",").concat(p.y,` + `);if(i>0){var b=Qt(n,r,i,a),x=Qt(n,r,i,u);v+="L ".concat(x.x,",").concat(x.y,` + A `).concat(i,",").concat(i,`,0, + `).concat(+(Math.abs(c)>180),",").concat(+(a<=u),`, + `).concat(b.x,",").concat(b.y," Z")}else v+="L ".concat(n,",").concat(r," Z");return v},Kye=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,o=t.outerRadius,a=t.cornerRadius,s=t.forceCornerRadius,c=t.cornerIsExternal,u=t.startAngle,h=t.endAngle,p=Pr(h-u),v=Qv({cx:n,cy:r,radius:o,angle:u,sign:p,cornerRadius:a,cornerIsExternal:c}),b=v.circleTangency,x=v.lineTangency,_=v.theta,w=Qv({cx:n,cy:r,radius:o,angle:h,sign:-p,cornerRadius:a,cornerIsExternal:c}),O=w.circleTangency,P=w.lineTangency,E=w.theta,T=c?Math.abs(u-h):Math.abs(u-h)-_-E;if(T<0)return s?"M ".concat(x.x,",").concat(x.y,` + a`).concat(a,",").concat(a,",0,0,1,").concat(a*2,`,0 + a`).concat(a,",").concat(a,",0,0,1,").concat(-a*2,`,0 + `):NU({cx:n,cy:r,innerRadius:i,outerRadius:o,startAngle:u,endAngle:h});var A="M ".concat(x.x,",").concat(x.y,` + A`).concat(a,",").concat(a,",0,0,").concat(+(p<0),",").concat(b.x,",").concat(b.y,` + A`).concat(o,",").concat(o,",0,").concat(+(T>180),",").concat(+(p<0),",").concat(O.x,",").concat(O.y,` + A`).concat(a,",").concat(a,",0,0,").concat(+(p<0),",").concat(P.x,",").concat(P.y,` + `);if(i>0){var j=Qv({cx:n,cy:r,radius:i,angle:u,sign:p,isExternal:!0,cornerRadius:a,cornerIsExternal:c}),N=j.circleTangency,$=j.lineTangency,W=j.theta,B=Qv({cx:n,cy:r,radius:i,angle:h,sign:-p,isExternal:!0,cornerRadius:a,cornerIsExternal:c}),V=B.circleTangency,H=B.lineTangency,J=B.theta,Q=c?Math.abs(u-h):Math.abs(u-h)-W-J;if(Q<0&&a===0)return"".concat(A,"L").concat(n,",").concat(r,"Z");A+="L".concat(H.x,",").concat(H.y,` + A`).concat(a,",").concat(a,",0,0,").concat(+(p<0),",").concat(V.x,",").concat(V.y,` + A`).concat(i,",").concat(i,",0,").concat(+(Q>180),",").concat(+(p>0),",").concat(N.x,",").concat(N.y,` + A`).concat(a,",").concat(a,",0,0,").concat(+(p<0),",").concat($.x,",").concat($.y,"Z")}else A+="L".concat(n,",").concat(r,"Z");return A},Yye={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},MU=function(t){var n=E6(E6({},Yye),t),r=n.cx,i=n.cy,o=n.innerRadius,a=n.outerRadius,s=n.cornerRadius,c=n.forceCornerRadius,u=n.cornerIsExternal,h=n.startAngle,p=n.endAngle,v=n.className;if(a0&&Math.abs(h-p)<360?w=Kye({cx:r,cy:i,innerRadius:o,outerRadius:a,cornerRadius:Math.min(_,x/2),forceCornerRadius:c,cornerIsExternal:u,startAngle:h,endAngle:p}):w=NU({cx:r,cy:i,innerRadius:o,outerRadius:a,startAngle:h,endAngle:p}),Z.createElement("path",RC({},it(n,!0),{className:b,d:w,role:"img"}))};function Ap(e){"@babel/helpers - typeof";return Ap=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ap(e)}function NC(){return NC=Object.assign?Object.assign.bind():function(e){for(var t=1;t0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function o0e(e,t){return od(e.getTime(),t.getTime())}function L6(e,t,n){if(e.size!==t.size)return!1;for(var r={},i=e.entries(),o=0,a,s;(a=i.next())&&!a.done;){for(var c=t.entries(),u=!1,h=0;(s=c.next())&&!s.done;){var p=a.value,v=p[0],b=p[1],x=s.value,_=x[0],w=x[1];!u&&!r[h]&&(u=n.equals(v,_,o,h,e,t,n)&&n.equals(b,w,v,_,e,t,n))&&(r[h]=!0),h++}if(!u)return!1;o++}return!0}function a0e(e,t,n){var r=M6(e),i=r.length;if(M6(t).length!==i)return!1;for(var o;i-- >0;)if(o=r[i],o===IU&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!LU(t,o)||!n.equals(e[o],t[o],o,o,e,t,n))return!1;return!0}function mh(e,t,n){var r=R6(e),i=r.length;if(R6(t).length!==i)return!1;for(var o,a,s;i-- >0;)if(o=r[i],o===IU&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!LU(t,o)||!n.equals(e[o],t[o],o,o,e,t,n)||(a=N6(e,o),s=N6(t,o),(a||s)&&(!a||!s||a.configurable!==s.configurable||a.enumerable!==s.enumerable||a.writable!==s.writable)))return!1;return!0}function s0e(e,t){return od(e.valueOf(),t.valueOf())}function l0e(e,t){return e.source===t.source&&e.flags===t.flags}function I6(e,t,n){if(e.size!==t.size)return!1;for(var r={},i=e.values(),o,a;(o=i.next())&&!o.done;){for(var s=t.values(),c=!1,u=0;(a=s.next())&&!a.done;)!c&&!r[u]&&(c=n.equals(o.value,a.value,o.value,a.value,e,t,n))&&(r[u]=!0),u++;if(!c)return!1}return!0}function u0e(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}var c0e="[object Arguments]",f0e="[object Boolean]",d0e="[object Date]",h0e="[object Map]",p0e="[object Number]",m0e="[object Object]",v0e="[object RegExp]",g0e="[object Set]",y0e="[object String]",b0e=Array.isArray,D6=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,$6=Object.assign,_0e=Object.prototype.toString.call.bind(Object.prototype.toString);function x0e(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areMapsEqual,i=e.areObjectsEqual,o=e.arePrimitiveWrappersEqual,a=e.areRegExpsEqual,s=e.areSetsEqual,c=e.areTypedArraysEqual;return function(h,p,v){if(h===p)return!0;if(h==null||p==null||typeof h!="object"||typeof p!="object")return h!==h&&p!==p;var b=h.constructor;if(b!==p.constructor)return!1;if(b===Object)return i(h,p,v);if(b0e(h))return t(h,p,v);if(D6!=null&&D6(h))return c(h,p,v);if(b===Date)return n(h,p,v);if(b===RegExp)return a(h,p,v);if(b===Map)return r(h,p,v);if(b===Set)return s(h,p,v);var x=_0e(h);return x===d0e?n(h,p,v):x===v0e?a(h,p,v):x===h0e?r(h,p,v):x===g0e?s(h,p,v):x===m0e?typeof h.then!="function"&&typeof p.then!="function"&&i(h,p,v):x===c0e?i(h,p,v):x===f0e||x===p0e||x===y0e?o(h,p,v):!1}}function w0e(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,i={areArraysEqual:r?mh:i0e,areDatesEqual:o0e,areMapsEqual:r?k6(L6,mh):L6,areObjectsEqual:r?mh:a0e,arePrimitiveWrappersEqual:s0e,areRegExpsEqual:l0e,areSetsEqual:r?k6(I6,mh):I6,areTypedArraysEqual:r?mh:u0e};if(n&&(i=$6({},i,n(i))),t){var o=eg(i.areArraysEqual),a=eg(i.areMapsEqual),s=eg(i.areObjectsEqual),c=eg(i.areSetsEqual);i=$6({},i,{areArraysEqual:o,areMapsEqual:a,areObjectsEqual:s,areSetsEqual:c})}return i}function O0e(e){return function(t,n,r,i,o,a,s){return e(t,n,s)}}function S0e(e){var t=e.circular,n=e.comparator,r=e.createState,i=e.equals,o=e.strict;if(r)return function(c,u){var h=r(),p=h.cache,v=p===void 0?t?new WeakMap:void 0:p,b=h.meta;return n(c,u,{cache:v,equals:i,meta:b,strict:o})};if(t)return function(c,u){return n(c,u,{cache:new WeakMap,equals:i,meta:void 0,strict:o})};var a={cache:void 0,equals:i,meta:void 0,strict:o};return function(c,u){return n(c,u,a)}}var P0e=bl();bl({strict:!0});bl({circular:!0});bl({circular:!0,strict:!0});bl({createInternalComparator:function(){return od}});bl({strict:!0,createInternalComparator:function(){return od}});bl({circular:!0,createInternalComparator:function(){return od}});bl({circular:!0,createInternalComparator:function(){return od},strict:!0});function bl(e){e===void 0&&(e={});var t=e.circular,n=t===void 0?!1:t,r=e.createInternalComparator,i=e.createState,o=e.strict,a=o===void 0?!1:o,s=w0e(e),c=x0e(s),u=r?r(c):O0e(c);return S0e({circular:n,comparator:c,createState:i,equals:u,strict:a})}function C0e(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function F6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function i(o){n<0&&(n=o),o-n>t?(e(o),n=-1):C0e(i)};requestAnimationFrame(r)}function MC(e){"@babel/helpers - typeof";return MC=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},MC(e)}function E0e(e){return k0e(e)||A0e(e)||j0e(e)||T0e()}function T0e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function j0e(e,t){if(e){if(typeof e=="string")return B6(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return B6(e,t)}}function B6(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?1:O<0?0:O},_=function(O){for(var P=O>1?1:O,E=P,T=0;T<8;++T){var A=p(E)-P,j=b(E);if(Math.abs(A-P)<$y||j<$y)return v(E);E=x(E-A/j)}return v(E)};return _.isStepper=!1,_},G0e=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,i=t.damping,o=i===void 0?8:i,a=t.dt,s=a===void 0?17:a,c=function(h,p,v){var b=-(h-p)*r,x=v*o,_=v+(b-x)*s/1e3,w=v*s/1e3+h;return Math.abs(w-p)<$y&&Math.abs(_)<$y?[p,0]:[w,_]};return c.isStepper=!0,c.dt=s,c},K0e=function(){for(var t=arguments.length,n=new Array(t),r=0;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function lbe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function uO(e){return dbe(e)||fbe(e)||cbe(e)||ube()}function ube(){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 cbe(e,t){if(e){if(typeof e=="string")return FC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return FC(e,t)}}function fbe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function dbe(e){if(Array.isArray(e))return FC(e)}function FC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"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 By(e){return By=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},By(e)}var Ji=function(e){gbe(n,e);var t=ybe(n);function n(r,i){var o;hbe(this,n),o=t.call(this,r,i);var a=o.props,s=a.isActive,c=a.attributeName,u=a.from,h=a.to,p=a.steps,v=a.children,b=a.duration;if(o.handleStyleChange=o.handleStyleChange.bind(zC(o)),o.changeStyle=o.changeStyle.bind(zC(o)),!s||b<=0)return o.state={style:{}},typeof v=="function"&&(o.state={style:h}),UC(o);if(p&&p.length)o.state={style:p[0].style};else if(u){if(typeof v=="function")return o.state={style:u},UC(o);o.state={style:c?Ph({},c,u):u}}else o.state={style:{}};return o}return mbe(n,[{key:"componentDidMount",value:function(){var i=this.props,o=i.isActive,a=i.canBegin;this.mounted=!0,!(!o||!a)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var o=this.props,a=o.isActive,s=o.canBegin,c=o.attributeName,u=o.shouldReAnimate,h=o.to,p=o.from,v=this.state.style;if(s){if(!a){var b={style:c?Ph({},c,h):h};this.state&&v&&(c&&v[c]!==h||!c&&v!==h)&&this.setState(b);return}if(!(P0e(i.to,h)&&i.canBegin&&i.isActive)){var x=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var _=x||u?p:i.to;if(this.state&&v){var w={style:c?Ph({},c,_):_};(c&&v[c]!==_||!c&&v!==_)&&this.setState(w)}this.runAnimation(mo(mo({},this.props),{},{from:_,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var o=this,a=i.from,s=i.to,c=i.duration,u=i.easing,h=i.begin,p=i.onAnimationEnd,v=i.onAnimationStart,b=obe(a,s,K0e(u),c,this.changeStyle),x=function(){o.stopJSAnimation=b()};this.manager.start([v,h,x,c,p])}},{key:"runStepAnimation",value:function(i){var o=this,a=i.steps,s=i.begin,c=i.onAnimationStart,u=a[0],h=u.style,p=u.duration,v=p===void 0?0:p,b=function(_,w,O){if(O===0)return _;var P=w.duration,E=w.easing,T=E===void 0?"ease":E,A=w.style,j=w.properties,N=w.onAnimationEnd,$=O>0?a[O-1]:w,W=j||Object.keys(A);if(typeof T=="function"||T==="spring")return[].concat(uO(_),[o.runJSAnimation.bind(o,{from:$.style,to:A,duration:P,easing:T}),P]);var B=V6(W,P,T),V=mo(mo(mo({},$.style),A),{},{transition:B});return[].concat(uO(_),[V,P,N]).filter(I0e)};return this.manager.start([c].concat(uO(a.reduce(b,[h,Math.max(v,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=R0e());var o=i.begin,a=i.duration,s=i.attributeName,c=i.to,u=i.easing,h=i.onAnimationStart,p=i.onAnimationEnd,v=i.steps,b=i.children,x=this.manager;if(this.unSubscribe=x.subscribe(this.handleStyleChange),typeof u=="function"||typeof b=="function"||u==="spring"){this.runJSAnimation(i);return}if(v.length>1){this.runStepAnimation(i);return}var _=s?Ph({},s,c):c,w=V6(Object.keys(_),a,u);x.start([h,o,mo(mo({},_),{},{transition:w}),a,p])}},{key:"render",value:function(){var i=this.props,o=i.children;i.begin;var a=i.duration;i.attributeName,i.easing;var s=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var c=sbe(i,abe),u=F.Children.count(o),h=this.state.style;if(typeof o=="function")return o(h);if(!s||u===0||a<=0)return o;var p=function(b){var x=b.props,_=x.style,w=_===void 0?{}:_,O=x.className,P=F.cloneElement(b,mo(mo({},c),{},{style:mo(mo({},w),h),className:O}));return P};return u===1?p(F.Children.only(o)):Z.createElement("div",null,F.Children.map(o,function(v){return p(v)}))}}]),n}(F.PureComponent);Ji.displayName="Animate";Ji.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Ji.propTypes={from:q.oneOfType([q.object,q.string]),to:q.oneOfType([q.object,q.string]),attributeName:q.string,duration:q.number,begin:q.number,easing:q.oneOfType([q.string,q.func]),steps:q.arrayOf(q.shape({duration:q.number.isRequired,style:q.object.isRequired,easing:q.oneOfType([q.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),q.func]),properties:q.arrayOf("string"),onAnimationEnd:q.func})),children:q.oneOfType([q.node,q.func]),isActive:q.bool,canBegin:q.bool,onAnimationEnd:q.func,shouldReAnimate:q.bool,onAnimationStart:q.func,onAnimationReStart:q.func};q.object,q.object,q.object,q.element;q.object,q.object,q.object,q.oneOfType([q.array,q.element]),q.any;function Np(e){"@babel/helpers - typeof";return Np=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Np(e)}function Uy(){return Uy=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0?1:-1,c=r>=0?1:-1,u=i>=0&&r>=0||i<0&&r<0?1:0,h;if(a>0&&o instanceof Array){for(var p=[0,0,0,0],v=0,b=4;va?a:o[v];h="M".concat(t,",").concat(n+s*p[0]),p[0]>0&&(h+="A ".concat(p[0],",").concat(p[0],",0,0,").concat(u,",").concat(t+c*p[0],",").concat(n)),h+="L ".concat(t+r-c*p[1],",").concat(n),p[1]>0&&(h+="A ".concat(p[1],",").concat(p[1],",0,0,").concat(u,`, + `).concat(t+r,",").concat(n+s*p[1])),h+="L ".concat(t+r,",").concat(n+i-s*p[2]),p[2]>0&&(h+="A ".concat(p[2],",").concat(p[2],",0,0,").concat(u,`, + `).concat(t+r-c*p[2],",").concat(n+i)),h+="L ".concat(t+c*p[3],",").concat(n+i),p[3]>0&&(h+="A ".concat(p[3],",").concat(p[3],",0,0,").concat(u,`, + `).concat(t,",").concat(n+i-s*p[3])),h+="Z"}else if(a>0&&o===+o&&o>0){var x=Math.min(a,o);h="M ".concat(t,",").concat(n+s*x,` + A `).concat(x,",").concat(x,",0,0,").concat(u,",").concat(t+c*x,",").concat(n,` + L `).concat(t+r-c*x,",").concat(n,` + A `).concat(x,",").concat(x,",0,0,").concat(u,",").concat(t+r,",").concat(n+s*x,` + L `).concat(t+r,",").concat(n+i-s*x,` + A `).concat(x,",").concat(x,",0,0,").concat(u,",").concat(t+r-c*x,",").concat(n+i,` + L `).concat(t+c*x,",").concat(n+i,` + A `).concat(x,",").concat(x,",0,0,").concat(u,",").concat(t,",").concat(n+i-s*x," Z")}else h="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(i," h ").concat(-r," Z");return h},Tbe=function(t,n){if(!t||!n)return!1;var r=t.x,i=t.y,o=n.x,a=n.y,s=n.width,c=n.height;if(Math.abs(s)>0&&Math.abs(c)>0){var u=Math.min(o,o+s),h=Math.max(o,o+s),p=Math.min(a,a+c),v=Math.max(a,a+c);return r>=u&&r<=h&&i>=p&&i<=v}return!1},jbe={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Cj=function(t){var n=X6(X6({},jbe),t),r=F.useRef(),i=F.useState(-1),o=_be(i,2),a=o[0],s=o[1];F.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var T=r.current.getTotalLength();T&&s(T)}catch{}},[]);var c=n.x,u=n.y,h=n.width,p=n.height,v=n.radius,b=n.className,x=n.animationEasing,_=n.animationDuration,w=n.animationBegin,O=n.isAnimationActive,P=n.isUpdateAnimationActive;if(c!==+c||u!==+u||h!==+h||p!==+p||h===0||p===0)return null;var E=Be("recharts-rectangle",b);return P?Z.createElement(Ji,{canBegin:a>0,from:{width:h,height:p,x:c,y:u},to:{width:h,height:p,x:c,y:u},duration:_,animationEasing:x,isActive:P},function(T){var A=T.width,j=T.height,N=T.x,$=T.y;return Z.createElement(Ji,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:w,duration:_,isActive:O,easing:x},Z.createElement("path",Uy({},it(n,!0),{className:E,d:Q6(N,$,A,j,v),ref:r})))}):Z.createElement("path",Uy({},it(n,!0),{className:E,d:Q6(c,u,h,p,v)}))},Abe=["points","className","baseLinePoints","connectNulls"];function Kc(){return Kc=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Rbe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function J6(e){return Ibe(e)||Lbe(e)||Mbe(e)||Nbe()}function Nbe(){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 Mbe(e,t){if(e){if(typeof e=="string")return VC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return VC(e,t)}}function Lbe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ibe(e){if(Array.isArray(e))return VC(e)}function VC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){eD(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),eD(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},Fh=function(t,n){var r=Dbe(t);n&&(r=[r.reduce(function(o,a){return[].concat(J6(o),J6(a))},[])]);var i=r.map(function(o){return o.reduce(function(a,s,c){return"".concat(a).concat(c===0?"M":"L").concat(s.x,",").concat(s.y)},"")}).join("");return r.length===1?"".concat(i,"Z"):i},$be=function(t,n,r){var i=Fh(t,r);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(Fh(n.reverse(),r).slice(1))},Fbe=function(t){var n=t.points,r=t.className,i=t.baseLinePoints,o=t.connectNulls,a=kbe(t,Abe);if(!n||!n.length)return null;var s=Be("recharts-polygon",r);if(i&&i.length){var c=a.stroke&&a.stroke!=="none",u=$be(n,i,o);return Z.createElement("g",{className:s},Z.createElement("path",Kc({},it(a,!0),{fill:u.slice(-1)==="Z"?a.fill:"none",stroke:"none",d:u})),c?Z.createElement("path",Kc({},it(a,!0),{fill:"none",d:Fh(n,o)})):null,c?Z.createElement("path",Kc({},it(a,!0),{fill:"none",d:Fh(i,o)})):null)}var h=Fh(n,o);return Z.createElement("path",Kc({},it(a,!0),{fill:h.slice(-1)==="Z"?a.fill:"none",className:s,d:h}))};function WC(){return WC=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Hbe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Gbe=function(t,n,r,i,o,a){return"M".concat(t,",").concat(o,"v").concat(i,"M").concat(a,",").concat(n,"h").concat(r)},Kbe=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,o=i===void 0?0:i,a=t.top,s=a===void 0?0:a,c=t.left,u=c===void 0?0:c,h=t.width,p=h===void 0?0:h,v=t.height,b=v===void 0?0:v,x=t.className,_=qbe(t,Bbe),w=Ube({x:r,y:o,top:s,left:u,width:p,height:b},_);return!Ve(r)||!Ve(o)||!Ve(p)||!Ve(b)||!Ve(s)||!Ve(u)?null:Z.createElement("path",qC({},it(w,!0),{className:Be("recharts-cross",x),d:Gbe(r,o,p,b,s,u)}))},cO,nD;function Ybe(){if(nD)return cO;nD=1;var e=cb(),t=nU(),n=la();function r(i,o){return i&&i.length?e(i,n(o,2),t):void 0}return cO=r,cO}var Zbe=Ybe();const Xbe=Nt(Zbe);var fO,rD;function Qbe(){if(rD)return fO;rD=1;var e=cb(),t=la(),n=rU();function r(i,o){return i&&i.length?e(i,t(o,2),n):void 0}return fO=r,fO}var Jbe=Qbe();const e_e=Nt(Jbe);var t_e=["cx","cy","angle","ticks","axisLine"],n_e=["ticks","tick","angle","tickFormatter","stroke"];function Ef(e){"@babel/helpers - typeof";return Ef=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ef(e)}function Bh(){return Bh=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function r_e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function i_e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aD(e,t){for(var n=0;nuD?a=i==="outer"?"start":"end":o<-uD?a=i==="outer"?"end":"start":a="middle",a}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.cx,o=r.cy,a=r.radius,s=r.axisLine,c=r.axisLineType,u=Zl(Zl({},it(this.props,!1)),{},{fill:"none"},it(s,!1));if(c==="circle")return Z.createElement(dm,ou({className:"recharts-polar-angle-axis-line"},u,{cx:i,cy:o,r:a}));var h=this.props.ticks,p=h.map(function(v){return Qt(i,o,a,v.coordinate)});return Z.createElement(Fbe,ou({className:"recharts-polar-angle-axis-line"},u,{points:p}))}},{key:"renderTicks",value:function(){var r=this,i=this.props,o=i.ticks,a=i.tick,s=i.tickLine,c=i.tickFormatter,u=i.stroke,h=it(this.props,!1),p=it(a,!1),v=Zl(Zl({},h),{},{fill:"none"},it(s,!1)),b=o.map(function(x,_){var w=r.getTickLineCoord(x),O=r.getTickTextAnchor(x),P=Zl(Zl(Zl({textAnchor:O},h),{},{stroke:"none",fill:u},p),{},{index:_,payload:x,x:w.x2,y:w.y2});return Z.createElement(Pt,ou({className:Be("recharts-polar-angle-axis-tick",kU(a)),key:"tick-".concat(x.coordinate)},sl(r.props,x,_)),s&&Z.createElement("line",ou({className:"recharts-polar-angle-axis-tick-line"},v,w)),a&&t.renderTickItem(a,P,c?c(x.value,_):x.value))});return Z.createElement(Pt,{className:"recharts-polar-angle-axis-ticks"},b)}},{key:"render",value:function(){var r=this.props,i=r.ticks,o=r.radius,a=r.axisLine;return o<=0||!i||!i.length?null:Z.createElement(Pt,{className:Be("recharts-polar-angle-axis",this.props.className)},a&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,i,o){var a;return Z.isValidElement(r)?a=Z.cloneElement(r,i):dt(r)?a=r(i):a=Z.createElement(Eu,ou({},i,{className:"recharts-polar-angle-axis-tick-value"}),o),a}}])}(F.PureComponent);vb(gb,"displayName","PolarAngleAxis");vb(gb,"axisType","angleAxis");vb(gb,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var dO,cD;function b_e(){if(cD)return dO;cD=1;var e=tB(),t=e(Object.getPrototypeOf,Object);return dO=t,dO}var hO,fD;function __e(){if(fD)return hO;fD=1;var e=es(),t=b_e(),n=ts(),r="[object Object]",i=Function.prototype,o=Object.prototype,a=i.toString,s=o.hasOwnProperty,c=a.call(Object);function u(h){if(!n(h)||e(h)!=r)return!1;var p=t(h);if(p===null)return!0;var v=s.call(p,"constructor")&&p.constructor;return typeof v=="function"&&v instanceof v&&a.call(v)==c}return hO=u,hO}var x_e=__e();const w_e=Nt(x_e);var pO,dD;function O_e(){if(dD)return pO;dD=1;var e=es(),t=ts(),n="[object Boolean]";function r(i){return i===!0||i===!1||t(i)&&e(i)==n}return pO=r,pO}var S_e=O_e();const P_e=Nt(S_e);function Lp(e){"@babel/helpers - typeof";return Lp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lp(e)}function Wy(){return Wy=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0,from:{upperWidth:0,lowerWidth:0,height:v,x:c,y:u},to:{upperWidth:h,lowerWidth:p,height:v,x:c,y:u},duration:_,animationEasing:x,isActive:O},function(E){var T=E.upperWidth,A=E.lowerWidth,j=E.height,N=E.x,$=E.y;return Z.createElement(Ji,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:w,duration:_,easing:x},Z.createElement("path",Wy({},it(n,!0),{className:P,d:vD(N,$,T,A,j),ref:r})))}):Z.createElement("g",null,Z.createElement("path",Wy({},it(n,!0),{className:P,d:vD(c,u,h,p,v)})))},I_e=["option","shapeType","propTransformer","activeClassName","isActive"];function Ip(e){"@babel/helpers - typeof";return Ip=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ip(e)}function D_e(e,t){if(e==null)return{};var n=$_e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $_e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function gD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function qy(e){for(var t=1;t0?vi(E,"paddingAngle",0):0;if(A){var N=xn(A.endAngle-A.startAngle,E.endAngle-E.startAngle),$=Zt(Zt({},E),{},{startAngle:P+j,endAngle:P+N(_)+j});w.push($),P=$.endAngle}else{var W=E.endAngle,B=E.startAngle,V=xn(0,W-B),H=V(_),J=Zt(Zt({},E),{},{startAngle:P+j,endAngle:P+H+j});w.push(J),P=J.endAngle}}),Z.createElement(Pt,null,r.renderSectorsStatically(w))})}},{key:"attachKeyboardHandlers",value:function(r){var i=this;r.onkeydown=function(o){if(!o.altKey)switch(o.key){case"ArrowLeft":{var a=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[a].focus(),i.setState({sectorToFocus:a});break}case"ArrowRight":{var s=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[s].focus(),i.setState({sectorToFocus:s});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var r=this.props,i=r.sectors,o=r.isAnimationActive,a=this.state.prevSectors;return o&&i&&i.length&&(!a||!ll(a,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var r=this,i=this.props,o=i.hide,a=i.sectors,s=i.className,c=i.label,u=i.cx,h=i.cy,p=i.innerRadius,v=i.outerRadius,b=i.isAnimationActive,x=this.state.isAnimationFinished;if(o||!a||!a.length||!Ve(u)||!Ve(h)||!Ve(p)||!Ve(v))return null;var _=Be("recharts-pie",s);return Z.createElement(Pt,{tabIndex:this.props.rootTabIndex,className:_,ref:function(O){r.pieRef=O}},this.renderSectors(),c&&this.renderLabels(a),Jn.renderCallByParent(this.props,null,!1),(!b||x)&&Oo.renderCallByParent(this.props,a,!1))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return i.prevIsAnimationActive!==r.isAnimationActive?{prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:[],isAnimationFinished:!0}:r.isAnimationActive&&r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:r.sectors!==i.curSectors?{curSectors:r.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(r,i){return r>i?"start":r=360?P:P-1)*c,T=w-P*b-E,A=i.reduce(function($,W){var B=on(W,O,0);return $+(Ve(B)?B:0)},0),j;if(A>0){var N;j=i.map(function($,W){var B=on($,O,0),V=on($,h,W),H=(Ve(B)?B:0)/A,J;W?J=N.endAngle+Pr(_)*c*(B!==0?1:0):J=a;var Q=J+Pr(_)*((B!==0?b:0)+H*T),re=(J+Q)/2,ae=(x.innerRadius+x.outerRadius)/2,se=[{name:V,value:B,payload:$,dataKey:O,type:v}],oe=Qt(x.cx,x.cy,ae,re);return N=Zt(Zt(Zt({percent:H,cornerRadius:o,name:V,tooltipPayload:se,midAngle:re,middleRadius:ae,tooltipPosition:oe},$),x),{},{value:on($,O),startAngle:J,endAngle:Q,payload:$,paddingAngle:Pr(_)*c}),N})}return Zt(Zt({},x),{},{sectors:j,data:i})});var mO,xD;function o1e(){if(xD)return mO;xD=1;var e=Math.ceil,t=Math.max;function n(r,i,o,a){for(var s=-1,c=t(e((i-r)/(o||1)),0),u=Array(c);c--;)u[a?c:++s]=r,r+=o;return u}return mO=n,mO}var vO,wD;function YU(){if(wD)return vO;wD=1;var e=gB(),t=1/0,n=17976931348623157e292;function r(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var o=i<0?-1:1;return o*n}return i===i?i:0}return vO=r,vO}var gO,OD;function a1e(){if(OD)return gO;OD=1;var e=o1e(),t=rb(),n=YU();function r(i){return function(o,a,s){return s&&typeof s!="number"&&t(o,a,s)&&(a=s=void 0),o=n(o),a===void 0?(a=o,o=0):a=n(a),s=s===void 0?o0&&r.handleDrag(i.changedTouches[0])}),di(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=r.props,o=i.endIndex,a=i.onDragEnd,s=i.startIndex;a==null||a({endIndex:o,startIndex:s})}),r.detachDragEndListener()}),di(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),di(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),di(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),di(r,"handleSlideDragStart",function(i){var o=jD(i)?i.changedTouches[0]:i;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:o.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return y1e(t,e),p1e(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var i=r.startX,o=r.endX,a=this.state.scaleValues,s=this.props,c=s.gap,u=s.data,h=u.length-1,p=Math.min(i,o),v=Math.max(i,o),b=t.getIndexInRange(a,p),x=t.getIndexInRange(a,v);return{startIndex:b-b%c,endIndex:x===h?h:x-x%c}}},{key:"getTextOfTick",value:function(r){var i=this.props,o=i.data,a=i.tickFormatter,s=i.dataKey,c=on(o[r],s,r);return dt(a)?a(c,r):c}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(r){var i=this.state,o=i.slideMoveStartX,a=i.startX,s=i.endX,c=this.props,u=c.x,h=c.width,p=c.travellerWidth,v=c.startIndex,b=c.endIndex,x=c.onChange,_=r.pageX-o;_>0?_=Math.min(_,u+h-p-s,u+h-p-a):_<0&&(_=Math.max(_,u-a,u-s));var w=this.getIndex({startX:a+_,endX:s+_});(w.startIndex!==v||w.endIndex!==b)&&x&&x(w),this.setState({startX:a+_,endX:s+_,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,i){var o=jD(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:o.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var i=this.state,o=i.brushMoveStartX,a=i.movingTravellerId,s=i.endX,c=i.startX,u=this.state[a],h=this.props,p=h.x,v=h.width,b=h.travellerWidth,x=h.onChange,_=h.gap,w=h.data,O={startX:this.state.startX,endX:this.state.endX},P=r.pageX-o;P>0?P=Math.min(P,p+v-b-u):P<0&&(P=Math.max(P,p-u)),O[a]=u+P;var E=this.getIndex(O),T=E.startIndex,A=E.endIndex,j=function(){var $=w.length-1;return a==="startX"&&(s>c?T%_===0:A%_===0)||sc?A%_===0:T%_===0)||s>c&&A===$};this.setState(di(di({},a,u+P),"brushMoveStartX",r.pageX),function(){x&&j()&&x(E)})}},{key:"handleTravellerMoveKeyboard",value:function(r,i){var o=this,a=this.state,s=a.scaleValues,c=a.startX,u=a.endX,h=this.state[i],p=s.indexOf(h);if(p!==-1){var v=p+r;if(!(v===-1||v>=s.length)){var b=s[v];i==="startX"&&b>=u||i==="endX"&&b<=c||this.setState(di({},i,b),function(){o.props.onChange(o.getIndex({startX:o.state.startX,endX:o.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,i=r.x,o=r.y,a=r.width,s=r.height,c=r.fill,u=r.stroke;return Z.createElement("rect",{stroke:u,fill:c,x:i,y:o,width:a,height:s})}},{key:"renderPanorama",value:function(){var r=this.props,i=r.x,o=r.y,a=r.width,s=r.height,c=r.data,u=r.children,h=r.padding,p=F.Children.only(u);return p?Z.cloneElement(p,{x:i,y:o,width:a,height:s,margin:h,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(r,i){var o,a,s=this,c=this.props,u=c.y,h=c.travellerWidth,p=c.height,v=c.traveller,b=c.ariaLabel,x=c.data,_=c.startIndex,w=c.endIndex,O=Math.max(r,this.props.x),P=bO(bO({},it(this.props,!1)),{},{x:O,y:u,width:h,height:p}),E=b||"Min value: ".concat((o=x[_])===null||o===void 0?void 0:o.name,", Max value: ").concat((a=x[w])===null||a===void 0?void 0:a.name);return Z.createElement(Pt,{tabIndex:0,role:"slider","aria-label":E,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(A){["ArrowLeft","ArrowRight"].includes(A.key)&&(A.preventDefault(),A.stopPropagation(),s.handleTravellerMoveKeyboard(A.key==="ArrowRight"?1:-1,i))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(v,P))}},{key:"renderSlide",value:function(r,i){var o=this.props,a=o.y,s=o.height,c=o.stroke,u=o.travellerWidth,h=Math.min(r,i)+u,p=Math.max(Math.abs(i-r)-u,0);return Z.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:c,fillOpacity:.2,x:h,y:a,width:p,height:s})}},{key:"renderText",value:function(){var r=this.props,i=r.startIndex,o=r.endIndex,a=r.y,s=r.height,c=r.travellerWidth,u=r.stroke,h=this.state,p=h.startX,v=h.endX,b=5,x={pointerEvents:"none",fill:u};return Z.createElement(Pt,{className:"recharts-brush-texts"},Z.createElement(Eu,Yy({textAnchor:"end",verticalAnchor:"middle",x:Math.min(p,v)-b,y:a+s/2},x),this.getTextOfTick(i)),Z.createElement(Eu,Yy({textAnchor:"start",verticalAnchor:"middle",x:Math.max(p,v)+c+b,y:a+s/2},x),this.getTextOfTick(o)))}},{key:"render",value:function(){var r=this.props,i=r.data,o=r.className,a=r.children,s=r.x,c=r.y,u=r.width,h=r.height,p=r.alwaysShowText,v=this.state,b=v.startX,x=v.endX,_=v.isTextActive,w=v.isSlideMoving,O=v.isTravellerMoving,P=v.isTravellerFocused;if(!i||!i.length||!Ve(s)||!Ve(c)||!Ve(u)||!Ve(h)||u<=0||h<=0)return null;var E=Be("recharts-brush",o),T=Z.Children.count(a)===1,A=d1e("userSelect","none");return Z.createElement(Pt,{className:E,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:A},this.renderBackground(),T&&this.renderPanorama(),this.renderSlide(b,x),this.renderTravellerLayer(b,"startX"),this.renderTravellerLayer(x,"endX"),(_||w||O||P||p)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var i=r.x,o=r.y,a=r.width,s=r.height,c=r.stroke,u=Math.floor(o+s/2)-1;return Z.createElement(Z.Fragment,null,Z.createElement("rect",{x:i,y:o,width:a,height:s,fill:c,stroke:"none"}),Z.createElement("line",{x1:i+1,y1:u,x2:i+a-1,y2:u,fill:"none",stroke:"#fff"}),Z.createElement("line",{x1:i+1,y1:u+2,x2:i+a-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,i){var o;return Z.isValidElement(r)?o=Z.cloneElement(r,i):dt(r)?o=r(i):o=t.renderDefaultTraveller(i),o}},{key:"getDerivedStateFromProps",value:function(r,i){var o=r.data,a=r.width,s=r.x,c=r.travellerWidth,u=r.updateId,h=r.startIndex,p=r.endIndex;if(o!==i.prevData||u!==i.prevUpdateId)return bO({prevData:o,prevTravellerWidth:c,prevUpdateId:u,prevX:s,prevWidth:a},o&&o.length?_1e({data:o,width:a,x:s,travellerWidth:c,startIndex:h,endIndex:p}):{scale:null,scaleValues:null});if(i.scale&&(a!==i.prevWidth||s!==i.prevX||c!==i.prevTravellerWidth)){i.scale.range([s,s+a-c]);var v=i.scale.domain().map(function(b){return i.scale(b)});return{prevData:o,prevTravellerWidth:c,prevUpdateId:u,prevX:s,prevWidth:a,startX:i.scale(r.startIndex),endX:i.scale(r.endIndex),scaleValues:v}}return null}},{key:"getIndexInRange",value:function(r,i){for(var o=r.length,a=0,s=o-1;s-a>1;){var c=Math.floor((a+s)/2);r[c]>i?s=c:a=c}return i>=r[s]?s:a}}])}(F.PureComponent);di(kf,"displayName","Brush");di(kf,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var _O,AD;function x1e(){if(AD)return _O;AD=1;var e=XT();function t(n,r){var i;return e(n,function(o,a,s){return i=r(o,a,s),!i}),!!i}return _O=t,_O}var xO,kD;function w1e(){if(kD)return xO;kD=1;var e=K7(),t=la(),n=x1e(),r=Xr(),i=rb();function o(a,s,c){var u=r(a)?e:n;return c&&i(a,s,c)&&(s=void 0),u(a,t(s,3))}return xO=o,xO}var O1e=w1e();const S1e=Nt(O1e);var Qo=function(t,n){var r=t.alwaysShow,i=t.ifOverflow;return r&&(i="extendDomain"),i===n},wO,RD;function P1e(){if(RD)return wO;RD=1;var e=dB();function t(n,r,i){r=="__proto__"&&e?e(n,r,{configurable:!0,enumerable:!0,value:i,writable:!0}):n[r]=i}return wO=t,wO}var OO,ND;function C1e(){if(ND)return OO;ND=1;var e=P1e(),t=cB(),n=la();function r(i,o){var a={};return o=n(o,3),t(i,function(s,c,u){e(a,c,o(s,c,u))}),a}return OO=r,OO}var E1e=C1e();const T1e=Nt(E1e);var SO,MD;function j1e(){if(MD)return SO;MD=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $1e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function F1e(e,t){var n=e.x,r=e.y,i=D1e(e,N1e),o="".concat(n),a=parseInt(o,10),s="".concat(r),c=parseInt(s,10),u="".concat(t.height||i.height),h=parseInt(u,10),p="".concat(t.width||i.width),v=parseInt(p,10);return vh(vh(vh(vh(vh({},t),i),a?{x:a}:{}),c?{y:c}:{}),{},{height:h,width:v,name:t.name,radius:t.radius})}function $D(e){return Z.createElement(Hy,ZC({shapeType:"rectangle",propTransformer:F1e,activeClassName:"recharts-active-bar"},e))}var B1e=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(r,i){if(typeof t=="number")return t;var o=typeof r=="number";return o?t(r,i):(o||ju(),n)}},U1e=["value","background"],e9;function Rf(e){"@babel/helpers - typeof";return Rf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rf(e)}function z1e(e,t){if(e==null)return{};var n=V1e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function V1e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Xy(){return Xy=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&Math.abs(re)0&&Math.abs(Q)0&&(J=Math.min((le||0)-(Q[ce-1]||0),J))}),Number.isFinite(J)){var re=J/H,ae=_.layout==="vertical"?r.height:r.width;if(_.padding==="gap"&&(N=re*ae/2),_.padding==="no-gap"){var se=Cr(t.barCategoryGap,re*ae),oe=re*ae/2;N=oe-se-(oe-se)/ae*se}}}i==="xAxis"?$=[r.left+(E.left||0)+(N||0),r.left+r.width-(E.right||0)-(N||0)]:i==="yAxis"?$=c==="horizontal"?[r.top+r.height-(E.bottom||0),r.top+(E.top||0)]:[r.top+(E.top||0)+(N||0),r.top+r.height-(E.bottom||0)-(N||0)]:$=_.range,A&&($=[$[1],$[0]]);var K=SU(_,o,v),G=K.scale,z=K.realScaleType;G.domain(O).range($),PU(G);var ne=CU(G,go(go({},_),{},{realScaleType:z}));i==="xAxis"?(V=w==="top"&&!T||w==="bottom"&&T,W=r.left,B=p[j]-V*_.height):i==="yAxis"&&(V=w==="left"&&!T||w==="right"&&T,W=p[j]-V*_.width,B=r.top);var X=go(go(go({},_),ne),{},{realScaleType:z,x:W,y:B,scale:G,width:i==="xAxis"?r.width:_.width,height:i==="yAxis"?r.height:_.height});return X.bandSize=Ly(X,ne),!_.hide&&i==="xAxis"?p[j]+=(V?-1:1)*X.height:_.hide||(p[j]+=(V?-1:1)*X.width),go(go({},b),{},_b({},x,X))},{})},o9=function(t,n){var r=t.x,i=t.y,o=n.x,a=n.y;return{x:Math.min(r,o),y:Math.min(i,a),width:Math.abs(o-r),height:Math.abs(a-i)}},exe=function(t){var n=t.x1,r=t.y1,i=t.x2,o=t.y2;return o9({x:n,y:r},{x:i,y:o})},a9=function(){function e(t){X1e(this,e),this.scale=t}return Q1e(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.bandAware,o=r.position;if(n!==void 0){if(o)switch(o){case"start":return this.scale(n);case"middle":{var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+a}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(n)+s}default:return this.scale(n)}if(i){var c=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+c}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),i=r[0],o=r[r.length-1];return i<=o?n>=i&&n<=o:n>=o&&n<=i}}],[{key:"create",value:function(n){return new e(n)}}])}();_b(a9,"EPS",1e-4);var Ej=function(t){var n=Object.keys(t).reduce(function(r,i){return go(go({},r),{},_b({},i,a9.create(t[i])))},{});return go(go({},n),{},{apply:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=o.bandAware,s=o.position;return T1e(i,function(c,u){return n[u].apply(c,{bandAware:a,position:s})})},isInRange:function(i){return JU(i,function(o,a){return n[a].isInRange(o)})}})};function txe(e){return(e%180+180)%180}var nxe=function(t){var n=t.width,r=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=txe(i),a=o*Math.PI/180,s=Math.atan(r/n),c=a>s&&a-1?c[u?o[h]:h]:void 0}}return EO=r,EO}var TO,WD;function ixe(){if(WD)return TO;WD=1;var e=YU();function t(n){var r=e(n),i=r%1;return r===r?i?r-i:r:0}return TO=t,TO}var jO,qD;function oxe(){if(qD)return jO;qD=1;var e=oB(),t=la(),n=ixe(),r=Math.max;function i(o,a,s){var c=o==null?0:o.length;if(!c)return-1;var u=s==null?0:n(s);return u<0&&(u=r(c+u,0)),e(o,t(a,3),u)}return jO=i,jO}var AO,HD;function axe(){if(HD)return AO;HD=1;var e=rxe(),t=oxe(),n=e(t);return AO=n,AO}var sxe=axe();const lxe=Nt(sxe);var uxe=_7();const cxe=Nt(uxe);var fxe=cxe(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),Tj=F.createContext(void 0),jj=F.createContext(void 0),s9=F.createContext(void 0),l9=F.createContext({}),u9=F.createContext(void 0),c9=F.createContext(0),f9=F.createContext(0),GD=function(t){var n=t.state,r=n.xAxisMap,i=n.yAxisMap,o=n.offset,a=t.clipPathId,s=t.children,c=t.width,u=t.height,h=fxe(o);return Z.createElement(Tj.Provider,{value:r},Z.createElement(jj.Provider,{value:i},Z.createElement(l9.Provider,{value:o},Z.createElement(s9.Provider,{value:h},Z.createElement(u9.Provider,{value:a},Z.createElement(c9.Provider,{value:u},Z.createElement(f9.Provider,{value:c},s)))))))},dxe=function(){return F.useContext(u9)},d9=function(t){var n=F.useContext(Tj);n==null&&ju();var r=n[t];return r==null&&ju(),r},hxe=function(){var t=F.useContext(Tj);return qs(t)},pxe=function(){var t=F.useContext(jj),n=lxe(t,function(r){return JU(r.domain,Number.isFinite)});return n||qs(t)},h9=function(t){var n=F.useContext(jj);n==null&&ju();var r=n[t];return r==null&&ju(),r},mxe=function(){var t=F.useContext(s9);return t},vxe=function(){return F.useContext(l9)},Aj=function(){return F.useContext(f9)},kj=function(){return F.useContext(c9)};function Nf(e){"@babel/helpers - typeof";return Nf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nf(e)}function gxe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yxe(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne*i)return!1;var o=n();return e*(t-e*o/2-r)>=0&&e*(t+e*o/2-i)<=0}function Jxe(e,t){return _9(e,t+1)}function ewe(e,t,n,r,i){for(var o=(r||[]).slice(),a=t.start,s=t.end,c=0,u=1,h=a,p=function(){var x=r==null?void 0:r[c];if(x===void 0)return{v:_9(r,u)};var _=c,w,O=function(){return w===void 0&&(w=n(x,_)),w},P=x.coordinate,E=c===0||n0(e,P,O,h,s);E||(c=0,h=a,u+=1),E&&(h=P+e*(O()/2+i),c+=u)},v;u<=o.length;)if(v=p(),v)return v.v;return[]}function Up(e){"@babel/helpers - typeof";return Up=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Up(e)}function t5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function mr(e){for(var t=1;t0?b.coordinate-w*e:b.coordinate})}else o[v]=b=mr(mr({},b),{},{tickCoord:b.coordinate});var O=n0(e,b.tickCoord,_,s,c);O&&(c=b.tickCoord-e*(_()/2+i),o[v]=mr(mr({},b),{},{isShow:!0}))},h=a-1;h>=0;h--)u(h);return o}function owe(e,t,n,r,i,o){var a=(r||[]).slice(),s=a.length,c=t.start,u=t.end;if(o){var h=r[s-1],p=n(h,s-1),v=e*(h.coordinate+e*p/2-u);a[s-1]=h=mr(mr({},h),{},{tickCoord:v>0?h.coordinate-v*e:h.coordinate});var b=n0(e,h.tickCoord,function(){return p},c,u);b&&(u=h.tickCoord-e*(p/2+i),a[s-1]=mr(mr({},h),{},{isShow:!0}))}for(var x=o?s-1:s,_=function(P){var E=a[P],T,A=function(){return T===void 0&&(T=n(E,P)),T};if(P===0){var j=e*(E.coordinate-e*A()/2-c);a[P]=E=mr(mr({},E),{},{tickCoord:j<0?E.coordinate-j*e:E.coordinate})}else a[P]=E=mr(mr({},E),{},{tickCoord:E.coordinate});var N=n0(e,E.tickCoord,A,c,u);N&&(c=E.tickCoord+e*(A()/2+i),a[P]=mr(mr({},E),{},{isShow:!0}))},w=0;w=2?Pr(i[1].coordinate-i[0].coordinate):1,O=Qxe(o,w,b);return c==="equidistantPreserveStart"?ewe(w,O,_,i,a):(c==="preserveStart"||c==="preserveStartEnd"?v=owe(w,O,_,i,a,c==="preserveStartEnd"):v=iwe(w,O,_,i,a),v.filter(function(P){return P.isShow}))}var awe=["viewBox"],swe=["viewBox"],lwe=["ticks"];function If(e){"@babel/helpers - typeof";return If=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},If(e)}function Zc(){return Zc=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function uwe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function cwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r5(e,t){for(var n=0;n0?c(this.props):c(b)),a<=0||s<=0||!x||!x.length?null:Z.createElement(Pt,{className:Be("recharts-cartesian-axis",u),ref:function(w){r.layerReference=w}},o&&this.renderAxisLine(),this.renderTicks(x,this.state.fontSize,this.state.letterSpacing),Jn.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,i,o){var a;return Z.isValidElement(r)?a=Z.cloneElement(r,i):dt(r)?a=r(i):a=Z.createElement(Eu,Zc({},i,{className:"recharts-cartesian-axis-tick-value"}),o),a}}])}(F.Component);Lj(ad,"displayName","CartesianAxis");Lj(ad,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var gwe=["x1","y1","x2","y2","key"],ywe=["offset"];function Au(e){"@babel/helpers - typeof";return Au=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Au(e)}function i5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function vr(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function wwe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Owe=function(t){var n=t.fill;if(!n||n==="none")return null;var r=t.fillOpacity,i=t.x,o=t.y,a=t.width,s=t.height,c=t.ry;return Z.createElement("rect",{x:i,y:o,ry:c,width:a,height:s,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function O9(e,t){var n;if(Z.isValidElement(e))n=Z.cloneElement(e,t);else if(dt(e))n=e(t);else{var r=t.x1,i=t.y1,o=t.x2,a=t.y2,s=t.key,c=o5(t,gwe),u=it(c,!1);u.offset;var h=o5(u,ywe);n=Z.createElement("line",du({},h,{x1:r,y1:i,x2:o,y2:a,fill:"none",key:s}))}return n}function Swe(e){var t=e.x,n=e.width,r=e.horizontal,i=r===void 0?!0:r,o=e.horizontalPoints;if(!i||!o||!o.length)return null;var a=o.map(function(s,c){var u=vr(vr({},e),{},{x1:t,y1:s,x2:t+n,y2:s,key:"line-".concat(c),index:c});return O9(i,u)});return Z.createElement("g",{className:"recharts-cartesian-grid-horizontal"},a)}function Pwe(e){var t=e.y,n=e.height,r=e.vertical,i=r===void 0?!0:r,o=e.verticalPoints;if(!i||!o||!o.length)return null;var a=o.map(function(s,c){var u=vr(vr({},e),{},{x1:s,y1:t,x2:s,y2:t+n,key:"line-".concat(c),index:c});return O9(i,u)});return Z.createElement("g",{className:"recharts-cartesian-grid-vertical"},a)}function Cwe(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,i=e.y,o=e.width,a=e.height,s=e.horizontalPoints,c=e.horizontal,u=c===void 0?!0:c;if(!u||!t||!t.length)return null;var h=s.map(function(v){return Math.round(v+i-i)}).sort(function(v,b){return v-b});i!==h[0]&&h.unshift(0);var p=h.map(function(v,b){var x=!h[b+1],_=x?i+a-v:h[b+1]-v;if(_<=0)return null;var w=b%t.length;return Z.createElement("rect",{key:"react-".concat(b),y:v,x:r,height:_,width:o,stroke:"none",fill:t[w],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return Z.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},p)}function Ewe(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,i=e.fillOpacity,o=e.x,a=e.y,s=e.width,c=e.height,u=e.verticalPoints;if(!n||!r||!r.length)return null;var h=u.map(function(v){return Math.round(v+o-o)}).sort(function(v,b){return v-b});o!==h[0]&&h.unshift(0);var p=h.map(function(v,b){var x=!h[b+1],_=x?o+s-v:h[b+1]-v;if(_<=0)return null;var w=b%r.length;return Z.createElement("rect",{key:"react-".concat(b),x:v,y:a,width:_,height:c,stroke:"none",fill:r[w],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return Z.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},p)}var Twe=function(t,n){var r=t.xAxis,i=t.width,o=t.height,a=t.offset;return OU(Mj(vr(vr(vr({},ad.defaultProps),r),{},{ticks:Ma(r,!0),viewBox:{x:0,y:0,width:i,height:o}})),a.left,a.left+a.width,n)},jwe=function(t,n){var r=t.yAxis,i=t.width,o=t.height,a=t.offset;return OU(Mj(vr(vr(vr({},ad.defaultProps),r),{},{ticks:Ma(r,!0),viewBox:{x:0,y:0,width:i,height:o}})),a.top,a.top+a.height,n)},Lc={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function Ij(e){var t,n,r,i,o,a,s=Aj(),c=kj(),u=vxe(),h=vr(vr({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Lc.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:Lc.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:Lc.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:Lc.horizontalFill,vertical:(o=e.vertical)!==null&&o!==void 0?o:Lc.vertical,verticalFill:(a=e.verticalFill)!==null&&a!==void 0?a:Lc.verticalFill,x:Ve(e.x)?e.x:u.left,y:Ve(e.y)?e.y:u.top,width:Ve(e.width)?e.width:u.width,height:Ve(e.height)?e.height:u.height}),p=h.x,v=h.y,b=h.width,x=h.height,_=h.syncWithTicks,w=h.horizontalValues,O=h.verticalValues,P=hxe(),E=pxe();if(!Ve(b)||b<=0||!Ve(x)||x<=0||!Ve(p)||p!==+p||!Ve(v)||v!==+v)return null;var T=h.verticalCoordinatesGenerator||Twe,A=h.horizontalCoordinatesGenerator||jwe,j=h.horizontalPoints,N=h.verticalPoints;if((!j||!j.length)&&dt(A)){var $=w&&w.length,W=A({yAxis:E?vr(vr({},E),{},{ticks:$?w:E.ticks}):void 0,width:s,height:c,offset:u},$?!0:_);wo(Array.isArray(W),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Au(W),"]")),Array.isArray(W)&&(j=W)}if((!N||!N.length)&&dt(T)){var B=O&&O.length,V=T({xAxis:P?vr(vr({},P),{},{ticks:B?O:P.ticks}):void 0,width:s,height:c,offset:u},B?!0:_);wo(Array.isArray(V),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Au(V),"]")),Array.isArray(V)&&(N=V)}return Z.createElement("g",{className:"recharts-cartesian-grid"},Z.createElement(Owe,{fill:h.fill,fillOpacity:h.fillOpacity,x:h.x,y:h.y,width:h.width,height:h.height,ry:h.ry}),Z.createElement(Swe,du({},h,{offset:u,horizontalPoints:j,xAxis:P,yAxis:E})),Z.createElement(Pwe,du({},h,{offset:u,verticalPoints:N,xAxis:P,yAxis:E})),Z.createElement(Cwe,du({},h,{horizontalPoints:j})),Z.createElement(Ewe,du({},h,{verticalPoints:N})))}Ij.displayName="CartesianGrid";var Awe=["type","layout","connectNulls","ref"],kwe=["key"];function Df(e){"@babel/helpers - typeof";return Df=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Df(e)}function a5(e,t){if(e==null)return{};var n=Rwe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Rwe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Uh(){return Uh=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);np){b=[].concat(Ic(c.slice(0,x)),[p-_]);break}var w=b.length%2===0?[0,v]:[v];return[].concat(Ic(t.repeat(c,h)),Ic(b),w).map(function(O){return"".concat(O,"px")}).join(", ")}),yo(n,"id",vl("recharts-line-")),yo(n,"pathRef",function(a){n.mainCurve=a}),yo(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0}),n.props.onAnimationEnd&&n.props.onAnimationEnd()}),yo(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1}),n.props.onAnimationStart&&n.props.onAnimationStart()}),n}return zwe(t,e),$we(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();this.setState({totalLength:r})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();r!==this.state.totalLength&&this.setState({totalLength:r})}}},{key:"getTotalLength",value:function(){var r=this.mainCurve;try{return r&&r.getTotalLength&&r.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(r,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,a=o.points,s=o.xAxis,c=o.yAxis,u=o.layout,h=o.children,p=Ar(h,id);if(!p)return null;var v=function(_,w){return{x:_.x,y:_.y,value:_.value,errorVal:on(_.payload,w)}},b={clipPath:r?"url(#clipPath-".concat(i,")"):null};return Z.createElement(Pt,b,p.map(function(x){return Z.cloneElement(x,{key:"bar-".concat(x.props.dataKey),data:a,xAxis:s,yAxis:c,layout:u,dataPointFormatter:v})}))}},{key:"renderDots",value:function(r,i,o){var a=this.props.isAnimationActive;if(a&&!this.state.isAnimationFinished)return null;var s=this.props,c=s.dot,u=s.points,h=s.dataKey,p=it(this.props,!1),v=it(c,!0),b=u.map(function(_,w){var O=fi(fi(fi({key:"dot-".concat(w),r:3},p),v),{},{value:_.value,dataKey:h,cx:_.x,cy:_.y,index:w,payload:_.payload});return t.renderDotItem(c,O)}),x={clipPath:r?"url(#clipPath-".concat(i?"":"dots-").concat(o,")"):null};return Z.createElement(Pt,Uh({className:"recharts-line-dots",key:"dots"},x),b)}},{key:"renderCurveStatically",value:function(r,i,o,a){var s=this.props,c=s.type,u=s.layout,h=s.connectNulls;s.ref;var p=a5(s,Awe),v=fi(fi(fi({},it(p,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(o,")"):null,points:r},a),{},{type:c,layout:u,connectNulls:h});return Z.createElement(tl,Uh({},v,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(r,i){var o=this,a=this.props,s=a.points,c=a.strokeDasharray,u=a.isAnimationActive,h=a.animationBegin,p=a.animationDuration,v=a.animationEasing,b=a.animationId,x=a.animateNewValues,_=a.width,w=a.height,O=this.state,P=O.prevPoints,E=O.totalLength;return Z.createElement(Ji,{begin:h,duration:p,isActive:u,easing:v,from:{t:0},to:{t:1},key:"line-".concat(b),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(T){var A=T.t;if(P){var j=P.length/s.length,N=s.map(function(H,J){var Q=Math.floor(J*j);if(P[Q]){var re=P[Q],ae=xn(re.x,H.x),se=xn(re.y,H.y);return fi(fi({},H),{},{x:ae(A),y:se(A)})}if(x){var oe=xn(_*2,H.x),K=xn(w/2,H.y);return fi(fi({},H),{},{x:oe(A),y:K(A)})}return fi(fi({},H),{},{x:H.x,y:H.y})});return o.renderCurveStatically(N,r,i)}var $=xn(0,E),W=$(A),B;if(c){var V="".concat(c).split(/[,\s]+/gim).map(function(H){return parseFloat(H)});B=o.getStrokeDasharray(W,E,V)}else B=o.generateSimpleStrokeDasharray(E,W);return o.renderCurveStatically(s,r,i,{strokeDasharray:B})})}},{key:"renderCurve",value:function(r,i){var o=this.props,a=o.points,s=o.isAnimationActive,c=this.state,u=c.prevPoints,h=c.totalLength;return s&&a&&a.length&&(!u&&h>0||!ll(u,a))?this.renderCurveWithAnimation(r,i):this.renderCurveStatically(a,r,i)}},{key:"render",value:function(){var r,i=this.props,o=i.hide,a=i.dot,s=i.points,c=i.className,u=i.xAxis,h=i.yAxis,p=i.top,v=i.left,b=i.width,x=i.height,_=i.isAnimationActive,w=i.id;if(o||!s||!s.length)return null;var O=this.state.isAnimationFinished,P=s.length===1,E=Be("recharts-line",c),T=u&&u.allowDataOverflow,A=h&&h.allowDataOverflow,j=T||A,N=ft(w)?this.id:w,$=(r=it(a,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},W=$.r,B=W===void 0?3:W,V=$.strokeWidth,H=V===void 0?2:V,J=P7(a)?a:{},Q=J.clipDot,re=Q===void 0?!0:Q,ae=B*2+H;return Z.createElement(Pt,{className:E},T||A?Z.createElement("defs",null,Z.createElement("clipPath",{id:"clipPath-".concat(N)},Z.createElement("rect",{x:T?v:v-b/2,y:A?p:p-x/2,width:T?b:b*2,height:A?x:x*2})),!re&&Z.createElement("clipPath",{id:"clipPath-dots-".concat(N)},Z.createElement("rect",{x:v-ae/2,y:p-ae/2,width:b+ae,height:x+ae}))):null,!P&&this.renderCurve(j,N),this.renderErrorBar(j,N),(P||a)&&this.renderDots(j,re,N),(!_||O)&&Oo.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,prevPoints:i.curPoints}:r.points!==i.curPoints?{curPoints:r.points}:null}},{key:"repeat",value:function(r,i){for(var o=r.length%2!==0?[].concat(Ic(r),[0]):r,a=[],s=0;s=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Hwe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function hu(){return hu=Object.assign?Object.assign.bind():function(e){for(var t=1;t0||!ll(h,a)||!ll(p,s))?this.renderAreaWithAnimation(r,i):this.renderAreaStatically(a,s,r,i)}},{key:"render",value:function(){var r,i=this.props,o=i.hide,a=i.dot,s=i.points,c=i.className,u=i.top,h=i.left,p=i.xAxis,v=i.yAxis,b=i.width,x=i.height,_=i.isAnimationActive,w=i.id;if(o||!s||!s.length)return null;var O=this.state.isAnimationFinished,P=s.length===1,E=Be("recharts-area",c),T=p&&p.allowDataOverflow,A=v&&v.allowDataOverflow,j=T||A,N=ft(w)?this.id:w,$=(r=it(a,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},W=$.r,B=W===void 0?3:W,V=$.strokeWidth,H=V===void 0?2:V,J=P7(a)?a:{},Q=J.clipDot,re=Q===void 0?!0:Q,ae=B*2+H;return Z.createElement(Pt,{className:E},T||A?Z.createElement("defs",null,Z.createElement("clipPath",{id:"clipPath-".concat(N)},Z.createElement("rect",{x:T?h:h-b/2,y:A?u:u-x/2,width:T?b:b*2,height:A?x:x*2})),!re&&Z.createElement("clipPath",{id:"clipPath-dots-".concat(N)},Z.createElement("rect",{x:h-ae/2,y:u-ae/2,width:b+ae,height:x+ae}))):null,P?null:this.renderArea(j,N),(a||P)&&this.renderDots(j,re,N),(!_||O)&&Oo.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,curBaseLine:r.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:r.points!==i.curPoints||r.baseLine!==i.curBaseLine?{curPoints:r.points,curBaseLine:r.baseLine}:null}}])}(F.PureComponent);C9=$u;Yo($u,"displayName","Area");Yo($u,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Ki.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});Yo($u,"getBaseValue",function(e,t,n,r){var i=e.layout,o=e.baseValue,a=t.props.baseValue,s=a??o;if(Ve(s)&&typeof s=="number")return s;var c=i==="horizontal"?r:n,u=c.scale.domain();if(c.type==="number"){var h=Math.max(u[0],u[1]),p=Math.min(u[0],u[1]);return s==="dataMin"?p:s==="dataMax"||h<0?h:Math.max(Math.min(u[0],u[1]),0)}return s==="dataMin"?u[0]:s==="dataMax"?u[1]:u[0]});Yo($u,"getComposedData",function(e){var t=e.props,n=e.item,r=e.xAxis,i=e.yAxis,o=e.xAxisTicks,a=e.yAxisTicks,s=e.bandSize,c=e.dataKey,u=e.stackedData,h=e.dataStartIndex,p=e.displayedData,v=e.offset,b=t.layout,x=u&&u.length,_=C9.getBaseValue(t,n,r,i),w=b==="horizontal",O=!1,P=p.map(function(T,A){var j;x?j=u[h+A]:(j=on(T,c),Array.isArray(j)?O=!0:j=[_,j]);var N=j[1]==null||x&&on(T,c)==null;return w?{x:Pf({axis:r,ticks:o,bandSize:s,entry:T,index:A}),y:N?null:i.scale(j[1]),value:j,payload:T}:{x:N?null:r.scale(j[1]),y:Pf({axis:i,ticks:a,bandSize:s,entry:T,index:A}),value:j,payload:T}}),E;return x||O?E=P.map(function(T){var A=Array.isArray(T.value)?T.value[0]:null;return w?{x:T.x,y:A!=null&&T.y!=null?i.scale(A):null}:{x:A!=null?r.scale(A):null,y:T.y}}):E=w?i.scale(_):r.scale(_),Us({points:P,baseLine:E,layout:b,isRange:O},v)});Yo($u,"renderDotItem",function(e,t){var n;if(Z.isValidElement(e))n=Z.cloneElement(e,t);else if(dt(e))n=e(t);else{var r=Be("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,o=E9(t,qwe);n=Z.createElement(dm,hu({},o,{key:i,className:r}))}return n});function Ff(e){"@babel/helpers - typeof";return Ff=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ff(e)}function e2e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t2e(e,t){for(var n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function c2e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function f2e(e){var t=e.option,n=e.isActive,r=u2e(e,l2e);return typeof t=="string"?Z.createElement(Hy,zh({option:Z.createElement(eb,zh({type:t},r)),isActive:n,shapeType:"symbols"},r)):Z.createElement(Hy,zh({option:t,isActive:n,shapeType:"symbols"},r))}function Bf(e){"@babel/helpers - typeof";return Bf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bf(e)}function Vh(){return Vh=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function sOe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function lOe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uOe(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?a:t&&t.length&&Ve(i)&&Ve(o)?t.slice(i,o+1):[]};function G9(e){return e==="number"?[0,"auto"]:void 0}var yE=function(t,n,r,i){var o=t.graphicalItems,a=t.tooltipAxis,s=Cb(n,t);return r<0||!o||!o.length||r>=s.length?null:o.reduce(function(c,u){var h,p=(h=u.props.data)!==null&&h!==void 0?h:n;p&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(p=p.slice(t.dataStartIndex,t.dataEndIndex+1));var v;if(a.dataKey&&!a.allowDuplicatedCategory){var b=p===void 0?s:p;v=cy(b,a.dataKey,i)}else v=p&&p[r]||s[r];return v?[].concat(Wf(c),[TU(u,v)]):c},[])},b5=function(t,n,r,i){var o=i||{x:t.chartX,y:t.chartY},a=xOe(o,r),s=t.orderedTooltipTicks,c=t.tooltipAxis,u=t.tooltipTicks,h=Nge(a,s,u,c);if(h>=0&&u){var p=u[h]&&u[h].value,v=yE(t,n,h,p),b=wOe(r,s,h,o);return{activeTooltipIndex:h,activeLabel:p,activePayload:v,activeCoordinate:b}}return null},OOe=function(t,n){var r=n.axes,i=n.graphicalItems,o=n.axisType,a=n.axisIdKey,s=n.stackGroups,c=n.dataStartIndex,u=n.dataEndIndex,h=t.layout,p=t.children,v=t.stackOffset,b=wU(h,o);return r.reduce(function(x,_){var w,O=_.type.defaultProps!==void 0?Te(Te({},_.type.defaultProps),_.props):_.props,P=O.type,E=O.dataKey,T=O.allowDataOverflow,A=O.allowDuplicatedCategory,j=O.scale,N=O.ticks,$=O.includeHidden,W=O[a];if(x[W])return x;var B=Cb(t.data,{graphicalItems:i.filter(function(ne){var X,le=a in ne.props?ne.props[a]:(X=ne.type.defaultProps)===null||X===void 0?void 0:X[a];return le===W}),dataStartIndex:c,dataEndIndex:u}),V=B.length,H,J,Q;Y2e(O.domain,T,P)&&(H=jC(O.domain,null,T),b&&(P==="number"||j!=="auto")&&(Q=Dh(B,E,"category")));var re=G9(P);if(!H||H.length===0){var ae,se=(ae=O.domain)!==null&&ae!==void 0?ae:re;if(E){if(H=Dh(B,E,P),P==="category"&&b){var oe=Eue(H);A&&oe?(J=H,H=Ky(0,V)):A||(H=g6(se,H,_).reduce(function(ne,X){return ne.indexOf(X)>=0?ne:[].concat(Wf(ne),[X])},[]))}else if(P==="category")A?H=H.filter(function(ne){return ne!==""&&!ft(ne)}):H=g6(se,H,_).reduce(function(ne,X){return ne.indexOf(X)>=0||X===""||ft(X)?ne:[].concat(Wf(ne),[X])},[]);else if(P==="number"){var K=$ge(B,i.filter(function(ne){var X,le,ce=a in ne.props?ne.props[a]:(X=ne.type.defaultProps)===null||X===void 0?void 0:X[a],de="hide"in ne.props?ne.props.hide:(le=ne.type.defaultProps)===null||le===void 0?void 0:le.hide;return ce===W&&($||!de)}),E,o,h);K&&(H=K)}b&&(P==="number"||j!=="auto")&&(Q=Dh(B,E,"category"))}else b?H=Ky(0,V):s&&s[W]&&s[W].hasStack&&P==="number"?H=v==="expand"?[0,1]:EU(s[W].stackGroups,c,u):H=xU(B,i.filter(function(ne){var X=a in ne.props?ne.props[a]:ne.type.defaultProps[a],le="hide"in ne.props?ne.props.hide:ne.type.defaultProps.hide;return X===W&&($||!le)}),P,h,!0);if(P==="number")H=mE(p,H,W,o,N),se&&(H=jC(se,H,T));else if(P==="category"&&se){var G=se,z=H.every(function(ne){return G.indexOf(ne)>=0});z&&(H=G)}}return Te(Te({},x),{},pt({},W,Te(Te({},O),{},{axisType:o,domain:H,categoricalDomain:Q,duplicateDomain:J,originalDomain:(w=O.domain)!==null&&w!==void 0?w:re,isCategorical:b,layout:h})))},{})},SOe=function(t,n){var r=n.graphicalItems,i=n.Axis,o=n.axisType,a=n.axisIdKey,s=n.stackGroups,c=n.dataStartIndex,u=n.dataEndIndex,h=t.layout,p=t.children,v=Cb(t.data,{graphicalItems:r,dataStartIndex:c,dataEndIndex:u}),b=v.length,x=wU(h,o),_=-1;return r.reduce(function(w,O){var P=O.type.defaultProps!==void 0?Te(Te({},O.type.defaultProps),O.props):O.props,E=P[a],T=G9("number");if(!w[E]){_++;var A;return x?A=Ky(0,b):s&&s[E]&&s[E].hasStack?(A=EU(s[E].stackGroups,c,u),A=mE(p,A,E,o)):(A=jC(T,xU(v,r.filter(function(j){var N,$,W=a in j.props?j.props[a]:(N=j.type.defaultProps)===null||N===void 0?void 0:N[a],B="hide"in j.props?j.props.hide:($=j.type.defaultProps)===null||$===void 0?void 0:$.hide;return W===E&&!B}),"number",h),i.defaultProps.allowDataOverflow),A=mE(p,A,E,o)),Te(Te({},w),{},pt({},E,Te(Te({axisType:o},i.defaultProps),{},{hide:!0,orientation:vi(bOe,"".concat(o,".").concat(_%2),null),domain:A,originalDomain:T,isCategorical:x,layout:h})))}return w},{})},POe=function(t,n){var r=n.axisType,i=r===void 0?"xAxis":r,o=n.AxisComp,a=n.graphicalItems,s=n.stackGroups,c=n.dataStartIndex,u=n.dataEndIndex,h=t.children,p="".concat(i,"Id"),v=Ar(h,o),b={};return v&&v.length?b=OOe(t,{axes:v,graphicalItems:a,axisType:i,axisIdKey:p,stackGroups:s,dataStartIndex:c,dataEndIndex:u}):a&&a.length&&(b=SOe(t,{Axis:o,graphicalItems:a,axisType:i,axisIdKey:p,stackGroups:s,dataStartIndex:c,dataEndIndex:u})),b},COe=function(t){var n=qs(t),r=Ma(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:QT(r,function(i){return i.coordinate}),tooltipAxis:n,tooltipAxisBandSize:Ly(n,r)}},_5=function(t){var n=t.children,r=t.defaultShowTooltip,i=hi(n,kf),o=0,a=0;return t.data&&t.data.length!==0&&(a=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(o=i.props.startIndex),i.props.endIndex>=0&&(a=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:a,activeTooltipIndex:-1,isTooltipActive:!!r}},EOe=function(t){return!t||!t.length?!1:t.some(function(n){var r=Ia(n&&n.type);return r&&r.indexOf("Bar")>=0})},x5=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},TOe=function(t,n){var r=t.props,i=t.graphicalItems,o=t.xAxisMap,a=o===void 0?{}:o,s=t.yAxisMap,c=s===void 0?{}:s,u=r.width,h=r.height,p=r.children,v=r.margin||{},b=hi(p,kf),x=hi(p,tf),_=Object.keys(c).reduce(function(A,j){var N=c[j],$=N.orientation;return!N.mirror&&!N.hide?Te(Te({},A),{},pt({},$,A[$]+N.width)):A},{left:v.left||0,right:v.right||0}),w=Object.keys(a).reduce(function(A,j){var N=a[j],$=N.orientation;return!N.mirror&&!N.hide?Te(Te({},A),{},pt({},$,vi(A,"".concat($))+N.height)):A},{top:v.top||0,bottom:v.bottom||0}),O=Te(Te({},w),_),P=O.bottom;b&&(O.bottom+=b.props.height||kf.defaultProps.height),x&&n&&(O=Ige(O,i,r,n));var E=u-O.left-O.right,T=h-O.top-O.bottom;return Te(Te({brushBottom:P},O),{},{width:Math.max(E,0),height:Math.max(T,0)})},jOe=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},Dj=function(t){var n=t.chartName,r=t.GraphicalChild,i=t.defaultTooltipEventType,o=i===void 0?"axis":i,a=t.validateTooltipEventTypes,s=a===void 0?["axis"]:a,c=t.axisComponents,u=t.legendContent,h=t.formatAxisMap,p=t.defaultProps,v=function(O,P){var E=P.graphicalItems,T=P.stackGroups,A=P.offset,j=P.updateId,N=P.dataStartIndex,$=P.dataEndIndex,W=O.barSize,B=O.layout,V=O.barGap,H=O.barCategoryGap,J=O.maxBarSize,Q=x5(B),re=Q.numericAxisName,ae=Q.cateAxisName,se=EOe(E),oe=[];return E.forEach(function(K,G){var z=Cb(O.data,{graphicalItems:[K],dataStartIndex:N,dataEndIndex:$}),ne=K.type.defaultProps!==void 0?Te(Te({},K.type.defaultProps),K.props):K.props,X=ne.dataKey,le=ne.maxBarSize,ce=ne["".concat(re,"Id")],de=ne["".concat(ae,"Id")],be={},M=c.reduce(function(Ue,qe){var ye=P["".concat(qe.axisType,"Map")],we=ne["".concat(qe.axisType,"Id")];ye&&ye[we]||qe.axisType==="zAxis"||ju();var Ae=ye[we];return Te(Te({},Ue),{},pt(pt({},qe.axisType,Ae),"".concat(qe.axisType,"Ticks"),Ma(Ae)))},be),D=M[ae],Y=M["".concat(ae,"Ticks")],ue=T&&T[ce]&&T[ce].hasStack&&Gge(K,T[ce].stackGroups),ie=Ia(K.type).indexOf("Bar")>=0,he=Ly(D,Y),Se=[],Fe=se&&Mge({barSize:W,stackGroups:T,totalSize:jOe(M,ae)});if(ie){var ge,Ee,je=ft(le)?J:le,Me=(ge=(Ee=Ly(D,Y,!0))!==null&&Ee!==void 0?Ee:je)!==null&&ge!==void 0?ge:0;Se=Lge({barGap:V,barCategoryGap:H,bandSize:Me!==he?Me:he,sizeList:Fe[de],maxBarSize:je}),Me!==he&&(Se=Se.map(function(Ue){return Te(Te({},Ue),{},{position:Te(Te({},Ue.position),{},{offset:Ue.position.offset-Me/2})})}))}var He=K&&K.type&&K.type.getComposedData;He&&oe.push({props:Te(Te({},He(Te(Te({},M),{},{displayedData:z,props:O,dataKey:X,item:K,bandSize:he,barPosition:Se,offset:A,stackedData:ue,layout:B,dataStartIndex:N,dataEndIndex:$}))),{},pt(pt(pt({key:K.key||"item-".concat(G)},re,M[re]),ae,M[ae]),"animationId",j)),childIndex:Fue(K,O.children),item:K})}),oe},b=function(O,P){var E=O.props,T=O.dataStartIndex,A=O.dataEndIndex,j=O.updateId;if(!RM({props:E}))return null;var N=E.children,$=E.layout,W=E.stackOffset,B=E.data,V=E.reverseStackOrder,H=x5($),J=H.numericAxisName,Q=H.cateAxisName,re=Ar(N,r),ae=qge(B,re,"".concat(J,"Id"),"".concat(Q,"Id"),W,V),se=c.reduce(function(ne,X){var le="".concat(X.axisType,"Map");return Te(Te({},ne),{},pt({},le,POe(E,Te(Te({},X),{},{graphicalItems:re,stackGroups:X.axisType===J&&ae,dataStartIndex:T,dataEndIndex:A}))))},{}),oe=TOe(Te(Te({},se),{},{props:E,graphicalItems:re}),P==null?void 0:P.legendBBox);Object.keys(se).forEach(function(ne){se[ne]=h(E,se[ne],oe,ne.replace("Map",""),n)});var K=se["".concat(Q,"Map")],G=COe(K),z=v(E,Te(Te({},se),{},{dataStartIndex:T,dataEndIndex:A,updateId:j,graphicalItems:re,stackGroups:ae,offset:oe}));return Te(Te({formattedGraphicalItems:z,graphicalItems:re,offset:oe,stackGroups:ae},G),se)},x=function(w){function O(P){var E,T,A;return lOe(this,O),A=fOe(this,O,[P]),pt(A,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),pt(A,"accessibilityManager",new K2e),pt(A,"handleLegendBBoxUpdate",function(j){if(j){var N=A.state,$=N.dataStartIndex,W=N.dataEndIndex,B=N.updateId;A.setState(Te({legendBBox:j},b({props:A.props,dataStartIndex:$,dataEndIndex:W,updateId:B},Te(Te({},A.state),{},{legendBBox:j}))))}}),pt(A,"handleReceiveSyncEvent",function(j,N,$){if(A.props.syncId===j){if($===A.eventEmitterSymbol&&typeof A.props.syncMethod!="function")return;A.applySyncEvent(N)}}),pt(A,"handleBrushChange",function(j){var N=j.startIndex,$=j.endIndex;if(N!==A.state.dataStartIndex||$!==A.state.dataEndIndex){var W=A.state.updateId;A.setState(function(){return Te({dataStartIndex:N,dataEndIndex:$},b({props:A.props,dataStartIndex:N,dataEndIndex:$,updateId:W},A.state))}),A.triggerSyncEvent({dataStartIndex:N,dataEndIndex:$})}}),pt(A,"handleMouseEnter",function(j){var N=A.getMouseInfo(j);if(N){var $=Te(Te({},N),{},{isTooltipActive:!0});A.setState($),A.triggerSyncEvent($);var W=A.props.onMouseEnter;dt(W)&&W($,j)}}),pt(A,"triggeredAfterMouseMove",function(j){var N=A.getMouseInfo(j),$=N?Te(Te({},N),{},{isTooltipActive:!0}):{isTooltipActive:!1};A.setState($),A.triggerSyncEvent($);var W=A.props.onMouseMove;dt(W)&&W($,j)}),pt(A,"handleItemMouseEnter",function(j){A.setState(function(){return{isTooltipActive:!0,activeItem:j,activePayload:j.tooltipPayload,activeCoordinate:j.tooltipPosition||{x:j.cx,y:j.cy}}})}),pt(A,"handleItemMouseLeave",function(){A.setState(function(){return{isTooltipActive:!1}})}),pt(A,"handleMouseMove",function(j){j.persist(),A.throttleTriggeredAfterMouseMove(j)}),pt(A,"handleMouseLeave",function(j){A.throttleTriggeredAfterMouseMove.cancel();var N={isTooltipActive:!1};A.setState(N),A.triggerSyncEvent(N);var $=A.props.onMouseLeave;dt($)&&$(N,j)}),pt(A,"handleOuterEvent",function(j){var N=$ue(j),$=vi(A.props,"".concat(N));if(N&&dt($)){var W,B;/.*touch.*/i.test(N)?B=A.getMouseInfo(j.changedTouches[0]):B=A.getMouseInfo(j),$((W=B)!==null&&W!==void 0?W:{},j)}}),pt(A,"handleClick",function(j){var N=A.getMouseInfo(j);if(N){var $=Te(Te({},N),{},{isTooltipActive:!0});A.setState($),A.triggerSyncEvent($);var W=A.props.onClick;dt(W)&&W($,j)}}),pt(A,"handleMouseDown",function(j){var N=A.props.onMouseDown;if(dt(N)){var $=A.getMouseInfo(j);N($,j)}}),pt(A,"handleMouseUp",function(j){var N=A.props.onMouseUp;if(dt(N)){var $=A.getMouseInfo(j);N($,j)}}),pt(A,"handleTouchMove",function(j){j.changedTouches!=null&&j.changedTouches.length>0&&A.throttleTriggeredAfterMouseMove(j.changedTouches[0])}),pt(A,"handleTouchStart",function(j){j.changedTouches!=null&&j.changedTouches.length>0&&A.handleMouseDown(j.changedTouches[0])}),pt(A,"handleTouchEnd",function(j){j.changedTouches!=null&&j.changedTouches.length>0&&A.handleMouseUp(j.changedTouches[0])}),pt(A,"triggerSyncEvent",function(j){A.props.syncId!==void 0&&NO.emit(MO,A.props.syncId,j,A.eventEmitterSymbol)}),pt(A,"applySyncEvent",function(j){var N=A.props,$=N.layout,W=N.syncMethod,B=A.state.updateId,V=j.dataStartIndex,H=j.dataEndIndex;if(j.dataStartIndex!==void 0||j.dataEndIndex!==void 0)A.setState(Te({dataStartIndex:V,dataEndIndex:H},b({props:A.props,dataStartIndex:V,dataEndIndex:H,updateId:B},A.state)));else if(j.activeTooltipIndex!==void 0){var J=j.chartX,Q=j.chartY,re=j.activeTooltipIndex,ae=A.state,se=ae.offset,oe=ae.tooltipTicks;if(!se)return;if(typeof W=="function")re=W(oe,j);else if(W==="value"){re=-1;for(var K=0;K=0){var ue,ie;if(J.dataKey&&!J.allowDuplicatedCategory){var he=typeof J.dataKey=="function"?Y:"payload.".concat(J.dataKey.toString());ue=cy(K,he,re),ie=G&&z&&cy(z,he,re)}else ue=K==null?void 0:K[Q],ie=G&&z&&z[Q];if(de||ce){var Se=j.props.activeIndex!==void 0?j.props.activeIndex:Q;return[F.cloneElement(j,Te(Te(Te({},W.props),M),{},{activeIndex:Se})),null,null]}if(!ft(ue))return[D].concat(Wf(A.renderActivePoints({item:W,activePoint:ue,basePoint:ie,childIndex:Q,isRange:G})))}else{var Fe,ge=(Fe=A.getItemByXY(A.state.activeCoordinate))!==null&&Fe!==void 0?Fe:{graphicalItem:D},Ee=ge.graphicalItem,je=Ee.item,Me=je===void 0?j:je,He=Ee.childIndex,Ue=Te(Te(Te({},W.props),M),{},{activeIndex:He});return[F.cloneElement(Me,Ue),null,null]}return G?[D,null,null]:[D,null]}),pt(A,"renderCustomized",function(j,N,$){return F.cloneElement(j,Te(Te({key:"recharts-customized-".concat($)},A.props),A.state))}),pt(A,"renderMap",{CartesianGrid:{handler:ng,once:!0},ReferenceArea:{handler:A.renderReferenceElement},ReferenceLine:{handler:ng},ReferenceDot:{handler:A.renderReferenceElement},XAxis:{handler:ng},YAxis:{handler:ng},Brush:{handler:A.renderBrush,once:!0},Bar:{handler:A.renderGraphicChild},Line:{handler:A.renderGraphicChild},Area:{handler:A.renderGraphicChild},Radar:{handler:A.renderGraphicChild},RadialBar:{handler:A.renderGraphicChild},Scatter:{handler:A.renderGraphicChild},Pie:{handler:A.renderGraphicChild},Funnel:{handler:A.renderGraphicChild},Tooltip:{handler:A.renderCursor,once:!0},PolarGrid:{handler:A.renderPolarGrid,once:!0},PolarAngleAxis:{handler:A.renderPolarAxis},PolarRadiusAxis:{handler:A.renderPolarAxis},Customized:{handler:A.renderCustomized}}),A.clipPathId="".concat((E=P.id)!==null&&E!==void 0?E:vl("recharts"),"-clip"),A.throttleTriggeredAfterMouseMove=yB(A.triggeredAfterMouseMove,(T=P.throttleDelay)!==null&&T!==void 0?T:1e3/60),A.state={},A}return pOe(O,w),cOe(O,[{key:"componentDidMount",value:function(){var E,T;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(E=this.props.margin.left)!==null&&E!==void 0?E:0,top:(T=this.props.margin.top)!==null&&T!==void 0?T:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var E=this.props,T=E.children,A=E.data,j=E.height,N=E.layout,$=hi(T,zi);if($){var W=$.props.defaultIndex;if(!(typeof W!="number"||W<0||W>this.state.tooltipTicks.length-1)){var B=this.state.tooltipTicks[W]&&this.state.tooltipTicks[W].value,V=yE(this.state,A,W,B),H=this.state.tooltipTicks[W].coordinate,J=(this.state.offset.top+j)/2,Q=N==="horizontal",re=Q?{x:H,y:J}:{y:H,x:J},ae=this.state.formattedGraphicalItems.find(function(oe){var K=oe.item;return K.type.name==="Scatter"});ae&&(re=Te(Te({},re),ae.props.points[W].tooltipPosition),V=ae.props.points[W].tooltipPayload);var se={activeTooltipIndex:W,isTooltipActive:!0,activeLabel:B,activePayload:V,activeCoordinate:re};this.setState(se),this.renderCursor($),this.accessibilityManager.setIndex(W)}}}},{key:"getSnapshotBeforeUpdate",value:function(E,T){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==T.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==E.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==E.margin){var A,j;this.accessibilityManager.setDetails({offset:{left:(A=this.props.margin.left)!==null&&A!==void 0?A:0,top:(j=this.props.margin.top)!==null&&j!==void 0?j:0}})}return null}},{key:"componentDidUpdate",value:function(E){XP([hi(E.children,zi)],[hi(this.props.children,zi)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var E=hi(this.props.children,zi);if(E&&typeof E.props.shared=="boolean"){var T=E.props.shared?"axis":"item";return s.indexOf(T)>=0?T:o}return o}},{key:"getMouseInfo",value:function(E){if(!this.container)return null;var T=this.container,A=T.getBoundingClientRect(),j=Phe(A),N={chartX:Math.round(E.pageX-j.left),chartY:Math.round(E.pageY-j.top)},$=A.width/T.offsetWidth||1,W=this.inRange(N.chartX,N.chartY,$);if(!W)return null;var B=this.state,V=B.xAxisMap,H=B.yAxisMap,J=this.getTooltipEventType();if(J!=="axis"&&V&&H){var Q=qs(V).scale,re=qs(H).scale,ae=Q&&Q.invert?Q.invert(N.chartX):null,se=re&&re.invert?re.invert(N.chartY):null;return Te(Te({},N),{},{xValue:ae,yValue:se})}var oe=b5(this.state,this.props.data,this.props.layout,W);return oe?Te(Te({},N),oe):null}},{key:"inRange",value:function(E,T){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,j=this.props.layout,N=E/A,$=T/A;if(j==="horizontal"||j==="vertical"){var W=this.state.offset,B=N>=W.left&&N<=W.left+W.width&&$>=W.top&&$<=W.top+W.height;return B?{x:N,y:$}:null}var V=this.state,H=V.angleAxisMap,J=V.radiusAxisMap;if(H&&J){var Q=qs(H);return _6({x:N,y:$},Q)}return null}},{key:"parseEventsOfWrapper",value:function(){var E=this.props.children,T=this.getTooltipEventType(),A=hi(E,zi),j={};A&&T==="axis"&&(A.props.trigger==="click"?j={onClick:this.handleClick}:j={onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd});var N=fy(this.props,this.handleOuterEvent);return Te(Te({},N),j)}},{key:"addListener",value:function(){NO.on(MO,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){NO.removeListener(MO,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(E,T,A){for(var j=this.state.formattedGraphicalItems,N=0,$=j.length;N<$;N++){var W=j[N];if(W.item===E||W.props.key===E.key||T===Ia(W.item.type)&&A===W.childIndex)return W}return null}},{key:"renderClipPath",value:function(){var E=this.clipPathId,T=this.state.offset,A=T.left,j=T.top,N=T.height,$=T.width;return Z.createElement("defs",null,Z.createElement("clipPath",{id:E},Z.createElement("rect",{x:A,y:j,height:N,width:$})))}},{key:"getXScales",value:function(){var E=this.state.xAxisMap;return E?Object.entries(E).reduce(function(T,A){var j=v5(A,2),N=j[0],$=j[1];return Te(Te({},T),{},pt({},N,$.scale))},{}):null}},{key:"getYScales",value:function(){var E=this.state.yAxisMap;return E?Object.entries(E).reduce(function(T,A){var j=v5(A,2),N=j[0],$=j[1];return Te(Te({},T),{},pt({},N,$.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(E){var T;return(T=this.state.xAxisMap)===null||T===void 0||(T=T[E])===null||T===void 0?void 0:T.scale}},{key:"getYScaleByAxisId",value:function(E){var T;return(T=this.state.yAxisMap)===null||T===void 0||(T=T[E])===null||T===void 0?void 0:T.scale}},{key:"getItemByXY",value:function(E){var T=this.state,A=T.formattedGraphicalItems,j=T.activeItem;if(A&&A.length)for(var N=0,$=A.length;N<$;N++){var W=A[N],B=W.props,V=W.item,H=V.type.defaultProps!==void 0?Te(Te({},V.type.defaultProps),V.props):V.props,J=Ia(V.type);if(J==="Bar"){var Q=(B.data||[]).find(function(oe){return Tbe(E,oe)});if(Q)return{graphicalItem:W,payload:Q}}else if(J==="RadialBar"){var re=(B.data||[]).find(function(oe){return _6(E,oe)});if(re)return{graphicalItem:W,payload:re}}else if(yb(W,j)||bb(W,j)||Dp(W,j)){var ae=X_e({graphicalItem:W,activeTooltipItem:j,itemData:H.data}),se=H.activeIndex===void 0?ae:H.activeIndex;return{graphicalItem:Te(Te({},W),{},{childIndex:se}),payload:Dp(W,j)?H.data[ae]:W.props.data[ae]}}}return null}},{key:"render",value:function(){var E=this;if(!RM(this))return null;var T=this.props,A=T.children,j=T.className,N=T.width,$=T.height,W=T.style,B=T.compact,V=T.title,H=T.desc,J=g5(T,rOe),Q=it(J,!1);if(B)return Z.createElement(GD,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},Z.createElement(JP,Xc({},Q,{width:N,height:$,title:V,desc:H}),this.renderClipPath(),MM(A,this.renderMap)));if(this.props.accessibilityLayer){var re,ae;Q.tabIndex=(re=this.props.tabIndex)!==null&&re!==void 0?re:0,Q.role=(ae=this.props.role)!==null&&ae!==void 0?ae:"application",Q.onKeyDown=function(oe){E.accessibilityManager.keyboardEvent(oe)},Q.onFocus=function(){E.accessibilityManager.focus()}}var se=this.parseEventsOfWrapper();return Z.createElement(GD,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},Z.createElement("div",Xc({className:Be("recharts-wrapper",j),style:Te({position:"relative",cursor:"default",width:N,height:$},W)},se,{ref:function(K){E.container=K}}),Z.createElement(JP,Xc({},Q,{width:N,height:$,title:V,desc:H,style:_Oe}),this.renderClipPath(),MM(A,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(F.Component);pt(x,"displayName",n),pt(x,"defaultProps",Te({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},p)),pt(x,"getDerivedStateFromProps",function(w,O){var P=w.dataKey,E=w.data,T=w.children,A=w.width,j=w.height,N=w.layout,$=w.stackOffset,W=w.margin,B=O.dataStartIndex,V=O.dataEndIndex;if(O.updateId===void 0){var H=_5(w);return Te(Te(Te({},H),{},{updateId:0},b(Te(Te({props:w},H),{},{updateId:0}),O)),{},{prevDataKey:P,prevData:E,prevWidth:A,prevHeight:j,prevLayout:N,prevStackOffset:$,prevMargin:W,prevChildren:T})}if(P!==O.prevDataKey||E!==O.prevData||A!==O.prevWidth||j!==O.prevHeight||N!==O.prevLayout||$!==O.prevStackOffset||!ef(W,O.prevMargin)){var J=_5(w),Q={chartX:O.chartX,chartY:O.chartY,isTooltipActive:O.isTooltipActive},re=Te(Te({},b5(O,E,N)),{},{updateId:O.updateId+1}),ae=Te(Te(Te({},J),Q),re);return Te(Te(Te({},ae),b(Te({props:w},ae),O)),{},{prevDataKey:P,prevData:E,prevWidth:A,prevHeight:j,prevLayout:N,prevStackOffset:$,prevMargin:W,prevChildren:T})}if(!XP(T,O.prevChildren)){var se,oe,K,G,z=hi(T,kf),ne=z&&(se=(oe=z.props)===null||oe===void 0?void 0:oe.startIndex)!==null&&se!==void 0?se:B,X=z&&(K=(G=z.props)===null||G===void 0?void 0:G.endIndex)!==null&&K!==void 0?K:V,le=ne!==B||X!==V,ce=!ft(E),de=ce&&!le?O.updateId:O.updateId+1;return Te(Te({updateId:de},b(Te(Te({props:w},O),{},{updateId:de,dataStartIndex:ne,dataEndIndex:X}),O)),{},{prevChildren:T,dataStartIndex:ne,dataEndIndex:X})}return null}),pt(x,"renderActiveDot",function(w,O,P){var E;return F.isValidElement(w)?E=F.cloneElement(w,O):dt(w)?E=w(O):E=Z.createElement(dm,O),Z.createElement(Pt,{className:"recharts-active-dot",key:P},E)});var _=F.forwardRef(function(O,P){return Z.createElement(x,Xc({},O,{ref:P}))});return _.displayName=x.displayName,_},AOe=Dj({chartName:"LineChart",GraphicalChild:sd,axisComponents:[{axisType:"xAxis",AxisComp:ld},{axisType:"yAxis",AxisComp:ud}],formatAxisMap:i9}),kOe=Dj({chartName:"PieChart",GraphicalChild:ra,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:gb},{axisType:"radiusAxis",AxisComp:mb}],formatAxisMap:rye,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),ROe=Dj({chartName:"ComposedChart",GraphicalChild:[sd,$u,$a,Pb],axisComponents:[{axisType:"xAxis",AxisComp:ld},{axisType:"yAxis",AxisComp:ud},{axisType:"zAxis",AxisComp:Sb}],formatAxisMap:i9});function K9(e,t){const n=F.useRef(t);F.useEffect(function(){t!==n.current&&e.attributionControl!=null&&(n.current!=null&&e.attributionControl.removeAttribution(n.current),t!=null&&e.attributionControl.addAttribution(t)),n.current=t},[e,t])}const NOe=1;function MOe(e){return Object.freeze({__version:NOe,map:e})}function LOe(e,t){return Object.freeze({...e,...t})}const Y9=F.createContext(null),Z9=Y9.Provider;function X9(){const e=F.useContext(Y9);if(e==null)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of ");return e}function IOe(e){function t(n,r){const{instance:i,context:o}=e(n).current;return F.useImperativeHandle(r,()=>i),n.children==null?null:Z.createElement(Z9,{value:o},n.children)}return F.forwardRef(t)}function DOe(e){function t(n,r){const[i,o]=F.useState(!1),{instance:a}=e(n,o).current;F.useImperativeHandle(r,()=>a),F.useEffect(function(){i&&a.update()},[a,i,n.children]);const s=a._contentNode;return s?AE.createPortal(n.children,s):null}return F.forwardRef(t)}function $Oe(e){function t(n,r){const{instance:i}=e(n).current;return F.useImperativeHandle(r,()=>i),null}return F.forwardRef(t)}function Q9(e,t){const n=F.useRef();F.useEffect(function(){return t!=null&&e.instance.on(t),n.current=t,function(){n.current!=null&&e.instance.off(n.current),n.current=null}},[e,t])}function $j(e,t){const n=e.pane??t.pane;return n?{...e,pane:n}:e}function FOe(e,t){return function(r,i){const o=X9(),a=e($j(r,o),o);return K9(o.map,r.attribution),Q9(a.current,r.eventHandlers),t(a.current,o,r,i),a}}var Ch={exports:{}};/* @preserve + * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com + * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade + */var BOe=Ch.exports,w5;function UOe(){return w5||(w5=1,function(e,t){(function(n,r){r(t)})(BOe,function(n){var r="1.9.4";function i(f){var m,S,k,U;for(S=1,k=arguments.length;S"u"||!L||!L.Mixin)){f=E(f)?f:[f];for(var m=0;m0?Math.floor(f):Math.ceil(f)};oe.prototype={clone:function(){return new oe(this.x,this.y)},add:function(f){return this.clone()._add(G(f))},_add:function(f){return this.x+=f.x,this.y+=f.y,this},subtract:function(f){return this.clone()._subtract(G(f))},_subtract:function(f){return this.x-=f.x,this.y-=f.y,this},divideBy:function(f){return this.clone()._divideBy(f)},_divideBy:function(f){return this.x/=f,this.y/=f,this},multiplyBy:function(f){return this.clone()._multiplyBy(f)},_multiplyBy:function(f){return this.x*=f,this.y*=f,this},scaleBy:function(f){return new oe(this.x*f.x,this.y*f.y)},unscaleBy:function(f){return new oe(this.x/f.x,this.y/f.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=K(this.x),this.y=K(this.y),this},distanceTo:function(f){f=G(f);var m=f.x-this.x,S=f.y-this.y;return Math.sqrt(m*m+S*S)},equals:function(f){return f=G(f),f.x===this.x&&f.y===this.y},contains:function(f){return f=G(f),Math.abs(f.x)<=Math.abs(this.x)&&Math.abs(f.y)<=Math.abs(this.y)},toString:function(){return"Point("+v(this.x)+", "+v(this.y)+")"}};function G(f,m,S){return f instanceof oe?f:E(f)?new oe(f[0],f[1]):f==null?f:typeof f=="object"&&"x"in f&&"y"in f?new oe(f.x,f.y):new oe(f,m,S)}function z(f,m){if(f)for(var S=m?[f,m]:f,k=0,U=S.length;k=this.min.x&&S.x<=this.max.x&&m.y>=this.min.y&&S.y<=this.max.y},intersects:function(f){f=ne(f);var m=this.min,S=this.max,k=f.min,U=f.max,te=U.x>=m.x&&k.x<=S.x,pe=U.y>=m.y&&k.y<=S.y;return te&&pe},overlaps:function(f){f=ne(f);var m=this.min,S=this.max,k=f.min,U=f.max,te=U.x>m.x&&k.xm.y&&k.y=m.lat&&U.lat<=S.lat&&k.lng>=m.lng&&U.lng<=S.lng},intersects:function(f){f=le(f);var m=this._southWest,S=this._northEast,k=f.getSouthWest(),U=f.getNorthEast(),te=U.lat>=m.lat&&k.lat<=S.lat,pe=U.lng>=m.lng&&k.lng<=S.lng;return te&&pe},overlaps:function(f){f=le(f);var m=this._southWest,S=this._northEast,k=f.getSouthWest(),U=f.getNorthEast(),te=U.lat>m.lat&&k.latm.lng&&k.lng1,sn=function(){var f=!1;try{var m=Object.defineProperty({},"passive",{get:function(){f=!0}});window.addEventListener("testPassiveEventSupport",p,m),window.removeEventListener("testPassiveEventSupport",p,m)}catch{}return f}(),$n=function(){return!!document.createElement("canvas").getContext}(),Rn=!!(document.createElementNS&&Fe("svg").createSVGRect),pn=!!Rn&&function(){var f=document.createElement("div");return f.innerHTML="",(f.firstChild&&f.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),mn=!Rn&&function(){try{var f=document.createElement("div");f.innerHTML='';var m=f.firstChild;return m.style.behavior="url(#default#VML)",m&&typeof m.adj=="object"}catch{return!1}}(),nr=navigator.platform.indexOf("Mac")===0,Qr=navigator.platform.indexOf("Linux")===0;function vn(f){return navigator.userAgent.toLowerCase().indexOf(f)>=0}var rt={ie:je,ielt9:Me,edge:He,webkit:Ue,android:qe,android23:ye,androidStock:Ae,opera:ke,chrome:De,gecko:Ke,safari:Xe,phantom:bt,opera12:Ot,win:xt,ie3d:en,webkit3d:Gt,gecko3d:kn,any3d:Dn,mobile:Nr,mobileWebkit:En,mobileWebkit3d:ua,msPointer:Mr,pointer:to,touch:xl,touchNative:no,mobileOpera:rs,mobileGecko:ko,retina:hn,passiveEvents:sn,canvas:$n,svg:Rn,vml:mn,inlineSvg:pn,mac:nr,linux:Qr},wl=rt.msPointer?"MSPointerDown":"pointerdown",Uu=rt.msPointer?"MSPointerMove":"pointermove",wm=rt.msPointer?"MSPointerUp":"pointerup",Om=rt.msPointer?"MSPointerCancel":"pointercancel",hd={touchstart:wl,touchmove:Uu,touchend:wm,touchcancel:Om},Ro={touchstart:gn,touchmove:zu,touchend:zu,touchcancel:zu},ca={},pd=!1;function Ib(f,m,S){return m==="touchstart"&&Db(),Ro[m]?(S=Ro[m].bind(this,S),f.addEventListener(hd[m],S,!1),S):(console.warn("wrong event specified:",m),p)}function Sm(f,m,S){if(!hd[m]){console.warn("wrong event specified:",m);return}f.removeEventListener(hd[m],S,!1)}function Pm(f){ca[f.pointerId]=f}function Cm(f){ca[f.pointerId]&&(ca[f.pointerId]=f)}function md(f){delete ca[f.pointerId]}function Db(){pd||(document.addEventListener(wl,Pm,!0),document.addEventListener(Uu,Cm,!0),document.addEventListener(wm,md,!0),document.addEventListener(Om,md,!0),pd=!0)}function zu(f,m){if(m.pointerType!==(m.MSPOINTER_TYPE_MOUSE||"mouse")){m.touches=[];for(var S in ca)m.touches.push(ca[S]);m.changedTouches=[m],f(m)}}function gn(f,m){m.MSPOINTER_TYPE_TOUCH&&m.pointerType===m.MSPOINTER_TYPE_TOUCH&&yn(m),zu(f,m)}function $b(f){var m={},S,k;for(k in f)S=f[k],m[k]=S&&S.bind?S.bind(f):S;return f=m,m.type="dblclick",m.detail=2,m.isTrusted=!1,m._simulated=!0,m}var vd=200;function Em(f,m){f.addEventListener("dblclick",m);var S=0,k;function U(te){if(te.detail!==1){k=te.detail;return}if(!(te.pointerType==="mouse"||te.sourceCapabilities&&!te.sourceCapabilities.firesTouchEvents)){var pe=ha(te);if(!(pe.some(function(Pe){return Pe instanceof HTMLLabelElement&&Pe.attributes.for})&&!pe.some(function(Pe){return Pe instanceof HTMLInputElement||Pe instanceof HTMLSelectElement}))){var _e=Date.now();_e-S<=vd?(k++,k===2&&m($b(te))):k=1,S=_e}}}return f.addEventListener("click",U),{dblclick:m,simDblclick:U}}function Vu(f,m){f.removeEventListener("dblclick",m.dblclick),f.removeEventListener("click",m.simDblclick)}var gd=ss(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),is=ss(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Ol=is==="webkitTransition"||is==="OTransition"?is+"End":"transitionend";function Jr(f){return typeof f=="string"?document.getElementById(f):f}function Sl(f,m){var S=f.style[m]||f.currentStyle&&f.currentStyle[m];if((!S||S==="auto")&&document.defaultView){var k=document.defaultView.getComputedStyle(f,null);S=k?k[m]:null}return S==="auto"?null:S}function wt(f,m,S){var k=document.createElement(f);return k.className=m||"",S&&S.appendChild(k),k}function tn(f){var m=f.parentNode;m&&m.removeChild(f)}function Wu(f){for(;f.firstChild;)f.removeChild(f.firstChild)}function os(f){var m=f.parentNode;m&&m.lastChild!==f&&m.appendChild(f)}function ro(f){var m=f.parentNode;m&&m.firstChild!==f&&m.insertBefore(f,m.firstChild)}function as(f,m){if(f.classList!==void 0)return f.classList.contains(m);var S=qu(f);return S.length>0&&new RegExp("(^|\\s)"+m+"(\\s|$)").test(S)}function gt(f,m){if(f.classList!==void 0)for(var S=x(m),k=0,U=S.length;k0?2*window.devicePixelRatio:1;function jm(f){return rt.edge?f.wheelDeltaY/2:f.deltaY&&f.deltaMode===0?-f.deltaY/Fb:f.deltaY&&f.deltaMode===1?-f.deltaY*20:f.deltaY&&f.deltaMode===2?-f.deltaY*60:f.deltaX||f.deltaZ?0:f.wheelDelta?(f.wheelDeltaY||f.wheelDelta)/2:f.detail&&Math.abs(f.detail)<32765?-f.detail*20:f.detail?f.detail/-32765*60:0}function Al(f,m){var S=m.relatedTarget;if(!S)return!0;try{for(;S&&S!==f;)S=S.parentNode}catch{return!1}return S!==f}var Xu={__proto__:null,on:ht,off:Ut,stopPropagation:Ci,disableScrollPropagation:Zu,disableClickPropagation:Tl,preventDefault:yn,stop:ni,getPropagationPath:ha,getMousePosition:jl,getWheelDelta:jm,isExternalTarget:Al,addListener:ht,removeListener:Ut},Qu=se.extend({run:function(f,m,S,k){this.stop(),this._el=f,this._inProgress=!0,this._duration=S||.25,this._easeOutPower=1/Math.max(k||.5,.2),this._startPos=io(f),this._offset=m.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=V(this._animate,this),this._step()},_step:function(f){var m=+new Date-this._startTime,S=this._duration*1e3;mthis.options.maxZoom)?this.setZoom(f):this},panInsideBounds:function(f,m){this._enforcingBounds=!0;var S=this.getCenter(),k=this._limitCenter(S,this._zoom,le(f));return S.equals(k)||this.panTo(k,m),this._enforcingBounds=!1,this},panInside:function(f,m){m=m||{};var S=G(m.paddingTopLeft||m.padding||[0,0]),k=G(m.paddingBottomRight||m.padding||[0,0]),U=this.project(this.getCenter()),te=this.project(f),pe=this.getPixelBounds(),_e=ne([pe.min.add(S),pe.max.subtract(k)]),Pe=_e.getSize();if(!_e.contains(te)){this._enforcingBounds=!0;var Re=te.subtract(_e.getCenter()),Ze=_e.extend(te).getSize().subtract(Pe);U.x+=Re.x<0?-Ze.x:Ze.x,U.y+=Re.y<0?-Ze.y:Ze.y,this.panTo(this.unproject(U),m),this._enforcingBounds=!1}return this},invalidateSize:function(f){if(!this._loaded)return this;f=i({animate:!1,pan:!0},f===!0?{animate:!0}:f);var m=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var S=this.getSize(),k=m.divideBy(2).round(),U=S.divideBy(2).round(),te=k.subtract(U);return!te.x&&!te.y?this:(f.animate&&f.pan?this.panBy(te):(f.pan&&this._rawPanBy(te),this.fire("move"),f.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(a(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:m,newSize:S}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(f){if(f=this._locateOptions=i({timeout:1e4,watch:!1},f),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var m=a(this._handleGeolocationResponse,this),S=a(this._handleGeolocationError,this);return f.watch?this._locationWatchId=navigator.geolocation.watchPosition(m,S,f):navigator.geolocation.getCurrentPosition(m,S,f),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(f){if(this._container._leaflet_id){var m=f.code,S=f.message||(m===1?"permission denied":m===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:m,message:"Geolocation error: "+S+"."})}},_handleGeolocationResponse:function(f){if(this._container._leaflet_id){var m=f.coords.latitude,S=f.coords.longitude,k=new ce(m,S),U=k.toBounds(f.coords.accuracy*2),te=this._locateOptions;if(te.setView){var pe=this.getBoundsZoom(U);this.setView(k,te.maxZoom?Math.min(pe,te.maxZoom):pe)}var _e={latlng:k,bounds:U,timestamp:f.timestamp};for(var Pe in f.coords)typeof f.coords[Pe]=="number"&&(_e[Pe]=f.coords[Pe]);this.fire("locationfound",_e)}},addHandler:function(f,m){if(!m)return this;var S=this[f]=new m(this);return this._handlers.push(S),this.options[f]&&S.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),tn(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(H(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var f;for(f in this._layers)this._layers[f].remove();for(f in this._panes)tn(this._panes[f]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(f,m){var S="leaflet-pane"+(f?" leaflet-"+f.replace("Pane","")+"-pane":""),k=wt("div",S,m||this._mapPane);return f&&(this._panes[f]=k),k},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var f=this.getPixelBounds(),m=this.unproject(f.getBottomLeft()),S=this.unproject(f.getTopRight());return new X(m,S)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(f,m,S){f=le(f),S=G(S||[0,0]);var k=this.getZoom()||0,U=this.getMinZoom(),te=this.getMaxZoom(),pe=f.getNorthWest(),_e=f.getSouthEast(),Pe=this.getSize().subtract(S),Re=ne(this.project(_e,k),this.project(pe,k)).getSize(),Ze=rt.any3d?this.options.zoomSnap:1,st=Pe.x/Re.x,St=Pe.y/Re.y,Bn=m?Math.max(st,St):Math.min(st,St);return k=this.getScaleZoom(Bn,k),Ze&&(k=Math.round(k/(Ze/100))*(Ze/100),k=m?Math.ceil(k/Ze)*Ze:Math.floor(k/Ze)*Ze),Math.max(U,Math.min(te,k))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new oe(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(f,m){var S=this._getTopLeftPoint(f,m);return new z(S,S.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(f){return this.options.crs.getProjectedBounds(f===void 0?this.getZoom():f)},getPane:function(f){return typeof f=="string"?this._panes[f]:f},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(f,m){var S=this.options.crs;return m=m===void 0?this._zoom:m,S.scale(f)/S.scale(m)},getScaleZoom:function(f,m){var S=this.options.crs;m=m===void 0?this._zoom:m;var k=S.zoom(f*S.scale(m));return isNaN(k)?1/0:k},project:function(f,m){return m=m===void 0?this._zoom:m,this.options.crs.latLngToPoint(de(f),m)},unproject:function(f,m){return m=m===void 0?this._zoom:m,this.options.crs.pointToLatLng(G(f),m)},layerPointToLatLng:function(f){var m=G(f).add(this.getPixelOrigin());return this.unproject(m)},latLngToLayerPoint:function(f){var m=this.project(de(f))._round();return m._subtract(this.getPixelOrigin())},wrapLatLng:function(f){return this.options.crs.wrapLatLng(de(f))},wrapLatLngBounds:function(f){return this.options.crs.wrapLatLngBounds(le(f))},distance:function(f,m){return this.options.crs.distance(de(f),de(m))},containerPointToLayerPoint:function(f){return G(f).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(f){return G(f).add(this._getMapPanePos())},containerPointToLatLng:function(f){var m=this.containerPointToLayerPoint(G(f));return this.layerPointToLatLng(m)},latLngToContainerPoint:function(f){return this.layerPointToContainerPoint(this.latLngToLayerPoint(de(f)))},mouseEventToContainerPoint:function(f){return jl(f,this._container)},mouseEventToLayerPoint:function(f){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(f))},mouseEventToLatLng:function(f){return this.layerPointToLatLng(this.mouseEventToLayerPoint(f))},_initContainer:function(f){var m=this._container=Jr(f);if(m){if(m._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");ht(m,"scroll",this._onScroll,this),this._containerId=c(m)},_initLayout:function(){var f=this._container;this._fadeAnimated=this.options.fadeAnimation&&rt.any3d,gt(f,"leaflet-container"+(rt.touch?" leaflet-touch":"")+(rt.retina?" leaflet-retina":"")+(rt.ielt9?" leaflet-oldie":"")+(rt.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var m=Sl(f,"position");m!=="absolute"&&m!=="relative"&&m!=="fixed"&&m!=="sticky"&&(f.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var f=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),On(this._mapPane,new oe(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(gt(f.markerPane,"leaflet-zoom-hide"),gt(f.shadowPane,"leaflet-zoom-hide"))},_resetView:function(f,m,S){On(this._mapPane,new oe(0,0));var k=!this._loaded;this._loaded=!0,m=this._limitZoom(m),this.fire("viewprereset");var U=this._zoom!==m;this._moveStart(U,S)._move(f,m)._moveEnd(U),this.fire("viewreset"),k&&this.fire("load")},_moveStart:function(f,m){return f&&this.fire("zoomstart"),m||this.fire("movestart"),this},_move:function(f,m,S,k){m===void 0&&(m=this._zoom);var U=this._zoom!==m;return this._zoom=m,this._lastCenter=f,this._pixelOrigin=this._getNewPixelOrigin(f),k?S&&S.pinch&&this.fire("zoom",S):((U||S&&S.pinch)&&this.fire("zoom",S),this.fire("move",S)),this},_moveEnd:function(f){return f&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return H(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(f){On(this._mapPane,this._getMapPanePos().subtract(f))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(f){this._targets={},this._targets[c(this._container)]=this;var m=f?Ut:ht;m(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&m(window,"resize",this._onResize,this),rt.any3d&&this.options.transform3DLimit&&(f?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){H(this._resizeRequest),this._resizeRequest=V(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var f=this._getMapPanePos();Math.max(Math.abs(f.x),Math.abs(f.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(f,m){for(var S=[],k,U=m==="mouseout"||m==="mouseover",te=f.target||f.srcElement,pe=!1;te;){if(k=this._targets[c(te)],k&&(m==="click"||m==="preclick")&&this._draggableMoved(k)){pe=!0;break}if(k&&k.listens(m,!0)&&(U&&!Al(te,f)||(S.push(k),U))||te===this._container)break;te=te.parentNode}return!S.length&&!pe&&!U&&this.listens(m,!0)&&(S=[this]),S},_isClickDisabled:function(f){for(;f&&f!==this._container;){if(f._leaflet_disable_click)return!0;f=f.parentNode}},_handleDOMEvent:function(f){var m=f.target||f.srcElement;if(!(!this._loaded||m._leaflet_disable_events||f.type==="click"&&this._isClickDisabled(m))){var S=f.type;S==="mousedown"&&us(m),this._fireDOMEvent(f,S)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(f,m,S){if(f.type==="click"){var k=i({},f);k.type="preclick",this._fireDOMEvent(k,k.type,S)}var U=this._findEventTargets(f,m);if(S){for(var te=[],pe=0;pe0?Math.round(f-m)/2:Math.max(0,Math.ceil(f))-Math.max(0,Math.floor(m))},_limitZoom:function(f){var m=this.getMinZoom(),S=this.getMaxZoom(),k=rt.any3d?this.options.zoomSnap:1;return k&&(f=Math.round(f/k)*k),Math.max(m,Math.min(S,f))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Kt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(f,m){var S=this._getCenterOffset(f)._trunc();return(m&&m.animate)!==!0&&!this.getSize().contains(S)?!1:(this.panBy(S,m),!0)},_createAnimProxy:function(){var f=this._proxy=wt("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(f),this.on("zoomanim",function(m){var S=gd,k=this._proxy.style[S];ei(this._proxy,this.project(m.center,m.zoom),this.getZoomScale(m.zoom,1)),k===this._proxy.style[S]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){tn(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var f=this.getCenter(),m=this.getZoom();ei(this._proxy,this.project(f,m),this.getZoomScale(m,1))},_catchTransitionEnd:function(f){this._animatingZoom&&f.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(f,m,S){if(this._animatingZoom)return!0;if(S=S||{},!this._zoomAnimated||S.animate===!1||this._nothingToAnimate()||Math.abs(m-this._zoom)>this.options.zoomAnimationThreshold)return!1;var k=this.getZoomScale(m),U=this._getCenterOffset(f)._divideBy(1-1/k);return S.animate!==!0&&!this.getSize().contains(U)?!1:(V(function(){this._moveStart(!0,S.noMoveStart||!1)._animateZoom(f,m,!0)},this),!0)},_animateZoom:function(f,m,S,k){this._mapPane&&(S&&(this._animatingZoom=!0,this._animateToCenter=f,this._animateToZoom=m,gt(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:f,zoom:m,noUpdate:k}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(a(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&Kt(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function No(f,m){return new Et(f,m)}var yr=Q.extend({options:{position:"topright"},initialize:function(f){_(this,f)},getPosition:function(){return this.options.position},setPosition:function(f){var m=this._map;return m&&m.removeControl(this),this.options.position=f,m&&m.addControl(this),this},getContainer:function(){return this._container},addTo:function(f){this.remove(),this._map=f;var m=this._container=this.onAdd(f),S=this.getPosition(),k=f._controlCorners[S];return gt(m,"leaflet-control"),S.indexOf("bottom")!==-1?k.insertBefore(m,k.firstChild):k.appendChild(m),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(tn(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(f){this._map&&f&&f.screenX>0&&f.screenY>0&&this._map.getContainer().focus()}}),Mo=function(f){return new yr(f)};Et.include({addControl:function(f){return f.addTo(this),this},removeControl:function(f){return f.remove(),this},_initControlPos:function(){var f=this._controlCorners={},m="leaflet-",S=this._controlContainer=wt("div",m+"control-container",this._container);function k(U,te){var pe=m+U+" "+m+te;f[U+te]=wt("div",pe,S)}k("top","left"),k("top","right"),k("bottom","left"),k("bottom","right")},_clearControlPos:function(){for(var f in this._controlCorners)tn(this._controlCorners[f]);tn(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var xd=yr.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(f,m,S,k){return S1,this._baseLayersList.style.display=f?"":"none"),this._separator.style.display=m&&f?"":"none",this},_onLayerChange:function(f){this._handlingClick||this._update();var m=this._getLayer(c(f.target)),S=m.overlay?f.type==="add"?"overlayadd":"overlayremove":f.type==="add"?"baselayerchange":null;S&&this._map.fire(S,m)},_createRadioElement:function(f,m){var S='",k=document.createElement("div");return k.innerHTML=S,k.firstChild},_addItem:function(f){var m=document.createElement("label"),S=this._map.hasLayer(f.layer),k;f.overlay?(k=document.createElement("input"),k.type="checkbox",k.className="leaflet-control-layers-selector",k.defaultChecked=S):k=this._createRadioElement("leaflet-base-layers_"+c(this),S),this._layerControlInputs.push(k),k.layerId=c(f.layer),ht(k,"click",this._onInputClick,this);var U=document.createElement("span");U.innerHTML=" "+f.name;var te=document.createElement("span");m.appendChild(te),te.appendChild(k),te.appendChild(U);var pe=f.overlay?this._overlaysList:this._baseLayersList;return pe.appendChild(m),this._checkDisabledLayers(),m},_onInputClick:function(){if(!this._preventClick){var f=this._layerControlInputs,m,S,k=[],U=[];this._handlingClick=!0;for(var te=f.length-1;te>=0;te--)m=f[te],S=this._getLayer(m.layerId).layer,m.checked?k.push(S):m.checked||U.push(S);for(te=0;te=0;U--)m=f[U],S=this._getLayer(m.layerId).layer,m.disabled=S.options.minZoom!==void 0&&kS.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var f=this._section;this._preventClick=!0,ht(f,"click",yn),this.expand();var m=this;setTimeout(function(){Ut(f,"click",yn),m._preventClick=!1})}}),Ju=function(f,m,S){return new xd(f,m,S)},cs=yr.extend({options:{position:"topleft",zoomInText:'',zoomInTitle:"Zoom in",zoomOutText:'',zoomOutTitle:"Zoom out"},onAdd:function(f){var m="leaflet-control-zoom",S=wt("div",m+" leaflet-bar"),k=this.options;return this._zoomInButton=this._createButton(k.zoomInText,k.zoomInTitle,m+"-in",S,this._zoomIn),this._zoomOutButton=this._createButton(k.zoomOutText,k.zoomOutTitle,m+"-out",S,this._zoomOut),this._updateDisabled(),f.on("zoomend zoomlevelschange",this._updateDisabled,this),S},onRemove:function(f){f.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(f){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(f.shiftKey?3:1))},_createButton:function(f,m,S,k,U){var te=wt("a",S,k);return te.innerHTML=f,te.href="#",te.title=m,te.setAttribute("role","button"),te.setAttribute("aria-label",m),Tl(te),ht(te,"click",ni),ht(te,"click",U,this),ht(te,"click",this._refocusOnMap,this),te},_updateDisabled:function(){var f=this._map,m="leaflet-disabled";Kt(this._zoomInButton,m),Kt(this._zoomOutButton,m),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||f._zoom===f.getMinZoom())&&(gt(this._zoomOutButton,m),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||f._zoom===f.getMaxZoom())&&(gt(this._zoomInButton,m),this._zoomInButton.setAttribute("aria-disabled","true"))}});Et.mergeOptions({zoomControl:!0}),Et.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new cs,this.addControl(this.zoomControl))});var Am=function(f){return new cs(f)},ur=yr.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(f){var m="leaflet-control-scale",S=wt("div",m),k=this.options;return this._addScales(k,m+"-line",S),f.on(k.updateWhenIdle?"moveend":"move",this._update,this),f.whenReady(this._update,this),S},onRemove:function(f){f.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(f,m,S){f.metric&&(this._mScale=wt("div",m,S)),f.imperial&&(this._iScale=wt("div",m,S))},_update:function(){var f=this._map,m=f.getSize().y/2,S=f.distance(f.containerPointToLatLng([0,m]),f.containerPointToLatLng([this.options.maxWidth,m]));this._updateScales(S)},_updateScales:function(f){this.options.metric&&f&&this._updateMetric(f),this.options.imperial&&f&&this._updateImperial(f)},_updateMetric:function(f){var m=this._getRoundNum(f),S=m<1e3?m+" m":m/1e3+" km";this._updateScale(this._mScale,S,m/f)},_updateImperial:function(f){var m=f*3.2808399,S,k,U;m>5280?(S=m/5280,k=this._getRoundNum(S),this._updateScale(this._iScale,k+" mi",k/S)):(U=this._getRoundNum(m),this._updateScale(this._iScale,U+" ft",U/m))},_updateScale:function(f,m,S){f.style.width=Math.round(this.options.maxWidth*S)+"px",f.innerHTML=m},_getRoundNum:function(f){var m=Math.pow(10,(Math.floor(f)+"").length-1),S=f/m;return S=S>=10?10:S>=5?5:S>=3?3:S>=2?2:1,m*S}}),fs=function(f){return new ur(f)},wd='',pa=yr.extend({options:{position:"bottomright",prefix:''+(rt.inlineSvg?wd+" ":"")+"Leaflet"},initialize:function(f){_(this,f),this._attributions={}},onAdd:function(f){f.attributionControl=this,this._container=wt("div","leaflet-control-attribution"),Tl(this._container);for(var m in f._layers)f._layers[m].getAttribution&&this.addAttribution(f._layers[m].getAttribution());return this._update(),f.on("layeradd",this._addAttribution,this),this._container},onRemove:function(f){f.off("layeradd",this._addAttribution,this)},_addAttribution:function(f){f.layer.getAttribution&&(this.addAttribution(f.layer.getAttribution()),f.layer.once("remove",function(){this.removeAttribution(f.layer.getAttribution())},this))},setPrefix:function(f){return this.options.prefix=f,this._update(),this},addAttribution:function(f){return f?(this._attributions[f]||(this._attributions[f]=0),this._attributions[f]++,this._update(),this):this},removeAttribution:function(f){return f?(this._attributions[f]&&(this._attributions[f]--,this._update()),this):this},_update:function(){if(this._map){var f=[];for(var m in this._attributions)this._attributions[m]&&f.push(m);var S=[];this.options.prefix&&S.push(this.options.prefix),f.length&&S.push(f.join(", ")),this._container.innerHTML=S.join(' ')}}});Et.mergeOptions({attributionControl:!0}),Et.addInitHook(function(){this.options.attributionControl&&new pa().addTo(this)});var Bb=function(f){return new pa(f)};yr.Layers=xd,yr.Zoom=cs,yr.Scale=ur,yr.Attribution=pa,Mo.layers=Ju,Mo.zoom=Am,Mo.scale=fs,Mo.attribution=Bb;var Lr=Q.extend({initialize:function(f){this._map=f},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Lr.addTo=function(f,m){return f.addHandler(m,this),this};var Od={Events:ae},ds=rt.touch?"touchstart mousedown":"mousedown",ri=se.extend({options:{clickTolerance:3},initialize:function(f,m,S,k){_(this,k),this._element=f,this._dragStartTarget=m||f,this._preventOutline=S},enable:function(){this._enabled||(ht(this._dragStartTarget,ds,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(ri._dragging===this&&this.finishDrag(!0),Ut(this._dragStartTarget,ds,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(f){if(this._enabled&&(this._moved=!1,!as(this._element,"leaflet-zoom-anim"))){if(f.touches&&f.touches.length!==1){ri._dragging===this&&this.finishDrag();return}if(!(ri._dragging||f.shiftKey||f.which!==1&&f.button!==1&&!f.touches)&&(ri._dragging=this,this._preventOutline&&us(this._element),Gu(),kt(),!this._moving)){this.fire("down");var m=f.touches?f.touches[0]:f,S=oo(this._element);this._startPoint=new oe(m.clientX,m.clientY),this._startPos=io(this._element),this._parentScale=Pi(S);var k=f.type==="mousedown";ht(document,k?"mousemove":"touchmove",this._onMove,this),ht(document,k?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(f){if(this._enabled){if(f.touches&&f.touches.length>1){this._moved=!0;return}var m=f.touches&&f.touches.length===1?f.touches[0]:f,S=new oe(m.clientX,m.clientY)._subtract(this._startPoint);!S.x&&!S.y||Math.abs(S.x)+Math.abs(S.y)te&&(pe=_e,te=Pe);te>S&&(m[pe]=1,Cd(f,m,S,k,pe),Cd(f,m,S,pe,U))}function Wb(f,m){for(var S=[f[0]],k=1,U=0,te=f.length;km&&(S.push(f[k]),U=k);return Um.max.x&&(S|=2),f.ym.max.y&&(S|=8),S}function qb(f,m){var S=m.x-f.x,k=m.y-f.y;return S*S+k*k}function va(f,m,S,k){var U=m.x,te=m.y,pe=S.x-U,_e=S.y-te,Pe=pe*pe+_e*_e,Re;return Pe>0&&(Re=((f.x-U)*pe+(f.y-te)*_e)/Pe,Re>1?(U=S.x,te=S.y):Re>0&&(U+=pe*Re,te+=_e*Re)),pe=f.x-U,_e=f.y-te,k?pe*pe+_e*_e:new oe(U,te)}function Ir(f){return!E(f[0])||typeof f[0][0]!="object"&&typeof f[0][0]<"u"}function Mm(f){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Ir(f)}function Lm(f,m){var S,k,U,te,pe,_e,Pe,Re;if(!f||f.length===0)throw new Error("latlngs not passed");Ir(f)||(console.warn("latlngs are not flat! Only the first ring will be used"),f=f[0]);var Ze=de([0,0]),st=le(f),St=st.getNorthWest().distanceTo(st.getSouthWest())*st.getNorthEast().distanceTo(st.getNorthWest());St<1700&&(Ze=Pd(f));var Bn=f.length,Nn=[];for(S=0;Sk){Pe=(te-k)/U,Re=[_e.x-Pe*(_e.x-pe.x),_e.y-Pe*(_e.y-pe.y)];break}var cr=m.unproject(G(Re));return de([cr.lat+Ze.lat,cr.lng+Ze.lng])}var Im={__proto__:null,simplify:ec,pointToSegmentDistance:Rm,closestPointOnSegment:zb,clipSegment:Nm,_getEdgeIntersection:tc,_getBitCode:ma,_sqClosestPointOnSegment:va,isFlat:Ir,_flat:Mm,polylineCenter:Lm},Td={project:function(f){return new oe(f.lng,f.lat)},unproject:function(f){return new ce(f.y,f.x)},bounds:new z([-180,-90],[180,90])},jd={R:6378137,R_MINOR:6356752314245179e-9,bounds:new z([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(f){var m=Math.PI/180,S=this.R,k=f.lat*m,U=this.R_MINOR/S,te=Math.sqrt(1-U*U),pe=te*Math.sin(k),_e=Math.tan(Math.PI/4-k/2)/Math.pow((1-pe)/(1+pe),te/2);return k=-S*Math.log(Math.max(_e,1e-10)),new oe(f.lng*m*S,k)},unproject:function(f){for(var m=180/Math.PI,S=this.R,k=this.R_MINOR/S,U=Math.sqrt(1-k*k),te=Math.exp(-f.y/S),pe=Math.PI/2-2*Math.atan(te),_e=0,Pe=.1,Re;_e<15&&Math.abs(Pe)>1e-7;_e++)Re=U*Math.sin(pe),Re=Math.pow((1-Re)/(1+Re),U/2),Pe=Math.PI/2-2*Math.atan(te*Re)-pe,pe+=Pe;return new ce(pe*m,f.x*m/S)}},Hb={__proto__:null,LonLat:Td,Mercator:jd,SphericalMercator:Y},Gb=i({},M,{code:"EPSG:3395",projection:jd,transformation:function(){var f=.5/(Math.PI*jd.R);return ie(f,.5,-f,.5)}()}),Dm=i({},M,{code:"EPSG:4326",projection:Td,transformation:ie(1/180,1,-1/180,.5)}),Kb=i({},be,{projection:Td,transformation:ie(1,0,-1,0),scale:function(f){return Math.pow(2,f)},zoom:function(f){return Math.log(f)/Math.LN2},distance:function(f,m){var S=m.lng-f.lng,k=m.lat-f.lat;return Math.sqrt(S*S+k*k)},infinite:!0});be.Earth=M,be.EPSG3395=Gb,be.EPSG3857=he,be.EPSG900913=Se,be.EPSG4326=Dm,be.Simple=Kb;var ii=se.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(f){return f.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(f){return f&&f.removeLayer(this),this},getPane:function(f){return this._map.getPane(f?this.options[f]||f:this.options.pane)},addInteractiveTarget:function(f){return this._map._targets[c(f)]=this,this},removeInteractiveTarget:function(f){return delete this._map._targets[c(f)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(f){var m=f.target;if(m.hasLayer(this)){if(this._map=m,this._zoomAnimated=m._zoomAnimated,this.getEvents){var S=this.getEvents();m.on(S,this),this.once("remove",function(){m.off(S,this)},this)}this.onAdd(m),this.fire("add"),m.fire("layeradd",{layer:this})}}});Et.include({addLayer:function(f){if(!f._layerAdd)throw new Error("The provided object is not a Layer.");var m=c(f);return this._layers[m]?this:(this._layers[m]=f,f._mapToAdd=this,f.beforeAdd&&f.beforeAdd(this),this.whenReady(f._layerAdd,f),this)},removeLayer:function(f){var m=c(f);return this._layers[m]?(this._loaded&&f.onRemove(this),delete this._layers[m],this._loaded&&(this.fire("layerremove",{layer:f}),f.fire("remove")),f._map=f._mapToAdd=null,this):this},hasLayer:function(f){return c(f)in this._layers},eachLayer:function(f,m){for(var S in this._layers)f.call(m,this._layers[S]);return this},_addLayers:function(f){f=f?E(f)?f:[f]:[];for(var m=0,S=f.length;mthis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()=2&&m[0]instanceof ce&&m[0].equals(m[S-1])&&m.pop(),m},_setLatLngs:function(f){br.prototype._setLatLngs.call(this,f),Ir(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Ir(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var f=this._renderer._bounds,m=this.options.weight,S=new oe(m,m);if(f=new z(f.min.subtract(S),f.max.add(S)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(f))){if(this.options.noClip){this._parts=this._rings;return}for(var k=0,U=this._rings.length,te;kf.y!=U.y>f.y&&f.x<(U.x-k.x)*(f.y-k.y)/(U.y-k.y)+k.x&&(m=!m);return m||br.prototype._containsPoint.call(this,f,!0)}});function Xb(f,m){return new lo(f,m)}var Ei=ao.extend({initialize:function(f,m){_(this,m),this._layers={},f&&this.addData(f)},addData:function(f){var m=E(f)?f:f.features,S,k,U;if(m){for(S=0,k=m.length;S0&&U.push(U[0].slice()),U}function ms(f,m){return f.feature?i({},f.feature,{geometry:m}):lc(m)}function lc(f){return f.type==="Feature"||f.type==="FeatureCollection"?f:{type:"Feature",properties:{},geometry:f}}var kd={toGeoJSON:function(f){return ms(this,{type:"Point",coordinates:ac(this.getLatLng(),f)})}};so.include(kd),rc.include(kd),nc.include(kd),br.include({toGeoJSON:function(f){var m=!Ir(this._latlngs),S=sc(this._latlngs,m?1:0,!1,f);return ms(this,{type:(m?"Multi":"")+"LineString",coordinates:S})}}),lo.include({toGeoJSON:function(f){var m=!Ir(this._latlngs),S=m&&!Ir(this._latlngs[0]),k=sc(this._latlngs,S?2:m?1:0,!0,f);return m||(k=[k]),ms(this,{type:(S?"Multi":"")+"Polygon",coordinates:k})}}),Lo.include({toMultiPoint:function(f){var m=[];return this.eachLayer(function(S){m.push(S.toGeoJSON(f).geometry.coordinates)}),ms(this,{type:"MultiPoint",coordinates:m})},toGeoJSON:function(f){var m=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(m==="MultiPoint")return this.toMultiPoint(f);var S=m==="GeometryCollection",k=[];return this.eachLayer(function(U){if(U.toGeoJSON){var te=U.toGeoJSON(f);if(S)k.push(te.geometry);else{var pe=lc(te);pe.type==="FeatureCollection"?k.push.apply(k,pe.features):k.push(pe)}}}),S?ms(this,{geometries:k,type:"GeometryCollection"}):{type:"FeatureCollection",features:k}}});function Um(f,m){return new Ei(f,m)}var oi=Um,Do=ii.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(f,m,S){this._url=f,this._bounds=le(m),_(this,S)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(gt(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){tn(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(f){return this.options.opacity=f,this._image&&this._updateOpacity(),this},setStyle:function(f){return f.opacity&&this.setOpacity(f.opacity),this},bringToFront:function(){return this._map&&os(this._image),this},bringToBack:function(){return this._map&&ro(this._image),this},setUrl:function(f){return this._url=f,this._image&&(this._image.src=f),this},setBounds:function(f){return this._bounds=le(f),this._map&&this._reset(),this},getEvents:function(){var f={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(f.zoomanim=this._animateZoom),f},setZIndex:function(f){return this.options.zIndex=f,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var f=this._url.tagName==="IMG",m=this._image=f?this._url:wt("img");if(gt(m,"leaflet-image-layer"),this._zoomAnimated&>(m,"leaflet-zoom-animated"),this.options.className&>(m,this.options.className),m.onselectstart=p,m.onmousemove=p,m.onload=a(this.fire,this,"load"),m.onerror=a(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(m.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),f){this._url=m.src;return}m.src=this._url,m.alt=this.options.alt},_animateZoom:function(f){var m=this._map.getZoomScale(f.zoom),S=this._map._latLngBoundsToNewLayerBounds(this._bounds,f.zoom,f.center).min;ei(this._image,S,m)},_reset:function(){var f=this._image,m=new z(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),S=m.getSize();On(f,m.min),f.style.width=S.x+"px",f.style.height=S.y+"px"},_updateOpacity:function(){lr(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var f=this.options.errorOverlayUrl;f&&this._url!==f&&(this._url=f,this._image.src=f)},getCenter:function(){return this._bounds.getCenter()}}),zm=function(f,m,S){return new Do(f,m,S)},Rd=Do.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var f=this._url.tagName==="VIDEO",m=this._image=f?this._url:wt("video");if(gt(m,"leaflet-image-layer"),this._zoomAnimated&>(m,"leaflet-zoom-animated"),this.options.className&>(m,this.options.className),m.onselectstart=p,m.onmousemove=p,m.onloadeddata=a(this.fire,this,"load"),f){for(var S=m.getElementsByTagName("source"),k=[],U=0;U0?k:[m.src];return}E(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(m.style,"objectFit")&&(m.style.objectFit="fill"),m.autoplay=!!this.options.autoplay,m.loop=!!this.options.loop,m.muted=!!this.options.muted,m.playsInline=!!this.options.playsInline;for(var te=0;teU?(m.height=U+"px",gt(f,te)):Kt(f,te),this._containerWidth=this._container.offsetWidth},_animateZoom:function(f){var m=this._map._latLngToNewLayerPoint(this._latlng,f.zoom,f.center),S=this._getAnchor();On(this._container,m.add(S))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var f=this._map,m=parseInt(Sl(this._container,"marginBottom"),10)||0,S=this._container.offsetHeight+m,k=this._containerWidth,U=new oe(this._containerLeft,-S-this._containerBottom);U._add(io(this._container));var te=f.layerPointToContainerPoint(U),pe=G(this.options.autoPanPadding),_e=G(this.options.autoPanPaddingTopLeft||pe),Pe=G(this.options.autoPanPaddingBottomRight||pe),Re=f.getSize(),Ze=0,st=0;te.x+k+Pe.x>Re.x&&(Ze=te.x+k-Re.x+Pe.x),te.x-Ze-_e.x<0&&(Ze=te.x-_e.x),te.y+S+Pe.y>Re.y&&(st=te.y+S-Re.y+Pe.y),te.y-st-_e.y<0&&(st=te.y-_e.y),(Ze||st)&&(this.options.keepInView&&(this._autopanning=!0),f.fire("autopanstart").panBy([Ze,st]))}},_getAnchor:function(){return G(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),vs=function(f,m){return new uc(f,m)};Et.mergeOptions({closePopupOnClick:!0}),Et.include({openPopup:function(f,m,S){return this._initOverlay(uc,f,m,S).openOn(this),this},closePopup:function(f){return f=arguments.length?f:this._popup,f&&f.close(),this}}),ii.include({bindPopup:function(f,m){return this._popup=this._initOverlay(uc,this._popup,f,m),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(f){return this._popup&&(this instanceof ao||(this._popup._source=this),this._popup._prepareOpen(f||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(f){return this._popup&&this._popup.setContent(f),this},getPopup:function(){return this._popup},_openPopup:function(f){if(!(!this._popup||!this._map)){ni(f);var m=f.layer||f.target;if(this._popup._source===m&&!(m instanceof Io)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(f.latlng);return}this._popup._source=m,this.openPopup(f.latlng)}},_movePopup:function(f){this._popup.setLatLng(f.latlng)},_onKeyPress:function(f){f.originalEvent.keyCode===13&&this._openPopup(f)}});var gs=Ti.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(f){Ti.prototype.onAdd.call(this,f),this.setOpacity(this.options.opacity),f.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(f){Ti.prototype.onRemove.call(this,f),f.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var f=Ti.prototype.getEvents.call(this);return this.options.permanent||(f.preclick=this.close),f},_initLayout:function(){var f="leaflet-tooltip",m=f+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=wt("div",m),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+c(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(f){var m,S,k=this._map,U=this._container,te=k.latLngToContainerPoint(k.getCenter()),pe=k.layerPointToContainerPoint(f),_e=this.options.direction,Pe=U.offsetWidth,Re=U.offsetHeight,Ze=G(this.options.offset),st=this._getAnchor();_e==="top"?(m=Pe/2,S=Re):_e==="bottom"?(m=Pe/2,S=0):_e==="center"?(m=Pe/2,S=Re/2):_e==="right"?(m=0,S=Re/2):_e==="left"?(m=Pe,S=Re/2):pe.xthis.options.maxZoom||Sk?this._retainParent(U,te,pe,k):!1)},_retainChildren:function(f,m,S,k){for(var U=2*f;U<2*f+2;U++)for(var te=2*m;te<2*m+2;te++){var pe=new oe(U,te);pe.z=S+1;var _e=this._tileCoordsToKey(pe),Pe=this._tiles[_e];if(Pe&&Pe.active){Pe.retain=!0;continue}else Pe&&Pe.loaded&&(Pe.retain=!0);S+1this.options.maxZoom||this.options.minZoom!==void 0&&U1){this._setView(f,S);return}for(var st=U.min.y;st<=U.max.y;st++)for(var St=U.min.x;St<=U.max.x;St++){var Bn=new oe(St,st);if(Bn.z=this._tileZoom,!!this._isValidTile(Bn)){var Nn=this._tiles[this._tileCoordsToKey(Bn)];Nn?Nn.current=!0:pe.push(Bn)}}if(pe.sort(function(cr,ws){return cr.distanceTo(te)-ws.distanceTo(te)}),pe.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var _r=document.createDocumentFragment();for(St=0;StS.max.x)||!m.wrapLat&&(f.yS.max.y))return!1}if(!this.options.bounds)return!0;var k=this._tileCoordsToBounds(f);return le(this.options.bounds).overlaps(k)},_keyToBounds:function(f){return this._tileCoordsToBounds(this._keyToTileCoords(f))},_tileCoordsToNwSe:function(f){var m=this._map,S=this.getTileSize(),k=f.scaleBy(S),U=k.add(S),te=m.unproject(k,f.z),pe=m.unproject(U,f.z);return[te,pe]},_tileCoordsToBounds:function(f){var m=this._tileCoordsToNwSe(f),S=new X(m[0],m[1]);return this.options.noWrap||(S=this._map.wrapLatLngBounds(S)),S},_tileCoordsToKey:function(f){return f.x+":"+f.y+":"+f.z},_keyToTileCoords:function(f){var m=f.split(":"),S=new oe(+m[0],+m[1]);return S.z=+m[2],S},_removeTile:function(f){var m=this._tiles[f];m&&(tn(m.el),delete this._tiles[f],this.fire("tileunload",{tile:m.el,coords:this._keyToTileCoords(f)}))},_initTile:function(f){gt(f,"leaflet-tile");var m=this.getTileSize();f.style.width=m.x+"px",f.style.height=m.y+"px",f.onselectstart=p,f.onmousemove=p,rt.ielt9&&this.options.opacity<1&&lr(f,this.options.opacity)},_addTile:function(f,m){var S=this._getTilePos(f),k=this._tileCoordsToKey(f),U=this.createTile(this._wrapCoords(f),a(this._tileReady,this,f));this._initTile(U),this.createTile.length<2&&V(a(this._tileReady,this,f,null,U)),On(U,S),this._tiles[k]={el:U,coords:f,current:!0},m.appendChild(U),this.fire("tileloadstart",{tile:U,coords:f})},_tileReady:function(f,m,S){m&&this.fire("tileerror",{error:m,tile:S,coords:f});var k=this._tileCoordsToKey(f);S=this._tiles[k],S&&(S.loaded=+new Date,this._map._fadeAnimated?(lr(S.el,0),H(this._fadeFrame),this._fadeFrame=V(this._updateOpacity,this)):(S.active=!0,this._pruneTiles()),m||(gt(S.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:S.el,coords:f})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),rt.ielt9||!this._map._fadeAnimated?V(this._pruneTiles,this):setTimeout(a(this._pruneTiles,this),250)))},_getTilePos:function(f){return f.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(f){var m=new oe(this._wrapX?h(f.x,this._wrapX):f.x,this._wrapY?h(f.y,this._wrapY):f.y);return m.z=f.z,m},_pxBoundsToTileRange:function(f){var m=this.getTileSize();return new z(f.min.unscaleBy(m).floor(),f.max.unscaleBy(m).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var f in this._tiles)if(!this._tiles[f].loaded)return!1;return!0}});function ys(f){return new $o(f)}var Fo=$o.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(f,m){this._url=f,m=_(this,m),m.detectRetina&&rt.retina&&m.maxZoom>0?(m.tileSize=Math.floor(m.tileSize/2),m.zoomReverse?(m.zoomOffset--,m.minZoom=Math.min(m.maxZoom,m.minZoom+1)):(m.zoomOffset++,m.maxZoom=Math.max(m.minZoom,m.maxZoom-1)),m.minZoom=Math.max(0,m.minZoom)):m.zoomReverse?m.minZoom=Math.min(m.maxZoom,m.minZoom):m.maxZoom=Math.max(m.minZoom,m.maxZoom),typeof m.subdomains=="string"&&(m.subdomains=m.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(f,m){return this._url===f&&m===void 0&&(m=!0),this._url=f,m||this.redraw(),this},createTile:function(f,m){var S=document.createElement("img");return ht(S,"load",a(this._tileOnLoad,this,m,S)),ht(S,"error",a(this._tileOnError,this,m,S)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(S.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(S.referrerPolicy=this.options.referrerPolicy),S.alt="",S.src=this.getTileUrl(f),S},getTileUrl:function(f){var m={r:rt.retina?"@2x":"",s:this._getSubdomain(f),x:f.x,y:f.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var S=this._globalTileRange.max.y-f.y;this.options.tms&&(m.y=S),m["-y"]=S}return P(this._url,i(m,this.options))},_tileOnLoad:function(f,m){rt.ielt9?setTimeout(a(f,this,null,m),0):f(null,m)},_tileOnError:function(f,m,S){var k=this.options.errorTileUrl;k&&m.getAttribute("src")!==k&&(m.src=k),f(S,m)},_onTileRemove:function(f){f.tile.onload=null},_getZoomForUrl:function(){var f=this._tileZoom,m=this.options.maxZoom,S=this.options.zoomReverse,k=this.options.zoomOffset;return S&&(f=m-f),f+k},_getSubdomain:function(f){var m=Math.abs(f.x+f.y)%this.options.subdomains.length;return this.options.subdomains[m]},_abortLoading:function(){var f,m;for(f in this._tiles)if(this._tiles[f].coords.z!==this._tileZoom&&(m=this._tiles[f].el,m.onload=p,m.onerror=p,!m.complete)){m.src=A;var S=this._tiles[f].coords;tn(m),delete this._tiles[f],this.fire("tileabort",{tile:m,coords:S})}},_removeTile:function(f){var m=this._tiles[f];if(m)return m.el.setAttribute("src",A),$o.prototype._removeTile.call(this,f)},_tileReady:function(f,m,S){if(!(!this._map||S&&S.getAttribute("src")===A))return $o.prototype._tileReady.call(this,f,m,S)}});function Ld(f,m){return new Fo(f,m)}var Ll=Fo.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(f,m){this._url=f;var S=i({},this.defaultWmsParams);for(var k in m)k in this.options||(S[k]=m[k]);m=_(this,m);var U=m.detectRetina&&rt.retina?2:1,te=this.getTileSize();S.width=te.x*U,S.height=te.y*U,this.wmsParams=S},onAdd:function(f){this._crs=this.options.crs||f.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var m=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[m]=this._crs.code,Fo.prototype.onAdd.call(this,f)},getTileUrl:function(f){var m=this._tileCoordsToNwSe(f),S=this._crs,k=ne(S.project(m[0]),S.project(m[1])),U=k.min,te=k.max,pe=(this._wmsVersion>=1.3&&this._crs===Dm?[U.y,U.x,te.y,te.x]:[U.x,U.y,te.x,te.y]).join(","),_e=Fo.prototype.getTileUrl.call(this,f);return _e+w(this.wmsParams,_e,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+pe},setParams:function(f,m){return i(this.wmsParams,f),m||this.redraw(),this}});function qm(f,m){return new Ll(f,m)}Fo.WMS=Ll,Ld.wms=qm;var ji=ii.extend({options:{padding:.1},initialize:function(f){_(this,f),c(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),gt(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var f={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(f.zoomanim=this._onAnimZoom),f},_onAnimZoom:function(f){this._updateTransform(f.center,f.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(f,m){var S=this._map.getZoomScale(m,this._zoom),k=this._map.getSize().multiplyBy(.5+this.options.padding),U=this._map.project(this._center,m),te=k.multiplyBy(-S).add(U).subtract(this._map._getNewPixelOrigin(f,m));rt.any3d?ei(this._container,te,S):On(this._container,te)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var f in this._layers)this._layers[f]._reset()},_onZoomEnd:function(){for(var f in this._layers)this._layers[f]._project()},_updatePaths:function(){for(var f in this._layers)this._layers[f]._update()},_update:function(){var f=this.options.padding,m=this._map.getSize(),S=this._map.containerPointToLayerPoint(m.multiplyBy(-f)).round();this._bounds=new z(S,S.add(m.multiplyBy(1+f*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Id=ji.extend({options:{tolerance:0},getEvents:function(){var f=ji.prototype.getEvents.call(this);return f.viewprereset=this._onViewPreReset,f},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){ji.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var f=this._container=document.createElement("canvas");ht(f,"mousemove",this._onMouseMove,this),ht(f,"click dblclick mousedown mouseup contextmenu",this._onClick,this),ht(f,"mouseout",this._handleMouseOut,this),f._leaflet_disable_events=!0,this._ctx=f.getContext("2d")},_destroyContainer:function(){H(this._redrawRequest),delete this._ctx,tn(this._container),Ut(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var f;this._redrawBounds=null;for(var m in this._layers)f=this._layers[m],f._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){ji.prototype._update.call(this);var f=this._bounds,m=this._container,S=f.getSize(),k=rt.retina?2:1;On(m,f.min),m.width=k*S.x,m.height=k*S.y,m.style.width=S.x+"px",m.style.height=S.y+"px",rt.retina&&this._ctx.scale(2,2),this._ctx.translate(-f.min.x,-f.min.y),this.fire("update")}},_reset:function(){ji.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(f){this._updateDashArray(f),this._layers[c(f)]=f;var m=f._order={layer:f,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=m),this._drawLast=m,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(f){this._requestRedraw(f)},_removePath:function(f){var m=f._order,S=m.next,k=m.prev;S?S.prev=k:this._drawLast=k,k?k.next=S:this._drawFirst=S,delete f._order,delete this._layers[c(f)],this._requestRedraw(f)},_updatePath:function(f){this._extendRedrawBounds(f),f._project(),f._update(),this._requestRedraw(f)},_updateStyle:function(f){this._updateDashArray(f),this._requestRedraw(f)},_updateDashArray:function(f){if(typeof f.options.dashArray=="string"){var m=f.options.dashArray.split(/[, ]+/),S=[],k,U;for(U=0;U')}}catch{}return function(f){return document.createElement("<"+f+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Hm={_initContainer:function(){this._container=wt("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(ji.prototype._update.call(this),this.fire("update"))},_initPath:function(f){var m=f._container=bs("shape");gt(m,"leaflet-vml-shape "+(this.options.className||"")),m.coordsize="1 1",f._path=bs("path"),m.appendChild(f._path),this._updateStyle(f),this._layers[c(f)]=f},_addPath:function(f){var m=f._container;this._container.appendChild(m),f.options.interactive&&f.addInteractiveTarget(m)},_removePath:function(f){var m=f._container;tn(m),f.removeInteractiveTarget(m),delete this._layers[c(f)]},_updateStyle:function(f){var m=f._stroke,S=f._fill,k=f.options,U=f._container;U.stroked=!!k.stroke,U.filled=!!k.fill,k.stroke?(m||(m=f._stroke=bs("stroke")),U.appendChild(m),m.weight=k.weight+"px",m.color=k.color,m.opacity=k.opacity,k.dashArray?m.dashStyle=E(k.dashArray)?k.dashArray.join(" "):k.dashArray.replace(/( *, *)/g," "):m.dashStyle="",m.endcap=k.lineCap.replace("butt","flat"),m.joinstyle=k.lineJoin):m&&(U.removeChild(m),f._stroke=null),k.fill?(S||(S=f._fill=bs("fill")),U.appendChild(S),S.color=k.fillColor||k.color,S.opacity=k.fillOpacity):S&&(U.removeChild(S),f._fill=null)},_updateCircle:function(f){var m=f._point.round(),S=Math.round(f._radius),k=Math.round(f._radiusY||S);this._setPath(f,f._empty()?"M0 0":"AL "+m.x+","+m.y+" "+S+","+k+" 0,"+65535*360)},_setPath:function(f,m){f._path.v=m},_bringToFront:function(f){os(f._container)},_bringToBack:function(f){ro(f._container)}},ai=rt.vml?bs:Fe,ya=ji.extend({_initContainer:function(){this._container=ai("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=ai("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){tn(this._container),Ut(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){ji.prototype._update.call(this);var f=this._bounds,m=f.getSize(),S=this._container;(!this._svgSize||!this._svgSize.equals(m))&&(this._svgSize=m,S.setAttribute("width",m.x),S.setAttribute("height",m.y)),On(S,f.min),S.setAttribute("viewBox",[f.min.x,f.min.y,m.x,m.y].join(" ")),this.fire("update")}},_initPath:function(f){var m=f._path=ai("path");f.options.className&>(m,f.options.className),f.options.interactive&>(m,"leaflet-interactive"),this._updateStyle(f),this._layers[c(f)]=f},_addPath:function(f){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(f._path),f.addInteractiveTarget(f._path)},_removePath:function(f){tn(f._path),f.removeInteractiveTarget(f._path),delete this._layers[c(f)]},_updatePath:function(f){f._project(),f._update()},_updateStyle:function(f){var m=f._path,S=f.options;m&&(S.stroke?(m.setAttribute("stroke",S.color),m.setAttribute("stroke-opacity",S.opacity),m.setAttribute("stroke-width",S.weight),m.setAttribute("stroke-linecap",S.lineCap),m.setAttribute("stroke-linejoin",S.lineJoin),S.dashArray?m.setAttribute("stroke-dasharray",S.dashArray):m.removeAttribute("stroke-dasharray"),S.dashOffset?m.setAttribute("stroke-dashoffset",S.dashOffset):m.removeAttribute("stroke-dashoffset")):m.setAttribute("stroke","none"),S.fill?(m.setAttribute("fill",S.fillColor||S.color),m.setAttribute("fill-opacity",S.fillOpacity),m.setAttribute("fill-rule",S.fillRule||"evenodd")):m.setAttribute("fill","none"))},_updatePoly:function(f,m){this._setPath(f,ge(f._parts,m))},_updateCircle:function(f){var m=f._point,S=Math.max(Math.round(f._radius),1),k=Math.max(Math.round(f._radiusY),1)||S,U="a"+S+","+k+" 0 1,0 ",te=f._empty()?"M0 0":"M"+(m.x-S)+","+m.y+U+S*2+",0 "+U+-S*2+",0 ";this._setPath(f,te)},_setPath:function(f,m){f._path.setAttribute("d",m)},_bringToFront:function(f){os(f._path)},_bringToBack:function(f){ro(f._path)}});rt.vml&&ya.include(Hm);function fc(f){return rt.svg||rt.vml?new ya(f):null}Et.include({getRenderer:function(f){var m=f.options.renderer||this._getPaneRenderer(f.options.pane)||this.options.renderer||this._renderer;return m||(m=this._renderer=this._createRenderer()),this.hasLayer(m)||this.addLayer(m),m},_getPaneRenderer:function(f){if(f==="overlayPane"||f===void 0)return!1;var m=this._paneRenderers[f];return m===void 0&&(m=this._createRenderer({pane:f}),this._paneRenderers[f]=m),m},_createRenderer:function(f){return this.options.preferCanvas&&Dd(f)||fc(f)}});var Gm=lo.extend({initialize:function(f,m){lo.prototype.initialize.call(this,this._boundsToLatLngs(f),m)},setBounds:function(f){return this.setLatLngs(this._boundsToLatLngs(f))},_boundsToLatLngs:function(f){return f=le(f),[f.getSouthWest(),f.getNorthWest(),f.getNorthEast(),f.getSouthEast()]}});function Qb(f,m){return new Gm(f,m)}ya.create=ai,ya.pointsToPath=ge,Ei.geometryToLayer=ps,Ei.coordsToLatLng=oc,Ei.coordsToLatLngs=Nl,Ei.latLngToCoords=ac,Ei.latLngsToCoords=sc,Ei.getFeature=ms,Ei.asFeature=lc,Et.mergeOptions({boxZoom:!0});var _s=Lr.extend({initialize:function(f){this._map=f,this._container=f._container,this._pane=f._panes.overlayPane,this._resetStateTimeout=0,f.on("unload",this._destroy,this)},addHooks:function(){ht(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Ut(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){tn(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(f){if(!f.shiftKey||f.which!==1&&f.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),kt(),Gu(),this._startPoint=this._map.mouseEventToContainerPoint(f),ht(document,{contextmenu:ni,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(f){this._moved||(this._moved=!0,this._box=wt("div","leaflet-zoom-box",this._container),gt(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(f);var m=new z(this._point,this._startPoint),S=m.getSize();On(this._box,m.min),this._box.style.width=S.x+"px",this._box.style.height=S.y+"px"},_finish:function(){this._moved&&(tn(this._box),Kt(this._container,"leaflet-crosshair")),ls(),Ku(),Ut(document,{contextmenu:ni,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(f){if(!(f.which!==1&&f.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(a(this._resetState,this),0);var m=new X(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(m).fire("boxzoomend",{boxZoomBounds:m})}},_onKeyDown:function(f){f.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Et.addInitHook("addHandler","boxZoom",_s),Et.mergeOptions({doubleClickZoom:!0});var Km=Lr.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(f){var m=this._map,S=m.getZoom(),k=m.options.zoomDelta,U=f.originalEvent.shiftKey?S-k:S+k;m.options.doubleClickZoom==="center"?m.setZoom(U):m.setZoomAround(f.containerPoint,U)}});Et.addInitHook("addHandler","doubleClickZoom",Km),Et.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var $d=Lr.extend({addHooks:function(){if(!this._draggable){var f=this._map;this._draggable=new ri(f._mapPane,f._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),f.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),f.on("zoomend",this._onZoomEnd,this),f.whenReady(this._onZoomEnd,this))}gt(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Kt(this._map._container,"leaflet-grab"),Kt(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var f=this._map;if(f._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var m=le(this._map.options.maxBounds);this._offsetLimit=ne(this._map.latLngToContainerPoint(m.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(m.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;f.fire("movestart").fire("dragstart"),f.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(f){if(this._map.options.inertia){var m=this._lastTime=+new Date,S=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(S),this._times.push(m),this._prunePositions(m)}this._map.fire("move",f).fire("drag",f)},_prunePositions:function(f){for(;this._positions.length>1&&f-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var f=this._map.getSize().divideBy(2),m=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=m.subtract(f).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(f,m){return f-(f-m)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var f=this._draggable._newPos.subtract(this._draggable._startPos),m=this._offsetLimit;f.xm.max.x&&(f.x=this._viscousLimit(f.x,m.max.x)),f.y>m.max.y&&(f.y=this._viscousLimit(f.y,m.max.y)),this._draggable._newPos=this._draggable._startPos.add(f)}},_onPreDragWrap:function(){var f=this._worldWidth,m=Math.round(f/2),S=this._initialWorldOffset,k=this._draggable._newPos.x,U=(k-m+S)%f+m-S,te=(k+m+S)%f-m-S,pe=Math.abs(U+S)0?te:-te))-m;this._delta=0,this._startTime=null,pe&&(f.options.scrollWheelZoom==="center"?f.setZoom(m+pe):f.setZoomAround(this._lastMousePos,m+pe))}});Et.addInitHook("addHandler","scrollWheelZoom",zt);var Bd=600;Et.mergeOptions({tapHold:rt.touchNative&&rt.safari&&rt.mobile,tapTolerance:15});var Il=Lr.extend({addHooks:function(){ht(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Ut(this._map._container,"touchstart",this._onDown,this)},_onDown:function(f){if(clearTimeout(this._holdTimeout),f.touches.length===1){var m=f.touches[0];this._startPos=this._newPos=new oe(m.clientX,m.clientY),this._holdTimeout=setTimeout(a(function(){this._cancel(),this._isTapValid()&&(ht(document,"touchend",yn),ht(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",m))},this),Bd),ht(document,"touchend touchcancel contextmenu",this._cancel,this),ht(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function f(){Ut(document,"touchend",yn),Ut(document,"touchend touchcancel",f)},_cancel:function(){clearTimeout(this._holdTimeout),Ut(document,"touchend touchcancel contextmenu",this._cancel,this),Ut(document,"touchmove",this._onMove,this)},_onMove:function(f){var m=f.touches[0];this._newPos=new oe(m.clientX,m.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(f,m){var S=new MouseEvent(f,{bubbles:!0,cancelable:!0,view:window,screenX:m.screenX,screenY:m.screenY,clientX:m.clientX,clientY:m.clientY});S._simulated=!0,m.target.dispatchEvent(S)}});Et.addInitHook("addHandler","tapHold",Il),Et.mergeOptions({touchZoom:rt.touch,bounceAtZoomLimits:!0});var xs=Lr.extend({addHooks:function(){gt(this._map._container,"leaflet-touch-zoom"),ht(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Kt(this._map._container,"leaflet-touch-zoom"),Ut(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(f){var m=this._map;if(!(!f.touches||f.touches.length!==2||m._animatingZoom||this._zooming)){var S=m.mouseEventToContainerPoint(f.touches[0]),k=m.mouseEventToContainerPoint(f.touches[1]);this._centerPoint=m.getSize()._divideBy(2),this._startLatLng=m.containerPointToLatLng(this._centerPoint),m.options.touchZoom!=="center"&&(this._pinchStartLatLng=m.containerPointToLatLng(S.add(k)._divideBy(2))),this._startDist=S.distanceTo(k),this._startZoom=m.getZoom(),this._moved=!1,this._zooming=!0,m._stop(),ht(document,"touchmove",this._onTouchMove,this),ht(document,"touchend touchcancel",this._onTouchEnd,this),yn(f)}},_onTouchMove:function(f){if(!(!f.touches||f.touches.length!==2||!this._zooming)){var m=this._map,S=m.mouseEventToContainerPoint(f.touches[0]),k=m.mouseEventToContainerPoint(f.touches[1]),U=S.distanceTo(k)/this._startDist;if(this._zoom=m.getScaleZoom(U,this._startZoom),!m.options.bounceAtZoomLimits&&(this._zoomm.getMaxZoom()&&U>1)&&(this._zoom=m._limitZoom(this._zoom)),m.options.touchZoom==="center"){if(this._center=this._startLatLng,U===1)return}else{var te=S._add(k)._divideBy(2)._subtract(this._centerPoint);if(U===1&&te.x===0&&te.y===0)return;this._center=m.unproject(m.project(this._pinchStartLatLng,this._zoom).subtract(te),this._zoom)}this._moved||(m._moveStart(!0,!1),this._moved=!0),H(this._animRequest);var pe=a(m._move,m,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=V(pe,this,!0),yn(f)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,H(this._animRequest),Ut(document,"touchmove",this._onTouchMove,this),Ut(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});Et.addInitHook("addHandler","touchZoom",xs),Et.BoxZoom=_s,Et.DoubleClickZoom=Km,Et.Drag=$d,Et.Keyboard=Fd,Et.ScrollWheelZoom=zt,Et.TapHold=Il,Et.TouchZoom=xs,n.Bounds=z,n.Browser=rt,n.CRS=be,n.Canvas=Id,n.Circle=rc,n.CircleMarker=nc,n.Class=Q,n.Control=yr,n.DivIcon=cc,n.DivOverlay=Ti,n.DomEvent=Xu,n.DomUtil=El,n.Draggable=ri,n.Evented=se,n.FeatureGroup=ao,n.GeoJSON=Ei,n.GridLayer=$o,n.Handler=Lr,n.Icon=ga,n.ImageOverlay=Do,n.LatLng=ce,n.LatLngBounds=X,n.Layer=ii,n.LayerGroup=Lo,n.LineUtil=Im,n.Map=Et,n.Marker=so,n.Mixin=Od,n.Path=Io,n.Point=oe,n.PolyUtil=Ub,n.Polygon=lo,n.Polyline=br,n.Popup=uc,n.PosAnimation=Qu,n.Projection=Hb,n.Rectangle=Gm,n.Renderer=ji,n.SVG=ya,n.SVGOverlay=Nd,n.TileLayer=Fo,n.Tooltip=gs,n.Transformation=ue,n.Util=J,n.VideoOverlay=Rd,n.bind=a,n.bounds=ne,n.canvas=Dd,n.circle=Rl,n.circleMarker=Bm,n.control=Mo,n.divIcon=Wm,n.extend=i,n.featureGroup=$m,n.geoJSON=Um,n.geoJson=oi,n.gridLayer=ys,n.icon=Fm,n.imageOverlay=zm,n.latLng=de,n.latLngBounds=le,n.layerGroup=kl,n.map=No,n.marker=Yb,n.point=G,n.polygon=Xb,n.polyline=Zb,n.popup=vs,n.rectangle=Qb,n.setOptions=_,n.stamp=c,n.svg=fc,n.svgOverlay=Md,n.tileLayer=Ld,n.tooltip=Ml,n.transformation=ie,n.version=r,n.videoOverlay=Vm;var Ym=window.L;n.noConflict=function(){return window.L=Ym,this},window.L=n})}(Ch,Ch.exports)),Ch.exports}var pm=UOe();const O5=Nt(pm);function Fj(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function Bj(e,t){return t==null?function(r,i){const o=F.useRef();return o.current||(o.current=e(r,i)),o}:function(r,i){const o=F.useRef();o.current||(o.current=e(r,i));const a=F.useRef(r),{instance:s}=o.current;return F.useEffect(function(){a.current!==r&&(t(s,r,a.current),a.current=r)},[s,r,i]),o}}function zOe(e,t){F.useEffect(function(){return(t.layerContainer??t.map).addLayer(e.instance),function(){var o;(o=t.layerContainer)==null||o.removeLayer(e.instance),t.map.removeLayer(e.instance)}},[t,e])}function J9(e){return function(n){const r=X9(),i=e($j(n,r),r);return K9(r.map,n.attribution),Q9(i.current,n.eventHandlers),zOe(i.current,r),i}}function VOe(e,t){const n=Bj(e,t),r=J9(n);return IOe(r)}function WOe(e,t){const n=Bj(e),r=FOe(n,t);return DOe(r)}function qOe(e,t){const n=Bj(e,t),r=J9(n);return $Oe(r)}function HOe(e,t,n){const{opacity:r,zIndex:i}=t;r!=null&&r!==n.opacity&&e.setOpacity(r),i!=null&&i!==n.zIndex&&e.setZIndex(i)}function bE(){return bE=Object.assign||function(e){for(var t=1;t(b==null?void 0:b.map)??null,[b]);const _=F.useCallback(O=>{if(O!==null&&b===null){const P=new pm.Map(O,h);n!=null&&u!=null?P.setView(n,u):e!=null&&P.fitBounds(e,t),c!=null&&P.whenReady(c),x(MOe(P))}},[]);F.useEffect(()=>()=>{b==null||b.map.remove()},[b]);const w=b?Z.createElement(Z9,{value:b},r):a??null;return Z.createElement("div",bE({},v,{ref:_}),w)}const KOe=F.forwardRef(GOe),YOe=VOe(function({position:t,...n},r){const i=new pm.Marker(t,n);return Fj(i,LOe(r,{overlayContainer:i}))},function(t,n,r){n.position!==r.position&&t.setLatLng(n.position),n.icon!=null&&n.icon!==r.icon&&t.setIcon(n.icon),n.zIndexOffset!=null&&n.zIndexOffset!==r.zIndexOffset&&t.setZIndexOffset(n.zIndexOffset),n.opacity!=null&&n.opacity!==r.opacity&&t.setOpacity(n.opacity),t.dragging!=null&&n.draggable!==r.draggable&&(n.draggable===!0?t.dragging.enable():t.dragging.disable())}),ZOe=WOe(function(t,n){const r=new pm.Popup(t,n.overlayContainer);return Fj(r,n)},function(t,n,{position:r},i){F.useEffect(function(){const{instance:a}=t;function s(u){u.popup===a&&(a.update(),i(!0))}function c(u){u.popup===a&&i(!1)}return n.map.on({popupopen:s,popupclose:c}),n.overlayContainer==null?(r!=null&&a.setLatLng(r),a.openOn(n.map)):n.overlayContainer.bindPopup(a),function(){var h;n.map.off({popupopen:s,popupclose:c}),(h=n.overlayContainer)==null||h.unbindPopup(),n.map.removeLayer(a)}},[t,n,i,r])}),XOe=qOe(function({url:t,...n},r){const i=new pm.TileLayer(t,$j(n,r));return Fj(i,r)},function(t,n,r){HOe(t,n,r);const{url:i}=n;i!=null&&i!==r.url&&t.setUrl(i)}),QOe={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},ez={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},jn={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},Sr={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},zs={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class Ne{static getFirstMatch(t,n){const r=n.match(t);return r&&r.length>0&&r[1]||""}static getSecondMatch(t,n){const r=n.match(t);return r&&r.length>1&&r[2]||""}static matchAndReturnConst(t,n,r){if(t.test(n))return r}static getWindowsVersionName(t){switch(t){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),n[0]===10)switch(n[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),!(n[0]===1&&n[1]<5)){if(n[0]===1&&n[1]<6)return"Cupcake";if(n[0]===1&&n[1]>=6)return"Donut";if(n[0]===2&&n[1]<2)return"Eclair";if(n[0]===2&&n[1]===2)return"Froyo";if(n[0]===2&&n[1]>2)return"Gingerbread";if(n[0]===3)return"Honeycomb";if(n[0]===4&&n[1]<1)return"Ice Cream Sandwich";if(n[0]===4&&n[1]<4)return"Jelly Bean";if(n[0]===4&&n[1]>=4)return"KitKat";if(n[0]===5)return"Lollipop";if(n[0]===6)return"Marshmallow";if(n[0]===7)return"Nougat";if(n[0]===8)return"Oreo";if(n[0]===9)return"Pie"}}static getVersionPrecision(t){return t.split(".").length}static compareVersions(t,n,r=!1){const i=Ne.getVersionPrecision(t),o=Ne.getVersionPrecision(n);let a=Math.max(i,o),s=0;const c=Ne.map([t,n],u=>{const h=a-Ne.getVersionPrecision(u),p=u+new Array(h+1).join(".0");return Ne.map(p.split("."),v=>new Array(20-v.length).join("0")+v).reverse()});for(r&&(s=a-Math.min(i,o)),a-=1;a>=s;){if(c[0][a]>c[1][a])return 1;if(c[0][a]===c[1][a]){if(a===s)return 0;a-=1}else if(c[0][a]{r[c]=a[c]})}return t}static getBrowserAlias(t){return QOe[t]}static getBrowserTypeByAlias(t){return ez[t]||""}}const Wt=/version\/(\d+(\.?_?\d+)+)/i,JOe=[{test:[/googlebot/i],describe(e){const t={name:"Googlebot"},n=Ne.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||Ne.getFirstMatch(Wt,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){const t={name:"Opera"},n=Ne.getFirstMatch(Wt,e)||Ne.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){const t={name:"Opera"},n=Ne.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||Ne.getFirstMatch(Wt,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){const t={name:"Samsung Internet for Android"},n=Ne.getFirstMatch(Wt,e)||Ne.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){const t={name:"NAVER Whale Browser"},n=Ne.getFirstMatch(Wt,e)||Ne.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){const t={name:"MZ Browser"},n=Ne.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||Ne.getFirstMatch(Wt,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){const t={name:"Focus"},n=Ne.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||Ne.getFirstMatch(Wt,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){const t={name:"Swing"},n=Ne.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||Ne.getFirstMatch(Wt,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){const t={name:"Opera Coast"},n=Ne.getFirstMatch(Wt,e)||Ne.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){const t={name:"Opera Touch"},n=Ne.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||Ne.getFirstMatch(Wt,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){const t={name:"Yandex Browser"},n=Ne.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||Ne.getFirstMatch(Wt,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){const t={name:"UC Browser"},n=Ne.getFirstMatch(Wt,e)||Ne.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){const t={name:"Maxthon"},n=Ne.getFirstMatch(Wt,e)||Ne.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){const t={name:"Epiphany"},n=Ne.getFirstMatch(Wt,e)||Ne.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){const t={name:"Puffin"},n=Ne.getFirstMatch(Wt,e)||Ne.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){const t={name:"Sleipnir"},n=Ne.getFirstMatch(Wt,e)||Ne.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){const t={name:"K-Meleon"},n=Ne.getFirstMatch(Wt,e)||Ne.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){const t={name:"WeChat"},n=Ne.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||Ne.getFirstMatch(Wt,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){const t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=Ne.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||Ne.getFirstMatch(Wt,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){const t={name:"Internet Explorer"},n=Ne.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){const t={name:"Microsoft Edge"},n=Ne.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){const t={name:"Microsoft Edge"},n=Ne.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){const t={name:"Vivaldi"},n=Ne.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){const t={name:"SeaMonkey"},n=Ne.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){const t={name:"Sailfish"},n=Ne.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){const t={name:"Amazon Silk"},n=Ne.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){const t={name:"PhantomJS"},n=Ne.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){const t={name:"SlimerJS"},n=Ne.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t={name:"BlackBerry"},n=Ne.getFirstMatch(Wt,e)||Ne.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){const t={name:"WebOS Browser"},n=Ne.getFirstMatch(Wt,e)||Ne.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){const t={name:"Bada"},n=Ne.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){const t={name:"Tizen"},n=Ne.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||Ne.getFirstMatch(Wt,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){const t={name:"QupZilla"},n=Ne.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||Ne.getFirstMatch(Wt,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){const t={name:"Firefox"},n=Ne.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){const t={name:"Electron"},n=Ne.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){const t={name:"Miui"},n=Ne.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){const t={name:"Chromium"},n=Ne.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||Ne.getFirstMatch(Wt,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){const t={name:"Chrome"},n=Ne.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){const t={name:"Google Search"},n=Ne.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t={name:"Android Browser"},n=Ne.getFirstMatch(Wt,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){const t={name:"PlayStation 4"},n=Ne.getFirstMatch(Wt,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){const t={name:"Safari"},n=Ne.getFirstMatch(Wt,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){const t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,i=e.search("\\(")!==-1?n:t;return{name:Ne.getFirstMatch(i,e),version:Ne.getSecondMatch(i,e)}}}],eSe=[{test:[/Roku\/DVP/],describe(e){const t=Ne.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:Sr.Roku,version:t}}},{test:[/windows phone/i],describe(e){const t=Ne.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:Sr.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){const t=Ne.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=Ne.getWindowsVersionName(t);return{name:Sr.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){const t={name:Sr.iOS},n=Ne.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){const t=Ne.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=Ne.getMacOSVersionName(t),r={name:Sr.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){const t=Ne.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:Sr.iOS,version:t}}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t=Ne.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=Ne.getAndroidVersionName(t),r={name:Sr.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){const t=Ne.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:Sr.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t=Ne.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||Ne.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||Ne.getFirstMatch(/\bbb(\d+)/i,e);return{name:Sr.BlackBerry,version:t}}},{test:[/bada/i],describe(e){const t=Ne.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:Sr.Bada,version:t}}},{test:[/tizen/i],describe(e){const t=Ne.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:Sr.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:Sr.Linux}}},{test:[/CrOS/],describe(){return{name:Sr.ChromeOS}}},{test:[/PlayStation 4/],describe(e){const t=Ne.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:Sr.PlayStation4,version:t}}}],tSe=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){const t=Ne.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:jn.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:jn.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:jn.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:jn.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:jn.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:jn.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:jn.tablet}}},{test(e){const t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){const t=Ne.getFirstMatch(/(ipod|iphone)/i,e);return{type:jn.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:jn.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:jn.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:jn.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:jn.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:jn.mobile,vendor:"Microsoft"}}},{test(e){const t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:jn.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:jn.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:jn.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:jn.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:jn.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:jn.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:jn.tv}}}],nSe=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:zs.Blink};const n=Ne.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:zs.EdgeHTML,version:n}}},{test:[/trident/i],describe(e){const t={name:zs.Trident},n=Ne.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){const t={name:zs.Presto},n=Ne.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){const t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){const t={name:zs.Gecko},n=Ne.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:zs.Blink}}},{test:[/(apple)?webkit/i],describe(e){const t={name:zs.WebKit},n=Ne.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];class S5{constructor(t,n=!1){if(t==null||t==="")throw new Error("UserAgent parameter can't be empty");this._ua=t,this.parsedResult={},n!==!0&&this.parse()}getUA(){return this._ua}test(t){return t.test(this._ua)}parseBrowser(){this.parsedResult.browser={};const t=Ne.find(JOe,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(t){return t?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};const t=Ne.find(eSe,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os}getOSName(t){const{name:n}=this.getOS();return t?String(n).toLowerCase()||"":n||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(t=!1){const{type:n}=this.getPlatform();return t?String(n).toLowerCase()||"":n||""}parsePlatform(){this.parsedResult.platform={};const t=Ne.find(tSe,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(t){return t?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};const t=Ne.find(nSe,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return Ne.assign({},this.parsedResult)}satisfies(t){const n={};let r=0;const i={};let o=0;if(Object.keys(t).forEach(s=>{const c=t[s];typeof c=="string"?(i[s]=c,o+=1):typeof c=="object"&&(n[s]=c,r+=1)}),r>0){const s=Object.keys(n),c=Ne.find(s,h=>this.isOS(h));if(c){const h=this.satisfies(n[c]);if(h!==void 0)return h}const u=Ne.find(s,h=>this.isPlatform(h));if(u){const h=this.satisfies(n[u]);if(h!==void 0)return h}}if(o>0){const s=Object.keys(i),c=Ne.find(s,u=>this.isBrowser(u,!0));if(c!==void 0)return this.compareVersion(i[c])}}isBrowser(t,n=!1){const r=this.getBrowserName().toLowerCase();let i=t.toLowerCase();const o=Ne.getBrowserTypeByAlias(i);return n&&o&&(i=o.toLowerCase()),i===r}compareVersion(t){let n=[0],r=t,i=!1;const o=this.getBrowserVersion();if(typeof o=="string")return t[0]===">"||t[0]==="<"?(r=t.substr(1),t[1]==="="?(i=!0,r=t.substr(2)):n=[],t[0]===">"?n.push(1):n.push(-1)):t[0]==="="?r=t.substr(1):t[0]==="~"&&(i=!0,r=t.substr(1)),n.indexOf(Ne.compareVersions(o,r,i))>-1}isOS(t){return this.getOSName(!0)===String(t).toLowerCase()}isPlatform(t){return this.getPlatformType(!0)===String(t).toLowerCase()}isEngine(t){return this.getEngineName(!0)===String(t).toLowerCase()}is(t,n=!1){return this.isBrowser(t,n)||this.isOS(t)||this.isPlatform(t)}some(t=[]){return t.some(n=>this.is(n))}}/*! + * Bowser - a browser detector + * https://github.com/lancedikson/bowser + * MIT License | (c) Dustin Diaz 2012-2015 + * MIT License | (c) Denis Demchenko 2015-2019 + */class rSe{static getParser(t,n=!1){if(typeof t!="string")throw new Error("UserAgent should be a string");return new S5(t,n)}static parse(t){return new S5(t).getResult()}static get BROWSER_MAP(){return ez}static get ENGINE_MAP(){return zs}static get OS_MAP(){return Sr}static get PLATFORMS_MAP(){return jn}}var iSe=Object.defineProperty,oSe=(e,t,n)=>t in e?iSe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nl=(e,t,n)=>oSe(e,typeof t!="symbol"?t+"":t,n);const aSe=e=>(e==null?void 0:e.type)===PT.INVALID_ARGUMENT,sSe=e=>(e==null?void 0:e.type)===PT.INVALID_SHORT_URL_DELETION,lSe=e=>!!e&&typeof e=="object"&&["type","detail","title","status"].every(t=>t in e),Si=e=>lSe(e)?e:void 0,Uj=e=>"error"in e,ia=({errorData:e,fallbackMessage:t})=>g.jsxs(g.Fragment,{children:[(e==null?void 0:e.detail)??t,aSe(e)&&g.jsxs("p",{className:"mb-0",children:["Invalid elements: [",e.invalidElements.join(", "),"]"]})]}),ku=({style:e,className:t,...n})=>g.jsx("button",{type:"button",className:Be("border-0",t),style:{backgroundColor:"inherit",fontWeight:"inherit",color:"inherit",...e},...n}),tz=F.createContext(""),uSe=tz.Provider,_l=()=>F.useContext(tz),nz=F.createContext(void 0),{Provider:zj}=nz,Eb=()=>F.useContext(nz),cSe=5,Vj=()=>{const[e,t]=F.useState([]),n=F.useMemo(()=>e.length>=cSe,[e.length]),r=F.useCallback(s=>!n&&t(c=>[...c,s]),[n]),i=F.useCallback(s=>!n&&e.every(c=>c.name!==s),[e,n]),o=F.useCallback(s=>t(c=>c.filter(u=>u!==s)),[]),a=F.useCallback(()=>t([]),[]);return{itemsToCompare:e,addItemToCompare:r,removeItemToCompare:o,clearItemsToCompare:a,canAddItemWithName:i}},Wj=({className:e,type:t})=>{const n=_l(),r=Eb(),i=F.useMemo(()=>r?encodeURIComponent(r.itemsToCompare.map(c=>c.query).join(",")):"",[r]);if(!r||r.itemsToCompare.length===0)return null;const{itemsToCompare:o,clearItemsToCompare:a,removeItemToCompare:s}=r;return g.jsx("div",{className:Be("top-sticky",e),children:g.jsxs(qt,{bodyClassName:"d-md-flex gap-3 align-items-center",children:[g.jsx("ul",{className:"d-flex flex-wrap gap-1 flex-grow-1 p-0 m-0",children:o.map((c,u)=>{var h;return g.jsxs("li",{className:Be("badge pe-1",{"bg-secondary":!((h=c.style)!=null&&h.backgroundColor)}),style:c.style,children:[c.name,g.jsx(ku,{"aria-label":`Remove ${c.name}`,className:"fw-bold fs-6",onClick:()=>s(c),children:"×"})]},`${c.name}_${u}`)})}),g.jsxs("div",{className:"d-flex mt-3 mt-md-0",children:[g.jsxs(_t,{outline:!0,color:"primary",className:"flex-grow-1 indivisible",disabled:o.length<2,tag:Jt,to:`${n}/${t}/compare-visits?${t}=${i}`,children:[g.jsx(Ge,{icon:E0,fixedWidth:!0,className:"me-1"}),"Compare (",o.length,"/5) »"]}),g.jsx(_t,{"aria-label":"Close compare",outline:!0,color:"secondary",className:"ms-2 fw-bold",onClick:a,children:"×"})]})]})})},fSe=(e,{maxVersion:t,minVersion:n})=>{const r=!n||VP(e,n,">=");return(!t||VP(e,t,"<="))&&r},rz={excludeBotsOnShortUrls:{minVersion:"3.4.0"},filterDisabledUrls:{minVersion:"3.4.0"},deviceLongUrls:{minVersion:"3.5.0",maxVersion:"3.*.*"},shortUrlVisitsDeletion:{minVersion:"3.6.0"},orphanVisitsDeletion:{minVersion:"3.7.0"},shortUrlRedirectRules:{minVersion:"4.0.0"},qrCodeColors:{minVersion:"4.0.0"},urlValidation:{maxVersion:"3.*.*"},ipRedirectCondition:{minVersion:"4.2.0"},geolocationRedirectCondition:{minVersion:"4.3.0"},filterShortUrlsByDomain:{minVersion:"4.3.0"}};Object.freeze(rz);const vo=(e,t)=>fSe(t==="latest"?"999.99.99":t,rz[e]),iz=e=>({excludeBotsOnShortUrls:vo("excludeBotsOnShortUrls",e),filterDisabledUrls:vo("filterDisabledUrls",e),deviceLongUrls:vo("deviceLongUrls",e),shortUrlVisitsDeletion:vo("shortUrlVisitsDeletion",e),orphanVisitsDeletion:vo("orphanVisitsDeletion",e),shortUrlRedirectRules:vo("shortUrlRedirectRules",e),qrCodeColors:vo("qrCodeColors",e),urlValidation:vo("urlValidation",e),ipRedirectCondition:vo("ipRedirectCondition",e),geolocationRedirectCondition:vo("geolocationRedirectCondition",e),filterShortUrlsByDomain:vo("filterShortUrlsByDomain",e)}),oz=F.createContext(iz("0.0.0")),dSe=oz.Provider,hSe=e=>F.useMemo(()=>iz(e),[e]),_i=e=>F.useContext(oz)[e],qf="DEFAULT",_g=({className:e="",placement:t,children:n})=>{const r=Xi();return g.jsxs(g.Fragment,{children:[g.jsx("span",{className:e,ref:r,children:g.jsx(Ge,{icon:VE})}),g.jsx(Oi,{target:r,placement:t,children:n})]})},az=e=>t=>{t.preventDefault(),e()},qj=(e,t,n=1)=>CT(n,e+1).map(t),pSe=e=>Array.isArray(e)&&e.length===0||typeof e=="string"&&e===""||typeof e=="object"&&Object.keys(e).length===0,au=e=>e!=null&&!pSe(e),IO=e=>e||null,_E=e=>e?"true":"false",DO=e=>e===void 0?void 0:_E(e),$O=({isLast:e,...t})=>g.jsx(vg,{...t,required:!1,type:"url",placeholder:"No redirect",className:e?"mb-0":""}),mSe=({isOpen:e,toggle:t,domain:n,editDomainRedirects:r})=>{var i,o,a;const[s,c]=F.useState(((i=n.redirects)==null?void 0:i.baseUrlRedirect)??""),[u,h]=F.useState(((o=n.redirects)==null?void 0:o.regular404Redirect)??""),[p,v]=F.useState(((a=n.redirects)==null?void 0:a.invalidShortUrlRedirect)??""),b=az(async()=>r({domain:n.domain,redirects:{baseUrlRedirect:IO(s),regular404Redirect:IO(u),invalidShortUrlRedirect:IO(p)}}).then(t));return g.jsx(Zr,{isOpen:e,toggle:t,centered:!0,children:g.jsxs("form",{name:"domainRedirectsModal",onSubmit:b,children:[g.jsxs(aa,{toggle:t,children:["Edit redirects for ",g.jsx("b",{children:n.domain})]}),g.jsxs(Po,{children:[g.jsxs($O,{value:s,onChange:c,children:[g.jsxs(_g,{className:"me-2",placement:"bottom",children:["Visitors accessing the base url, as in ",g.jsxs("b",{children:["https://",n.domain,"/"]}),", will be redirected to this URL."]}),"Base URL"]}),g.jsxs($O,{value:u,onChange:h,children:[g.jsxs(_g,{className:"me-2",placement:"bottom",children:["Visitors accessing a url not matching a short URL pattern, as in ",g.jsxs("b",{children:["https://",n.domain,"/???/[...]"]}),", will be redirected to this URL."]}),"Regular 404"]}),g.jsxs($O,{value:p,isLast:!0,onChange:v,children:[g.jsx(_g,{className:"me-2",placement:"bottom",children:"Visitors accessing a url matching a short URL pattern, but not matching an existing short code, will be redirected to this URL."}),"Invalid short URL"]})]}),g.jsxs(Qa,{children:[g.jsx(_t,{color:"link",type:"button",onClick:t,children:"Cancel"}),g.jsx(_t,{color:"primary",children:"Save"})]})]})})},vSe=({domain:e,editDomainRedirects:t})=>{const[n,r]=cn(),i=_l(),o=Eb(),a=_i("filterShortUrlsByDomain");return g.jsxs(I0,{children:[g.jsxs(Ye,{tag:Jt,to:`${i}/domain/${e.domain}${e.isDefault?`_${qf}`:""}/visits`,children:[g.jsx(Ge,{icon:zE,fixedWidth:!0})," Visit stats"]}),g.jsxs(Ye,{disabled:!o||!o.canAddItemWithName(e.domain),onClick:()=>o==null?void 0:o.addItemToCompare({name:e.domain,query:e.domain}),children:[g.jsx(Ge,{icon:E0,fixedWidth:!0})," Compare visits"]}),a&&g.jsxs(Ye,{tag:Jt,to:`${i}/list-short-urls/1?domain=${e.isDefault?qf:e.domain}`,children:[g.jsx(Ge,{icon:BE,fixedWidth:!0})," Short URLs"]}),g.jsx(Ye,{divider:!0,tag:"hr"}),g.jsxs(Ye,{onClick:r,children:[g.jsx(Ge,{icon:UE,fixedWidth:!0})," Edit redirects"]}),g.jsx(mSe,{domain:e,isOpen:n,toggle:r,editDomainRedirects:t})]})},gSe=(e,t)=>{const n=r=>i=>{i.event.composedPath().some(({classList:o})=>o==null?void 0:o.contains("visits-table"))||document.querySelector(".modal")||r()};return Moe({delta:40,onSwipedLeft:n(t),onSwipedRight:n(e)})},ySe=(e,t)=>{const[n,r]=F.useState(t),i=F.useCallback(o=>{const{location:a,history:s}=window,c=TF(a.search);c[e]=o,s.pushState(null,"",`${a.pathname}?${L0(c)}`),r(o)},[e]);return[n,i]},Hj=e=>{const t=Zf();return F.useMemo(()=>{var n;return((n=t[e])==null?void 0:n.split(",").filter(Boolean))??[]},[e,t])},bSe=()=>{const e=oa();return F.useCallback(()=>e(-1),[e])},Gj=(e,t)=>{const n=F.useCallback(()=>t(`(max-width: ${e}px)`).matches,[t,e]),[r,i]=F.useState(n());return F.useEffect(()=>{const o=()=>i(n());return window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[n]),r},_Se=(e,t,n)=>{F.useEffect(()=>{if(!n)return()=>{};const r=i=>i.key===e&&t();return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[n,t,e])},xSe=({status:e,matchMedia:t=window.matchMedia})=>{const n=Xi(),r=Gj(991,t);return e==="validating"?g.jsx(Ge,{fixedWidth:!0,icon:X8,spin:!0}):g.jsxs(g.Fragment,{children:[g.jsx("span",{ref:n,children:e==="valid"?g.jsx(Ge,{fixedWidth:!0,icon:Yh,className:"text-muted"}):g.jsx(Ge,{fixedWidth:!0,icon:eS,className:"text-danger"})}),g.jsx(Oi,{target:n,placement:r?"right":"left",autohide:e==="valid",children:e==="valid"?"Congratulations! This domain is properly configured.":g.jsxs("span",{children:["Oops! There is some missing configuration, and short URLs shared with this domain will not work.",g.jsx("br",{}),"Check the ",g.jsx(Gr,{href:"https://slnk.to/multi-domain-docs",children:"documentation"})," in order to find out what is missing."]})})]})},FO=({fallback:e})=>g.jsxs("span",{className:"text-muted",children:[!e&&g.jsx("small",{children:"No redirect"}),e&&g.jsxs(g.Fragment,{children:[e," ",g.jsx("small",{children:"(as fallback)"})]})]}),wSe=()=>g.jsxs(g.Fragment,{children:[g.jsx(Ge,{fixedWidth:!0,icon:fK,className:"text-primary",id:"defaultDomainIcon"}),g.jsx(Oi,{target:"defaultDomainIcon",placement:"right",children:"Default domain"})]}),OSe=({domain:e,editDomainRedirects:t,checkDomainHealth:n,defaultRedirects:r})=>{const{domain:i,isDefault:o,redirects:a,status:s}=e;return F.useEffect(()=>{n(e.domain)},[n,e.domain]),g.jsxs("tr",{className:"responsive-table__row",children:[g.jsx("td",{className:"responsive-table__cell","data-th":"Is default domain",children:o&&g.jsx(wSe,{})}),g.jsx("th",{className:"responsive-table__cell","data-th":"Domain",children:i}),g.jsx("td",{className:"responsive-table__cell","data-th":"Base path redirect",children:(a==null?void 0:a.baseUrlRedirect)??g.jsx(FO,{fallback:r==null?void 0:r.baseUrlRedirect})}),g.jsx("td",{className:"responsive-table__cell","data-th":"Regular 404 redirect",children:(a==null?void 0:a.regular404Redirect)??g.jsx(FO,{fallback:r==null?void 0:r.regular404Redirect})}),g.jsx("td",{className:"responsive-table__cell","data-th":"Invalid short URL redirect",children:(a==null?void 0:a.invalidShortUrlRedirect)??g.jsx(FO,{fallback:r==null?void 0:r.invalidShortUrlRedirect})}),g.jsx("td",{className:"responsive-table__cell text-lg-center","data-th":"Status",children:g.jsx(xSe,{status:s})}),g.jsx("td",{className:"responsive-table__cell text-end",children:g.jsx(vSe,{domain:e,editDomainRedirects:t})})]})},P5=[{value:"Is default domain",isHidden:!0},{value:"Domain",isHidden:!1},{value:"Base path redirect",isHidden:!1},{value:"Regular 404 redirect",isHidden:!1},{value:"Invalid short URL redirect",isHidden:!1},{value:"Domain status",isHidden:!0},{value:"Options",isHidden:!0}],SSe=({domainsList:e,filterDomains:t,editDomainRedirects:n,checkDomainHealth:r})=>{var i;const{filteredDomains:o,defaultRedirects:a,loading:s,error:c,errorData:u}=e,h=a??((i=o.find(({isDefault:v})=>v))==null?void 0:i.redirects),p=Vj();return s?g.jsx(za,{loading:!0}):g.jsxs(zj,{value:p,children:[g.jsx(tm,{className:"mb-3",onChange:t}),g.jsx(Wj,{type:"domains",className:"mb-3"}),c?g.jsx(Tr,{type:"error",children:g.jsx(ia,{errorData:u,fallbackMessage:"Error loading domains :("})}):g.jsx(qt,{children:g.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[g.jsx("thead",{className:"responsive-table__header",children:g.jsx("tr",{children:P5.map((v,b)=>g.jsx("th",{children:g.jsx("span",{className:v.isHidden?"sr-only":void 0,children:v.value})},b))})}),g.jsxs("tbody",{children:[o.length<1&&g.jsx("tr",{children:g.jsx("td",{colSpan:P5.length,className:"text-center",children:"No results found"})}),o.map(v=>g.jsx(OSe,{domain:v,editDomainRedirects:n,checkDomainHealth:r,defaultRedirects:h},v.domain))]})]})})]})},qn=(e,t)=>HF(e,t,{serializeError:n=>n}),PSe="shlink/domainRedirects/EDIT_DOMAIN_REDIRECTS",CSe=e=>qn(PSe,async({domain:t,redirects:n})=>{const r=await e().editDomainRedirects({domain:t,...n});return{domain:t,redirects:r}}),rg="shlink/domainsList",ig={domains:[],filteredDomains:[],loading:!1,error:!1},C5=({domain:e,redirects:t})=>n=>n.domain!==e?n:{...n,redirects:t},E5=(e,t)=>n=>n.domain!==e?n:{...n,status:t},ESe=(e,t,n)=>{const r=qn(`${rg}/listDomains`,async()=>{const{data:s,defaultRedirects:c}=await e().listDomains();return{domains:s.map(u=>({...u,status:"validating"})),defaultRedirects:c}}),i=qn(`${rg}/checkDomainHealth`,async s=>{try{const{status:c}=await e().health(s);return{domain:s,status:c==="pass"?"valid":"invalid"}}catch{return{domain:s,status:"invalid"}}}),o=jr(`${rg}/filterDomains`),{reducer:a}=An({name:rg,initialState:ig,reducers:{},extraReducers:s=>{s.addCase(r.pending,()=>({...ig,loading:!0})),s.addCase(r.rejected,(c,{error:u})=>({...ig,error:!0,errorData:Si(u)})),s.addCase(r.fulfilled,(c,{payload:u})=>({...ig,...u,filteredDomains:u.domains})),s.addCase(i.fulfilled,({domains:c,filteredDomains:u,...h},{payload:p})=>({...h,domains:c.map(E5(p.domain,p.status)),filteredDomains:u.map(E5(p.domain,p.status))})),s.addCase(o,(c,{payload:u})=>({...c,filteredDomains:c.domains.filter(({domain:h})=>h.toLowerCase().match(u.toLowerCase()))})),s.addCase(t.fulfilled,(c,{payload:u})=>({...c,domains:c.domains.map(C5(u)),filteredDomains:c.filteredDomains.map(C5(u))})),s.addCase(n.fulfilled,(c,{payload:u})=>{u.domain===null||c.domains.some(h=>h.domain===u.domain)||c.domains.push({domain:u.domain,status:"validating",isDefault:!1,redirects:{baseUrlRedirect:null,regular404Redirect:null,invalidShortUrlRedirect:null}})})}});return{reducer:a,listDomains:r,checkDomainHealth:i,filterDomains:o}},TSe=(e,t)=>{e.serviceFactory("ManageDomains",()=>SSe),e.decorator("ManageDomains",t(["domainsList"],["filterDomains","editDomainRedirects","checkDomainHealth"])),e.serviceFactory("domainsListReducerCreator",ESe,"apiClientFactory","editDomainRedirects","createShortUrl"),e.serviceFactory("domainsListReducer",n=>n.reducer,"domainsListReducerCreator"),e.serviceFactory("listDomains",n=>n.listDomains,"domainsListReducerCreator"),e.serviceFactory("filterDomains",n=>n.filterDomains,"domainsListReducerCreator"),e.serviceFactory("editDomainRedirects",CSe,"apiClientFactory"),e.serviceFactory("checkDomainHealth",n=>n.checkDomainHealth,"domainsListReducerCreator")},T5="shlink/mercure",jSe={loading:!0,error:!1},ASe=e=>{const t=qn(`${T5}/loadMercureInfo`,r=>{if(r&&r.realTimeUpdates&&!r.realTimeUpdates.enabled)throw new Error("Real time updates not enabled");return e().mercureInfo()}),{reducer:n}=An({name:T5,initialState:jSe,reducers:{},extraReducers:r=>{r.addCase(t.pending,i=>({...i,loading:!0,error:!1})),r.addCase(t.rejected,i=>({...i,loading:!1,error:!0})),r.addCase(t.fulfilled,(i,{payload:o})=>({...o,loading:!1,error:!1}))}});return{loadMercureInfo:t,reducer:n}},kSe=e=>{e.serviceFactory("mercureInfoReducerCreator",ASe,"apiClientFactory"),e.serviceFactory("mercureInfoReducer",t=>t.reducer,"mercureInfoReducerCreator"),e.serviceFactory("loadMercureInfo",t=>t.loadMercureInfo,"mercureInfoReducerCreator")};function fn(e){return F.useRef(e).current}function dn(e,t){return(n,r=globalThis.console)=>(t.forEach(i=>{const o=n[i];e[i]=o}),e)}const RSe=(e,t,n,r)=>{const{mercureHubUrl:i,token:o,loading:a,error:s}=e;if(a||s||!i)return;const c=({data:p})=>n(JSON.parse(p)),u=({status:p})=>p===401&&r(),h=t.map(p=>{const v=new URL(i);v.searchParams.append("topic",p);const b=new Doe.EventSourcePolyfill(v,{headers:{Authorization:`Bearer ${o}`}});return b.onmessage=c,b.onerror=u,b});return()=>h.forEach(p=>p.close())};function jo(e,t){const n=new Set;return r=>{const{createNewVisits:i,loadMercureInfo:o,mercureInfo:a}=r,s=Gf();return F.useEffect(()=>{const{interval:c}=a,u=b=>c?n.add(b):i([b]),h=t(s),p=RSe(a,h,u,o);if(!c)return p;const v=setInterval(()=>{i([...n]),n.clear()},c*1e3*60);return()=>{clearInterval(v),p==null||p()}},[i,o,a,s]),g.jsx(e,{...r})}}class kr{}nl(kr,"visits","https://shlink.io/new-visit"),nl(kr,"orphanVisits","https://shlink.io/new-orphan-visit"),nl(kr,"shortUrlVisits",e=>`https://shlink.io/new-visit/${e}`);const cd=jr("shlink/visitCreation/createNewVisits",e=>({payload:{createdVisits:e}})),Wh=(e,t,n)=>n==null?e.shortCode===t&&!e.domain:e.shortCode===t&&e.domain===n,NSe=(e,t)=>!e.domain&&t===qf?!0:e.domain===t,MSe=(e,t)=>{const n=(t==null?void 0:t.validateUrls)??!1;return e?{longUrl:e.longUrl,tags:e.tags,title:e.title??void 0,domain:e.domain??void 0,validSince:e.meta.validSince??void 0,validUntil:e.meta.validUntil??void 0,maxVisits:e.meta.maxVisits??void 0,crawlable:e.crawlable,forwardQuery:e.forwardQuery,deviceLongUrls:e.deviceLongUrls&&{android:e.deviceLongUrls.android??void 0,ios:e.deviceLongUrls.ios??void 0,desktop:e.deviceLongUrls.desktop??void 0},validateUrl:n}:{longUrl:"",validateUrl:n}},sz=e=>e.replaceAll("/","__"),Kj=e=>e.replaceAll("__","/"),Yj=({domain:e,shortCode:t})=>`${e??qf}__${sz(t)}`,lz=e=>{const[t,n]=e.split(/__(.+)/);if(!n)throw new Error(`It was not possible to parse domain and short code from "${e}"`);return{domain:t===qf?null:t,shortCode:Kj(n)}},Zj="shlink/shortUrlDeletion",j5={shortCode:"",loading:!1,deleted:!1,error:!1},LSe=e=>qn(`${Zj}/deleteShortUrl`,async({shortCode:t,domain:n})=>(await e().deleteShortUrl(t,n),{shortCode:t,domain:n})),uz=jr(`${Zj}/shortUrlDeleted`),ISe=e=>{const{actions:t,reducer:n}=An({name:Zj,initialState:j5,reducers:{resetDeleteShortUrl:()=>j5},extraReducers:i=>{i.addCase(e.pending,o=>({...o,loading:!0,error:!1,deleted:!1})),i.addCase(e.rejected,(o,{error:a})=>({...o,errorData:Si(a),loading:!1,error:!0,deleted:!1})),i.addCase(e.fulfilled,(o,{payload:a})=>({...o,shortCode:a.shortCode,loading:!1,error:!1,deleted:!0}))}}),{resetDeleteShortUrl:r}=t;return{reducer:n,resetDeleteShortUrl:r}},cz="shlink/shortUrlsList",fz=5,DSe={loading:!0,error:!1},$Se=e=>qn(`${cz}/listShortUrls`,t=>e().listShortUrls(t??{})),FSe=(e,t,n)=>An({name:cz,initialState:DSe,reducers:{},extraReducers:r=>{r.addCase(e.pending,i=>({...i,loading:!0,error:!1})),r.addCase(e.rejected,()=>({loading:!1,error:!0})),r.addCase(e.fulfilled,(i,{payload:o})=>({loading:!1,error:!1,shortUrls:o})),r.addCase(n.fulfilled,(i,{payload:o})=>{i.shortUrls&&(i.shortUrls.data=[o,...i.shortUrls.data.slice(0,fz-1)],i.shortUrls.pagination.totalItems+=1)}),r.addCase(t.fulfilled,(i,{payload:o})=>{i.shortUrls&&(i.shortUrls.data=i.shortUrls.data.map(a=>{const{shortCode:s,domain:c}=o;return Wh(a,s,c)?o:a}))}),r.addCase(uz,(i,{payload:o})=>{i.shortUrls&&(i.shortUrls.data=i.shortUrls.data.filter(a=>!Wh(a,o.shortCode,o.domain)),i.shortUrls.pagination.totalItems-=1)}),r.addCase(cd,(i,{payload:o})=>{i.shortUrls&&(i.shortUrls.data=i.shortUrls.data.map(a=>{var s;return((s=o.createdVisits.findLast(({shortUrl:c})=>c&&Wh(a,c.shortCode,c.domain)))==null?void 0:s.shortUrl)??a}))})}}),A5=10,{ceil:BSe}=Math,USe=new Intl.NumberFormat("en-US"),Cn=e=>USe.format(Number(e)),zSe=e=>BSe(e/A5)*A5,xE=({children:e,title:t,link:n,tooltip:r})=>{const i=Xi();return g.jsxs(g.Fragment,{children:[g.jsxs(wi,{innerRef:i,className:"highlight-card",body:!0,tag:Jt,to:n,children:[g.jsx(Ge,{size:"3x",className:"highlight-card__link-icon",icon:Xoe}),g.jsx(mF,{className:"lh-sm fw-semibold text-uppercase fs-5 highlight-card__title",children:t}),g.jsx(pF,{className:"fs-2 fw-semibold lh-sm",children:e})]}),r&&g.jsx(Oi,{target:i,placement:"bottom",children:r})]})},k5=({loading:e,excludeBots:t,visitsSummary:n,...r})=>g.jsx(xE,{tooltip:n.bots!==void 0?g.jsxs(g.Fragment,{children:[t?"Plus":"Including"," ",g.jsx("strong",{children:Cn(n.bots)})," potential bot visits"]}):void 0,...r,children:e?"Loading...":Cn(t&&n.nonBots?n.nonBots:n.total)}),R5=({children:e,titleLinkText:t,titleLink:n,title:r})=>g.jsxs(wi,{children:[g.jsxs(Qp,{className:"d-flex justify-content-between align-items-center",children:[g.jsx("span",{className:"d-sm-none",children:r}),g.jsx("h5",{className:"d-none d-sm-inline m-0",children:r}),g.jsxs(Jt,{to:n,children:[t," »"]})]}),g.jsx(Xp,{children:e})]}),dz=jo(({shortUrlsList:e,listShortUrls:t,tagsList:n,loadVisitsOverview:r,visitsOverview:i})=>{const{ShortUrlsTable:o,CreateShortUrl:a}=fn(dz),{loading:s,shortUrls:c}=e,{loading:u}=n,{loading:h,nonOrphanVisits:p,orphanVisits:v}=i,b=_l(),x=oa(),_=Rr("visits");return F.useEffect(()=>{t({itemsPerPage:fz,orderBy:{field:"dateCreated",dir:"DESC"}}),r()},[t,r]),g.jsxs(g.Fragment,{children:[g.jsxs(qi,{children:[g.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:g.jsx(k5,{title:"Visits",link:`${b}/non-orphan-visits`,excludeBots:(_==null?void 0:_.excludeBots)??!1,loading:h,visitsSummary:p})}),g.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:g.jsx(k5,{title:"Orphan visits",link:`${b}/orphan-visits`,excludeBots:(_==null?void 0:_.excludeBots)??!1,loading:h,visitsSummary:v})}),g.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:g.jsx(xE,{title:"Short URLs",link:`${b}/list-short-urls/1`,children:s?"Loading...":Cn((c==null?void 0:c.pagination.totalItems)??0)})}),g.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:g.jsx(xE,{title:"Tags",link:`${b}/manage-tags`,children:u?"Loading...":Cn(n.tags.length)})})]}),g.jsxs("div",{className:"d-flex flex-column gap-3",children:[g.jsx(R5,{title:"Create a short URL",titleLinkText:"Advanced options",titleLink:`${b}/create-short-url`,children:g.jsx(a,{basicMode:!0})}),g.jsx(R5,{title:"Recently created URLs",titleLinkText:"See all",titleLink:`${b}/list-short-urls/1`,children:g.jsx(o,{shortUrlsList:e,className:"mb-0",onTagClick:w=>x(`${b}/list-short-urls/1?tags=${encodeURIComponent(w)}`)})})]})]})},()=>[kr.visits,kr.orphanVisits]),VSe=dn(dz,["ShortUrlsTable","CreateShortUrl"]);function WSe(e,t){e.factory("Overview",VSe),e.decorator("Overview",t(["shortUrlsList","tagsList","mercureInfo","visitsOverview"],["listShortUrls","createNewVisits","loadMercureInfo","loadVisitsOverview"]))}const hz="shlink/setShortUrlRedirectRules",N5={saving:!1,saved:!1,error:!1},qSe=e=>qn(`${hz}/setShortUrlRedirectRules`,({shortUrl:t,data:n})=>{const{shortCode:r,domain:i}=t;return e().setShortUrlRedirectRules(r,i,n)}),HSe=e=>{const{reducer:t,actions:n}=An({name:hz,initialState:N5,reducers:{resetSetRules:()=>N5},extraReducers:i=>{i.addCase(e.pending,()=>({saving:!0,saved:!1,error:!1})),i.addCase(e.rejected,(o,{error:a})=>({saving:!1,saved:!1,error:!0,errorData:Si(a)})),i.addCase(e.fulfilled,()=>({saving:!1,error:!1,saved:!0}))}}),{resetSetRules:r}=n;return{reducer:t,resetSetRules:r}},pz="shlink/getShortUrlRedirectRules",GSe={loading:!0,error:!1},KSe=e=>qn(`${pz}/getShortUrlRedirectRules`,({shortCode:t,domain:n})=>e().getShortUrlRedirectRules(t,n)),YSe=e=>An({name:pz,initialState:GSe,reducers:{},extraReducers:t=>{t.addCase(e.pending,()=>({loading:!0,error:!1})),t.addCase(e.rejected,()=>({loading:!1,error:!0})),t.addCase(e.fulfilled,(n,{payload:r})=>({loading:!1,error:!1,...r}))}});function ZSe(e,t){var n=!1;return function(...r){n||(e.call(null,...r),n=!0,setTimeout(function(){n=!1},t))}}function mz(e){return e.split(" ").filter(t=>t)}var vz=typeof window<"u";function Ru(e,t,n=!1){if(!t)return;const r=mz(t);if(r.length&&!r.includes("longTouch"))for(const i of e){if(!mm(i)||!Jo.has(i)){i.classList.add(...r);continue}const o=[],a=Jo.get(i);if(a){for(const s of r)i.classList.contains(s)?i.classList.contains(s)&&n===!1&&o.push(s):i.classList.add(s);a.privateClasses=o,Jo.set(i,a)}}}function f0(e,t){if(!t)return;const n=mz(t);if(n.length)for(const r of e){if(!mm(r)){r.classList.remove(...n);continue}const i=Jo.get(r);if(i)for(const o of n)i.privateClasses.includes(o)||r.classList.remove(o)}}function gz(e){let t=e.parentNode;for(;t!==null&&t.nodeType===1&&t instanceof HTMLElement;){const n=window.getComputedStyle(t).getPropertyValue("overflow");if(n==="scroll"||n==="auto")return t;t=t.parentNode}return document.documentElement}function XSe(e){if(!(e.e instanceof TouchEvent))return;const t=e.e.touches[0].clientX,n=e.e.touches[0].clientY;let r=document.elementFromPoint(t,n);if(!mm(r))return;let i,o=!0;for(;r&&o;){if(Jo.has(r)||xo.has(r)){o=!1,i=xo.has(r);break}r=r.parentNode}if(i){const a=xo.get(r);return a?{parent:{el:r,data:a}}:void 0}else{const a=Jo.get(r);if(!a)return;const s=xo.get(r.parentNode);return s?{node:{el:r,data:a},parent:{el:r.parentNode,data:s}}:void 0}}function mm(e){return e instanceof HTMLElement&&e.parentNode instanceof HTMLElement}function yz(e,t){const n=new AbortController;for(const r in t){const i=t[r];e.addEventListener(r,i,{signal:n.signal,passive:!1})}return n}function bz(e,t,n=!1){const r=window.getComputedStyle(e),i=["position","z-index","top","left","x","pointer-events","y","transform-origin","filter","-webkit-text-fill-color"];for(const o of Array.from(r))n===!1&&o&&i.includes(o)||t.style.setProperty(o,r.getPropertyValue(o),r.getPropertyPriority(o));for(const o of Array.from(e.children)){if(!mm(o))continue;const a=t.children[Array.from(e.children).indexOf(o)];bz(o,a,n)}}function Fu(e){return e instanceof DragEvent?{x:e.clientX,y:e.clientY}:{x:e.touches[0].clientX,y:e.touches[0].clientY}}Array();var M5={up:[0,-1],down:[0,1],left:[-1,0],right:[1,0]},Jo=new WeakMap,xo=new WeakMap,yt=void 0;function QSe(){yt=void 0}function _z(e){return yt={ascendingDirection:!1,incomingDirection:void 0,enterCount:0,targetIndex:0,affectedNodes:[],lastValue:void 0,activeNode:void 0,lastTargetValue:void 0,remapJustFinished:!1,preventEnter:!1,clonedDraggedEls:[],swappedNodeValue:!1,originalZIndex:void 0,...e},yt}function JSe(e,t){return yt={...e,...t},yt}function xz(e){const{x:t,y:n}=Fu(e.e);return{coordinates:{x:t,y:n},draggedNode:{el:e.targetData.node.el,data:e.targetData.node.data},draggedNodes:[{el:e.targetData.node.el,data:e.targetData.node.data}],initialIndex:e.targetData.node.data.index,initialParent:{el:e.targetData.parent.el,data:e.targetData.parent.data},lastParent:{el:e.targetData.parent.el,data:e.targetData.parent.data},scrollParent:gz(e.targetData.node.el)}}function ePe(e,t){const n=wz(e),r=[...wE(t.targetData.parent.el,t.targetData.parent.data).filter(i=>!n.includes(i))];r.splice(t.targetData.node.data.index,0,...n),e.lastTargetValue=t.targetData.node.data.value,OE(t.targetData.parent.el,t.targetData.parent.data,[...r])}function wE(e,t){return[...t.getValues(e)]}function OE(e,t,n){t.setValues(n,e)}function wz(e){return[...e.draggedNodes.map(t=>t.data.value)]}function tPe({parent:e,getValues:t,setValues:n,config:r={}}){var i,o;if(!vz)return;document.addEventListener("dragover",s=>{if(s.preventDefault(),yt){yt.remapJustFinished=!1,yt.lastTargetValue=void 0;const{x:c,y:u}=Fu(s);yt.coordinates.y=u,yt.coordinates.x=c,Tb()}}),Oz(e);const a={getValues:t,setValues:n,config:{handleDragstart:oPe,handleDragoverNode:kPe,handleDragoverParent:RPe,handleEnd:mPe,handleTouchstart:gPe,handleTouchmove:xPe,handleTouchOverNode:cPe,handleTouchOverParent:NPe,performSort:ePe,performTransfer:DPe,root:document,setupNode:fPe,setupNodeRemap:Cz,reapplyDragClasses:dPe,tearDownNode:pPe,tearDownNodeRemap:hPe,remapFinished:iPe,scrollBehavior:{x:.8,y:.8},threshold:{horizontal:0,vertical:0},...r},enabledNodes:[],abortControllers:{}};nPe(e,a),(i=r.plugins)==null||i.forEach(s=>{var c,u;(u=(c=s(e))==null?void 0:c.tearDown)==null||u.call(c)}),(o=r.plugins)==null||o.forEach(s=>{var c,u;(u=(c=s(e))==null?void 0:c.setup)==null||u.call(c)}),Sz(e,!0)}function Oz(e){const t=xo.get(e);t&&t.abortControllers.mainParent&&t.abortControllers.mainParent.abort()}function nPe(e,t){new MutationObserver(rPe).observe(e,{childList:!0}),xo.set(e,t),t.abortControllers.mainParent=yz(e,{dragover:$Pe(ZSe(t.config.handleDragoverParent,10)),touchOverParent:t.config.handleTouchOverParent})}function rPe(e){const t=e[0].target;t instanceof HTMLElement&&Sz(t)}function Sz(e,t){const n=xo.get(e);if(!n)return;const r=[],i=n.config;for(let s=0;sv.data.value).includes(h.value)){const v=yt.draggedNodes.find(b=>b.data.value===h.value);v&&(v.el=c)}a.push({el:c,data:h});const p={node:c,parent:e,parentData:n,nodeData:h};(t||!u)&&i.setupNode(p),Cz(p)}xo.set(e,{...n,enabledNodes:a}),i.remapFinished(n)}function iPe(){yt&&(yt.preventEnter=!1,yt.swappedNodeValue=void 0,yt.remapJustFinished=!0)}function oPe(e){e.e instanceof DragEvent&&uPe({e:e.e,targetData:e.targetData})}function aPe(e,t,n){Ru([e],t),setTimeout(()=>{f0([e],t),Ru([e],n)})}function sPe(e){const t=_z(xz(e));return e.e.stopPropagation(),e.e.dataTransfer&&(e.e.dataTransfer.dropEffect="move",e.e.dataTransfer.effectAllowed="move",e.e.dataTransfer.setDragImage(e.targetData.node.el,e.e.offsetX,e.e.offsetY)),t}function Pz(e){if(!(e.e instanceof DragEvent)&&!(e.e instanceof TouchEvent))return!1;const t=e.targetData.parent.data.config;if(!t.dragHandle)return!0;const n=e.targetData.node.el.querySelectorAll(t.dragHandle);if(!n)return!1;const r=Fu(e.e),i=t.root.elementFromPoint(r.x,r.y);if(!i)return!1;for(const o of Array.from(n))if(i===o||o.contains(i))return!0;return!1}function lPe(e){if(!Pz(e))return;const t=yPe(e);bPe(e,t),_Pe(e,t)}function uPe(e){if(!Pz(e)){e.e.preventDefault();return}const t=e.targetData.parent.data.config,n=sPe(e),r=e.targetData.node.el.style.zIndex;n.originalZIndex=r,e.targetData.node.el.style.zIndex="9999",aPe(n.draggedNode.el,t.draggingClass,t.dropZoneClass)}function cPe(e){yt&&(e.detail.targetData.parent.el===yt.lastParent.el?jz(e.detail,yt):jb(e.detail,yt))}function fPe(e){var t;const n=e.parentData.config;e.node.draggable=!0,e.nodeData.abortControllers.mainNode=yz(e.node,{dragstart:Dc(n.handleDragstart),dragover:Dc(n.handleDragoverNode),dragend:Dc(n.handleEnd),touchstart:Dc(n.handleTouchstart),touchmove:Dc(n.handleTouchmove),touchend:Dc(n.handleEnd),touchOverNode:n.handleTouchOverNode}),n.reapplyDragClasses(e.node,e.parentData),(t=e.parentData.config.plugins)==null||t.forEach(r=>{var i,o;(o=(i=r(e.parent))==null?void 0:i.setupNode)==null||o.call(i,e)})}function Cz(e){var t;Jo.set(e.node,e.nodeData),(t=e.parentData.config.plugins)==null||t.forEach(n=>{var r,i;(i=(r=n(e.parent))==null?void 0:r.setupNodeRemap)==null||i.call(r,e)})}function dPe(e,t){if(!yt)return;const n="touchedNode"in yt?t.config.touchDropZoneClass:t.config.dropZoneClass;yt.draggedNode.el===e&&Ru([e],n,!0)}function hPe(e){var t;(t=e.parentData.config.plugins)==null||t.forEach(n=>{var r,i;(i=(r=n(e.parent))==null?void 0:r.tearDownNodeRemap)==null||i.call(r,e)})}function pPe(e){var t,n,r,i,o;(t=e.parentData.config.plugins)==null||t.forEach(a=>{var s,c;(c=(s=a(e.parent))==null?void 0:s.tearDownNode)==null||c.call(s,e)}),e.node.draggable=!1,(r=(n=e.nodeData)==null?void 0:n.abortControllers)!=null&&r.mainNode&&((o=(i=e.nodeData)==null?void 0:i.abortControllers)==null||o.mainNode.abort())}function mPe(e){yt&&(vPe(e,yt),QSe())}function vPe(e,t){var n,r,i,o;document.removeEventListener("contextmenu",Ez),"longTouchTimeout"in t&&t.longTouchTimeout&&clearTimeout(t.longTouchTimeout);const a=(n=xo.get(t.initialParent.el))==null?void 0:n.config,s="touchedNode"in t?a==null?void 0:a.touchDropZoneClass:a==null?void 0:a.dropZoneClass;t.originalZIndex!==void 0&&(t.draggedNode.el.style.zIndex=t.originalZIndex),Ru(t.draggedNodes.map(c=>c.el),s,!0),f0(t.draggedNodes.map(c=>c.el),s),a!=null&&a.longTouchClass&&f0(t.draggedNodes.map(c=>c.el),(i=(r=t.initialParent.data)==null?void 0:r.config)==null?void 0:i.longTouchClass),"touchedNode"in t&&((o=t.touchedNode)==null||o.remove())}function gPe(e){e.e instanceof TouchEvent&&lPe({e:e.e,targetData:e.targetData})}function yPe(e){e.e.stopPropagation();const t=e.targetData.node.el.cloneNode(!0),n=e.targetData.node.el.getBoundingClientRect();return JSe(_z(xz(e)),{coordinates:{x:e.e.touches[0].clientX,y:e.e.touches[0].clientY},scrollParent:gz(e.targetData.node.el),touchStartLeft:e.e.touches[0].clientX-n.left,touchStartTop:e.e.touches[0].clientY-n.top,touchedNode:t,touchMoving:!1})}function Ez(e){e.preventDefault()}function bPe(e,t){t.touchedNodeDisplay=t.touchedNode.style.display;const n=e.targetData.node.el.getBoundingClientRect();t.touchedNode.style.cssText=` + width: ${n.width}px; + position: fixed; + pointer-events: none; + top: -9999px; + z-index: 999999; + display: none; + `,document.body.append(t.touchedNode),bz(e.targetData.node.el,t.touchedNode),t.touchedNode.style.display="none",document.addEventListener("contextmenu",Ez)}function _Pe(e,t){const n=e.targetData.parent.data.config;n.longTouch&&(t.longTouchTimeout=setTimeout(()=>{t&&(t.longTouch=!0,n.longTouchClass&&e.e.cancelable&&Ru(t.draggedNodes.map(r=>r.el),n.longTouchClass),e.e.preventDefault())},n.longTouchTimeout||200))}function xPe(e){!yt||!("touchedNode"in yt)||APe(e,yt)}function wPe(e,t){t.longTouchClass&&f0(e.draggedNodes.map(n=>n.el),t==null?void 0:t.longTouchClass),t.touchDraggingClass&&Ru([e.touchedNode],t.touchDraggingClass),t.touchDropZoneClass&&Ru(e.draggedNodes.map(n=>n.el),t.touchDropZoneClass)}function OPe(e){if(!e||!e.scrollParent)return;const{x:t,y:n,width:r,height:i}=e.scrollParent.getBoundingClientRect(),{x:o,y:a,scrollOutside:s}=e.lastParent.data.config.scrollBehavior;return{state:e,xThresh:o,yThresh:a,scrollOutside:s,scrollParent:e.scrollParent,x:t,y:n,width:r,height:i}}function SPe(e){const t=OPe(yt);if(t)switch(e){case"down":return TPe(t.state,t);case"up":return EPe(t.state,t);case"right":return PPe(t.state,t);case"left":return CPe(t.state,t)}}function PPe(e,t){const n=t.scrollParent.clientWidth+t.x-e.coordinates.x;if(!(!t.scrollOutside&&n<0)&&n<(1-t.xThresh)*t.scrollParent.clientWidth&&!(t.scrollParent.scrollLeft+t.scrollParent.clientWidth>=t.scrollParent.scrollWidth))return e}function CPe(e,t){const n=t.scrollParent.clientWidth+t.x-e.coordinates.x;if(!(!t.scrollOutside&&n>t.scrollParent.clientWidth)&&n>t.xThresh*t.scrollParent.clientWidth&&t.scrollParent.scrollLeft!==0)return e}function EPe(e,t){const n=t.scrollParent.clientHeight+t.y-e.coordinates.y;if(!(!t.scrollOutside&&n>t.scrollParent.clientHeight)&&n>t.yThresh*t.scrollParent.clientHeight&&t.scrollParent.scrollTop!==0)return e}function TPe(e,t){const n=t.scrollParent.clientHeight+t.y-e.coordinates.y;if(!(!t.scrollOutside&&n<0)&&n<(1-t.yThresh)*t.scrollParent.clientHeight&&!(t.scrollParent.scrollTop+t.scrollParent.clientHeight>=t.scrollParent.scrollHeight))return e}function jPe(e,t){t.touchMoving=!0,t.touchedNode.style.display=t.touchedNodeDisplay||"";const{x:n,y:r}=Fu(e.e);t.coordinates.y=r,t.coordinates.x=n;const i=t.touchStartLeft??0,o=t.touchStartTop??0;t.touchedNode.style.left=`${n-i}px`,t.touchedNode.style.top=`${r-o}px`,wPe(t,e.targetData.parent.data.config)}function APe(e,t){if(e.targetData.parent.data.config.longTouch&&!t.longTouch){clearTimeout(t.longTouchTimeout);return}e.e.cancelable&&e.e.preventDefault(),jPe(e,t),Tb();const n=XSe(e);if(!n)return;const r={e:e.e,targetData:n};"node"in n?n.node.el.dispatchEvent(new CustomEvent("touchOverNode",{detail:r})):n.parent.el.dispatchEvent(new CustomEvent("touchOverParent",{detail:r}))}function Tb(){for(const e of Object.keys(M5)){const[t,n]=M5[e];Tz(e,t,n)}}function Tz(e,t,n){const r=SPe(e);r&&(r.scrollParent.scrollBy(t,n),setTimeout(()=>{Tz(e,t,n)},"touchedNode"in r?10:100))}function kPe(e){if(!yt)return;const{x:t,y:n}=Fu(e.e);yt.coordinates.y=n,yt.coordinates.x=t,Tb(),LPe(e,yt)}function RPe(e){if(!yt)return;const{x:t,y:n}=Fu(e.e);yt.coordinates.y=n,yt.coordinates.x=t,Tb(),jb(e,yt)}function NPe(e){yt&&jb(e.detail,yt)}function MPe(e,t){if(e.targetData.parent.el===t.lastParent.el)return!1;const n=e.targetData.parent.data.config;if(n.dropZone===!1)return!1;const r=t.initialParent.data.config;return n.accepts?n.accepts(e.targetData.parent,t.initialParent,t.lastParent,t):!(!n.group||n.group!==r.group)}function LPe(e,t){var n;e.e.preventDefault(),e.e.stopPropagation(),e.targetData.parent.el===((n=t.lastParent)==null?void 0:n.el)?jz(e,t):jb(e,t)}function IPe(e,t,n,r){var i;if(t.remapJustFinished)return t.remapJustFinished=!1,t.lastTargetValue=e.targetData.node.data.value,!1;if(t.lastTargetValue===e.targetData.node.data.value||t.draggedNodes.map(v=>v.el).includes(e.targetData.node.el)||t.preventEnter||t.swappedNodeValue===e.targetData.node.data.value||e.targetData.parent.el!==((i=t.lastParent)==null?void 0:i.el)||e.targetData.parent.data.config.sortable===!1)return!1;const o=e.targetData.node.el.getBoundingClientRect(),a=t.draggedNode.el.getBoundingClientRect(),s=o.y-a.y,c=o.x-a.x;let u;const h=t.draggedNode.data.index>e.targetData.node.data.index?[e.targetData.node.data.index,t.draggedNode.data.index]:[t.draggedNode.data.index,e.targetData.node.data.index];t.targetIndex=e.targetData.node.data.index,t.affectedNodes=e.targetData.parent.data.enabledNodes.filter(v=>h[0]<=v.data.index&&v.data.index<=h[1]&&v.el!==t.draggedNode.el),Math.abs(s)>Math.abs(c)?u=s>0?"above":"below":u=c>0?"left":"right";const p=t.lastParent.data.config.threshold;switch(u){case"left":if(n>o.x+o.width*p.horizontal)return t.incomingDirection="left",!0;break;case"right":if(no.y+o.height*p.vertical)return t.incomingDirection="above",!0;break;case"below":if(r{const r=t(n.currentTarget);if(r)return e({e:n,targetData:r})}}function DPe(e,t){const n=wz(e),r=wE(e.lastParent.el,e.lastParent.data).filter(s=>!n.includes(s)),i=wE(t.targetData.parent.el,t.targetData.parent.data),o=e.initialParent.el===t.targetData.parent.el&&t.targetData.parent.data.config.sortable===!1;let a;"node"in t.targetData?(o?a=e.initialIndex:t.targetData.parent.data.config.sortable===!1?a=t.targetData.parent.data.enabledNodes.length:a=t.targetData.node.data.index,i.splice(a,0,...n)):(a=o?e.initialIndex:t.targetData.parent.data.enabledNodes.length,i.splice(a,0,...n)),OE(e.lastParent.el,e.lastParent.data,r),OE(t.targetData.parent.el,t.targetData.parent.data,i)}function jb(e,t){MPe(e,t)&&(e.targetData.parent.data.config.performTransfer(t,e),t.lastParent=e.targetData.parent)}function $Pe(e){function t(n){const r=xo.get(n);if(r)return{parent:{el:n,data:r}}}return n=>{const r=t(n.currentTarget);if(r)return e({e:n,targetData:r})}}function FPe(e){if(e instanceof HTMLElement)return e;if("current"in e&&e.current instanceof HTMLElement)return e.current;console.warn("Invalid parent element",e)}function BPe(e,t){const n=FPe(e);n&&t(n)}var d0=new WeakMap;function UPe(e){const t=d0.get(e);return t?t[0]:(console.warn("No values found for parent element"),[])}function zPe(e,t){const n=d0.get(t);n&&n[1](e),d0.set(t,[e,n[1]])}function VPe(e,t){return n=>{d0.set(n,t),tPe({parent:n,getValues:UPe,setValues:zPe,config:e})}}function L5(e){vz&&(Array.isArray(e)||(e=[e]),e.forEach(t=>{const{parent:n,state:r,...i}=t;BPe(n,VPe(i,r))}))}function WPe(e,t={}){const n=F.useRef(null),[r,i]=F.useState(e);function o(a={}){L5({parent:n,state:[r,i],...a})}return F.useEffect(()=>{L5({parent:n,state:[r,i],...t})},[r]),F.useEffect(()=>()=>{n.current&&Oz(n.current)},[]),[n,r,i,o]}const Ab=()=>{const e=oa(),t=_l(),n=Zf(),r=F.useMemo(()=>{const{orderBy:o,tags:a,excludeBots:s,excludeMaxVisitsReached:c,excludePastValidUntil:u,...h}=n,p=o?hie(o):void 0,v=(a==null?void 0:a.split(","))??[];return{...h,orderBy:p,tags:v,excludeBots:s!==void 0?s==="true":void 0,excludeMaxVisitsReached:c!==void 0?c==="true":void 0,excludePastValidUntil:u!==void 0?u==="true":void 0}},[n]),i=F.useCallback(o=>{const a={...r,...o},{orderBy:s,tags:c,excludeBots:u,excludeMaxVisitsReached:h,excludePastValidUntil:p,...v}=a,b={...v,orderBy:s&&die(s),tags:c.length>0?c.join(","):void 0,excludeBots:DO(u),excludeMaxVisitsReached:DO(h),excludePastValidUntil:DO(p)},x=L0(b),_=x?`?${x}`:"";e(`${t}/list-short-urls/1${_}`)},[r,e,t]);return[r,i]},Xj=()=>{const{domain:e}=Zf(),{shortCode:t=""}=Gf();return F.useMemo(()=>({shortCode:Kj(t),domain:e}),[e,t])},kb=()=>{const e=bSe();return g.jsx(_t,{color:"link",size:"lg",className:"p-0 me-3",onClick:e,"aria-label":"Go back",children:g.jsx(Ge,{icon:SK})})},qPe={AF:"Afghanistan",AL:"Albania",DZ:"Algeria",AS:"American Samoa",AD:"Andorra",AO:"Angola",AI:"Anguilla",AQ:"Antarctica",AG:"Antigua and Barbuda",AR:"Argentina",AM:"Armenia",AW:"Aruba",AU:"Australia",AT:"Austria",AZ:"Azerbaijan",BS:"Bahamas",BH:"Bahrain",BD:"Bangladesh",BB:"Barbados",BY:"Belarus",BE:"Belgium",BZ:"Belize",BJ:"Benin",BM:"Bermuda",BT:"Bhutan",BO:"Bolivia",BA:"Bosnia and Herzegovina",BW:"Botswana",BR:"Brazil",IO:"British Indian Ocean Territory",VG:"British Virgin Islands",BN:"Brunei",BG:"Bulgaria",BF:"Burkina Faso",BI:"Burundi",KH:"Cambodia",CM:"Cameroon",CA:"Canada",CV:"Cape Verde",KY:"Cayman Islands",CF:"Central African Republic",TD:"Chad",CL:"Chile",CN:"China",CX:"Christmas Island",CC:"Cocos Islands",CO:"Colombia",KM:"Comoros",CK:"Cook Islands",CR:"Costa Rica",HR:"Croatia",CU:"Cuba",CW:"Curacao",CY:"Cyprus",CZ:"Czech Republic",CD:"Democratic Republic of the Congo",DK:"Denmark",DJ:"Djibouti",DM:"Dominica",DO:"Dominican Republic",TL:"East Timor",EC:"Ecuador",EG:"Egypt",SV:"El Salvador",GQ:"Equatorial Guinea",ER:"Eritrea",EE:"Estonia",ET:"Ethiopia",FK:"Falkland Islands",FO:"Faroe Islands",FJ:"Fiji",FI:"Finland",FR:"France",PF:"French Polynesia",GA:"Gabon",GM:"Gambia",GE:"Georgia",DE:"Germany",GH:"Ghana",GI:"Gibraltar",GR:"Greece",GL:"Greenland",GD:"Grenada",GU:"Guam",GT:"Guatemala",GG:"Guernsey",GN:"Guinea",GW:"Guinea-Bissau",GY:"Guyana",HT:"Haiti",HN:"Honduras",HK:"Hong Kong",HU:"Hungary",IS:"Iceland",IN:"India",ID:"Indonesia",IR:"Iran",IQ:"Iraq",IE:"Ireland",IM:"Isle of Man",IL:"Israel",IT:"Italy",CI:"Ivory Coast",JM:"Jamaica",JP:"Japan",JE:"Jersey",JO:"Jordan",KZ:"Kazakhstan",KE:"Kenya",KI:"Kiribati",XK:"Kosovo",KW:"Kuwait",KG:"Kyrgyzstan",LA:"Laos",LV:"Latvia",LB:"Lebanon",LS:"Lesotho",LR:"Liberia",LY:"Libya",LI:"Liechtenstein",LT:"Lithuania",LU:"Luxembourg",MO:"Macao",MK:"Macedonia",MG:"Madagascar",MW:"Malawi",MY:"Malaysia",MV:"Maldives",ML:"Mali",MT:"Malta",MH:"Marshall Islands",MR:"Mauritania",MU:"Mauritius",YT:"Mayotte",MX:"Mexico",FM:"Micronesia",MD:"Moldova",MC:"Monaco",MN:"Mongolia",ME:"Montenegro",MS:"Montserrat",MA:"Morocco",MZ:"Mozambique",MM:"Myanmar",NA:"Namibia",NR:"Nauru",NP:"Nepal",NL:"Netherlands",AN:"Netherlands Antilles",NC:"New Caledonia",NZ:"New Zealand",NI:"Nicaragua",NE:"Niger",NG:"Nigeria",NU:"Niue",KP:"North Korea",MP:"Northern Mariana Islands",NO:"Norway",OM:"Oman",PK:"Pakistan",PW:"Palau",PS:"Palestine",PA:"Panama",PG:"Papua New Guinea",PY:"Paraguay",PE:"Peru",PH:"Philippines",PN:"Pitcairn",PL:"Poland",PT:"Portugal",PR:"Puerto Rico",QA:"Qatar",CG:"Republic of the Congo",RE:"Reunion",RO:"Romania",RU:"Russia",RW:"Rwanda",BL:"Saint Barthelemy",SH:"Saint Helena",KN:"Saint Kitts and Nevis",LC:"Saint Lucia",MF:"Saint Martin",PM:"Saint Pierre and Miquelon",VC:"Saint Vincent and the Grenadines",WS:"Samoa",SM:"San Marino",ST:"Sao Tome and Principe",SA:"Saudi Arabia",SN:"Senegal",RS:"Serbia",SC:"Seychelles",SL:"Sierra Leone",SG:"Singapore",SX:"Sint Maarten",SK:"Slovakia",SI:"Slovenia",SB:"Solomon Islands",SO:"Somalia",ZA:"South Africa",KR:"South Korea",SS:"South Sudan",ES:"Spain",LK:"Sri Lanka",SD:"Sudan",SR:"Suriname",SJ:"Svalbard and Jan Mayen",SZ:"Swaziland",SE:"Sweden",CH:"Switzerland",SY:"Syria",TW:"Taiwan",TJ:"Tajikistan",TZ:"Tanzania",TH:"Thailand",TG:"Togo",TK:"Tokelau",TO:"Tonga",TT:"Trinidad and Tobago",TN:"Tunisia",TR:"Turkey",TM:"Turkmenistan",TC:"Turks and Caicos Islands",TV:"Tuvalu",VI:"U.S. Virgin Islands",UG:"Uganda",UA:"Ukraine",AE:"United Arab Emirates",GB:"United Kingdom",US:"United States",UY:"Uruguay",UZ:"Uzbekistan",VU:"Vanuatu",VA:"Vatican",VE:"Venezuela",VN:"Vietnam",WF:"Wallis and Futuna",EH:"Western Sahara",YE:"Yemen",ZM:"Zambia",ZW:"Zimbabwe"},HPe={android:"Android",ios:"iOS",desktop:"Desktop"},GPe=({deviceType:e,onDeviceTypeChange:t})=>{const n=F.useId();return g.jsxs("div",{children:[g.jsx("label",{htmlFor:n,children:"Device type:"}),g.jsxs("select",{id:n,className:"form-select",value:e,onChange:r=>t(r.target.value),required:!0,children:[!e&&g.jsx("option",{value:"",children:"- Select type -"}),Object.entries(HPe).map(([r,i])=>g.jsx("option",{value:r,children:i},r))]})]})},Qj=({value:e,onValueChange:t,label:n,placeholder:r})=>{const i=F.useId();return g.jsxs("div",{children:[g.jsxs("label",{htmlFor:i,children:[n,":"]}),g.jsx(Qn,{id:i,value:e??"",onChange:o=>t(o.target.value),placeholder:r,required:!0})]})},KPe=({language:e,onLanguageChange:t})=>g.jsx(Qj,{value:e,onValueChange:t,label:"Language",placeholder:"en-US / en"}),YPe=({name:e,value:t,onNameChange:n,onValueChange:r})=>{const i=F.useId(),o=F.useId();return g.jsxs(g.Fragment,{children:[g.jsxs("div",{children:[g.jsx("label",{htmlFor:i,children:"Param name:"}),g.jsx(Qn,{id:i,value:e??"",onChange:a=>n(a.target.value),placeholder:"hello",required:!0})]}),g.jsxs("div",{children:[g.jsx("label",{htmlFor:o,children:"Param value:"}),g.jsx(Qn,{id:o,value:t??"",onChange:a=>r(a.target.value),placeholder:"world",required:!0})]})]})},ZPe=({ipAddress:e,onIpAddressChange:t})=>g.jsx(Qj,{value:e,onValueChange:t,label:"IP address",placeholder:"192.168.1.10"}),XPe=({countryCode:e,onCountryCodeChange:t})=>{const n=F.useId();return g.jsxs("div",{children:[g.jsx("label",{htmlFor:n,children:"Country:"}),g.jsxs("select",{id:n,className:"form-select",value:e,onChange:r=>t(r.target.value),required:!0,children:[!e&&g.jsx("option",{value:"",children:"- Select country -"}),Object.entries(qPe).map(([r,i])=>g.jsx("option",{value:r,children:i},r))]})]})},QPe=({cityName:e,onCityNameChange:t})=>g.jsx(Qj,{value:e,onValueChange:t,label:"City name",placeholder:"New York"}),JPe=({condition:e,onConditionChange:t,onDelete:n})=>{const r=F.useId(),i=F.useCallback(h=>t({type:h,matchValue:"",matchKey:null}),[t]),o=F.useCallback(h=>t({...e,matchValue:h}),[e,t]),a=F.useCallback(h=>t({...e,matchKey:h}),[e,t]),s=_i("ipRedirectCondition"),c=_i("geolocationRedirectCondition"),u=F.useMemo(()=>{const h={device:"Device type",language:"Language","query-param":"Query param"};return s&&(h["ip-address"]="IP address"),c&&(h["geolocation-country-code"]="Country (geolocation)",h["geolocation-city-name"]="City name (geolocation)"),h},[c,s]);return g.jsxs("div",{className:"redirect-rule-modal__condition rounded p-3 h-100 d-flex flex-column gap-2 position-relative",children:[g.jsxs("div",{children:[g.jsx(_t,{outline:!0,size:"sm",type:"button","aria-label":"Remove condition",onClick:n,className:"position-absolute rounded-circle redirect-rule-modal__remove-condition-button",children:g.jsx(Ge,{icon:e$,className:"redirect-rule-modal__remove-condition-button-icon"})}),g.jsx("label",{htmlFor:r,children:"Type:"}),g.jsx("select",{id:r,className:"form-select flex-grow-1",value:e.type,onChange:h=>i(h.target.value),children:Object.entries(u).map(([h,p])=>g.jsx("option",{value:h,children:p},h))})]}),e.type==="device"&&g.jsx(GPe,{deviceType:e.matchValue,onDeviceTypeChange:o}),e.type==="language"&&g.jsx(KPe,{language:e.matchValue,onLanguageChange:o}),e.type==="query-param"&&g.jsx(YPe,{value:e.matchValue,name:e.matchKey??"",onNameChange:a,onValueChange:o}),e.type==="ip-address"&&g.jsx(ZPe,{ipAddress:e.matchValue,onIpAddressChange:o}),e.type==="geolocation-country-code"&&g.jsx(XPe,{countryCode:e.matchValue,onCountryCodeChange:o}),e.type==="geolocation-city-name"&&g.jsx(QPe,{cityName:e.matchValue,onCityNameChange:o})]})},Az=({isOpen:e,toggle:t,onSave:n,initialData:r})=>{const[i,o]=F.useState(r??{longUrl:"",conditions:[]}),a=F.useCallback(b=>{b.preventDefault(),b.stopPropagation(),i&&n(i),t()},[n,i,t]),s=F.useCallback(()=>o(({longUrl:b,conditions:x})=>({longUrl:b,conditions:[...x,{type:"device",matchValue:"",matchKey:null}]})),[]),c=F.useCallback((b,x)=>o(({longUrl:_,conditions:w})=>{const O=[...w];return O[b]=x,{longUrl:_,conditions:O}}),[]),u=F.useCallback(b=>o(({longUrl:x,conditions:_})=>{const w=[..._];return w.splice(b,1),{longUrl:x,conditions:w}}),[]),h=Xi(),p=F.useCallback(()=>{var b;return(b=h==null?void 0:h.current)==null?void 0:b.focus()},[h]),v=F.useCallback(()=>o(r??{longUrl:"",conditions:[]}),[r]);return g.jsx(Zr,{size:"xl",isOpen:e,toggle:t,centered:!0,onOpened:p,onClosed:v,children:g.jsxs("form",{onSubmit:a,children:[g.jsx(aa,{toggle:t,className:"sticky-top redirect-rule-modal__header",children:"Redirect rule"}),g.jsxs(Po,{children:[g.jsx("label",{htmlFor:"longUrl",className:"fw-bold",children:"Long URL:"}),g.jsx(Qn,{id:"longUrl",type:"url",placeholder:"https://www.example.com",value:i.longUrl,onChange:b=>o(x=>({...x,longUrl:b.target.value})),required:!0,innerRef:h}),g.jsx("hr",{}),g.jsxs("div",{className:"d-flex justify-content-between",children:[g.jsx("b",{children:"Conditions:"}),g.jsx(_t,{outline:!0,size:"sm",type:"button","aria-label":"Add condition",onClick:s,children:g.jsx(Ge,{icon:Hp})})]}),i.conditions.length===0&&g.jsx("div",{className:"text-center",children:g.jsx("i",{children:"Add conditions..."})}),i.conditions.length>0&&g.jsx(qi,{className:"redirect-rule-modal__conditions-row",children:i.conditions.map((b,x)=>g.jsx("div",{className:"col-lg-6 col-xl-4 mt-4",children:g.jsx(JPe,{condition:b,onConditionChange:_=>c(x,_),onDelete:()=>u(x)})},`${x}_${b.type}`))})]}),g.jsxs(Qa,{className:"sticky-bottom redirect-rule-modal__footer",children:[g.jsx(_t,{type:"button",color:"link",onClick:t,children:"Cancel"}),g.jsx(_t,{color:"primary",disabled:i.conditions.length===0,children:"Confirm"})]})]})})},eCe=({priority:e,isLast:t,redirectRule:n,onDelete:r,onMoveUp:i,onMoveDown:o,onUpdate:a})=>{const[s,c]=cn();return g.jsxs(qt,{children:[g.jsxs("div",{className:"d-flex align-content-center gap-3",children:[g.jsx("div",{className:"d-flex flex-column my-auto drag-n-drop-handler d-none d-md-block",style:{cursor:"grab"},children:g.jsx(Ge,{icon:AK})}),g.jsxs("div",{className:"d-flex flex-column my-auto",children:[g.jsx(_t,{outline:!0,color:"secondary",size:"sm","aria-label":`Move rule with priority ${e} up`,disabled:e===1,onClick:i,className:"rounded-0 rounded-top",style:{marginBottom:"-1px"},children:g.jsx(Ge,{icon:qK})}),g.jsx(_t,{outline:!0,color:"secondary",size:"sm","aria-label":`Move rule with priority ${e} down`,disabled:t,onClick:o,className:"rounded-0 rounded-bottom",children:g.jsx(Ge,{icon:BK})})]}),g.jsxs("div",{className:"flex-grow-1",children:[g.jsxs("div",{className:"mb-2",children:[g.jsx("b",{children:"Long URL:"})," ",g.jsx(Gr,{href:n.longUrl,"data-testid":"rule-long-url"})]}),g.jsxs("div",{className:"d-flex flex-column flex-lg-row gap-2",children:[g.jsx("b",{children:"Conditions:"}),n.conditions.map((u,h)=>g.jsxs("div",{className:"badge bg-secondary",children:[u.type==="device"&&g.jsxs(g.Fragment,{children:["Device is ",u.matchValue]}),u.type==="language"&&g.jsxs(g.Fragment,{children:[u.matchValue," language is accepted"]}),u.type==="query-param"&&g.jsxs(g.Fragment,{children:["Query string contains ",u.matchKey,"=",u.matchValue]}),u.type==="ip-address"&&g.jsxs(g.Fragment,{children:["IP address matches ",u.matchValue]}),u.type==="geolocation-country-code"&&g.jsxs(g.Fragment,{children:["Country code is ",u.matchValue]}),u.type==="geolocation-city-name"&&g.jsxs(g.Fragment,{children:["City name is ",u.matchValue]})]},`${u.type}_${h}`))]})]}),g.jsxs("div",{className:"d-flex flex-column flex-sm-row gap-1 my-auto",children:[g.jsx(_t,{outline:!0,color:"secondary",size:"sm","aria-label":`Edit rule with priority ${e}`,onClick:c,children:g.jsx(Ge,{icon:Z8})}),g.jsx(_t,{outline:!0,color:"danger",size:"sm","aria-label":`Delete rule with priority ${e}`,onClick:r,children:g.jsx(Ge,{icon:nK})})]})]}),g.jsx(Az,{onSave:a,isOpen:s,toggle:c,initialData:n})]})},tCe=({shortUrlRedirectRules:e,getShortUrlRedirectRules:t,getShortUrlsDetails:n,shortUrlsDetails:r,setShortUrlRedirectRules:i,shortUrlRedirectRulesSaving:o,resetSetRules:a})=>{const s=Xj(),{shortUrls:c}=r,u=s&&(c==null?void 0:c.get(s)),[h,p,v]=WPe([],{dragHandle:".drag-n-drop-handler",dropZoneClass:"opacity-25"}),{saving:b,saved:x,errorData:_}=o,[w,O]=cn(),P=F.useCallback(W=>v((B=[])=>[...B,W]),[v]),E=F.useCallback(W=>v((B=[])=>{const V=[...B];return V.splice(W,1),V}),[v]),T=F.useCallback((W,B)=>v((V=[])=>{const H=[...V];return H[W]=B,H}),[v]),A=F.useCallback((W,B)=>v((V=[])=>{if(!V[B])return V;const H=[...V],J=H[B];return H[B]=H[W],H[W]=J,H}),[v]),j=F.useCallback(W=>A(W,W-1),[A]),N=F.useCallback(W=>A(W,W+1),[A]),$=F.useCallback(W=>{W.preventDefault(),p&&i({shortUrl:s,data:{redirectRules:p}})},[s,p,i]);return F.useEffect(()=>(t(s),n([s]),a),[t,n,s,a]),F.useEffect(()=>{e.redirectRules&&v(e.redirectRules)},[v,e.redirectRules]),g.jsxs("div",{className:"d-flex flex-column gap-3",children:[g.jsx("header",{children:g.jsxs(wi,{body:!0,children:[g.jsxs("h2",{className:"d-sm-flex justify-content-between align-items-center mb-0",children:[g.jsx(kb,{}),g.jsxs("div",{className:"text-center flex-grow-1",children:[r.loading&&g.jsx(g.Fragment,{children:"Loading..."}),!r.loading&&g.jsxs("small",{children:["Redirect rules for ",g.jsx(Gr,{href:(u==null?void 0:u.shortUrl)??""})]})]})]}),g.jsx("hr",{}),g.jsxs("div",{children:[g.jsx("p",{className:"mb-2",children:"Configure dynamic conditions that will be checked at runtime."}),"If no conditions match, visitors will be redirected to: ",g.jsx(Gr,{href:e.defaultLongUrl??""})]})]})}),g.jsx("div",{children:g.jsxs(_t,{outline:!0,color:"primary",onClick:O,children:[g.jsx(Ge,{icon:Hp,className:"me-1"})," Add rule"]})}),g.jsxs("form",{onSubmit:$,children:[e.loading&&g.jsx(za,{loading:!0}),p.length===0&&!e.loading&&g.jsx(qt,{className:"text-center",children:g.jsx("i",{children:"This short URL has no dynamic redirect rules"})}),g.jsx("div",{className:"d-flex flex-column gap-2",ref:h,children:p.map((W,B)=>g.jsx(eCe,{redirectRule:W,priority:B+1,isLast:B===p.length-1,onDelete:()=>E(B),onMoveUp:()=>j(B),onMoveDown:()=>N(B),onUpdate:V=>T(B,V)},`${W.longUrl}_${B}`))}),g.jsx("div",{className:"text-center mt-3",children:g.jsx(_t,{outline:!0,color:"primary",className:"btn-sm-block",disabled:b,"data-testid":"save-button",children:b?"Saving...":"Save rules"})})]}),_&&g.jsx(Tr,{type:"error",children:g.jsx(ia,{errorData:_,fallbackMessage:"An error occurred while saving short URL redirect rules :("})}),x&&g.jsx(Tr,{type:"success",children:"Redirect rules properly saved."}),g.jsx(Az,{isOpen:w,toggle:O,onSave:P})]})},nCe=(e,t)=>{e.serviceFactory("ShortUrlRedirectRules",()=>tCe),e.decorator("ShortUrlRedirectRules",t(["shortUrlRedirectRules","shortUrlsDetails","shortUrlRedirectRulesSaving"],["getShortUrlRedirectRules","getShortUrlsDetails","setShortUrlRedirectRules","resetSetRules"])),e.serviceFactory("getShortUrlRedirectRules",KSe,"apiClientFactory"),e.serviceFactory("setShortUrlRedirectRules",qSe,"apiClientFactory"),e.serviceFactory("resetSetRules",n=>n.resetSetRules,"setShortUrlRedirectRulesReducerCreator"),e.serviceFactory("shortUrlRedirectRulesReducerCreator",YSe,"getShortUrlRedirectRules"),e.serviceFactory("shortUrlRedirectRulesReducer",n=>n.reducer,"shortUrlRedirectRulesReducerCreator"),e.serviceFactory("setShortUrlRedirectRulesReducerCreator",HSe,"setShortUrlRedirectRules"),e.serviceFactory("setShortUrlRedirectRulesReducer",n=>n.reducer,"setShortUrlRedirectRulesReducerCreator")},rCe=e=>({longUrl:"",tags:[],customSlug:"",title:void 0,shortCodeLength:void 0,domain:"",validSince:void 0,validUntil:void 0,maxVisits:void 0,findIfExists:!1,validateUrl:(e==null?void 0:e.validateUrls)??!1,forwardQuery:(e==null?void 0:e.forwardQuery)??!0}),kz=({createShortUrl:e,shortUrlCreation:t,resetCreateShortUrl:n,basicMode:r=!1})=>{const{ShortUrlForm:i,CreateShortUrlResult:o}=fn(kz),a=Rr("shortUrlCreation"),s=F.useMemo(()=>rCe(a),[a]);return g.jsxs(g.Fragment,{children:[g.jsx(i,{initialState:s,saving:t.saving,basicMode:r,onSave:async c=>(n(),e(c))}),g.jsx(o,{creation:t,resetCreateShortUrl:n,canBeClosed:r})]})},iCe=dn(kz,["ShortUrlForm","CreateShortUrlResult"]),Rz=({shortUrlsDetails:e,getShortUrlsDetails:t,shortUrlEdition:n,editShortUrl:r})=>{const{ShortUrlForm:i}=fn(Rz),o=Xj(),{loading:a,error:s,errorData:c,shortUrls:u}=e,h=o&&(u==null?void 0:u.get(o)),{saving:p,saved:v,error:b,errorData:x}=n,_=Rr("shortUrlCreation"),w=F.useMemo(()=>MSe(h,_),[h,_]);return F.useEffect(()=>{o&&t([o])},[t,o]),a?g.jsx(za,{loading:!0}):s?g.jsx(Tr,{type:"error",children:g.jsx(ia,{errorData:c,fallbackMessage:"An error occurred while loading short URL detail :("})}):g.jsxs(g.Fragment,{children:[g.jsx("header",{className:"mb-3",children:g.jsx(wi,{body:!0,children:g.jsxs("h2",{className:"d-sm-flex justify-content-between align-items-center mb-0",children:[g.jsx(kb,{}),g.jsx("div",{className:"text-center flex-grow-1",children:g.jsxs("small",{children:["Edit ",g.jsx(Gr,{href:(h==null?void 0:h.shortUrl)??""})]})})]})})}),g.jsx(i,{initialState:w,saving:p,onSave:async O=>{h&&r({...h,data:O})}}),v&&b&&g.jsx(Tr,{type:"error",className:"mt-3",children:g.jsx(ia,{errorData:x,fallbackMessage:"An error occurred while updating short URL :("})}),v&&!b&&g.jsx(Tr,{type:"success",className:"mt-3",children:"Short URL properly edited."})]})},oCe=dn(Rz,["ShortUrlForm"]),Nz=({text:e,onCopy:t},n=navigator)=>{var r;return(r=n.clipboard)==null?void 0:r.writeText(e).then(()=>t==null?void 0:t(e,!0)).catch(()=>t==null?void 0:t(e,!1))},Mz=({creation:e,resetCreateShortUrl:t,canBeClosed:n=!1})=>{const{useTimeoutToggle:r}=fn(Mz),[i,o]=r(),{error:a,saved:s}=e;if(F.useEffect(()=>{t()},[t]),a)return g.jsxs(Tr,{type:"error",className:"mt-3",children:[n&&g.jsx(Ge,{"data-testid":"error-close-button",icon:eS,className:"float-end pointer",onClick:t}),g.jsx(ia,{errorData:e.errorData,fallbackMessage:"An error occurred while creating the URL :("})]});if(!s)return null;const{shortUrl:c}=e.result;return g.jsxs(Tr,{type:"success",className:"mt-3",children:[n&&g.jsx(Ge,{"data-testid":"success-close-button",icon:eS,className:"float-end pointer",onClick:t}),g.jsxs("span",{children:[g.jsx("b",{children:"Great!"})," The short URL is ",g.jsx("b",{children:c})]}),g.jsxs("button",{className:"btn btn-light btn-sm create-short-url-result__copy-btn",id:"copyBtn",type:"button",onClick:()=>Nz({text:c,onCopy:o}),children:[g.jsx(Ge,{icon:t7})," Copy ",g.jsxs("span",{className:"sr-only",children:[c," to clipboard"]})]}),g.jsx(M0,{placement:"left",isOpen:i,target:"copyBtn",children:"Copied!"})]})},aCe=dn(Mz,["useTimeoutToggle"]),BO="delete",sCe=({shortUrl:e,toggle:t,isOpen:n,shortUrlDeletion:r,resetDeleteShortUrl:i,deleteShortUrl:o,shortUrlDeleted:a})=>{const[s,c]=F.useState("");F.useEffect(()=>i,[i]);const{loading:u,error:h,deleted:p,errorData:v}=r,b=F.useCallback(()=>{i(),t()},[i,t]),x=F.useCallback(_=>(_.preventDefault(),o(e).then(w=>!Uj(w)&&t())),[o,e,t]);return g.jsx(Zr,{isOpen:n,toggle:b,centered:!0,onClosed:()=>p&&a(e),children:g.jsxs("form",{onSubmit:x,children:[g.jsx(aa,{toggle:b,children:g.jsx("span",{className:"text-danger",children:"Delete short URL"})}),g.jsxs(Po,{children:[g.jsxs("p",{children:[g.jsx("b",{className:"text-danger",children:"Caution!"})," You are about to delete a short URL."]}),g.jsx("p",{children:"This action cannot be undone. Once you have deleted it, all the visits stats will be lost."}),g.jsxs("p",{children:["Write ",g.jsx("b",{children:BO})," to confirm deletion."]}),g.jsx("input",{type:"text",className:"form-control",placeholder:`Insert ${BO}`,value:s,onChange:_=>c(_.target.value)}),h&&g.jsx(Tr,{type:sSe(v)?"warning":"error",small:!0,className:"mt-2",children:g.jsx(ia,{errorData:v,fallbackMessage:"Something went wrong while deleting the URL :("})})]}),g.jsxs(Qa,{children:[g.jsx("button",{type:"button",className:"btn btn-link",onClick:b,children:"Cancel"}),g.jsx("button",{type:"submit",className:"btn btn-danger",disabled:s!==BO||u,children:u?"Deleting...":"Delete"})]})]})})},Lz=({amount:e=0,loading:t=!1,...n})=>g.jsxs(_t,{...n,outline:!0,color:"primary",disabled:t,children:[g.jsx(Ge,{icon:sK})," ",t?"Exporting...":g.jsxs(g.Fragment,{children:["Export (",Cn(e),")"]})]}),I5=20,Iz=({amount:e=0})=>{const{apiClientFactory:t,ReportExporter:n}=fn(Iz),[{tags:r,search:i,startDate:o,endDate:a,orderBy:s,tagsMode:c}]=Ab(),[u,,h,p]=cn(),v=F.useCallback(async()=>{const b=e/I5,x=async(w=1)=>{const{data:O}=await t().listShortUrls({page:`${w}`,tags:r,searchTerm:i,startDate:o,endDate:a,orderBy:s,tagsMode:c,itemsPerPage:I5});return w>=b?O:O.concat(await x(w+1))};h();const _=await x();n.exportShortUrls(_.map(w=>{var O;const{hostname:P,pathname:E}=new URL(w.shortUrl),T=E.substring(1);return{createdAt:w.dateCreated,domain:P,shortCode:T,shortUrl:w.shortUrl,longUrl:w.longUrl,title:w.title??"",tags:w.tags.join("|"),visits:((O=w==null?void 0:w.visitsSummary)==null?void 0:O.total)??w.visitsCount??0}})),p()},[e,t,a,s,n,i,o,h,p,r,c]);return g.jsx(Lz,{loading:u,className:"btn-md-block",amount:e,onClick:v})},lCe=dn(Iz,["apiClientFactory","ReportExporter"]),Dz=({text:e,onCopy:t,copyToClipboard:n=Nz})=>g.jsx(ku,{className:"ms-2 p-0","aria-label":`Copy ${e} to clipboard`,onClick:()=>n({text:e,onCopy:t}),children:g.jsx(Ge,{icon:t7,className:"fs-5"})}),D5=e=>e&&e.startsWith("#")?e.substring(1):e,uCe=(e,{color:t,bgColor:n,...r})=>{const i=`${e}/qr-code`,o=L0({...r,color:D5(t),bgColor:D5(n)});return`${i}${o?`?${o}`:""}`},cCe=6,$5="0123456789ABCDEF",fCe=128;function dCe(){return`#${qj(cCe,()=>$5[Math.floor(Math.random()*$5.length)]).join("")}`}function hCe(e,t,n){return Math.round(Math.sqrt(.299*e**2+.587*t**2+.114*n**2))}function $z(e){const[t,n,r]=(e.match(/../g)??[]).map(i=>parseInt(i,16)||0);return hCe(t,n,r)>=fCe}const Fz=F.forwardRef(({name:e,color:t,onChange:n,className:r},i)=>g.jsxs("div",{className:Be("p-0 position-relative",r),style:{backgroundColor:t,borderColor:t},children:[g.jsx(Ge,{icon:_K,className:"position-absolute top-50 start-50 translate-middle",style:{color:$z(t.substring(1))?"#000":"fff"}}),g.jsx(Qn,{className:"form-control-color opacity-0",type:"color",value:t,onChange:o=>n(o.target.value),innerRef:i,name:e,"aria-label":e})]})),pCe=({color:e,onChange:t,name:n})=>{const r=Xi();return g.jsxs(Jp,{children:[g.jsx(Fz,{name:n,color:e,onChange:t,className:"input-group-text",ref:r}),g.jsx(Qn,{readOnly:!0,value:e,onClick:()=>{var i;return(i=r.current)==null?void 0:i.click()},"aria-label":n,"data-testid":"text-input"})]})},h0=({label:e,...t})=>g.jsx(_t,{outline:!0,color:"link",style:{color:"var(--input-text-color)",borderColor:"var(--border-color)"},"aria-label":e,title:e,...t}),F5=({name:e,color:t,initialColor:n,onChange:r})=>g.jsx(g.Fragment,{children:t===void 0?g.jsx(h0,{className:"text-start fst-italic w-100",onClick:()=>r(n),children:g.jsxs("span",{className:"indivisible",children:["Customize ",e]})}):g.jsxs("div",{className:"d-flex gap-1 w-100",children:[g.jsx(pCe,{color:t,onChange:r,name:e}),g.jsx(h0,{label:`Default ${e}`,onClick:()=>r(void 0),children:g.jsx(Ge,{icon:WE})})]})}),B5=({name:e,value:t,step:n,min:r,max:i,onChange:o,initial:a=r})=>{const s=F.useId();return g.jsx(g.Fragment,{children:t===void 0?g.jsxs(h0,{className:"text-start fst-italic w-100",onClick:()=>o(a),children:["Customize ",e]}):g.jsxs("div",{className:"d-flex gap-1 w-100",children:[g.jsxs("div",{className:"d-flex flex-column flex-grow-1",children:[g.jsxs("label",{htmlFor:s,className:"text-capitalize",children:[e,": ",t,"px"]}),g.jsx("input",{id:s,type:"range",className:"form-control-range",value:t,step:n,min:r,max:i,onChange:c=>o(Number(c.target.value))})]}),g.jsx(h0,{label:`Default ${e}`,onClick:()=>o(void 0),children:g.jsx(Ge,{icon:WE})})]})})},mCe=({errorCorrection:e,onChange:t})=>g.jsxs(Ja,{text:e?`Error correction (${e})`:g.jsx("i",{children:"Default error correction"}),dropdownClassName:"w-100",children:[g.jsx(Ye,{active:!e,onClick:()=>t(void 0),children:"Default"}),g.jsx(Ye,{divider:!0,tag:"hr"}),g.jsxs(Ye,{active:e==="L",onClick:()=>t("L"),children:[g.jsx("b",{children:"L"}),"ow"]}),g.jsxs(Ye,{active:e==="M",onClick:()=>t("M"),children:[g.jsx("b",{children:"M"}),"edium"]}),g.jsxs(Ye,{active:e==="Q",onClick:()=>t("Q"),children:[g.jsx("b",{children:"Q"}),"uartile"]}),g.jsxs(Ye,{active:e==="H",onClick:()=>t("H"),children:[g.jsx("b",{children:"H"}),"igh"]})]}),vCe=({format:e,onChange:t})=>g.jsxs(Ja,{text:e?`Format (${e})`:g.jsx("i",{children:"Default format"}),dropdownClassName:"w-100",children:[g.jsx(Ye,{active:!e,onClick:()=>t(void 0),children:"Default"}),g.jsx(Ye,{divider:!0,tag:"hr"}),g.jsx(Ye,{active:e==="png",onClick:()=>t("png"),children:"PNG"}),g.jsx(Ye,{active:e==="svg",onClick:()=>t("svg"),children:"SVG"})]}),Bz=({shortUrl:{shortUrl:e,shortCode:t},toggle:n,isOpen:r})=>{const{ImageDownloader:i}=fn(Bz),[o,a]=F.useState(),[s,c]=F.useState(),[u,h]=F.useState(),[p,v]=F.useState(),[b,x]=F.useState(),[_,w]=F.useState(),O=_i("qrCodeColors"),P=F.useMemo(()=>uCe(e,{size:o,format:u,margin:s,errorCorrection:p,color:b,bgColor:_}),[e,o,u,s,p,b,_]);return g.jsxs(Zr,{isOpen:r,toggle:n,centered:!0,size:"lg",children:[g.jsxs(aa,{toggle:n,children:["QR code for ",g.jsx(Gr,{href:e,children:e})]}),g.jsxs(Po,{className:"d-flex flex-column-reverse flex-lg-row gap-3",children:[g.jsx("div",{className:"flex-grow-1 d-flex align-items-center justify-content-around text-center",children:g.jsx("img",{src:P,alt:"QR code",className:"shadow",style:{maxWidth:"100%"}})}),g.jsxs("div",{className:"d-flex flex-column gap-2 qr-code-modal__controls",children:[g.jsx(B5,{name:"size",value:o,onChange:a,step:10,min:50,max:1e3,initial:300}),g.jsx(B5,{name:"margin",value:s,onChange:c,step:1,min:0,max:100}),g.jsx(vCe,{format:u,onChange:h}),g.jsx(mCe,{errorCorrection:p,onChange:v}),O&&g.jsxs(g.Fragment,{children:[g.jsx(F5,{name:"color",initialColor:"#000000",color:b,onChange:x}),g.jsx(F5,{name:"background",initialColor:"#ffffff",color:_,onChange:w})]}),g.jsx("div",{className:"mt-auto",children:g.jsxs(_t,{block:!0,color:"primary",onClick:()=>{i.saveImage(P,`${t}-qr-code.${u??"png"}`).catch(()=>{})},children:["Download ",g.jsx(Ge,{icon:J8,className:"ms-1"})]})})]})]}),g.jsx(Qa,{className:"sticky-bottom justify-content-around",style:{backgroundColor:"var(--primary-color)",zIndex:"1"},children:g.jsxs("div",{className:"text-center",children:[g.jsx(Gr,{href:P}),g.jsx(Dz,{text:P})]})})]})},gCe=dn(Bz,["ImageDownloader"]),yCe="yyyy-MM-dd",Uz="yyyy-MM-dd HH:mm",ul=()=>new Date,Jj=e=>typeof e!="string",eA=(e,t)=>!e||!Jj(e)?e:t?ay(e,t):mse(e),cl=e=>eA(e,void 0),Zs=e=>eA(e,yCe),Wp=e=>eA(e,Uz),mi=e=>Jj(e)?e:al(e),vm=(e,t,n)=>{const r=mi(e),i=t&&mi(t),o=n&&mi(n);if(i&&o)try{return yse(r,{start:i,end:o})}catch{return!1}return i?qP(r,i)||gse(r,i):o?qP(r,o)||sy(r,o):!0},Xl=(e,t)=>qP(e,t)||sy(e,t),p0=({date:e,format:t=Uz,relative:n=!1})=>{const r=Jj(e)?e:al(e);return g.jsx("time",{dateTime:`${vse(r)}000`,children:n?`${pse(ul(),r)} ago`:ay(r,t)})},bCe=(e,{shortCode:t,domain:n},r)=>{const i=n?`?domain=${n}`:"";return`${e}/short-code/${sz(t)}/${r}${i}`},qh=({shortUrl:e,suffix:t,asLink:n,children:r,...i})=>{const o=_l();return!n||!e?g.jsx("span",{...i,children:r}):g.jsx(Jt,{to:bCe(o,e,t),...i,children:r})},_Ce=e=>{const{meta:t,visitsCount:n,visitsSummary:r}=e,{maxVisits:i,validSince:o,validUntil:a}=t,s=(r==null?void 0:r.total)??n??0;return i&&s>=i?{icon:JK,className:"text-danger",description:g.jsxs(g.Fragment,{children:["This short URL cannot be currently visited because it has reached the maximum amount of ",g.jsx("b",{children:i})," visit",i>1?"s":"","."]})}:a&&sy(mi(a),ul())?{icon:wk,className:"text-danger",description:g.jsxs(g.Fragment,{children:["This short URL cannot be visited since ",g.jsx("b",{className:"indivisible",children:Wp(mi(a))}),"."]})}:o&&sy(ul(),mi(o))?{icon:wk,className:"text-warning",description:g.jsxs(g.Fragment,{children:["This short URL will start working on ",g.jsx("b",{className:"indivisible",children:Wp(mi(o))}),"."]})}:{icon:Yh,className:"text-primary",description:"This short URL can be visited normally."}},xCe=({shortUrl:e})=>{const t=Xi(),{icon:n,className:r,description:i}=_Ce(e);return g.jsxs(g.Fragment,{children:[g.jsx("span",{style:{cursor:i?"help":void 0},ref:t,children:g.jsx(Ge,{icon:n,className:r})}),g.jsx(Oi,{target:t,placement:"bottom",children:i})]})},zz=({visitsCount:e,shortUrl:t,active:n=!1,asLink:r=!1})=>{const i=Xi(),{maxVisits:o,validSince:a,validUntil:s}=(t==null?void 0:t.meta)??{},c=!!o||!!a||!!s,u=g.jsx(qh,{shortUrl:t,suffix:"visits",asLink:r,children:g.jsx("strong",{className:Be("short-url-visits-count__amount",{"short-url-visits-count__amount--big":n}),children:Cn(e)})});return c?g.jsxs(g.Fragment,{children:[g.jsxs("span",{className:"indivisible",children:[u,g.jsxs("small",{className:"short-urls-visits-count__max-visits-control",ref:i,children:[o&&g.jsxs(g.Fragment,{children:[" / ",Cn(o)]}),g.jsx("sup",{className:"ms-1",children:g.jsx(Ge,{icon:VE})})]})]}),g.jsx(Oi,{target:i,placement:"bottom",children:g.jsxs("ul",{className:"list-unstyled mb-0",children:[o&&g.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept more than ",g.jsx("b",{children:Cn(o)})," visit",o===1?"":"s","."]}),a&&g.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept visits before ",g.jsx("b",{className:"indivisible",children:Wp(mi(a))}),"."]}),s&&g.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept visits after ",g.jsx("b",{className:"indivisible",children:Wp(mi(s))}),"."]})]})})]}):u},wCe=e=>!!e.onClose,OCe=e=>!!e.onClick,Rb=e=>{const{text:t,children:n,className:r,colorGenerator:i}=e,o=OCe(e),a=o?ku:"span",s=F.useMemo(()=>i.stylesForKey(t),[t,i]);return g.jsxs(a,{className:Be("badge tag fw-bold",r,{pointer:o}),style:s,onClick:o?e.onClick:void 0,children:[n??t,wCe(e)&&g.jsx(ku,{"aria-label":`Remove ${t}`,className:"bg-transparent ms-1 opacity-100 p-0 fw-bold tag__close",onClick:e.onClose,children:"×"})]})},SCe=({tags:e,onTagClick:t,colorGenerator:n})=>e.length===0?g.jsx("i",{className:"indivisible",children:g.jsx("small",{children:"No tags"})}):g.jsx(g.Fragment,{children:e.map(r=>g.jsx(Rb,{text:r,colorGenerator:n,onClick:()=>t==null?void 0:t(r)},r))}),Vz=({shortUrl:e,onTagClick:t})=>{var n,r,i,o;const{ShortUrlsRowMenu:a,ColorGenerator:s,useTimeoutToggle:c}=fn(Vz),[u,h]=c(),[p,v]=c(!1,500),b=F.useRef(!0),[{excludeBots:x}]=Ab(),_=Rr("visits"),w=x??(_==null?void 0:_.excludeBots);return F.useEffect(()=>{b.current||v(),b.current=!1},[(n=e.visitsSummary)==null?void 0:n.total,(r=e.visitsSummary)==null?void 0:r.nonBots,e.visitsCount,v]),g.jsxs("tr",{className:"responsive-table__row",children:[g.jsx("td",{className:"indivisible short-urls-row__cell responsive-table__cell","data-th":"Created at",children:g.jsx(p0,{date:e.dateCreated})}),g.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Short URL",children:g.jsxs("span",{className:"position-relative short-urls-row__cell--indivisible",children:[g.jsx("span",{className:"short-urls-row__short-url-wrapper",children:g.jsx(Gr,{href:e.shortUrl})}),g.jsx(Dz,{text:e.shortUrl,onCopy:h}),g.jsx("span",{role:"status",className:"badge bg-warning text-black short-urls-row__copy-hint",hidden:!u,children:"Copied short URL!"})]})}),g.jsx("td",{className:"responsive-table__cell short-urls-row__cell short-urls-row__cell--break","data-th":`${e.title?"Title":"Long URL"}`,children:g.jsx(Gr,{href:e.longUrl,children:e.title??e.longUrl})}),e.title&&g.jsx("td",{className:"short-urls-row__cell responsive-table__cell short-urls-row__cell--break d-lg-none","data-th":"Long URL",children:g.jsx(Gr,{href:e.longUrl})}),g.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Tags",children:g.jsx(SCe,{tags:e.tags,colorGenerator:s,onTagClick:t})}),g.jsx("td",{className:"responsive-table__cell short-urls-row__cell text-lg-end","data-th":"Visits",children:g.jsx(zz,{visitsCount:(w?(i=e.visitsSummary)==null?void 0:i.nonBots:(o=e.visitsSummary)==null?void 0:o.total)??e.visitsCount??0,shortUrl:e,active:p,asLink:!0})}),g.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Status",children:g.jsxs("div",{className:"d-flex gap-2",children:[g.jsx(xCe,{shortUrl:e}),e.hasRedirectRules&&g.jsx(qh,{asLink:!0,shortUrl:e,suffix:"redirect-rules",title:"This short URL has dynamic redirect rules",children:g.jsx(Ge,{icon:n$})})]})}),g.jsx("td",{className:"responsive-table__cell short-urls-row__cell text-end",children:g.jsx(a,{shortUrl:e})})]})},PCe=dn(Vz,["ShortUrlsRowMenu","ColorGenerator","useTimeoutToggle"]),Wz=({shortUrl:e,deleteShortUrl:t,shortUrlDeleted:n})=>{const{DeleteShortUrlModal:r,QrCodeModal:i}=fn(Wz),[o,,a,s]=cn(),[c,,u,h]=cn(),p=Eb(),v=_i("shortUrlRedirectRules"),{confirmDeletions:b=!0}=Rr("shortUrlsList",{}),x=F.useCallback(async()=>{const _=await t(e);Uj(_)||n(e)},[t,e,n]);return g.jsxs(I0,{minWidth:v?220:190,children:[g.jsxs(Ye,{tag:qh,shortUrl:e,suffix:"visits",asLink:!0,children:[g.jsx(Ge,{icon:zE,fixedWidth:!0})," Visit stats"]}),p&&g.jsxs(g.Fragment,{children:[g.jsxs(Ye,{disabled:!p.canAddItemWithName(e.shortUrl),onClick:()=>p.addItemToCompare({name:e.shortUrl,query:Yj(e)}),children:[g.jsx(Ge,{icon:E0,fixedWidth:!0})," Compare visits"]}),g.jsx(Ye,{divider:!0,tag:"hr"})]}),g.jsxs(Ye,{tag:qh,shortUrl:e,suffix:"edit",asLink:!0,children:[g.jsx(Ge,{icon:UE,fixedWidth:!0})," Edit short URL"]}),v&&g.jsxs(Ye,{tag:qh,shortUrl:e,suffix:"redirect-rules",asLink:!0,children:[g.jsx(Ge,{icon:n$,fixedWidth:!0})," Manage redirect rules"]}),g.jsxs(Ye,{onClick:a,children:[g.jsx(Ge,{icon:ZK,fixedWidth:!0})," QR code"]}),g.jsx(i,{shortUrl:e,isOpen:o,toggle:s}),g.jsx(Ye,{divider:!0,tag:"hr"}),g.jsxs(Ye,{className:"dropdown-item--danger",onClick:b?u:x,children:[g.jsx(Ge,{icon:FE,fixedWidth:!0})," Delete short URL"]}),g.jsx(r,{shortUrl:e,deleteShortUrl:t,shortUrlDeleted:n,isOpen:c,toggle:h})]})},CCe=dn(Wz,["DeleteShortUrlModal","QrCodeModal"]),qz="shlink/shortUrlCreation",U5={saving:!1,saved:!1,error:!1},ECe=e=>qn(`${qz}/createShortUrl`,t=>e().createShortUrl(t)),TCe=e=>{const{reducer:t,actions:n}=An({name:qz,initialState:U5,reducers:{resetCreateShortUrl:()=>U5},extraReducers:i=>{i.addCase(e.pending,()=>({saving:!0,saved:!1,error:!1})),i.addCase(e.rejected,(o,{error:a})=>({saving:!1,saved:!1,error:!0,errorData:Si(a)})),i.addCase(e.fulfilled,(o,{payload:a})=>({result:a,saving:!1,saved:!0,error:!1}))}}),{resetCreateShortUrl:r}=n;return{reducer:t,resetCreateShortUrl:r}},Hz="shlink/shortUrlEdition",jCe={saving:!1,saved:!1,error:!1},ACe=e=>qn(`${Hz}/editShortUrl`,({shortCode:t,domain:n,data:r})=>e().updateShortUrl(t,n,r)),kCe=e=>An({name:Hz,initialState:jCe,reducers:{},extraReducers:t=>{t.addCase(e.pending,n=>({...n,saving:!0,error:!1,saved:!1})),t.addCase(e.rejected,(n,{error:r})=>({...n,saving:!1,error:!0,saved:!1,errorData:Si(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>({shortUrl:r,saving:!1,error:!1,saved:!0}))}}),z5="shlink/shortUrlsDetails",V5={loading:!1,error:!1},RCe=e=>{const t=qn(`${z5}/getShortUrlsDetails`,async(r,{getState:i})=>{const{shortUrlsList:o}=i(),a=await Promise.all(r.map(async s=>{var c;const{shortCode:u,domain:h}=s,p=(c=o==null?void 0:o.shortUrls)==null?void 0:c.data.find(v=>Wh(v,u,h));return[s,p??await e().getShortUrl(u,h)]}));return new Map(a)}),{reducer:n}=An({name:z5,initialState:V5,reducers:{},extraReducers:r=>{r.addCase(t.pending,()=>({loading:!0,error:!1})),r.addCase(t.rejected,(i,{error:o})=>({loading:!1,error:!0,errorData:Si(o)})),r.addCase(t.fulfilled,(i,{payload:o})=>({...V5,shortUrls:o}))}});return{reducer:n,getShortUrlsDetails:t}},NCe=({domains:e,value:t,onChange:n})=>{const[r,,i,o]=cn(),a=!t,s=F.useCallback(()=>{n(""),o()},[n,o]),c=F.useCallback(()=>{n(""),i()},[n,i]);return r?g.jsxs(Jp,{children:[g.jsx(Qn,{value:t??"",placeholder:"Domain",onChange:u=>n(u.target.value)}),g.jsx(_t,{id:"backToDropdown",outline:!0,type:"button",className:"domains-dropdown__back-btn","aria-label":"Back to domains list",onClick:s,children:g.jsx(Ge,{icon:jK})}),g.jsx(Oi,{target:"backToDropdown",placement:"left",trigger:"hover",children:"Existing domains"})]}):g.jsxs(Ja,{text:a?"Domain":`Domain: ${t}`,className:a?"domains-dropdown__toggle-btn":"domains-dropdown__toggle-btn--active",children:[e.map(({domain:u,isDefault:h})=>g.jsxs(Ye,{active:(t===u||h)&&a,onClick:()=>n(u),className:"d-flex justify-content-between align-items-center",children:[u,h&&g.jsx("span",{className:"text-muted",children:"default"})]},u)),g.jsx(Ye,{divider:!0}),g.jsx(Ye,{onClick:c,children:g.jsx("i",{children:"New domain"})})]})},UO=({icon:e,className:t,...n})=>{const r=Xi();return g.jsxs("div",{className:"icon-input-container",children:[g.jsx(Qn,{className:Be("icon-input-container__input",t),innerRef:r,...n}),g.jsx(Ge,{icon:e,fixedWidth:!0,className:"icon-input-container__icon",onClick:()=>{var i;return(i=r.current)==null?void 0:i.focus()}})]})},MCe=({minDate:e,maxDate:t,value:n,onChange:r,withTime:i=!1,...o})=>{const a=F.useCallback(({target:c})=>{if(!c.value){r==null||r(null);return}r==null||r(mi(c.value))},[r]),s=F.useMemo(()=>i?Wp:Zs,[i]);return g.jsx(Qn,{...o,type:i?"datetime-local":"date",value:s(n)??"",max:s(t)??void 0,min:s(e)??void 0,onChange:a})},m0=({label:e,id:t,...n})=>{const r=F.useId();return g.jsxs(g.Fragment,{children:[g.jsxs("label",{htmlFor:t??r,className:"mb-1",children:[e,":"]}),g.jsx(MCe,{id:t??r,...n})]})},zO=({children:e,infoTooltip:t,checked:n,onChange:r})=>g.jsxs("p",{children:[g.jsx(EF,{inline:!0,checked:n,className:t?"me-2":"",onChange:r,children:e}),t&&g.jsx(_g,{placement:"right",children:t})]}),LCe=({isOpen:e,toggle:t})=>g.jsxs(Zr,{isOpen:e,toggle:t,centered:!0,size:"lg",children:[g.jsx(aa,{toggle:t,children:"Info"}),g.jsxs(Po,{children:[g.jsxs("p",{children:["When the ",g.jsx("b",{children:g.jsx("i",{children:'"Use existing URL if found"'})})," checkbox is checked, the server will return an existing short URL if it matches provided params."]}),g.jsx("p",{children:"These are the checks performed by Shlink in order to determine if an existing short URL should be returned:"}),g.jsxs("ul",{children:[g.jsx("li",{children:"When only the long URL is provided: The most recent match will be returned, or a new short URL will be created if none is found."}),g.jsxs("li",{children:["When long URL and custom slug and/or domain are provided: Same as in previous case, but it will try to match the short URL using both the long URL and the slug, the long URL and the domain, or the three of them.",g.jsx("br",{}),"If the slug is being used by another long URL, an error will be returned."]}),g.jsx("li",{children:"When other params are provided: Same as in previous cases, but it will try to match existing short URLs with all provided data. If any of them does not match, a new short URL will be created"})]})]})]}),ICe=()=>{const[e,t]=cn();return g.jsxs(g.Fragment,{children:[g.jsx(ku,{className:"p-0",title:"What does this mean?",onClick:t,children:g.jsx(Ge,{icon:VE})}),g.jsx(LCe,{isOpen:e,toggle:t})]})},og=e=>typeof e=="string"?al(e):e,DCe=e=>"shortCodeLength"in e&&"customSlug"in e&&"domain"in e,Gz=({basicMode:e=!1,saving:t,onSave:n,initialState:r,tagsList:i,domainsList:o})=>{var a,s,c;const{TagsSelector:u}=fn(Gz),[h,p]=F.useState(r),v=DCe(h),b=_i("deviceLongUrls"),x=_i("urlValidation"),_=x||v,w=F.useCallback(()=>p(r),[r]),O=F.useCallback((j,N)=>au(j)?j:au(N)?null:void 0,[]),P=F.useCallback((j,N)=>p(({deviceLongUrls:$={},...W})=>{var B;return{...W,deviceLongUrls:{...$,[j]:O(N,(B=r.deviceLongUrls)==null?void 0:B[j])}}}),[r.deviceLongUrls,O]),E=F.useCallback(j=>p(N=>({...N,tags:j})),[]),T=F.useCallback(async j=>(j.preventDefault(),n(h).then(N=>v&&!Uj(N)&&w()).catch(()=>{})),[v,n,w,h]),A=F.useMemo(()=>g.jsxs("div",{className:"d-flex flex-column gap-3",children:[g.jsx(Qn,{bsSize:"lg",type:"url",placeholder:"URL to be shortened",required:!0,value:h.longUrl,onChange:j=>p(N=>({...N,longUrl:j.target.value}))}),g.jsxs("div",{className:Be("d-flex flex-column flex-lg-row gap-3",{"mb-3":e}),children:[e&&v&&g.jsx("div",{className:"w-100 w-lg-50",children:g.jsx(Qn,{bsSize:"lg",placeholder:"Custom slug",value:h.customSlug??"",onChange:j=>p(N=>({...N,customSlug:j.target.value}))})}),g.jsx("div",{className:Be("w-100",{"w-lg-50":e}),children:g.jsx(u,{tags:i.tags,selectedTags:h.tags??[],onChange:E})})]})]}),[u,e,E,v,h,i.tags]);return g.jsxs("form",{name:"shortUrlForm",className:"short-url-form",onSubmit:T,children:[e&&A,!e&&g.jsxs(g.Fragment,{children:[g.jsxs(qi,{children:[g.jsx("div",{className:Be("mb-3",{"col-sm-6":b,"col-12":!b}),children:g.jsx(qt,{title:"Main options",children:A})}),b&&g.jsx("div",{className:"col-sm-6 mb-3",children:g.jsxs(qt,{title:"Device-specific long URLs",bodyClassName:"d-flex flex-column gap-3",children:[g.jsx(UO,{type:"url",icon:Lse,placeholder:"Android-specific redirection",value:((a=h.deviceLongUrls)==null?void 0:a.android)??"",onChange:({target:j})=>P("android",j.value)}),g.jsx(UO,{type:"url",icon:Mse,placeholder:"iOS-specific redirection",value:((s=h.deviceLongUrls)==null?void 0:s.ios)??"",onChange:({target:j})=>P("ios",j.value)}),g.jsx(UO,{type:"url",icon:eY,placeholder:"Desktop-specific redirection",value:((c=h.deviceLongUrls)==null?void 0:c.desktop)??"",onChange:({target:j})=>P("desktop",j.value)})]})})]}),g.jsxs(qi,{children:[g.jsx("div",{className:"col-sm-6 mb-3",children:g.jsxs(qt,{title:"Customize the short URL",bodyClassName:"d-flex flex-column gap-3",children:[g.jsx(Qn,{placeholder:"Title",value:h.title??"",onChange:({target:j})=>p(N=>({...N,title:O(j.value,r.title)}))}),v&&g.jsxs(g.Fragment,{children:[g.jsxs(qi,{children:[g.jsx("div",{className:"col-lg-6 mb-3 mb-lg-0",children:g.jsx(Qn,{placeholder:"Custom slug",value:h.customSlug??"",onChange:j=>p(N=>({...N,customSlug:j.target.value})),disabled:au(h.shortCodeLength)})}),g.jsx("div",{className:"col-lg-6",children:g.jsx(Qn,{type:"number",placeholder:"Short code length",value:h.shortCodeLength??"",onChange:j=>p(N=>({...N,shortCodeLength:j.target.value})),min:4,disabled:au(h.customSlug)})})]}),g.jsx(NCe,{value:h.domain,onChange:j=>p(N=>({...N,domain:j})),domains:o.domains})]})]})}),g.jsx("div",{className:"col-sm-6 mb-3",children:g.jsxs(qt,{title:"Limit access to the short URL",children:[g.jsxs("div",{className:"row mb-3",children:[g.jsx("div",{className:"col-lg-6",children:g.jsx(m0,{label:"Enabled since",withTime:!0,maxDate:h.validUntil?og(h.validUntil):void 0,value:h.validSince?og(h.validSince):null,onChange:j=>p(N=>({...N,validSince:cl(j)}))})}),g.jsx("div",{className:"col-lg-6 mt-3 mt-lg-0",children:g.jsx(m0,{label:"Enabled until",withTime:!0,minDate:h.validSince?og(h.validSince):void 0,value:h.validUntil?og(h.validUntil):null,onChange:j=>p(N=>({...N,validUntil:cl(j)}))})})]}),g.jsxs("div",{children:[g.jsx("label",{htmlFor:"maxVisits",className:"mb-1",children:"Maximum visits allowed:"}),g.jsx(Qn,{id:"maxVisits",type:"number",min:1,placeholder:"25...",value:h.maxVisits??"",onChange:j=>p(N=>({...N,maxVisits:au(j.target.value)?Number(j.target.value):null}))})]})]})})]}),g.jsxs(qi,{children:[_&&g.jsx("div",{className:"col-sm-6 mb-3",children:g.jsxs(qt,{title:"Extra checks",children:[x&&g.jsx(zO,{infoTooltip:"If checked, Shlink will try to reach the long URL, failing in case it's not publicly accessible.",checked:h.validateUrl,onChange:j=>p(N=>({...N,validateUrl:j})),children:"Validate URL"}),v&&g.jsxs("p",{children:[g.jsx(EF,{inline:!0,className:"me-2",checked:h.findIfExists,onChange:j=>p(N=>({...N,findIfExists:j})),children:"Use existing URL if found"}),g.jsx(ICe,{})]})]})}),g.jsx("div",{className:Be("mb-3",{"col-sm-6":_}),children:g.jsxs(qt,{title:"Configure behavior",children:[g.jsx(zO,{infoTooltip:"This short URL will be included in the robots.txt for your Shlink instance, allowing web crawlers (like Google) to index it.",checked:h.crawlable,onChange:j=>p(N=>({...N,crawlable:j})),children:"Make it crawlable"}),g.jsx(zO,{infoTooltip:"When this short URL is visited, any query params appended to it will be forwarded to the long URL.",checked:h.forwardQuery,onChange:j=>p(N=>({...N,forwardQuery:j})),children:"Forward query params on redirect"})]})})]})]}),g.jsx("div",{className:"text-center",children:g.jsx(_t,{outline:!0,color:"primary",disabled:t||!h.longUrl,className:"btn-xs-block",children:t?"Saving...":"Save"})})]})},$Ce=dn(Gz,["TagsSelector"]),Nb="all",Kz={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days",[Nb]:void 0},Yz=Object.keys(Kz),FCe=e=>!e||!e.startDate&&!e.endDate,v0=e=>typeof e=="string"&&Yz.includes(e),BCe=Yz.filter(e=>e!==Nb),W5=e=>e?mi(e):null,Zz=(e,t)=>({startDate:W5(e),endDate:W5(t)}),UCe=e=>{if(!(!e||FCe(e)))return e.startDate&&!e.endDate?`Since ${Zs(e.startDate)}`:!e.startDate&&e.endDate?`Until ${Zs(e.endDate)}`:`${Zs(e.startDate)} - ${Zs(e.endDate)}`},Xz=e=>{if(!(!e||e===Nb))return v0(e)?Kz[e]:UCe(e)},Vi=e=>Cu(ly(ul(),e)),$c=e=>({startDate:e,endDate:mf(ul())}),Qz=e=>{var t;return((t=[[()=>e==="today",()=>$c(Cu(ul()))],[()=>e==="yesterday",()=>({startDate:Vi(1),endDate:mf(ly(ul(),1))})],[()=>e==="last7Days",()=>$c(Vi(7))],[()=>e==="last30Days",()=>$c(Vi(30))],[()=>e==="last90Days",()=>$c(Vi(90))],[()=>e==="last180Days",()=>$c(Vi(180))],[()=>e==="last365Days",()=>$c(Vi(365))]].find(([n])=>n()))==null?void 0:t[1]())??{}},zCe=e=>{var t;const n=mi(e);return((t=[[()=>Xl(Cu(ul()),n),"today"],[()=>Xl(Vi(1),n),"yesterday"],[()=>Xl(Vi(7),n),"last7Days"],[()=>Xl(Vi(30),n),"last30Days"],[()=>Xl(Vi(90),n),"last90Days"],[()=>Xl(Vi(180),n),"last180Days"],[()=>Xl(Vi(365),n),"last365Days"]].find(([r])=>r()))==null?void 0:t[1])??Nb},Jz=e=>v0(e)?Qz(e):e,eV=e=>!!(e&&e.startDate),VCe=({startDate:e,endDate:t})=>{const n=o7(mf(t??new Date),Cu(e))+1,r=ly(Cu(e),n),i=ly(mf(e),1);return{startDate:r,endDate:i}},WCe=e=>{if(eV(e))return o7(e.endDate??new Date,e.startDate)},qCe=({active:e,allText:t,onChange:n})=>g.jsxs(g.Fragment,{children:[g.jsx(Ye,{active:e==="all",onClick:()=>n("all"),children:t}),g.jsx(Ye,{divider:!0,tag:"hr"}),BCe.map(r=>g.jsx(Ye,{active:e===r,onClick:()=>n(r),children:Xz(r)},r))]}),HCe=({startDate:e,endDate:t,disabled:n=!1,onStartDateChange:r,onEndDateChange:i})=>g.jsxs("div",{className:"row",children:[g.jsx("div",{className:"col-md-6",children:g.jsx(m0,{label:"Since",value:e,maxDate:t??void 0,disabled:n,onChange:r})}),g.jsx("div",{className:"col-md-6 mt-3 mt-md-0",children:g.jsx(m0,{label:"Until",value:t,minDate:e??void 0,disabled:n,onChange:o=>i(o&&mf(o))})})]}),tA=({onDatesChange:e,dateRangeOrInterval:t,defaultText:n,disabled:r})=>{const i=F.useMemo(()=>Xz(t)??n,[t,n]),[o,a]=F.useMemo(()=>v0(t)?[void 0,t]:[t,void 0],[t]),s=F.useCallback(c=>{v0(c)?e(Qz(c),c):e(c)},[e]);return g.jsxs(Ja,{disabled:r,text:i,children:[g.jsx(qCe,{allText:n,active:a,onChange:s}),g.jsx(Ye,{divider:!0,tag:"hr"}),g.jsx("div",{className:"px-3 py-1",children:g.jsx(HCe,{...o,onStartDateChange:c=>s({...o,startDate:c}),onEndDateChange:c=>s({...o,endDate:c})})})]})},GCe={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},KCe=({onChange:e,selected:t={},className:n,domains:r})=>{const i=_i("filterDisabledUrls"),o=_i("filterShortUrlsByDomain"),{excludeBots:a=!1,excludeMaxVisitsReached:s=!1,excludePastValidUntil:c=!1,domain:u}=t,h=F.useCallback(v=>e({...t,...v}),[e,t]),p=F.useCallback(v=>h({[v]:!(t!=null&&t[v])}),[h,t]);return g.jsxs(Ja,{text:"Filters",dropdownClassName:n,end:!0,minWidth:250,children:[g.jsx(Ye,{header:!0,"aria-hidden":!0,children:"Visits:"}),g.jsx(Ye,{active:a,onClick:()=>p("excludeBots"),children:"Ignore visits from bots"}),i&&g.jsxs(g.Fragment,{children:[g.jsx(Ye,{divider:!0,tag:"hr"}),g.jsx(Ye,{header:!0,"aria-hidden":!0,children:"Short URLs:"}),g.jsx(Ye,{active:s,onClick:()=>p("excludeMaxVisitsReached"),children:"Exclude with visits reached"}),g.jsx(Ye,{active:c,onClick:()=>p("excludePastValidUntil"),children:"Exclude enabled in the past"})]}),o&&g.jsxs(g.Fragment,{children:[g.jsx(Ye,{divider:!0,tag:"hr"}),g.jsxs(Ye,{header:!0,"aria-hidden":!0,children:["Domain: ",!r&&g.jsx("i",{children:"loading..."})]}),r==null?void 0:r.map(v=>{const b=v.isDefault?qf:v.domain,x=u===b;return g.jsx(Ye,{active:x,onClick:()=>h({domain:x?void 0:b}),children:v.domain},v.domain)})]}),g.jsx(Ye,{divider:!0,tag:"hr"}),g.jsx(Ye,{disabled:t.excludeBots===void 0&&t.excludeMaxVisitsReached===void 0&&t.excludePastValidUntil===void 0&&t.domain===void 0,onClick:()=>e({excludeBots:void 0,excludeMaxVisitsReached:void 0,excludePastValidUntil:void 0,domain:void 0}),className:"fst-italic",children:"Reset to defaults"})]})},tV=({className:e,shortUrlsAmount:t,order:n,handleOrderBy:r,tagsList:i,domainsList:o})=>{const{ExportShortUrlsBtn:a,TagsSelector:s}=fn(tV),[{search:c,tags:u,startDate:h,endDate:p,excludeBots:v,excludeMaxVisitsReached:b,excludePastValidUntil:x,domain:_,tagsMode:w="any"},O]=Ab(),P=Rr("visits"),[E,T]=F.useState(),A=F.useCallback(({startDate:W,endDate:B},V)=>{O({startDate:cl(W)??void 0,endDate:cl(B)??void 0}),T(V)},[O]),j=F.useCallback(W=>O({search:W||void 0}),[O]),N=F.useCallback(W=>O({tags:W}),[O]),$=F.useCallback(()=>O({tagsMode:w==="any"?"all":"any"}),[w,O]);return g.jsxs("div",{className:Be("short-urls-filtering-bar-container",e),children:[g.jsx(tm,{initialValue:c,onChange:j}),g.jsxs(Jp,{className:"mt-3",children:[g.jsx(s,{immutable:!0,placeholder:"With tags...",tags:i.tags,selectedTags:u,onChange:N}),u.length>1&&g.jsxs(g.Fragment,{children:[g.jsx(_t,{outline:!0,color:"secondary",onClick:$,id:"tagsModeBtn","aria-label":"Change tags mode",children:g.jsx(Ge,{className:"short-urls-filtering-bar__tags-icon",icon:w==="all"?Q8:EK})}),g.jsx(Oi,{target:"tagsModeBtn",placement:"left",children:w==="all"?"With all the tags.":"With any of the tags."})]})]}),g.jsxs(qi,{className:"flex-lg-row-reverse",children:[g.jsx("div",{className:"col-lg-8 col-xl-6 mt-3",children:g.jsxs("div",{className:"d-md-flex",children:[g.jsx("div",{className:"flex-grow-1",children:g.jsx(tA,{defaultText:"All short URLs",dateRangeOrInterval:E??Zz(h,p),onDatesChange:A})}),g.jsx(KCe,{className:"ms-0 ms-md-2 mt-3 mt-md-0",selected:{excludeBots:v??(P==null?void 0:P.excludeBots),excludeMaxVisitsReached:b,excludePastValidUntil:x,domain:_},onChange:O,domains:o.loading?void 0:o.domains})]})}),g.jsx("div",{className:"col-6 col-lg-4 col-xl-6 mt-3",children:g.jsx(a,{amount:t})}),g.jsx("div",{className:"col-6 d-lg-none mt-3",children:g.jsx(nm,{prefixed:!1,items:GCe,order:n,onChange:r})})]})]})},YCe=dn(tV,["ExportShortUrlsBtn","TagsSelector"]);function Hh({currentOrder:e,field:t,className:n="ms-1"}){return!e.dir||e.field!==t?null:g.jsx(Ge,{icon:e.dir==="ASC"?bK:kK,className:n})}const Fc=2,SE="...",nV=(e,t)=>{const n=CT(Math.max(Fc,e-Fc),Math.min(t-1,e+Fc)+1);return e-Fc>Fc&&n.unshift(SE),e+Fce===SE,rV=e=>qp(e)?e:Cn(e),iV=(e,t)=>qp(e)?`${e}_${t}`:`${e}`,ZCe=({paginator:e,currentQueryString:t=""})=>{const{currentPage:n=0,pagesCount:r=0}=e??{},i=_l(),o=s=>`${i}/list-short-urls/${s}${t}`;if(r<=1)return g.jsx("div",{className:"pb-3"});const a=()=>nV(n,r).map((s,c)=>g.jsx(mu,{disabled:qp(s),active:n===s,children:g.jsx(vu,{tag:Jt,to:o(s),children:rV(s)})},iV(s,c)));return g.jsxs(bT,{className:"sticky-card-paginator py-3",listClassName:"flex-wrap justify-content-center mb-0",children:[g.jsx(mu,{disabled:n===1,children:g.jsx(vu,{previous:!0,tag:Jt,to:o(n-1)})}),a(),g.jsx(mu,{disabled:n>=r,children:g.jsx(vu,{next:!0,tag:Jt,to:o(n+1)})})]})},XCe={field:"dateCreated",dir:"DESC"},oV=jo(({listShortUrls:e,shortUrlsList:t})=>{var n,r,i;const{ShortUrlsTable:o,ShortUrlsFilteringBar:a}=fn(oV),{page:s}=Gf(),c=Kr(),[{tags:u,search:h,startDate:p,endDate:v,orderBy:b,tagsMode:x,excludeBots:_,excludePastValidUntil:w,excludeMaxVisitsReached:O,domain:P},E]=Ab(),T=ET(),[A,j]=F.useState(b??((n=T.shortUrlsList)==null?void 0:n.defaultOrdering)??XCe),{pagination:N}=(t==null?void 0:t.shortUrls)??{},$=F.useMemo(()=>{var ae;return _??((ae=T.visits)==null?void 0:ae.excludeBots)},[_,(r=T.visits)==null?void 0:r.excludeBots]),W=_i("excludeBotsOnShortUrls"),B=F.useCallback((ae,se)=>{E({orderBy:{field:ae,dir:se}}),j({field:ae,dir:se})},[E]),V=ae=>()=>B(ae,D0(ae,A.field,A.dir)),H=ae=>g.jsx(Hh,{currentOrder:A,field:ae}),J=F.useCallback(ae=>E({tags:[...new Set([...u,ae])]}),[u,E]),Q=F.useCallback(({field:ae,dir:se})=>W&&$&&ae==="visits"?{field:"nonBotVisits",dir:se}:{field:ae,dir:se},[$,W]),re=Vj();return F.useEffect(()=>{e({page:s,searchTerm:h,tags:u,startDate:p,endDate:v,orderBy:Q(A),tagsMode:x,excludePastValidUntil:w,excludeMaxVisitsReached:O,domain:P})},[e,Q,s,h,u,p,v,A,x,w,O,P]),g.jsxs(zj,{value:re,children:[g.jsx(a,{shortUrlsAmount:(i=t.shortUrls)==null?void 0:i.pagination.totalItems,order:A,handleOrderBy:B,className:"mb-3"}),g.jsx(Wj,{type:"short-urls",className:"mb-3"}),g.jsxs(wi,{body:!0,className:Be({"pb-0":!t.loading}),children:[g.jsx(o,{shortUrlsList:t,orderByColumn:V,renderOrderIcon:H,onTagClick:J}),!t.loading&&g.jsx(ZCe,{paginator:N,currentQueryString:c.search})]})]})},()=>[kr.visits]),QCe=dn(oV,["ShortUrlsTable","ShortUrlsFilteringBar"]),JCe=({shortUrlsList:e,onTagClick:t,ShortUrlsRow:n})=>{const{error:r,loading:i,shortUrls:o}=e;return r?g.jsx("tr",{children:g.jsx("td",{colSpan:6,className:"text-center table-danger text-dark",children:"Something went wrong while loading short URLs :("})}):i?g.jsx("tr",{children:g.jsx("td",{colSpan:6,className:"text-center",children:"Loading..."})}):!i&&(!o||o.data.length===0)?g.jsx("tr",{children:g.jsx("td",{colSpan:6,className:"text-center",children:"No results found"})}):o==null?void 0:o.data.map(a=>g.jsx(n,{shortUrl:a,onTagClick:t},a.shortUrl))},aV=({orderByColumn:e,renderOrderIcon:t,shortUrlsList:n,onTagClick:r,className:i})=>{const{ShortUrlsRow:o}=fn(aV),a=Be({"short-urls-table__header-cell--with-action":!!e}),s=Be("short-urls-table__header-cell",a),c=Be("table table-hover responsive-table short-urls-table",i);return g.jsxs("table",{className:c,children:[g.jsx("thead",{className:"responsive-table__header short-urls-table__header",children:g.jsxs("tr",{children:[g.jsxs("th",{className:s,onClick:e==null?void 0:e("dateCreated"),children:["Created at ",t==null?void 0:t("dateCreated")]}),g.jsxs("th",{className:s,onClick:e==null?void 0:e("shortCode"),children:["Short URL ",t==null?void 0:t("shortCode")]}),g.jsxs("th",{className:"short-urls-table__header-cell",children:[g.jsxs(ku,{className:Be("p-0",a),onClick:e==null?void 0:e("title"),children:["Title ",t==null?void 0:t("title")]}),"  /  ",g.jsxs(ku,{className:Be("p-0",a),onClick:e==null?void 0:e("longUrl"),children:[g.jsx("span",{className:"indivisible",children:"Long URL"})," ",t==null?void 0:t("longUrl")]})]}),g.jsx("th",{className:"short-urls-table__header-cell",children:"Tags"}),g.jsx("th",{className:s,onClick:e==null?void 0:e("visits"),children:g.jsxs("span",{className:"indivisible",children:["Visits ",t==null?void 0:t("visits")]})}),g.jsx("th",{className:"short-urls-table__header-cell",colSpan:2,"aria-hidden":!0})]})}),g.jsx("tbody",{children:g.jsx(JCe,{ShortUrlsRow:o,shortUrlsList:n,onTagClick:r})})]})},eEe=dn(aV,["ShortUrlsRow"]),tEe=(e,t)=>{e.factory("ShortUrlsList",QCe),e.decorator("ShortUrlsList",t(["mercureInfo","shortUrlsList"],["listShortUrls","createNewVisits","loadMercureInfo"])),e.factory("ShortUrlsTable",eEe),e.factory("ShortUrlsRow",PCe),e.factory("CreateShortUrlResult",aCe),e.factory("ShortUrlsRowMenu",CCe),e.decorator("ShortUrlsRowMenu",t(null,["shortUrlDeleted","deleteShortUrl"])),e.factory("ShortUrlForm",$Ce),e.decorator("ShortUrlForm",t(["tagsList","domainsList"])),e.factory("CreateShortUrl",iCe),e.decorator("CreateShortUrl",t(["shortUrlCreation"],["createShortUrl","resetCreateShortUrl"])),e.factory("EditShortUrl",oCe),e.decorator("EditShortUrl",t(["shortUrlsDetails","shortUrlEdition"],["getShortUrlsDetails","editShortUrl"])),e.serviceFactory("DeleteShortUrlModal",()=>sCe),e.decorator("DeleteShortUrlModal",t(["shortUrlDeletion"],["resetDeleteShortUrl"])),e.factory("QrCodeModal",gCe),e.factory("ExportShortUrlsBtn",lCe),e.factory("ShortUrlsFilteringBar",YCe),e.decorator("ShortUrlsFilteringBar",t(["tagsList","domainsList"])),e.serviceFactory("shortUrlsListReducerCreator",FSe,"listShortUrls","editShortUrl","createShortUrl"),e.serviceFactory("shortUrlsListReducer",n=>n.reducer,"shortUrlsListReducerCreator"),e.serviceFactory("shortUrlCreationReducerCreator",TCe,"createShortUrl"),e.serviceFactory("shortUrlCreationReducer",n=>n.reducer,"shortUrlCreationReducerCreator"),e.serviceFactory("shortUrlEditionReducerCreator",kCe,"editShortUrl"),e.serviceFactory("shortUrlEditionReducer",n=>n.reducer,"shortUrlEditionReducerCreator"),e.serviceFactory("shortUrlDeletionReducerCreator",ISe,"deleteShortUrl"),e.serviceFactory("shortUrlDeletionReducer",n=>n.reducer,"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlsDetailsReducerCreator",RCe,"apiClientFactory"),e.serviceFactory("shortUrlsDetailsReducer",n=>n.reducer,"shortUrlsDetailsReducerCreator"),e.serviceFactory("listShortUrls",$Se,"apiClientFactory"),e.serviceFactory("createShortUrl",ECe,"apiClientFactory"),e.serviceFactory("resetCreateShortUrl",n=>n.resetCreateShortUrl,"shortUrlCreationReducerCreator"),e.serviceFactory("deleteShortUrl",LSe,"apiClientFactory"),e.serviceFactory("resetDeleteShortUrl",n=>n.resetDeleteShortUrl,"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlDeleted",()=>uz),e.serviceFactory("getShortUrlsDetails",n=>n.getShortUrlsDetails,"shortUrlsDetailsReducerCreator"),e.serviceFactory("editShortUrl",ACe,"apiClientFactory")},nEe=({tag:e,toggle:t,isOpen:n,deleteTag:r,tagDelete:i,tagDeleted:o})=>{const{deleting:a,error:s,deleted:c,errorData:u}=i;return g.jsxs(Zr,{toggle:t,isOpen:n,centered:!0,onClosed:()=>c&&o(e),children:[g.jsx(aa,{toggle:t,className:"text-danger",children:"Delete tag"}),g.jsxs(Po,{children:["Are you sure you want to delete tag ",g.jsx("b",{children:e}),"?",s&&g.jsx(Tr,{type:"error",small:!0,className:"mt-2",children:g.jsx(ia,{errorData:u,fallbackMessage:"Something went wrong while deleting the tag :("})})]}),g.jsxs(Qa,{children:[g.jsx(_t,{color:"link",onClick:t,children:"Cancel"}),g.jsx(_t,{color:"danger",disabled:a,onClick:async()=>{await r(e),t()},children:a?"Deleting tag...":"Delete tag"})]})]})},sV=({tag:e,editTag:t,toggle:n,tagEdited:r,isOpen:i,tagEdit:o})=>{const{ColorGenerator:a}=fn(sV),[s,c]=F.useState(e),[u,h]=F.useState(a.getColorForKey(e)),{editing:p,error:v,edited:b,errorData:x}=o,_=az(async()=>{await t({oldName:e,newName:s,color:u}),n()}),w=F.useCallback(()=>b&&r({oldName:e,newName:s,color:u}),[u,b,s,e,r]);return g.jsx(Zr,{isOpen:i,toggle:n,centered:!0,onClosed:w,children:g.jsxs("form",{name:"editTag",onSubmit:_,children:[g.jsx(aa,{toggle:n,children:"Edit tag"}),g.jsxs(Po,{children:[g.jsxs(Jp,{children:[g.jsx(Fz,{color:u,onChange:h,className:"input-group-text",name:"tag-color"}),g.jsx(Qn,{value:s,placeholder:"Tag",required:!0,onChange:({target:O})=>c(O.value)})]}),v&&g.jsx(Tr,{type:"error",small:!0,className:"mt-2",children:g.jsx(ia,{errorData:x,fallbackMessage:"Something went wrong while editing the tag :("})})]}),g.jsxs(Qa,{children:[g.jsx(_t,{type:"button",color:"link",onClick:n,children:"Cancel"}),g.jsx(_t,{color:"primary",disabled:p,children:p?"Saving...":"Save"})]})]})})},rEe=dn(sV,["ColorGenerator"]),iEe=/\s+/g,lV=e=>e.trim().toLowerCase().replace(iEe,"-"),uV=({color:e})=>g.jsx("div",{style:{backgroundColor:e},className:"color-bullet"}),cV=({tag:e,colorGenerator:t})=>g.jsx(uV,{color:t.getColorForKey(e)});let q5=1;const fV="Tag not found",dV="Add tag",oEe=e=>e!==fV,aEe=e=>e===dV,H5=e=>(q5+=1,{label:e,value:`${e}${q5}`}),sEe=e=>({tag:t,onClick:n})=>g.jsx(Rb,{colorGenerator:e,text:t.label,className:"react-tags__tag",onClose:n}),lEe=(e,t)=>({option:n,classNames:r,...i})=>{var o;const a=oEe(n.label),s=aEe(n.label);return g.jsx("div",{className:Be(r.option,{[r.optionIsActive]:a&&n.active,"react-tags__listbox-option--not-selectable":!a}),...i,children:a?g.jsxs(g.Fragment,{children:[!s&&g.jsx(cV,{tag:`${n.label}`,colorGenerator:e}),s?g.jsxs("i",{children:['Add "',lV(((o=t.current)==null?void 0:o.input.value)??""),'"']}):n.label]}):g.jsx("i",{children:n.label})})},hV=({selectedTags:e,onChange:t,placeholder:n,tags:r,immutable:i=!1})=>{const{ColorGenerator:o}=fn(hV),a=Rr("shortUrlCreation"),s=(a==null?void 0:a.tagFilteringMode)??"startsWith",c=Xi();return g.jsx(Nle,{ref:c,selected:e.map(H5),suggestions:r.filter(u=>!e.includes(u)).map(H5),renderTag:sEe(o),renderOption:lEe(o,c),activateFirstOption:!0,allowNew:!i,newOptionText:dV,noOptionsText:fV,placeholderText:n??"Add tags to the URL",delimiterKeys:["Enter",","],suggestionsTransform:(u,h)=>{const p=u.toLowerCase().trim();return p.length<1?[]:[...h.filter(({label:v})=>s==="includes"?v.includes(p):v.startsWith(p))].slice(0,5)},onDelete:u=>{const h=[...e];h.splice(u,1),t(h)},onAdd:({label:u})=>t([...new Set([...e,...u.split(",").map(lV)])])})},uEe=dn(hV,["ColorGenerator"]),PE="shlink/tagDelete",cEe={deleting:!1,deleted:!1,error:!1},pV=jr(`${PE}/tagDeleted`),fEe=e=>{const t=qn(`${PE}/deleteTag`,async r=>{await e().deleteTags([r])}),{reducer:n}=An({name:PE,initialState:cEe,reducers:{},extraReducers:r=>{r.addCase(t.pending,()=>({deleting:!0,deleted:!1,error:!1})),r.addCase(t.rejected,(i,{error:o})=>({deleting:!1,deleted:!1,error:!0,errorData:Si(o)})),r.addCase(t.fulfilled,()=>({deleting:!1,deleted:!0,error:!1}))}});return{reducer:n,deleteTag:t}},nA="shlink/tagEdit",dEe={editing:!1,edited:!1,error:!1},mV=jr(`${nA}/tagEdited`),hEe=(e,t)=>qn(`${nA}/editTag`,async({oldName:n,newName:r,color:i})=>(await e().editTag(n,r),t.setColorForKey(r,i),{oldName:n,newName:r,color:i})),pEe=e=>An({name:nA,initialState:dEe,reducers:{},extraReducers:t=>{t.addCase(e.pending,()=>({editing:!0,edited:!1,error:!1})),t.addCase(e.rejected,(n,{error:r})=>({editing:!1,edited:!1,error:!0,errorData:Si(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>{const{oldName:i,newName:o}=r;return{oldName:i,newName:o,editing:!1,edited:!0,error:!1}})}}),rA="shlink/tagsList",VO={tags:[],filteredTags:[],stats:{},loading:!1,error:!1},G5=(e,t)=>n=>n===e?t:n,K5=(e,t)=>e.filter(n=>n!==t),mEe=(e,t)=>e.reduce((n,[r,i])=>{if(!n[r])return n;const{bots:o,nonBots:a}=i,s=n[r];return{...n,[r]:{...s,visitsSummary:s.visitsSummary&&{total:s.visitsSummary.total+o+a,bots:s.visitsSummary.bots+o,nonBots:s.visitsSummary.nonBots+a},visitsCount:(s.visitsCount??0)+o+a}}},{...t}),vEe=e=>Object.entries(e.reduce((t,{shortUrl:n,visit:r})=>(n==null||n.tags.forEach(i=>{t[i]||(t[i]={bots:0,nonBots:0}),r.potentialBot?t[i].bots+=1:t[i].nonBots+=1}),t),{})),gEe=e=>qn(`${rA}/listTags`,async()=>{const{data:t}=await e().tagsStats(),n=t.reduce((r,{tag:i,...o})=>(r[i]=o,r),{});return{tags:Object.keys(n),stats:n}}),vV=jr(`${rA}/filterTags`),yEe=(e,t)=>An({name:rA,initialState:VO,reducers:{},extraReducers:n=>{n.addCase(vV,(r,{payload:i})=>({...r,filteredTags:r.tags.filter(o=>o.toLowerCase().match(i.toLowerCase()))})),n.addCase(e.pending,r=>({...r,loading:!0,error:!1})),n.addCase(e.rejected,(r,{error:i})=>({...VO,error:!0,errorData:Si(i)})),n.addCase(e.fulfilled,(r,{payload:i})=>({...VO,stats:i.stats,tags:i.tags,filteredTags:i.tags})),n.addCase(pV,({tags:r,filteredTags:i,...o},{payload:a})=>({...o,tags:K5(r,a),filteredTags:K5(i,a)})),n.addCase(mV,({tags:r,filteredTags:i,stats:o,...a},{payload:s})=>({...a,stats:{...o,[s.newName]:o[s.oldName]},tags:r.map(G5(s.oldName,s.newName)).sort(),filteredTags:i.map(G5(s.oldName,s.newName)).sort()})),n.addCase(cd,(r,{payload:i})=>({...r,stats:mEe(vEe(i.createdVisits),r.stats)})),n.addCase(t.fulfilled,({tags:r,...i},{payload:o})=>({...i,tags:r.concat(o.tags.filter(a=>!r.includes(a)))}))}}),bEe={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},gV=jo(({filterTags:e,tagsList:t})=>{var n,r;const{TagsTable:i}=fn(gV),o=ET(),[a,s]=F.useState(((n=o.tags)==null?void 0:n.defaultOrdering)??{}),c=F.useMemo(()=>{const h=t.filteredTags.map(p=>{var v,b,x;const _=t.stats[p],w=((v=o.visits)!=null&&v.excludeBots?(b=_==null?void 0:_.visitsSummary)==null?void 0:b.nonBots:(x=_==null?void 0:_.visitsSummary)==null?void 0:x.total)??(_==null?void 0:_.visitsCount)??0;return{tag:p,visits:w,shortUrls:(_==null?void 0:_.shortUrlsCount)??0}});return kF(h,a)},[a,(r=o.visits)==null?void 0:r.excludeBots,t.filteredTags,t.stats]),u=Vj();return t.loading?g.jsx(za,{loading:!0}):t.error?g.jsx(Tr,{type:"error",children:g.jsx(ia,{errorData:t.errorData,fallbackMessage:"Error loading tags :("})}):g.jsxs(zj,{value:u,children:[g.jsx(tm,{className:"mb-3",onChange:e}),g.jsx(qi,{className:"mb-3",children:g.jsx("div",{className:"col-lg-6 offset-lg-6",children:g.jsx(nm,{items:bEe,order:a,onChange:(h,p)=>s({field:h,dir:p})})})}),g.jsx(Wj,{type:"tags",className:"mb-3"}),g.jsx(i,{sortedTags:c,currentOrder:a,orderByColumn:h=>()=>{const p=D0(h,a.field,a.dir);s({field:p?h:void 0,dir:p})}})]})},()=>[kr.visits]),_Ee=dn(gV,["TagsTable"]),iA=({pagesCount:e,currentPage:t,setCurrentPage:n,centered:r=!0})=>{if(e<2)return null;const i=o=>()=>!qp(o)&&n(o);return g.jsxs(bT,{listClassName:Be("flex-wrap mb-0 simple-paginator",{"justify-content-center":r}),children:[g.jsx(mu,{disabled:t<=1,children:g.jsx(vu,{previous:!0,tag:"span",onClick:i(t-1)})}),nV(t,e).map((o,a)=>g.jsx(mu,{disabled:qp(o),active:t===o,children:g.jsx(vu,{role:"link",tag:"span",onClick:i(o),children:rV(o)})},iV(o,a))),g.jsx(mu,{disabled:t>=e,children:g.jsx(vu,{next:!0,tag:"span",onClick:i(t+1)})})]})},xEe=20,yV=({sortedTags:e,orderByColumn:t,currentOrder:n})=>{const{TagsTableRow:r}=fn(yV),i=F.useRef(!0),{page:o=1}=Zf(),[a,s]=ySe("page",Number(o)),c=F.useCallback(v=>{s(v),scrollTo(0,0)},[s]),u=Jc(e,xEe),h=u.length>1,p=u[a-1]??[];return F.useEffect(()=>{i.current||c(1),i.current=!1},[c,e]),g.jsxs(qt,{bodyClassName:h?"pb-1":"",children:[g.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[g.jsxs("thead",{className:"responsive-table__header",children:[g.jsxs("tr",{children:[g.jsxs("th",{className:"tags-table__header-cell",onClick:t("tag"),children:["Tag ",g.jsx(Hh,{currentOrder:n,field:"tag"})]}),g.jsxs("th",{className:"tags-table__header-cell text-lg-end",onClick:t("shortUrls"),children:["Short URLs ",g.jsx(Hh,{currentOrder:n,field:"shortUrls"})]}),g.jsxs("th",{className:"tags-table__header-cell text-lg-end",onClick:t("visits"),children:["Visits ",g.jsx(Hh,{currentOrder:n,field:"visits"})]}),g.jsx("th",{className:"tags-table__header-cell",children:g.jsx("span",{className:"sr-only",children:"Options"})})]}),g.jsx("tr",{children:g.jsx("th",{"aria-hidden":!0,colSpan:4,className:"p-0 border-top-0"})})]}),g.jsxs("tbody",{children:[p.length===0&&g.jsx("tr",{children:g.jsx("td",{colSpan:4,className:"text-center",children:"No tags found"})}),p.map(v=>g.jsx(r,{tag:v},v.tag))]})]}),h&&g.jsx("div",{className:"sticky-card-paginator",children:g.jsx(iA,{pagesCount:u.length,currentPage:a,setCurrentPage:c})})]},a)},wEe=dn(yV,["TagsTableRow"]),bV=({tag:e})=>{const{DeleteTagConfirmModal:t,EditTagModal:n,ColorGenerator:r}=fn(bV),[i,o]=cn(),[a,s]=cn(),c=_l(),u=Eb();return g.jsxs("tr",{className:"responsive-table__row",children:[g.jsxs("th",{className:"responsive-table__cell","data-th":"Tag",children:[g.jsx(cV,{tag:e.tag,colorGenerator:r})," ",e.tag]}),g.jsx("td",{className:"responsive-table__cell text-lg-end","data-th":"Short URLs",children:g.jsx(Jt,{to:`${c}/list-short-urls/1?tags=${encodeURIComponent(e.tag)}`,children:Cn(e.shortUrls)})}),g.jsx("td",{className:"responsive-table__cell text-lg-end","data-th":"Visits",children:g.jsx(Jt,{to:`${c}/tag/${e.tag}/visits`,children:Cn(e.visits)})}),g.jsx("td",{className:"responsive-table__cell text-lg-end",children:g.jsxs(I0,{children:[g.jsxs(Ye,{onClick:s,children:[g.jsx(Ge,{icon:Z8,fixedWidth:!0,className:"me-1"})," Edit"]}),g.jsxs(Ye,{disabled:!u||!u.canAddItemWithName(e.tag),onClick:()=>u==null?void 0:u.addItemToCompare({name:e.tag,query:e.tag,style:r.stylesForKey(e.tag)}),children:[g.jsx(Ge,{icon:E0,fixedWidth:!0})," Compare visits"]}),g.jsx(Ye,{divider:!0,tag:"hr"}),g.jsxs(Ye,{className:"dropdown-item--danger",onClick:o,children:[g.jsx(Ge,{icon:OK,fixedWidth:!0,className:"me-1"})," Delete tag"]})]})}),g.jsx(n,{tag:e.tag,toggle:s,isOpen:a}),g.jsx(t,{tag:e.tag,toggle:o,isOpen:i})]})},OEe=dn(bV,["DeleteTagConfirmModal","EditTagModal","ColorGenerator"]),SEe=(e,t)=>{e.factory("TagsSelector",uEe),e.serviceFactory("DeleteTagConfirmModal",()=>nEe),e.decorator("DeleteTagConfirmModal",t(["tagDelete"],["deleteTag","tagDeleted"])),e.factory("EditTagModal",rEe),e.decorator("EditTagModal",t(["tagEdit"],["editTag","tagEdited"])),e.factory("TagsTableRow",OEe),e.factory("TagsTable",wEe),e.factory("TagsList",_Ee),e.decorator("TagsList",t(["tagsList","mercureInfo"],["filterTags","createNewVisits","loadMercureInfo"])),e.serviceFactory("tagEditReducerCreator",pEe,"editTag"),e.serviceFactory("tagEditReducer",n=>n.reducer,"tagEditReducerCreator"),e.serviceFactory("tagDeleteReducerCreator",fEe,"apiClientFactory"),e.serviceFactory("tagDeleteReducer",n=>n.reducer,"tagDeleteReducerCreator"),e.serviceFactory("tagsListReducerCreator",yEe,"listTags","createShortUrl"),e.serviceFactory("tagsListReducer",n=>n.reducer,"tagsListReducerCreator"),e.serviceFactory("listTags",gEe,"apiClientFactory"),e.serviceFactory("filterTags",()=>vV),e.serviceFactory("deleteTag",n=>n.deleteTag,"tagDeleteReducerCreator"),e.serviceFactory("tagDeleted",()=>pV),e.serviceFactory("editTag",hEe,"apiClientFactory","ColorGenerator"),e.serviceFactory("tagEdited",()=>mV)},PEe=new g7,CEe=e=>PEe.parse(e),Y5=e=>e.toLowerCase().trim();class EEe{constructor(t){nl(this,"colors"),nl(this,"lights");var n;this.storage=t,this.colors=((n=this.storage)==null?void 0:n.getTagColors())??{},this.lights={}}getColorForKey(t){const n=Y5(t);return this.colors[n]||this.setColorForKey(n,dCe())}setColorForKey(t,n){var r;const i=Y5(t);return this.colors[i]=n,(r=this.storage)==null||r.storeTagColors(this.colors),n}stylesForKey(t){const n=this.getColorForKey(t);return{backgroundColor:n,color:this.isLightColor(n)?"#222":"#fff"}}isLightColor(t){const n=t.substring(1);return this.lights[n]===void 0&&(this.lights[n]=$z(n)),this.lights[n]}}const _V=({document:e},t,n)=>{const r=e.createElement("a");r.setAttribute("href",t),r.setAttribute("download",n),r.style.visibility="hidden",e.body.appendChild(r),r.click(),e.body.removeChild(r)},TEe=(e,t,n)=>{const r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);_V(e,i,n)};class jEe{constructor(t,n){this.fetch=t,this.window=n}async saveImage(t,n){const r=await this.fetch(t).then(o=>o.blob()),i=URL.createObjectURL(r);_V(this.window,i,n)}}class AEe{constructor(t,n){nl(this,"exportVisits",(r,i)=>{i.length&&this.exportCsv(r,i)}),nl(this,"exportShortUrls",r=>{r.length&&this.exportCsv("short_urls.csv",r)}),nl(this,"exportCsv",(r,i)=>{const o=this.jsonToCsv(i);TEe(this.window,o,r)}),this.window=t,this.jsonToCsv=n}}function kEe(e){e.constant("window",window),e.constant("fetch",window.fetch.bind(window)),e.service("ImageDownloader",jEe,"fetch","window"),e.service("ColorGenerator",EEe,"TagColorsStorage"),e.constant("jsonToCsv",CEe),e.service("ReportExporter",AEe,"window","jsonToCsv"),e.serviceFactory("useTimeoutToggle",()=>jF)}const gm=({visits:e,shortUrl:t,children:n,title:r})=>g.jsx("header",{children:g.jsxs(wi,{body:!0,children:[g.jsxs("h2",{className:"d-flex justify-content-between align-items-center mb-0",children:[g.jsx(kb,{}),g.jsx("span",{className:"text-center d-none d-sm-block",children:g.jsx("small",{children:r})}),g.jsxs("span",{className:"badge badge-main ms-3",children:["Visits:"," ",g.jsx(zz,{visitsCount:e.length,shortUrl:t})]})]}),g.jsx("h3",{className:"text-center d-block d-sm-none mb-0 mt-3",children:g.jsx("small",{children:r})}),n&&g.jsx("div",{className:"mt-md-2",children:n})]})}),Mb=({children:e,className:t})=>g.jsx("div",{className:Be("d-flex justify-content-between align-items-center",t),children:e}),xV=({title:e,footer:t,children:n})=>g.jsxs(wi,{role:"document",children:[g.jsx(Qp,{className:"chart-card__header",children:e}),g.jsx(Xp,{children:n}),t&&g.jsx(hF,{className:"chart-card__footer--sticky",children:t})]}),wV={color:"white",background:"rgb(0 0 0 / .9)",border:"none",borderRadius:"5px"},REe={marginBottom:"5px",fontWeight:"bold"},OV={contentStyle:wV,labelStyle:REe,itemStyle:{padding:0}},Z5=["#97BBCD","#F7464A","#46BFBD","#FDB45C","#949FB1","#57A773","#414066","#08B2E3","#B6C454","#DCDCDC","#463730"],SV=e=>Z5[e%Z5.length],g0=()=>rm()?"#46e587":"#1DAA58",NEe=()=>rm()?"rgba(70, 229, 135, 0.4)":"rgba(29, 170, 88, 0.4)",MEe=({chartData:e,showNumbers:t})=>g.jsx("ul",{className:"doughnut-chart-legend",children:e.map(({name:n,color:r,value:i})=>g.jsxs("li",{className:"doughnut-chart-legend__item d-flex",children:[g.jsx("div",{className:"doughnut-chart-legend__item-color",style:{backgroundColor:r}}),g.jsxs("small",{className:"doughnut-chart-legend__item-text flex-fill",children:[n,t&&g.jsxs("b",{children:[" (",Cn(i),")"]})]})]},n))}),X5=e=>F.useMemo(()=>Object.entries(e).map(([t,n],r)=>({name:t,value:n,color:SV(r)})),[e]),LEe=({stats:e,prevStats:t,showNumbersInLegend:n,dimensions:r})=>{const i=X5(e),o=X5(t),a=o.length>0,s=rm()?gie:vie;return g.jsxs("div",{className:"row align-items-center",children:[g.jsx("div",{className:"col-sm-12 col-md-7",children:g.jsx("div",{style:r??{width:"100%",height:300},children:g.jsx(r?F.Fragment:ej,{children:g.jsxs(kOe,{...r,children:[g.jsx(zi,{formatter:Cn,contentStyle:wV,itemStyle:{color:"white"}}),g.jsx(ra,{data:i,dataKey:"value",nameKey:"name",startAngle:360,endAngle:0,outerRadius:"100%",innerRadius:a?"65%":"50%",animationBegin:0,children:i.map((c,u)=>g.jsx(Js,{fill:c.color,stroke:s},`${c.name}-${u}`))}),a&&g.jsx(ra,{data:o,dataKey:"value",nameKey:"name",startAngle:360,endAngle:0,outerRadius:"55%",innerRadius:"20%",animationBegin:0,stroke:s,fill:g0()})]})})})}),g.jsx("div",{className:"col-sm-12 col-md-5",children:g.jsx(MEe,{chartData:i,showNumbers:n})})]})},Q5=({title:e,...t})=>{const[n,r]=cn(!1);return g.jsx(xV,{title:g.jsxs(Mb,{children:[e,g.jsx("div",{children:g.jsx(Va,{checked:n,onChange:r,children:"Show numbers"})})]}),children:g.jsx(LEe,{...t,showNumbersInLegend:n})})},IEe=F.forwardRef(({visitsGroups:e},t)=>{const n=F.useMemo(()=>Object.entries(e),[e]);return n.length===0?null:g.jsx("ul",{className:"list-unstyled mb-0 mt-2 d-flex flex-wrap justify-content-center gap-3",ref:t,children:n.map(([r,i],o)=>g.jsxs("li",{className:"d-inline",children:[g.jsx(uV,{color:PV(i)}),g.jsxs("strong",{children:[r," (",Cn(i.length),")"]})]},`${r}${o}`))})}),DEe={monthly:"Month",weekly:"Week",daily:"Day",hourly:"Hour"},$Ee={hourly:e=>({hours:e}),daily:e=>({days:e}),weekly:e=>({weeks:e}),monthly:e=>({months:e})},FEe={hourly:lae,daily:V0,weekly:sae,monthly:oy},oA={hourly:e=>ay(e,"yyyy-MM-dd HH:00"),daily:e=>Zs(e),weekly(e){const t=Zs(lp(e)),n=Zs(vae(e));return`${t} - ${n}`},monthly:e=>ay(e,"yyyy-MM")},BEe=e=>{var t;const n=Object.values(e).filter(a=>a.length>0);if(n.length===0)return"monthly";const r=new Date,i=n.map(a=>al(a[a.length-1].date)),o=i7(i);return((t=[[()=>V0(r,o)<=2,"hourly"],[()=>oy(r,o)<=1,"daily"],[()=>oy(r,o)<=6,"weekly"]].find(([a])=>a()))==null?void 0:t[1])??"monthly"},UEe=(e,t)=>Object.keys(t).reduce((n,r)=>(n[r]=KF(t[r],i=>oA[e](al(i.date))),n),{}),zEe=(e,t)=>t.reduce((n,r)=>{const i=oA[e](al(r.date));return n[i]=n[i]??[],n[i].push(r),n},{}),VEe=(e,t)=>{const n=Object.values(t).filter(h=>h.length>0).map(h=>[...h].reverse());if(n.length===0)return[];const r=FEe[e],i=oA[e],o=$Ee[e],a=n.flat(),s=al(a[0].date),c=al(a[a.length-1].date),u=r(c,s)||1;return[{formattedDate:i(s),date:s},...qj(u,h=>{const p=tae(s,o(h));return{formattedDate:i(p),date:p}})]},PV=e=>{if(e.color)return e.color;const t={main:ip,highlighted:IP,previous:g0()};return e.type?t[e.type]:ip},J5=(e,t)=>F.useMemo(()=>Object.values(e).find(n=>n.type===t)??[],[e,t]),WEe=(e,t,n)=>{const r=J5(e,"main"),i=J5(e,"highlighted"),o=F.useMemo(()=>n?zEe(t,r):{},[n,t,r]),a=F.useCallback((s,{payload:c})=>{const u=o[c.formattedDate]??[];n==null||n(u===i?[]:u)},[o,i,n]);return n&&{cursor:"pointer",onClick:a}},e8=e=>{var t,n;return(n=(t=e.activePayload)==null?void 0:t[0])==null?void 0:n.payload},CV=({visitsGroups:e,setSelectedVisits:t,dimensions:n,matchMedia:r,onDateRangeChange:i})=>{const[o,a]=F.useState(BEe(e)),s=Gj(767,r??window.matchMedia),c=F.useMemo(()=>{const H=UEe(o,e),J=Object.keys(H);return VEe(o,e).map(({formattedDate:Q,date:re})=>({date:re,formattedDate:Q,...J.reduce((ae,se)=>(ae[se]=H[se][Q]??0,ae),{})}))},[o,e]),u=WEe(e,o,t),[h,p,,v]=cn(),b=Xi(),x=F.useId(),_=Xi(),[w,O]=F.useState(s?300:400);F.useLayoutEffect(()=>{if(!h)return O(s?300:400),()=>{};const H=new ResizeObserver(()=>{const{height:J}=b.current.getBoundingClientRect(),{height:Q}=_.current.getBoundingClientRect();O(J-Q-48)});return H.observe(b.current),H.observe(_.current),()=>H.disconnect()},[b,h,s,_]),_Se("Escape",v,h);const P=n?F.Fragment:ej,E=F.useMemo(()=>n?{}:{width:"100%",height:w},[n,w]),[T,A]=F.useState(),[j,N]=F.useState(),$=F.useCallback(()=>{A(void 0),N(void 0)},[]),W=F.useCallback((H,J)=>{const Q=e8(H);J.button===0&&Q&&A(Q)},[]),B=F.useCallback(H=>{const J=e8(H);T&&J&&N(J)},[T]),V=F.useCallback(()=>{if(!T||!j)return;const H=[T.date,j.date],J=iae(H),Q=i7(H);$(),i({startDate:J,endDate:Q})},[i,$,j,T]);return g.jsxs(wi,{className:Be({"fixed-top fixed-bottom":h}),"data-testid":"line-chart-card",children:[g.jsxs(Qp,{role:"heading","aria-level":4,className:"d-flex justify-content-between align-items-center",children:["Visits over time",g.jsxs("div",{className:"d-flex align-content-center gap-1",children:[g.jsx(_t,{"aria-label":h?"Collapse":"Expand","aria-expanded":h,"aria-controls":x,size:"sm",color:"link",onClick:p,children:g.jsx(Ge,{icon:h?rK:QK})}),g.jsxs(em,{className:"d-flex align-items-center",children:[g.jsx(Xa,{caret:!0,color:"link",className:"btn-sm p-0",children:"Group by"}),g.jsx(pl,{end:!0,children:Object.entries(DEe).map(([H,J])=>g.jsx(Ye,{active:o===H,onClick:()=>a(H),children:J},H))})]})]})]}),g.jsxs(Xp,{innerRef:b,id:x,children:[g.jsx(P,{...E,children:g.jsxs(AOe,{className:"user-select-none",data:c,...n,onMouseDown:W,onMouseMove:B,onMouseUp:V,children:[g.jsx(ld,{dataKey:"formattedDate"}),g.jsx(ud,{tickFormatter:Cn,yAxisId:"1"}),g.jsx(zi,{formatter:Cn,...OV}),g.jsx(Ij,{strokeOpacity:rm()?.1:.9}),Object.entries(e).map(([H,J])=>J.length>0&&g.jsx(sd,{yAxisId:"1",dataKey:H,type:"monotone",stroke:PV(J),strokeWidth:2,activeDot:J.type==="previous"?void 0:u,strokeDasharray:J.type==="previous"?"8 3":void 0},H)),T&&j&&g.jsx(hm,{yAxisId:"1",x1:T.formattedDate,x2:j.formattedDate})]})}),g.jsx(IEe,{visitsGroups:e,ref:_})]})]})},qEe=({toggleClassName:e,ranges:t,value:n,setValue:r})=>g.jsxs(em,{children:[g.jsx(Xa,{caret:!0,color:"link",className:e,children:"Paginate"}),g.jsxs(pl,{end:!0,children:[t.map(i=>g.jsxs(Ye,{active:i===n,onClick:()=>r(i),children:[g.jsx("b",{children:i})," items per page"]},i)),g.jsx(Ye,{divider:!0,tag:"hr"}),g.jsx(Ye,{disabled:n===1/0,onClick:()=>r(1/0),children:g.jsx("i",{children:"Clear pagination"})})]})]}),t8=e=>e.startsWith("hidden_"),HEe=({stats:e,prevStats:t,highlightedStats:n,highlightedLabel:r,max:i,onClick:o,dimensions:a})=>{const s=F.useMemo(()=>Object.entries(e).map(([p,v])=>{const b=(n==null?void 0:n[p])??0,x=(t==null?void 0:t[p])??0,_=t8(p);return{name:p,amount:Math.max(v,x),nonHighlightedAmount:_?null:v-b,highlightedAmount:_?null:b,prevAmount:_?null:x}}),[e,t,n]),c=F.useMemo(()=>{const p=s.reduce((v,{name:b})=>v>b.length?v:b.length,0);return Math.min(150,p*7)},[s]),u=a?F.Fragment:ej,h=F.useMemo(()=>a?{}:{width:"100%",height:Math.max(300,s.length*(t?44:22))},[a,s.length,t]);return g.jsx(u,{...h,children:g.jsxs(ROe,{layout:"vertical",data:s,barCategoryGap:3,...a,children:[g.jsx(ld,{type:"number",dataKey:"amount",tickFormatter:Cn,domain:i?[0,i]:void 0}),g.jsx(ud,{type:"category",dataKey:"name",width:c,interval:0,style:{fontSize:".8rem"},tickFormatter:p=>t8(p)?"":p}),g.jsx(Ij,{strokeOpacity:rm()?.05:.9}),g.jsx(zi,{filterNull:!0,...OV,formatter:(p,v)=>[Cn(p),v==="highlightedAmount"?r:v==="prevAmount"?"Previous period":n?"Non-selected":"Visits"]}),g.jsx($a,{dataKey:"nonHighlightedAmount",stackId:"main",cursor:"pointer",fill:ip,onClick:({name:p})=>o==null?void 0:o(p),children:s.map(p=>g.jsx(Js,{fill:pie,stroke:ip,strokeWidth:2},p.name))}),n&&g.jsx($a,{dataKey:"highlightedAmount",stackId:"main",cursor:"pointer",fill:IP,onClick:({name:p})=>o==null?void 0:o(p),children:s.map(p=>g.jsx(Js,{fill:mie,stroke:IP,strokeWidth:2},p.name))}),t&&g.jsx($a,{dataKey:"prevAmount",fill:g0(),children:s.map(p=>g.jsx(Js,{fill:NEe(),stroke:g0(),strokeWidth:2},p.name))})]})})},GEe=e=>typeof e=="string"?e.toLowerCase():e,KEe=([e])=>e,YEe=([,e])=>e,ag=({stats:e,prevStats:t,highlightedStats:n,title:r,sortingItems:i,extraHeaderContent:o,withPagination:a=!0,...s})=>{const[c,u]=F.useState({}),[h,p]=F.useState(1),[v,b]=F.useState(50),x=F.useCallback(($,W)=>{const B=Object.entries($),V=c.field?Ooe(B,([H,J])=>GEe(c.field===Object.keys(W)[0]?H:J)):B;return!c.dir||c.dir==="ASC"?V:[...V].reverse()},[c.dir,c.field]),_=F.useCallback($=>{const W=$[h-1];if(h<$.length)return W;const B=$[0].length;return[...W,...qj(B-W.length,V=>[`hidden_${V}`,0])]},[h]),w=F.useCallback($=>g.jsx(iA,{currentPage:h,pagesCount:$,setCurrentPage:p}),[h]),O=F.useCallback(($,W,B,V)=>{const H=x($,W),J=H.map(KEe),Q=B&&Object.entries({...iN(J,J.map(()=>0)),...B}),re=V&&Object.entries({...iN(J,J.map(()=>0)),...V});if(H.length<=v)return{currentPageStats:Object.fromEntries(H),currentPageHighlightedStats:Q&&Object.fromEntries(Q),currentPagePrevStats:re&&Object.fromEntries(re)};const ae=Jc(H,v),se=Q&&Jc(Q,v),oe=re&&Jc(re,v);return{currentPageStats:Object.fromEntries(_(ae)),currentPageHighlightedStats:se&&Object.fromEntries(_(se)),currentPagePrevStats:oe&&Object.fromEntries(_(oe)),pagination:w(ae.length),max:zSe(Math.max(...H.map(YEe)))}},[_,x,v,w]),{currentPageStats:P,currentPagePrevStats:E,currentPageHighlightedStats:T,pagination:A,max:j}=F.useMemo(()=>O(e,i,n&&Object.keys(n).length>0?n:void 0,t&&Object.keys(t).length>0?t:void 0),[O,n,t,i,e]),N=F.useMemo(()=>Object.keys(P),[P]);return g.jsx(xV,{title:g.jsxs(Mb,{children:[r,g.jsxs("div",{className:"d-flex gap-3",children:[o==null?void 0:o(A?N:void 0),a&&Object.keys(e).length>50&&g.jsx(qEe,{toggleClassName:"btn-sm p-0",ranges:[50,100,200,500],value:v,setValue:$=>{b($),p(1)}}),g.jsx(nm,{isButton:!1,right:!0,items:i,order:c,onChange:($,W)=>{u({field:$,dir:W}),p(1)}})]})]}),footer:A,children:g.jsx(HEe,{stats:P,prevStats:E,highlightedStats:T,max:j,...s})})},aA=e=>e.type!==void 0,ZEe=e=>e.type!==void 0,XEe=e=>{const t=YF(e,n=>aA(n.visit)?"orphanVisits":"nonOrphanVisits");return{orphanVisits:[],nonOrphanVisits:[],...t}},EV=(e,{shortCode:t,domain:n},{endDate:r,startDate:i}={})=>e.filter(({shortUrl:o,visit:a})=>o&&Wh(o,t,n)&&vm(a.date,i,r)),TV=(e,t,{endDate:n,startDate:r}={})=>e.filter(({shortUrl:i,visit:o})=>i&&NSe(i,t)&&vm(o.date,r,n)),jV=(e,t,{endDate:n,startDate:r}={})=>e.filter(({shortUrl:i,visit:o})=>(i==null?void 0:i.tags.includes(t))&&vm(o.date,r,n)),sg=(e,t)=>KF(e,n=>n[t]),QEe=e=>{const t=((e==null?void 0:e.startDate)&&cl(e==null?void 0:e.startDate))??void 0,n=((e==null?void 0:e.endDate)&&cl(e==null?void 0:e.endDate))??void 0;return{startDate:t,endDate:n}},CE=({filter:e,dateRange:t})=>{const{startDate:n,endDate:r}=QEe(t),i=(e==null?void 0:e.excludeBots)||void 0;return{startDate:n,endDate:r,excludeBots:i}},JEe=e=>eV(e.dateRange),eTe=({dateRange:e,...t})=>({...t,dateRange:VCe(e)}),n8=(e,t)=>{if(!(!t||!(e in t)))return t[e]&&cl(t[e])||""},AV=()=>{const e=oa(),t=Zf(),{startDate:n,endDate:r,orphanVisitsType:i,excludeBots:o,loadPrevInterval:a,...s}=t,c=F.useMemo(()=>({dateRange:n!=null||r!=null?Zz(n,r):void 0,visitsFilter:{orphanVisitsType:i,excludeBots:o!==void 0?o==="true":void 0},loadPrevInterval:a!==void 0?a==="true":void 0}),[r,o,a,i,n]),u=F.useCallback(h=>{const{dateRange:p,visitsFilter:v={},loadPrevInterval:b}=z0(c,h),{excludeBots:x,orphanVisitsType:_}=v,w={...s,startDate:n8("startDate",p),endDate:n8("endDate",p),excludeBots:x===void 0?void 0:_E(x),orphanVisitsType:_,loadPrevInterval:b===void 0?void 0:_E(b)},O=L0(w),P=O?`?${O}`:"";e(P,{replace:!0,relative:"route"})},[c,e,s]);return[c,u]},tTe=()=>g.jsx(XOe,{attribution:'© OpenStreetMap contributors',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),nTe=e=>{if(e.length===0)return{};if(e.length>1)return{bounds:e.map(({latLong:n})=>n)};const[{latLong:t}]=e;return{zoom:10,center:t}},kV=({toggle:e,isOpen:t,title:n,locations:r=[]})=>g.jsx(Zr,{toggle:e,isOpen:t,className:"map-modal__modal",contentClassName:"map-modal__modal-content",children:g.jsxs(Po,{className:"map-modal__modal-body",children:[g.jsxs(Mb,{className:"map-modal__modal-title fs-4",children:[n,g.jsx("button",{type:"button",className:"btn-close","aria-label":"Close",onClick:e})]}),g.jsxs(KOe,{...nTe(r),children:[g.jsx(tTe,{}),r.map(({cityName:i,latLong:o,count:a},s)=>g.jsx(YOe,{position:o,children:g.jsxs(ZOe,{children:[g.jsx("b",{children:a})," visit",a>1?"s":""," from ",g.jsx("b",{children:i})]})},s))]})]})}),rTe=({modalTitle:e,activeCities:t,locations:n=[]})=>{const[r,,i,o]=cn(),[a,s]=cn(),[c,u]=F.useState([]),h=F.useCallback(p=>{u(p?n.filter(p):n),i()},[n,i]);return g.jsxs(g.Fragment,{children:[!t&&g.jsx(_t,{color:"link",className:"p-0",onClick:()=>h(),"aria-label":"Show in map",title:"Show in map",children:g.jsx(Ge,{icon:JO})}),t&&g.jsxs(hl,{isOpen:a,toggle:s,children:[g.jsx(Xa,{color:"link",className:"p-0",title:"Show in map",children:g.jsx(Ge,{icon:JO})}),g.jsxs(pl,{end:!0,children:[g.jsx(Ye,{onClick:()=>h(),children:"Show all locations"}),g.jsx(Ye,{onClick:()=>h(({cityName:p})=>t.includes(p)),children:"Show locations in current page"})]})]}),g.jsx(kV,{toggle:o,isOpen:r,title:e,locations:c})]})},RV=({onChange:e,selected:t={},className:n,isOrphanVisits:r=!1,withPrevInterval:i=!1,disabled:o})=>{const{orphanVisitsType:a,excludeBots:s=!1,loadPrevInterval:c=!1}=t,u=v=>({active:a===v,onClick:()=>e({...t,orphanVisitsType:v===a?void 0:v})}),h=F.useCallback(()=>e({...t,excludeBots:!s}),[s,e,t]),p=F.useCallback(()=>e({...t,loadPrevInterval:!c}),[c,e,t]);return g.jsxs(Ja,{disabled:o,text:"More",dropdownClassName:n,end:!0,minWidth:250,children:[i&&g.jsxs(g.Fragment,{children:[g.jsx(Ye,{active:c,onClick:p,children:"Compare with previous period"}),g.jsx(Ye,{divider:!0,tag:"hr"})]}),g.jsx(Ye,{header:!0,"aria-hidden":!0,children:"Bots:"}),g.jsx(Ye,{active:s,onClick:h,children:"Exclude potential bots"}),r&&g.jsxs(g.Fragment,{children:[g.jsx(Ye,{divider:!0,tag:"hr"}),g.jsx(Ye,{header:!0,"aria-hidden":!0,children:"Orphan visits type:"}),g.jsx(Ye,{...u("base_url"),children:"Base URL"}),g.jsx(Ye,{...u("invalid_short_url"),children:"Invalid short URL"}),g.jsx(Ye,{...u("regular_404"),children:"Regular 404"})]}),g.jsx(Ye,{divider:!0,tag:"hr"}),g.jsx(Ye,{disabled:t.excludeBots===void 0&&t.loadPrevInterval===void 0&&t.orphanVisitsType===void 0,onClick:()=>e({excludeBots:void 0,loadPrevInterval:void 0,orphanVisitsType:void 0}),children:g.jsx("i",{children:"Reset to defaults"})})]})},NV=({info:e})=>{const{loading:t,errorData:n,progress:r}=e;return g.jsxs(g.Fragment,{children:[t&&r===null&&g.jsx(za,{loading:!0}),t&&r!==null&&g.jsxs(za,{loading:!0,children:["This is going to take a while... :S",g.jsx(yF,{value:r,striped:r>=100,className:"mt-3"})]}),n&&g.jsx(Tr,{type:"error",children:g.jsx(ia,{errorData:n,fallbackMessage:"An error occurred while loading visits :("})})]})},xg=({children:e,showFallback:t})=>g.jsxs(g.Fragment,{children:[t&&g.jsx(za,{className:"mt-3",children:"There are no visits matching current filter"}),!t&&g.jsx(g.Fragment,{children:e})]}),iTe=({visitsDeletion:e,deleteVisits:t})=>{const{deleting:n}=e,[r,,i]=cn();return g.jsx(qt,{title:g.jsx("span",{className:"text-danger fw-bold",children:"Danger zone"}),children:g.jsxs(Mb,{children:[g.jsxs("dl",{className:"m-0 me-3",children:[g.jsx("dt",{children:"Delete visits."}),g.jsxs("dd",{className:"m-0",children:["This will delete ",g.jsx("b",{children:"all"})," visits, not only the ones matching current filter."]})]}),!r&&g.jsx(_t,{color:"danger",className:"indivisible",onClick:i,children:"Delete visits"}),r&&g.jsxs(_t,{color:"danger",disabled:n,className:"indivisible",onClick:t,innerRef:o=>{o==null||o.focus()},children:[!n&&g.jsx(g.Fragment,{children:"Click again to confirm"}),n&&g.jsx(g.Fragment,{children:"Deleting..."})]})]})})},lg="Others",oTe=["Android Browser","Chrome","Chromium","Firefox","Internet Explorer","Microsoft Edge","Opera","Safari","Samsung Internet for Android","Vivaldi","WeChat"],aTe=e=>{if(!au(e))return{browser:lg,os:lg};const{browser:{name:t},os:{name:n}}=rSe.parse(e);return{os:n??lg,browser:t&&oTe.includes(t)?t:lg}},sTe=e=>{var t;return au(e)?((t=e.split("/")[e.includes("://")?2:0])==null?void 0:t.split(":")[0])??"":"Direct"},MV=(e,t)=>e[t]!==void 0,r8=e=>typeof e=="number"?e:e?parseFloat(e):0,lTe=(e,{os:t})=>{e[t]=(e[t]||0)+1},uTe=(e,{browser:t})=>{e[t]=(e[t]||0)+1},cTe=(e,{referer:t})=>{e[t]=(e[t]||0)+1},LV=e=>(t,n)=>{const r=MV(n,e)?n[e]:"Unknown";t[r]=(t[r]||0)+1},fTe=LV("country"),dTe=LV("city"),hTe=(e,t)=>{if(!MV(t,"city")||t.city==="Unknown")return;const{city:n,latitude:r,longitude:i}=t,o=e[n]||{cityName:n,count:0,latLong:[r8(r),r8(i)]};o.count+=1,e[n]=o},pTe=(e,t)=>{if(!ZEe(t))return;const{visitedUrl:n}=t;e[n]=(e[n]||0)+1},EE=e=>e.reduce((t,n)=>(lTe(t.os,n),uTe(t.browsers,n),cTe(t.referrers,n),fTe(t.countries,n),dTe(t.cities,n),hTe(t.citiesForMap,n),pTe(t.visitedUrls,n),t),{os:{},browsers:{},referrers:{},countries:{},cities:{},citiesForMap:{},visitedUrls:{}}),y0=e=>e.map(t=>{const{userAgent:n,date:r,referer:i,visitLocation:o,potentialBot:a}=t;return{date:r,potentialBot:a,userAgent:n,...aTe(n),referer:sTe(i),country:(o==null?void 0:o.countryName)||"Unknown",city:(o==null?void 0:o.cityName)||"Unknown",latitude:o==null?void 0:o.latitude,longitude:o==null?void 0:o.longitude,visitedUrl:t.visitedUrl,type:aA(t)?t.type:void 0}}),mTe=Object.freeze(Object.defineProperty({__proto__:null,normalizeVisits:y0,processStatsFromVisits:EE},Symbol.toStringTag,{value:"Module"})),Eh=20,vTe=({browser:e,os:t,referer:n,country:r,city:i,userAgent:o,...a},s,c)=>{const u=c?o:`${r} ${i}`;return`${e} ${t} ${n} ${u} ${a.visitedUrl}`.toLowerCase().includes(s.toLowerCase())},gTe=(e,t,n)=>t.filter(r=>vTe(r,e,n)),yTe=(e,t)=>kF(t,e),bTe=({visits:e,searchTerm:t,order:n,searchInRawUserAgent:r})=>{const i=t?gTe(t,e,r):[...e],o=yTe(n,i),a=o.length;return{visitsGroups:Jc(o,Eh),total:a}},Wo="visits-table__header-cell visits-table__sticky",_Te=({visits:e,selectedVisits:t=[],setSelectedVisits:n,matchMedia:r=window.matchMedia})=>{var i;const o=Gj(767,r),[a,s]=F.useState(),c=F.useCallback($=>{s($),w(1),n([])},[n]),[u,h]=F.useState({}),[p,v]=cn(),b=F.useCallback(()=>{v(),h({})},[v]),x=F.useMemo(()=>bTe({visits:e,searchTerm:a,order:u,searchInRawUserAgent:p}),[e,a,u,p]),[_,w]=F.useState(1),O=_*Eh,P=O-Eh,E=F.useMemo(()=>{var $,W;return!!((W=($=x.visitsGroups[_-1])==null?void 0:$[0])!=null&&W.visitedUrl)},[_,x.visitsGroups]),T=6+Number(E)+(p?1:2),A=x.total>0,j=$=>h({field:$,dir:D0($,u.field,u.dir)}),N=$=>g.jsx(Hh,{currentOrder:u,field:$,className:"visits-table__header-icon"});return g.jsx(qt,{className:"mt-3",bodyClassName:"p-0 pb-1",title:g.jsxs("div",{className:"d-flex justify-content-between align-items-center",children:["Visits list",g.jsx(Va,{checked:p,onChange:b,children:"Show user agent"})]}),children:g.jsx("div",{className:"table-responsive-md",children:g.jsxs("table",{className:Be("table table-sm position-relative m-0 visits-table",{"table-hover":A}),children:[g.jsxs("thead",{className:"visits-table__header",children:[g.jsxs("tr",{children:[g.jsxs("th",{className:`${Wo} text-center`,onClick:()=>n(t.length0})})]}),g.jsxs("th",{className:`${Wo} text-center`,onClick:()=>j("potentialBot"),children:[g.jsx("span",{className:"sr-only",children:"Is bot"}),g.jsx(Ge,{icon:Ok}),N("potentialBot")]}),g.jsxs("th",{className:Wo,onClick:()=>j("date"),children:["Date",N("date")]}),g.jsxs("th",{className:Wo,onClick:()=>j("country"),children:["Country",N("country")]}),g.jsxs("th",{className:Wo,onClick:()=>j("city"),children:["City",N("city")]}),p?g.jsxs("th",{className:Wo,onClick:()=>j("userAgent"),children:["User agent",N("userAgent")]}):g.jsxs(g.Fragment,{children:[g.jsxs("th",{className:Wo,onClick:()=>j("browser"),children:["Browser",N("browser")]}),g.jsxs("th",{className:Wo,onClick:()=>j("os"),children:["OS",N("os")]})]}),g.jsxs("th",{className:Wo,onClick:()=>j("referer"),children:["Referrer",N("referer")]}),E&&g.jsxs("th",{className:Wo,onClick:()=>j("visitedUrl"),children:["Visited URL",N("visitedUrl")]})]}),g.jsx("tr",{children:g.jsx("td",{colSpan:T,className:"p-0",children:g.jsx(tm,{noBorder:!0,large:!1,onChange:c})})})]}),g.jsxs("tbody",{children:[!A&&g.jsx("tr",{children:g.jsx("td",{colSpan:T,className:"text-center",children:"There are no visits matching current filter"})}),(i=x.visitsGroups[_-1])==null?void 0:i.map(($,W)=>{const B=t.includes($);return g.jsxs("tr",{style:{cursor:"pointer"},className:Be({"table-active":B}),onClick:()=>n(B?t.filter(V=>V!==$):[...t,$]),children:[g.jsx("td",{className:"text-center",children:B&&g.jsx(Ge,{icon:Yh,className:"text-primary"})}),g.jsx("td",{className:"text-center",children:$.potentialBot&&g.jsxs(g.Fragment,{children:[g.jsx(Ge,{icon:Ok,id:`botIcon${W}`}),g.jsx(Oi,{placement:"right",target:`botIcon${W}`,children:"Potentially a visit from a bot or crawler"})]})}),g.jsx("td",{children:g.jsx(p0,{date:$.date})}),g.jsx("td",{children:$.country}),g.jsx("td",{children:$.city}),p?g.jsx("td",{children:$.userAgent}):g.jsxs(g.Fragment,{children:[g.jsx("td",{children:$.browser}),g.jsx("td",{children:$.os})]}),g.jsx("td",{children:$.referer}),$.visitedUrl&&g.jsx("td",{children:$.visitedUrl})]},W)})]}),x.total>Eh&&g.jsx("tfoot",{children:g.jsx("tr",{children:g.jsx("td",{colSpan:T,className:"visits-table__footer-cell visits-table__sticky",children:g.jsxs("div",{className:"d-flex flex-column flex-md-row justify-content-between align-items-center gap-3 p-2",children:[g.jsx(iA,{pagesCount:Math.ceil(x.total/Eh),currentPage:_,setCurrentPage:w,centered:o}),g.jsxs("div",{children:["Visits ",g.jsx("b",{children:Cn(P+1)})," to"," ",g.jsx("b",{children:Cn(Math.min(O,x.total))})," of"," ",g.jsx("b",{children:Cn(x.total)})]})]})})})})]})})})},Vs={byTime:{title:"By time",subPath:"by-time",icon:oK},byContext:{title:"By context",subPath:"by-context",icon:zE},byLocation:{title:"By location",subPath:"by-location",icon:JO},list:{title:"List",subPath:"list",icon:BE},options:{title:"Options",subPath:"options",icon:t$,shouldRender:({deletion:e})=>!!e}};Object.freeze(Vs);const WO=({display:e})=>e&&g.jsx("div",{className:"mt-3 mx-auto w-75",children:g.jsx(qt,{children:g.jsxs("div",{className:"d-flex gap-2",children:[g.jsx(Ge,{icon:nY,className:"mt-1"}),g.jsx("i",{children:"Could not calculate previous period because selected one does not have a strictly defined start date."})]})})});let ug;const ym=e=>{const{children:t,visitsInfo:n,getVisits:r,cancelGetVisits:i,deletion:o,exportCsv:a,isOrphanVisits:s=!1}=e,{visits:c,prevVisits:u,loading:h,errorData:p,fallbackInterval:v}=n,[{dateRange:b,visitsFilter:x,loadPrevInterval:_},w]=AV(),O=Rr("visits"),[P,E]=F.useState(),T=F.useCallback(({startDate:D,endDate:Y},ue)=>{w({dateRange:{startDate:D??void 0,endDate:Y??void 0}}),E(ue)},[w]),[A,j]=F.useState(v??(O==null?void 0:O.defaultInterval)??"last30Days"),[N,$]=F.useState([]),[W,B]=F.useState(),V=F.useRef(!0),{search:H}=Kr(),J=F.useCallback(D=>D?`${D}${H}`:H,[H]),Q=F.useMemo(()=>y0(c),[c]),re=F.useMemo(()=>u&&y0(u),[u]),{os:ae,browsers:se,referrers:oe,countries:K,cities:G,citiesForMap:z,visitedUrls:ne}=F.useMemo(()=>EE(Q),[Q]),X=F.useMemo(()=>EE(re??[]),[re]),le=F.useMemo(()=>Object.fromEntries([["Visits",Object.assign(Q,{type:"main"})],re&&["Previous period",Object.assign(re,{type:"previous"})],N.length>0&&[W??"Selected",Object.assign(N,{type:"highlighted"})]].filter(Boolean)),[W,N,re,Q]),ce=F.useMemo(()=>({...x,excludeBots:x.excludeBots??(O==null?void 0:O.excludeBots),loadPrevInterval:_??(O==null?void 0:O.loadPrevInterval)}),[_,x,O==null?void 0:O.excludeBots,O==null?void 0:O.loadPrevInterval]),de=F.useMemo(()=>Object.values(z),[z]),be=F.useCallback(D=>{ug=void 0,$(D)},[]),M=F.useCallback((D,Y)=>{const ue=`${D}_${Y}`;ug===ue?($([]),B(void 0),ug=void 0):($(Q.filter(ie=>ie[D]===Y)),B(Y),ug=ue)},[Q]);return F.useEffect(()=>i,[i]),F.useEffect(()=>{const D=b??Jz(A),{loadPrevInterval:Y,...ue}=ce,ie={doIntervalFallback:V.current,loadPrevInterval:Y};r({dateRange:D,filter:ue},ie),be([]),V.current=!1},[A,b,r,ce,be]),F.useEffect(()=>{v&&A===((O==null?void 0:O.defaultInterval)??"last30Days")&&j(v)},[A,v,O==null?void 0:O.defaultInterval]),g.jsxs(g.Fragment,{children:[t,g.jsx("section",{className:"mt-3",children:g.jsxs("div",{className:"row flex-md-row-reverse",children:[g.jsx("div",{className:"col-lg-7 col-xl-6",children:g.jsxs("div",{className:"d-md-flex",children:[g.jsx("div",{className:"flex-grow-1",children:g.jsx(tA,{disabled:h,dateRangeOrInterval:P??b??A,defaultText:"All visits",onDatesChange:T})}),g.jsx(RV,{disabled:h,className:"ms-0 ms-md-2 mt-3 mt-md-0",isOrphanVisits:s,withPrevInterval:!0,selected:ce,onChange:({loadPrevInterval:D,...Y})=>w({visitsFilter:Y,loadPrevInterval:D})})]})}),c.length>0&&g.jsx("div",{className:"col-lg-5 col-xl-6 mt-3 mt-lg-0",children:g.jsxs("div",{className:"d-flex",children:[g.jsx(Lz,{className:"btn-md-block",amount:Q.length,onClick:()=>a(Q)}),g.jsxs(_t,{outline:!0,disabled:N.length===0,className:"btn-md-block ms-2",onClick:()=>be([]),children:["Clear selection ",N.length>0&&g.jsxs(g.Fragment,{children:["(",Cn(N.length),")"]})]})]})})]})}),g.jsxs("section",{className:"mt-3",children:[g.jsx(NV,{info:n}),!h&&!p&&g.jsxs(g.Fragment,{children:[g.jsx(AF,{fill:!0,children:Object.values(Vs).map(({title:D,icon:Y,subPath:ue,shouldRender:ie},he)=>!ie||ie(e)?g.jsxs(Mh,{to:J(ue),replace:!0,children:[g.jsx(Ge,{icon:Y}),g.jsx("span",{className:"ms-2 d-none d-lg-inline",children:D})]},he):void 0).filter(Boolean)}),g.jsx(qi,{children:g.jsxs(P0,{children:[g.jsx(Rt,{path:Vs.byTime.subPath,element:g.jsxs(xg,{showFallback:c.length===0,children:[g.jsx("div",{className:"col-12 mt-3","data-testid":"line-chart-container",children:g.jsx(CV,{visitsGroups:le,setSelectedVisits:be,onDateRangeChange:T})}),g.jsx(WO,{display:!!ce.loadPrevInterval&&!u})]})}),g.jsx(Rt,{path:Vs.byContext.subPath,element:g.jsxs(xg,{showFallback:c.length===0,children:[g.jsx("div",{className:Be("mt-3 col-lg-6",{"col-xl-4":!s}),children:g.jsx(Q5,{title:"Operating systems",stats:ae,prevStats:X.os})}),g.jsx("div",{className:Be("mt-3 col-lg-6",{"col-xl-4":!s}),children:g.jsx(Q5,{title:"Browsers",stats:se,prevStats:X.browsers})}),g.jsx("div",{className:Be("mt-3",{"col-xl-4":!s,"col-lg-6":s}),children:g.jsx(ag,{title:"Referrers",withPagination:!1,stats:oe,prevStats:X.referrers,highlightedStats:sg(N,"referer"),highlightedLabel:W,sortingItems:{name:"Referrer name",amount:"Visits amount"},onClick:D=>M("referer",D)})}),s&&g.jsx("div",{className:"mt-3 col-lg-6",children:g.jsx(ag,{title:"Visited URLs",stats:ne,prevStats:X.visitedUrls,highlightedStats:sg(N,"visitedUrl"),highlightedLabel:W,sortingItems:{visitedUrl:"Visited URL",amount:"Visits amount"},onClick:D=>M("visitedUrl",D)})}),g.jsx("div",{className:"col-12",children:g.jsx(WO,{display:!!ce.loadPrevInterval&&!u})})]})}),g.jsx(Rt,{path:Vs.byLocation.subPath,element:g.jsxs(xg,{showFallback:c.length===0,children:[g.jsx("div",{className:"col-lg-6 mt-3",children:g.jsx(ag,{title:"Countries",stats:K,prevStats:X.countries,highlightedStats:sg(N,"country"),highlightedLabel:W,sortingItems:{name:"Country name",amount:"Visits amount"},onClick:D=>M("country",D)})}),g.jsx("div",{className:"col-lg-6 mt-3",children:g.jsx(ag,{title:"Cities",stats:G,prevStats:X.cities,highlightedStats:sg(N,"city"),highlightedLabel:W,extraHeaderContent:D=>de.length>0&&g.jsx(rTe,{modalTitle:"Cities",locations:de,activeCities:D}),sortingItems:{name:"City name",amount:"Visits amount"},onClick:D=>M("city",D)})}),g.jsx("div",{className:"col-12",children:g.jsx(WO,{display:!!ce.loadPrevInterval&&!u})})]})}),g.jsx(Rt,{path:Vs.list.subPath,element:g.jsx("div",{className:"col-12",children:g.jsx(_Te,{visits:Q,selectedVisits:N,setSelectedVisits:be})})}),o&&g.jsx(Rt,{path:Vs.options.subPath,element:g.jsx("div",{className:"col-12 mt-3",children:g.jsx(iTe,{...o})})}),g.jsx(Rt,{path:"*",element:g.jsx(NE,{replace:!0,to:J(Vs.byTime.subPath)})})]})})]})]})]})},IV=jo(({getDomainVisits:e,domainVisits:t,cancelGetDomainVisits:n})=>{const{ReportExporter:r}=fn(IV),{domain:i=""}=Gf(),[o,a=o]=i.split("_"),s=F.useCallback((u,h)=>e({domain:a,options:h,params:u}),[a,e]),c=F.useCallback(u=>r.exportVisits(`domain_${o}_visits.csv`,u),[o,r]);return g.jsx(ym,{getVisits:s,cancelGetVisits:n,visitsInfo:t,exportCsv:c,children:g.jsx(gm,{visits:t.visits,title:`"${o}" visits`})})},()=>[kr.visits]),xTe=dn(IV,["ReportExporter"]),DV=jo(({getNonOrphanVisits:e,nonOrphanVisits:t,cancelGetNonOrphanVisits:n})=>{const{ReportExporter:r}=fn(DV),i=F.useCallback(a=>r.exportVisits("non_orphan_visits.csv",a),[r]),o=F.useCallback((a,s)=>e({options:s,params:a}),[e]);return g.jsx(ym,{getVisits:o,cancelGetVisits:n,visitsInfo:t,exportCsv:i,children:g.jsx(gm,{title:"Non-orphan visits",visits:t.visits})})},()=>[kr.visits]),wTe=dn(DV,["ReportExporter"]),$V=jo(({getOrphanVisits:e,orphanVisits:t,cancelGetOrphanVisits:n,deleteOrphanVisits:r,orphanVisitsDeletion:i})=>{const o=_i("orphanVisitsDeletion"),{ReportExporter:a}=fn($V),s=F.useCallback(h=>a.exportVisits("orphan_visits.csv",h),[a]),c=F.useCallback((h,p)=>{var v;return e({options:p,params:h,orphanVisitsType:(v=h.filter)==null?void 0:v.orphanVisitsType})},[e]),u=F.useMemo(()=>o?{deleteVisits:r,visitsDeletion:i}:void 0,[r,i,o]);return g.jsx(ym,{getVisits:c,cancelGetVisits:n,visitsInfo:t,exportCsv:s,deletion:u,isOrphanVisits:!0,children:g.jsx(gm,{title:"Orphan visits",visits:t.visits})})},()=>[kr.orphanVisits]),OTe=dn($V,["ReportExporter"]),i8=5e3,STe=2,PTe=4,CTe=({currentPage:e,pagesCount:t})=>e>=t,ETe=(e,t)=>t*100/e,FV=({visitsLoader:e,shouldCancel:t,progressChanged:n,batchSize:r})=>{const i=async(a,s)=>Promise.all(s.map(async c=>e({...a,page:c,itemsPerPage:i8}).then(({data:u})=>u))).then(c=>c.flat()),o=async(a,s,c=0)=>{if(t())return[];const u=await i(a,s[c]);return n(ETe(s.length,c+1)),c{const{pagination:s,data:c}=await e({...a,page:1,itemsPerPage:i8});if(CTe(s))return c;const u=CT(STe,s.pagesCount+1),h=Jc(u,r);return s.pagesCount-1>r&&n(0),c.concat(await o(a,h))}},bm=(e,t)=>async n=>e?t({page:1,itemsPerPage:1,excludeBots:n}).then(({data:r})=>r[0]):Promise.resolve(void 0),_m=({typePrefix:e,createLoaders:t,shouldCancel:n})=>{const r=jr(`${e}/progressChanged`),i=jr(`${e}/fallbackToInterval`),o=qn(e,async(a,{getState:s,dispatch:c})=>{var u;const{params:h,options:p}=a,{visitsLoader:v,lastVisitLoader:b}=t(a),x=WCe(h.dateRange),_=CE(h),w=p.loadPrevInterval&&JEe(h)?CE(eTe(h)):void 0,O=PTe/(w?2:1),P=w?{main:0,prev:0}:{main:0},E=($,W)=>{P[$]=W;const B=Object.values(P),V=B.reduce((H,J)=>H+J,0);c(r(V/B.length))},T=FV({visitsLoader:v,shouldCancel:()=>n(s),progressChanged:$=>E("main",$),batchSize:O}),[A,j,N]=await Promise.all([T(_),b((u=h.filter)==null?void 0:u.excludeBots),w?T(w).then($=>$.map(W=>{if(x===void 0)return W;const{date:B,...V}=W,H=AT(mi(B),x);return{...V,date:cl(H)}})):Promise.resolve(void 0)]);return!A.length&&j&&c(i(zCe(j.date))),{...a,visits:A,prevVisits:N}});return Object.assign(o,{progressChanged:r,fallbackToInterval:i})},xm=({name:e,asyncThunkCreator:t,initialState:n,filterCreatedVisits:r,extraReducers:i})=>{const{pending:o,rejected:a,fulfilled:s,progressChanged:c,fallbackToInterval:u}=t,{reducer:h,actions:p}=An({name:e,initialState:n,reducers:{cancelGetVisits:b=>({...b,cancelLoad:!0})},extraReducers:b=>{b.addCase(o,()=>({...n,loading:!0})),b.addCase(a,(x,{error:_})=>({...n,errorData:Si(_)??null})),b.addCase(s,(x,{payload:_})=>({...x,..._,loading:!1,progress:null,errorData:null})),b.addCase(c,(x,{payload:_})=>({...x,progress:_})),b.addCase(u,(x,{payload:_})=>({...x,fallbackInterval:_})),b.addCase(cd,(x,{payload:_})=>{const{visits:w}=x,O=r(x,_.createdVisits).map(({visit:P})=>P);return O.length?{...x,visits:[...O,...w]}:x}),i==null||i(b)}}),{cancelGetVisits:v}=p;return{reducer:h,cancelGetVisits:v}},BV="shlink/domainVisits",TTe={visits:[],domain:"",loading:!1,cancelLoad:!1,errorData:null,progress:null},jTe=e=>_m({typePrefix:`${BV}/getDomainVisits`,createLoaders:({domain:t,options:n})=>{const r=e(),{doIntervalFallback:i=!1}=n,o=s=>r.getDomainVisits(t,s),a=bm(i,s=>r.getDomainVisits(t,s));return{visitsLoader:o,lastVisitLoader:a}},shouldCancel:t=>t().domainVisits.cancelLoad}),ATe=e=>xm({name:BV,initialState:TTe,asyncThunkCreator:e,filterCreatedVisits:({domain:t,params:n},r)=>TV(r,t,n==null?void 0:n.dateRange)}),UV="shlink/orphanVisits",kTe={visits:[],loading:!1,cancelLoad:!1,errorData:null,progress:null},RTe=e=>_m({typePrefix:`${UV}/getNonOrphanVisits`,createLoaders:({options:t})=>{const n=e(),{doIntervalFallback:r=!1}=t,i=async a=>n.getNonOrphanVisits(a),o=bm(r,a=>n.getNonOrphanVisits(a));return{visitsLoader:i,lastVisitLoader:o}},shouldCancel:t=>t().orphanVisits.cancelLoad}),NTe=e=>xm({name:UV,initialState:kTe,asyncThunkCreator:e,filterCreatedVisits:({params:t},n)=>{const{startDate:r,endDate:i}=(t==null?void 0:t.dateRange)??{};return n.filter(({visit:o})=>vm(o.date,r,i))}}),zV="shlink/orphanVisits",MTe={visits:[],loading:!1,cancelLoad:!1,errorData:null,progress:null},LTe=(e,t)=>!t||t===e.type,ITe=({data:e,...t},n)=>{const r=e.filter(i=>aA(i)&<e(i,n));return{...t,data:r}},DTe=e=>_m({typePrefix:`${zV}/getOrphanVisits`,createLoaders:({orphanVisitsType:t,options:n})=>{const r=e(),{doIntervalFallback:i=!1}=n,o=async s=>r.getOrphanVisits({...s,type:t}).then(c=>ITe(c,t)),a=bm(i,s=>r.getOrphanVisits(s));return{visitsLoader:o,lastVisitLoader:a}},shouldCancel:t=>t().orphanVisits.cancelLoad}),$Te=(e,t)=>xm({name:zV,initialState:MTe,asyncThunkCreator:e,extraReducers:n=>{n.addCase(t.fulfilled,r=>({...r,visits:[]}))},filterCreatedVisits:({params:n},r)=>{const{startDate:i,endDate:o}=(n==null?void 0:n.dateRange)??{};return r.filter(({visit:a,shortUrl:s})=>!s&&vm(a.date,i,o))}}),VV="shlink/orphanVisitsDeletion",o8={deletedVisits:0,deleting:!1,error:!1},FTe=e=>qn(`${VV}/deleteOrphanVisits`,()=>e().deleteOrphanVisits()),BTe=e=>An({name:VV,initialState:o8,reducers:{},extraReducers:t=>{t.addCase(e.pending,n=>({...n,deleting:!0,error:!1})),t.addCase(e.rejected,(n,{error:r})=>({...n,deleting:!1,error:!0,errorData:Si(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>{const{deletedVisits:i}=r;return{...o8,deletedVisits:i}})}}),WV="shlink/shortUrlVisits",UTe={visits:[],shortCode:"",loading:!1,errorData:null,cancelLoad:!1,progress:null},zTe=e=>_m({typePrefix:`${WV}/getShortUrlVisits`,createLoaders:({shortCode:t,domain:n,options:r})=>{const i=e(),{doIntervalFallback:o=!1}=r,a=c=>i.getShortUrlVisits(t,{...c,domain:n}),s=bm(o,c=>i.getShortUrlVisits(t,{...c,domain:n}));return{visitsLoader:a,lastVisitLoader:s}},shouldCancel:t=>t().shortUrlVisits.cancelLoad}),VTe=(e,t)=>xm({name:WV,initialState:UTe,asyncThunkCreator:e,extraReducers:n=>{n.addCase(t.fulfilled,(r,{payload:i})=>r.shortCode===i.shortCode&&r.domain===i.domain?{...r,visits:[]}:r)},filterCreatedVisits:({shortCode:n,domain:r,params:i},o)=>EV(o,{shortCode:n,domain:r},i==null?void 0:i.dateRange)}),qV="shlink/shortUrlVisitsDeletion",a8={shortCode:"",deletedVisits:0,deleting:!1,error:!1},WTe=e=>qn(`${qV}/deleteShortUrlVisits`,async({shortCode:t,domain:n})=>({...await e().deleteShortUrlVisits(t,n),shortCode:t,domain:n})),qTe=e=>An({name:qV,initialState:a8,reducers:{},extraReducers:t=>{t.addCase(e.pending,n=>({...n,deleting:!0,error:!1})),t.addCase(e.rejected,(n,{error:r})=>({...n,deleting:!1,error:!0,errorData:Si(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>{const{shortCode:i,domain:o,deletedVisits:a}=r;return{...a8,shortCode:i,domain:o,deletedVisits:a}})}}),HV="shlink/tagVisits",HTe={visits:[],tag:"",loading:!1,cancelLoad:!1,errorData:null,progress:null},GTe=e=>_m({typePrefix:`${HV}/getTagVisits`,createLoaders:({tag:t,options:n})=>{const r=e(),{doIntervalFallback:i=!1}=n,o=s=>r.getTagVisits(t,s),a=bm(i,async s=>r.getTagVisits(t,s));return{visitsLoader:o,lastVisitLoader:a}},shouldCancel:t=>t().tagVisits.cancelLoad}),KTe=e=>xm({name:HV,initialState:HTe,asyncThunkCreator:e,filterCreatedVisits:({tag:t,params:n},r)=>jV(r,t,n==null?void 0:n.dateRange)}),GV="shlink/visitsOverview",cg={nonOrphanVisits:{total:0},orphanVisits:{total:0},loading:!1,error:!1},s8=e=>e.filter(({visit:t})=>t.potentialBot).length,YTe=e=>qn(`${GV}/loadVisitsOverview`,()=>e().getVisitsOverview().then(({nonOrphanVisits:t,visitsCount:n=0,orphanVisits:r,orphanVisitsCount:i=0})=>({nonOrphanVisits:{total:(t==null?void 0:t.total)??n,nonBots:t==null?void 0:t.nonBots,bots:t==null?void 0:t.bots},orphanVisits:{total:(r==null?void 0:r.total)??i,nonBots:r==null?void 0:r.nonBots,bots:r==null?void 0:r.bots}}))),ZTe=e=>An({name:GV,initialState:cg,reducers:{},extraReducers:t=>{t.addCase(e.pending,()=>({...cg,loading:!0})),t.addCase(e.rejected,()=>({...cg,error:!0})),t.addCase(e.fulfilled,(n,{payload:r})=>({...cg,...r})),t.addCase(cd,({nonOrphanVisits:n,orphanVisits:r,...i},{payload:o})=>{const{nonOrphanVisits:a,orphanVisits:s}=XEe(o.createdVisits),c=a.length,u=s8(a),h=c-u,p=s.length,v=s8(s),b=p-v;return{...i,nonOrphanVisits:{total:n.total+c,bots:n.bots&&n.bots+u,nonBots:n.nonBots&&n.nonBots+h},orphanVisits:{total:r.total+p,bots:r.bots&&r.bots+v,nonBots:r.nonBots&&r.nonBots+b}}})}}),XTe=({shortUrl:e,loading:t,shortUrlVisits:n})=>{const{visits:r}=n,i=(e==null?void 0:e.shortUrl)??"",o=(e==null?void 0:e.longUrl)??"",a=e==null?void 0:e.title;return g.jsxs(gm,{title:g.jsxs(g.Fragment,{children:["Visits for ",g.jsx(Gr,{href:i})]}),visits:r,shortUrl:e,children:[g.jsx("hr",{}),g.jsxs("div",{children:["Created: ",e?g.jsxs("span",{children:[g.jsx("b",{id:"created",className:"short-url-visits-header__created-at",children:g.jsx(p0,{date:e.dateCreated,relative:!0})}),g.jsx(Oi,{placement:"bottom",target:"created",children:g.jsx(p0,{date:e.dateCreated})})]}):g.jsx("small",{children:"Loading..."})]}),g.jsxs("div",{className:"long-url-container",children:[`${a?"Title":"Long URL"}: `,t&&g.jsx("small",{children:"Loading..."}),!t&&g.jsx(Gr,{href:o,children:a??o})]})]})},KV=jo(({shortUrlVisits:e,shortUrlVisitsDeletion:t,shortUrlsDetails:n,getShortUrlVisits:r,getShortUrlsDetails:i,deleteShortUrlVisits:o,cancelGetShortUrlVisits:a})=>{const s=_i("shortUrlVisitsDeletion"),{ReportExporter:c}=fn(KV),u=Xj(),h=F.useMemo(()=>{var x;return(x=n.shortUrls)==null?void 0:x.get(u)},[u,n.shortUrls]),p=F.useCallback((x,_)=>r({...u,options:_,params:x}),[r,u]),v=F.useCallback(x=>c.exportVisits(`short-url_${h==null?void 0:h.shortUrl.replace(/https?:\/\//g,"")}_visits.csv`,x),[c,h==null?void 0:h.shortUrl]),b=F.useMemo(()=>s?{deleteVisits:()=>o(u),visitsDeletion:t}:void 0,[o,u,t,s]);return F.useEffect(()=>{i([u])},[u,i]),g.jsx(ym,{getVisits:p,cancelGetVisits:a,visitsInfo:e,exportCsv:v,deletion:b,children:g.jsx(XTe,{shortUrl:h,loading:n.loading,shortUrlVisits:e})})},e=>e.shortCode?[kr.shortUrlVisits(Kj(e.shortCode))]:[]),QTe=dn(KV,["ReportExporter"]),JTe=({tagVisits:e,colorGenerator:t})=>{const{visits:n,tag:r}=e;return g.jsx(gm,{title:g.jsxs("span",{className:"d-flex align-items-center justify-content-center",children:[g.jsx("span",{className:"me-2",children:"Visits for"}),g.jsx(Rb,{text:r,colorGenerator:t})]}),visits:n})},YV=jo(({getTagVisits:e,tagVisits:t,cancelGetTagVisits:n})=>{const{ColorGenerator:r,ReportExporter:i}=fn(YV),{tag:o=""}=Gf(),a=F.useCallback((c,u)=>e({tag:o,params:c,options:u}),[e,o]),s=F.useCallback(c=>i.exportVisits(`tag_${o}_visits.csv`,c),[i,o]);return g.jsx(ym,{getVisits:a,cancelGetVisits:n,visitsInfo:t,exportCsv:s,children:g.jsx(JTe,{tagVisits:t,colorGenerator:r})})},()=>[kr.visits]),eje=dn(YV,["ColorGenerator","ReportExporter"]),sA=({title:e,colors:t,getVisitsForComparison:n,visitsComparisonInfo:r,cancelGetVisitsComparison:i})=>{const{loading:o,visitsGroups:a}=r,s=Rr("visits"),c=F.useMemo(()=>Object.keys(a).reduce((P,E,T)=>(P[E]=Object.assign(y0(a[E]),{color:(t==null?void 0:t[E])??SV(T)}),P),{}),[t,a]),u=F.useMemo(()=>Object.values(a).every(P=>P.length===0),[a]),[{dateRange:h,visitsFilter:p},v]=AV(),[b,x]=F.useState(),_=F.useCallback(({startDate:P,endDate:E},T)=>{v({dateRange:{startDate:P??void 0,endDate:E??void 0}}),x(T)},[v]),w=F.useRef(h??(s==null?void 0:s.defaultInterval)??"last30Days"),O=F.useMemo(()=>({...p,excludeBots:p.excludeBots??(s==null?void 0:s.excludeBots)}),[p,s==null?void 0:s.excludeBots]);return F.useEffect(()=>{const P=h??Jz(w.current);return n({params:{dateRange:P,filter:O}}),i},[i,h,n,O]),g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"mb-3",children:g.jsxs(qt,{bodyClassName:"d-flex",children:[g.jsx(kb,{}),g.jsx("h3",{className:"mb-0 flex-grow-1 text-center",children:e})]})}),g.jsx("div",{className:"col-lg-7 col-xl-6 offset-lg-5 offset-xl-6 mb-3",children:g.jsxs("div",{className:"d-md-flex",children:[g.jsx("div",{className:"flex-grow-1",children:g.jsx(tA,{disabled:o,defaultText:"All visits",dateRangeOrInterval:b??h??w.current,onDatesChange:_})}),g.jsx(RV,{disabled:o,className:"ms-0 ms-md-2 mt-3 mt-md-0",selected:O,onChange:({orphanVisitsType:P,excludeBots:E})=>v({visitsFilter:{orphanVisitsType:P,excludeBots:E}})})]})}),g.jsx(NV,{info:r}),!o&&g.jsx(xg,{showFallback:u,children:g.jsx(CV,{visitsGroups:c,onDateRangeChange:_})})]})},tje=jo(({getDomainVisitsForComparison:e,domainVisitsComparison:t,cancelGetDomainVisitsComparison:n})=>{const r=Hj("domains"),i=F.useCallback(o=>e({...o,domains:r}),[r,e]);return g.jsx(sA,{title:`Comparing "${r.join('", "')}"`,getVisitsForComparison:i,visitsComparisonInfo:t,cancelGetVisitsComparison:n})},()=>[kr.visits]),nje=({visitsLoaders:e,shouldCancel:t,progressChanged:n})=>{const r=Object.keys(e),i=Math.max(1,Math.round(4/r.length)),o=Object.fromEntries(r.map(c=>[c,0])),a=(c,u)=>{o[c]=u;const h=Object.values(o),p=h.reduce((v,b)=>v+b,0);n(p/h.length)},s=Object.entries(e).map(([c,u])=>[c,FV({visitsLoader:u,batchSize:i,shouldCancel:t,progressChanged:h=>a(c,h)})]);return async c=>{const u=await Promise.all(s.map(async([h,p])=>{const v=await p(c);return[h,v]}));return Object.fromEntries(u)}},lA=({typePrefix:e,createLoaders:t,shouldCancel:n})=>{const r=jr(`${e}/progressChanged`),i=qn(e,async(o,{getState:a,dispatch:s})=>{const c=t(o),u=await nje({visitsLoaders:c,shouldCancel:()=>n(a),progressChanged:h=>s(r(h))})(CE(o.params));return{...o,visitsGroups:u}});return Object.assign(i,{progressChanged:r})},uA=({name:e,asyncThunkCreator:t,initialState:n,filterCreatedVisitsForGroup:r})=>{const{pending:i,rejected:o,fulfilled:a,progressChanged:s}=t,{reducer:c,actions:u}=An({name:e,initialState:n,reducers:{cancelGetVisits:p=>({...p,cancelLoad:!0})},extraReducers:p=>{p.addCase(i,()=>({...n,loading:!0})),p.addCase(o,(v,{error:b})=>({...n,errorData:Si(b)??null})),p.addCase(a,(v,{payload:b})=>({...v,...b,loading:!1,progress:null,errorData:null})),p.addCase(s,(v,{payload:b})=>({...v,progress:b})),p.addCase(cd,(v,{payload:b})=>{const{visitsGroups:x,..._}=v,w=Object.keys(x).map(P=>{const E=r({..._,groupKey:P},b.createdVisits).map(({visit:T})=>T);return[P,[...E,...x[P]]]}),O=Object.fromEntries(w);return{..._,visitsGroups:O}})}}),{cancelGetVisits:h}=u;return{reducer:c,cancelGetVisits:h}},ZV="shlink/domainVisitsComparison",rje={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},ije=e=>lA({typePrefix:`${ZV}/getDomainVisitsForComparison`,createLoaders:({domains:t})=>{const n=e(),r=t.map(i=>[i,o=>n.getDomainVisits(i,o)]);return Object.fromEntries(r)},shouldCancel:t=>t().domainVisitsComparison.cancelLoad}),oje=e=>uA({name:ZV,initialState:rje,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:n},r)=>TV(r,t,n==null?void 0:n.dateRange)}),XV="shlink/shortUrlVisitsComparison",aje={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},sje=e=>lA({typePrefix:`${XV}/getShortUrlVisitsForComparison`,createLoaders:({shortUrls:t})=>{const n=e(),r=t.map(i=>[Yj(i),o=>n.getShortUrlVisits(i.shortCode,{...o,domain:i.domain})]);return Object.fromEntries(r)},shouldCancel:t=>t().shortUrlVisitsComparison.cancelLoad}),lje=e=>uA({name:XV,initialState:aje,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:n},r)=>EV(r,lz(t),n==null?void 0:n.dateRange)}),QV="shlink/tagVisitsComparison",uje={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},cje=e=>lA({typePrefix:`${QV}/getTagVisitsForComparison`,createLoaders:({tags:t})=>{const n=e(),r=t.map(i=>[i,o=>n.getTagVisits(i,o)]);return Object.fromEntries(r)},shouldCancel:t=>t().tagVisitsComparison.cancelLoad}),fje=e=>uA({name:QV,initialState:uje,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:n},r)=>jV(r,t,n==null?void 0:n.dateRange)}),dje=jo(({getShortUrlVisitsForComparison:e,shortUrlVisitsComparison:t,cancelGetShortUrlVisitsComparison:n,shortUrlsDetails:r,getShortUrlsDetails:i})=>{const o=Hj("short-urls"),a=F.useMemo(()=>o.map(lz),[o]),s=F.useCallback(h=>e({...h,shortUrls:a}),[e,a]),c=F.useMemo(()=>{var h;return[...((h=r.shortUrls)==null?void 0:h.values())??[]]},[r.shortUrls]),u=F.useMemo(()=>{const{visitsGroups:h,loading:p,...v}=t,b=c.reduce((x,_)=>(x[_.shortUrl]=h[Yj(_)]??[],x),{});return{...v,visitsGroups:b,loading:p||r.loading}},[t,r.loading,c]);return F.useEffect(()=>{a.length>0&&i(a)},[i,a]),g.jsx(sA,{title:g.jsx("span",{"data-testid":"title",children:r.loading?"Loading...":`Comparing ${c.length} short URLs`}),getVisitsForComparison:s,visitsComparisonInfo:u,cancelGetVisitsComparison:n})},()=>[kr.visits]),JV=jo(({getTagVisitsForComparison:e,tagVisitsComparison:t,cancelGetTagVisitsComparison:n})=>{const{ColorGenerator:r}=fn(JV),i=Hj("tags"),o=F.useCallback(c=>e({...c,tags:i}),[e,i]),{visitsGroups:a}=t,s=F.useMemo(()=>Object.keys(a).reduce((c,u)=>(c[u]=r.getColorForKey(u),c),{}),[r,a]);return g.jsx(sA,{title:g.jsxs(g.Fragment,{children:["Comparing ",i.map(c=>g.jsx(Rb,{colorGenerator:r,text:c},c))]}),getVisitsForComparison:o,visitsComparisonInfo:t,cancelGetVisitsComparison:n,colors:s})},()=>[kr.visits]),hje=dn(JV,["ColorGenerator"]),pje=(e,t)=>{const n=(r,i)=>t([...r,"mercureInfo"],[...i,"createNewVisits","loadMercureInfo"]);e.serviceFactory("MapModal",()=>kV),e.factory("ShortUrlVisits",QTe),e.decorator("ShortUrlVisits",t(["shortUrlVisits","shortUrlVisitsDeletion","shortUrlsDetails","mercureInfo"],["getShortUrlVisits","deleteShortUrlVisits","getShortUrlsDetails","cancelGetShortUrlVisits","createNewVisits","loadMercureInfo"])),e.factory("TagVisits",eje),e.decorator("TagVisits",n(["tagVisits"],["getTagVisits","cancelGetTagVisits"])),e.factory("TagVisitsComparison",hje),e.decorator("TagVisitsComparison",n(["tagVisitsComparison"],["getTagVisitsForComparison","cancelGetTagVisitsForComparison"])),e.serviceFactory("DomainVisitsComparison",()=>tje),e.decorator("DomainVisitsComparison",n(["domainVisitsComparison"],["getDomainVisitsForComparison","cancelGetDomainVisitsForComparison"])),e.serviceFactory("ShortUrlVisitsComparison",()=>dje),e.decorator("ShortUrlVisitsComparison",n(["shortUrlVisitsComparison","shortUrlsDetails"],["getShortUrlVisitsForComparison","cancelGetShortUrlVisitsForComparison","getShortUrlsDetails"])),e.factory("DomainVisits",xTe),e.decorator("DomainVisits",n(["domainVisits"],["getDomainVisits","cancelGetDomainVisits"])),e.factory("OrphanVisits",OTe),e.decorator("OrphanVisits",n(["orphanVisits","orphanVisitsDeletion"],["getOrphanVisits","cancelGetOrphanVisits","deleteOrphanVisits"])),e.factory("NonOrphanVisits",wTe),e.decorator("NonOrphanVisits",n(["nonOrphanVisits"],["getNonOrphanVisits","cancelGetNonOrphanVisits"])),e.serviceFactory("VisitsParser",()=>mTe),e.serviceFactory("getShortUrlVisits",zTe,"apiClientFactory"),e.serviceFactory("cancelGetShortUrlVisits",r=>r.cancelGetVisits,"shortUrlVisitsReducerCreator"),e.serviceFactory("getShortUrlVisitsForComparison",sje,"apiClientFactory"),e.serviceFactory("cancelGetShortUrlVisitsForComparison",r=>r.cancelGetVisits,"shortUrlVisitsComparisonReducerCreator"),e.serviceFactory("deleteShortUrlVisits",WTe,"apiClientFactory"),e.serviceFactory("getTagVisits",GTe,"apiClientFactory"),e.serviceFactory("cancelGetTagVisits",r=>r.cancelGetVisits,"tagVisitsReducerCreator"),e.serviceFactory("getTagVisitsForComparison",cje,"apiClientFactory"),e.serviceFactory("cancelGetTagVisitsForComparison",r=>r.cancelGetVisits,"tagVisitsComparisonReducerCreator"),e.serviceFactory("getDomainVisits",jTe,"apiClientFactory"),e.serviceFactory("cancelGetDomainVisits",r=>r.cancelGetVisits,"domainVisitsReducerCreator"),e.serviceFactory("getDomainVisitsForComparison",ije,"apiClientFactory"),e.serviceFactory("cancelGetDomainVisitsForComparison",r=>r.cancelGetVisits,"domainVisitsComparisonReducerCreator"),e.serviceFactory("getOrphanVisits",DTe,"apiClientFactory"),e.serviceFactory("cancelGetOrphanVisits",r=>r.cancelGetVisits,"orphanVisitsReducerCreator"),e.serviceFactory("deleteOrphanVisits",FTe,"apiClientFactory"),e.serviceFactory("getNonOrphanVisits",RTe,"apiClientFactory"),e.serviceFactory("cancelGetNonOrphanVisits",r=>r.cancelGetVisits,"nonOrphanVisitsReducerCreator"),e.serviceFactory("createNewVisits",()=>cd),e.serviceFactory("loadVisitsOverview",YTe,"apiClientFactory"),e.serviceFactory("visitsOverviewReducerCreator",ZTe,"loadVisitsOverview"),e.serviceFactory("visitsOverviewReducer",r=>r.reducer,"visitsOverviewReducerCreator"),e.serviceFactory("domainVisitsReducerCreator",ATe,"getDomainVisits"),e.serviceFactory("domainVisitsReducer",r=>r.reducer,"domainVisitsReducerCreator"),e.serviceFactory("nonOrphanVisitsReducerCreator",NTe,"getNonOrphanVisits"),e.serviceFactory("nonOrphanVisitsReducer",r=>r.reducer,"nonOrphanVisitsReducerCreator"),e.serviceFactory("orphanVisitsReducerCreator",$Te,"getOrphanVisits","deleteOrphanVisits"),e.serviceFactory("orphanVisitsReducer",r=>r.reducer,"orphanVisitsReducerCreator"),e.serviceFactory("orphanVisitsDeletionReducerCreator",BTe,"deleteOrphanVisits"),e.serviceFactory("orphanVisitsDeletionReducer",r=>r.reducer,"orphanVisitsDeletionReducerCreator"),e.serviceFactory("shortUrlVisitsReducerCreator",VTe,"getShortUrlVisits","deleteShortUrlVisits"),e.serviceFactory("shortUrlVisitsReducer",r=>r.reducer,"shortUrlVisitsReducerCreator"),e.serviceFactory("shortUrlVisitsDeletionReducerCreator",qTe,"deleteShortUrlVisits"),e.serviceFactory("shortUrlVisitsDeletionReducer",r=>r.reducer,"shortUrlVisitsDeletionReducerCreator"),e.serviceFactory("tagVisitsReducerCreator",KTe,"getTagVisits"),e.serviceFactory("tagVisitsReducer",r=>r.reducer,"tagVisitsReducerCreator"),e.serviceFactory("tagVisitsComparisonReducerCreator",fje,"getTagVisitsForComparison"),e.serviceFactory("tagVisitsComparisonReducer",r=>r.reducer,"tagVisitsComparisonReducerCreator"),e.serviceFactory("domainVisitsComparisonReducerCreator",oje,"getDomainVisitsForComparison"),e.serviceFactory("domainVisitsComparisonReducer",r=>r.reducer,"domainVisitsComparisonReducerCreator"),e.serviceFactory("shortUrlVisitsComparisonReducerCreator",lje,"getShortUrlVisitsForComparison"),e.serviceFactory("shortUrlVisitsComparisonReducer",r=>r.reducer,"shortUrlVisitsComparisonReducerCreator")},gh=({children:e,to:t,className:n,...r})=>g.jsx(D8,{className:({isActive:i})=>Be("aside-menu__item",n,{"aside-menu__item--selected":i}),to:t,...r,children:e}),mje=({routePrefix:e,showOnMobile:t=!1})=>{const{pathname:n}=Kr(),r=Be("aside-menu",{"aside-menu--hidden":!t}),i=o=>`${e}${o}`;return g.jsx("aside",{className:r,children:g.jsxs("nav",{className:"nav flex-column aside-menu__nav",children:[g.jsxs(gh,{to:i("/overview"),children:[g.jsx(Ge,{fixedWidth:!0,icon:LK}),g.jsx("span",{className:"aside-menu__item-text",children:"Overview"})]}),g.jsxs(gh,{to:i("/list-short-urls/1"),className:Be({"aside-menu__item--selected":n.match("/list-short-urls")!==null}),children:[g.jsx(Ge,{fixedWidth:!0,icon:BE}),g.jsx("span",{className:"aside-menu__item-text",children:"List short URLs"})]}),g.jsxs(gh,{to:i("/create-short-url"),children:[g.jsx(Ge,{fixedWidth:!0,icon:UK,flip:"horizontal"}),g.jsx("span",{className:"aside-menu__item-text",children:"Create short URL"})]}),g.jsxs(gh,{to:i("/manage-tags"),children:[g.jsx(Ge,{fixedWidth:!0,icon:Q8}),g.jsx("span",{className:"aside-menu__item-text",children:"Manage tags"})]}),g.jsxs(gh,{to:i("/manage-domains"),children:[g.jsx(Ge,{fixedWidth:!0,icon:pK}),g.jsx("span",{className:"aside-menu__item-text",children:"Manage domains"})]})]})})},eW=({createNotFound:e})=>{const{TagsList:t,ShortUrlsList:n,CreateShortUrl:r,ShortUrlVisits:i,TagVisits:o,DomainVisits:a,OrphanVisits:s,NonOrphanVisits:c,Overview:u,EditShortUrl:h,ManageDomains:p,TagVisitsComparison:v,DomainVisitsComparison:b,ShortUrlVisitsComparison:x,ShortUrlRedirectRules:_}=fn(eW),w=Kr(),O=_l(),[P,E,T,A]=cn();F.useEffect(()=>A(),[w,A]);const j=Be("shlink-layout__burger-icon",{"shlink-layout__burger-icon--active":P}),N=gSe(T,A),$=_i("shortUrlRedirectRules");return g.jsxs(g.Fragment,{children:[g.jsx(Ge,{icon:uK,className:j,onClick:E}),g.jsx("div",{...N,className:"shlink-layout__swipeable",children:g.jsxs("div",{className:"shlink-layout__swipeable-inner",children:[g.jsx(mje,{routePrefix:O,showOnMobile:P}),g.jsx("div",{className:"shlink-layout__container",onPointerDown:()=>A(),children:g.jsx("div",{className:"container-xl",children:g.jsxs(P0,{children:[g.jsx(Rt,{index:!0,element:g.jsx(NE,{replace:!0,to:"overview"})}),g.jsx(Rt,{path:"/overview",element:g.jsx(u,{})}),g.jsx(Rt,{path:"/list-short-urls/:page",element:g.jsx(n,{})}),g.jsx(Rt,{path:"/create-short-url",element:g.jsx(r,{})}),g.jsx(Rt,{path:"/short-code/:shortCode/visits/*",element:g.jsx(i,{})}),g.jsx(Rt,{path:"/short-code/:shortCode/edit",element:g.jsx(h,{})}),$&&g.jsx(Rt,{path:"/short-code/:shortCode/redirect-rules",element:g.jsx(_,{})}),g.jsx(Rt,{path:"/short-urls/compare-visits",element:g.jsx(x,{})}),g.jsx(Rt,{path:"/tag/:tag/visits/*",element:g.jsx(o,{})}),g.jsx(Rt,{path:"/tags/compare-visits",element:g.jsx(v,{})}),g.jsx(Rt,{path:"/domain/:domain/visits/*",element:g.jsx(a,{})}),g.jsx(Rt,{path:"/orphan-visits/*",element:g.jsx(s,{})}),g.jsx(Rt,{path:"/non-orphan-visits/*",element:g.jsx(c,{})}),g.jsx(Rt,{path:"/manage-tags",element:g.jsx(t,{})}),g.jsx(Rt,{path:"/manage-domains",element:g.jsx(p,{})}),g.jsx(Rt,{path:"/domains/compare-visits",element:g.jsx(b,{})}),e&&g.jsx(Rt,{path:"*",element:e("/list-short-urls/1")})]})})})]})})]})},vje=dn(eW,["TagsList","ShortUrlsList","CreateShortUrl","ShortUrlVisits","TagVisits","DomainVisits","OrphanVisits","NonOrphanVisits","Overview","EditShortUrl","ManageDomains","TagVisitsComparison","DomainVisitsComparison","ShortUrlVisitsComparison","ShortUrlRedirectRules"]),gje=!0,yje=e=>WF({devTools:!gje,reducer:wT({mercureInfo:e.mercureInfoReducer,shortUrlsList:e.shortUrlsListReducer,shortUrlCreation:e.shortUrlCreationReducer,shortUrlDeletion:e.shortUrlDeletionReducer,shortUrlEdition:e.shortUrlEditionReducer,shortUrlsDetails:e.shortUrlsDetailsReducer,shortUrlVisits:e.shortUrlVisitsReducer,shortUrlVisitsDeletion:e.shortUrlVisitsDeletionReducer,shortUrlVisitsComparison:e.shortUrlVisitsComparisonReducer,tagVisits:e.tagVisitsReducer,tagVisitsComparison:e.tagVisitsComparisonReducer,domainVisits:e.domainVisitsReducer,domainVisitsComparison:e.domainVisitsComparisonReducer,orphanVisits:e.orphanVisitsReducer,orphanVisitsDeletion:e.orphanVisitsDeletionReducer,nonOrphanVisits:e.nonOrphanVisitsReducer,tagsList:e.tagsListReducer,tagDelete:e.tagDeleteReducer,tagEdit:e.tagEditReducer,domainsList:e.domainsListReducer,visitsOverview:e.visitsOverviewReducer,shortUrlRedirectRules:e.shortUrlRedirectRulesReducer,shortUrlRedirectRulesSaving:e.setShortUrlRedirectRulesReducer}),middleware:t=>t({immutableCheck:!1,serializableCheck:!1})}),bje=e=>{e.factory("Main",vje),e.factory("store",yje)},Ao=new K8,{container:_je}=Ao,xje=e=>t=>Object.fromEntries(e.map(n=>[n,t[n]])),wje=(e,t)=>(...n)=>e[t](...n),Oje=(e,t)=>({...e,[t]:wje(_je,t)}),fd=(e,t=[])=>S8(e?xje(e):null,t.reduce(Oje,{}));bje(Ao);tEe(Ao,fd);SEe(Ao,fd);pje(Ao,fd);kSe(Ao);TSe(Ao,fd);WSe(Ao,fd);kEe(Ao);nCe(Ao,fd);let l8;const Sje=e=>({serverVersion:t,apiClient:n,settings:r,routesPrefix:i="",createNotFound:o,tagColorsStorage:a})=>{const s=hSe(t),c=F.useRef(),[u,h]=F.useState(),p=Nu(),v=F.useMemo(()=>p?F.Fragment:I8,[p]);return F.useEffect(()=>{l8=n,e.value("apiClientFactory",()=>l8),a&&e.value("TagColorsStorage",a);const{container:b}=e,{Main:x,store:_,loadMercureInfo:w,listTags:O,listDomains:P}=b;c.current=g.jsx(x,{createNotFound:o}),h(_),_.dispatch(w(r)),_.dispatch(O()),_.dispatch(P())},[n,o,r,a]),u?g.jsx(P8,{store:u,children:g.jsx(e7,{value:r??{},children:g.jsx(dSe,{value:s,children:g.jsx(uSe,{value:i,children:g.jsx(v,{children:c.current})})})})}):g.jsx(g.Fragment,{})},Pje="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=",Cje="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAABSCAMAAAAhFXfZAAAC91BMVEVMaXEzeak2f7I4g7g3g7cua5gzeKg8hJo3grY4g7c3grU0gLI2frE0daAubJc2gbQwd6QzeKk2gLMtd5sxdKIua5g1frA2f7IydaM0e6w2fq41fK01eqo3grgubJgta5cxdKI1f7AydaQydaMxc6EubJgvbJkwcZ4ubZkwcJwubZgubJcydqUydKIxapgubJctbJcubZcubJcvbJYubJcvbZkubJctbJctbZcubJg2f7AubJcrbZcubJcubJcua5g3grY0fq8ubJcubJdEkdEwhsw6i88vhswuhcsuhMtBjMgthMsrg8srgss6is8qgcs8i9A9iMYtg8spgcoogMo7hcMngMonf8olfso4gr8kfck5iM8jfMk4iM8he8k1fro7itAgesk2hs8eecgzfLcofssdeMg0hc4cd8g2hcsxeLQbdsgZdcgxeLImfcszhM0vda4xgckzhM4xg84wf8Yxgs4udKsvfcQucqhUndROmdM1fK0wcZ8vb5w0eqpQm9MzeKhXoNVcpdYydKNWn9VZotVKltJFjsIwcJ1Rms9OlslLmtH///8+kc9epdYzd6dbo9VHkMM2f7FHmNBClM8ydqVcpNY9hro3gLM9hLczealQmcw3fa46f7A8gLMxc6I3eagyc6FIldJMl9JSnNRSntNNl9JPnNJFi75UnM9ZodVKksg8kM45jc09e6ZHltFBk883gbRBh7pDk9EwcaBzn784g7dKkcY2i81Om9M7j85Llc81is09g7Q4grY/j9A0eqxKmdFFltBEjcXf6fFImdBCiLxJl9FGlNFBi78yiMxVndEvbpo6js74+vx+psPP3+o/ks5HkcpGmNCjwdZCkNDM3ehYoNJEls+lxNkxh8xHks0+jdC1zd5Lg6r+/v/H2ufz9/o3jM3t8/edvdM/k89Th61OiLBSjbZklbaTt9BfptdjmL1AicBHj8hGk9FAgK1dkLNTjLRekrdClc/k7fM0icy0y9tgp9c4jc2NtM9Dlc8zicxeXZn3AAAAQ3RSTlMAHDdTb4yPA+LtnEQmC4L2EmHqB7XA0d0sr478x4/Yd5i1zOfyPkf1sLVq4Nh3FvjxopQ2/STNuFzUwFIwxKaejILpIBEV9wAABhVJREFUeF6s1NdyFEcYBeBeoQIhRAkLlRDGrhIgY3BJL8CVeKzuyXFzzjkn5ZxzzuScg3PO8cKzu70JkO0LfxdTU//pM9vTu7Xgf6KqOVTb9X7toRrVEfBf1HTVjZccrT/2by1VV928Yty9ZbVuucdz90frG8DBjl9pVApbOstvmMuvVgaNXSfAAd6pGxpy6yxf5ph43pS/4f3uoaGm2rdu72S9xzOvMymkZFq/ptDrk90mhW7e4zl7HLzhxGWPR20xmSxJ/VqldG5m9XhaVOA1DadsNh3Pu5L2N6QtPO/32JpqQBVVk20oy/Pi2s23WEvyfHbe1thadVQttvm7Llf65gGmXK67XtupyoM7HQhmXdLS8oGWJNeOJ3C5fG5XCEJnkez3/oFdsvgJ4l2ANZwhrJKk/7OSXa+3Vw2WJMlKnGkobouYk6T0TyX30klOUnTD9HJ5qpckL3EW/w4XF3Xd0FGywXUrstrclVsqz5Pd/sXFYyDnPdrLcQODmGOK47IZb4CmibmMn+MYRzFZ5jg33ZL/EJrWcszHmANy3ARBK/IXtciJy8VsitPSdE3uuHxzougojcUdr8/32atnz/ev3f/K5wtpxUTpcaI45zusVDpYtZi+jg0oU9b3x74h7+n9ABvYEZeKaVq0sh0AtLKsFtqNBdeT0MrSzwwlq9+x6xAO4tgOtSzbCjrNQQiNvQUbUEubvzBUeGw26yDCsRHCoLkTHDa7IdOLIThs/gHvChszh2CimE8peRs47cxANI0lYNB5y1DljpOF0IhzBDPOZnDOqYYbeGKECbPzWnXludPphw5c2YBq5zlwXphIbO4VDCZ0gnPfUO1TwZoYwAs2ExPCedAu9DAjfQUjzITQb3jNj0KG2Sgt6BHaQUdYzWz+XmBktOHwanXjaSTcwwziBcuMOtwBmqPrTOxFQR/DRKKPqyur0aiW6cULYsx6tBm0jXpR/AUWR6HRq9WVW6MRhIq5jLyjbaCTDCijyYJNpCajdyobP/eTw0iexBAKkJ3gA5KcQb2zBXsIBckn+xVv8jkZSaEFHE+jFEleAEfayRU0MouNoBmB/L50Ai/HSLIHxcrpCvnhSQAuakKp2C/YbCylJjXRVy/z3+Kv/RrNcCo+WUzlVEhzKffnTQnxeN9fWF88fiNCUdSTsaufaChKWInHeysygfpIqagoakW+vV20J8uyl6TyNKEZWV4oRSPyCkWpgOLSbkCObT8o2r6tlG58HQquf6O0v50tB7JM7F4EORd2dx/K0w/KHsVkLPaoYrwgP/y7krr3SSMA4zj+OBgmjYkxcdIJQyQRKgg2viX9Hddi9UBb29LrKR7CVVEEEXWojUkXNyfTNDE14W9gbHJNuhjDettN3ZvbOvdOqCD3Jp/9l+/wJE+9PkYGjx/fqkys3S2rMozM/o2106rfMUINo6hVqz+eu/hd1c4xTg0TAfy5kV+4UG6+IthHTU9woWmxuKNbTfuCSfovBCxq7EtHqvYL4Sm6F8GVxsSXHMQ07TOi1DKtZxjWaaIyi4CXWjxPccUw8WVbMYY5wxC1mzEyXMJWkllpRloi+Kkoq69sxBTlElF6aAxYUbjXNlhlDZilDnM4U5SlN5biRsRHnbx3mbeWjEh4mEyiuJDl5XcWVmX5GvNkFgLWZM5qwsop4/AWfLhU1cR7k1VVvcYCWRkOI6Xy5gmnphCYIkvzuNYzHzosq2oNk2RtSs8khfUOfHIDgR6ysYBaMpl4uEgk2U/oJTs9AaTSwma7dT69geAE2ZpEjUsn2ieJNHeKfrI3EcAGJ2ZaNgVuC8EBctCLc57P5u5led6IOBkIYkuQMrmmjChs4VkfOerHqSBkPzZlhe06RslZ3zMjk2sscqKwY0RcjKK+LWbzd7KiHhkncs/siFJ+V5eXxD34B8nVuJEpGJNmxN2gH3vSvp7J70tF+D1Ej8qUJD1TkErAND2GZwTFg/LubvmgiBG3SOvdlsqFQrkEzJCL1rstlnVFROixZoDDSuXQFHESwVGlcuQcMb/b42NgjLowh5MTDFE3vNB5qStRIErdCQEh6pLPR92anSUb/wAIhldAaDMpGgAAAABJRU5ErkJggg==",Eje="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC",Tje=()=>{delete O5.Icon.Default.prototype._getIconUrl,O5.Icon.Default.mergeOptions({iconRetinaUrl:Cje,iconUrl:Pje,shadowUrl:Eje})};Tje();const jje=Sje(Ao);function b0(e){return t=>{const{resetSelectedServer:n}=t;return F.useEffect(()=>{n()},[n]),g.jsx(e,{...t})}}let Aje=class extends F.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t){const{console:n=globalThis.console}=this.props;n.error(t)}render(){const{hasError:t}=this.state,{location:n=globalThis.location}=this.props;if(t)return g.jsx("div",{className:"home",children:g.jsxs(qt,{className:"p-4",children:[g.jsx("h1",{children:"Oops! This is awkward :S"}),g.jsx("p",{children:"It seems that something went wrong. Try refreshing the page or just click this button."}),g.jsx("br",{}),g.jsx(_t,{outline:!0,color:"primary",onClick:()=>n.reload(),children:"Take me back"})]})});const{children:r}=this.props;return r}};const kje=({id:e,name:t})=>g.jsxs(OF,{tag:Jt,to:`/server/${e}`,className:"servers-list__server-item",children:[t,g.jsx(Ge,{icon:HK,className:"servers-list__server-item-icon"})]}),tW=({servers:e,children:t,embedded:n=!1})=>g.jsxs(g.Fragment,{children:[t&&g.jsx("div",{"data-testid":"title",className:"mb-0 fs-5 fw-normal lh-sm",children:t}),e.length>0&&g.jsx(xF,{"data-testid":"list",tag:"div",className:Be("servers-list__list-group",{"servers-list__list-group--embedded":n}),children:e.map(({id:r,name:i})=>g.jsx(kje,{id:r,name:i},r))})]}),nW=({color:e=ip,className:t})=>g.jsx("svg",{className:t,viewBox:"0 0 512 512",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:g.jsxs("g",{fill:e,children:[g.jsx("path",{d:" M 23.71 85.08 C 17.22 49.81 49.44 14.86 85.08 18.12 C 118.83 19.21 145.72 53.33 139.45 86.37 C 155.64 102.30 171.32 118.83 187.87 134.36 C 198.32 111.73 208.84 89.12 219.57 66.62 C 226.05 53.84 243.47 48.74 255.73 56.27 C 263.76 62.10 270.34 69.69 277.25 76.75 C 286.28 86.61 285.72 102.89 276.31 112.31 C 223.38 165.37 170.38 218.37 117.35 271.34 C 107.72 280.99 91.01 281.25 81.11 271.86 C 74.39 264.94 66.82 258.69 61.24 250.77 C 53.72 238.52 58.85 221.07 71.64 214.62 C 94.11 203.87 116.72 193.38 139.33 182.91 C 123.81 166.36 107.30 150.68 91.37 134.49 C 60.20 140.28 27.37 116.78 23.71 85.08 Z"}),g.jsx("path",{d:" M 205.21 201.23 C 225.32 181.36 260.88 181.11 281.14 200.86 C 299.25 218.75 317.37 236.65 335.10 254.93 C 356.73 278.01 352.01 318.70 326.03 336.56 C 320.07 330.47 313.73 324.65 308.12 318.28 C 323.86 309.39 328.76 286.18 316.63 272.39 C 301.73 256.95 286.30 242.03 271.24 226.75 C 264.49 219.65 256.80 212.00 246.37 211.52 C 224.65 208.64 205.52 233.36 214.49 253.58 C 221.09 266.81 234.22 275.12 243.62 286.24 C 240.43 295.96 238.09 306.13 238.29 316.46 C 225.55 304.29 213.16 291.73 200.89 279.09 C 180.97 257.57 183.10 220.45 205.21 201.23 Z"}),g.jsx("path",{d:" M 273.90 352.07 C 252.28 328.99 256.98 288.31 282.96 270.46 C 288.93 276.54 295.26 282.36 300.88 288.72 C 285.14 297.62 280.23 320.82 292.38 334.61 C 307.27 350.05 322.70 364.96 337.75 380.25 C 344.51 387.35 352.20 395.00 362.64 395.48 C 384.35 398.37 403.49 373.64 394.51 353.42 C 387.92 340.18 374.78 331.88 365.38 320.76 C 368.56 311.04 370.91 300.86 370.71 290.54 C 383.45 302.70 395.84 315.27 408.11 327.91 C 428.03 349.43 425.90 386.55 403.78 405.77 C 383.68 425.64 348.13 425.89 327.86 406.14 C 309.75 388.25 291.60 370.37 273.90 352.07 Z"}),g.jsx("path",{d:" M 422.11 403.83 C 431.96 394.07 441.60 384.06 451.66 374.51 C 460.90 383.74 471.89 392.70 474.89 406.11 C 480.16 429.97 484.08 454.13 488.76 478.12 C 490.00 483.41 484.47 488.29 479.35 486.63 C 454.66 481.52 429.55 478.12 405.14 471.84 C 393.17 467.97 385.20 457.75 376.55 449.27 C 386.39 439.49 396.13 429.60 406.06 419.91 C 416.37 433.45 435.74 414.00 422.11 403.83 Z"})]})}),Rje=({servers:e})=>{const t=oa(),n=Object.values(e),r=n.length>0;return F.useEffect(()=>{const i=n.find(({autoConnect:o})=>o);i&&t(`/server/${i.id}`)},[n,t]),g.jsx("div",{className:"w-100",children:g.jsx(wi,{className:"mx-auto",style:{maxWidth:"720px"},children:g.jsxs("div",{className:"d-flex flex-column flex-md-row",children:[g.jsx("div",{className:"p-4 d-none d-md-flex align-items-center",style:{width:"40%"},children:g.jsx("div",{className:"w-100",children:g.jsx(nW,{})})}),g.jsxs("div",{className:"home__servers-container flex-grow-1",children:[g.jsx("h1",{className:Be("home__title p-4 text-center m-0",{"border-bottom":!r}),style:{borderColor:"var(--border-color) !important"},children:"Welcome!"}),g.jsx(tW,{embedded:!0,servers:n,children:!r&&g.jsxs("div",{className:"p-4 text-center d-flex flex-column gap-5",children:[g.jsx("p",{className:"mb-0",children:"This application will help you manage your Shlink servers."}),g.jsx("p",{className:"mb-0",children:g.jsxs(Jt,{to:"/server/create",className:"btn btn-outline-primary btn-lg me-2",children:[g.jsx(Ge,{icon:Hp})," ",g.jsx("span",{className:"ms-1",children:"Add a server"})]})}),g.jsx("p",{className:"mb-0",children:g.jsx(Gr,{href:"https://shlink.io/documentation",children:g.jsxs("small",{children:[g.jsx("span",{className:"me-2",children:"Learn more about Shlink"}),g.jsx(Ge,{icon:CK})]})})})]})})]})]})})})},rW=()=>{const{ServersDropdown:e}=Co(rW),[t,n,,r]=cn(),i=Kr(),{pathname:o}=i;F.useEffect(r,[i,r]);const a="/settings",s=Be("main-header__toggle-icon",{"main-header__toggle-icon--opened":t});return g.jsxs(W$,{color:"primary",dark:!0,fixed:"top",className:"main-header",expand:"md",children:[g.jsxs(q$,{tag:Jt,to:"/",children:[g.jsx(nW,{className:"main-header__brand-logo",color:"white"})," Shlink"]}),g.jsx(H$,{onClick:n,children:g.jsx(Ge,{icon:WK,className:s})}),g.jsx(mT,{navbar:!0,isOpen:t,children:g.jsxs(oT,{navbar:!0,className:"ms-auto",children:[g.jsx(aT,{children:g.jsxs(sT,{tag:Jt,to:a,active:o.startsWith(a),children:[g.jsx(Ge,{icon:YK}),"  Settings"]})}),g.jsx(e,{})]})})]})},Nje=Eo(rW,["ServersDropdown"]),Mje=({children:e})=>{const t=Kr();return F.useEffect(()=>{scrollTo(0,0)},[t]),g.jsx(g.Fragment,{children:e})},iW=ZF(e=>e,e=>{try{return VP(e,e,"=")}catch{return!1}}),oW=e=>iW(e)?`v${e}`:e,aW=(e,t="latest")=>iW(e)?e:t,Lje="%_VERSION_%",Ije=e=>oW(aW(e)),u8=({project:e,version:t})=>g.jsx(Gr,{href:`https://github.com/shlinkio/${e}/releases/${t}`,className:"text-muted",children:g.jsx("b",{children:t})}),Dje=({selectedServer:e,clientVersion:t=Lje})=>{const n=Ije(t);return g.jsxs("small",{className:"text-muted",children:[$E(e)&&g.jsxs(g.Fragment,{children:["Server: ",g.jsx(u8,{project:"shlink",version:e.printableVersion})," - "]}),"Client: ",g.jsx(u8,{project:"shlink-web-client",version:n})]})},$je=({selectedServer:e})=>g.jsx("div",{className:Be("text-center",{"shlink-versions-container--with-sidebar":$E(e)}),children:g.jsx(Dje,{selectedServer:e})}),dd=({children:e,className:t})=>g.jsx("div",{className:Be("no-menu-wrapper container-xl",t),children:e});function sW(e){const t=n=>{const{ServerError:r}=Co(t),i=Gf(),{selectServer:o,selectedServer:a}=n;return F.useEffect(()=>{i.serverId&&o(i.serverId)},[i.serverId,o]),a?YG(a)?g.jsx(r,{}):g.jsx(e,{...n}):g.jsx(dd,{children:g.jsx(za,{loading:!0})})};return t}const lW=sW(F.memo(({selectedServer:e,settings:t})=>{const{buildShlinkApiClient:n,TagColorsStorage:r,ShlinkWebComponent:i,ServerError:o}=Co(lW);if(!$E(e))return g.jsx(o,{});const a=`/server/${e.id}`;return g.jsx(i,{serverVersion:e.version,apiClient:n(e),settings:t,routesPrefix:a,tagColorsStorage:r,createNotFound:s=>g.jsx(RF,{to:`${a}${s}`,children:"List short URLs"})})})),Fje=Eo(lW,["buildShlinkApiClient","TagColorsStorage","ShlinkWebComponent","ServerError"]),Bje=(e,t)=>{e.constant("window",window),e.constant("console",console),e.constant("fetch",window.fetch.bind(window)),e.service("HttpClient",goe,"fetch"),e.serviceFactory("ScrollToTop",()=>Mje),e.factory("MainHeader",Nje),e.serviceFactory("Home",()=>Rje),e.decorator("Home",b0),e.decorator("Home",t(["servers"],["resetSelectedServer"])),e.serviceFactory("ShlinkWebComponent",()=>jje),e.factory("ShlinkWebComponentContainer",Fje),e.decorator("ShlinkWebComponentContainer",t(["selectedServer","settings"],["selectServer"])),e.serviceFactory("ShlinkVersionsContainer",()=>$je),e.decorator("ShlinkVersionsContainer",t(["selectedServer"])),e.serviceFactory("ErrorHandler",()=>Aje)},uW=()=>{const e=oa();return F.useCallback(()=>e(-1),[e])};function Uje(e){let t=e.url;try{const{host:n,pathname:r}=new URL(t);t=n;const i=r.substring(1);i.length>0&&(t=`${t} ${i}`)}catch{}return`${e.name} ${t}`.toLowerCase().replace(/[^a-zA-Z0-9-_.~]/g,"-")}function zje(e){const t={};return e.forEach(n=>{t[n.id]=n}),t}const Vje=(e,{url:t,apiKey:n})=>e.some(r=>r.url===t&&r.apiKey===n);function Wje(e,t){const n=Object.values(e),{duplicatedServers:r=[],newServers:i=[]}=YF(t,o=>Vje(n,o)?"duplicatedServers":"newServers");return{duplicatedServers:r,newServers:i}}function _0(e,t){const n=new Set(Object.keys(e)),r=[];return t.forEach(i=>{const o=Uje(i);let a=o,s=1;for(;n.has(a);)a=`${o}-${s}`,s++;r.push({...i,id:a}),n.add(a)}),r}const cW=({isOpen:e,duplicatedServers:t,onDiscard:n,onSave:r})=>{const i=t.length>1;return g.jsxs(Zr,{centered:!0,isOpen:e,children:[g.jsxs(aa,{children:["Duplicated server",i&&"s"]}),g.jsxs(Po,{children:[g.jsx("p",{children:i?"The next servers already exist:":"There is already a server with:"}),g.jsx("ul",{children:t.map(({url:o,apiKey:a},s)=>i?g.jsxs("li",{children:[g.jsx("b",{children:o})," - ",g.jsx("b",{children:a})]},s):g.jsxs(F.Fragment,{children:[g.jsxs("li",{children:["URL: ",g.jsx("b",{children:o})]}),g.jsxs("li",{children:["API key: ",g.jsx("b",{children:a})]})]},s))}),g.jsxs("span",{children:[i?"Do you want to ignore duplicated servers":"Do you want to save this server anyway","?"]})]}),g.jsxs(Qa,{children:[g.jsx(_t,{color:"link",onClick:n,children:i?"Ignore duplicates":"Discard"}),g.jsx(_t,{color:"primary",onClick:r,children:"Save anyway"})]})]})},qje=e=>t=>{t.preventDefault(),e()},fW=({onSubmit:e,initialValues:t,children:n,title:r})=>{const[i,o]=F.useState((t==null?void 0:t.name)??""),[a,s]=F.useState((t==null?void 0:t.url)??""),[c,u]=F.useState((t==null?void 0:t.apiKey)??""),h=qje(()=>e({name:i,url:a,apiKey:c}));return g.jsxs("form",{className:"server-form",name:"serverForm",onSubmit:h,children:[g.jsxs(qt,{className:"mb-3",title:r,children:[g.jsx(vg,{value:i,onChange:o,children:"Name"}),g.jsx(vg,{type:"url",value:a,onChange:s,children:"URL"}),g.jsx(vg,{value:c,onChange:u,children:"API key"})]}),g.jsx("div",{className:"text-end",children:n})]})},c8=4e3,f8=({type:e})=>g.jsx("div",{className:"mt-3",children:g.jsxs(Tr,{type:e,children:[e==="success"&&"Servers properly imported. You can now select one from the list :)",e==="error"&&"The servers could not be imported. Make sure the format is correct."]})}),dW=({servers:e,createServers:t})=>{const{ImportServersBtn:n,useTimeoutToggle:r}=Co(dW),i=oa(),o=uW(),a=!!Object.keys(e).length,[s,c]=r(!1,c8),[u,h]=r(!1,c8),[p,v]=cn(),[b,x]=F.useState(),_=F.useCallback(O=>{const[P]=_0(e,[O]);t([P]),i(`/server/${P.id}`)},[t,i,e]),w=F.useCallback(O=>{x(O),Object.values(e).some(({url:E,apiKey:T})=>O.url===E&&O.apiKey===T)?v():_(O)},[_,e,v]);return g.jsxs(dd,{children:[g.jsxs(fW,{title:g.jsx("h5",{className:"mb-0",children:"Add new server"}),onSubmit:w,children:[!a&&g.jsx(n,{tooltipPlacement:"top",onImport:c,onImportError:h}),a&&g.jsx(_t,{outline:!0,onClick:o,children:"Cancel"}),g.jsx(_t,{outline:!0,color:"primary",className:"ms-2",children:"Create server"})]}),s&&g.jsx(f8,{type:"success"}),u&&g.jsx(f8,{type:"error"}),g.jsx(cW,{isOpen:p,duplicatedServers:b?[b]:[],onDiscard:o,onSave:()=>b&&_(b)})]})},Hje=Eo(dW,["ImportServersBtn","useTimeoutToggle"]),hW=({server:e,className:t,children:n,textClassName:r})=>{const{DeleteServerModal:i}=Co(hW),[o,,a,s]=cn();return g.jsxs(g.Fragment,{children:[g.jsxs("button",{type:"button",className:Be(t,"p-0 bg-transparent border-0"),onClick:a,children:[!n&&g.jsx(Ge,{fixedWidth:!0,icon:FE}),g.jsx("span",{className:r,children:n??"Remove this server"})]}),g.jsx(i,{server:e,isOpen:o,toggle:s})]})},Gje=Eo(hW,["DeleteServerModal"]),Kje=({server:e,toggle:t,isOpen:n,deleteServer:r,redirectHome:i=!0})=>{const o=oa(),a=F.useRef(!1),s=()=>{a.current=!0,t()},c=()=>{a.current&&(r(e),i&&o("/"))};return g.jsxs(Zr,{isOpen:n,toggle:t,centered:!0,onClosed:c,children:[g.jsx(aa,{toggle:t,className:"text-danger",children:"Remove server"}),g.jsxs(Po,{children:[g.jsxs("p",{children:["Are you sure you want to remove ",g.jsx("b",{children:e?e.name:""}),"?"]}),g.jsx("p",{children:g.jsx("i",{children:"No data will be deleted, only the access to this server will be removed from this device. You can create it again at any moment."})})]}),g.jsxs(Qa,{children:[g.jsx(_t,{color:"link",onClick:t,children:"Cancel"}),g.jsx(_t,{color:"danger",onClick:s,children:"Delete"})]})]})},Yje=sW(({editServer:e,selectedServer:t,selectServer:n})=>{const r=uW(),{reconnect:i}=Zf();if(!Th(t))return null;const o=a=>{e(t.id,a),i==="true"&&n(t.id),r()};return g.jsx(dd,{children:g.jsxs(fW,{title:g.jsxs("h5",{className:"mb-0",children:['Edit "',t.name,'"']}),initialValues:t,onSubmit:o,children:[g.jsx(_t,{outline:!0,className:"me-2",onClick:r,children:"Cancel"}),g.jsx(_t,{outline:!0,color:"primary",children:"Save"})]})})}),Zje=Eo(Yje,["ServerError"]),pW=({createServers:e,servers:t,children:n,onImport:r=()=>{},onImportError:i=()=>{},tooltipPlacement:o="bottom",className:a=""})=>{const{ServersImporter:s}=Co(pW),c=Xi(),[u,h]=F.useState([]),[p,,v,b]=cn(),x=F.useRef([]),_=F.useRef([]),w=F.useCallback(T=>{e(T),r()},[e,r]),O=F.useCallback(async({target:T})=>{var A;return s.importServersFromFile((A=T.files)==null?void 0:A[0]).then(j=>{const{duplicatedServers:N,newServers:$}=Wje(t,j);x.current=_0(t,j),_.current=_0(t,$),N.length===0?w(x.current):(h(N),v())}).then(()=>{T.value=null}).catch(i)},[w,i,t,s,v]),P=F.useCallback(()=>{w(x.current),b()},[w,b]),E=F.useCallback(()=>{w(_.current),b()},[w,b]);return g.jsxs(g.Fragment,{children:[g.jsxs(_t,{outline:!0,id:"importBtn",className:a,onClick:()=>{var T;return(T=c.current)==null?void 0:T.click()},children:[g.jsx(Ge,{icon:gK,fixedWidth:!0})," ",n??"Import from file"]}),g.jsxs(Oi,{placement:o,target:"importBtn",children:["You can create servers by importing a CSV file with ",g.jsx("b",{children:"name"}),", ",g.jsx("b",{children:"apiKey"})," and ",g.jsx("b",{children:"url"})," columns."]}),g.jsx("input",{type:"file",accept:".csv",className:"d-none","aria-hidden":!0,ref:c,onChange:O,"data-testid":"csv-file-input"}),g.jsx(cW,{isOpen:p,duplicatedServers:u,onDiscard:E,onSave:P})]})},Xje=Eo(pW,["ServersImporter"]),mW=({servers:e,selectedServer:t})=>{const{DeleteServerButton:n}=Co(mW);return g.jsx(dd,{children:g.jsxs("div",{className:"server-error__container flex-column",children:[g.jsxs(za,{className:"w-100 mb-3 mb-md-5",type:"error",fullWidth:!0,children:[!Th(t)&&"Could not find this Shlink server.",Th(t)&&g.jsxs(g.Fragment,{children:[g.jsx("p",{children:"Oops! Could not connect to this Shlink server."}),"Make sure you have internet connection, and the server is properly configured and on-line."]})]}),g.jsx(tW,{servers:Object.values(e),children:g.jsxs("p",{className:"mb-md-3",children:["These are the Shlink servers currently configured. Choose one of them or ",g.jsx(Jt,{to:"/server/create",children:"add a new one"}),"."]})}),Th(t)&&g.jsx("div",{className:"container mt-3 mt-md-5",children:g.jsxs("p",{className:"fs-5 fw-normal lh-sm",children:["Alternatively, if you think you may have miss-configured this server, you can ",g.jsx(n,{server:t,className:"server-error__delete-btn",children:"remove it"})," or ",g.jsx(Jt,{to:`/server/${t.id}/edit?reconnect=true`,children:"edit it"}),"."]})})]})})},Qje=Eo(mW,["DeleteServerButton"]),Jje=4e3,vW=({servers:e})=>{const{ServersExporter:t,ImportServersBtn:n,useTimeoutToggle:r,ManageServersRow:i}=Co(vW),[o,a]=F.useState(""),s=F.useMemo(()=>Object.values(e),[e]),c=F.useMemo(()=>s.filter(({name:v,url:b})=>`${v} ${b}`.toLowerCase().match(o.toLowerCase())),[s,o]),u=s.some(({autoConnect:v})=>!!v),[h,p]=r(!1,Jje);return g.jsxs(dd,{className:"d-flex flex-column gap-3",children:[g.jsx(tm,{onChange:a}),g.jsxs("div",{className:"d-flex flex-column flex-md-row gap-2",children:[g.jsxs("div",{className:"d-flex gap-2",children:[g.jsx(n,{className:"flex-fill",onImportError:p,children:"Import servers"}),c.length>0&&g.jsxs(_t,{outline:!0,className:"flex-fill",onClick:async()=>t.exportServers(),children:[g.jsx(Ge,{icon:J8,fixedWidth:!0})," Export servers"]})]}),g.jsxs(_t,{outline:!0,color:"primary",className:"ms-md-auto",tag:Jt,to:"/server/create",children:[g.jsx(Ge,{icon:Hp,fixedWidth:!0})," Add a server"]})]}),g.jsx(qt,{children:g.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[g.jsx("thead",{className:"responsive-table__header",children:g.jsxs("tr",{children:[u&&g.jsx("th",{style:{width:"50px"},children:g.jsx("span",{className:"sr-only",children:"Auto-connect"})}),g.jsx("th",{children:"Name"}),g.jsx("th",{children:"Base URL"}),g.jsx("th",{children:g.jsx("span",{className:"sr-only",children:"Options"})})]})}),g.jsxs("tbody",{children:[!c.length&&g.jsx("tr",{className:"text-center",children:g.jsx("td",{colSpan:4,children:"No servers found."})}),c.map(v=>g.jsx(i,{server:v,hasAutoConnect:u},v.id))]})]})}),h&&g.jsx("div",{children:g.jsx(Tr,{type:"error",children:"The servers could not be imported. Make sure the format is correct."})})]})},eAe=Eo(vW,["ServersExporter","ImportServersBtn","useTimeoutToggle","ManageServersRow"]),gW=({server:e,hasAutoConnect:t})=>{const{ManageServersRowDropdown:n}=Co(gW);return g.jsxs("tr",{className:"responsive-table__row",children:[t&&g.jsx("td",{className:"responsive-table__cell","data-th":"Auto-connect",children:e.autoConnect&&g.jsxs(g.Fragment,{children:[g.jsx(Ge,{icon:Yh,className:"text-primary",id:"autoConnectIcon"}),g.jsx(Oi,{target:"autoConnectIcon",placement:"right",children:"Auto-connect to this server"})]})}),g.jsx("th",{className:"responsive-table__cell","data-th":"Name",children:g.jsx(Jt,{to:`/server/${e.id}`,children:e.name})}),g.jsx("td",{className:"responsive-table__cell","data-th":"Base URL",children:e.url}),g.jsx("td",{className:"responsive-table__cell text-end",children:g.jsx(n,{server:e})})]})},tAe=Eo(gW,["ManageServersRowDropdown"]),yW=({server:e,setAutoConnect:t})=>{const{DeleteServerModal:n}=Co(yW),[r,,i,o]=cn(),a=`/server/${e.id}`,{autoConnect:s}=e,c=s?mK:Qoe;return g.jsxs(I0,{minWidth:s?210:170,children:[g.jsxs(Ye,{tag:Jt,to:a,children:[g.jsx(Ge,{icon:hK,fixedWidth:!0})," Connect"]}),g.jsxs(Ye,{tag:Jt,to:`${a}/edit`,children:[g.jsx(Ge,{icon:UE,fixedWidth:!0})," Edit server"]}),g.jsxs(Ye,{onClick:()=>t(e,!s),children:[g.jsx(Ge,{icon:c,fixedWidth:!0})," ",s?"Do not a":"A","uto-connect"]}),g.jsx(Ye,{divider:!0,tag:"hr"}),g.jsxs(Ye,{className:"dropdown-item--danger",onClick:i,children:[g.jsx(Ge,{icon:FE,fixedWidth:!0})," Remove server"]}),g.jsx(n,{redirectHome:!1,server:e,isOpen:r,toggle:o})]})},nAe=Eo(yW,["DeleteServerModal"]),bW=(e,t)=>HF(e,t,{serializeError:n=>n}),rAe={},{actions:iAe,reducer:oAe}=An({name:"shlink/servers",initialState:rAe,reducers:{editServer:{prepare:(e,t)=>({payload:{serverId:e,serverData:t}}),reducer:(e,{payload:t})=>{const{serverId:n,serverData:r}=t;return e[n]?{...e,[n]:{...e[n],...r}}:e}},deleteServer:(e,{payload:t})=>(delete e[t.id],e),setAutoConnect:{prepare:({id:e},t)=>({payload:{serverId:e,autoConnect:t}}),reducer:(e,{payload:t})=>{const{serverId:n,autoConnect:r}=t;return e[n]?r?Object.fromEntries(Object.entries(e).map(([i,o])=>[i,{...o,autoConnect:i===n}])):{...e,[n]:{...e[n],autoConnect:r}}:e}},createServers:{prepare:e=>({payload:zje(e)}),reducer:(e,{payload:t})=>({...e,...t})}}}),{editServer:aAe,deleteServer:sAe,setAutoConnect:lAe,createServers:_W}=iAe,uAe=oAe,cAe=e=>_0({},Array.isArray(e)?e.filter(Y8):[]),fAe=e=>bW("shlink/remoteServers/fetchServers",async(t,{dispatch:n})=>{const r=await e.jsonRequest(`${Eg.homepage}/servers.json`),i=cAe(r);n(_W(i))}),cA="shlink/selectedServer",dAe="1.0.0",hAe="999.999.999",pAe="latest",mAe=e=>aW(e===pAe?hAe:e,dAe),vAe=ZF(e=>`${e.id}_${e.url}_${e.apiKey}`,async(e,t)=>t().then(({version:n})=>({version:mAe(n),printableVersion:oW(n)}))),d8=null,fA=jr(`${cA}/resetSelectedServer`),gAe=e=>bW(`${cA}/selectServer`,async(t,{dispatch:n,getState:r})=>{n(fA());const{servers:i}=r(),o=i[t];if(!o)return{serverNotFound:!0};try{const a=e(o),{version:s,printableVersion:c}=await vAe(o,()=>a.health());return{...o,version:s,printableVersion:c}}catch{return{...o,serverNotReachable:!0}}}),yAe=e=>An({name:cA,initialState:d8,reducers:{},extraReducers:t=>{t.addCase(fA,()=>d8),t.addCase(e.fulfilled,(n,{payload:r})=>r)}}),bAe=({servers:e,selectedServer:t})=>{const n=Object.values(e),r=()=>n.length===0?g.jsxs(Ye,{tag:Jt,to:"/server/create",children:[g.jsx(Ge,{icon:Hp})," ",g.jsx("span",{className:"ms-1",children:"Add a server"})]}):g.jsxs(g.Fragment,{children:[n.map(({name:i,id:o})=>g.jsx(Ye,{tag:Jt,to:`/server/${o}`,active:ZG(t)===o,children:i},o)),g.jsx(Ye,{divider:!0,tag:"hr"}),g.jsxs(Ye,{tag:Jt,to:"/manage-servers",children:[g.jsx(Ge,{icon:xk})," ",g.jsx("span",{className:"ms-1",children:"Manage servers"})]})]});return g.jsxs(em,{nav:!0,inNavbar:!0,children:[g.jsxs(Xa,{nav:!0,caret:!0,children:[g.jsx(Ge,{icon:xk})," ",g.jsx("span",{className:"ms-1",children:"Servers"})]}),g.jsx(pl,{end:!0,style:{right:0},children:r()})]})},_Ae=({document:e},t,n)=>{const r=e.createElement("a");r.setAttribute("href",t),r.setAttribute("download",n),r.style.visibility="hidden",e.body.appendChild(r),r.click(),e.body.removeChild(r)},xAe=(e,t,n)=>{const r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);_Ae(e,i,n)},wAe="shlink-servers.csv";class OAe{constructor(t,n,r){Ec(this,"exportServers",async()=>{const t=Object.values(this.storage.get("servers")??{}).map(XG);try{const n=this.jsonToCsv(t);xAe(this.window,n,wAe)}catch(n){console.error(n)}});this.storage=t,this.window=n,this.jsonToCsv=r}}const SAe=e=>typeof e.url=="string"&&typeof e.apiKey=="string"&&typeof e.name=="string",PAe=e=>Array.isArray(e)&&e.every(SAe);class CAe{constructor(t){this.csvToJson=t}async importServersFromFile(t){if(!t)throw new Error("No file provided");const n=await t.text(),r=await this.csvToJson(n);if(!PAe(r))throw new Error("Provided file does not have the right format.");return r}}const EAe=(e,t)=>{e.factory("ManageServers",eAe),e.decorator("ManageServers",b0),e.decorator("ManageServers",t(["selectedServer","servers"],["resetSelectedServer"])),e.factory("ManageServersRow",tAe),e.factory("ManageServersRowDropdown",nAe),e.decorator("ManageServersRowDropdown",t(null,["setAutoConnect"])),e.factory("CreateServer",Hje),e.decorator("CreateServer",b0),e.decorator("CreateServer",t(["selectedServer","servers"],["createServers","resetSelectedServer"])),e.factory("EditServer",Zje),e.decorator("EditServer",t(["selectedServer"],["editServer","selectServer","resetSelectedServer"])),e.serviceFactory("ServersDropdown",()=>bAe),e.decorator("ServersDropdown",t(["servers","selectedServer"])),e.serviceFactory("DeleteServerModal",()=>Kje),e.decorator("DeleteServerModal",t(null,["deleteServer"])),e.factory("DeleteServerButton",Gje),e.factory("ImportServersBtn",Xje),e.decorator("ImportServersBtn",t(["servers"],["createServers"])),e.factory("ServerError",Qje),e.decorator("ServerError",t(["servers","selectedServer"])),e.service("ServersImporter",CAe,"csvToJson"),e.service("ServersExporter",OAe,"Storage","window","jsonToCsv"),e.serviceFactory("selectServer",gAe,"buildShlinkApiClient","loadMercureInfo"),e.serviceFactory("createServers",()=>_W),e.serviceFactory("deleteServer",()=>sAe),e.serviceFactory("editServer",()=>aAe),e.serviceFactory("setAutoConnect",()=>lAe),e.serviceFactory("fetchServers",fAe,"HttpClient"),e.serviceFactory("resetSelectedServer",()=>fA),e.serviceFactory("selectedServerReducerCreator",yAe,"selectServer"),e.serviceFactory("selectedServerReducer",n=>n.reducer,"selectedServerReducerCreator")},xW={field:"dateCreated",dir:"DESC"},TAe={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},ui:{theme:_T()},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:xW}},{reducer:jAe,actions:AAe}=An({name:"shlink/settings",initialState:TAe,reducers:{setSettings:(e,{payload:t})=>z0(e,t)}}),{setSettings:kAe}=AAe,RAe=jAe,NAe=({settings:e,setSettings:t})=>g.jsx(dd,{children:g.jsx(Yoe,{settings:e,updateSettings:t,defaultShortUrlsListOrdering:xW})}),MAe=(e,t)=>{e.serviceFactory("Settings",()=>NAe),e.decorator("Settings",b0),e.decorator("Settings",t(["settings"],["setSettings","resetSelectedServer"])),e.serviceFactory("setSettings",()=>kAe)};var qO,h8;function LAe(){return h8||(h8=1,qO=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(r,i,o){n.o(r,i)||Object.defineProperty(r,i,{enumerable:!0,get:o})},n.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,i){if(1&i&&(r=n(r)),8&i||4&i&&typeof r=="object"&&r&&r.__esModule)return r;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:r}),2&i&&typeof r!="string")for(var a in r)n.d(o,a,(function(s){return r[s]}).bind(null,a));return o},n.n=function(r){var i=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(i,"a",i),i},n.o=function(r,i){return Object.prototype.hasOwnProperty.call(r,i)},n.p="",n(n.s=32)}([function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch{typeof window=="object"&&(n=window)}e.exports=n},function(e,t,n){var r=n(6),i=Object.keys||function(x){var _=[];for(var w in x)_.push(w);return _};e.exports=p;var o=n(5);o.inherits=n(2);var a=n(23),s=n(14);o.inherits(p,a);for(var c=i(s.prototype),u=0;u + * @license MIT + */var i=n(38),o=n(39),a=n(40);function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(M,D){if(s()=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|M}function _(M,D){if(u.isBuffer(M))return M.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(M)||M instanceof ArrayBuffer))return M.byteLength;typeof M!="string"&&(M=""+M);var Y=M.length;if(Y===0)return 0;for(var ue=!1;;)switch(D){case"ascii":case"latin1":case"binary":return Y;case"utf8":case"utf-8":case void 0:return ce(M).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*Y;case"hex":return Y>>>1;case"base64":return de(M).length;default:if(ue)return ce(M).length;D=(""+D).toLowerCase(),ue=!0}}function w(M,D,Y){var ue=M[D];M[D]=M[Y],M[Y]=ue}function O(M,D,Y,ue,ie){if(M.length===0)return-1;if(typeof Y=="string"?(ue=Y,Y=0):Y>2147483647?Y=2147483647:Y<-2147483648&&(Y=-2147483648),Y=+Y,isNaN(Y)&&(Y=ie?0:M.length-1),Y<0&&(Y=M.length+Y),Y>=M.length){if(ie)return-1;Y=M.length-1}else if(Y<0){if(!ie)return-1;Y=0}if(typeof D=="string"&&(D=u.from(D,ue)),u.isBuffer(D))return D.length===0?-1:P(M,D,Y,ue,ie);if(typeof D=="number")return D&=255,u.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?ie?Uint8Array.prototype.indexOf.call(M,D,Y):Uint8Array.prototype.lastIndexOf.call(M,D,Y):P(M,[D],Y,ue,ie);throw new TypeError("val must be string, number or Buffer")}function P(M,D,Y,ue,ie){var he,Se=1,Fe=M.length,ge=D.length;if(ue!==void 0&&((ue=String(ue).toLowerCase())==="ucs2"||ue==="ucs-2"||ue==="utf16le"||ue==="utf-16le")){if(M.length<2||D.length<2)return-1;Se=2,Fe/=2,ge/=2,Y/=2}function Ee(Ue,qe){return Se===1?Ue[qe]:Ue.readUInt16BE(qe*Se)}if(ie){var je=-1;for(he=Y;heFe&&(Y=Fe-ge),he=Y;he>=0;he--){for(var Me=!0,He=0;Heie&&(ue=ie):ue=ie;var he=D.length;if(he%2!=0)throw new TypeError("Invalid hex string");ue>he/2&&(ue=he/2);for(var Se=0;Se>8,ge=Se%256,Ee.push(ge),Ee.push(Fe);return Ee}(D,M.length-Y),M,Y,ue)}function W(M,D,Y){return D===0&&Y===M.length?i.fromByteArray(M):i.fromByteArray(M.slice(D,Y))}function B(M,D,Y){Y=Math.min(M.length,Y);for(var ue=[],ie=D;ie239?4:Ee>223?3:Ee>191?2:1;if(ie+Me<=Y)switch(Me){case 1:Ee<128&&(je=Ee);break;case 2:(192&(he=M[ie+1]))==128&&(ge=(31&Ee)<<6|63&he)>127&&(je=ge);break;case 3:he=M[ie+1],Se=M[ie+2],(192&he)==128&&(192&Se)==128&&(ge=(15&Ee)<<12|(63&he)<<6|63&Se)>2047&&(ge<55296||ge>57343)&&(je=ge);break;case 4:he=M[ie+1],Se=M[ie+2],Fe=M[ie+3],(192&he)==128&&(192&Se)==128&&(192&Fe)==128&&(ge=(15&Ee)<<18|(63&he)<<12|(63&Se)<<6|63&Fe)>65535&&ge<1114112&&(je=ge)}je===null?(je=65533,Me=1):je>65535&&(je-=65536,ue.push(je>>>10&1023|55296),je=56320|1023&je),ue.push(je),ie+=Me}return function(He){var Ue=He.length;if(Ue<=V)return String.fromCharCode.apply(String,He);for(var qe="",ye=0;yethis.length||((ue===void 0||ue>this.length)&&(ue=this.length),ue<=0)||(ue>>>=0)<=(Y>>>=0))return"";for(D||(D="utf8");;)switch(D){case"hex":return Q(this,Y,ue);case"utf8":case"utf-8":return B(this,Y,ue);case"ascii":return H(this,Y,ue);case"latin1":case"binary":return J(this,Y,ue);case"base64":return W(this,Y,ue);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return re(this,Y,ue);default:if(ie)throw new TypeError("Unknown encoding: "+D);D=(D+"").toLowerCase(),ie=!0}}).apply(this,arguments)},u.prototype.equals=function(M){if(!u.isBuffer(M))throw new TypeError("Argument must be a Buffer");return this===M||u.compare(this,M)===0},u.prototype.inspect=function(){var M="",D=t.INSPECT_MAX_BYTES;return this.length>0&&(M=this.toString("hex",0,D).match(/.{2}/g).join(" "),this.length>D&&(M+=" ... ")),""},u.prototype.compare=function(M,D,Y,ue,ie){if(!u.isBuffer(M))throw new TypeError("Argument must be a Buffer");if(D===void 0&&(D=0),Y===void 0&&(Y=M?M.length:0),ue===void 0&&(ue=0),ie===void 0&&(ie=this.length),D<0||Y>M.length||ue<0||ie>this.length)throw new RangeError("out of range index");if(ue>=ie&&D>=Y)return 0;if(ue>=ie)return-1;if(D>=Y)return 1;if(D>>>=0,Y>>>=0,ue>>>=0,ie>>>=0,this===M)return 0;for(var he=ie-ue,Se=Y-D,Fe=Math.min(he,Se),ge=this.slice(ue,ie),Ee=M.slice(D,Y),je=0;jeie)&&(Y=ie),M.length>0&&(Y<0||D<0)||D>this.length)throw new RangeError("Attempt to write outside buffer bounds");ue||(ue="utf8");for(var he=!1;;)switch(ue){case"hex":return E(this,M,D,Y);case"utf8":case"utf-8":return T(this,M,D,Y);case"ascii":return A(this,M,D,Y);case"latin1":case"binary":return j(this,M,D,Y);case"base64":return N(this,M,D,Y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $(this,M,D,Y);default:if(he)throw new TypeError("Unknown encoding: "+ue);ue=(""+ue).toLowerCase(),he=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var V=4096;function H(M,D,Y){var ue="";Y=Math.min(M.length,Y);for(var ie=D;ieue)&&(Y=ue);for(var ie="",he=D;heY)throw new RangeError("Trying to access beyond buffer length")}function se(M,D,Y,ue,ie,he){if(!u.isBuffer(M))throw new TypeError('"buffer" argument must be a Buffer instance');if(D>ie||DM.length)throw new RangeError("Index out of range")}function oe(M,D,Y,ue){D<0&&(D=65535+D+1);for(var ie=0,he=Math.min(M.length-Y,2);ie>>8*(ue?ie:1-ie)}function K(M,D,Y,ue){D<0&&(D=4294967295+D+1);for(var ie=0,he=Math.min(M.length-Y,4);ie>>8*(ue?ie:3-ie)&255}function G(M,D,Y,ue,ie,he){if(Y+ue>M.length)throw new RangeError("Index out of range");if(Y<0)throw new RangeError("Index out of range")}function z(M,D,Y,ue,ie){return ie||G(M,0,Y,4),o.write(M,D,Y,ue,23,4),Y+4}function ne(M,D,Y,ue,ie){return ie||G(M,0,Y,8),o.write(M,D,Y,ue,52,8),Y+8}u.prototype.slice=function(M,D){var Y,ue=this.length;if(M=~~M,D=D===void 0?ue:~~D,M<0?(M+=ue)<0&&(M=0):M>ue&&(M=ue),D<0?(D+=ue)<0&&(D=0):D>ue&&(D=ue),D0&&(ie*=256);)ue+=this[M+--D]*ie;return ue},u.prototype.readUInt8=function(M,D){return D||ae(M,1,this.length),this[M]},u.prototype.readUInt16LE=function(M,D){return D||ae(M,2,this.length),this[M]|this[M+1]<<8},u.prototype.readUInt16BE=function(M,D){return D||ae(M,2,this.length),this[M]<<8|this[M+1]},u.prototype.readUInt32LE=function(M,D){return D||ae(M,4,this.length),(this[M]|this[M+1]<<8|this[M+2]<<16)+16777216*this[M+3]},u.prototype.readUInt32BE=function(M,D){return D||ae(M,4,this.length),16777216*this[M]+(this[M+1]<<16|this[M+2]<<8|this[M+3])},u.prototype.readIntLE=function(M,D,Y){M|=0,D|=0,Y||ae(M,D,this.length);for(var ue=this[M],ie=1,he=0;++he=(ie*=128)&&(ue-=Math.pow(2,8*D)),ue},u.prototype.readIntBE=function(M,D,Y){M|=0,D|=0,Y||ae(M,D,this.length);for(var ue=D,ie=1,he=this[M+--ue];ue>0&&(ie*=256);)he+=this[M+--ue]*ie;return he>=(ie*=128)&&(he-=Math.pow(2,8*D)),he},u.prototype.readInt8=function(M,D){return D||ae(M,1,this.length),128&this[M]?-1*(255-this[M]+1):this[M]},u.prototype.readInt16LE=function(M,D){D||ae(M,2,this.length);var Y=this[M]|this[M+1]<<8;return 32768&Y?4294901760|Y:Y},u.prototype.readInt16BE=function(M,D){D||ae(M,2,this.length);var Y=this[M+1]|this[M]<<8;return 32768&Y?4294901760|Y:Y},u.prototype.readInt32LE=function(M,D){return D||ae(M,4,this.length),this[M]|this[M+1]<<8|this[M+2]<<16|this[M+3]<<24},u.prototype.readInt32BE=function(M,D){return D||ae(M,4,this.length),this[M]<<24|this[M+1]<<16|this[M+2]<<8|this[M+3]},u.prototype.readFloatLE=function(M,D){return D||ae(M,4,this.length),o.read(this,M,!0,23,4)},u.prototype.readFloatBE=function(M,D){return D||ae(M,4,this.length),o.read(this,M,!1,23,4)},u.prototype.readDoubleLE=function(M,D){return D||ae(M,8,this.length),o.read(this,M,!0,52,8)},u.prototype.readDoubleBE=function(M,D){return D||ae(M,8,this.length),o.read(this,M,!1,52,8)},u.prototype.writeUIntLE=function(M,D,Y,ue){M=+M,D|=0,Y|=0,ue||se(this,M,D,Y,Math.pow(2,8*Y)-1,0);var ie=1,he=0;for(this[D]=255&M;++he=0&&(he*=256);)this[D+ie]=M/he&255;return D+Y},u.prototype.writeUInt8=function(M,D,Y){return M=+M,D|=0,Y||se(this,M,D,1,255,0),u.TYPED_ARRAY_SUPPORT||(M=Math.floor(M)),this[D]=255&M,D+1},u.prototype.writeUInt16LE=function(M,D,Y){return M=+M,D|=0,Y||se(this,M,D,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[D]=255&M,this[D+1]=M>>>8):oe(this,M,D,!0),D+2},u.prototype.writeUInt16BE=function(M,D,Y){return M=+M,D|=0,Y||se(this,M,D,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[D]=M>>>8,this[D+1]=255&M):oe(this,M,D,!1),D+2},u.prototype.writeUInt32LE=function(M,D,Y){return M=+M,D|=0,Y||se(this,M,D,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[D+3]=M>>>24,this[D+2]=M>>>16,this[D+1]=M>>>8,this[D]=255&M):K(this,M,D,!0),D+4},u.prototype.writeUInt32BE=function(M,D,Y){return M=+M,D|=0,Y||se(this,M,D,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[D]=M>>>24,this[D+1]=M>>>16,this[D+2]=M>>>8,this[D+3]=255&M):K(this,M,D,!1),D+4},u.prototype.writeIntLE=function(M,D,Y,ue){if(M=+M,D|=0,!ue){var ie=Math.pow(2,8*Y-1);se(this,M,D,Y,ie-1,-ie)}var he=0,Se=1,Fe=0;for(this[D]=255&M;++he>0)-Fe&255;return D+Y},u.prototype.writeIntBE=function(M,D,Y,ue){if(M=+M,D|=0,!ue){var ie=Math.pow(2,8*Y-1);se(this,M,D,Y,ie-1,-ie)}var he=Y-1,Se=1,Fe=0;for(this[D+he]=255&M;--he>=0&&(Se*=256);)M<0&&Fe===0&&this[D+he+1]!==0&&(Fe=1),this[D+he]=(M/Se>>0)-Fe&255;return D+Y},u.prototype.writeInt8=function(M,D,Y){return M=+M,D|=0,Y||se(this,M,D,1,127,-128),u.TYPED_ARRAY_SUPPORT||(M=Math.floor(M)),M<0&&(M=255+M+1),this[D]=255&M,D+1},u.prototype.writeInt16LE=function(M,D,Y){return M=+M,D|=0,Y||se(this,M,D,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[D]=255&M,this[D+1]=M>>>8):oe(this,M,D,!0),D+2},u.prototype.writeInt16BE=function(M,D,Y){return M=+M,D|=0,Y||se(this,M,D,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[D]=M>>>8,this[D+1]=255&M):oe(this,M,D,!1),D+2},u.prototype.writeInt32LE=function(M,D,Y){return M=+M,D|=0,Y||se(this,M,D,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[D]=255&M,this[D+1]=M>>>8,this[D+2]=M>>>16,this[D+3]=M>>>24):K(this,M,D,!0),D+4},u.prototype.writeInt32BE=function(M,D,Y){return M=+M,D|=0,Y||se(this,M,D,4,2147483647,-2147483648),M<0&&(M=4294967295+M+1),u.TYPED_ARRAY_SUPPORT?(this[D]=M>>>24,this[D+1]=M>>>16,this[D+2]=M>>>8,this[D+3]=255&M):K(this,M,D,!1),D+4},u.prototype.writeFloatLE=function(M,D,Y){return z(this,M,D,!0,Y)},u.prototype.writeFloatBE=function(M,D,Y){return z(this,M,D,!1,Y)},u.prototype.writeDoubleLE=function(M,D,Y){return ne(this,M,D,!0,Y)},u.prototype.writeDoubleBE=function(M,D,Y){return ne(this,M,D,!1,Y)},u.prototype.copy=function(M,D,Y,ue){if(Y||(Y=0),ue||ue===0||(ue=this.length),D>=M.length&&(D=M.length),D||(D=0),ue>0&&ue=this.length)throw new RangeError("sourceStart out of bounds");if(ue<0)throw new RangeError("sourceEnd out of bounds");ue>this.length&&(ue=this.length),M.length-D=0;--ie)M[ie+D]=this[ie+Y];else if(he<1e3||!u.TYPED_ARRAY_SUPPORT)for(ie=0;ie>>=0,Y=Y===void 0?this.length:Y>>>0,M||(M=0),typeof M=="number")for(he=D;he55295&&Y<57344){if(!ie){if(Y>56319){(D-=3)>-1&&he.push(239,191,189);continue}if(Se+1===ue){(D-=3)>-1&&he.push(239,191,189);continue}ie=Y;continue}if(Y<56320){(D-=3)>-1&&he.push(239,191,189),ie=Y;continue}Y=65536+(ie-55296<<10|Y-56320)}else ie&&(D-=3)>-1&&he.push(239,191,189);if(ie=null,Y<128){if((D-=1)<0)break;he.push(Y)}else if(Y<2048){if((D-=2)<0)break;he.push(Y>>6|192,63&Y|128)}else if(Y<65536){if((D-=3)<0)break;he.push(Y>>12|224,Y>>6&63|128,63&Y|128)}else{if(!(Y<1114112))throw new Error("Invalid code point");if((D-=4)<0)break;he.push(Y>>18|240,Y>>12&63|128,Y>>6&63|128,63&Y|128)}}return he}function de(M){return i.toByteArray(function(D){if((D=function(Y){return Y.trim?Y.trim():Y.replace(/^\s+|\s+$/g,"")}(D).replace(X,"")).length<2)return"";for(;D.length%4!=0;)D+="=";return D}(M))}function be(M,D,Y,ue){for(var ie=0;ie=D.length||ie>=M.length);++ie)D[ie+Y]=M[ie];return ie}}).call(this,n(0))},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(w){if(n===setTimeout)return setTimeout(w,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(w,0);try{return n(w,0)}catch{try{return n.call(null,w,0)}catch{return n.call(this,w,0)}}}(function(){try{n=typeof setTimeout=="function"?setTimeout:o}catch{n=o}try{r=typeof clearTimeout=="function"?clearTimeout:a}catch{r=a}})();var c,u=[],h=!1,p=-1;function v(){h&&c&&(h=!1,c.length?u=c.concat(u):p=-1,u.length&&b())}function b(){if(!h){var w=s(v);h=!0;for(var O=u.length;O;){for(c=u,u=[];++p1)for(var P=1;P=0&&(s._idleTimeoutId=setTimeout(function(){s._onTimeout&&s._onTimeout()},c))},n(35),t.setImmediate=typeof self<"u"&&self.setImmediate||r!==void 0&&r.setImmediate||this&&this.setImmediate,t.clearImmediate=typeof self<"u"&&self.clearImmediate||r!==void 0&&r.clearImmediate||this&&this.clearImmediate}).call(this,n(0))},function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(a){return typeof a=="function"}function i(a){return typeof a=="object"&&a!==null}function o(a){return a===void 0}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(a){if(!function(s){return typeof s=="number"}(a)||a<0||isNaN(a))throw TypeError("n must be a positive number");return this._maxListeners=a,this},n.prototype.emit=function(a){var s,c,u,h,p,v;if(this._events||(this._events={}),a==="error"&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((s=arguments[1])instanceof Error)throw s;var b=new Error('Uncaught, unspecified "error" event. ('+s+")");throw b.context=s,b}if(o(c=this._events[a]))return!1;if(r(c))switch(arguments.length){case 1:c.call(this);break;case 2:c.call(this,arguments[1]);break;case 3:c.call(this,arguments[1],arguments[2]);break;default:h=Array.prototype.slice.call(arguments,1),c.apply(this,h)}else if(i(c))for(h=Array.prototype.slice.call(arguments,1),u=(v=c.slice()).length,p=0;p0&&this._events[a].length>c&&(this._events[a].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[a].length),typeof console.trace=="function"&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(a,s){if(!r(s))throw TypeError("listener must be a function");var c=!1;function u(){this.removeListener(a,u),c||(c=!0,s.apply(this,arguments))}return u.listener=s,this.on(a,u),this},n.prototype.removeListener=function(a,s){var c,u,h,p;if(!r(s))throw TypeError("listener must be a function");if(!this._events||!this._events[a])return this;if(h=(c=this._events[a]).length,u=-1,c===s||r(c.listener)&&c.listener===s)delete this._events[a],this._events.removeListener&&this.emit("removeListener",a,s);else if(i(c)){for(p=h;p-- >0;)if(c[p]===s||c[p].listener&&c[p].listener===s){u=p;break}if(u<0)return this;c.length===1?(c.length=0,delete this._events[a]):c.splice(u,1),this._events.removeListener&&this.emit("removeListener",a,s)}return this},n.prototype.removeAllListeners=function(a){var s,c;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[a]&&delete this._events[a],this;if(arguments.length===0){for(s in this._events)s!=="removeListener"&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events={},this}if(r(c=this._events[a]))this.removeListener(a,c);else if(c)for(;c.length;)this.removeListener(a,c[c.length-1]);return delete this._events[a],this},n.prototype.listeners=function(a){return this._events&&this._events[a]?r(this._events[a])?[this._events[a]]:this._events[a].slice():[]},n.prototype.listenerCount=function(a){if(this._events){var s=this._events[a];if(r(s))return 1;if(s)return s.length}return 0},n.listenerCount=function(a,s){return a.listenerCount(s)}},function(e,t,n){(t=e.exports=n(23)).Stream=t,t.Readable=t,t.Writable=n(14),t.Duplex=n(1),t.Transform=n(27),t.PassThrough=n(45)},function(e,t,n){(function(r,i,o){var a=n(6);function s(B){var V=this;this.next=null,this.entry=null,this.finish=function(){(function(H,J,Q){var re=H.entry;for(H.entry=null;re;){var ae=re.callback;J.pendingcb--,ae(void 0),re=re.next}J.corkedRequestsFree?J.corkedRequestsFree.next=H:J.corkedRequestsFree=H})(V,B)}}e.exports=E;var c,u=!r.browser&&["v0.10","v0.9."].indexOf(r.version.slice(0,5))>-1?i:a.nextTick;E.WritableState=P;var h=n(5);h.inherits=n(2);var p,v={deprecate:n(44)},b=n(24),x=n(7).Buffer,_=o.Uint8Array||function(){},w=n(25);function O(){}function P(B,V){c=c||n(1),B=B||{};var H=V instanceof c;this.objectMode=!!B.objectMode,H&&(this.objectMode=this.objectMode||!!B.writableObjectMode);var J=B.highWaterMark,Q=B.writableHighWaterMark,re=this.objectMode?16:16384;this.highWaterMark=J||J===0?J:H&&(Q||Q===0)?Q:re,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ae=B.decodeStrings===!1;this.decodeStrings=!ae,this.defaultEncoding=B.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(se){(function(oe,K){var G=oe._writableState,z=G.sync,ne=G.writecb;if(function(le){le.writing=!1,le.writecb=null,le.length-=le.writelen,le.writelen=0}(G),K)(function(le,ce,de,be,M){--ce.pendingcb,de?(a.nextTick(M,be),a.nextTick(W,le,ce),le._writableState.errorEmitted=!0,le.emit("error",be)):(M(be),le._writableState.errorEmitted=!0,le.emit("error",be),W(le,ce))})(oe,G,z,K,ne);else{var X=N(G);X||G.corked||G.bufferProcessing||!G.bufferedRequest||j(oe,G),z?u(A,oe,G,X,ne):A(oe,G,X,ne)}})(V,se)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}function E(B){if(c=c||n(1),!(p.call(E,this)||this instanceof c))return new E(B);this._writableState=new P(B,this),this.writable=!0,B&&(typeof B.write=="function"&&(this._write=B.write),typeof B.writev=="function"&&(this._writev=B.writev),typeof B.destroy=="function"&&(this._destroy=B.destroy),typeof B.final=="function"&&(this._final=B.final)),b.call(this)}function T(B,V,H,J,Q,re,ae){V.writelen=J,V.writecb=ae,V.writing=!0,V.sync=!0,H?B._writev(Q,V.onwrite):B._write(Q,re,V.onwrite),V.sync=!1}function A(B,V,H,J){H||function(Q,re){re.length===0&&re.needDrain&&(re.needDrain=!1,Q.emit("drain"))}(B,V),V.pendingcb--,J(),W(B,V)}function j(B,V){V.bufferProcessing=!0;var H=V.bufferedRequest;if(B._writev&&H&&H.next){var J=V.bufferedRequestCount,Q=new Array(J),re=V.corkedRequestsFree;re.entry=H;for(var ae=0,se=!0;H;)Q[ae]=H,H.isBuf||(se=!1),H=H.next,ae+=1;Q.allBuffers=se,T(B,V,!0,V.length,Q,"",re.finish),V.pendingcb++,V.lastBufferedRequest=null,re.next?(V.corkedRequestsFree=re.next,re.next=null):V.corkedRequestsFree=new s(V),V.bufferedRequestCount=0}else{for(;H;){var oe=H.chunk,K=H.encoding,G=H.callback;if(T(B,V,!1,V.objectMode?1:oe.length,oe,K,G),H=H.next,V.bufferedRequestCount--,V.writing)break}H===null&&(V.lastBufferedRequest=null)}V.bufferedRequest=H,V.bufferProcessing=!1}function N(B){return B.ending&&B.length===0&&B.bufferedRequest===null&&!B.finished&&!B.writing}function $(B,V){B._final(function(H){V.pendingcb--,H&&B.emit("error",H),V.prefinished=!0,B.emit("prefinish"),W(B,V)})}function W(B,V){var H=N(V);return H&&(function(J,Q){Q.prefinished||Q.finalCalled||(typeof J._final=="function"?(Q.pendingcb++,Q.finalCalled=!0,a.nextTick($,J,Q)):(Q.prefinished=!0,J.emit("prefinish")))}(B,V),V.pendingcb===0&&(V.finished=!0,B.emit("finish"))),H}h.inherits(E,b),P.prototype.getBuffer=function(){for(var B=this.bufferedRequest,V=[];B;)V.push(B),B=B.next;return V},function(){try{Object.defineProperty(P.prototype,"buffer",{get:v.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(E,Symbol.hasInstance,{value:function(B){return!!p.call(this,B)||this===E&&B&&B._writableState instanceof P}})):p=function(B){return B instanceof this},E.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},E.prototype.write=function(B,V,H){var J=this._writableState,Q=!1,re=!J.objectMode&&function(ae){return x.isBuffer(ae)||ae instanceof _}(B);return re&&!x.isBuffer(B)&&(B=function(ae){return x.from(ae)}(B)),typeof V=="function"&&(H=V,V=null),re?V="buffer":V||(V=J.defaultEncoding),typeof H!="function"&&(H=O),J.ended?function(ae,se){var oe=new Error("write after end");ae.emit("error",oe),a.nextTick(se,oe)}(this,H):(re||function(ae,se,oe,K){var G=!0,z=!1;return oe===null?z=new TypeError("May not write null values to stream"):typeof oe=="string"||oe===void 0||se.objectMode||(z=new TypeError("Invalid non-string/buffer chunk")),z&&(ae.emit("error",z),a.nextTick(K,z),G=!1),G}(this,J,B,H))&&(J.pendingcb++,Q=function(ae,se,oe,K,G,z){if(!oe){var ne=function(de,be,M){return de.objectMode||de.decodeStrings===!1||typeof be!="string"||(be=x.from(be,M)),be}(se,K,G);K!==ne&&(oe=!0,G="buffer",K=ne)}var X=se.objectMode?1:K.length;se.length+=X;var le=se.length-1))throw new TypeError("Unknown encoding: "+B);return this._writableState.defaultEncoding=B,this},Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),E.prototype._write=function(B,V,H){H(new Error("_write() is not implemented"))},E.prototype._writev=null,E.prototype.end=function(B,V,H){var J=this._writableState;typeof B=="function"?(H=B,B=null,V=null):typeof V=="function"&&(H=V,V=null),B!=null&&this.write(B,V),J.corked&&(J.corked=1,this.uncork()),J.ending||J.finished||function(Q,re,ae){re.ending=!0,W(Q,re),ae&&(re.finished?a.nextTick(ae):Q.once("finish",ae)),re.ended=!0,Q.writable=!1}(this,J,H)},Object.defineProperty(E.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(B){this._writableState&&(this._writableState.destroyed=B)}}),E.prototype.destroy=w.destroy,E.prototype._undestroy=w.undestroy,E.prototype._destroy=function(B,V){this.end(),V(B)}}).call(this,n(4),n(11).setImmediate,n(0))},function(e,t,n){(function(r,i,o){e.exports=function a(s,c,u){function h(b,x){if(!c[b]){if(!s[b]){var _=typeof _dereq_=="function"&&_dereq_;if(!x&&_)return _(b,!0);if(p)return p(b,!0);var w=new Error("Cannot find module '"+b+"'");throw w.code="MODULE_NOT_FOUND",w}var O=c[b]={exports:{}};s[b][0].call(O.exports,function(P){return h(s[b][1][P]||P)},O,O.exports,a,s,c,u)}return c[b].exports}for(var p=typeof _dereq_=="function"&&_dereq_,v=0;v0;){var P=O.shift();if(typeof P=="function"){var E=O.shift(),T=O.shift();P.call(E,T)}else P._settlePromises()}},b.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},b.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},b.prototype._reset=function(){this._isTickUsed=!1},s.exports=b,s.exports.firstLineError=u},{"./queue":26,"./schedule":29,"./util":36}],3:[function(a,s,c){s.exports=function(u,h,p,v){var b=!1,x=function(P,E){this._reject(E)},_=function(P,E){E.promiseRejectionQueued=!0,E.bindingPromise._then(x,x,null,this,P)},w=function(P,E){!(50397184&this._bitField)&&this._resolveCallback(E.target)},O=function(P,E){E.promiseRejectionQueued||this._reject(P)};u.prototype.bind=function(P){b||(b=!0,u.prototype._propagateFrom=v.propagateFromFunction(),u.prototype._boundValue=v.boundValueFunction());var E=p(P),T=new u(h);T._propagateFrom(this,1);var A=this._target();if(T._setBoundTo(E),E instanceof u){var j={promiseRejectionQueued:!1,promise:T,target:A,bindingPromise:E};A._then(h,_,void 0,T,j),E._then(w,O,void 0,T,j),T._setOnCancel(E)}else T._resolveCallback(A);return T},u.prototype._setBoundTo=function(P){P!==void 0?(this._bitField=2097152|this._bitField,this._boundTo=P):this._bitField=-2097153&this._bitField},u.prototype._isBound=function(){return(2097152&this._bitField)==2097152},u.bind=function(P,E){return u.resolve(E).bind(P)}}},{}],4:[function(a,s,c){var u;typeof Promise<"u"&&(u=Promise);var h=a("./promise")();h.noConflict=function(){try{Promise===h&&(Promise=u)}catch{}return h},s.exports=h},{"./promise":22}],5:[function(a,s,c){var u=Object.create;if(u){var h=u(null),p=u(null);h[" size"]=p[" size"]=0}s.exports=function(v){var b=a("./util"),x=b.canEvaluate;function _(P){return function(E,T){var A;if(E!=null&&(A=E[T]),typeof A!="function"){var j="Object "+b.classString(E)+" has no method '"+b.toString(T)+"'";throw new v.TypeError(j)}return A}(P,this.pop()).apply(P,this)}function w(P){return P[this]}function O(P){var E=+this;return E<0&&(E=Math.max(0,E+P.length)),P[E]}b.isIdentifier,v.prototype.call=function(P){var E=[].slice.call(arguments,1);return E.push(P),this._then(_,void 0,void 0,E,void 0)},v.prototype.get=function(P){var E;if(typeof P=="number")E=O;else if(x){var T=(void 0)(P);E=T!==null?T:w}else E=w;return this._then(E,void 0,void 0,P,void 0)}}},{"./util":36}],6:[function(a,s,c){s.exports=function(u,h,p,v){var b=a("./util"),x=b.tryCatch,_=b.errorObj,w=u._async;u.prototype.break=u.prototype.cancel=function(){if(!v.cancellation())return this._warn("cancellation is disabled");for(var O=this,P=O;O._isCancellable();){if(!O._cancelBy(P)){P._isFollowing()?P._followee().cancel():P._cancelBranched();break}var E=O._cancellationParent;if(E==null||!E._isCancellable()){O._isFollowing()?O._followee().cancel():O._cancelBranched();break}O._isFollowing()&&O._followee().cancel(),O._setWillBeCancelled(),P=O,O=E}},u.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},u.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===void 0||this._branchesRemainingToCancel<=0},u.prototype._cancelBy=function(O){return O===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},u.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},u.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),w.invoke(this._cancelPromises,this,void 0))},u.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},u.prototype._unsetOnCancel=function(){this._onCancelField=void 0},u.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},u.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},u.prototype._doInvokeOnCancel=function(O,P){if(b.isArray(O))for(var E=0;E=0)return p[x]}return u.prototype._promiseCreated=function(){},u.prototype._pushContext=function(){},u.prototype._popContext=function(){return null},u._peekContext=u.prototype._peekContext=function(){},v.prototype._pushContext=function(){this._trace!==void 0&&(this._trace._promiseCreated=null,p.push(this._trace))},v.prototype._popContext=function(){if(this._trace!==void 0){var x=p.pop(),_=x._promiseCreated;return x._promiseCreated=null,_}return null},v.CapturedTrace=null,v.create=function(){if(h)return new v},v.deactivateLongStackTraces=function(){},v.activateLongStackTraces=function(){var x=u.prototype._pushContext,_=u.prototype._popContext,w=u._peekContext,O=u.prototype._peekContext,P=u.prototype._promiseCreated;v.deactivateLongStackTraces=function(){u.prototype._pushContext=x,u.prototype._popContext=_,u._peekContext=w,u.prototype._peekContext=O,u.prototype._promiseCreated=P,h=!1},h=!0,u.prototype._pushContext=v.prototype._pushContext,u.prototype._popContext=v.prototype._popContext,u._peekContext=u.prototype._peekContext=b,u.prototype._promiseCreated=function(){var E=this._peekContext();E&&E._promiseCreated==null&&(E._promiseCreated=this)}},v}},{}],9:[function(a,s,c){s.exports=function(u,h){var p,v,b,x=u._getDomain,_=u._async,w=a("./errors").Warning,O=a("./util"),P=O.canAttachTrace,E=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,T=/\((?:timers\.js):\d+:\d+\)/,A=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,j=null,N=null,$=!1,W=O.env("BLUEBIRD_DEBUG")!=0,B=!(O.env("BLUEBIRD_WARNINGS")==0||!W&&!O.env("BLUEBIRD_WARNINGS")),V=!(O.env("BLUEBIRD_LONG_STACK_TRACES")==0||!W&&!O.env("BLUEBIRD_LONG_STACK_TRACES")),H=O.env("BLUEBIRD_W_FORGOTTEN_RETURN")!=0&&(B||!!O.env("BLUEBIRD_W_FORGOTTEN_RETURN"));u.prototype.suppressUnhandledRejections=function(){var ye=this._target();ye._bitField=-1048577&ye._bitField|524288},u.prototype._ensurePossibleRejectionHandled=function(){if(!(524288&this._bitField)){this._setRejectionIsUnhandled();var ye=this;setTimeout(function(){ye._notifyUnhandledRejection()},1)}},u.prototype._notifyUnhandledRejectionIsHandled=function(){Se("rejectionHandled",p,void 0,this)},u.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},u.prototype._returnedNonUndefined=function(){return(268435456&this._bitField)!=0},u.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var ye=this._settledValue();this._setUnhandledRejectionIsNotified(),Se("unhandledRejection",v,ye,this)}},u.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},u.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField},u.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},u.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},u.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},u.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},u.prototype._warn=function(ye,we,Ae){return Y(ye,we,Ae||this)},u.onPossiblyUnhandledRejection=function(ye){var we=x();v=typeof ye=="function"?we===null?ye:O.domainBind(we,ye):void 0},u.onUnhandledRejectionHandled=function(ye){var we=x();p=typeof ye=="function"?we===null?ye:O.domainBind(we,ye):void 0};var J=function(){};u.longStackTraces=function(){if(_.haveItemsQueued()&&!qe.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created + + See http://goo.gl/MqrFmX +`);if(!qe.longStackTraces&&ge()){var ye=u.prototype._captureStackTrace,we=u.prototype._attachExtraTrace;qe.longStackTraces=!0,J=function(){if(_.haveItemsQueued()&&!qe.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created + + See http://goo.gl/MqrFmX +`);u.prototype._captureStackTrace=ye,u.prototype._attachExtraTrace=we,h.deactivateLongStackTraces(),_.enableTrampoline(),qe.longStackTraces=!1},u.prototype._captureStackTrace=M,u.prototype._attachExtraTrace=D,h.activateLongStackTraces(),_.disableTrampolineIfNecessary()}},u.hasLongStackTraces=function(){return qe.longStackTraces&&ge()};var Q=function(){try{if(typeof CustomEvent=="function"){var ye=new CustomEvent("CustomEvent");return O.global.dispatchEvent(ye),function(we,Ae){var ke=new CustomEvent(we.toLowerCase(),{detail:Ae,cancelable:!0});return!O.global.dispatchEvent(ke)}}return typeof Event=="function"?(ye=new Event("CustomEvent"),O.global.dispatchEvent(ye),function(we,Ae){var ke=new Event(we.toLowerCase(),{cancelable:!0});return ke.detail=Ae,!O.global.dispatchEvent(ke)}):((ye=document.createEvent("CustomEvent")).initCustomEvent("testingtheevent",!1,!0,{}),O.global.dispatchEvent(ye),function(we,Ae){var ke=document.createEvent("CustomEvent");return ke.initCustomEvent(we.toLowerCase(),!1,!0,Ae),!O.global.dispatchEvent(ke)})}catch{}return function(){return!1}}(),re=O.isNode?function(){return r.emit.apply(r,arguments)}:O.global?function(ye){var we="on"+ye.toLowerCase(),Ae=O.global[we];return!!Ae&&(Ae.apply(O.global,[].slice.call(arguments,1)),!0)}:function(){return!1};function ae(ye,we){return{promise:we}}var se={promiseCreated:ae,promiseFulfilled:ae,promiseRejected:ae,promiseResolved:ae,promiseCancelled:ae,promiseChained:function(ye,we,Ae){return{promise:we,child:Ae}},warning:function(ye,we){return{warning:we}},unhandledRejection:function(ye,we,Ae){return{reason:we,promise:Ae}},rejectionHandled:ae},oe=function(ye){var we=!1;try{we=re.apply(null,arguments)}catch(ke){_.throwLater(ke),we=!0}var Ae=!1;try{Ae=Q(ye,se[ye].apply(null,arguments))}catch(ke){_.throwLater(ke),Ae=!0}return Ae||we};function K(){return!1}function G(ye,we,Ae){var ke=this;try{ye(we,Ae,function(De){if(typeof De!="function")throw new TypeError("onCancel must be a function, got: "+O.toString(De));ke._attachCancellationCallback(De)})}catch(De){return De}}function z(ye){if(!this._isCancellable())return this;var we=this._onCancel();we!==void 0?O.isArray(we)?we.push(ye):this._setOnCancel([we,ye]):this._setOnCancel(ye)}function ne(){return this._onCancelField}function X(ye){this._onCancelField=ye}function le(){this._cancellationParent=void 0,this._onCancelField=void 0}function ce(ye,we){if(1&we){this._cancellationParent=ye;var Ae=ye._branchesRemainingToCancel;Ae===void 0&&(Ae=0),ye._branchesRemainingToCancel=Ae+1}2&we&&ye._isBound()&&this._setBoundTo(ye._boundTo)}u.config=function(ye){if("longStackTraces"in(ye=Object(ye))&&(ye.longStackTraces?u.longStackTraces():!ye.longStackTraces&&u.hasLongStackTraces()&&J()),"warnings"in ye){var we=ye.warnings;qe.warnings=!!we,H=qe.warnings,O.isObject(we)&&"wForgottenReturn"in we&&(H=!!we.wForgottenReturn)}if("cancellation"in ye&&ye.cancellation&&!qe.cancellation){if(_.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");u.prototype._clearCancellationData=le,u.prototype._propagateFrom=ce,u.prototype._onCancel=ne,u.prototype._setOnCancel=X,u.prototype._attachCancellationCallback=z,u.prototype._execute=G,de=ce,qe.cancellation=!0}return"monitoring"in ye&&(ye.monitoring&&!qe.monitoring?(qe.monitoring=!0,u.prototype._fireEvent=oe):!ye.monitoring&&qe.monitoring&&(qe.monitoring=!1,u.prototype._fireEvent=K)),u},u.prototype._fireEvent=K,u.prototype._execute=function(ye,we,Ae){try{ye(we,Ae)}catch(ke){return ke}},u.prototype._onCancel=function(){},u.prototype._setOnCancel=function(ye){},u.prototype._attachCancellationCallback=function(ye){},u.prototype._captureStackTrace=function(){},u.prototype._attachExtraTrace=function(){},u.prototype._clearCancellationData=function(){},u.prototype._propagateFrom=function(ye,we){};var de=function(ye,we){2&we&&ye._isBound()&&this._setBoundTo(ye._boundTo)};function be(){var ye=this._boundTo;return ye!==void 0&&ye instanceof u?ye.isFulfilled()?ye.value():void 0:ye}function M(){this._trace=new He(this._peekContext())}function D(ye,we){if(P(ye)){var Ae=this._trace;if(Ae!==void 0&&we&&(Ae=Ae._parent),Ae!==void 0)Ae.attachExtraTrace(ye);else if(!ye.__stackCleaned__){var ke=ie(ye);O.notEnumerableProp(ye,"stack",ke.message+` +`+ke.stack.join(` +`)),O.notEnumerableProp(ye,"__stackCleaned__",!0)}}}function Y(ye,we,Ae){if(qe.warnings){var ke,De=new w(ye);if(we)Ae._attachExtraTrace(De);else if(qe.longStackTraces&&(ke=u._peekContext()))ke.attachExtraTrace(De);else{var Ke=ie(De);De.stack=Ke.message+` +`+Ke.stack.join(` +`)}oe("warning",De)||he(De,"",!0)}}function ue(ye){for(var we=[],Ae=0;Ae0?function(ke){for(var De=ke.stack.replace(/\s+$/g,"").split(` +`),Ke=0;Ke0&&ke.name!="SyntaxError"&&(De=De.slice(Ke)),De}(ye):[" (No stack trace)"],{message:Ae,stack:ye.name=="SyntaxError"?we:ue(we)}}function he(ye,we,Ae){if(typeof console<"u"){var ke;if(O.isObject(ye)){var De=ye.stack;ke=we+N(De,ye)}else ke=we+String(ye);typeof b=="function"?b(ke,Ae):typeof console.log!="function"&&typeof console.log!="object"||console.log(ke)}}function Se(ye,we,Ae,ke){var De=!1;try{typeof we=="function"&&(De=!0,ye==="rejectionHandled"?we(ke):we(Ae,ke))}catch(Ke){_.throwLater(Ke)}ye==="unhandledRejection"?oe(ye,Ae,ke)||De||he(Ae,"Unhandled rejection "):oe(ye,ke)}function Fe(ye){var we;if(typeof ye=="function")we="[function "+(ye.name||"anonymous")+"]";else{if(we=ye&&typeof ye.toString=="function"?ye.toString():O.toString(ye),/\[object [a-zA-Z0-9$_]+\]/.test(we))try{we=JSON.stringify(ye)}catch{}we.length===0&&(we="(empty array)")}return"(<"+function(Ae){return Ae.length<41?Ae:Ae.substr(0,38)+"..."}(we)+">, no stack trace)"}function ge(){return typeof Ue=="function"}var Ee=function(){return!1},je=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function Me(ye){var we=ye.match(je);if(we)return{fileName:we[1],line:parseInt(we[2],10)}}function He(ye){this._parent=ye,this._promisesCreated=0;var we=this._length=1+(ye===void 0?0:ye._length);Ue(this,He),we>32&&this.uncycle()}O.inherits(He,Error),h.CapturedTrace=He,He.prototype.uncycle=function(){var ye=this._length;if(!(ye<2)){for(var we=[],Ae={},ke=0,De=this;De!==void 0;++ke)we.push(De),De=De._parent;for(ke=(ye=this._length=ke)-1;ke>=0;--ke){var Ke=we[ke].stack;Ae[Ke]===void 0&&(Ae[Ke]=ke)}for(ke=0;ke0&&(we[Xe-1]._parent=void 0,we[Xe-1]._length=1),we[ke]._parent=void 0,we[ke]._length=1;var bt=ke>0?we[ke-1]:this;Xe=0;--xt)we[xt]._length=Ot,Ot++;return}}}},He.prototype.attachExtraTrace=function(ye){if(!ye.__stackCleaned__){this.uncycle();for(var we=ie(ye),Ae=we.message,ke=[we.stack],De=this;De!==void 0;)ke.push(ue(De.stack.split(` +`))),De=De._parent;(function(Ke){for(var Xe=Ke[0],bt=1;bt=0;--kn)if(Ot[kn]===en){Gt=kn;break}for(kn=Gt;kn>=0;--kn){var Dn=Ot[kn];if(Xe[xt]!==Dn)break;Xe.pop(),xt--}Xe=Ot}})(ke),function(Ke){for(var Xe=0;Xe=0)return j=/@/,N=we,$=!0,function(Ke){Ke.stack=new Error().stack};try{throw new Error}catch(Ke){ke="stack"in Ke}return"stack"in De||!ke||typeof Error.stackTraceLimit!="number"?(N=function(Ke,Xe){return typeof Ke=="string"?Ke:typeof Xe!="object"&&typeof Xe!="function"||Xe.name===void 0||Xe.message===void 0?Fe(Xe):Xe.toString()},null):(j=ye,N=we,function(Ke){Error.stackTraceLimit+=6;try{throw new Error}catch(Xe){Ke.stack=Xe.stack}Error.stackTraceLimit-=6})}();typeof console<"u"&&console.warn!==void 0&&(b=function(ye){console.warn(ye)},O.isNode&&r.stderr.isTTY?b=function(ye,we){var Ae=we?"\x1B[33m":"\x1B[31m";console.warn(Ae+ye+`\x1B[0m +`)}:O.isNode||typeof new Error().stack!="string"||(b=function(ye,we){console.warn("%c"+ye,we?"color: darkorange":"color: red")}));var qe={warnings:B,longStackTraces:!1,cancellation:!1,monitoring:!1};return V&&u.longStackTraces(),{longStackTraces:function(){return qe.longStackTraces},warnings:function(){return qe.warnings},cancellation:function(){return qe.cancellation},monitoring:function(){return qe.monitoring},propagateFromFunction:function(){return de},boundValueFunction:function(){return be},checkForgottenReturns:function(ye,we,Ae,ke,De){if(ye===void 0&&we!==null&&H){if(De!==void 0&&De._returnedNonUndefined()||!(65535&ke._bitField))return;Ae&&(Ae+=" ");var Ke="",Xe="";if(we._trace){for(var bt=we._trace.stack.split(` +`),Ot=ue(bt),xt=Ot.length-1;xt>=0;--xt){var en=Ot[xt];if(!T.test(en)){var Gt=en.match(A);Gt&&(Ke="at "+Gt[1]+":"+Gt[2]+":"+Gt[3]+" ");break}}if(Ot.length>0){var kn=Ot[0];for(xt=0;xt0&&(Xe=` +`+bt[xt-1]);break}}}var Dn="a promise was created in a "+Ae+"handler "+Ke+"but was not returned from it, see http://goo.gl/rRqMUw"+Xe;ke._warn(Dn,!0,we)}},setBounds:function(ye,we){if(ge()){for(var Ae,ke,De=ye.stack.split(` +`),Ke=we.stack.split(` +`),Xe=-1,bt=-1,Ot=0;Ot=bt||(Ee=function(en){if(E.test(en))return!0;var Gt=Me(en);return!!(Gt&&Gt.fileName===Ae&&Xe<=Gt.line&&Gt.line<=bt)})}},warn:Y,deprecated:function(ye,we){var Ae=ye+" is deprecated and will be removed in a future version.";return we&&(Ae+=" Use "+we+" instead."),Y(Ae)},CapturedTrace:He,fireDomEvent:Q,fireGlobalEvent:re}}},{"./errors":12,"./util":36}],10:[function(a,s,c){s.exports=function(u){function h(){return this.value}function p(){throw this.reason}u.prototype.return=u.prototype.thenReturn=function(v){return v instanceof u&&v.suppressUnhandledRejections(),this._then(h,void 0,void 0,{value:v},void 0)},u.prototype.throw=u.prototype.thenThrow=function(v){return this._then(p,void 0,void 0,{reason:v},void 0)},u.prototype.catchThrow=function(v){if(arguments.length<=1)return this._then(void 0,p,void 0,{reason:v},void 0);var b=arguments[1];return this.caught(v,function(){throw b})},u.prototype.catchReturn=function(v){if(arguments.length<=1)return v instanceof u&&v.suppressUnhandledRejections(),this._then(void 0,h,void 0,{value:v},void 0);var b=arguments[1];return b instanceof u&&b.suppressUnhandledRejections(),this.caught(v,function(){return b})}}},{}],11:[function(a,s,c){s.exports=function(u,h){var p=u.reduce,v=u.all;function b(){return v(this)}u.prototype.each=function(x){return p(this,x,h,0)._then(b,void 0,void 0,this,void 0)},u.prototype.mapSeries=function(x){return p(this,x,h,h)},u.each=function(x,_){return p(x,_,h,0)._then(b,void 0,void 0,x,void 0)},u.mapSeries=function(x,_){return p(x,_,h,h)}}},{}],12:[function(a,s,c){var u,h,p=a("./es5"),v=p.freeze,b=a("./util"),x=b.inherits,_=b.notEnumerableProp;function w(B,V){function H(J){if(!(this instanceof H))return new H(J);_(this,"message",typeof J=="string"?J:V),_(this,"name",B),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return x(H,Error),H}var O=w("Warning","warning"),P=w("CancellationError","cancellation error"),E=w("TimeoutError","timeout error"),T=w("AggregateError","aggregate error");try{u=TypeError,h=RangeError}catch{u=w("TypeError","type error"),h=w("RangeError","range error")}for(var A="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),j=0;j1?j.cancelPromise._reject(N):j.cancelPromise._cancel(),j.cancelPromise=null,!0)}function E(){return A.call(this,this.promise._target()._settledValue())}function T(j){if(!P(this,j))return x.e=j,x}function A(j){var N=this.promise,$=this.handler;if(!this.called){this.called=!0;var W=this.isFinallyHandler()?$.call(N._boundValue()):$.call(N._boundValue(),j);if(W===p)return W;if(W!==void 0){N._setReturnedNonUndefined();var B=h(W,N);if(B instanceof u){if(this.cancelPromise!=null){if(B._isCancelled()){var V=new b("late cancellation observer");return N._attachExtraTrace(V),x.e=V,x}B.isPending()&&B._attachCancellationCallback(new O(this))}return B._then(E,T,void 0,this,void 0)}}}return N.isRejected()?(P(this),x.e=j,x):(P(this),j)}return w.prototype.isFinallyHandler=function(){return this.type===0},O.prototype._resultCancelled=function(){P(this.finallyHandler)},u.prototype._passThrough=function(j,N,$,W){return typeof j!="function"?this.then():this._then($,W,void 0,new w(this,N,j),void 0)},u.prototype.lastly=u.prototype.finally=function(j){return this._passThrough(j,0,A,A)},u.prototype.tap=function(j){return this._passThrough(j,1,A)},u.prototype.tapCatch=function(j){var N=arguments.length;if(N===1)return this._passThrough(j,1,void 0,A);var $,W=new Array(N-1),B=0;for($=0;$0&&typeof arguments[O]=="function"&&(w=arguments[O]);var P=[].slice.call(arguments);w&&P.pop();var E=new h(P).promise();return w!==void 0?E.spread(w):E}}},{"./util":36}],18:[function(a,s,c){s.exports=function(u,h,p,v,b,x){var _=u._getDomain,w=a("./util"),O=w.tryCatch,P=w.errorObj,E=u._async;function T(j,N,$,W){this.constructor$(j),this._promise._captureStackTrace();var B=_();this._callback=B===null?N:w.domainBind(B,N),this._preservedValues=W===b?new Array(this.length()):null,this._limit=$,this._inFlight=0,this._queue=[],E.invoke(this._asyncInit,this,void 0)}function A(j,N,$,W){if(typeof N!="function")return p("expecting a function but got "+w.classString(N));var B=0;if($!==void 0){if(typeof $!="object"||$===null)return u.reject(new TypeError("options argument must be an object but it is "+w.classString($)));if(typeof $.concurrency!="number")return u.reject(new TypeError("'concurrency' must be a number but it is "+w.classString($.concurrency)));B=$.concurrency}return new T(j,N,B=typeof B=="number"&&isFinite(B)&&B>=1?B:0,W).promise()}w.inherits(T,h),T.prototype._asyncInit=function(){this._init$(void 0,-2)},T.prototype._init=function(){},T.prototype._promiseFulfilled=function(j,N){var $=this._values,W=this.length(),B=this._preservedValues,V=this._limit;if(N<0){if($[N=-1*N-1]=j,V>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(V>=1&&this._inFlight>=V)return $[N]=j,this._queue.push(N),!1;B!==null&&(B[N]=j);var H=this._promise,J=this._callback,Q=H._boundValue();H._pushContext();var re=O(J).call(Q,j,N,W),ae=H._popContext();if(x.checkForgottenReturns(re,ae,B!==null?"Promise.filter":"Promise.map",H),re===P)return this._reject(re.e),!0;var se=v(re,this._promise);if(se instanceof u){var oe=(se=se._target())._bitField;if(!(50397184&oe))return V>=1&&this._inFlight++,$[N]=se,se._proxy(this,-1*(N+1)),!1;if(!(33554432&oe))return 16777216&oe?(this._reject(se._reason()),!0):(this._cancel(),!0);re=se._value()}$[N]=re}return++this._totalResolved>=W&&(B!==null?this._filter($,B):this._resolve($),!0)},T.prototype._drainQueue=function(){for(var j=this._queue,N=this._limit,$=this._values;j.length>0&&this._inFlight1){b.deprecated("calling Promise.try with more than 1 argument");var E=arguments[1],T=arguments[2];O=x.isArray(E)?_(w).apply(T,E):_(w).call(T,E)}else O=_(w)();var A=P._popContext();return b.checkForgottenReturns(O,A,"Promise.try",P),P._resolveFromSyncValue(O),P},u.prototype._resolveFromSyncValue=function(w){w===x.errorObj?this._rejectCallback(w.e,!1):this._resolveCallback(w,!0)}}},{"./util":36}],20:[function(a,s,c){var u=a("./util"),h=u.maybeWrapAsError,p=a("./errors").OperationalError,v=a("./es5"),b=/^(?:name|message|stack|cause)$/;function x(_){var w;if(function(T){return T instanceof Error&&v.getPrototypeOf(T)===Error.prototype}(_)){(w=new p(_)).name=_.name,w.message=_.message,w.stack=_.stack;for(var O=v.keys(_),P=0;P1){var ce,de=new Array(le-1),be=0;for(ce=0;ce0&&typeof X!="function"&&typeof le!="function"){var ce=".then() only accepts functions but was passed: "+_.classString(X);arguments.length>1&&(ce+=", "+_.classString(le)),this._warn(ce)}return this._then(X,le,void 0,void 0,void 0)},K.prototype.done=function(X,le){this._then(X,le,void 0,void 0,void 0)._setIsFinal()},K.prototype.spread=function(X){return typeof X!="function"?p("expecting a function but got "+_.classString(X)):this.all()._then(X,void 0,void 0,N,void 0)},K.prototype.toJSON=function(){var X={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(X.fulfillmentValue=this.value(),X.isFulfilled=!0):this.isRejected()&&(X.rejectionReason=this.reason(),X.isRejected=!0),X},K.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new B(this).promise()},K.prototype.error=function(X){return this.caught(_.originatesFromRejection,X)},K.getNewLibraryCopy=s.exports,K.is=function(X){return X instanceof K},K.fromNode=K.fromCallback=function(X){var le=new K(j);le._captureStackTrace();var ce=arguments.length>1&&!!Object(arguments[1]).multiArgs,de=oe(X)(ae(le,ce));return de===se&&le._rejectCallback(de.e,!0),le._isFateSealed()||le._setAsyncGuaranteed(),le},K.all=function(X){return new B(X).promise()},K.cast=function(X){var le=W(X);return le instanceof K||((le=new K(j))._captureStackTrace(),le._setFulfilled(),le._rejectionHandler0=X),le},K.resolve=K.fulfilled=K.cast,K.reject=K.rejected=function(X){var le=new K(j);return le._captureStackTrace(),le._rejectCallback(X,!0),le},K.setScheduler=function(X){if(typeof X!="function")throw new T("expecting a function but got "+_.classString(X));return P.setScheduler(X)},K.prototype._then=function(X,le,ce,de,be){var M=be!==void 0,D=M?be:new K(j),Y=this._target(),ue=Y._bitField;M||(D._propagateFrom(this,3),D._captureStackTrace(),de===void 0&&2097152&this._bitField&&(de=50397184&ue?this._boundValue():Y===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,D));var ie=b();if(50397184&ue){var he,Se,Fe=Y._settlePromiseCtx;33554432&ue?(Se=Y._rejectionHandler0,he=X):16777216&ue?(Se=Y._fulfillmentHandler0,he=le,Y._unsetRejectionIsUnhandled()):(Fe=Y._settlePromiseLateCancellationObserver,Se=new A("late cancellation observer"),Y._attachExtraTrace(Se),he=le),P.invoke(Fe,Y,{handler:ie===null?he:typeof he=="function"&&_.domainBind(ie,he),promise:D,receiver:de,value:Se})}else Y._addCallbacks(X,le,D,de,ie);return D},K.prototype._length=function(){return 65535&this._bitField},K.prototype._isFateSealed=function(){return(117506048&this._bitField)!=0},K.prototype._isFollowing=function(){return(67108864&this._bitField)==67108864},K.prototype._setLength=function(X){this._bitField=-65536&this._bitField|65535&X},K.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},K.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},K.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},K.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},K.prototype._isFinal=function(){return(4194304&this._bitField)>0},K.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},K.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},K.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},K.prototype._setAsyncGuaranteed=function(){P.hasCustomScheduler()||(this._bitField=134217728|this._bitField)},K.prototype._receiverAt=function(X){var le=X===0?this._receiver0:this[4*X-4+3];if(le!==x)return le===void 0&&this._isBound()?this._boundValue():le},K.prototype._promiseAt=function(X){return this[4*X-4+2]},K.prototype._fulfillmentHandlerAt=function(X){return this[4*X-4+0]},K.prototype._rejectionHandlerAt=function(X){return this[4*X-4+1]},K.prototype._boundValue=function(){},K.prototype._migrateCallback0=function(X){X._bitField;var le=X._fulfillmentHandler0,ce=X._rejectionHandler0,de=X._promise0,be=X._receiverAt(0);be===void 0&&(be=x),this._addCallbacks(le,ce,de,be,null)},K.prototype._migrateCallbackAt=function(X,le){var ce=X._fulfillmentHandlerAt(le),de=X._rejectionHandlerAt(le),be=X._promiseAt(le),M=X._receiverAt(le);M===void 0&&(M=x),this._addCallbacks(ce,de,be,M,null)},K.prototype._addCallbacks=function(X,le,ce,de,be){var M=this._length();if(M>=65531&&(M=0,this._setLength(0)),M===0)this._promise0=ce,this._receiver0=de,typeof X=="function"&&(this._fulfillmentHandler0=be===null?X:_.domainBind(be,X)),typeof le=="function"&&(this._rejectionHandler0=be===null?le:_.domainBind(be,le));else{var D=4*M-4;this[D+2]=ce,this[D+3]=de,typeof X=="function"&&(this[D+0]=be===null?X:_.domainBind(be,X)),typeof le=="function"&&(this[D+1]=be===null?le:_.domainBind(be,le))}return this._setLength(M+1),M},K.prototype._proxy=function(X,le){this._addCallbacks(void 0,void 0,le,X,null)},K.prototype._resolveCallback=function(X,le){if(!(117506048&this._bitField)){if(X===this)return this._rejectCallback(u(),!1);var ce=W(X,this);if(!(ce instanceof K))return this._fulfill(X);le&&this._propagateFrom(ce,2);var de=ce._target();if(de!==this){var be=de._bitField;if(50397184&be)if(33554432&be)this._fulfill(de._value());else if(16777216&be)this._reject(de._reason());else{var Y=new A("late cancellation observer");de._attachExtraTrace(Y),this._reject(Y)}else{var M=this._length();M>0&&de._migrateCallback0(this);for(var D=1;D>>16)){if(X===this){var ce=u();return this._attachExtraTrace(ce),this._reject(ce)}this._setFulfilled(),this._rejectionHandler0=X,(65535&le)>0&&(134217728&le?this._settlePromises():P.settlePromises(this))}},K.prototype._reject=function(X){var le=this._bitField;if(!((117506048&le)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=X,this._isFinal())return P.fatalError(X,_.isNode);(65535&le)>0?P.settlePromises(this):this._ensurePossibleRejectionHandled()}},K.prototype._fulfillPromises=function(X,le){for(var ce=1;ce0){if(16842752&X){var ce=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,ce,X),this._rejectPromises(le,ce)}else{var de=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,de,X),this._fulfillPromises(le,de)}this._setLength(0)}this._clearCancellationData()},K.prototype._settledValue=function(){var X=this._bitField;return 33554432&X?this._rejectionHandler0:16777216&X?this._fulfillmentHandler0:void 0},K.defer=K.pending=function(){return J.deprecated("Promise.defer","new Promise"),{promise:new K(j),resolve:G,reject:z}},_.notEnumerableProp(K,"_makeSelfResolutionError",u),a("./method")(K,j,W,p,J),a("./bind")(K,j,W,J),a("./cancel")(K,B,p,J),a("./direct_resolve")(K),a("./synchronous_inspection")(K),a("./join")(K,B,W,j,P,b),K.Promise=K,K.version="3.5.1",a("./map.js")(K,B,p,W,j,J),a("./call_get.js")(K),a("./using.js")(K,p,W,H,j,J),a("./timers.js")(K,j,J),a("./generators.js")(K,p,j,W,v,J),a("./nodeify.js")(K),a("./promisify.js")(K,j),a("./props.js")(K,B,W,p),a("./race.js")(K,j,W,p),a("./reduce.js")(K,B,p,W,j,J),a("./settle.js")(K,B,J),a("./some.js")(K,B,p),a("./filter.js")(K,j),a("./each.js")(K,j),a("./any.js")(K),_.toFastProperties(K),_.toFastProperties(K.prototype),ne({a:1}),ne({b:2}),ne({c:3}),ne(1),ne(function(){}),ne(void 0),ne(!1),ne(new K(j)),J.setBounds(O.firstLineError,_.lastLineError),K}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36}],23:[function(a,s,c){s.exports=function(u,h,p,v,b){var x=a("./util");function _(w){var O=this._promise=new u(h);w instanceof u&&O._propagateFrom(w,3),O._setOnCancel(this),this._values=w,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return x.isArray,x.inherits(_,b),_.prototype.length=function(){return this._length},_.prototype.promise=function(){return this._promise},_.prototype._init=function w(O,P){var E=p(this._values,this._promise);if(E instanceof u){var T=(E=E._target())._bitField;if(this._values=E,(50397184&T)==0)return this._promise._setAsyncGuaranteed(),E._then(w,this._reject,void 0,this,P);if(!(33554432&T))return 16777216&T?this._reject(E._reason()):this._cancel();E=E._value()}if((E=x.asArray(E))!==null)E.length!==0?this._iterate(E):P===-5?this._resolveEmptyArray():this._resolve(function(j){switch(P){case-2:return[];case-3:return{};case-6:return new Map}}());else{var A=v("expecting an array or an iterable object but got "+x.classString(E)).reason();this._promise._rejectCallback(A,!1)}},_.prototype._iterate=function(w){var O=this.getActualLength(w.length);this._length=O,this._values=this.shouldCopyValues()?new Array(O):this._values;for(var P=this._promise,E=!1,T=null,A=0;A=this._length&&(this._resolve(this._values),!0)},_.prototype._promiseCancelled=function(){return this._cancel(),!0},_.prototype._promiseRejected=function(w){return this._totalResolved++,this._reject(w),!0},_.prototype._resultCancelled=function(){if(!this._isResolved()){var w=this._values;if(this._cancel(),w instanceof u)w.cancel();else for(var O=0;O=this._length){var j;if(this._isMap)j=function(B){for(var V=new b,H=B.length/2|0,J=0;J>1},u.prototype.props=function(){return E(this)},u.props=function(T){return E(T)}}},{"./es5":13,"./util":36}],26:[function(a,s,c){function u(h){this._capacity=h,this._length=0,this._front=0}u.prototype._willBeOverCapacity=function(h){return this._capacity"u"){var v=i.setImmediate,b=r.nextTick;u=h.isRecentNode?function(_){v.call(i,_)}:function(_){b.call(r,_)}}else if(typeof p=="function"&&typeof p.resolve=="function"){var x=p.resolve();u=function(_){x.then(_)}}else u=typeof MutationObserver>"u"||typeof window<"u"&&window.navigator&&(window.navigator.standalone||window.cordova)?o!==void 0?function(_){o(_)}:typeof setTimeout<"u"?function(_){setTimeout(_,0)}:function(){throw new Error(`No async scheduler available + + See http://goo.gl/MqrFmX +`)}:function(){var _=document.createElement("div"),w={attributes:!0},O=!1,P=document.createElement("div");return new MutationObserver(function(){_.classList.toggle("foo"),O=!1}).observe(P,w),function(E){var T=new MutationObserver(function(){T.disconnect(),E()});T.observe(_,w),O||(O=!0,P.classList.toggle("foo"))}}();s.exports=u},{"./util":36}],30:[function(a,s,c){s.exports=function(u,h,p){var v=u.PromiseInspection;function b(x){this.constructor$(x)}a("./util").inherits(b,h),b.prototype._promiseResolved=function(x,_){return this._values[x]=_,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},b.prototype._promiseFulfilled=function(x,_){var w=new v;return w._bitField=33554432,w._settledValueField=x,this._promiseResolved(_,w)},b.prototype._promiseRejected=function(x,_){var w=new v;return w._bitField=16777216,w._settledValueField=x,this._promiseResolved(_,w)},u.settle=function(x){return p.deprecated(".settle()",".reflect()"),new b(x).promise()},u.prototype.settle=function(){return u.settle(this)}}},{"./util":36}],31:[function(a,s,c){s.exports=function(u,h,p){var v=a("./util"),b=a("./errors").RangeError,x=a("./errors").AggregateError,_=v.isArray,w={};function O(E){this.constructor$(E),this._howMany=0,this._unwrap=!1,this._initialized=!1}function P(E,T){if((0|T)!==T||T<0)return p(`expecting a positive integer + + See http://goo.gl/MqrFmX +`);var A=new O(E),j=A.promise();return A.setHowMany(T),A.init(),j}v.inherits(O,h),O.prototype._init=function(){if(this._initialized)if(this._howMany!==0){this._init$(void 0,-5);var E=_(this._values);!this._isResolved()&&E&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}else this._resolve([])},O.prototype.init=function(){this._initialized=!0,this._init()},O.prototype.setUnwrap=function(){this._unwrap=!0},O.prototype.howMany=function(){return this._howMany},O.prototype.setHowMany=function(E){this._howMany=E},O.prototype._promiseFulfilled=function(E){return this._addFulfilled(E),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),this.howMany()===1&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},O.prototype._promiseRejected=function(E){return this._addRejected(E),this._checkOutcome()},O.prototype._promiseCancelled=function(){return this._values instanceof u||this._values==null?this._cancel():(this._addRejected(w),this._checkOutcome())},O.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var E=new x,T=this.length();T0?this._reject(E):this._cancel(),!0}return!1},O.prototype._fulfilled=function(){return this._totalResolved},O.prototype._rejected=function(){return this._values.length-this.length()},O.prototype._addRejected=function(E){this._values.push(E)},O.prototype._addFulfilled=function(E){this._values[this._totalResolved++]=E},O.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},O.prototype._getRangeError=function(E){var T="Input array must contain at least "+this._howMany+" items but contains only "+E+" items";return new b(T)},O.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},u.some=function(E,T){return P(E,T)},u.prototype.some=function(E){return P(this,E)},u._SomePromiseArray=O}},{"./errors":12,"./util":36}],32:[function(a,s,c){s.exports=function(u){function h(O){O!==void 0?(O=O._target(),this._bitField=O._bitField,this._settledValueField=O._isFateSealed()?O._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}h.prototype._settledValue=function(){return this._settledValueField};var p=h.prototype.value=function(){if(!this.isFulfilled())throw new TypeError(`cannot get fulfillment value of a non-fulfilled promise + + See http://goo.gl/MqrFmX +`);return this._settledValue()},v=h.prototype.error=h.prototype.reason=function(){if(!this.isRejected())throw new TypeError(`cannot get rejection reason of a non-rejected promise + + See http://goo.gl/MqrFmX +`);return this._settledValue()},b=h.prototype.isFulfilled=function(){return(33554432&this._bitField)!=0},x=h.prototype.isRejected=function(){return(16777216&this._bitField)!=0},_=h.prototype.isPending=function(){return(50397184&this._bitField)==0},w=h.prototype.isResolved=function(){return(50331648&this._bitField)!=0};h.prototype.isCancelled=function(){return(8454144&this._bitField)!=0},u.prototype.__isCancelled=function(){return(65536&this._bitField)==65536},u.prototype._isCancelled=function(){return this._target().__isCancelled()},u.prototype.isCancelled=function(){return(8454144&this._target()._bitField)!=0},u.prototype.isPending=function(){return _.call(this._target())},u.prototype.isRejected=function(){return x.call(this._target())},u.prototype.isFulfilled=function(){return b.call(this._target())},u.prototype.isResolved=function(){return w.call(this._target())},u.prototype.value=function(){return p.call(this._target())},u.prototype.reason=function(){var O=this._target();return O._unsetRejectionIsUnhandled(),v.call(O)},u.prototype._value=function(){return this._settledValue()},u.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},u.PromiseInspection=h}},{}],33:[function(a,s,c){s.exports=function(u,h){var p=a("./util"),v=p.errorObj,b=p.isObject,x={}.hasOwnProperty;return function(_,w){if(b(_)){if(_ instanceof u)return _;var O=function(E){try{return function(T){return T.then}(E)}catch(T){return v.e=T,v}}(_);if(O===v){w&&w._pushContext();var P=u.reject(O.e);return w&&w._popContext(),P}if(typeof O=="function")return function(E){try{return x.call(E,"_promise0")}catch{return!1}}(_)?(P=new u(h),_._then(P._fulfill,P._reject,void 0,P,null),P):function(E,T,A){var j=new u(h),N=j;A&&A._pushContext(),j._captureStackTrace(),A&&A._popContext();var $=!0,W=p.tryCatch(T).call(E,function(B){j&&(j._resolveCallback(B),j=null)},function(B){j&&(j._rejectCallback(B,$,!0),j=null)});return $=!1,j&&W===v&&(j._rejectCallback(W.e,!0,!0),j=null),N}(_,O,w)}return _}}},{"./util":36}],34:[function(a,s,c){s.exports=function(u,h,p){var v=a("./util"),b=u.TimeoutError;function x(E){this.handle=E}x.prototype._resultCancelled=function(){clearTimeout(this.handle)};var _=function(E){return w(+this).thenReturn(E)},w=u.delay=function(E,T){var A,j;return T!==void 0?(A=u.resolve(T)._then(_,null,null,E,void 0),p.cancellation()&&T instanceof u&&A._setOnCancel(T)):(A=new u(h),j=setTimeout(function(){A._fulfill()},+E),p.cancellation()&&A._setOnCancel(new x(j)),A._captureStackTrace()),A._setAsyncGuaranteed(),A};function O(E){return clearTimeout(this.handle),E}function P(E){throw clearTimeout(this.handle),E}u.prototype.delay=function(E){return w(E,this)},u.prototype.timeout=function(E,T){var A,j;E=+E;var N=new x(setTimeout(function(){A.isPending()&&function($,W,B){var V;V=typeof W!="string"?W instanceof Error?W:new b("operation timed out"):new b(W),v.markAsOriginatingFromRejection(V),$._attachExtraTrace(V),$._reject(V),B!=null&&B.cancel()}(A,T,j)},E));return p.cancellation()?(j=this.then(),(A=j._then(O,P,void 0,N,void 0))._setOnCancel(N)):A=this._then(O,P,void 0,N,void 0),A}}},{"./util":36}],35:[function(a,s,c){s.exports=function(u,h,p,v,b,x){var _=a("./util"),w=a("./errors").TypeError,O=a("./util").inherits,P=_.errorObj,E=_.tryCatch,T={};function A(V){setTimeout(function(){throw V},0)}function j(V,H){var J=0,Q=V.length,re=new u(b);return function ae(){if(J>=Q)return re._fulfill();var se=function(oe){var K=p(oe);return K!==oe&&typeof oe._isDisposable=="function"&&typeof oe._getDisposer=="function"&&oe._isDisposable()&&K._setDisposable(oe._getDisposer()),K}(V[J++]);if(se instanceof u&&se._isDisposable()){try{se=p(se._getDisposer().tryDispose(H),V.promise)}catch(oe){return A(oe)}if(se instanceof u)return se._then(ae,A,null,null,null)}ae()}(),re}function N(V,H,J){this._data=V,this._promise=H,this._context=J}function $(V,H,J){this.constructor$(V,H,J)}function W(V){return N.isDisposer(V)?(this.resources[this.index]._setDisposable(V),V.promise()):V}function B(V){this.length=V,this.promise=null,this[V-1]=null}N.prototype.data=function(){return this._data},N.prototype.promise=function(){return this._promise},N.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():T},N.prototype.tryDispose=function(V){var H=this.resource(),J=this._context;J!==void 0&&J._pushContext();var Q=H!==T?this.doDispose(H,V):null;return J!==void 0&&J._popContext(),this._promise._unsetDisposable(),this._data=null,Q},N.isDisposer=function(V){return V!=null&&typeof V.resource=="function"&&typeof V.tryDispose=="function"},O($,N),$.prototype.doDispose=function(V,H){return this.data().call(V,V,H)},B.prototype._resultCancelled=function(){for(var V=this.length,H=0;H0},u.prototype._getDisposer=function(){return this._disposer},u.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},u.prototype.disposer=function(V){if(typeof V=="function")return new $(V,this,v());throw new w}}},{"./errors":12,"./util":36}],36:[function(a,s,c){var u,h=a("./es5"),p=typeof navigator>"u",v={e:{}},b=typeof self<"u"?self:typeof window<"u"?window:i!==void 0?i:this!==void 0?this:null;function x(){try{var Q=u;return u=null,Q.apply(this,arguments)}catch(re){return v.e=re,v}}function _(Q){return Q==null||Q===!0||Q===!1||typeof Q=="string"||typeof Q=="number"}function w(Q,re,ae){if(_(Q))return Q;var se={value:ae,configurable:!0,enumerable:!1,writable:!0};return h.defineProperty(Q,re,se),Q}var O=function(){var Q=[Array.prototype,Object.prototype,Function.prototype],re=function(oe){for(var K=0;K1,se=re.length>0&&!(re.length===1&&re[0]==="constructor"),oe=P.test(Q+"")&&h.names(Q).length>0;if(ae||se||oe)return!0}return!1}catch{return!1}},isIdentifier:function(Q){return E.test(Q)},inheritedDataKeys:O,getDataPropertyOrDefault:function(Q,re,ae){if(!h.isES5)return{}.hasOwnProperty.call(Q,re)?Q[re]:void 0;var se=Object.getOwnPropertyDescriptor(Q,re);return se!=null?se.get==null&&se.set==null?se.value:ae:void 0},thrower:function(Q){throw Q},isArray:h.isArray,asArray:W,notEnumerableProp:w,isPrimitive:_,isObject:function(Q){return typeof Q=="function"||typeof Q=="object"&&Q!==null},isError:A,canEvaluate:p,errorObj:v,tryCatch:function(Q){return u=Q,x},inherits:function(Q,re){var ae={}.hasOwnProperty;function se(){for(var oe in this.constructor=Q,this.constructor$=re,re.prototype)ae.call(re.prototype,oe)&&oe.charAt(oe.length-1)!=="$"&&(this[oe+"$"]=re.prototype[oe])}return se.prototype=re.prototype,Q.prototype=new se,Q.prototype},withAppended:function(Q,re){var ae,se=Q.length,oe=new Array(se+1);for(ae=0;ae10||Q[0]>0}(),J.isNode&&J.toFastProperties(r);try{throw new Error}catch(Q){J.lastLineError=Q}s.exports=J},{"./es5":13}]},{},[4])(4),typeof window<"u"&&window!==null?window.P=window.Promise:typeof self<"u"&&self!==null&&(self.P=self.Promise)}).call(this,n(4),n(0),n(11).setImmediate)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(r,i){if(!i.eol&&r){for(var o=0,a=r.length;o0?(typeof z=="string"||de.objectMode||Object.getPrototypeOf(z)===h.prototype||(z=function(be){return h.from(be)}(z)),X?de.endEmitted?G.emit("error",new Error("stream.unshift() after end event")):j(G,de,z,!0):de.ended?G.emit("error",new Error("stream.push() after EOF")):(de.reading=!1,de.decoder&&!ne?(z=de.decoder.write(z),de.objectMode||z.length!==0?j(G,de,z,!1):V(G,de)):j(G,de,z,!1))):X||(de.reading=!1)),function(be){return!be.ended&&(be.needReadable||be.lengthz.highWaterMark&&(z.highWaterMark=function(ne){return ne>=N?ne=N:(ne--,ne|=ne>>>1,ne|=ne>>>2,ne|=ne>>>4,ne|=ne>>>8,ne|=ne>>>16,ne++),ne}(G)),G<=z.length?G:z.ended?z.length:(z.needReadable=!0,0))}function W(G){var z=G._readableState;z.needReadable=!1,z.emittedReadable||(x("emitReadable",z.flowing),z.emittedReadable=!0,z.sync?o.nextTick(B,G):B(G))}function B(G){x("emit readable"),G.emit("readable"),re(G)}function V(G,z){z.readingMore||(z.readingMore=!0,o.nextTick(H,G,z))}function H(G,z){for(var ne=z.length;!z.reading&&!z.flowing&&!z.ended&&z.length=z.length?(ne=z.decoder?z.buffer.join(""):z.buffer.length===1?z.buffer.head.data:z.buffer.concat(z.length),z.buffer.clear()):ne=function(X,le,ce){var de;return Xie.length?ie.length:be;if(he===ie.length?ue+=ie:ue+=ie.slice(0,be),(be-=he)==0){he===ie.length?(++Y,D.next?M.head=D.next:M.head=M.tail=null):(M.head=D,D.data=ie.slice(he));break}++Y}return M.length-=Y,ue}(X,le):function(be,M){var D=h.allocUnsafe(be),Y=M.head,ue=1;for(Y.data.copy(D),be-=Y.data.length;Y=Y.next;){var ie=Y.data,he=be>ie.length?ie.length:be;if(ie.copy(D,D.length-be,0,he),(be-=he)==0){he===ie.length?(++ue,Y.next?M.head=Y.next:M.head=M.tail=null):(M.head=Y,Y.data=ie.slice(he));break}++ue}return M.length-=ue,D}(X,le),de}(G,z.buffer,z.decoder),ne);var ne}function se(G){var z=G._readableState;if(z.length>0)throw new Error('"endReadable()" called on non-empty stream');z.endEmitted||(z.ended=!0,o.nextTick(oe,z,G))}function oe(G,z){G.endEmitted||G.length!==0||(G.endEmitted=!0,z.readable=!1,z.emit("end"))}function K(G,z){for(var ne=0,X=G.length;ne=z.highWaterMark||z.ended))return x("read: emitReadable",z.length,z.ended),z.length===0&&z.ended?se(this):W(this),null;if((G=$(G,z))===0&&z.ended)return z.length===0&&se(this),null;var X,le=z.needReadable;return x("need readable",le),(z.length===0||z.length-G0?ae(G,z):null)===null?(z.needReadable=!0,G=0):z.length-=G,z.length===0&&(z.ended||(z.needReadable=!0),ne!==G&&z.ended&&se(this)),X!==null&&this.emit("data",X),X},T.prototype._read=function(G){this.emit("error",new Error("_read() is not implemented"))},T.prototype.pipe=function(G,z){var ne=this,X=this._readableState;switch(X.pipesCount){case 0:X.pipes=G;break;case 1:X.pipes=[X.pipes,G];break;default:X.pipes.push(G)}X.pipesCount+=1,x("pipe count=%d opts=%j",X.pipesCount,z);var le=z&&z.end===!1||G===i.stdout||G===i.stderr?he:ce;function ce(){x("onend"),G.end()}X.endEmitted?o.nextTick(le):ne.once("end",le),G.on("unpipe",function Se(Fe,ge){x("onunpipe"),Fe===ne&&ge&&ge.hasUnpiped===!1&&(ge.hasUnpiped=!0,x("cleanup"),G.removeListener("close",ue),G.removeListener("finish",ie),G.removeListener("drain",de),G.removeListener("error",Y),G.removeListener("unpipe",Se),ne.removeListener("end",ce),ne.removeListener("end",he),ne.removeListener("data",D),be=!0,!X.awaitDrain||G._writableState&&!G._writableState.needDrain||de())});var de=function(Se){return function(){var Fe=Se._readableState;x("pipeOnDrain",Fe.awaitDrain),Fe.awaitDrain&&Fe.awaitDrain--,Fe.awaitDrain===0&&c(Se,"data")&&(Fe.flowing=!0,re(Se))}}(ne);G.on("drain",de);var be=!1,M=!1;function D(Se){x("ondata"),M=!1,G.write(Se)!==!1||M||((X.pipesCount===1&&X.pipes===G||X.pipesCount>1&&K(X.pipes,G)!==-1)&&!be&&(x("false write response, pause",ne._readableState.awaitDrain),ne._readableState.awaitDrain++,M=!0),ne.pause())}function Y(Se){x("onerror",Se),he(),G.removeListener("error",Y),c(G,"error")===0&&G.emit("error",Se)}function ue(){G.removeListener("finish",ie),he()}function ie(){x("onfinish"),G.removeListener("close",ue),he()}function he(){x("unpipe"),ne.unpipe(G)}return ne.on("data",D),function(Se,Fe,ge){if(typeof Se.prependListener=="function")return Se.prependListener(Fe,ge);Se._events&&Se._events[Fe]?s(Se._events[Fe])?Se._events[Fe].unshift(ge):Se._events[Fe]=[ge,Se._events[Fe]]:Se.on(Fe,ge)}(G,"error",Y),G.once("close",ue),G.once("finish",ie),G.emit("pipe",ne),X.flowing||(x("pipe resume"),ne.resume()),G},T.prototype.unpipe=function(G){var z=this._readableState,ne={hasUnpiped:!1};if(z.pipesCount===0)return this;if(z.pipesCount===1)return G&&G!==z.pipes?this:(G||(G=z.pipes),z.pipes=null,z.pipesCount=0,z.flowing=!1,G&&G.emit("unpipe",this,ne),this);if(!G){var X=z.pipes,le=z.pipesCount;z.pipes=null,z.pipesCount=0,z.flowing=!1;for(var ce=0;ce>5==6?2:x>>4==14?3:x>>3==30?4:x>>6==2?-1:-2}function s(x){var _=this.lastTotal-this.lastNeed,w=function(O,P,E){if((192&P[0])!=128)return O.lastNeed=0,"�";if(O.lastNeed>1&&P.length>1){if((192&P[1])!=128)return O.lastNeed=1,"�";if(O.lastNeed>2&&P.length>2&&(192&P[2])!=128)return O.lastNeed=2,"�"}}(this,x);return w!==void 0?w:this.lastNeed<=x.length?(x.copy(this.lastChar,_,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(x.copy(this.lastChar,_,0,x.length),void(this.lastNeed-=x.length))}function c(x,_){if((x.length-_)%2==0){var w=x.toString("utf16le",_);if(w){var O=w.charCodeAt(w.length-1);if(O>=55296&&O<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=x[x.length-2],this.lastChar[1]=x[x.length-1],w.slice(0,-1)}return w}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=x[x.length-1],x.toString("utf16le",_,x.length-1)}function u(x){var _=x&&x.length?this.write(x):"";if(this.lastNeed){var w=this.lastTotal-this.lastNeed;return _+this.lastChar.toString("utf16le",0,w)}return _}function h(x,_){var w=(x.length-_)%3;return w===0?x.toString("base64",_):(this.lastNeed=3-w,this.lastTotal=3,w===1?this.lastChar[0]=x[x.length-1]:(this.lastChar[0]=x[x.length-2],this.lastChar[1]=x[x.length-1]),x.toString("base64",_,x.length-w))}function p(x){var _=x&&x.length?this.write(x):"";return this.lastNeed?_+this.lastChar.toString("base64",0,3-this.lastNeed):_}function v(x){return x.toString(this.encoding)}function b(x){return x&&x.length?this.write(x):""}t.StringDecoder=o,o.prototype.write=function(x){if(x.length===0)return"";var _,w;if(this.lastNeed){if((_=this.fillLast(x))===void 0)return"";w=this.lastNeed,this.lastNeed=0}else w=0;return w=0?(j>0&&(P.lastNeed=j-1),j):--A=0?(j>0&&(P.lastNeed=j-2),j):--A=0?(j>0&&(j===2?j=0:P.lastNeed=j-3),j):0}(this,x,_);if(!this.lastNeed)return x.toString("utf8",_);this.lastTotal=w;var O=x.length-(w-this.lastNeed);return x.copy(this.lastChar,0,O),x.toString("utf8",_,O)},o.prototype.fillLast=function(x){if(this.lastNeed<=x.length)return x.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);x.copy(this.lastChar,this.lastTotal-this.lastNeed,0,x.length),this.lastNeed-=x.length}},function(e,t,n){e.exports=o;var r=n(1),i=n(5);function o(c){if(!(this instanceof o))return new o(c);r.call(this,c),this._transformState={afterTransform:(function(u,h){var p=this._transformState;p.transforming=!1;var v=p.writecb;if(!v)return this.emit("error",new Error("write callback called multiple times"));p.writechunk=null,p.writecb=null,h!=null&&this.push(h),v(u);var b=this._readableState;b.reading=!1,(b.needReadable||b.length-1&&a.push(i[s]);return a},t.trimLeft=String.prototype.trimLeft?function(i){return i.trimLeft()}:function(i){return i.replace(/^\s+/,"")},t.trimRight=String.prototype.trimRight?function(i){return i.trimRight()}:function(i){return i.replace(/\s+$/,"")}}).call(this,n(3).Buffer)},function(e,t,n){var r=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var c in s)s.hasOwnProperty(c)&&(a[c]=s[c])};return function(a,s){function c(){this.constructor=a}o(a,s),a.prototype=s===null?Object.create(s):(c.prototype=s.prototype,new c)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=function(o){function a(s,c,u){var h=o.call(this,"Error: "+s+". JSON Line number: "+c+(u?" near: "+u:""))||this;return h.err=s,h.line=c,h.extra=u,h.name="CSV Parse Error",h}return r(a,o),a.column_mismatched=function(s,c){return new a("column_mismatched",s,c)},a.unclosed_quote=function(s,c){return new a("unclosed_quote",s,c)},a.fromJSON=function(s){return new a(s.err,s.line,s.extra)},a.prototype.toJSON=function(){return{err:this.err,line:this.line,extra:this.extra}},a}(Error);t.default=i},function(e,t,n){var r=n(18),i=n(68),o=n(69),a=r?r.toStringTag:void 0;e.exports=function(s){return s==null?s===void 0?"[object Undefined]":"[object Null]":a&&a in Object(s)?i(s):o(s)}},function(e,t){e.exports=function(n,r){return n===r||n!=n&&r!=r}},function(e,t,n){e.exports=n(33)},function(e,t,n){var r=n(34),i=function(o,a){return new r.Converter(o,a)};i.csv=i,i.Converter=r.Converter,e.exports=i},function(e,t,n){(function(r){var i=this&&this.__extends||function(){var b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,_){x.__proto__=_}||function(x,_){for(var w in _)_.hasOwnProperty(w)&&(x[w]=_[w])};return function(x,_){function w(){this.constructor=x}b(x,_),x.prototype=_===null?Object.create(_):(w.prototype=_.prototype,new w)}}(),o=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(36),s=n(50),c=n(51),u=o(n(15)),h=n(52),p=n(105),v=function(b){function x(_,w){w===void 0&&(w={});var O=b.call(this,w)||this;return O.options=w,O.params=s.mergeParams(_),O.runtime=c.initParseRuntime(O),O.result=new p.Result(O),O.processor=new h.ProcessorLocal(O),O.once("error",function(P){r(function(){O.result.processError(P),O.emit("done",P)})}),O.once("done",function(){O.processor.destroy()}),O}return i(x,b),x.prototype.preRawData=function(_){return this.runtime.preRawDataHook=_,this},x.prototype.preFileLine=function(_){return this.runtime.preFileLineHook=_,this},x.prototype.subscribe=function(_,w,O){return this.parseRuntime.subscribe={onNext:_,onError:w,onCompleted:O},this},x.prototype.fromFile=function(_,w){var O=this,P=n(!function(){var E=new Error("Cannot find module 'fs'");throw E.code="MODULE_NOT_FOUND",E}());return P.exists(_,function(E){E?P.createReadStream(_,w).pipe(O):O.emit("error",new Error("File does not exist. Check to make sure the file path to your csv is correct."))}),this},x.prototype.fromStream=function(_){return _.pipe(this),this},x.prototype.fromString=function(_){_.toString();var w=new a.Readable,O=0;return w._read=function(P){if(O>=_.length)this.push(null);else{var E=_.substr(O,P);this.push(E),O+=P}},this.fromStream(w)},x.prototype.then=function(_,w){var O=this;return new u.default(function(P,E){O.parseRuntime.then={onfulfilled:function(T){P(_?_(T):T)},onrejected:function(T){w?P(w(T)):E(T)}}})},Object.defineProperty(x.prototype,"parseParam",{get:function(){return this.params},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"parseRuntime",{get:function(){return this.runtime},enumerable:!0,configurable:!0}),x.prototype._transform=function(_,w,O){var P=this;this.processor.process(_).then(function(E){if(E.length>0)return P.runtime.started=!0,P.result.processResult(E)}).then(function(){P.emit("drained"),O()},function(E){P.runtime.hasError=!0,P.runtime.error=E,P.emit("error",E),O()})},x.prototype._flush=function(_){var w=this;this.processor.flush().then(function(O){if(O.length>0)return w.result.processResult(O)}).then(function(){w.processEnd(_)},function(O){w.emit("error",O),_()})},x.prototype.processEnd=function(_){this.result.endProcess(),this.emit("done"),_()},Object.defineProperty(x.prototype,"parsedLineNumber",{get:function(){return this.runtime.parsedLineNumber},enumerable:!0,configurable:!0}),x}(a.Transform);t.Converter=v}).call(this,n(11).setImmediate)},function(e,t,n){(function(r,i){(function(o,a){if(!o.setImmediate){var s,c=1,u={},h=!1,p=o.document,v=Object.getPrototypeOf&&Object.getPrototypeOf(o);v=v&&v.setTimeout?v:o,{}.toString.call(o.process)==="[object process]"?s=function(_){i.nextTick(function(){x(_)})}:function(){if(o.postMessage&&!o.importScripts){var _=!0,w=o.onmessage;return o.onmessage=function(){_=!1},o.postMessage("","*"),o.onmessage=w,_}}()?function(){var _="setImmediate$"+Math.random()+"$",w=function(O){O.source===o&&typeof O.data=="string"&&O.data.indexOf(_)===0&&x(+O.data.slice(_.length))};o.addEventListener?o.addEventListener("message",w,!1):o.attachEvent("onmessage",w),s=function(O){o.postMessage(_+O,"*")}}():o.MessageChannel?function(){var _=new MessageChannel;_.port1.onmessage=function(w){x(w.data)},s=function(w){_.port2.postMessage(w)}}():p&&"onreadystatechange"in p.createElement("script")?function(){var _=p.documentElement;s=function(w){var O=p.createElement("script");O.onreadystatechange=function(){x(w),O.onreadystatechange=null,_.removeChild(O),O=null},_.appendChild(O)}}():s=function(_){setTimeout(x,0,_)},v.setImmediate=function(_){typeof _!="function"&&(_=new Function(""+_));for(var w=new Array(arguments.length-1),O=0;O"u"?r===void 0?this:r:self)}).call(this,n(0),n(4))},function(e,t,n){e.exports=i;var r=n(12).EventEmitter;function i(){r.call(this)}n(2)(i,r),i.Readable=n(13),i.Writable=n(46),i.Duplex=n(47),i.Transform=n(48),i.PassThrough=n(49),i.Stream=i,i.prototype.pipe=function(o,a){var s=this;function c(_){o.writable&&o.write(_)===!1&&s.pause&&s.pause()}function u(){s.readable&&s.resume&&s.resume()}s.on("data",c),o.on("drain",u),o._isStdio||a&&a.end===!1||(s.on("end",p),s.on("close",v));var h=!1;function p(){h||(h=!0,o.end())}function v(){h||(h=!0,typeof o.destroy=="function"&&o.destroy())}function b(_){if(x(),r.listenerCount(this,"error")===0)throw _}function x(){s.removeListener("data",c),o.removeListener("drain",u),s.removeListener("end",p),s.removeListener("close",v),s.removeListener("error",b),o.removeListener("error",b),s.removeListener("end",x),s.removeListener("close",x),o.removeListener("close",x)}return s.on("error",b),o.on("error",b),s.on("end",x),s.on("close",x),o.on("close",x),o.emit("pipe",s),o}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(r){return n.call(r)=="[object Array]"}},function(e,t,n){t.byteLength=function(v){var b=u(v),x=b[0],_=b[1];return 3*(x+_)/4-_},t.toByteArray=function(v){for(var b,x=u(v),_=x[0],w=x[1],O=new o(3*(_+w)/4-w),P=0,E=w>0?_-4:_,T=0;T>16&255,O[P++]=b>>8&255,O[P++]=255&b;return w===2&&(b=i[v.charCodeAt(T)]<<2|i[v.charCodeAt(T+1)]>>4,O[P++]=255&b),w===1&&(b=i[v.charCodeAt(T)]<<10|i[v.charCodeAt(T+1)]<<4|i[v.charCodeAt(T+2)]>>2,O[P++]=b>>8&255,O[P++]=255&b),O},t.fromByteArray=function(v){for(var b,x=v.length,_=x%3,w=[],O=0,P=x-_;OP?P:O+16383));return _===1?(b=v[x-1],w.push(r[b>>2]+r[b<<4&63]+"==")):_===2&&(b=(v[x-2]<<8)+v[x-1],w.push(r[b>>10]+r[b>>4&63]+r[b<<2&63]+"=")),w.join("")};for(var r=[],i=[],o=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var x=v.indexOf("=");return x===-1&&(x=b),[x,x===b?0:4-x%4]}function h(v){return r[v>>18&63]+r[v>>12&63]+r[v>>6&63]+r[63&v]}function p(v,b,x){for(var _,w=[],O=b;O>1,v=-7,b=i?a-1:0,x=i?-1:1,_=n[r+b];for(b+=x,s=_&(1<<-v)-1,_>>=-v,v+=u;v>0;s=256*s+n[r+b],b+=x,v-=8);for(c=s&(1<<-v)-1,s>>=-v,v+=o;v>0;c=256*c+n[r+b],b+=x,v-=8);if(s===0)s=1-p;else{if(s===h)return c?NaN:1/0*(_?-1:1);c+=Math.pow(2,o),s-=p}return(_?-1:1)*c*Math.pow(2,s-o)},t.write=function(n,r,i,o,a,s){var c,u,h,p=8*s-a-1,v=(1<>1,x=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,_=o?0:s-1,w=o?1:-1,O=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(u=isNaN(r)?1:0,c=v):(c=Math.floor(Math.log(r)/Math.LN2),r*(h=Math.pow(2,-c))<1&&(c--,h*=2),(r+=c+b>=1?x/h:x*Math.pow(2,1-b))*h>=2&&(c++,h/=2),c+b>=v?(u=0,c=v):c+b>=1?(u=(r*h-1)*Math.pow(2,a),c+=b):(u=r*Math.pow(2,b-1)*Math.pow(2,a),c=0));a>=8;n[i+_]=255&u,_+=w,u/=256,a-=8);for(c=c<0;n[i+_]=255&c,_+=w,c/=256,p-=8);n[i+_-w]|=128*O}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(r){return n.call(r)=="[object Array]"}},function(e,t){},function(e,t,n){var r=n(7).Buffer,i=n(43);function o(a,s,c){a.copy(s,c)}e.exports=function(){function a(){(function(s,c){if(!(s instanceof c))throw new TypeError("Cannot call a class as a function")})(this,a),this.head=null,this.tail=null,this.length=0}return a.prototype.push=function(s){var c={data:s,next:null};this.length>0?this.tail.next=c:this.head=c,this.tail=c,++this.length},a.prototype.unshift=function(s){var c={data:s,next:this.head};this.length===0&&(this.tail=c),this.head=c,++this.length},a.prototype.shift=function(){if(this.length!==0){var s=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,s}},a.prototype.clear=function(){this.head=this.tail=null,this.length=0},a.prototype.join=function(s){if(this.length===0)return"";for(var c=this.head,u=""+c.data;c=c.next;)u+=s+c.data;return u},a.prototype.concat=function(s){if(this.length===0)return r.alloc(0);if(this.length===1)return this.head.data;for(var c=r.allocUnsafe(s>>>0),u=this.head,h=0;u;)o(u.data,c,h),h+=u.data.length,u=u.next;return c},a}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var a=i.inspect({length:this.length});return this.constructor.name+" "+a})},function(e,t){},function(e,t,n){(function(r){function i(o){try{if(!r.localStorage)return!1}catch{return!1}var a=r.localStorage[o];return a!=null&&String(a).toLowerCase()==="true"}e.exports=function(o,a){if(i("noDeprecation"))return o;var s=!1;return function(){if(!s){if(i("throwDeprecation"))throw new Error(a);i("traceDeprecation")?console.trace(a):console.warn(a),s=!0}return o.apply(this,arguments)}}}).call(this,n(0))},function(e,t,n){e.exports=o;var r=n(27),i=n(5);function o(a){if(!(this instanceof o))return new o(a);r.call(this,a)}i.inherits=n(2),i.inherits(o,r),o.prototype._transform=function(a,s,c){c(null,a)}},function(e,t,n){e.exports=n(14)},function(e,t,n){e.exports=n(1)},function(e,t,n){e.exports=n(13).Transform},function(e,t,n){e.exports=n(13).PassThrough},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mergeParams=function(r){var i={delimiter:",",ignoreColumns:void 0,includeColumns:void 0,quote:'"',trim:!0,checkType:!1,ignoreEmpty:!1,noheader:!1,headers:void 0,flatKeys:!1,maxRowLength:0,checkColumn:!1,escape:'"',colParser:{},eol:void 0,alwaysSplitAtEOL:!1,output:"json",nullObject:!1,downstreamFormat:"line",needEmitAll:!0};for(var o in r||(r={}),r)r.hasOwnProperty(o)&&(Array.isArray(r[o])?i[o]=[].concat(r[o]):i[o]=r[o]);return i}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.initParseRuntime=function(r){var i=r.parseParam,o={needProcessIgnoreColumn:!1,needProcessIncludeColumn:!1,selectedColumns:void 0,ended:!1,hasError:!1,error:void 0,delimiter:r.parseParam.delimiter,eol:r.parseParam.eol,columnConv:[],headerType:[],headerTitle:[],headerFlag:[],headers:void 0,started:!1,parsedLineNumber:0,columnValueSetter:[]};return i.ignoreColumns&&(o.needProcessIgnoreColumn=!0),i.includeColumns&&(o.needProcessIncludeColumn=!0),o}},function(e,t,n){(function(r){var i=this&&this.__extends||function(){var w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,P){O.__proto__=P}||function(O,P){for(var E in P)P.hasOwnProperty(E)&&(O[E]=P[E])};return function(O,P){function E(){this.constructor=O}w(O,P),O.prototype=P===null?Object.create(P):(E.prototype=P.prototype,new E)}}(),o=this&&this.__importDefault||function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(53),s=o(n(15)),c=n(54),u=o(n(16)),h=n(57),p=n(28),v=n(58),b=o(n(59)),x=o(n(29)),_=function(w){function O(){var P=w!==null&&w.apply(this,arguments)||this;return P.rowSplit=new v.RowSplit(P.converter),P.eolEmitted=!1,P._needEmitEol=void 0,P.headEmitted=!1,P._needEmitHead=void 0,P}return i(O,w),O.prototype.flush=function(){var P=this;if(this.runtime.csvLineBuffer&&this.runtime.csvLineBuffer.length>0){var E=this.runtime.csvLineBuffer;return this.runtime.csvLineBuffer=void 0,this.process(E,!0).then(function(T){return P.runtime.csvLineBuffer&&P.runtime.csvLineBuffer.length>0?s.default.reject(x.default.unclosed_quote(P.runtime.parsedLineNumber,P.runtime.csvLineBuffer.toString())):s.default.resolve(T)})}return s.default.resolve([])},O.prototype.destroy=function(){return s.default.resolve()},Object.defineProperty(O.prototype,"needEmitEol",{get:function(){return this._needEmitEol===void 0&&(this._needEmitEol=this.converter.listeners("eol").length>0),this._needEmitEol},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"needEmitHead",{get:function(){return this._needEmitHead===void 0&&(this._needEmitHead=this.converter.listeners("header").length>0),this._needEmitHead},enumerable:!0,configurable:!0}),O.prototype.process=function(P,E){var T,A=this;return E===void 0&&(E=!1),T=E?P.toString():c.prepareData(P,this.converter.parseRuntime),s.default.resolve().then(function(){return A.runtime.preRawDataHook?A.runtime.preRawDataHook(T):T}).then(function(j){return j&&j.length>0?A.processCSV(j,E):s.default.resolve([])})},O.prototype.processCSV=function(P,E){var T=this,A=this.params,j=this.runtime;j.eol||u.default(P,j),this.needEmitEol&&!this.eolEmitted&&j.eol&&(this.converter.emit("eol",j.eol),this.eolEmitted=!0),A.ignoreEmpty&&!j.started&&(P=p.trimLeft(P));var N=h.stringToLines(P,j);return E?(N.lines.push(N.partial),N.partial=""):this.prependLeftBuf(p.bufFromString(N.partial)),N.lines.length>0?(j.preFileLineHook?this.runPreLineHook(N.lines):s.default.resolve(N.lines)).then(function($){return j.started||T.runtime.headers?T.processCSVBody($):T.processDataWithHead($)}):s.default.resolve([])},O.prototype.processDataWithHead=function(P){if(this.params.noheader)this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=[];else{for(var E="",T=[];P.length;){var A=E+P.shift(),j=this.rowSplit.parse(A);if(j.closed){T=j.cells,E="";break}E=A+u.default(A,this.runtime)}if(this.prependLeftBuf(p.bufFromString(E)),T.length===0)return[];this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=T}return(this.runtime.needProcessIgnoreColumn||this.runtime.needProcessIncludeColumn)&&this.filterHeader(),this.needEmitHead&&!this.headEmitted&&(this.converter.emit("header",this.runtime.headers),this.headEmitted=!0),this.processCSVBody(P)},O.prototype.filterHeader=function(){if(this.runtime.selectedColumns=[],this.runtime.headers){for(var P=this.runtime.headers,E=0;E=N.length)B();else if($.preFileLineHook){var V=N[W],H=$.preFileLineHook(V,$.parsedLineNumber+W);if(W++,H&&H.then)H.then(function(J){N[W-1]=J,j(N,$,W,B)});else{for(N[W-1]=H;W0?r.concat([p.csvLineBuffer,h]):h}(a,s);s.csvLineBuffer=void 0;var u=function(h,p){var v=h.length-1;if(128&h[v]){for(;(192&h[v])==128;)v--;v--}return v!=h.length-1?(p.csvLineBuffer=h.slice(v+1),h.slice(0,v+1)):h}(c,s).toString("utf8");return s.started===!1?o.default(u):u}}).call(this,n(3).Buffer)},function(e,t,n){(function(r){var i=n(56);e.exports=function(o){return typeof o=="string"&&o.charCodeAt(0)===65279?o.slice(1):r.isBuffer(o)&&i(o)&&o[0]===239&&o[1]===187&&o[2]===191?o.slice(3):o}}).call(this,n(3).Buffer)},function(e,t){e.exports=function(n){for(var r=0;r0),this._needEmitDelimiter},enumerable:!0,configurable:!0}),c.prototype.parse=function(u){if(u.length===0||this.conv.parseParam.ignoreEmpty&&u.trim().length===0)return{cells:[],closed:!0};var h=this.quote,p=this.trim;this.escape,(this.conv.parseRuntime.delimiter instanceof Array||this.conv.parseRuntime.delimiter.toLowerCase()==="auto")&&(this.conv.parseRuntime.delimiter=this.getDelimiter(u)),this.needEmitDelimiter&&!this.delimiterEmitted&&(this.conv.emit("delimiter",this.conv.parseRuntime.delimiter),this.delimiterEmitted=!0);var v=this.conv.parseRuntime.delimiter,b=u.split(v);if(h==="off"){if(p)for(var x=0;xp&&(v=b,p=x)}),v},c.prototype.isQuoteOpen=function(u){var h=this.quote,p=this.escape;return u[0]===h&&(u[1]!==h||u[1]===p&&(u[2]===h||u.length===2))},c.prototype.isQuoteClose=function(u){var h=this.quote,p=this.escape;this.conv.parseParam.trim&&(u=o.trimRight(u));for(var v=0,b=u.length-1;u[b]===h||u[b]===p;)b--,v++;return v%2!=0},c.prototype.escapeQuote=function(u){var h="es|"+this.quote+"|"+this.escape;this.cachedRegExp[h]===void 0&&(this.cachedRegExp[h]=new RegExp("\\"+this.escape+"\\"+this.quote,"g"));var p=this.cachedRegExp[h];return u.replace(p,this.quote)},c.prototype.parseMultiLines=function(u){for(var h=[],p="";u.length;){var v=p+u.shift(),b=this.parse(v);b.cells.length===0&&this.conv.parseParam.ignoreEmpty||(b.closed||this.conv.parseParam.alwaysSplitAtEOL?(this.conv.parseRuntime.selectedColumns?h.push(o.filterArray(b.cells,this.conv.parseRuntime.selectedColumns)):h.push(b.cells),p=""):p=v+(i.default(v,this.conv.parseRuntime)||` +`))}return{rowsCells:h,partial:p}},c}();t.RowSplit=s},function(e,t,n){var r=this&&this.__importDefault||function(O){return O&&O.__esModule?O:{default:O}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(29)),o=r(n(60)),a=/^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/;function s(O,P,E){if(P.parseParam.checkColumn&&P.parseRuntime.headers&&O.length!==P.parseRuntime.headers.length)throw i.default.column_mismatched(P.parseRuntime.parsedLineNumber+E);return function(T,A,j){for(var N=!1,$={},W=0,B=T.length;W-1){for(var j=P.split("."),N=!0;j.length>0;)if(j.shift().length===0){N=!1;break}!N||T.parseParam.colParser[P]&&T.parseParam.colParser[P].flat?T.parseRuntime.columnValueSetter[A]=p:T.parseRuntime.columnValueSetter[A]=v}else T.parseRuntime.columnValueSetter[A]=p;T.parseParam.nullObject===!0&&E==="null"&&(E=null),T.parseRuntime.columnValueSetter[A](O,P,E)}function p(O,P,E){O[P]=E}function v(O,P,E){o.default(O,P,E)}function b(O,P,E,T){return T.parseRuntime.headerType[E]?T.parseRuntime.headerType[E]:P.indexOf("number#!")>-1?T.parseRuntime.headerType[E]=x:P.indexOf("string#!")>-1?T.parseRuntime.headerType[E]=_:T.parseParam.checkType?T.parseRuntime.headerType[E]=w:T.parseRuntime.headerType[E]=_}function x(O){var P=parseFloat(O);return isNaN(P)?O:P}function _(O){return O.toString()}function w(O){var P=O.trim();return P===""?_(O):a.test(P)?x(O):P.length===5&&P.toLowerCase()==="false"||P.length===4&&P.toLowerCase()==="true"?function(E){var T=E.trim();return T.length!==5||T.toLowerCase()!=="false"}(O):P[0]==="{"&&P[P.length-1]==="}"||P[0]==="["&&P[P.length-1]==="]"?function(E){try{return JSON.parse(E)}catch{return E}}(O):_(O)}},function(e,t,n){var r=n(61);e.exports=function(i,o,a){return i==null?i:r(i,o,a)}},function(e,t,n){var r=n(62),i=n(74),o=n(103),a=n(20),s=n(104);e.exports=function(c,u,h,p){if(!a(c))return c;for(var v=-1,b=(u=i(u,c)).length,x=b-1,_=c;_!=null&&++v-1}},function(e,t,n){var r=n(9);e.exports=function(i,o){var a=this.__data__,s=r(a,i);return s<0?(++this.size,a.push([i,o])):a[s][1]=o,this}},function(e,t,n){var r=n(17)(n(19),"Map");e.exports=r},function(e,t,n){var r=n(10);e.exports=function(i){var o=r(this,i).delete(i);return this.size-=o?1:0,o}},function(e,t){e.exports=function(n){var r=typeof n;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?n!=="__proto__":n===null}},function(e,t,n){var r=n(10);e.exports=function(i){return r(this,i).get(i)}},function(e,t,n){var r=n(10);e.exports=function(i){return r(this,i).has(i)}},function(e,t,n){var r=n(10);e.exports=function(i,o){var a=r(this,i),s=a.size;return a.set(i,o),this.size+=a.size==s?0:1,this}},function(e,t,n){var r=n(101);e.exports=function(i){return i==null?"":r(i)}},function(e,t,n){var r=n(18),i=n(102),o=n(21),a=n(22),s=r?r.prototype:void 0,c=s?s.toString:void 0;e.exports=function u(h){if(typeof h=="string")return h;if(o(h))return i(h,u)+"";if(a(h))return c?c.call(h):"";var p=h+"";return p=="0"&&1/h==-1/0?"-0":p}},function(e,t){e.exports=function(n,r){for(var i=-1,o=n==null?0:n.length,a=Array(o);++i-1&&r%1==0&&r0||this.converter.listeners("readable").length>0),this._needPushDownstream},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"needEmitAll",{get:function(){return!!this.converter.parseRuntime.then&&this.converter.parseParam.needEmitAll},enumerable:!0,configurable:!0}),c.prototype.processResult=function(u){var h=this,p=this.converter.parseRuntime.parsedLineNumber;return this.needPushDownstream&&this.converter.parseParam.downstreamFormat==="array"&&p===0&&s(this.converter,"["+o.EOL),new i.default(function(v,b){h.needEmitLine?function x(_,w,O,P,E){if(O>=_.length)E();else if(w.parseRuntime.subscribe&&w.parseRuntime.subscribe.onNext){var T=w.parseRuntime.subscribe.onNext,A=_[O],j=T(A,w.parseRuntime.parsedLineNumber+O);if(O++,j&&j.then)j.then(function(){(function($,W,B,V,H,J,Q){H&&s(B,Q),x($,B,V,H,J)})(_,0,w,O,P,E,A)},E);else{for(P&&s(w,A);O<_.length;){var N=_[O];T(N,w.parseRuntime.parsedLineNumber+O),O++,P&&s(w,N)}E()}}else{if(P)for(;O<_.length;)N=_[O++],s(w,N);E()}}(u,h.converter,0,h.needPushDownstream,function(x){x?b(x):(h.appendFinalResult(u),v())}):(h.appendFinalResult(u),v())})},c.prototype.appendFinalResult=function(u){this.needEmitAll&&(this.finalResult=this.finalResult.concat(u)),this.converter.parseRuntime.parsedLineNumber+=u.length},c.prototype.processError=function(u){this.converter.parseRuntime.subscribe&&this.converter.parseRuntime.subscribe.onError&&this.converter.parseRuntime.subscribe.onError(u),this.converter.parseRuntime.then&&this.converter.parseRuntime.then.onrejected&&this.converter.parseRuntime.then.onrejected(u)},c.prototype.endProcess=function(){this.converter.parseRuntime.then&&this.converter.parseRuntime.then.onfulfilled&&(this.needEmitAll?this.converter.parseRuntime.then.onfulfilled(this.finalResult):this.converter.parseRuntime.then.onfulfilled([])),this.converter.parseRuntime.subscribe&&this.converter.parseRuntime.subscribe.onCompleted&&this.converter.parseRuntime.subscribe.onCompleted(),this.needPushDownstream&&this.converter.parseParam.downstreamFormat==="array"&&s(this.converter,"]"+o.EOL)},c}();function s(c,u){if(typeof u!="object"||c.options.objectMode)c.push(u);else{var h=JSON.stringify(u);c.push(h+(c.parseParam.downstreamFormat==="array"?","+o.EOL:o.EOL),"utf8")}}t.Result=a},function(e,t){t.endianness=function(){return"LE"},t.hostname=function(){return typeof location<"u"?location.hostname:""},t.loadavg=function(){return[]},t.uptime=function(){return 0},t.freemem=function(){return Number.MAX_VALUE},t.totalmem=function(){return Number.MAX_VALUE},t.cpus=function(){return[]},t.type=function(){return"Browser"},t.release=function(){return typeof navigator<"u"?navigator.appVersion:""},t.networkInterfaces=t.getNetworkInterfaces=function(){return{}},t.arch=function(){return"javascript"},t.platform=function(){return"browser"},t.tmpdir=t.tmpDir=function(){return"/tmp"},t.EOL=` +`,t.homedir=function(){return"/"}}])),qO}var IAe=LAe();const DAe=Nt(IAe),$Ae=e=>new Promise(t=>{DAe().fromString(e).then(t)}),FAe=new g7,BAe=e=>FAe.parse(e),UAe="shlink",p8=e=>`${UAe}.${e}`;class zAe{constructor(t){Ec(this,"get",t=>{const n=this.localStorage.getItem(p8(t));return n?JSON.parse(n):void 0});Ec(this,"set",(t,n)=>this.localStorage.setItem(p8(t),JSON.stringify(n)));this.localStorage=t}}class VAe{constructor(t){this.storage=t}getTagColors(){return this.storage.get("colors")??{}}storeTagColors(t){this.storage.set("colors",t)}}const WAe=e=>{e.constant("localStorage",window.localStorage),e.service("Storage",zAe,"localStorage"),e.service("TagColorsStorage",VAe,"Storage"),e.constant("csvToJson",$Ae),e.constant("jsonToCsv",BAe),e.serviceFactory("useTimeoutToggle",()=>jF)},Bu=new K8,{container:dA}=Bu,qAe=(e,t)=>(...n)=>e[t](...n),HAe=(e,t)=>({...e,[t]:qAe(dA,t)}),GAe=e=>t=>Object.fromEntries(e.map(n=>[n,t[n]])),Lb=(e,t=[])=>S8(e?GAe(e):null,t.reduce(HAe,{}));voe(Bu,Lb);Bje(Bu,Lb);tK(Bu);EAe(Bu,Lb);WAe(Bu);MAe(Bu,Lb);var HO={},fg={exports:{}},m8;function KAe(){return m8||(m8=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isPlainObject=t.clone=t.recursive=t.merge=t.main=void 0,e.exports=t=n,t.default=n;function n(){for(var u=[],h=0;hK.length)&&(G=K.length);for(var z=0,ne=Array(G);zwT({appUpdated:moe,servers:uAe,selectedServer:e.selectedServerReducer,settings:RAe}),XAe=e=>(e.settings&&e.settings.visits&&e.settings.visits.defaultInterval==="last180days"&&(e.settings.visits.defaultInterval="last180Days"),e),QAe=!0,OW={states:["settings","servers"],namespace:"shlink",namespaceSeparator:".",debounce:300},JAe=XAe(wW.load(OW)),e3e=e=>WF({devTools:!QAe,reducer:ZAe(e),preloadedState:JAe,middleware:t=>t({immutableCheck:!1,serializableCheck:!1}).concat(wW.save(OW))}),t3e=!!(window.location.hostname==="localhost"||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));function n3e(e){if("serviceWorker"in navigator){if(new URL(Eg.homepage,window.location.href).origin!==window.location.origin)return;window.addEventListener("load",()=>{const n=`${Eg.homepage}/service-worker.js`;t3e?(r3e(n,e),navigator.serviceWorker.ready.then(()=>{console.log("This web app is being served cache-first by a service worker. To learn more, visit https://cra.link/PWA")})):SW(n,e)})}}function SW(e,t){navigator.serviceWorker.register(e).then(n=>{n.onupdatefound=()=>{const r=n.installing;r!=null&&(r.onstatechange=()=>{r.state==="installed"&&(navigator.serviceWorker.controller?(console.log("New content is available and will be used when all tabs for this page are closed. See https://cra.link/PWA."),t&&t.onUpdate&&t.onUpdate(n)):(console.log("Content is cached for offline use."),t&&t.onSuccess&&t.onSuccess(n)))})}}).catch(n=>{console.error("Error during service worker registration:",n)})}function r3e(e,t){fetch(e,{headers:{"Service-Worker":"script"}}).then(n=>{const r=n.headers.get("content-type");n.status===404||r!=null&&r.indexOf("javascript")===-1?navigator.serviceWorker.ready.then(i=>{i.unregister().then(()=>{window.location.reload()})}):SW(e,t)}).catch(()=>{console.log("No internet connection found. App is running in offline mode.")})}const PW=e3e(dA),{App:i3e,ScrollToTop:o3e,ErrorHandler:a3e,appUpdateAvailable:s3e}=dA;gq.createRoot(document.getElementById("root")).render(g.jsx(P8,{store:PW,children:g.jsx(I8,{basename:Eg.homepage,children:g.jsx(a3e,{children:g.jsx(o3e,{children:g.jsx(i3e,{})})})})}));n3e({onUpdate(){PW.dispatch(s3e())}}); diff --git a/dependabot/npm_and_yarn/vite-d4fe43cea2/assets/index-Ina9ujc2.css b/dependabot/npm_and_yarn/vite-d4fe43cea2/assets/index-Ina9ujc2.css new file mode 100644 index 00000000..e6d2317c --- /dev/null +++ b/dependabot/npm_and_yarn/vite-d4fe43cea2/assets/index-Ina9ujc2.css @@ -0,0 +1,6 @@ +@charset "UTF-8";.app-update-banner.app-update-banner{position:absolute;left:50%;transform:translate(-50%);position:fixed;top:31px;padding:0 4rem 0 0;z-index:1040;margin:0;color:var(--text-color);text-align:center;width:700px;max-width:calc(100% - 30px);box-shadow:0 0 1rem var(--brand-color)}.app-container{height:100%}.app{padding-top:56px;height:100%}.shlink-wrapper{min-height:100%;padding-bottom:3.1rem;margin-bottom:-3.1rem}.shlink-footer{height:2.3rem;margin-top:.8rem;padding:0}@media (min-width: 768px){.shlink-footer{padding:0 15px}}.servers-list__list-group.servers-list__list-group{width:100%}.servers-list__list-group:not(.servers-list__list-group--embedded){max-width:400px;box-shadow:0 .125rem .25rem #00000013}.servers-list__server-item.servers-list__server-item{text-align:left;position:relative;padding:.75rem 2.5rem .75rem 1rem}.servers-list__server-item:not(:hover){color:#4696e5}.servers-list__server-item:hover{background-color:var(--secondary-color)}.servers-list__server-item-icon{position:absolute;top:50%;transform:translateY(-50%);right:1rem}.servers-list__list-group--embedded.servers-list__list-group--embedded{border-radius:0;border-top:1px solid var(--border-color)}@media (min-width: 768px){.servers-list__list-group--embedded.servers-list__list-group--embedded{max-height:220px;overflow-x:auto;scrollbar-color:rgba(0,0,0,.2) #f5f5f5;scrollbar-width:thin}.servers-list__list-group--embedded.servers-list__list-group--embedded::-webkit-scrollbar{width:6px;background-color:#f5f5f5}.servers-list__list-group--embedded.servers-list__list-group--embedded::-webkit-scrollbar-thumb{background-color:#0003;border-radius:.5rem}}.servers-list__list-group--embedded.servers-list__list-group--embedded .servers-list__server-item{border:none;border-bottom:1px solid var(--border-color)}.home__title{font-size:1.75rem}@media (min-width: 768px){.home__title{font-size:2.2rem}}@media (min-width: 768px){.home__servers-container{border-left:1px solid var(--border-color)}}.main-header.main-header{color:#fff;background-color:var(--brand-color)!important}.main-header.main-header .navbar-brand{color:inherit!important}.main-header__brand-logo{width:26px;margin-right:5px}.main-header__toggle-icon{width:20px;transition:transform .3s}.main-header__toggle-icon--opened{transform:rotate(180deg)}.shlink-versions-container--with-sidebar{margin-left:0}@media (min-width: 768px){.shlink-versions-container--with-sidebar{margin-left:260px}}.no-menu-wrapper{padding:15px 0 0}@media (min-width: 768px){.no-menu-wrapper{padding:30px 20px 20px}}.server-error__container{text-align:center;display:flex;align-items:center;justify-content:center}.server-error__delete-btn{color:#dc3545;font-weight:inherit}.server-error__delete-btn:hover{text-decoration:underline}/*! + * Bootstrap v5.2.3 (https://getbootstrap.com/) + * Copyright 2011-2022 The Bootstrap Authors + * Copyright 2011-2022 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) + */:root{--bs-blue: #0d6efd;--bs-indigo: #6610f2;--bs-purple: #6f42c1;--bs-pink: #d63384;--bs-red: #dc3545;--bs-orange: #fd7e14;--bs-yellow: #ffc107;--bs-green: #198754;--bs-teal: #20c997;--bs-cyan: #0dcaf0;--bs-black: #000;--bs-white: #fff;--bs-gray: #6c757d;--bs-gray-dark: #343a40;--bs-gray-100: #f8f9fa;--bs-gray-200: #e9ecef;--bs-gray-300: #dee2e6;--bs-gray-400: #ced4da;--bs-gray-500: #adb5bd;--bs-gray-600: #6c757d;--bs-gray-700: #495057;--bs-gray-800: #343a40;--bs-gray-900: #212529;--bs-primary: #4696e5;--bs-secondary: #6c757d;--bs-success: #198754;--bs-info: #0dcaf0;--bs-warning: #ffc107;--bs-danger: #dc3545;--bs-light: #f8f9fa;--bs-dark: #212529;--bs-primary-rgb: 70, 150, 229;--bs-secondary-rgb: 108, 117, 125;--bs-success-rgb: 25, 135, 84;--bs-info-rgb: 13, 202, 240;--bs-warning-rgb: 255, 193, 7;--bs-danger-rgb: 220, 53, 69;--bs-light-rgb: 248, 249, 250;--bs-dark-rgb: 33, 37, 41;--bs-white-rgb: 255, 255, 255;--bs-black-rgb: 0, 0, 0;--bs-body-color-rgb: 33, 37, 41;--bs-body-bg-rgb: 255, 255, 255;--bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, 0));--bs-body-font-family: var(--bs-font-sans-serif);--bs-body-font-size: 1rem;--bs-body-font-weight: 400;--bs-body-line-height: 1.5;--bs-body-color: #212529;--bs-body-bg: #fff;--bs-border-width: 1px;--bs-border-style: solid;--bs-border-color: #dee2e6;--bs-border-color-translucent: rgba(0, 0, 0, .175);--bs-border-radius: .375rem;--bs-border-radius-sm: .25rem;--bs-border-radius-lg: .5rem;--bs-border-radius-xl: 1rem;--bs-border-radius-2xl: 2rem;--bs-border-radius-pill: 50rem;--bs-link-color: #4696e5;--bs-link-hover-color: rgb(56, 120, 183.2);--bs-code-color: #d63384;--bs-highlight-bg: rgb(255, 242.6, 205.4)}*,*:before,*:after{box-sizing:border-box}@media (prefers-reduced-motion: no-preference){:root{scroll-behavior:smooth}}body{margin:0;font-family:var(--bs-body-font-family);font-size:var(--bs-body-font-size);font-weight:var(--bs-body-font-weight);line-height:var(--bs-body-line-height);color:var(--bs-body-color);text-align:var(--bs-body-text-align);background-color:var(--bs-body-bg);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)}hr{margin:1rem 0;color:inherit;border:0;border-top:1px solid;opacity:.25}h6,.h6,h5,.h5,h4,.h4,h3,.h3,h2,.h2,h1,.h1{margin-top:0;margin-bottom:.5rem;font-weight:500;line-height:1.2}h1,.h1{font-size:calc(1.375rem + 1.5vw)}@media (min-width: 1200px){h1,.h1{font-size:2.5rem}}h2,.h2{font-size:calc(1.325rem + .9vw)}@media (min-width: 1200px){h2,.h2{font-size:2rem}}h3,.h3{font-size:calc(1.3rem + .6vw)}@media (min-width: 1200px){h3,.h3{font-size:1.75rem}}h4,.h4{font-size:calc(1.275rem + .3vw)}@media (min-width: 1200px){h4,.h4{font-size:1.5rem}}h5,.h5{font-size:1.25rem}h6,.h6{font-size:1rem}p{margin-top:0;margin-bottom:1rem}abbr[title]{text-decoration:underline dotted;cursor:help;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}ol,ul{padding-left:2rem}ol,ul,dl{margin-top:0;margin-bottom:1rem}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}small,.small{font-size:.875em}mark,.mark{padding:.1875em;background-color:var(--bs-highlight-bg)}sub,sup{position:relative;font-size:.75em;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:var(--bs-link-color);text-decoration:underline}a:hover{color:var(--bs-link-hover-color)}a:not([href]):not([class]),a:not([href]):not([class]):hover{color:inherit;text-decoration:none}pre,code,kbd,samp{font-family:var(--bs-font-monospace);font-size:1em}pre{display:block;margin-top:0;margin-bottom:1rem;overflow:auto;font-size:.875em}pre code{font-size:inherit;color:inherit;word-break:normal}code{font-size:.875em;color:var(--bs-code-color);word-wrap:break-word}a>code{color:inherit}kbd{padding:.1875rem .375rem;font-size:.875em;color:var(--bs-body-bg);background-color:var(--bs-body-color);border-radius:.25rem}kbd kbd{padding:0;font-size:1em}figure{margin:0 0 1rem}img,svg{vertical-align:middle}table{caption-side:bottom;border-collapse:collapse}caption{padding-top:.5rem;padding-bottom:.5rem;color:#6c757d;text-align:left}th{text-align:inherit;text-align:-webkit-match-parent}thead,tbody,tfoot,tr,td,th{border-color:inherit;border-style:solid;border-width:0}label{display:inline-block}button{border-radius:0}button:focus:not(:focus-visible){outline:0}input,button,select,optgroup,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,select{text-transform:none}[role=button]{cursor:pointer}select{word-wrap:normal}select:disabled{opacity:1}[list]:not([type=date]):not([type=datetime-local]):not([type=month]):not([type=week]):not([type=time])::-webkit-calendar-picker-indicator{display:none!important}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button:not(:disabled),[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled){cursor:pointer}::-moz-focus-inner{padding:0;border-style:none}textarea{resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{float:left;width:100%;padding:0;margin-bottom:.5rem;font-size:calc(1.275rem + .3vw);line-height:inherit}@media (min-width: 1200px){legend{font-size:1.5rem}}legend+*{clear:left}::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-text,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:textfield}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{font:inherit;-webkit-appearance:button}output{display:inline-block}iframe{border:0}summary{display:list-item;cursor:pointer}progress{vertical-align:baseline}[hidden]{display:none!important}.lead{font-size:1.25rem;font-weight:300}.display-1{font-size:calc(1.625rem + 4.5vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-1{font-size:5rem}}.display-2{font-size:calc(1.575rem + 3.9vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-2{font-size:4.5rem}}.display-3{font-size:calc(1.525rem + 3.3vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-3{font-size:4rem}}.display-4{font-size:calc(1.475rem + 2.7vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-4{font-size:3.5rem}}.display-5{font-size:calc(1.425rem + 2.1vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-5{font-size:3rem}}.display-6{font-size:calc(1.375rem + 1.5vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-6{font-size:2.5rem}}.list-unstyled,.list-inline{padding-left:0;list-style:none}.list-inline-item{display:inline-block}.list-inline-item:not(:last-child){margin-right:.5rem}.initialism{font-size:.875em;text-transform:uppercase}.blockquote{margin-bottom:1rem;font-size:1.25rem}.blockquote>:last-child{margin-bottom:0}.blockquote-footer{margin-top:-1rem;margin-bottom:1rem;font-size:.875em;color:#6c757d}.blockquote-footer:before{content:"— "}.img-fluid{max-width:100%;height:auto}.img-thumbnail{padding:.25rem;background-color:#fff;border:1px solid var(--bs-border-color);border-radius:.375rem;max-width:100%;height:auto}.figure{display:inline-block}.figure-img{margin-bottom:.5rem;line-height:1}.figure-caption{font-size:.875em;color:#6c757d}.container,.container-fluid,.container-xxl,.container-xl,.container-lg,.container-md,.container-sm{--bs-gutter-x: 1.5rem;--bs-gutter-y: 0;width:100%;padding-right:calc(var(--bs-gutter-x) * .5);padding-left:calc(var(--bs-gutter-x) * .5);margin-right:auto;margin-left:auto}@media (min-width: 576px){.container-sm,.container{max-width:540px}}@media (min-width: 768px){.container-md,.container-sm,.container{max-width:720px}}@media (min-width: 992px){.container-lg,.container-md,.container-sm,.container{max-width:960px}}@media (min-width: 1200px){.container-xl,.container-lg,.container-md,.container-sm,.container{max-width:1140px}}@media (min-width: 1400px){.container-xxl,.container-xl,.container-lg,.container-md,.container-sm,.container{max-width:1320px}}.row{--bs-gutter-x: 1.5rem;--bs-gutter-y: 0;display:flex;flex-wrap:wrap;margin-top:calc(-1 * var(--bs-gutter-y));margin-right:calc(-.5 * var(--bs-gutter-x));margin-left:calc(-.5 * var(--bs-gutter-x))}.row>*{flex-shrink:0;width:100%;max-width:100%;padding-right:calc(var(--bs-gutter-x) * .5);padding-left:calc(var(--bs-gutter-x) * .5);margin-top:var(--bs-gutter-y)}.col{flex:1 0 0%}.row-cols-auto>*{flex:0 0 auto;width:auto}.row-cols-1>*{flex:0 0 auto;width:100%}.row-cols-2>*{flex:0 0 auto;width:50%}.row-cols-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-4>*{flex:0 0 auto;width:25%}.row-cols-5>*{flex:0 0 auto;width:20%}.row-cols-6>*{flex:0 0 auto;width:16.6666666667%}.col-auto{flex:0 0 auto;width:auto}.col-1{flex:0 0 auto;width:8.33333333%}.col-2{flex:0 0 auto;width:16.66666667%}.col-3{flex:0 0 auto;width:25%}.col-4{flex:0 0 auto;width:33.33333333%}.col-5{flex:0 0 auto;width:41.66666667%}.col-6{flex:0 0 auto;width:50%}.col-7{flex:0 0 auto;width:58.33333333%}.col-8{flex:0 0 auto;width:66.66666667%}.col-9{flex:0 0 auto;width:75%}.col-10{flex:0 0 auto;width:83.33333333%}.col-11{flex:0 0 auto;width:91.66666667%}.col-12{flex:0 0 auto;width:100%}.offset-1{margin-left:8.33333333%}.offset-2{margin-left:16.66666667%}.offset-3{margin-left:25%}.offset-4{margin-left:33.33333333%}.offset-5{margin-left:41.66666667%}.offset-6{margin-left:50%}.offset-7{margin-left:58.33333333%}.offset-8{margin-left:66.66666667%}.offset-9{margin-left:75%}.offset-10{margin-left:83.33333333%}.offset-11{margin-left:91.66666667%}.g-0,.gx-0{--bs-gutter-x: 0}.g-0,.gy-0{--bs-gutter-y: 0}.g-1,.gx-1{--bs-gutter-x: .25rem}.g-1,.gy-1{--bs-gutter-y: .25rem}.g-2,.gx-2{--bs-gutter-x: .5rem}.g-2,.gy-2{--bs-gutter-y: .5rem}.g-3,.gx-3{--bs-gutter-x: 1rem}.g-3,.gy-3{--bs-gutter-y: 1rem}.g-4,.gx-4{--bs-gutter-x: 1.5rem}.g-4,.gy-4{--bs-gutter-y: 1.5rem}.g-5,.gx-5{--bs-gutter-x: 3rem}.g-5,.gy-5{--bs-gutter-y: 3rem}@media (min-width: 576px){.col-sm{flex:1 0 0%}.row-cols-sm-auto>*{flex:0 0 auto;width:auto}.row-cols-sm-1>*{flex:0 0 auto;width:100%}.row-cols-sm-2>*{flex:0 0 auto;width:50%}.row-cols-sm-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-sm-4>*{flex:0 0 auto;width:25%}.row-cols-sm-5>*{flex:0 0 auto;width:20%}.row-cols-sm-6>*{flex:0 0 auto;width:16.6666666667%}.col-sm-auto{flex:0 0 auto;width:auto}.col-sm-1{flex:0 0 auto;width:8.33333333%}.col-sm-2{flex:0 0 auto;width:16.66666667%}.col-sm-3{flex:0 0 auto;width:25%}.col-sm-4{flex:0 0 auto;width:33.33333333%}.col-sm-5{flex:0 0 auto;width:41.66666667%}.col-sm-6{flex:0 0 auto;width:50%}.col-sm-7{flex:0 0 auto;width:58.33333333%}.col-sm-8{flex:0 0 auto;width:66.66666667%}.col-sm-9{flex:0 0 auto;width:75%}.col-sm-10{flex:0 0 auto;width:83.33333333%}.col-sm-11{flex:0 0 auto;width:91.66666667%}.col-sm-12{flex:0 0 auto;width:100%}.offset-sm-0{margin-left:0}.offset-sm-1{margin-left:8.33333333%}.offset-sm-2{margin-left:16.66666667%}.offset-sm-3{margin-left:25%}.offset-sm-4{margin-left:33.33333333%}.offset-sm-5{margin-left:41.66666667%}.offset-sm-6{margin-left:50%}.offset-sm-7{margin-left:58.33333333%}.offset-sm-8{margin-left:66.66666667%}.offset-sm-9{margin-left:75%}.offset-sm-10{margin-left:83.33333333%}.offset-sm-11{margin-left:91.66666667%}.g-sm-0,.gx-sm-0{--bs-gutter-x: 0}.g-sm-0,.gy-sm-0{--bs-gutter-y: 0}.g-sm-1,.gx-sm-1{--bs-gutter-x: .25rem}.g-sm-1,.gy-sm-1{--bs-gutter-y: .25rem}.g-sm-2,.gx-sm-2{--bs-gutter-x: .5rem}.g-sm-2,.gy-sm-2{--bs-gutter-y: .5rem}.g-sm-3,.gx-sm-3{--bs-gutter-x: 1rem}.g-sm-3,.gy-sm-3{--bs-gutter-y: 1rem}.g-sm-4,.gx-sm-4{--bs-gutter-x: 1.5rem}.g-sm-4,.gy-sm-4{--bs-gutter-y: 1.5rem}.g-sm-5,.gx-sm-5{--bs-gutter-x: 3rem}.g-sm-5,.gy-sm-5{--bs-gutter-y: 3rem}}@media (min-width: 768px){.col-md{flex:1 0 0%}.row-cols-md-auto>*{flex:0 0 auto;width:auto}.row-cols-md-1>*{flex:0 0 auto;width:100%}.row-cols-md-2>*{flex:0 0 auto;width:50%}.row-cols-md-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-md-4>*{flex:0 0 auto;width:25%}.row-cols-md-5>*{flex:0 0 auto;width:20%}.row-cols-md-6>*{flex:0 0 auto;width:16.6666666667%}.col-md-auto{flex:0 0 auto;width:auto}.col-md-1{flex:0 0 auto;width:8.33333333%}.col-md-2{flex:0 0 auto;width:16.66666667%}.col-md-3{flex:0 0 auto;width:25%}.col-md-4{flex:0 0 auto;width:33.33333333%}.col-md-5{flex:0 0 auto;width:41.66666667%}.col-md-6{flex:0 0 auto;width:50%}.col-md-7{flex:0 0 auto;width:58.33333333%}.col-md-8{flex:0 0 auto;width:66.66666667%}.col-md-9{flex:0 0 auto;width:75%}.col-md-10{flex:0 0 auto;width:83.33333333%}.col-md-11{flex:0 0 auto;width:91.66666667%}.col-md-12{flex:0 0 auto;width:100%}.offset-md-0{margin-left:0}.offset-md-1{margin-left:8.33333333%}.offset-md-2{margin-left:16.66666667%}.offset-md-3{margin-left:25%}.offset-md-4{margin-left:33.33333333%}.offset-md-5{margin-left:41.66666667%}.offset-md-6{margin-left:50%}.offset-md-7{margin-left:58.33333333%}.offset-md-8{margin-left:66.66666667%}.offset-md-9{margin-left:75%}.offset-md-10{margin-left:83.33333333%}.offset-md-11{margin-left:91.66666667%}.g-md-0,.gx-md-0{--bs-gutter-x: 0}.g-md-0,.gy-md-0{--bs-gutter-y: 0}.g-md-1,.gx-md-1{--bs-gutter-x: .25rem}.g-md-1,.gy-md-1{--bs-gutter-y: .25rem}.g-md-2,.gx-md-2{--bs-gutter-x: .5rem}.g-md-2,.gy-md-2{--bs-gutter-y: .5rem}.g-md-3,.gx-md-3{--bs-gutter-x: 1rem}.g-md-3,.gy-md-3{--bs-gutter-y: 1rem}.g-md-4,.gx-md-4{--bs-gutter-x: 1.5rem}.g-md-4,.gy-md-4{--bs-gutter-y: 1.5rem}.g-md-5,.gx-md-5{--bs-gutter-x: 3rem}.g-md-5,.gy-md-5{--bs-gutter-y: 3rem}}@media (min-width: 992px){.col-lg{flex:1 0 0%}.row-cols-lg-auto>*{flex:0 0 auto;width:auto}.row-cols-lg-1>*{flex:0 0 auto;width:100%}.row-cols-lg-2>*{flex:0 0 auto;width:50%}.row-cols-lg-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-lg-4>*{flex:0 0 auto;width:25%}.row-cols-lg-5>*{flex:0 0 auto;width:20%}.row-cols-lg-6>*{flex:0 0 auto;width:16.6666666667%}.col-lg-auto{flex:0 0 auto;width:auto}.col-lg-1{flex:0 0 auto;width:8.33333333%}.col-lg-2{flex:0 0 auto;width:16.66666667%}.col-lg-3{flex:0 0 auto;width:25%}.col-lg-4{flex:0 0 auto;width:33.33333333%}.col-lg-5{flex:0 0 auto;width:41.66666667%}.col-lg-6{flex:0 0 auto;width:50%}.col-lg-7{flex:0 0 auto;width:58.33333333%}.col-lg-8{flex:0 0 auto;width:66.66666667%}.col-lg-9{flex:0 0 auto;width:75%}.col-lg-10{flex:0 0 auto;width:83.33333333%}.col-lg-11{flex:0 0 auto;width:91.66666667%}.col-lg-12{flex:0 0 auto;width:100%}.offset-lg-0{margin-left:0}.offset-lg-1{margin-left:8.33333333%}.offset-lg-2{margin-left:16.66666667%}.offset-lg-3{margin-left:25%}.offset-lg-4{margin-left:33.33333333%}.offset-lg-5{margin-left:41.66666667%}.offset-lg-6{margin-left:50%}.offset-lg-7{margin-left:58.33333333%}.offset-lg-8{margin-left:66.66666667%}.offset-lg-9{margin-left:75%}.offset-lg-10{margin-left:83.33333333%}.offset-lg-11{margin-left:91.66666667%}.g-lg-0,.gx-lg-0{--bs-gutter-x: 0}.g-lg-0,.gy-lg-0{--bs-gutter-y: 0}.g-lg-1,.gx-lg-1{--bs-gutter-x: .25rem}.g-lg-1,.gy-lg-1{--bs-gutter-y: .25rem}.g-lg-2,.gx-lg-2{--bs-gutter-x: .5rem}.g-lg-2,.gy-lg-2{--bs-gutter-y: .5rem}.g-lg-3,.gx-lg-3{--bs-gutter-x: 1rem}.g-lg-3,.gy-lg-3{--bs-gutter-y: 1rem}.g-lg-4,.gx-lg-4{--bs-gutter-x: 1.5rem}.g-lg-4,.gy-lg-4{--bs-gutter-y: 1.5rem}.g-lg-5,.gx-lg-5{--bs-gutter-x: 3rem}.g-lg-5,.gy-lg-5{--bs-gutter-y: 3rem}}@media (min-width: 1200px){.col-xl{flex:1 0 0%}.row-cols-xl-auto>*{flex:0 0 auto;width:auto}.row-cols-xl-1>*{flex:0 0 auto;width:100%}.row-cols-xl-2>*{flex:0 0 auto;width:50%}.row-cols-xl-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-xl-4>*{flex:0 0 auto;width:25%}.row-cols-xl-5>*{flex:0 0 auto;width:20%}.row-cols-xl-6>*{flex:0 0 auto;width:16.6666666667%}.col-xl-auto{flex:0 0 auto;width:auto}.col-xl-1{flex:0 0 auto;width:8.33333333%}.col-xl-2{flex:0 0 auto;width:16.66666667%}.col-xl-3{flex:0 0 auto;width:25%}.col-xl-4{flex:0 0 auto;width:33.33333333%}.col-xl-5{flex:0 0 auto;width:41.66666667%}.col-xl-6{flex:0 0 auto;width:50%}.col-xl-7{flex:0 0 auto;width:58.33333333%}.col-xl-8{flex:0 0 auto;width:66.66666667%}.col-xl-9{flex:0 0 auto;width:75%}.col-xl-10{flex:0 0 auto;width:83.33333333%}.col-xl-11{flex:0 0 auto;width:91.66666667%}.col-xl-12{flex:0 0 auto;width:100%}.offset-xl-0{margin-left:0}.offset-xl-1{margin-left:8.33333333%}.offset-xl-2{margin-left:16.66666667%}.offset-xl-3{margin-left:25%}.offset-xl-4{margin-left:33.33333333%}.offset-xl-5{margin-left:41.66666667%}.offset-xl-6{margin-left:50%}.offset-xl-7{margin-left:58.33333333%}.offset-xl-8{margin-left:66.66666667%}.offset-xl-9{margin-left:75%}.offset-xl-10{margin-left:83.33333333%}.offset-xl-11{margin-left:91.66666667%}.g-xl-0,.gx-xl-0{--bs-gutter-x: 0}.g-xl-0,.gy-xl-0{--bs-gutter-y: 0}.g-xl-1,.gx-xl-1{--bs-gutter-x: .25rem}.g-xl-1,.gy-xl-1{--bs-gutter-y: .25rem}.g-xl-2,.gx-xl-2{--bs-gutter-x: .5rem}.g-xl-2,.gy-xl-2{--bs-gutter-y: .5rem}.g-xl-3,.gx-xl-3{--bs-gutter-x: 1rem}.g-xl-3,.gy-xl-3{--bs-gutter-y: 1rem}.g-xl-4,.gx-xl-4{--bs-gutter-x: 1.5rem}.g-xl-4,.gy-xl-4{--bs-gutter-y: 1.5rem}.g-xl-5,.gx-xl-5{--bs-gutter-x: 3rem}.g-xl-5,.gy-xl-5{--bs-gutter-y: 3rem}}@media (min-width: 1400px){.col-xxl{flex:1 0 0%}.row-cols-xxl-auto>*{flex:0 0 auto;width:auto}.row-cols-xxl-1>*{flex:0 0 auto;width:100%}.row-cols-xxl-2>*{flex:0 0 auto;width:50%}.row-cols-xxl-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-xxl-4>*{flex:0 0 auto;width:25%}.row-cols-xxl-5>*{flex:0 0 auto;width:20%}.row-cols-xxl-6>*{flex:0 0 auto;width:16.6666666667%}.col-xxl-auto{flex:0 0 auto;width:auto}.col-xxl-1{flex:0 0 auto;width:8.33333333%}.col-xxl-2{flex:0 0 auto;width:16.66666667%}.col-xxl-3{flex:0 0 auto;width:25%}.col-xxl-4{flex:0 0 auto;width:33.33333333%}.col-xxl-5{flex:0 0 auto;width:41.66666667%}.col-xxl-6{flex:0 0 auto;width:50%}.col-xxl-7{flex:0 0 auto;width:58.33333333%}.col-xxl-8{flex:0 0 auto;width:66.66666667%}.col-xxl-9{flex:0 0 auto;width:75%}.col-xxl-10{flex:0 0 auto;width:83.33333333%}.col-xxl-11{flex:0 0 auto;width:91.66666667%}.col-xxl-12{flex:0 0 auto;width:100%}.offset-xxl-0{margin-left:0}.offset-xxl-1{margin-left:8.33333333%}.offset-xxl-2{margin-left:16.66666667%}.offset-xxl-3{margin-left:25%}.offset-xxl-4{margin-left:33.33333333%}.offset-xxl-5{margin-left:41.66666667%}.offset-xxl-6{margin-left:50%}.offset-xxl-7{margin-left:58.33333333%}.offset-xxl-8{margin-left:66.66666667%}.offset-xxl-9{margin-left:75%}.offset-xxl-10{margin-left:83.33333333%}.offset-xxl-11{margin-left:91.66666667%}.g-xxl-0,.gx-xxl-0{--bs-gutter-x: 0}.g-xxl-0,.gy-xxl-0{--bs-gutter-y: 0}.g-xxl-1,.gx-xxl-1{--bs-gutter-x: .25rem}.g-xxl-1,.gy-xxl-1{--bs-gutter-y: .25rem}.g-xxl-2,.gx-xxl-2{--bs-gutter-x: .5rem}.g-xxl-2,.gy-xxl-2{--bs-gutter-y: .5rem}.g-xxl-3,.gx-xxl-3{--bs-gutter-x: 1rem}.g-xxl-3,.gy-xxl-3{--bs-gutter-y: 1rem}.g-xxl-4,.gx-xxl-4{--bs-gutter-x: 1.5rem}.g-xxl-4,.gy-xxl-4{--bs-gutter-y: 1.5rem}.g-xxl-5,.gx-xxl-5{--bs-gutter-x: 3rem}.g-xxl-5,.gy-xxl-5{--bs-gutter-y: 3rem}}.table{--bs-table-color: var(--bs-body-color);--bs-table-bg: transparent;--bs-table-border-color: var(--bs-border-color);--bs-table-accent-bg: transparent;--bs-table-striped-color: var(--bs-body-color);--bs-table-striped-bg: rgba(0, 0, 0, .05);--bs-table-active-color: var(--bs-body-color);--bs-table-active-bg: rgba(0, 0, 0, .1);--bs-table-hover-color: var(--bs-body-color);--bs-table-hover-bg: rgba(0, 0, 0, .075);width:100%;margin-bottom:1rem;color:var(--bs-table-color);vertical-align:top;border-color:var(--bs-table-border-color)}.table>:not(caption)>*>*{padding:.5rem;background-color:var(--bs-table-bg);border-bottom-width:1px;box-shadow:inset 0 0 0 9999px var(--bs-table-accent-bg)}.table>tbody{vertical-align:inherit}.table>thead{vertical-align:bottom}.table-group-divider{border-top:2px solid currentcolor}.caption-top{caption-side:top}.table-sm>:not(caption)>*>*{padding:.25rem}.table-bordered>:not(caption)>*{border-width:1px 0}.table-bordered>:not(caption)>*>*{border-width:0 1px}.table-borderless>:not(caption)>*>*{border-bottom-width:0}.table-borderless>:not(:first-child){border-top-width:0}.table-striped>tbody>tr:nth-of-type(odd)>*{--bs-table-accent-bg: var(--bs-table-striped-bg);color:var(--bs-table-striped-color)}.table-striped-columns>:not(caption)>tr>:nth-child(2n){--bs-table-accent-bg: var(--bs-table-striped-bg);color:var(--bs-table-striped-color)}.table-active{--bs-table-accent-bg: var(--bs-table-active-bg);color:var(--bs-table-active-color)}.table-hover>tbody>tr:hover>*{--bs-table-accent-bg: var(--bs-table-hover-bg);color:var(--bs-table-hover-color)}.table-primary{--bs-table-color: #000;--bs-table-bg: rgb(218, 234, 249.8);--bs-table-border-color: rgb(196.2, 210.6, 224.82);--bs-table-striped-bg: rgb(207.1, 222.3, 237.31);--bs-table-striped-color: #000;--bs-table-active-bg: rgb(196.2, 210.6, 224.82);--bs-table-active-color: #000;--bs-table-hover-bg: rgb(201.65, 216.45, 231.065);--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-secondary{--bs-table-color: #000;--bs-table-bg: rgb(225.6, 227.4, 229);--bs-table-border-color: rgb(203.04, 204.66, 206.1);--bs-table-striped-bg: rgb(214.32, 216.03, 217.55);--bs-table-striped-color: #000;--bs-table-active-bg: rgb(203.04, 204.66, 206.1);--bs-table-active-color: #000;--bs-table-hover-bg: rgb(208.68, 210.345, 211.825);--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-success{--bs-table-color: #000;--bs-table-bg: rgb(209, 231, 220.8);--bs-table-border-color: rgb(188.1, 207.9, 198.72);--bs-table-striped-bg: rgb(198.55, 219.45, 209.76);--bs-table-striped-color: #000;--bs-table-active-bg: rgb(188.1, 207.9, 198.72);--bs-table-active-color: #000;--bs-table-hover-bg: rgb(193.325, 213.675, 204.24);--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-info{--bs-table-color: #000;--bs-table-bg: rgb(206.6, 244.4, 252);--bs-table-border-color: rgb(185.94, 219.96, 226.8);--bs-table-striped-bg: rgb(196.27, 232.18, 239.4);--bs-table-striped-color: #000;--bs-table-active-bg: rgb(185.94, 219.96, 226.8);--bs-table-active-color: #000;--bs-table-hover-bg: rgb(191.105, 226.07, 233.1);--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-warning{--bs-table-color: #000;--bs-table-bg: rgb(255, 242.6, 205.4);--bs-table-border-color: rgb(229.5, 218.34, 184.86);--bs-table-striped-bg: rgb(242.25, 230.47, 195.13);--bs-table-striped-color: #000;--bs-table-active-bg: rgb(229.5, 218.34, 184.86);--bs-table-active-color: #000;--bs-table-hover-bg: rgb(235.875, 224.405, 189.995);--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-danger{--bs-table-color: #000;--bs-table-bg: rgb(248, 214.6, 217.8);--bs-table-border-color: rgb(223.2, 193.14, 196.02);--bs-table-striped-bg: rgb(235.6, 203.87, 206.91);--bs-table-striped-color: #000;--bs-table-active-bg: rgb(223.2, 193.14, 196.02);--bs-table-active-color: #000;--bs-table-hover-bg: rgb(229.4, 198.505, 201.465);--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-light{--bs-table-color: #000;--bs-table-bg: #f8f9fa;--bs-table-border-color: rgb(223.2, 224.1, 225);--bs-table-striped-bg: rgb(235.6, 236.55, 237.5);--bs-table-striped-color: #000;--bs-table-active-bg: rgb(223.2, 224.1, 225);--bs-table-active-color: #000;--bs-table-hover-bg: rgb(229.4, 230.325, 231.25);--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-dark{--bs-table-color: #fff;--bs-table-bg: #212529;--bs-table-border-color: rgb(55.2, 58.8, 62.4);--bs-table-striped-bg: rgb(44.1, 47.9, 51.7);--bs-table-striped-color: #fff;--bs-table-active-bg: rgb(55.2, 58.8, 62.4);--bs-table-active-color: #fff;--bs-table-hover-bg: rgb(49.65, 53.35, 57.05);--bs-table-hover-color: #fff;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}@media (max-width: 575.98px){.table-responsive-sm{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 767.98px){.table-responsive-md{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 991.98px){.table-responsive-lg{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 1199.98px){.table-responsive-xl{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 1399.98px){.table-responsive-xxl{overflow-x:auto;-webkit-overflow-scrolling:touch}}.form-label{margin-bottom:.5rem}.col-form-label{padding-top:calc(.375rem + 1px);padding-bottom:calc(.375rem + 1px);margin-bottom:0;font-size:inherit;line-height:1.5}.col-form-label-lg{padding-top:calc(.5rem + 1px);padding-bottom:calc(.5rem + 1px);font-size:1.25rem}.col-form-label-sm{padding-top:calc(.25rem + 1px);padding-bottom:calc(.25rem + 1px);font-size:.875rem}.form-text{margin-top:.25rem;font-size:.875em;color:#6c757d}.form-control{display:block;width:100%;padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#212529;background-color:#fff;background-clip:padding-box;border:1px solid #ced4da;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:.375rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-control{transition:none}}.form-control[type=file]{overflow:hidden}.form-control[type=file]:not(:disabled):not([readonly]){cursor:pointer}.form-control:focus{color:#212529;background-color:#fff;border-color:#a3cbf2;outline:0;box-shadow:0 0 0 .25rem #4696e540}.form-control::-webkit-date-and-time-value{height:1.5em}.form-control::placeholder{color:#6c757d;opacity:1}.form-control:disabled{background-color:#e9ecef;opacity:1}.form-control::file-selector-button{padding:.375rem .75rem;margin:-.375rem -.75rem;margin-inline-end:.75rem;color:#212529;background-color:#e9ecef;pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:1px;border-radius:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-control::file-selector-button{transition:none}}.form-control:hover:not(:disabled):not([readonly])::file-selector-button{background-color:#dde0e3}.form-control-plaintext{display:block;width:100%;padding:.375rem 0;margin-bottom:0;line-height:1.5;color:#212529;background-color:transparent;border:solid transparent;border-width:1px 0}.form-control-plaintext:focus{outline:0}.form-control-plaintext.form-control-sm,.form-control-plaintext.form-control-lg{padding-right:0;padding-left:0}.form-control-sm{min-height:calc(1.5em + .5rem + 2px);padding:.25rem .5rem;font-size:.875rem;border-radius:.25rem}.form-control-sm::file-selector-button{padding:.25rem .5rem;margin:-.25rem -.5rem;margin-inline-end:.5rem}.form-control-lg{min-height:calc(1.5em + 1rem + 2px);padding:.5rem 1rem;font-size:1.25rem;border-radius:.5rem}.form-control-lg::file-selector-button{padding:.5rem 1rem;margin:-.5rem -1rem;margin-inline-end:1rem}textarea.form-control{min-height:calc(1.5em + .75rem + 2px)}textarea.form-control-sm{min-height:calc(1.5em + .5rem + 2px)}textarea.form-control-lg{min-height:calc(1.5em + 1rem + 2px)}.form-control-color{width:3rem;height:calc(1.5em + .75rem + 2px);padding:.375rem}.form-control-color:not(:disabled):not([readonly]){cursor:pointer}.form-control-color::-moz-color-swatch{border:0!important;border-radius:.375rem}.form-control-color::-webkit-color-swatch{border-radius:.375rem}.form-control-color.form-control-sm{height:calc(1.5em + .5rem + 2px)}.form-control-color.form-control-lg{height:calc(1.5em + 1rem + 2px)}.form-select{display:block;width:100%;padding:.375rem 2.25rem .375rem .75rem;-moz-padding-start:calc(.75rem - 3px);font-size:1rem;font-weight:400;line-height:1.5;color:#212529;background-color:#fff;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right .75rem center;background-size:16px 12px;border:1px solid #ced4da;border-radius:.375rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;-webkit-appearance:none;-moz-appearance:none;appearance:none}@media (prefers-reduced-motion: reduce){.form-select{transition:none}}.form-select:focus{border-color:#a3cbf2;outline:0;box-shadow:0 0 0 .25rem #4696e540}.form-select[multiple],.form-select[size]:not([size="1"]){padding-right:.75rem;background-image:none}.form-select:disabled{background-color:#e9ecef}.form-select:-moz-focusring{color:transparent;text-shadow:0 0 0 #212529}.form-select-sm{padding-top:.25rem;padding-bottom:.25rem;padding-left:.5rem;font-size:.875rem;border-radius:.25rem}.form-select-lg{padding-top:.5rem;padding-bottom:.5rem;padding-left:1rem;font-size:1.25rem;border-radius:.5rem}.form-check{display:block;min-height:1.5rem;padding-left:1.5em;margin-bottom:.125rem}.form-check .form-check-input{float:left;margin-left:-1.5em}.form-check-reverse{padding-right:1.5em;padding-left:0;text-align:right}.form-check-reverse .form-check-input{float:right;margin-right:-1.5em;margin-left:0}.form-check-input{width:1em;height:1em;margin-top:.25em;vertical-align:top;background-color:#fff;background-repeat:no-repeat;background-position:center;background-size:contain;border:1px solid rgba(0,0,0,.25);-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-print-color-adjust:exact;print-color-adjust:exact}.form-check-input[type=checkbox]{border-radius:.25em}.form-check-input[type=radio]{border-radius:50%}.form-check-input:active{filter:brightness(90%)}.form-check-input:focus{border-color:#a3cbf2;outline:0;box-shadow:0 0 0 .25rem #4696e540}.form-check-input:checked{background-color:#4696e5;border-color:#4696e5}.form-check-input:checked[type=checkbox]{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e")}.form-check-input:checked[type=radio]{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e")}.form-check-input[type=checkbox]:indeterminate{background-color:#4696e5;border-color:#4696e5;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10h8'/%3e%3c/svg%3e")}.form-check-input:disabled{pointer-events:none;filter:none;opacity:.5}.form-check-input[disabled]~.form-check-label,.form-check-input:disabled~.form-check-label{cursor:default;opacity:.5}.form-switch{padding-left:2.5em}.form-switch .form-check-input{width:2em;margin-left:-2.5em;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e");background-position:left center;border-radius:2em;transition:background-position .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-switch .form-check-input{transition:none}}.form-switch .form-check-input:focus{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgb%28162.5, 202.5, 242%29'/%3e%3c/svg%3e")}.form-switch .form-check-input:checked{background-position:right center;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e")}.form-switch.form-check-reverse{padding-right:2.5em;padding-left:0}.form-switch.form-check-reverse .form-check-input{margin-right:-2.5em;margin-left:0}.form-check-inline{display:inline-block;margin-right:1rem}.btn-check{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.btn-check[disabled]+.btn,.btn-check:disabled+.btn{pointer-events:none;filter:none;opacity:.65}.form-range{width:100%;height:1.5rem;padding:0;background-color:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none}.form-range:focus{outline:0}.form-range:focus::-webkit-slider-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .25rem #4696e540}.form-range:focus::-moz-range-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .25rem #4696e540}.form-range::-moz-focus-outer{border:0}.form-range::-webkit-slider-thumb{width:1rem;height:1rem;margin-top:-.25rem;background-color:#4696e5;border:0;border-radius:1rem;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;-webkit-appearance:none;-moz-appearance:none;appearance:none}@media (prefers-reduced-motion: reduce){.form-range::-webkit-slider-thumb{transition:none}}.form-range::-webkit-slider-thumb:active{background-color:#c8e0f7}.form-range::-webkit-slider-runnable-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:#dee2e6;border-color:transparent;border-radius:1rem}.form-range::-moz-range-thumb{width:1rem;height:1rem;background-color:#4696e5;border:0;border-radius:1rem;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;-webkit-appearance:none;-moz-appearance:none;appearance:none}@media (prefers-reduced-motion: reduce){.form-range::-moz-range-thumb{transition:none}}.form-range::-moz-range-thumb:active{background-color:#c8e0f7}.form-range::-moz-range-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:#dee2e6;border-color:transparent;border-radius:1rem}.form-range:disabled{pointer-events:none}.form-range:disabled::-webkit-slider-thumb{background-color:#adb5bd}.form-range:disabled::-moz-range-thumb{background-color:#adb5bd}.form-floating{position:relative}.form-floating>.form-control,.form-floating>.form-control-plaintext,.form-floating>.form-select{height:calc(3.5rem + 2px);line-height:1.25}.form-floating>label{position:absolute;top:0;left:0;width:100%;height:100%;padding:1rem .75rem;overflow:hidden;text-align:start;text-overflow:ellipsis;white-space:nowrap;pointer-events:none;border:1px solid transparent;transform-origin:0 0;transition:opacity .1s ease-in-out,transform .1s ease-in-out}@media (prefers-reduced-motion: reduce){.form-floating>label{transition:none}}.form-floating>.form-control,.form-floating>.form-control-plaintext{padding:1rem .75rem}.form-floating>.form-control::placeholder,.form-floating>.form-control-plaintext::placeholder{color:transparent}.form-floating>.form-control:focus,.form-floating>.form-control:not(:placeholder-shown),.form-floating>.form-control-plaintext:focus,.form-floating>.form-control-plaintext:not(:placeholder-shown){padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control:-webkit-autofill,.form-floating>.form-control-plaintext:-webkit-autofill{padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-select{padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control:focus~label,.form-floating>.form-control:not(:placeholder-shown)~label,.form-floating>.form-control-plaintext~label,.form-floating>.form-select~label{opacity:.65;transform:scale(.85) translateY(-.5rem) translate(.15rem)}.form-floating>.form-control:-webkit-autofill~label{opacity:.65;transform:scale(.85) translateY(-.5rem) translate(.15rem)}.form-floating>.form-control-plaintext~label{border-width:1px 0}.input-group{position:relative;display:flex;flex-wrap:wrap;align-items:stretch;width:100%}.input-group>.form-control,.input-group>.form-select,.input-group>.form-floating{position:relative;flex:1 1 auto;width:1%;min-width:0}.input-group>.form-control:focus,.input-group>.form-select:focus,.input-group>.form-floating:focus-within{z-index:5}.input-group .btn{position:relative;z-index:2}.input-group .btn:focus{z-index:5}.input-group-text{display:flex;align-items:center;padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#212529;text-align:center;white-space:nowrap;background-color:#e9ecef;border:1px solid #ced4da;border-radius:.375rem}.input-group-lg>.form-control,.input-group-lg>.form-select,.input-group-lg>.input-group-text,.input-group-lg>.btn{padding:.5rem 1rem;font-size:1.25rem;border-radius:.5rem}.input-group-sm>.form-control,.input-group-sm>.form-select,.input-group-sm>.input-group-text,.input-group-sm>.btn{padding:.25rem .5rem;font-size:.875rem;border-radius:.25rem}.input-group-lg>.form-select,.input-group-sm>.form-select{padding-right:3rem}.input-group:not(.has-validation)>:not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating),.input-group:not(.has-validation)>.dropdown-toggle:nth-last-child(n+3),.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-control,.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-select{border-top-right-radius:0;border-bottom-right-radius:0}.input-group.has-validation>:nth-last-child(n+3):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating),.input-group.has-validation>.dropdown-toggle:nth-last-child(n+4),.input-group.has-validation>.form-floating:nth-last-child(n+3)>.form-control,.input-group.has-validation>.form-floating:nth-last-child(n+3)>.form-select{border-top-right-radius:0;border-bottom-right-radius:0}.input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback){margin-left:-1px;border-top-left-radius:0;border-bottom-left-radius:0}.input-group>.form-floating:not(:first-child)>.form-control,.input-group>.form-floating:not(:first-child)>.form-select{border-top-left-radius:0;border-bottom-left-radius:0}.valid-feedback{display:none;width:100%;margin-top:.25rem;font-size:.875em;color:#198754}.valid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;color:#fff;background-color:#198754e6;border-radius:.375rem}.was-validated :valid~.valid-feedback,.was-validated :valid~.valid-tooltip,.is-valid~.valid-feedback,.is-valid~.valid-tooltip{display:block}.was-validated .form-control:valid,.form-control.is-valid{border-color:#198754;padding-right:calc(1.5em + .75rem);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.was-validated .form-control:valid:focus,.form-control.is-valid:focus{border-color:#198754;box-shadow:0 0 0 .25rem #19875440}.was-validated textarea.form-control:valid,textarea.form-control.is-valid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.was-validated .form-select:valid,.form-select.is-valid{border-color:#198754}.was-validated .form-select:valid:not([multiple]):not([size]),.was-validated .form-select:valid:not([multiple])[size="1"],.form-select.is-valid:not([multiple]):not([size]),.form-select.is-valid:not([multiple])[size="1"]{padding-right:4.125rem;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"),url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.75em + .375rem) calc(.75em + .375rem)}.was-validated .form-select:valid:focus,.form-select.is-valid:focus{border-color:#198754;box-shadow:0 0 0 .25rem #19875440}.was-validated .form-control-color:valid,.form-control-color.is-valid{width:calc(3.75rem + 1.5em)}.was-validated .form-check-input:valid,.form-check-input.is-valid{border-color:#198754}.was-validated .form-check-input:valid:checked,.form-check-input.is-valid:checked{background-color:#198754}.was-validated .form-check-input:valid:focus,.form-check-input.is-valid:focus{box-shadow:0 0 0 .25rem #19875440}.was-validated .form-check-input:valid~.form-check-label,.form-check-input.is-valid~.form-check-label{color:#198754}.form-check-inline .form-check-input~.valid-feedback{margin-left:.5em}.was-validated .input-group>.form-control:not(:focus):valid,.input-group>.form-control:not(:focus).is-valid,.was-validated .input-group>.form-select:not(:focus):valid,.input-group>.form-select:not(:focus).is-valid,.was-validated .input-group>.form-floating:not(:focus-within):valid,.input-group>.form-floating:not(:focus-within).is-valid{z-index:3}.invalid-feedback{display:none;width:100%;margin-top:.25rem;font-size:.875em;color:#dc3545}.invalid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;color:#fff;background-color:#dc3545e6;border-radius:.375rem}.was-validated :invalid~.invalid-feedback,.was-validated :invalid~.invalid-tooltip,.is-invalid~.invalid-feedback,.is-invalid~.invalid-tooltip{display:block}.was-validated .form-control:invalid,.form-control.is-invalid{border-color:#dc3545;padding-right:calc(1.5em + .75rem);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.was-validated .form-control:invalid:focus,.form-control.is-invalid:focus{border-color:#dc3545;box-shadow:0 0 0 .25rem #dc354540}.was-validated textarea.form-control:invalid,textarea.form-control.is-invalid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.was-validated .form-select:invalid,.form-select.is-invalid{border-color:#dc3545}.was-validated .form-select:invalid:not([multiple]):not([size]),.was-validated .form-select:invalid:not([multiple])[size="1"],.form-select.is-invalid:not([multiple]):not([size]),.form-select.is-invalid:not([multiple])[size="1"]{padding-right:4.125rem;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"),url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.75em + .375rem) calc(.75em + .375rem)}.was-validated .form-select:invalid:focus,.form-select.is-invalid:focus{border-color:#dc3545;box-shadow:0 0 0 .25rem #dc354540}.was-validated .form-control-color:invalid,.form-control-color.is-invalid{width:calc(3.75rem + 1.5em)}.was-validated .form-check-input:invalid,.form-check-input.is-invalid{border-color:#dc3545}.was-validated .form-check-input:invalid:checked,.form-check-input.is-invalid:checked{background-color:#dc3545}.was-validated .form-check-input:invalid:focus,.form-check-input.is-invalid:focus{box-shadow:0 0 0 .25rem #dc354540}.was-validated .form-check-input:invalid~.form-check-label,.form-check-input.is-invalid~.form-check-label{color:#dc3545}.form-check-inline .form-check-input~.invalid-feedback{margin-left:.5em}.was-validated .input-group>.form-control:not(:focus):invalid,.input-group>.form-control:not(:focus).is-invalid,.was-validated .input-group>.form-select:not(:focus):invalid,.input-group>.form-select:not(:focus).is-invalid,.was-validated .input-group>.form-floating:not(:focus-within):invalid,.input-group>.form-floating:not(:focus-within).is-invalid{z-index:4}.btn{--bs-btn-padding-x: .75rem;--bs-btn-padding-y: .375rem;--bs-btn-font-family: ;--bs-btn-font-size: 1rem;--bs-btn-font-weight: 400;--bs-btn-line-height: 1.5;--bs-btn-color: #212529;--bs-btn-bg: transparent;--bs-btn-border-width: 1px;--bs-btn-border-color: transparent;--bs-btn-border-radius: .375rem;--bs-btn-hover-border-color: transparent;--bs-btn-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075);--bs-btn-disabled-opacity: .65;--bs-btn-focus-box-shadow: 0 0 0 .25rem rgba(var(--bs-btn-focus-shadow-rgb), .5);display:inline-block;padding:var(--bs-btn-padding-y) var(--bs-btn-padding-x);font-family:var(--bs-btn-font-family);font-size:var(--bs-btn-font-size);font-weight:var(--bs-btn-font-weight);line-height:var(--bs-btn-line-height);color:var(--bs-btn-color);text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;-webkit-user-select:none;user-select:none;border:var(--bs-btn-border-width) solid var(--bs-btn-border-color);border-radius:var(--bs-btn-border-radius);background-color:var(--bs-btn-bg);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.btn{transition:none}}.btn:hover{color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color)}.btn-check+.btn:hover{color:var(--bs-btn-color);background-color:var(--bs-btn-bg);border-color:var(--bs-btn-border-color)}.btn:focus-visible{color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:focus-visible+.btn{border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:checked+.btn,:not(.btn-check)+.btn:active,.btn:first-child:active,.btn.active,.btn.show{color:var(--bs-btn-active-color);background-color:var(--bs-btn-active-bg);border-color:var(--bs-btn-active-border-color)}.btn-check:checked+.btn:focus-visible,:not(.btn-check)+.btn:active:focus-visible,.btn:first-child:active:focus-visible,.btn.active:focus-visible,.btn.show:focus-visible{box-shadow:var(--bs-btn-focus-box-shadow)}.btn:disabled,.btn.disabled,fieldset:disabled .btn{color:var(--bs-btn-disabled-color);pointer-events:none;background-color:var(--bs-btn-disabled-bg);border-color:var(--bs-btn-disabled-border-color);opacity:var(--bs-btn-disabled-opacity)}.btn-primary{--bs-btn-color: #000;--bs-btn-bg: #4696e5;--bs-btn-border-color: #4696e5;--bs-btn-hover-color: #000;--bs-btn-hover-bg: rgb(97.75, 165.75, 232.9);--bs-btn-hover-border-color: rgb(88.5, 160.5, 231.6);--bs-btn-focus-shadow-rgb: 60, 128, 195;--bs-btn-active-color: #000;--bs-btn-active-bg: rgb(107, 171, 234.2);--bs-btn-active-border-color: rgb(88.5, 160.5, 231.6);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: #4696e5;--bs-btn-disabled-border-color: #4696e5}.btn-secondary{--bs-btn-color: #fff;--bs-btn-bg: #6c757d;--bs-btn-border-color: #6c757d;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: rgb(91.8, 99.45, 106.25);--bs-btn-hover-border-color: rgb(86.4, 93.6, 100);--bs-btn-focus-shadow-rgb: 130, 138, 145;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgb(86.4, 93.6, 100);--bs-btn-active-border-color: rgb(81, 87.75, 93.75);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #6c757d;--bs-btn-disabled-border-color: #6c757d}.btn-success{--bs-btn-color: #fff;--bs-btn-bg: #198754;--bs-btn-border-color: #198754;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: rgb(21.25, 114.75, 71.4);--bs-btn-hover-border-color: rgb(20, 108, 67.2);--bs-btn-focus-shadow-rgb: 60, 153, 110;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgb(20, 108, 67.2);--bs-btn-active-border-color: rgb(18.75, 101.25, 63);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #198754;--bs-btn-disabled-border-color: #198754}.btn-info{--bs-btn-color: #000;--bs-btn-bg: #0dcaf0;--bs-btn-border-color: #0dcaf0;--bs-btn-hover-color: #000;--bs-btn-hover-bg: rgb(49.3, 209.95, 242.25);--bs-btn-hover-border-color: rgb(37.2, 207.3, 241.5);--bs-btn-focus-shadow-rgb: 11, 172, 204;--bs-btn-active-color: #000;--bs-btn-active-bg: rgb(61.4, 212.6, 243);--bs-btn-active-border-color: rgb(37.2, 207.3, 241.5);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: #0dcaf0;--bs-btn-disabled-border-color: #0dcaf0}.btn-warning{--bs-btn-color: #000;--bs-btn-bg: #ffc107;--bs-btn-border-color: #ffc107;--bs-btn-hover-color: #000;--bs-btn-hover-bg: rgb(255, 202.3, 44.2);--bs-btn-hover-border-color: rgb(255, 199.2, 31.8);--bs-btn-focus-shadow-rgb: 217, 164, 6;--bs-btn-active-color: #000;--bs-btn-active-bg: rgb(255, 205.4, 56.6);--bs-btn-active-border-color: rgb(255, 199.2, 31.8);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: #ffc107;--bs-btn-disabled-border-color: #ffc107}.btn-danger{--bs-btn-color: #fff;--bs-btn-bg: #dc3545;--bs-btn-border-color: #dc3545;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: rgb(187, 45.05, 58.65);--bs-btn-hover-border-color: rgb(176, 42.4, 55.2);--bs-btn-focus-shadow-rgb: 225, 83, 97;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgb(176, 42.4, 55.2);--bs-btn-active-border-color: rgb(165, 39.75, 51.75);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #dc3545;--bs-btn-disabled-border-color: #dc3545}.btn-light{--bs-btn-color: #000;--bs-btn-bg: #f8f9fa;--bs-btn-border-color: #f8f9fa;--bs-btn-hover-color: #000;--bs-btn-hover-bg: rgb(210.8, 211.65, 212.5);--bs-btn-hover-border-color: rgb(198.4, 199.2, 200);--bs-btn-focus-shadow-rgb: 211, 212, 213;--bs-btn-active-color: #000;--bs-btn-active-bg: rgb(198.4, 199.2, 200);--bs-btn-active-border-color: rgb(186, 186.75, 187.5);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: #f8f9fa;--bs-btn-disabled-border-color: #f8f9fa}.btn-dark{--bs-btn-color: #fff;--bs-btn-bg: #212529;--bs-btn-border-color: #212529;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: rgb(66.3, 69.7, 73.1);--bs-btn-hover-border-color: rgb(55.2, 58.8, 62.4);--bs-btn-focus-shadow-rgb: 66, 70, 73;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgb(77.4, 80.6, 83.8);--bs-btn-active-border-color: rgb(55.2, 58.8, 62.4);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #212529;--bs-btn-disabled-border-color: #212529}.btn-outline-primary{--bs-btn-color: #4696e5;--bs-btn-border-color: #4696e5;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #4696e5;--bs-btn-hover-border-color: #4696e5;--bs-btn-focus-shadow-rgb: 70, 150, 229;--bs-btn-active-color: #000;--bs-btn-active-bg: #4696e5;--bs-btn-active-border-color: #4696e5;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #4696e5;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #4696e5;--bs-gradient: none}.btn-outline-secondary{--bs-btn-color: #6c757d;--bs-btn-border-color: #6c757d;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #6c757d;--bs-btn-hover-border-color: #6c757d;--bs-btn-focus-shadow-rgb: 108, 117, 125;--bs-btn-active-color: #fff;--bs-btn-active-bg: #6c757d;--bs-btn-active-border-color: #6c757d;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #6c757d;--bs-gradient: none}.btn-outline-success{--bs-btn-color: #198754;--bs-btn-border-color: #198754;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #198754;--bs-btn-hover-border-color: #198754;--bs-btn-focus-shadow-rgb: 25, 135, 84;--bs-btn-active-color: #fff;--bs-btn-active-bg: #198754;--bs-btn-active-border-color: #198754;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #198754;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #198754;--bs-gradient: none}.btn-outline-info{--bs-btn-color: #0dcaf0;--bs-btn-border-color: #0dcaf0;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #0dcaf0;--bs-btn-hover-border-color: #0dcaf0;--bs-btn-focus-shadow-rgb: 13, 202, 240;--bs-btn-active-color: #000;--bs-btn-active-bg: #0dcaf0;--bs-btn-active-border-color: #0dcaf0;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #0dcaf0;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #0dcaf0;--bs-gradient: none}.btn-outline-warning{--bs-btn-color: #ffc107;--bs-btn-border-color: #ffc107;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #ffc107;--bs-btn-hover-border-color: #ffc107;--bs-btn-focus-shadow-rgb: 255, 193, 7;--bs-btn-active-color: #000;--bs-btn-active-bg: #ffc107;--bs-btn-active-border-color: #ffc107;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #ffc107;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #ffc107;--bs-gradient: none}.btn-outline-danger{--bs-btn-color: #dc3545;--bs-btn-border-color: #dc3545;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #dc3545;--bs-btn-hover-border-color: #dc3545;--bs-btn-focus-shadow-rgb: 220, 53, 69;--bs-btn-active-color: #fff;--bs-btn-active-bg: #dc3545;--bs-btn-active-border-color: #dc3545;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #dc3545;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #dc3545;--bs-gradient: none}.btn-outline-light{--bs-btn-color: #f8f9fa;--bs-btn-border-color: #f8f9fa;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #f8f9fa;--bs-btn-hover-border-color: #f8f9fa;--bs-btn-focus-shadow-rgb: 248, 249, 250;--bs-btn-active-color: #000;--bs-btn-active-bg: #f8f9fa;--bs-btn-active-border-color: #f8f9fa;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #f8f9fa;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #f8f9fa;--bs-gradient: none}.btn-outline-dark{--bs-btn-color: #212529;--bs-btn-border-color: #212529;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #212529;--bs-btn-hover-border-color: #212529;--bs-btn-focus-shadow-rgb: 33, 37, 41;--bs-btn-active-color: #fff;--bs-btn-active-bg: #212529;--bs-btn-active-border-color: #212529;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #212529;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #212529;--bs-gradient: none}.btn-link{--bs-btn-font-weight: 400;--bs-btn-color: var(--bs-link-color);--bs-btn-bg: transparent;--bs-btn-border-color: transparent;--bs-btn-hover-color: var(--bs-link-hover-color);--bs-btn-hover-border-color: transparent;--bs-btn-active-color: var(--bs-link-hover-color);--bs-btn-active-border-color: transparent;--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-border-color: transparent;--bs-btn-box-shadow: none;--bs-btn-focus-shadow-rgb: 60, 128, 195;text-decoration:underline}.btn-link:focus-visible{color:var(--bs-btn-color)}.btn-link:hover{color:var(--bs-btn-hover-color)}.btn-lg,.btn-group-lg>.btn{--bs-btn-padding-y: .5rem;--bs-btn-padding-x: 1rem;--bs-btn-font-size: 1.25rem;--bs-btn-border-radius: .5rem}.btn-sm,.btn-group-sm>.btn{--bs-btn-padding-y: .25rem;--bs-btn-padding-x: .5rem;--bs-btn-font-size: .875rem;--bs-btn-border-radius: .25rem}.fade{transition:opacity .15s linear}@media (prefers-reduced-motion: reduce){.fade{transition:none}}.fade:not(.show){opacity:0}.collapse:not(.show){display:none}.collapsing{height:0;overflow:hidden;transition:height .35s ease}@media (prefers-reduced-motion: reduce){.collapsing{transition:none}}.collapsing.collapse-horizontal{width:0;height:auto;transition:width .35s ease}@media (prefers-reduced-motion: reduce){.collapsing.collapse-horizontal{transition:none}}.dropup,.dropend,.dropdown,.dropstart,.dropup-center,.dropdown-center{position:relative}.dropdown-toggle{white-space:nowrap}.dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid;border-right:.3em solid transparent;border-bottom:0;border-left:.3em solid transparent}.dropdown-toggle:empty:after{margin-left:0}.dropdown-menu{--bs-dropdown-zindex: 1000;--bs-dropdown-min-width: 10rem;--bs-dropdown-padding-x: 0;--bs-dropdown-padding-y: .5rem;--bs-dropdown-spacer: .125rem;--bs-dropdown-font-size: 1rem;--bs-dropdown-color: #212529;--bs-dropdown-bg: #fff;--bs-dropdown-border-color: var(--bs-border-color-translucent);--bs-dropdown-border-radius: .375rem;--bs-dropdown-border-width: 1px;--bs-dropdown-inner-border-radius: calc(.375rem - 1px) ;--bs-dropdown-divider-bg: var(--bs-border-color-translucent);--bs-dropdown-divider-margin-y: .5rem;--bs-dropdown-box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);--bs-dropdown-link-color: #212529;--bs-dropdown-link-hover-color: rgb(29.7, 33.3, 36.9);--bs-dropdown-link-hover-bg: #e9ecef;--bs-dropdown-link-active-color: #fff;--bs-dropdown-link-active-bg: #4696e5;--bs-dropdown-link-disabled-color: #adb5bd;--bs-dropdown-item-padding-x: 1rem;--bs-dropdown-item-padding-y: .25rem;--bs-dropdown-header-color: #6c757d;--bs-dropdown-header-padding-x: 1rem;--bs-dropdown-header-padding-y: .5rem;position:absolute;z-index:var(--bs-dropdown-zindex);display:none;min-width:var(--bs-dropdown-min-width);padding:var(--bs-dropdown-padding-y) var(--bs-dropdown-padding-x);margin:0;font-size:var(--bs-dropdown-font-size);color:var(--bs-dropdown-color);text-align:left;list-style:none;background-color:var(--bs-dropdown-bg);background-clip:padding-box;border:var(--bs-dropdown-border-width) solid var(--bs-dropdown-border-color);border-radius:var(--bs-dropdown-border-radius)}.dropdown-menu[data-bs-popper]{top:100%;left:0;margin-top:var(--bs-dropdown-spacer)}.dropdown-menu-start{--bs-position: start}.dropdown-menu-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-end{--bs-position: end}.dropdown-menu-end[data-bs-popper]{right:0;left:auto}@media (min-width: 576px){.dropdown-menu-sm-start{--bs-position: start}.dropdown-menu-sm-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-sm-end{--bs-position: end}.dropdown-menu-sm-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 768px){.dropdown-menu-md-start{--bs-position: start}.dropdown-menu-md-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-md-end{--bs-position: end}.dropdown-menu-md-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 992px){.dropdown-menu-lg-start{--bs-position: start}.dropdown-menu-lg-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-lg-end{--bs-position: end}.dropdown-menu-lg-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 1200px){.dropdown-menu-xl-start{--bs-position: start}.dropdown-menu-xl-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-xl-end{--bs-position: end}.dropdown-menu-xl-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 1400px){.dropdown-menu-xxl-start{--bs-position: start}.dropdown-menu-xxl-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-xxl-end{--bs-position: end}.dropdown-menu-xxl-end[data-bs-popper]{right:0;left:auto}}.dropup .dropdown-menu[data-bs-popper]{top:auto;bottom:100%;margin-top:0;margin-bottom:var(--bs-dropdown-spacer)}.dropup .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:0;border-right:.3em solid transparent;border-bottom:.3em solid;border-left:.3em solid transparent}.dropup .dropdown-toggle:empty:after{margin-left:0}.dropend .dropdown-menu[data-bs-popper]{top:0;right:auto;left:100%;margin-top:0;margin-left:var(--bs-dropdown-spacer)}.dropend .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:0;border-bottom:.3em solid transparent;border-left:.3em solid}.dropend .dropdown-toggle:empty:after{margin-left:0}.dropend .dropdown-toggle:after{vertical-align:0}.dropstart .dropdown-menu[data-bs-popper]{top:0;right:100%;left:auto;margin-top:0;margin-right:var(--bs-dropdown-spacer)}.dropstart .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:""}.dropstart .dropdown-toggle:after{display:none}.dropstart .dropdown-toggle:before{display:inline-block;margin-right:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:.3em solid;border-bottom:.3em solid transparent}.dropstart .dropdown-toggle:empty:after{margin-left:0}.dropstart .dropdown-toggle:before{vertical-align:0}.dropdown-divider{height:0;margin:var(--bs-dropdown-divider-margin-y) 0;overflow:hidden;border-top:1px solid var(--bs-dropdown-divider-bg);opacity:1}.dropdown-item{display:block;width:100%;padding:var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);clear:both;font-weight:400;color:var(--bs-dropdown-link-color);text-align:inherit;text-decoration:none;white-space:nowrap;background-color:transparent;border:0}.dropdown-item:hover,.dropdown-item:focus{color:var(--bs-dropdown-link-hover-color);background-color:var(--bs-dropdown-link-hover-bg)}.dropdown-item.active,.dropdown-item:active{color:var(--bs-dropdown-link-active-color);text-decoration:none;background-color:var(--bs-dropdown-link-active-bg)}.dropdown-item.disabled,.dropdown-item:disabled{color:var(--bs-dropdown-link-disabled-color);pointer-events:none;background-color:transparent}.dropdown-menu.show{display:block}.dropdown-header{display:block;padding:var(--bs-dropdown-header-padding-y) var(--bs-dropdown-header-padding-x);margin-bottom:0;font-size:.875rem;color:var(--bs-dropdown-header-color);white-space:nowrap}.dropdown-item-text{display:block;padding:var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);color:var(--bs-dropdown-link-color)}.dropdown-menu-dark{--bs-dropdown-color: #dee2e6;--bs-dropdown-bg: #343a40;--bs-dropdown-border-color: var(--bs-border-color-translucent);--bs-dropdown-box-shadow: ;--bs-dropdown-link-color: #dee2e6;--bs-dropdown-link-hover-color: #fff;--bs-dropdown-divider-bg: var(--bs-border-color-translucent);--bs-dropdown-link-hover-bg: rgba(255, 255, 255, .15);--bs-dropdown-link-active-color: #fff;--bs-dropdown-link-active-bg: #4696e5;--bs-dropdown-link-disabled-color: #adb5bd;--bs-dropdown-header-color: #adb5bd}.btn-group,.btn-group-vertical{position:relative;display:inline-flex;vertical-align:middle}.btn-group>.btn,.btn-group-vertical>.btn{position:relative;flex:1 1 auto}.btn-group>.btn-check:checked+.btn,.btn-group>.btn-check:focus+.btn,.btn-group>.btn:hover,.btn-group>.btn:focus,.btn-group>.btn:active,.btn-group>.btn.active,.btn-group-vertical>.btn-check:checked+.btn,.btn-group-vertical>.btn-check:focus+.btn,.btn-group-vertical>.btn:hover,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn.active{z-index:1}.btn-toolbar{display:flex;flex-wrap:wrap;justify-content:flex-start}.btn-toolbar .input-group{width:auto}.btn-group{border-radius:.375rem}.btn-group>:not(.btn-check:first-child)+.btn,.btn-group>.btn-group:not(:first-child){margin-left:-1px}.btn-group>.btn:not(:last-child):not(.dropdown-toggle),.btn-group>.btn.dropdown-toggle-split:first-child,.btn-group>.btn-group:not(:last-child)>.btn{border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn:nth-child(n+3),.btn-group>:not(.btn-check)+.btn,.btn-group>.btn-group:not(:first-child)>.btn{border-top-left-radius:0;border-bottom-left-radius:0}.dropdown-toggle-split{padding-right:.5625rem;padding-left:.5625rem}.dropdown-toggle-split:after,.dropup .dropdown-toggle-split:after,.dropend .dropdown-toggle-split:after{margin-left:0}.dropstart .dropdown-toggle-split:before{margin-right:0}.btn-sm+.dropdown-toggle-split,.btn-group-sm>.btn+.dropdown-toggle-split{padding-right:.375rem;padding-left:.375rem}.btn-lg+.dropdown-toggle-split,.btn-group-lg>.btn+.dropdown-toggle-split{padding-right:.75rem;padding-left:.75rem}.btn-group-vertical{flex-direction:column;align-items:flex-start;justify-content:center}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group{width:100%}.btn-group-vertical>.btn:not(:first-child),.btn-group-vertical>.btn-group:not(:first-child){margin-top:-1px}.btn-group-vertical>.btn:not(:last-child):not(.dropdown-toggle),.btn-group-vertical>.btn-group:not(:last-child)>.btn{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn~.btn,.btn-group-vertical>.btn-group:not(:first-child)>.btn{border-top-left-radius:0;border-top-right-radius:0}.nav{--bs-nav-link-padding-x: 1rem;--bs-nav-link-padding-y: .5rem;--bs-nav-link-font-weight: ;--bs-nav-link-color: var(--bs-link-color);--bs-nav-link-hover-color: var(--bs-link-hover-color);--bs-nav-link-disabled-color: #6c757d;display:flex;flex-wrap:wrap;padding-left:0;margin-bottom:0;list-style:none}.nav-link{display:block;padding:var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);font-size:var(--bs-nav-link-font-size);font-weight:var(--bs-nav-link-font-weight);color:var(--bs-nav-link-color);text-decoration:none;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out}@media (prefers-reduced-motion: reduce){.nav-link{transition:none}}.nav-link:hover,.nav-link:focus{color:var(--bs-nav-link-hover-color)}.nav-link.disabled{color:var(--bs-nav-link-disabled-color);pointer-events:none;cursor:default}.nav-tabs{--bs-nav-tabs-border-width: 1px;--bs-nav-tabs-border-color: #dee2e6;--bs-nav-tabs-border-radius: .375rem;--bs-nav-tabs-link-hover-border-color: #e9ecef #e9ecef #dee2e6;--bs-nav-tabs-link-active-color: #495057;--bs-nav-tabs-link-active-bg: #fff;--bs-nav-tabs-link-active-border-color: #dee2e6 #dee2e6 #fff;border-bottom:var(--bs-nav-tabs-border-width) solid var(--bs-nav-tabs-border-color)}.nav-tabs .nav-link{margin-bottom:calc(-1 * var(--bs-nav-tabs-border-width));background:none;border:var(--bs-nav-tabs-border-width) solid transparent;border-top-left-radius:var(--bs-nav-tabs-border-radius);border-top-right-radius:var(--bs-nav-tabs-border-radius)}.nav-tabs .nav-link:hover,.nav-tabs .nav-link:focus{isolation:isolate;border-color:var(--bs-nav-tabs-link-hover-border-color)}.nav-tabs .nav-link.disabled,.nav-tabs .nav-link:disabled{color:var(--bs-nav-link-disabled-color);background-color:transparent;border-color:transparent}.nav-tabs .nav-link.active,.nav-tabs .nav-item.show .nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}.nav-tabs .dropdown-menu{margin-top:calc(-1 * var(--bs-nav-tabs-border-width));border-top-left-radius:0;border-top-right-radius:0}.nav-pills{--bs-nav-pills-border-radius: .375rem;--bs-nav-pills-link-active-color: #fff;--bs-nav-pills-link-active-bg: #4696e5}.nav-pills .nav-link{background:none;border:0;border-radius:var(--bs-nav-pills-border-radius)}.nav-pills .nav-link:disabled{color:var(--bs-nav-link-disabled-color);background-color:transparent;border-color:transparent}.nav-pills .nav-link.active,.nav-pills .show>.nav-link{color:var(--bs-nav-pills-link-active-color);background-color:var(--bs-nav-pills-link-active-bg)}.nav-fill>.nav-link,.nav-fill .nav-item{flex:1 1 auto;text-align:center}.nav-justified>.nav-link,.nav-justified .nav-item{flex-basis:0;flex-grow:1;text-align:center}.nav-fill .nav-item .nav-link,.nav-justified .nav-item .nav-link{width:100%}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.navbar{--bs-navbar-padding-x: 0;--bs-navbar-padding-y: .5rem;--bs-navbar-color: rgba(0, 0, 0, .55);--bs-navbar-hover-color: rgba(0, 0, 0, .7);--bs-navbar-disabled-color: rgba(0, 0, 0, .3);--bs-navbar-active-color: rgba(0, 0, 0, .9);--bs-navbar-brand-padding-y: .3125rem;--bs-navbar-brand-margin-end: 1rem;--bs-navbar-brand-font-size: 1.25rem;--bs-navbar-brand-color: rgba(0, 0, 0, .9);--bs-navbar-brand-hover-color: rgba(0, 0, 0, .9);--bs-navbar-nav-link-padding-x: .5rem;--bs-navbar-toggler-padding-y: .25rem;--bs-navbar-toggler-padding-x: .75rem;--bs-navbar-toggler-font-size: 1.25rem;--bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");--bs-navbar-toggler-border-color: rgba(0, 0, 0, .1);--bs-navbar-toggler-border-radius: .375rem;--bs-navbar-toggler-focus-width: .25rem;--bs-navbar-toggler-transition: box-shadow .15s ease-in-out;position:relative;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;padding:var(--bs-navbar-padding-y) var(--bs-navbar-padding-x)}.navbar>.container,.navbar>.container-fluid,.navbar>.container-sm,.navbar>.container-md,.navbar>.container-lg,.navbar>.container-xl,.navbar>.container-xxl{display:flex;flex-wrap:inherit;align-items:center;justify-content:space-between}.navbar-brand{padding-top:var(--bs-navbar-brand-padding-y);padding-bottom:var(--bs-navbar-brand-padding-y);margin-right:var(--bs-navbar-brand-margin-end);font-size:var(--bs-navbar-brand-font-size);color:var(--bs-navbar-brand-color);text-decoration:none;white-space:nowrap}.navbar-brand:hover,.navbar-brand:focus{color:var(--bs-navbar-brand-hover-color)}.navbar-nav{--bs-nav-link-padding-x: 0;--bs-nav-link-padding-y: .5rem;--bs-nav-link-font-weight: ;--bs-nav-link-color: var(--bs-navbar-color);--bs-nav-link-hover-color: var(--bs-navbar-hover-color);--bs-nav-link-disabled-color: var(--bs-navbar-disabled-color);display:flex;flex-direction:column;padding-left:0;margin-bottom:0;list-style:none}.navbar-nav .show>.nav-link,.navbar-nav .nav-link.active{color:var(--bs-navbar-active-color)}.navbar-nav .dropdown-menu{position:static}.navbar-text{padding-top:.5rem;padding-bottom:.5rem;color:var(--bs-navbar-color)}.navbar-text a,.navbar-text a:hover,.navbar-text a:focus{color:var(--bs-navbar-active-color)}.navbar-collapse{flex-basis:100%;flex-grow:1;align-items:center}.navbar-toggler{padding:var(--bs-navbar-toggler-padding-y) var(--bs-navbar-toggler-padding-x);font-size:var(--bs-navbar-toggler-font-size);line-height:1;color:var(--bs-navbar-color);background-color:transparent;border:var(--bs-border-width) solid var(--bs-navbar-toggler-border-color);border-radius:var(--bs-navbar-toggler-border-radius);transition:var(--bs-navbar-toggler-transition)}@media (prefers-reduced-motion: reduce){.navbar-toggler{transition:none}}.navbar-toggler:hover{text-decoration:none}.navbar-toggler:focus{text-decoration:none;outline:0;box-shadow:0 0 0 var(--bs-navbar-toggler-focus-width)}.navbar-toggler-icon{display:inline-block;width:1.5em;height:1.5em;vertical-align:middle;background-image:var(--bs-navbar-toggler-icon-bg);background-repeat:no-repeat;background-position:center;background-size:100%}.navbar-nav-scroll{max-height:var(--bs-scroll-height, 75vh);overflow-y:auto}@media (min-width: 576px){.navbar-expand-sm{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-sm .navbar-nav{flex-direction:row}.navbar-expand-sm .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-sm .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-sm .navbar-nav-scroll{overflow:visible}.navbar-expand-sm .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-sm .navbar-toggler{display:none}.navbar-expand-sm .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-sm .offcanvas .offcanvas-header{display:none}.navbar-expand-sm .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width: 768px){.navbar-expand-md{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-md .navbar-nav{flex-direction:row}.navbar-expand-md .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-md .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-md .navbar-nav-scroll{overflow:visible}.navbar-expand-md .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-md .navbar-toggler{display:none}.navbar-expand-md .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-md .offcanvas .offcanvas-header{display:none}.navbar-expand-md .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width: 992px){.navbar-expand-lg{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-lg .navbar-nav{flex-direction:row}.navbar-expand-lg .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-lg .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-lg .navbar-nav-scroll{overflow:visible}.navbar-expand-lg .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-lg .navbar-toggler{display:none}.navbar-expand-lg .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-lg .offcanvas .offcanvas-header{display:none}.navbar-expand-lg .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width: 1200px){.navbar-expand-xl{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-xl .navbar-nav{flex-direction:row}.navbar-expand-xl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xl .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-xl .navbar-nav-scroll{overflow:visible}.navbar-expand-xl .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-xl .navbar-toggler{display:none}.navbar-expand-xl .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-xl .offcanvas .offcanvas-header{display:none}.navbar-expand-xl .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width: 1400px){.navbar-expand-xxl{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-xxl .navbar-nav{flex-direction:row}.navbar-expand-xxl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xxl .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-xxl .navbar-nav-scroll{overflow:visible}.navbar-expand-xxl .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-xxl .navbar-toggler{display:none}.navbar-expand-xxl .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-xxl .offcanvas .offcanvas-header{display:none}.navbar-expand-xxl .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}.navbar-expand{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand .navbar-nav{flex-direction:row}.navbar-expand .navbar-nav .dropdown-menu{position:absolute}.navbar-expand .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand .navbar-nav-scroll{overflow:visible}.navbar-expand .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand .navbar-toggler{display:none}.navbar-expand .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand .offcanvas .offcanvas-header{display:none}.navbar-expand .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}.navbar-dark{--bs-navbar-color: rgba(255, 255, 255, .55);--bs-navbar-hover-color: rgba(255, 255, 255, .75);--bs-navbar-disabled-color: rgba(255, 255, 255, .25);--bs-navbar-active-color: #fff;--bs-navbar-brand-color: #fff;--bs-navbar-brand-hover-color: #fff;--bs-navbar-toggler-border-color: rgba(255, 255, 255, .1);--bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e")}.card{--bs-card-spacer-y: 1rem;--bs-card-spacer-x: 1rem;--bs-card-title-spacer-y: .5rem;--bs-card-border-width: 1px;--bs-card-border-color: var(--bs-border-color-translucent);--bs-card-border-radius: .375rem;--bs-card-box-shadow: ;--bs-card-inner-border-radius: calc(.375rem - 1px) ;--bs-card-cap-padding-y: .5rem;--bs-card-cap-padding-x: 1rem;--bs-card-cap-bg: rgba(0, 0, 0, .03);--bs-card-cap-color: ;--bs-card-height: ;--bs-card-color: ;--bs-card-bg: #fff;--bs-card-img-overlay-padding: 1rem;--bs-card-group-margin: .75rem;position:relative;display:flex;flex-direction:column;min-width:0;height:var(--bs-card-height);word-wrap:break-word;background-color:var(--bs-card-bg);background-clip:border-box;border:var(--bs-card-border-width) solid var(--bs-card-border-color);border-radius:var(--bs-card-border-radius)}.card>hr{margin-right:0;margin-left:0}.card>.list-group{border-top:inherit;border-bottom:inherit}.card>.list-group:first-child{border-top-width:0;border-top-left-radius:var(--bs-card-inner-border-radius);border-top-right-radius:var(--bs-card-inner-border-radius)}.card>.list-group:last-child{border-bottom-width:0;border-bottom-right-radius:var(--bs-card-inner-border-radius);border-bottom-left-radius:var(--bs-card-inner-border-radius)}.card>.card-header+.list-group,.card>.list-group+.card-footer{border-top:0}.card-body{flex:1 1 auto;padding:var(--bs-card-spacer-y) var(--bs-card-spacer-x);color:var(--bs-card-color)}.card-title{margin-bottom:var(--bs-card-title-spacer-y)}.card-subtitle{margin-top:calc(-.5 * var(--bs-card-title-spacer-y));margin-bottom:0}.card-text:last-child{margin-bottom:0}.card-link+.card-link{margin-left:var(--bs-card-spacer-x)}.card-header{padding:var(--bs-card-cap-padding-y) var(--bs-card-cap-padding-x);margin-bottom:0;color:var(--bs-card-cap-color);background-color:var(--bs-card-cap-bg);border-bottom:var(--bs-card-border-width) solid var(--bs-card-border-color)}.card-header:first-child{border-radius:var(--bs-card-inner-border-radius) var(--bs-card-inner-border-radius) 0 0}.card-footer{padding:var(--bs-card-cap-padding-y) var(--bs-card-cap-padding-x);color:var(--bs-card-cap-color);background-color:var(--bs-card-cap-bg);border-top:var(--bs-card-border-width) solid var(--bs-card-border-color)}.card-footer:last-child{border-radius:0 0 var(--bs-card-inner-border-radius) var(--bs-card-inner-border-radius)}.card-header-tabs{margin-right:calc(-.5 * var(--bs-card-cap-padding-x));margin-bottom:calc(-1 * var(--bs-card-cap-padding-y));margin-left:calc(-.5 * var(--bs-card-cap-padding-x));border-bottom:0}.card-header-tabs .nav-link.active{background-color:var(--bs-card-bg);border-bottom-color:var(--bs-card-bg)}.card-header-pills{margin-right:calc(-.5 * var(--bs-card-cap-padding-x));margin-left:calc(-.5 * var(--bs-card-cap-padding-x))}.card-img-overlay{position:absolute;top:0;right:0;bottom:0;left:0;padding:var(--bs-card-img-overlay-padding);border-radius:var(--bs-card-inner-border-radius)}.card-img,.card-img-top,.card-img-bottom{width:100%}.card-img,.card-img-top{border-top-left-radius:var(--bs-card-inner-border-radius);border-top-right-radius:var(--bs-card-inner-border-radius)}.card-img,.card-img-bottom{border-bottom-right-radius:var(--bs-card-inner-border-radius);border-bottom-left-radius:var(--bs-card-inner-border-radius)}.card-group>.card{margin-bottom:var(--bs-card-group-margin)}@media (min-width: 576px){.card-group{display:flex;flex-flow:row wrap}.card-group>.card{flex:1 0 0%;margin-bottom:0}.card-group>.card+.card{margin-left:0;border-left:0}.card-group>.card:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.card-group>.card:not(:last-child) .card-img-top,.card-group>.card:not(:last-child) .card-header{border-top-right-radius:0}.card-group>.card:not(:last-child) .card-img-bottom,.card-group>.card:not(:last-child) .card-footer{border-bottom-right-radius:0}.card-group>.card:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.card-group>.card:not(:first-child) .card-img-top,.card-group>.card:not(:first-child) .card-header{border-top-left-radius:0}.card-group>.card:not(:first-child) .card-img-bottom,.card-group>.card:not(:first-child) .card-footer{border-bottom-left-radius:0}}.accordion{--bs-accordion-color: #212529;--bs-accordion-bg: #fff;--bs-accordion-transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out, border-radius .15s ease;--bs-accordion-border-color: var(--bs-border-color);--bs-accordion-border-width: 1px;--bs-accordion-border-radius: .375rem;--bs-accordion-inner-border-radius: calc(.375rem - 1px) ;--bs-accordion-btn-padding-x: 1.25rem;--bs-accordion-btn-padding-y: 1rem;--bs-accordion-btn-color: #212529;--bs-accordion-btn-bg: var(--bs-accordion-bg);--bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");--bs-accordion-btn-icon-width: 1.25rem;--bs-accordion-btn-icon-transform: rotate(-180deg);--bs-accordion-btn-icon-transition: transform .2s ease-in-out;--bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='rgb%2863, 135, 206.1%29'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");--bs-accordion-btn-focus-border-color: rgb(162.5, 202.5, 242);--bs-accordion-btn-focus-box-shadow: 0 0 0 .25rem rgba(70, 150, 229, .25);--bs-accordion-body-padding-x: 1.25rem;--bs-accordion-body-padding-y: 1rem;--bs-accordion-active-color: rgb(63, 135, 206.1);--bs-accordion-active-bg: rgb(236.5, 244.5, 252.4)}.accordion-button{position:relative;display:flex;align-items:center;width:100%;padding:var(--bs-accordion-btn-padding-y) var(--bs-accordion-btn-padding-x);font-size:1rem;color:var(--bs-accordion-btn-color);text-align:left;background-color:var(--bs-accordion-btn-bg);border:0;border-radius:0;overflow-anchor:none;transition:var(--bs-accordion-transition)}@media (prefers-reduced-motion: reduce){.accordion-button{transition:none}}.accordion-button:not(.collapsed){color:var(--bs-accordion-active-color);background-color:var(--bs-accordion-active-bg);box-shadow:inset 0 calc(-1 * var(--bs-accordion-border-width)) 0 var(--bs-accordion-border-color)}.accordion-button:not(.collapsed):after{background-image:var(--bs-accordion-btn-active-icon);transform:var(--bs-accordion-btn-icon-transform)}.accordion-button:after{flex-shrink:0;width:var(--bs-accordion-btn-icon-width);height:var(--bs-accordion-btn-icon-width);margin-left:auto;content:"";background-image:var(--bs-accordion-btn-icon);background-repeat:no-repeat;background-size:var(--bs-accordion-btn-icon-width);transition:var(--bs-accordion-btn-icon-transition)}@media (prefers-reduced-motion: reduce){.accordion-button:after{transition:none}}.accordion-button:hover{z-index:2}.accordion-button:focus{z-index:3;border-color:var(--bs-accordion-btn-focus-border-color);outline:0;box-shadow:var(--bs-accordion-btn-focus-box-shadow)}.accordion-header{margin-bottom:0}.accordion-item{color:var(--bs-accordion-color);background-color:var(--bs-accordion-bg);border:var(--bs-accordion-border-width) solid var(--bs-accordion-border-color)}.accordion-item:first-of-type{border-top-left-radius:var(--bs-accordion-border-radius);border-top-right-radius:var(--bs-accordion-border-radius)}.accordion-item:first-of-type .accordion-button{border-top-left-radius:var(--bs-accordion-inner-border-radius);border-top-right-radius:var(--bs-accordion-inner-border-radius)}.accordion-item:not(:first-of-type){border-top:0}.accordion-item:last-of-type{border-bottom-right-radius:var(--bs-accordion-border-radius);border-bottom-left-radius:var(--bs-accordion-border-radius)}.accordion-item:last-of-type .accordion-button.collapsed{border-bottom-right-radius:var(--bs-accordion-inner-border-radius);border-bottom-left-radius:var(--bs-accordion-inner-border-radius)}.accordion-item:last-of-type .accordion-collapse{border-bottom-right-radius:var(--bs-accordion-border-radius);border-bottom-left-radius:var(--bs-accordion-border-radius)}.accordion-body{padding:var(--bs-accordion-body-padding-y) var(--bs-accordion-body-padding-x)}.accordion-flush .accordion-collapse{border-width:0}.accordion-flush .accordion-item{border-right:0;border-left:0;border-radius:0}.accordion-flush .accordion-item:first-child{border-top:0}.accordion-flush .accordion-item:last-child{border-bottom:0}.accordion-flush .accordion-item .accordion-button,.accordion-flush .accordion-item .accordion-button.collapsed{border-radius:0}.breadcrumb{--bs-breadcrumb-padding-x: 0;--bs-breadcrumb-padding-y: 0;--bs-breadcrumb-margin-bottom: 1rem;--bs-breadcrumb-bg: ;--bs-breadcrumb-border-radius: ;--bs-breadcrumb-divider-color: #6c757d;--bs-breadcrumb-item-padding-x: .5rem;--bs-breadcrumb-item-active-color: #6c757d;display:flex;flex-wrap:wrap;padding:var(--bs-breadcrumb-padding-y) var(--bs-breadcrumb-padding-x);margin-bottom:var(--bs-breadcrumb-margin-bottom);font-size:var(--bs-breadcrumb-font-size);list-style:none;background-color:var(--bs-breadcrumb-bg);border-radius:var(--bs-breadcrumb-border-radius)}.breadcrumb-item+.breadcrumb-item{padding-left:var(--bs-breadcrumb-item-padding-x)}.breadcrumb-item+.breadcrumb-item:before{float:left;padding-right:var(--bs-breadcrumb-item-padding-x);color:var(--bs-breadcrumb-divider-color);content:var(--bs-breadcrumb-divider, "/")}.breadcrumb-item.active{color:var(--bs-breadcrumb-item-active-color)}.pagination{--bs-pagination-padding-x: .75rem;--bs-pagination-padding-y: .375rem;--bs-pagination-font-size: 1rem;--bs-pagination-color: var(--bs-link-color);--bs-pagination-bg: #fff;--bs-pagination-border-width: 1px;--bs-pagination-border-color: #dee2e6;--bs-pagination-border-radius: .375rem;--bs-pagination-hover-color: var(--bs-link-hover-color);--bs-pagination-hover-bg: #e9ecef;--bs-pagination-hover-border-color: #dee2e6;--bs-pagination-focus-color: var(--bs-link-hover-color);--bs-pagination-focus-bg: #e9ecef;--bs-pagination-focus-box-shadow: 0 0 0 .25rem rgba(70, 150, 229, .25);--bs-pagination-active-color: #fff;--bs-pagination-active-bg: #4696e5;--bs-pagination-active-border-color: #4696e5;--bs-pagination-disabled-color: #6c757d;--bs-pagination-disabled-bg: #fff;--bs-pagination-disabled-border-color: #dee2e6;display:flex;padding-left:0;list-style:none}.page-link{position:relative;display:block;padding:var(--bs-pagination-padding-y) var(--bs-pagination-padding-x);font-size:var(--bs-pagination-font-size);color:var(--bs-pagination-color);text-decoration:none;background-color:var(--bs-pagination-bg);border:var(--bs-pagination-border-width) solid var(--bs-pagination-border-color);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.page-link{transition:none}}.page-link:hover{z-index:2;color:var(--bs-pagination-hover-color);background-color:var(--bs-pagination-hover-bg);border-color:var(--bs-pagination-hover-border-color)}.page-link:focus{z-index:3;color:var(--bs-pagination-focus-color);background-color:var(--bs-pagination-focus-bg);outline:0;box-shadow:var(--bs-pagination-focus-box-shadow)}.page-link.active,.active>.page-link{z-index:3;color:var(--bs-pagination-active-color);background-color:var(--bs-pagination-active-bg);border-color:var(--bs-pagination-active-border-color)}.page-link.disabled,.disabled>.page-link{color:var(--bs-pagination-disabled-color);pointer-events:none;background-color:var(--bs-pagination-disabled-bg);border-color:var(--bs-pagination-disabled-border-color)}.page-item:not(:first-child) .page-link{margin-left:-1px}.page-item:first-child .page-link{border-top-left-radius:var(--bs-pagination-border-radius);border-bottom-left-radius:var(--bs-pagination-border-radius)}.page-item:last-child .page-link{border-top-right-radius:var(--bs-pagination-border-radius);border-bottom-right-radius:var(--bs-pagination-border-radius)}.pagination-lg{--bs-pagination-padding-x: 1.5rem;--bs-pagination-padding-y: .75rem;--bs-pagination-font-size: 1.25rem;--bs-pagination-border-radius: .5rem}.pagination-sm{--bs-pagination-padding-x: .5rem;--bs-pagination-padding-y: .25rem;--bs-pagination-font-size: .875rem;--bs-pagination-border-radius: .25rem}.badge{--bs-badge-padding-x: .65em;--bs-badge-padding-y: .35em;--bs-badge-font-size: .75em;--bs-badge-font-weight: 700;--bs-badge-color: #fff;--bs-badge-border-radius: .375rem;display:inline-block;padding:var(--bs-badge-padding-y) var(--bs-badge-padding-x);font-size:var(--bs-badge-font-size);font-weight:var(--bs-badge-font-weight);line-height:1;color:var(--bs-badge-color);text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:var(--bs-badge-border-radius)}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.alert{--bs-alert-bg: transparent;--bs-alert-padding-x: 1rem;--bs-alert-padding-y: 1rem;--bs-alert-margin-bottom: 1rem;--bs-alert-color: inherit;--bs-alert-border-color: transparent;--bs-alert-border: 1px solid var(--bs-alert-border-color);--bs-alert-border-radius: .375rem;position:relative;padding:var(--bs-alert-padding-y) var(--bs-alert-padding-x);margin-bottom:var(--bs-alert-margin-bottom);color:var(--bs-alert-color);background-color:var(--bs-alert-bg);border:var(--bs-alert-border);border-radius:var(--bs-alert-border-radius)}.alert-heading{color:inherit}.alert-link{font-weight:700}.alert-dismissible{padding-right:3rem}.alert-dismissible .btn-close{position:absolute;top:0;right:0;z-index:2;padding:1.25rem 1rem}.alert-primary{--bs-alert-color: rgb(42, 90, 137.4);--bs-alert-bg: rgb(218, 234, 249.8);--bs-alert-border-color: rgb(199.5, 223.5, 247.2)}.alert-primary .alert-link{color:#22486e}.alert-secondary{--bs-alert-color: rgb(64.8, 70.2, 75);--bs-alert-bg: rgb(225.6, 227.4, 229);--bs-alert-border-color: rgb(210.9, 213.6, 216)}.alert-secondary .alert-link{color:#34383c}.alert-success{--bs-alert-color: rgb(15, 81, 50.4);--bs-alert-bg: rgb(209, 231, 220.8);--bs-alert-border-color: rgb(186, 219, 203.7)}.alert-success .alert-link{color:#0c4128}.alert-info{--bs-alert-color: rgb(5.2, 80.8, 96);--bs-alert-bg: rgb(206.6, 244.4, 252);--bs-alert-border-color: rgb(182.4, 239.1, 250.5)}.alert-info .alert-link{color:#04414d}.alert-warning{--bs-alert-color: rgb(102, 77.2, 2.8);--bs-alert-bg: rgb(255, 242.6, 205.4);--bs-alert-border-color: rgb(255, 236.4, 180.6)}.alert-warning .alert-link{color:#523e02}.alert-danger{--bs-alert-color: rgb(132, 31.8, 41.4);--bs-alert-bg: rgb(248, 214.6, 217.8);--bs-alert-border-color: rgb(244.5, 194.4, 199.2)}.alert-danger .alert-link{color:#6a1921}.alert-light{--bs-alert-color: rgb(99.2, 99.6, 100);--bs-alert-bg: rgb(253.6, 253.8, 254);--bs-alert-border-color: rgb(252.9, 253.2, 253.5)}.alert-light .alert-link{color:#4f5050}.alert-dark{--bs-alert-color: rgb(19.8, 22.2, 24.6);--bs-alert-bg: rgb(210.6, 211.4, 212.2);--bs-alert-border-color: rgb(188.4, 189.6, 190.8)}.alert-dark .alert-link{color:#101214}@keyframes progress-bar-stripes{0%{background-position-x:1rem}}.progress{--bs-progress-height: 1rem;--bs-progress-font-size: .75rem;--bs-progress-bg: #e9ecef;--bs-progress-border-radius: .375rem;--bs-progress-box-shadow: inset 0 1px 2px rgba(0, 0, 0, .075);--bs-progress-bar-color: #fff;--bs-progress-bar-bg: #4696e5;--bs-progress-bar-transition: width .6s ease;display:flex;height:var(--bs-progress-height);overflow:hidden;font-size:var(--bs-progress-font-size);background-color:var(--bs-progress-bg);border-radius:var(--bs-progress-border-radius)}.progress-bar{display:flex;flex-direction:column;justify-content:center;overflow:hidden;color:var(--bs-progress-bar-color);text-align:center;white-space:nowrap;background-color:var(--bs-progress-bar-bg);transition:var(--bs-progress-bar-transition)}@media (prefers-reduced-motion: reduce){.progress-bar{transition:none}}.progress-bar-striped{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:var(--bs-progress-height) var(--bs-progress-height)}.progress-bar-animated{animation:1s linear infinite progress-bar-stripes}@media (prefers-reduced-motion: reduce){.progress-bar-animated{animation:none}}.list-group{--bs-list-group-color: #212529;--bs-list-group-bg: #fff;--bs-list-group-border-color: rgba(0, 0, 0, .125);--bs-list-group-border-width: 1px;--bs-list-group-border-radius: .375rem;--bs-list-group-item-padding-x: 1rem;--bs-list-group-item-padding-y: .5rem;--bs-list-group-action-color: #495057;--bs-list-group-action-hover-color: #495057;--bs-list-group-action-hover-bg: #f8f9fa;--bs-list-group-action-active-color: #212529;--bs-list-group-action-active-bg: #e9ecef;--bs-list-group-disabled-color: #6c757d;--bs-list-group-disabled-bg: #fff;--bs-list-group-active-color: #fff;--bs-list-group-active-bg: #4696e5;--bs-list-group-active-border-color: #4696e5;display:flex;flex-direction:column;padding-left:0;margin-bottom:0;border-radius:var(--bs-list-group-border-radius)}.list-group-numbered{list-style-type:none;counter-reset:section}.list-group-numbered>.list-group-item:before{content:counters(section,".") ". ";counter-increment:section}.list-group-item-action{width:100%;color:var(--bs-list-group-action-color);text-align:inherit}.list-group-item-action:hover,.list-group-item-action:focus{z-index:1;color:var(--bs-list-group-action-hover-color);text-decoration:none;background-color:var(--bs-list-group-action-hover-bg)}.list-group-item-action:active{color:var(--bs-list-group-action-active-color);background-color:var(--bs-list-group-action-active-bg)}.list-group-item{position:relative;display:block;padding:var(--bs-list-group-item-padding-y) var(--bs-list-group-item-padding-x);color:var(--bs-list-group-color);text-decoration:none;background-color:var(--bs-list-group-bg);border:var(--bs-list-group-border-width) solid var(--bs-list-group-border-color)}.list-group-item:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.list-group-item:last-child{border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.list-group-item.disabled,.list-group-item:disabled{color:var(--bs-list-group-disabled-color);pointer-events:none;background-color:var(--bs-list-group-disabled-bg)}.list-group-item.active{z-index:2;color:var(--bs-list-group-active-color);background-color:var(--bs-list-group-active-bg);border-color:var(--bs-list-group-active-border-color)}.list-group-item+.list-group-item{border-top-width:0}.list-group-item+.list-group-item.active{margin-top:calc(-1 * var(--bs-list-group-border-width));border-top-width:var(--bs-list-group-border-width)}.list-group-horizontal{flex-direction:row}.list-group-horizontal>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal>.list-group-item.active{margin-top:0}.list-group-horizontal>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}@media (min-width: 576px){.list-group-horizontal-sm{flex-direction:row}.list-group-horizontal-sm>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-sm>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-sm>.list-group-item.active{margin-top:0}.list-group-horizontal-sm>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-sm>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width: 768px){.list-group-horizontal-md{flex-direction:row}.list-group-horizontal-md>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-md>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-md>.list-group-item.active{margin-top:0}.list-group-horizontal-md>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-md>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width: 992px){.list-group-horizontal-lg{flex-direction:row}.list-group-horizontal-lg>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-lg>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-lg>.list-group-item.active{margin-top:0}.list-group-horizontal-lg>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-lg>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width: 1200px){.list-group-horizontal-xl{flex-direction:row}.list-group-horizontal-xl>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-xl>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-xl>.list-group-item.active{margin-top:0}.list-group-horizontal-xl>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-xl>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width: 1400px){.list-group-horizontal-xxl{flex-direction:row}.list-group-horizontal-xxl>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-xxl>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-xxl>.list-group-item.active{margin-top:0}.list-group-horizontal-xxl>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-xxl>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}.list-group-flush{border-radius:0}.list-group-flush>.list-group-item{border-width:0 0 var(--bs-list-group-border-width)}.list-group-flush>.list-group-item:last-child{border-bottom-width:0}.list-group-item-primary{color:#2a5a89;background-color:#daeafa}.list-group-item-primary.list-group-item-action:hover,.list-group-item-primary.list-group-item-action:focus{color:#2a5a89;background-color:#c4d3e1}.list-group-item-primary.list-group-item-action.active{color:#fff;background-color:#2a5a89;border-color:#2a5a89}.list-group-item-secondary{color:#41464b;background-color:#e2e3e5}.list-group-item-secondary.list-group-item-action:hover,.list-group-item-secondary.list-group-item-action:focus{color:#41464b;background-color:#cbcdce}.list-group-item-secondary.list-group-item-action.active{color:#fff;background-color:#41464b;border-color:#41464b}.list-group-item-success{color:#0f5132;background-color:#d1e7dd}.list-group-item-success.list-group-item-action:hover,.list-group-item-success.list-group-item-action:focus{color:#0f5132;background-color:#bcd0c7}.list-group-item-success.list-group-item-action.active{color:#fff;background-color:#0f5132;border-color:#0f5132}.list-group-item-info{color:#055160;background-color:#cff4fc}.list-group-item-info.list-group-item-action:hover,.list-group-item-info.list-group-item-action:focus{color:#055160;background-color:#badce3}.list-group-item-info.list-group-item-action.active{color:#fff;background-color:#055160;border-color:#055160}.list-group-item-warning{color:#664d03;background-color:#fff3cd}.list-group-item-warning.list-group-item-action:hover,.list-group-item-warning.list-group-item-action:focus{color:#664d03;background-color:#e6dab9}.list-group-item-warning.list-group-item-action.active{color:#fff;background-color:#664d03;border-color:#664d03}.list-group-item-danger{color:#842029;background-color:#f8d7da}.list-group-item-danger.list-group-item-action:hover,.list-group-item-danger.list-group-item-action:focus{color:#842029;background-color:#dfc1c4}.list-group-item-danger.list-group-item-action.active{color:#fff;background-color:#842029;border-color:#842029}.list-group-item-light{color:#636464;background-color:#fefefe}.list-group-item-light.list-group-item-action:hover,.list-group-item-light.list-group-item-action:focus{color:#636464;background-color:#e4e4e5}.list-group-item-light.list-group-item-action.active{color:#fff;background-color:#636464;border-color:#636464}.list-group-item-dark{color:#141619;background-color:#d3d3d4}.list-group-item-dark.list-group-item-action:hover,.list-group-item-dark.list-group-item-action:focus{color:#141619;background-color:#bebebf}.list-group-item-dark.list-group-item-action.active{color:#fff;background-color:#141619;border-color:#141619}.btn-close{box-sizing:content-box;width:1em;height:1em;padding:.25em;color:#000;background:transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;border:0;border-radius:.375rem;opacity:.5}.btn-close:hover{color:#000;text-decoration:none;opacity:.75}.btn-close:focus{outline:0;box-shadow:0 0 0 .25rem #4696e540;opacity:1}.btn-close:disabled,.btn-close.disabled{pointer-events:none;-webkit-user-select:none;user-select:none;opacity:.25}.btn-close-white{filter:invert(1) grayscale(100%) brightness(200%)}.toast{--bs-toast-zindex: 1090;--bs-toast-padding-x: .75rem;--bs-toast-padding-y: .5rem;--bs-toast-spacing: 1.5rem;--bs-toast-max-width: 350px;--bs-toast-font-size: .875rem;--bs-toast-color: ;--bs-toast-bg: rgba(255, 255, 255, .85);--bs-toast-border-width: 1px;--bs-toast-border-color: var(--bs-border-color-translucent);--bs-toast-border-radius: .375rem;--bs-toast-box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);--bs-toast-header-color: #6c757d;--bs-toast-header-bg: rgba(255, 255, 255, .85);--bs-toast-header-border-color: rgba(0, 0, 0, .05);width:var(--bs-toast-max-width);max-width:100%;font-size:var(--bs-toast-font-size);color:var(--bs-toast-color);pointer-events:auto;background-color:var(--bs-toast-bg);background-clip:padding-box;border:var(--bs-toast-border-width) solid var(--bs-toast-border-color);box-shadow:var(--bs-toast-box-shadow);border-radius:var(--bs-toast-border-radius)}.toast.showing{opacity:0}.toast:not(.show){display:none}.toast-container{--bs-toast-zindex: 1090;position:absolute;z-index:var(--bs-toast-zindex);width:max-content;max-width:100%;pointer-events:none}.toast-container>:not(:last-child){margin-bottom:var(--bs-toast-spacing)}.toast-header{display:flex;align-items:center;padding:var(--bs-toast-padding-y) var(--bs-toast-padding-x);color:var(--bs-toast-header-color);background-color:var(--bs-toast-header-bg);background-clip:padding-box;border-bottom:var(--bs-toast-border-width) solid var(--bs-toast-header-border-color);border-top-left-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width));border-top-right-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width))}.toast-header .btn-close{margin-right:calc(-.5 * var(--bs-toast-padding-x));margin-left:var(--bs-toast-padding-x)}.toast-body{padding:var(--bs-toast-padding-x);word-wrap:break-word}.modal{--bs-modal-zindex: 1055;--bs-modal-width: 500px;--bs-modal-padding: 1rem;--bs-modal-margin: .5rem;--bs-modal-color: ;--bs-modal-bg: #fff;--bs-modal-border-color: var(--bs-border-color-translucent);--bs-modal-border-width: 1px;--bs-modal-border-radius: .5rem;--bs-modal-box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);--bs-modal-inner-border-radius: calc(.5rem - 1px) ;--bs-modal-header-padding-x: 1rem;--bs-modal-header-padding-y: 1rem;--bs-modal-header-padding: 1rem 1rem;--bs-modal-header-border-color: var(--bs-border-color);--bs-modal-header-border-width: 1px;--bs-modal-title-line-height: 1.5;--bs-modal-footer-gap: .5rem;--bs-modal-footer-bg: ;--bs-modal-footer-border-color: var(--bs-border-color);--bs-modal-footer-border-width: 1px;position:fixed;top:0;left:0;z-index:var(--bs-modal-zindex);display:none;width:100%;height:100%;overflow-x:hidden;overflow-y:auto;outline:0}.modal-dialog{position:relative;width:auto;margin:var(--bs-modal-margin);pointer-events:none}.modal.fade .modal-dialog{transition:transform .3s ease-out;transform:translateY(-50px)}@media (prefers-reduced-motion: reduce){.modal.fade .modal-dialog{transition:none}}.modal.show .modal-dialog{transform:none}.modal.modal-static .modal-dialog{transform:scale(1.02)}.modal-dialog-scrollable{height:calc(100% - var(--bs-modal-margin) * 2)}.modal-dialog-scrollable .modal-content{max-height:100%;overflow:hidden}.modal-dialog-scrollable .modal-body{overflow-y:auto}.modal-dialog-centered{display:flex;align-items:center;min-height:calc(100% - var(--bs-modal-margin) * 2)}.modal-content{position:relative;display:flex;flex-direction:column;width:100%;color:var(--bs-modal-color);pointer-events:auto;background-color:var(--bs-modal-bg);background-clip:padding-box;border:var(--bs-modal-border-width) solid var(--bs-modal-border-color);border-radius:var(--bs-modal-border-radius);outline:0}.modal-backdrop{--bs-backdrop-zindex: 1050;--bs-backdrop-bg: #000;--bs-backdrop-opacity: .5;position:fixed;top:0;left:0;z-index:var(--bs-backdrop-zindex);width:100vw;height:100vh;background-color:var(--bs-backdrop-bg)}.modal-backdrop.fade{opacity:0}.modal-backdrop.show{opacity:var(--bs-backdrop-opacity)}.modal-header{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;padding:var(--bs-modal-header-padding);border-bottom:var(--bs-modal-header-border-width) solid var(--bs-modal-header-border-color);border-top-left-radius:var(--bs-modal-inner-border-radius);border-top-right-radius:var(--bs-modal-inner-border-radius)}.modal-header .btn-close{padding:calc(var(--bs-modal-header-padding-y) * .5) calc(var(--bs-modal-header-padding-x) * .5);margin:calc(-.5 * var(--bs-modal-header-padding-y)) calc(-.5 * var(--bs-modal-header-padding-x)) calc(-.5 * var(--bs-modal-header-padding-y)) auto}.modal-title{margin-bottom:0;line-height:var(--bs-modal-title-line-height)}.modal-body{position:relative;flex:1 1 auto;padding:var(--bs-modal-padding)}.modal-footer{display:flex;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;padding:calc(var(--bs-modal-padding) - var(--bs-modal-footer-gap) * .5);background-color:var(--bs-modal-footer-bg);border-top:var(--bs-modal-footer-border-width) solid var(--bs-modal-footer-border-color);border-bottom-right-radius:var(--bs-modal-inner-border-radius);border-bottom-left-radius:var(--bs-modal-inner-border-radius)}.modal-footer>*{margin:calc(var(--bs-modal-footer-gap) * .5)}@media (min-width: 576px){.modal{--bs-modal-margin: 1.75rem;--bs-modal-box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15)}.modal-dialog{max-width:var(--bs-modal-width);margin-right:auto;margin-left:auto}.modal-sm{--bs-modal-width: 300px}}@media (min-width: 992px){.modal-lg,.modal-xl{--bs-modal-width: 800px}}@media (min-width: 1200px){.modal-xl{--bs-modal-width: 1140px}}.modal-fullscreen{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen .modal-header,.modal-fullscreen .modal-footer{border-radius:0}.modal-fullscreen .modal-body{overflow-y:auto}@media (max-width: 575.98px){.modal-fullscreen-sm-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-sm-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-sm-down .modal-header,.modal-fullscreen-sm-down .modal-footer{border-radius:0}.modal-fullscreen-sm-down .modal-body{overflow-y:auto}}@media (max-width: 767.98px){.modal-fullscreen-md-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-md-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-md-down .modal-header,.modal-fullscreen-md-down .modal-footer{border-radius:0}.modal-fullscreen-md-down .modal-body{overflow-y:auto}}@media (max-width: 991.98px){.modal-fullscreen-lg-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-lg-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-lg-down .modal-header,.modal-fullscreen-lg-down .modal-footer{border-radius:0}.modal-fullscreen-lg-down .modal-body{overflow-y:auto}}@media (max-width: 1199.98px){.modal-fullscreen-xl-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-xl-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-xl-down .modal-header,.modal-fullscreen-xl-down .modal-footer{border-radius:0}.modal-fullscreen-xl-down .modal-body{overflow-y:auto}}@media (max-width: 1399.98px){.modal-fullscreen-xxl-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-xxl-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-xxl-down .modal-header,.modal-fullscreen-xxl-down .modal-footer{border-radius:0}.modal-fullscreen-xxl-down .modal-body{overflow-y:auto}}.tooltip{--bs-tooltip-zindex: 1080;--bs-tooltip-max-width: 200px;--bs-tooltip-padding-x: .5rem;--bs-tooltip-padding-y: .25rem;--bs-tooltip-margin: ;--bs-tooltip-font-size: .875rem;--bs-tooltip-color: #fff;--bs-tooltip-bg: #000;--bs-tooltip-border-radius: .375rem;--bs-tooltip-opacity: .9;--bs-tooltip-arrow-width: .8rem;--bs-tooltip-arrow-height: .4rem;z-index:var(--bs-tooltip-zindex);display:block;padding:var(--bs-tooltip-arrow-height);margin:var(--bs-tooltip-margin);font-family:var(--bs-font-sans-serif);font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;white-space:normal;word-spacing:normal;line-break:auto;font-size:var(--bs-tooltip-font-size);word-wrap:break-word;opacity:0}.tooltip.show{opacity:var(--bs-tooltip-opacity)}.tooltip .tooltip-arrow{display:block;width:var(--bs-tooltip-arrow-width);height:var(--bs-tooltip-arrow-height)}.tooltip .tooltip-arrow:before{position:absolute;content:"";border-color:transparent;border-style:solid}.bs-tooltip-top .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow{bottom:0}.bs-tooltip-top .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow:before{top:-1px;border-width:var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * .5) 0;border-top-color:var(--bs-tooltip-bg)}.bs-tooltip-end .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow{left:0;width:var(--bs-tooltip-arrow-height);height:var(--bs-tooltip-arrow-width)}.bs-tooltip-end .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow:before{right:-1px;border-width:calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * .5) 0;border-right-color:var(--bs-tooltip-bg)}.bs-tooltip-bottom .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow{top:0}.bs-tooltip-bottom .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow:before{bottom:-1px;border-width:0 calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height);border-bottom-color:var(--bs-tooltip-bg)}.bs-tooltip-start .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow{right:0;width:var(--bs-tooltip-arrow-height);height:var(--bs-tooltip-arrow-width)}.bs-tooltip-start .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow:before{left:-1px;border-width:calc(var(--bs-tooltip-arrow-width) * .5) 0 calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height);border-left-color:var(--bs-tooltip-bg)}.tooltip-inner{max-width:var(--bs-tooltip-max-width);padding:var(--bs-tooltip-padding-y) var(--bs-tooltip-padding-x);color:var(--bs-tooltip-color);text-align:center;background-color:var(--bs-tooltip-bg);border-radius:var(--bs-tooltip-border-radius)}.popover{--bs-popover-zindex: 1070;--bs-popover-max-width: 276px;--bs-popover-font-size: .875rem;--bs-popover-bg: #fff;--bs-popover-border-width: 1px;--bs-popover-border-color: var(--bs-border-color-translucent);--bs-popover-border-radius: .5rem;--bs-popover-inner-border-radius: calc(.5rem - 1px) ;--bs-popover-box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);--bs-popover-header-padding-x: 1rem;--bs-popover-header-padding-y: .5rem;--bs-popover-header-font-size: 1rem;--bs-popover-header-color: ;--bs-popover-header-bg: rgb(239.7, 239.7, 239.7);--bs-popover-body-padding-x: 1rem;--bs-popover-body-padding-y: 1rem;--bs-popover-body-color: #212529;--bs-popover-arrow-width: 1rem;--bs-popover-arrow-height: .5rem;--bs-popover-arrow-border: var(--bs-popover-border-color);z-index:var(--bs-popover-zindex);display:block;max-width:var(--bs-popover-max-width);font-family:var(--bs-font-sans-serif);font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;white-space:normal;word-spacing:normal;line-break:auto;font-size:var(--bs-popover-font-size);word-wrap:break-word;background-color:var(--bs-popover-bg);background-clip:padding-box;border:var(--bs-popover-border-width) solid var(--bs-popover-border-color);border-radius:var(--bs-popover-border-radius)}.popover .popover-arrow{display:block;width:var(--bs-popover-arrow-width);height:var(--bs-popover-arrow-height)}.popover .popover-arrow:before,.popover .popover-arrow:after{position:absolute;display:block;content:"";border-color:transparent;border-style:solid;border-width:0}.bs-popover-top>.popover-arrow,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow{bottom:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width))}.bs-popover-top>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow:before,.bs-popover-top>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow:after{border-width:var(--bs-popover-arrow-height) calc(var(--bs-popover-arrow-width) * .5) 0}.bs-popover-top>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow:before{bottom:0;border-top-color:var(--bs-popover-arrow-border)}.bs-popover-top>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow:after{bottom:var(--bs-popover-border-width);border-top-color:var(--bs-popover-bg)}.bs-popover-end>.popover-arrow,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow{left:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width));width:var(--bs-popover-arrow-height);height:var(--bs-popover-arrow-width)}.bs-popover-end>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow:before,.bs-popover-end>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow:after{border-width:calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height) calc(var(--bs-popover-arrow-width) * .5) 0}.bs-popover-end>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow:before{left:0;border-right-color:var(--bs-popover-arrow-border)}.bs-popover-end>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow:after{left:var(--bs-popover-border-width);border-right-color:var(--bs-popover-bg)}.bs-popover-bottom>.popover-arrow,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow{top:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width))}.bs-popover-bottom>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:before,.bs-popover-bottom>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:after{border-width:0 calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height)}.bs-popover-bottom>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:before{top:0;border-bottom-color:var(--bs-popover-arrow-border)}.bs-popover-bottom>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:after{top:var(--bs-popover-border-width);border-bottom-color:var(--bs-popover-bg)}.bs-popover-bottom .popover-header:before,.bs-popover-auto[data-popper-placement^=bottom] .popover-header:before{position:absolute;top:0;left:50%;display:block;width:var(--bs-popover-arrow-width);margin-left:calc(-.5 * var(--bs-popover-arrow-width));content:"";border-bottom:var(--bs-popover-border-width) solid var(--bs-popover-header-bg)}.bs-popover-start>.popover-arrow,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow{right:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width));width:var(--bs-popover-arrow-height);height:var(--bs-popover-arrow-width)}.bs-popover-start>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow:before,.bs-popover-start>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow:after{border-width:calc(var(--bs-popover-arrow-width) * .5) 0 calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height)}.bs-popover-start>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow:before{right:0;border-left-color:var(--bs-popover-arrow-border)}.bs-popover-start>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow:after{right:var(--bs-popover-border-width);border-left-color:var(--bs-popover-bg)}.popover-header{padding:var(--bs-popover-header-padding-y) var(--bs-popover-header-padding-x);margin-bottom:0;font-size:var(--bs-popover-header-font-size);color:var(--bs-popover-header-color);background-color:var(--bs-popover-header-bg);border-bottom:var(--bs-popover-border-width) solid var(--bs-popover-border-color);border-top-left-radius:var(--bs-popover-inner-border-radius);border-top-right-radius:var(--bs-popover-inner-border-radius)}.popover-header:empty{display:none}.popover-body{padding:var(--bs-popover-body-padding-y) var(--bs-popover-body-padding-x);color:var(--bs-popover-body-color)}.carousel{position:relative}.carousel.pointer-event{touch-action:pan-y}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner:after{display:block;clear:both;content:""}.carousel-item{position:relative;display:none;float:left;width:100%;margin-right:-100%;backface-visibility:hidden;transition:transform .6s ease-in-out}@media (prefers-reduced-motion: reduce){.carousel-item{transition:none}}.carousel-item.active,.carousel-item-next,.carousel-item-prev{display:block}.carousel-item-next:not(.carousel-item-start),.active.carousel-item-end{transform:translate(100%)}.carousel-item-prev:not(.carousel-item-end),.active.carousel-item-start{transform:translate(-100%)}.carousel-fade .carousel-item{opacity:0;transition-property:opacity;transform:none}.carousel-fade .carousel-item.active,.carousel-fade .carousel-item-next.carousel-item-start,.carousel-fade .carousel-item-prev.carousel-item-end{z-index:1;opacity:1}.carousel-fade .active.carousel-item-start,.carousel-fade .active.carousel-item-end{z-index:0;opacity:0;transition:opacity 0s .6s}@media (prefers-reduced-motion: reduce){.carousel-fade .active.carousel-item-start,.carousel-fade .active.carousel-item-end{transition:none}}.carousel-control-prev,.carousel-control-next{position:absolute;top:0;bottom:0;z-index:1;display:flex;align-items:center;justify-content:center;width:15%;padding:0;color:#fff;text-align:center;background:none;border:0;opacity:.5;transition:opacity .15s ease}@media (prefers-reduced-motion: reduce){.carousel-control-prev,.carousel-control-next{transition:none}}.carousel-control-prev:hover,.carousel-control-prev:focus,.carousel-control-next:hover,.carousel-control-next:focus{color:#fff;text-decoration:none;outline:0;opacity:.9}.carousel-control-prev{left:0}.carousel-control-next{right:0}.carousel-control-prev-icon,.carousel-control-next-icon{display:inline-block;width:2rem;height:2rem;background-repeat:no-repeat;background-position:50%;background-size:100% 100%}.carousel-control-prev-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e")}.carousel-control-next-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e")}.carousel-indicators{position:absolute;right:0;bottom:0;left:0;z-index:2;display:flex;justify-content:center;padding:0;margin-right:15%;margin-bottom:1rem;margin-left:15%;list-style:none}.carousel-indicators [data-bs-target]{box-sizing:content-box;flex:0 1 auto;width:30px;height:3px;padding:0;margin-right:3px;margin-left:3px;text-indent:-999px;cursor:pointer;background-color:#fff;background-clip:padding-box;border:0;border-top:10px solid transparent;border-bottom:10px solid transparent;opacity:.5;transition:opacity .6s ease}@media (prefers-reduced-motion: reduce){.carousel-indicators [data-bs-target]{transition:none}}.carousel-indicators .active{opacity:1}.carousel-caption{position:absolute;right:15%;bottom:1.25rem;left:15%;padding-top:1.25rem;padding-bottom:1.25rem;color:#fff;text-align:center}.carousel-dark .carousel-control-prev-icon,.carousel-dark .carousel-control-next-icon{filter:invert(1) grayscale(100)}.carousel-dark .carousel-indicators [data-bs-target]{background-color:#000}.carousel-dark .carousel-caption{color:#000}.spinner-grow,.spinner-border{display:inline-block;width:var(--bs-spinner-width);height:var(--bs-spinner-height);vertical-align:var(--bs-spinner-vertical-align);border-radius:50%;animation:var(--bs-spinner-animation-speed) linear infinite var(--bs-spinner-animation-name)}@keyframes spinner-border{to{transform:rotate(360deg)}}.spinner-border{--bs-spinner-width: 2rem;--bs-spinner-height: 2rem;--bs-spinner-vertical-align: -.125em;--bs-spinner-border-width: .25em;--bs-spinner-animation-speed: .75s;--bs-spinner-animation-name: spinner-border;border:var(--bs-spinner-border-width) solid currentcolor;border-right-color:transparent}.spinner-border-sm{--bs-spinner-width: 1rem;--bs-spinner-height: 1rem;--bs-spinner-border-width: .2em}@keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1;transform:none}}.spinner-grow{--bs-spinner-width: 2rem;--bs-spinner-height: 2rem;--bs-spinner-vertical-align: -.125em;--bs-spinner-animation-speed: .75s;--bs-spinner-animation-name: spinner-grow;background-color:currentcolor;opacity:0}.spinner-grow-sm{--bs-spinner-width: 1rem;--bs-spinner-height: 1rem}@media (prefers-reduced-motion: reduce){.spinner-border,.spinner-grow{--bs-spinner-animation-speed: 1.5s}}.offcanvas,.offcanvas-xxl,.offcanvas-xl,.offcanvas-lg,.offcanvas-md,.offcanvas-sm{--bs-offcanvas-zindex: 1045;--bs-offcanvas-width: 400px;--bs-offcanvas-height: 30vh;--bs-offcanvas-padding-x: 1rem;--bs-offcanvas-padding-y: 1rem;--bs-offcanvas-color: ;--bs-offcanvas-bg: #fff;--bs-offcanvas-border-width: 1px;--bs-offcanvas-border-color: var(--bs-border-color-translucent);--bs-offcanvas-box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075)}@media (max-width: 575.98px){.offcanvas-sm{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:transform .3s ease-in-out}}@media (max-width: 575.98px) and (prefers-reduced-motion: reduce){.offcanvas-sm{transition:none}}@media (max-width: 575.98px){.offcanvas-sm.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}.offcanvas-sm.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}.offcanvas-sm.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-sm.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-sm.showing,.offcanvas-sm.show:not(.hiding){transform:none}.offcanvas-sm.showing,.offcanvas-sm.hiding,.offcanvas-sm.show{visibility:visible}}@media (min-width: 576px){.offcanvas-sm{--bs-offcanvas-height: auto;--bs-offcanvas-border-width: 0;background-color:transparent!important}.offcanvas-sm .offcanvas-header{display:none}.offcanvas-sm .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width: 767.98px){.offcanvas-md{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:transform .3s ease-in-out}}@media (max-width: 767.98px) and (prefers-reduced-motion: reduce){.offcanvas-md{transition:none}}@media (max-width: 767.98px){.offcanvas-md.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}.offcanvas-md.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}.offcanvas-md.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-md.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-md.showing,.offcanvas-md.show:not(.hiding){transform:none}.offcanvas-md.showing,.offcanvas-md.hiding,.offcanvas-md.show{visibility:visible}}@media (min-width: 768px){.offcanvas-md{--bs-offcanvas-height: auto;--bs-offcanvas-border-width: 0;background-color:transparent!important}.offcanvas-md .offcanvas-header{display:none}.offcanvas-md .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width: 991.98px){.offcanvas-lg{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:transform .3s ease-in-out}}@media (max-width: 991.98px) and (prefers-reduced-motion: reduce){.offcanvas-lg{transition:none}}@media (max-width: 991.98px){.offcanvas-lg.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}.offcanvas-lg.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}.offcanvas-lg.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-lg.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-lg.showing,.offcanvas-lg.show:not(.hiding){transform:none}.offcanvas-lg.showing,.offcanvas-lg.hiding,.offcanvas-lg.show{visibility:visible}}@media (min-width: 992px){.offcanvas-lg{--bs-offcanvas-height: auto;--bs-offcanvas-border-width: 0;background-color:transparent!important}.offcanvas-lg .offcanvas-header{display:none}.offcanvas-lg .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width: 1199.98px){.offcanvas-xl{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:transform .3s ease-in-out}}@media (max-width: 1199.98px) and (prefers-reduced-motion: reduce){.offcanvas-xl{transition:none}}@media (max-width: 1199.98px){.offcanvas-xl.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}.offcanvas-xl.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}.offcanvas-xl.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-xl.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-xl.showing,.offcanvas-xl.show:not(.hiding){transform:none}.offcanvas-xl.showing,.offcanvas-xl.hiding,.offcanvas-xl.show{visibility:visible}}@media (min-width: 1200px){.offcanvas-xl{--bs-offcanvas-height: auto;--bs-offcanvas-border-width: 0;background-color:transparent!important}.offcanvas-xl .offcanvas-header{display:none}.offcanvas-xl .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width: 1399.98px){.offcanvas-xxl{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:transform .3s ease-in-out}}@media (max-width: 1399.98px) and (prefers-reduced-motion: reduce){.offcanvas-xxl{transition:none}}@media (max-width: 1399.98px){.offcanvas-xxl.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}.offcanvas-xxl.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}.offcanvas-xxl.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-xxl.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-xxl.showing,.offcanvas-xxl.show:not(.hiding){transform:none}.offcanvas-xxl.showing,.offcanvas-xxl.hiding,.offcanvas-xxl.show{visibility:visible}}@media (min-width: 1400px){.offcanvas-xxl{--bs-offcanvas-height: auto;--bs-offcanvas-border-width: 0;background-color:transparent!important}.offcanvas-xxl .offcanvas-header{display:none}.offcanvas-xxl .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}.offcanvas{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:transform .3s ease-in-out}@media (prefers-reduced-motion: reduce){.offcanvas{transition:none}}.offcanvas.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}.offcanvas.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}.offcanvas.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas.showing,.offcanvas.show:not(.hiding){transform:none}.offcanvas.showing,.offcanvas.hiding,.offcanvas.show{visibility:visible}.offcanvas-backdrop{position:fixed;top:0;left:0;z-index:1040;width:100vw;height:100vh;background-color:#000}.offcanvas-backdrop.fade{opacity:0}.offcanvas-backdrop.show{opacity:.5}.offcanvas-header{display:flex;align-items:center;justify-content:space-between;padding:var(--bs-offcanvas-padding-y) var(--bs-offcanvas-padding-x)}.offcanvas-header .btn-close{padding:calc(var(--bs-offcanvas-padding-y) * .5) calc(var(--bs-offcanvas-padding-x) * .5);margin-top:calc(-.5 * var(--bs-offcanvas-padding-y));margin-right:calc(-.5 * var(--bs-offcanvas-padding-x));margin-bottom:calc(-.5 * var(--bs-offcanvas-padding-y))}.offcanvas-title{margin-bottom:0;line-height:1.5}.offcanvas-body{flex-grow:1;padding:var(--bs-offcanvas-padding-y) var(--bs-offcanvas-padding-x);overflow-y:auto}.placeholder{display:inline-block;min-height:1em;vertical-align:middle;cursor:wait;background-color:currentcolor;opacity:.5}.placeholder.btn:before{display:inline-block;content:""}.placeholder-xs{min-height:.6em}.placeholder-sm{min-height:.8em}.placeholder-lg{min-height:1.2em}.placeholder-glow .placeholder{animation:placeholder-glow 2s ease-in-out infinite}@keyframes placeholder-glow{50%{opacity:.2}}.placeholder-wave{-webkit-mask-image:linear-gradient(130deg,#000 55%,#000c,#000 95%);mask-image:linear-gradient(130deg,#000 55%,#000c,#000 95%);-webkit-mask-size:200% 100%;mask-size:200% 100%;animation:placeholder-wave 2s linear infinite}@keyframes placeholder-wave{to{-webkit-mask-position:-200% 0%;mask-position:-200% 0%}}.clearfix:after{display:block;clear:both;content:""}.text-bg-primary{color:#000!important;background-color:RGBA(70,150,229,var(--bs-bg-opacity, 1))!important}.text-bg-secondary{color:#fff!important;background-color:RGBA(108,117,125,var(--bs-bg-opacity, 1))!important}.text-bg-success{color:#fff!important;background-color:RGBA(25,135,84,var(--bs-bg-opacity, 1))!important}.text-bg-info{color:#000!important;background-color:RGBA(13,202,240,var(--bs-bg-opacity, 1))!important}.text-bg-warning{color:#000!important;background-color:RGBA(255,193,7,var(--bs-bg-opacity, 1))!important}.text-bg-danger{color:#fff!important;background-color:RGBA(220,53,69,var(--bs-bg-opacity, 1))!important}.text-bg-light{color:#000!important;background-color:RGBA(248,249,250,var(--bs-bg-opacity, 1))!important}.text-bg-dark{color:#fff!important;background-color:RGBA(33,37,41,var(--bs-bg-opacity, 1))!important}.link-primary{color:#4696e5!important}.link-primary:hover,.link-primary:focus{color:#6babea!important}.link-secondary{color:#6c757d!important}.link-secondary:hover,.link-secondary:focus{color:#565e64!important}.link-success{color:#198754!important}.link-success:hover,.link-success:focus{color:#146c43!important}.link-info{color:#0dcaf0!important}.link-info:hover,.link-info:focus{color:#3dd5f3!important}.link-warning{color:#ffc107!important}.link-warning:hover,.link-warning:focus{color:#ffcd39!important}.link-danger{color:#dc3545!important}.link-danger:hover,.link-danger:focus{color:#b02a37!important}.link-light{color:#f8f9fa!important}.link-light:hover,.link-light:focus{color:#f9fafb!important}.link-dark{color:#212529!important}.link-dark:hover,.link-dark:focus{color:#1a1e21!important}.ratio{position:relative;width:100%}.ratio:before{display:block;padding-top:var(--bs-aspect-ratio);content:""}.ratio>*{position:absolute;top:0;left:0;width:100%;height:100%}.ratio-1x1{--bs-aspect-ratio: 100%}.ratio-4x3{--bs-aspect-ratio: 75%}.ratio-16x9{--bs-aspect-ratio: 56.25%}.ratio-21x9{--bs-aspect-ratio: 42.8571428571%}.fixed-top{position:fixed;top:0;right:0;left:0;z-index:1030}.fixed-bottom{position:fixed;right:0;bottom:0;left:0;z-index:1030}.sticky-top{position:sticky;top:0;z-index:1020}.sticky-bottom{position:sticky;bottom:0;z-index:1020}@media (min-width: 576px){.sticky-sm-top{position:sticky;top:0;z-index:1020}.sticky-sm-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 768px){.sticky-md-top{position:sticky;top:0;z-index:1020}.sticky-md-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 992px){.sticky-lg-top{position:sticky;top:0;z-index:1020}.sticky-lg-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 1200px){.sticky-xl-top{position:sticky;top:0;z-index:1020}.sticky-xl-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 1400px){.sticky-xxl-top{position:sticky;top:0;z-index:1020}.sticky-xxl-bottom{position:sticky;bottom:0;z-index:1020}}.hstack{display:flex;flex-direction:row;align-items:center;align-self:stretch}.vstack{display:flex;flex:1 1 auto;flex-direction:column;align-self:stretch}.visually-hidden,.visually-hidden-focusable:not(:focus):not(:focus-within){position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.stretched-link:after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;content:""}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vr{display:inline-block;align-self:stretch;width:1px;min-height:1em;background-color:currentcolor;opacity:.25}.align-baseline{vertical-align:baseline!important}.align-top{vertical-align:top!important}.align-middle{vertical-align:middle!important}.align-bottom{vertical-align:bottom!important}.align-text-bottom{vertical-align:text-bottom!important}.align-text-top{vertical-align:text-top!important}.float-start{float:left!important}.float-end{float:right!important}.float-none{float:none!important}.opacity-0{opacity:0!important}.opacity-25{opacity:.25!important}.opacity-50{opacity:.5!important}.opacity-75{opacity:.75!important}.opacity-100{opacity:1!important}.overflow-auto{overflow:auto!important}.overflow-hidden{overflow:hidden!important}.overflow-visible{overflow:visible!important}.overflow-scroll{overflow:scroll!important}.d-inline{display:inline!important}.d-inline-block{display:inline-block!important}.d-block{display:block!important}.d-grid{display:grid!important}.d-table{display:table!important}.d-table-row{display:table-row!important}.d-table-cell{display:table-cell!important}.d-flex{display:flex!important}.d-inline-flex{display:inline-flex!important}.d-none{display:none!important}.shadow{box-shadow:0 .5rem 1rem #00000026!important}.shadow-sm{box-shadow:0 .125rem .25rem #00000013!important}.shadow-lg{box-shadow:0 1rem 3rem #0000002d!important}.shadow-none{box-shadow:none!important}.position-static{position:static!important}.position-relative{position:relative!important}.position-absolute{position:absolute!important}.position-fixed{position:fixed!important}.position-sticky{position:sticky!important}.top-0{top:0!important}.top-50{top:50%!important}.top-100{top:100%!important}.bottom-0{bottom:0!important}.bottom-50{bottom:50%!important}.bottom-100{bottom:100%!important}.start-0{left:0!important}.start-50{left:50%!important}.start-100{left:100%!important}.end-0{right:0!important}.end-50{right:50%!important}.end-100{right:100%!important}.translate-middle{transform:translate(-50%,-50%)!important}.translate-middle-x{transform:translate(-50%)!important}.translate-middle-y{transform:translateY(-50%)!important}.border{border:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-0{border:0!important}.border-top{border-top:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-top-0{border-top:0!important}.border-end{border-right:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-end-0{border-right:0!important}.border-bottom{border-bottom:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-bottom-0{border-bottom:0!important}.border-start{border-left:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-start-0{border-left:0!important}.border-primary{--bs-border-opacity: 1;border-color:rgba(var(--bs-primary-rgb),var(--bs-border-opacity))!important}.border-secondary{--bs-border-opacity: 1;border-color:rgba(var(--bs-secondary-rgb),var(--bs-border-opacity))!important}.border-success{--bs-border-opacity: 1;border-color:rgba(var(--bs-success-rgb),var(--bs-border-opacity))!important}.border-info{--bs-border-opacity: 1;border-color:rgba(var(--bs-info-rgb),var(--bs-border-opacity))!important}.border-warning{--bs-border-opacity: 1;border-color:rgba(var(--bs-warning-rgb),var(--bs-border-opacity))!important}.border-danger{--bs-border-opacity: 1;border-color:rgba(var(--bs-danger-rgb),var(--bs-border-opacity))!important}.border-light{--bs-border-opacity: 1;border-color:rgba(var(--bs-light-rgb),var(--bs-border-opacity))!important}.border-dark{--bs-border-opacity: 1;border-color:rgba(var(--bs-dark-rgb),var(--bs-border-opacity))!important}.border-white{--bs-border-opacity: 1;border-color:rgba(var(--bs-white-rgb),var(--bs-border-opacity))!important}.border-1{--bs-border-width: 1px}.border-2{--bs-border-width: 2px}.border-3{--bs-border-width: 3px}.border-4{--bs-border-width: 4px}.border-5{--bs-border-width: 5px}.border-opacity-10{--bs-border-opacity: .1}.border-opacity-25{--bs-border-opacity: .25}.border-opacity-50{--bs-border-opacity: .5}.border-opacity-75{--bs-border-opacity: .75}.border-opacity-100{--bs-border-opacity: 1}.w-25{width:25%!important}.w-50{width:50%!important}.w-75{width:75%!important}.w-100{width:100%!important}.w-auto{width:auto!important}.mw-100{max-width:100%!important}.vw-100{width:100vw!important}.min-vw-100{min-width:100vw!important}.h-25{height:25%!important}.h-50{height:50%!important}.h-75{height:75%!important}.h-100{height:100%!important}.h-auto{height:auto!important}.mh-100{max-height:100%!important}.vh-100{height:100vh!important}.min-vh-100{min-height:100vh!important}.flex-fill{flex:1 1 auto!important}.flex-row{flex-direction:row!important}.flex-column{flex-direction:column!important}.flex-row-reverse{flex-direction:row-reverse!important}.flex-column-reverse{flex-direction:column-reverse!important}.flex-grow-0{flex-grow:0!important}.flex-grow-1{flex-grow:1!important}.flex-shrink-0{flex-shrink:0!important}.flex-shrink-1{flex-shrink:1!important}.flex-wrap{flex-wrap:wrap!important}.flex-nowrap{flex-wrap:nowrap!important}.flex-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-start{justify-content:flex-start!important}.justify-content-end{justify-content:flex-end!important}.justify-content-center{justify-content:center!important}.justify-content-between{justify-content:space-between!important}.justify-content-around{justify-content:space-around!important}.justify-content-evenly{justify-content:space-evenly!important}.align-items-start{align-items:flex-start!important}.align-items-end{align-items:flex-end!important}.align-items-center{align-items:center!important}.align-items-baseline{align-items:baseline!important}.align-items-stretch{align-items:stretch!important}.align-content-start{align-content:flex-start!important}.align-content-end{align-content:flex-end!important}.align-content-center{align-content:center!important}.align-content-between{align-content:space-between!important}.align-content-around{align-content:space-around!important}.align-content-stretch{align-content:stretch!important}.align-self-auto{align-self:auto!important}.align-self-start{align-self:flex-start!important}.align-self-end{align-self:flex-end!important}.align-self-center{align-self:center!important}.align-self-baseline{align-self:baseline!important}.align-self-stretch{align-self:stretch!important}.order-first{order:-1!important}.order-0{order:0!important}.order-1{order:1!important}.order-2{order:2!important}.order-3{order:3!important}.order-4{order:4!important}.order-5{order:5!important}.order-last{order:6!important}.m-0{margin:0!important}.m-1{margin:.25rem!important}.m-2{margin:.5rem!important}.m-3{margin:1rem!important}.m-4{margin:1.5rem!important}.m-5{margin:3rem!important}.m-auto{margin:auto!important}.mx-0{margin-right:0!important;margin-left:0!important}.mx-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-3{margin-right:1rem!important;margin-left:1rem!important}.mx-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-5{margin-right:3rem!important;margin-left:3rem!important}.mx-auto{margin-right:auto!important;margin-left:auto!important}.my-0{margin-top:0!important;margin-bottom:0!important}.my-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-0{margin-top:0!important}.mt-1{margin-top:.25rem!important}.mt-2{margin-top:.5rem!important}.mt-3{margin-top:1rem!important}.mt-4{margin-top:1.5rem!important}.mt-5{margin-top:3rem!important}.mt-auto{margin-top:auto!important}.me-0{margin-right:0!important}.me-1{margin-right:.25rem!important}.me-2{margin-right:.5rem!important}.me-3{margin-right:1rem!important}.me-4{margin-right:1.5rem!important}.me-5{margin-right:3rem!important}.me-auto{margin-right:auto!important}.mb-0{margin-bottom:0!important}.mb-1{margin-bottom:.25rem!important}.mb-2{margin-bottom:.5rem!important}.mb-3{margin-bottom:1rem!important}.mb-4{margin-bottom:1.5rem!important}.mb-5{margin-bottom:3rem!important}.mb-auto{margin-bottom:auto!important}.ms-0{margin-left:0!important}.ms-1{margin-left:.25rem!important}.ms-2{margin-left:.5rem!important}.ms-3{margin-left:1rem!important}.ms-4{margin-left:1.5rem!important}.ms-5{margin-left:3rem!important}.ms-auto{margin-left:auto!important}.p-0{padding:0!important}.p-1{padding:.25rem!important}.p-2{padding:.5rem!important}.p-3{padding:1rem!important}.p-4{padding:1.5rem!important}.p-5{padding:3rem!important}.px-0{padding-right:0!important;padding-left:0!important}.px-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-3{padding-right:1rem!important;padding-left:1rem!important}.px-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-5{padding-right:3rem!important;padding-left:3rem!important}.py-0{padding-top:0!important;padding-bottom:0!important}.py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-0{padding-top:0!important}.pt-1{padding-top:.25rem!important}.pt-2{padding-top:.5rem!important}.pt-3{padding-top:1rem!important}.pt-4{padding-top:1.5rem!important}.pt-5{padding-top:3rem!important}.pe-0{padding-right:0!important}.pe-1{padding-right:.25rem!important}.pe-2{padding-right:.5rem!important}.pe-3{padding-right:1rem!important}.pe-4{padding-right:1.5rem!important}.pe-5{padding-right:3rem!important}.pb-0{padding-bottom:0!important}.pb-1{padding-bottom:.25rem!important}.pb-2{padding-bottom:.5rem!important}.pb-3{padding-bottom:1rem!important}.pb-4{padding-bottom:1.5rem!important}.pb-5{padding-bottom:3rem!important}.ps-0{padding-left:0!important}.ps-1{padding-left:.25rem!important}.ps-2{padding-left:.5rem!important}.ps-3{padding-left:1rem!important}.ps-4{padding-left:1.5rem!important}.ps-5{padding-left:3rem!important}.gap-0{gap:0!important}.gap-1{gap:.25rem!important}.gap-2{gap:.5rem!important}.gap-3{gap:1rem!important}.gap-4{gap:1.5rem!important}.gap-5{gap:3rem!important}.font-monospace{font-family:var(--bs-font-monospace)!important}.fs-1{font-size:calc(1.375rem + 1.5vw)!important}.fs-2{font-size:calc(1.325rem + .9vw)!important}.fs-3{font-size:calc(1.3rem + .6vw)!important}.fs-4{font-size:calc(1.275rem + .3vw)!important}.fs-5{font-size:1.25rem!important}.fs-6{font-size:1rem!important}.fst-italic{font-style:italic!important}.fst-normal{font-style:normal!important}.fw-light{font-weight:300!important}.fw-lighter{font-weight:lighter!important}.fw-normal{font-weight:400!important}.fw-bold{font-weight:700!important}.fw-semibold{font-weight:600!important}.fw-bolder{font-weight:bolder!important}.lh-1{line-height:1!important}.lh-sm{line-height:1.25!important}.lh-base{line-height:1.5!important}.lh-lg{line-height:2!important}.text-start{text-align:left!important}.text-end{text-align:right!important}.text-center{text-align:center!important}.text-decoration-none{text-decoration:none!important}.text-decoration-underline{text-decoration:underline!important}.text-decoration-line-through{text-decoration:line-through!important}.text-lowercase{text-transform:lowercase!important}.text-uppercase{text-transform:uppercase!important}.text-capitalize{text-transform:capitalize!important}.text-wrap{white-space:normal!important}.text-nowrap{white-space:nowrap!important}.text-break{word-wrap:break-word!important;word-break:break-word!important}.text-primary{--bs-text-opacity: 1;color:rgba(var(--bs-primary-rgb),var(--bs-text-opacity))!important}.text-secondary{--bs-text-opacity: 1;color:rgba(var(--bs-secondary-rgb),var(--bs-text-opacity))!important}.text-success{--bs-text-opacity: 1;color:rgba(var(--bs-success-rgb),var(--bs-text-opacity))!important}.text-info{--bs-text-opacity: 1;color:rgba(var(--bs-info-rgb),var(--bs-text-opacity))!important}.text-warning{--bs-text-opacity: 1;color:rgba(var(--bs-warning-rgb),var(--bs-text-opacity))!important}.text-danger{--bs-text-opacity: 1;color:rgba(var(--bs-danger-rgb),var(--bs-text-opacity))!important}.text-light{--bs-text-opacity: 1;color:rgba(var(--bs-light-rgb),var(--bs-text-opacity))!important}.text-dark{--bs-text-opacity: 1;color:rgba(var(--bs-dark-rgb),var(--bs-text-opacity))!important}.text-black{--bs-text-opacity: 1;color:rgba(var(--bs-black-rgb),var(--bs-text-opacity))!important}.text-white{--bs-text-opacity: 1;color:rgba(var(--bs-white-rgb),var(--bs-text-opacity))!important}.text-body{--bs-text-opacity: 1;color:rgba(var(--bs-body-color-rgb),var(--bs-text-opacity))!important}.text-muted{--bs-text-opacity: 1;color:#6c757d!important}.text-black-50{--bs-text-opacity: 1;color:#00000080!important}.text-white-50{--bs-text-opacity: 1;color:#ffffff80!important}.text-reset{--bs-text-opacity: 1;color:inherit!important}.text-opacity-25{--bs-text-opacity: .25}.text-opacity-50{--bs-text-opacity: .5}.text-opacity-75{--bs-text-opacity: .75}.text-opacity-100{--bs-text-opacity: 1}.bg-primary{--bs-bg-opacity: 1;background-color:rgba(var(--bs-primary-rgb),var(--bs-bg-opacity))!important}.bg-secondary{--bs-bg-opacity: 1;background-color:rgba(var(--bs-secondary-rgb),var(--bs-bg-opacity))!important}.bg-success{--bs-bg-opacity: 1;background-color:rgba(var(--bs-success-rgb),var(--bs-bg-opacity))!important}.bg-info{--bs-bg-opacity: 1;background-color:rgba(var(--bs-info-rgb),var(--bs-bg-opacity))!important}.bg-warning{--bs-bg-opacity: 1;background-color:rgba(var(--bs-warning-rgb),var(--bs-bg-opacity))!important}.bg-danger{--bs-bg-opacity: 1;background-color:rgba(var(--bs-danger-rgb),var(--bs-bg-opacity))!important}.bg-light{--bs-bg-opacity: 1;background-color:rgba(var(--bs-light-rgb),var(--bs-bg-opacity))!important}.bg-dark{--bs-bg-opacity: 1;background-color:rgba(var(--bs-dark-rgb),var(--bs-bg-opacity))!important}.bg-black{--bs-bg-opacity: 1;background-color:rgba(var(--bs-black-rgb),var(--bs-bg-opacity))!important}.bg-white{--bs-bg-opacity: 1;background-color:rgba(var(--bs-white-rgb),var(--bs-bg-opacity))!important}.bg-body{--bs-bg-opacity: 1;background-color:rgba(var(--bs-body-bg-rgb),var(--bs-bg-opacity))!important}.bg-transparent{--bs-bg-opacity: 1;background-color:transparent!important}.bg-opacity-10{--bs-bg-opacity: .1}.bg-opacity-25{--bs-bg-opacity: .25}.bg-opacity-50{--bs-bg-opacity: .5}.bg-opacity-75{--bs-bg-opacity: .75}.bg-opacity-100{--bs-bg-opacity: 1}.bg-gradient{background-image:var(--bs-gradient)!important}.user-select-all{-webkit-user-select:all!important;user-select:all!important}.user-select-auto{-webkit-user-select:auto!important;user-select:auto!important}.user-select-none{-webkit-user-select:none!important;user-select:none!important}.pe-none{pointer-events:none!important}.pe-auto{pointer-events:auto!important}.rounded{border-radius:var(--bs-border-radius)!important}.rounded-0{border-radius:0!important}.rounded-1{border-radius:var(--bs-border-radius-sm)!important}.rounded-2{border-radius:var(--bs-border-radius)!important}.rounded-3{border-radius:var(--bs-border-radius-lg)!important}.rounded-4{border-radius:var(--bs-border-radius-xl)!important}.rounded-5{border-radius:var(--bs-border-radius-2xl)!important}.rounded-circle{border-radius:50%!important}.rounded-pill{border-radius:var(--bs-border-radius-pill)!important}.rounded-top{border-top-left-radius:var(--bs-border-radius)!important;border-top-right-radius:var(--bs-border-radius)!important}.rounded-end{border-top-right-radius:var(--bs-border-radius)!important;border-bottom-right-radius:var(--bs-border-radius)!important}.rounded-bottom{border-bottom-right-radius:var(--bs-border-radius)!important;border-bottom-left-radius:var(--bs-border-radius)!important}.rounded-start{border-bottom-left-radius:var(--bs-border-radius)!important;border-top-left-radius:var(--bs-border-radius)!important}.visible{visibility:visible!important}.invisible{visibility:hidden!important}@media (min-width: 576px){.float-sm-start{float:left!important}.float-sm-end{float:right!important}.float-sm-none{float:none!important}.d-sm-inline{display:inline!important}.d-sm-inline-block{display:inline-block!important}.d-sm-block{display:block!important}.d-sm-grid{display:grid!important}.d-sm-table{display:table!important}.d-sm-table-row{display:table-row!important}.d-sm-table-cell{display:table-cell!important}.d-sm-flex{display:flex!important}.d-sm-inline-flex{display:inline-flex!important}.d-sm-none{display:none!important}.flex-sm-fill{flex:1 1 auto!important}.flex-sm-row{flex-direction:row!important}.flex-sm-column{flex-direction:column!important}.flex-sm-row-reverse{flex-direction:row-reverse!important}.flex-sm-column-reverse{flex-direction:column-reverse!important}.flex-sm-grow-0{flex-grow:0!important}.flex-sm-grow-1{flex-grow:1!important}.flex-sm-shrink-0{flex-shrink:0!important}.flex-sm-shrink-1{flex-shrink:1!important}.flex-sm-wrap{flex-wrap:wrap!important}.flex-sm-nowrap{flex-wrap:nowrap!important}.flex-sm-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-sm-start{justify-content:flex-start!important}.justify-content-sm-end{justify-content:flex-end!important}.justify-content-sm-center{justify-content:center!important}.justify-content-sm-between{justify-content:space-between!important}.justify-content-sm-around{justify-content:space-around!important}.justify-content-sm-evenly{justify-content:space-evenly!important}.align-items-sm-start{align-items:flex-start!important}.align-items-sm-end{align-items:flex-end!important}.align-items-sm-center{align-items:center!important}.align-items-sm-baseline{align-items:baseline!important}.align-items-sm-stretch{align-items:stretch!important}.align-content-sm-start{align-content:flex-start!important}.align-content-sm-end{align-content:flex-end!important}.align-content-sm-center{align-content:center!important}.align-content-sm-between{align-content:space-between!important}.align-content-sm-around{align-content:space-around!important}.align-content-sm-stretch{align-content:stretch!important}.align-self-sm-auto{align-self:auto!important}.align-self-sm-start{align-self:flex-start!important}.align-self-sm-end{align-self:flex-end!important}.align-self-sm-center{align-self:center!important}.align-self-sm-baseline{align-self:baseline!important}.align-self-sm-stretch{align-self:stretch!important}.order-sm-first{order:-1!important}.order-sm-0{order:0!important}.order-sm-1{order:1!important}.order-sm-2{order:2!important}.order-sm-3{order:3!important}.order-sm-4{order:4!important}.order-sm-5{order:5!important}.order-sm-last{order:6!important}.m-sm-0{margin:0!important}.m-sm-1{margin:.25rem!important}.m-sm-2{margin:.5rem!important}.m-sm-3{margin:1rem!important}.m-sm-4{margin:1.5rem!important}.m-sm-5{margin:3rem!important}.m-sm-auto{margin:auto!important}.mx-sm-0{margin-right:0!important;margin-left:0!important}.mx-sm-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-sm-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-sm-3{margin-right:1rem!important;margin-left:1rem!important}.mx-sm-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-sm-5{margin-right:3rem!important;margin-left:3rem!important}.mx-sm-auto{margin-right:auto!important;margin-left:auto!important}.my-sm-0{margin-top:0!important;margin-bottom:0!important}.my-sm-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-sm-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-sm-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-sm-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-sm-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-sm-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-sm-0{margin-top:0!important}.mt-sm-1{margin-top:.25rem!important}.mt-sm-2{margin-top:.5rem!important}.mt-sm-3{margin-top:1rem!important}.mt-sm-4{margin-top:1.5rem!important}.mt-sm-5{margin-top:3rem!important}.mt-sm-auto{margin-top:auto!important}.me-sm-0{margin-right:0!important}.me-sm-1{margin-right:.25rem!important}.me-sm-2{margin-right:.5rem!important}.me-sm-3{margin-right:1rem!important}.me-sm-4{margin-right:1.5rem!important}.me-sm-5{margin-right:3rem!important}.me-sm-auto{margin-right:auto!important}.mb-sm-0{margin-bottom:0!important}.mb-sm-1{margin-bottom:.25rem!important}.mb-sm-2{margin-bottom:.5rem!important}.mb-sm-3{margin-bottom:1rem!important}.mb-sm-4{margin-bottom:1.5rem!important}.mb-sm-5{margin-bottom:3rem!important}.mb-sm-auto{margin-bottom:auto!important}.ms-sm-0{margin-left:0!important}.ms-sm-1{margin-left:.25rem!important}.ms-sm-2{margin-left:.5rem!important}.ms-sm-3{margin-left:1rem!important}.ms-sm-4{margin-left:1.5rem!important}.ms-sm-5{margin-left:3rem!important}.ms-sm-auto{margin-left:auto!important}.p-sm-0{padding:0!important}.p-sm-1{padding:.25rem!important}.p-sm-2{padding:.5rem!important}.p-sm-3{padding:1rem!important}.p-sm-4{padding:1.5rem!important}.p-sm-5{padding:3rem!important}.px-sm-0{padding-right:0!important;padding-left:0!important}.px-sm-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-sm-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-sm-3{padding-right:1rem!important;padding-left:1rem!important}.px-sm-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-sm-5{padding-right:3rem!important;padding-left:3rem!important}.py-sm-0{padding-top:0!important;padding-bottom:0!important}.py-sm-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-sm-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-sm-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-sm-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-sm-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-sm-0{padding-top:0!important}.pt-sm-1{padding-top:.25rem!important}.pt-sm-2{padding-top:.5rem!important}.pt-sm-3{padding-top:1rem!important}.pt-sm-4{padding-top:1.5rem!important}.pt-sm-5{padding-top:3rem!important}.pe-sm-0{padding-right:0!important}.pe-sm-1{padding-right:.25rem!important}.pe-sm-2{padding-right:.5rem!important}.pe-sm-3{padding-right:1rem!important}.pe-sm-4{padding-right:1.5rem!important}.pe-sm-5{padding-right:3rem!important}.pb-sm-0{padding-bottom:0!important}.pb-sm-1{padding-bottom:.25rem!important}.pb-sm-2{padding-bottom:.5rem!important}.pb-sm-3{padding-bottom:1rem!important}.pb-sm-4{padding-bottom:1.5rem!important}.pb-sm-5{padding-bottom:3rem!important}.ps-sm-0{padding-left:0!important}.ps-sm-1{padding-left:.25rem!important}.ps-sm-2{padding-left:.5rem!important}.ps-sm-3{padding-left:1rem!important}.ps-sm-4{padding-left:1.5rem!important}.ps-sm-5{padding-left:3rem!important}.gap-sm-0{gap:0!important}.gap-sm-1{gap:.25rem!important}.gap-sm-2{gap:.5rem!important}.gap-sm-3{gap:1rem!important}.gap-sm-4{gap:1.5rem!important}.gap-sm-5{gap:3rem!important}.text-sm-start{text-align:left!important}.text-sm-end{text-align:right!important}.text-sm-center{text-align:center!important}}@media (min-width: 768px){.float-md-start{float:left!important}.float-md-end{float:right!important}.float-md-none{float:none!important}.d-md-inline{display:inline!important}.d-md-inline-block{display:inline-block!important}.d-md-block{display:block!important}.d-md-grid{display:grid!important}.d-md-table{display:table!important}.d-md-table-row{display:table-row!important}.d-md-table-cell{display:table-cell!important}.d-md-flex{display:flex!important}.d-md-inline-flex{display:inline-flex!important}.d-md-none{display:none!important}.flex-md-fill{flex:1 1 auto!important}.flex-md-row{flex-direction:row!important}.flex-md-column{flex-direction:column!important}.flex-md-row-reverse{flex-direction:row-reverse!important}.flex-md-column-reverse{flex-direction:column-reverse!important}.flex-md-grow-0{flex-grow:0!important}.flex-md-grow-1{flex-grow:1!important}.flex-md-shrink-0{flex-shrink:0!important}.flex-md-shrink-1{flex-shrink:1!important}.flex-md-wrap{flex-wrap:wrap!important}.flex-md-nowrap{flex-wrap:nowrap!important}.flex-md-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-md-start{justify-content:flex-start!important}.justify-content-md-end{justify-content:flex-end!important}.justify-content-md-center{justify-content:center!important}.justify-content-md-between{justify-content:space-between!important}.justify-content-md-around{justify-content:space-around!important}.justify-content-md-evenly{justify-content:space-evenly!important}.align-items-md-start{align-items:flex-start!important}.align-items-md-end{align-items:flex-end!important}.align-items-md-center{align-items:center!important}.align-items-md-baseline{align-items:baseline!important}.align-items-md-stretch{align-items:stretch!important}.align-content-md-start{align-content:flex-start!important}.align-content-md-end{align-content:flex-end!important}.align-content-md-center{align-content:center!important}.align-content-md-between{align-content:space-between!important}.align-content-md-around{align-content:space-around!important}.align-content-md-stretch{align-content:stretch!important}.align-self-md-auto{align-self:auto!important}.align-self-md-start{align-self:flex-start!important}.align-self-md-end{align-self:flex-end!important}.align-self-md-center{align-self:center!important}.align-self-md-baseline{align-self:baseline!important}.align-self-md-stretch{align-self:stretch!important}.order-md-first{order:-1!important}.order-md-0{order:0!important}.order-md-1{order:1!important}.order-md-2{order:2!important}.order-md-3{order:3!important}.order-md-4{order:4!important}.order-md-5{order:5!important}.order-md-last{order:6!important}.m-md-0{margin:0!important}.m-md-1{margin:.25rem!important}.m-md-2{margin:.5rem!important}.m-md-3{margin:1rem!important}.m-md-4{margin:1.5rem!important}.m-md-5{margin:3rem!important}.m-md-auto{margin:auto!important}.mx-md-0{margin-right:0!important;margin-left:0!important}.mx-md-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-md-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-md-3{margin-right:1rem!important;margin-left:1rem!important}.mx-md-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-md-5{margin-right:3rem!important;margin-left:3rem!important}.mx-md-auto{margin-right:auto!important;margin-left:auto!important}.my-md-0{margin-top:0!important;margin-bottom:0!important}.my-md-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-md-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-md-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-md-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-md-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-md-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-md-0{margin-top:0!important}.mt-md-1{margin-top:.25rem!important}.mt-md-2{margin-top:.5rem!important}.mt-md-3{margin-top:1rem!important}.mt-md-4{margin-top:1.5rem!important}.mt-md-5{margin-top:3rem!important}.mt-md-auto{margin-top:auto!important}.me-md-0{margin-right:0!important}.me-md-1{margin-right:.25rem!important}.me-md-2{margin-right:.5rem!important}.me-md-3{margin-right:1rem!important}.me-md-4{margin-right:1.5rem!important}.me-md-5{margin-right:3rem!important}.me-md-auto{margin-right:auto!important}.mb-md-0{margin-bottom:0!important}.mb-md-1{margin-bottom:.25rem!important}.mb-md-2{margin-bottom:.5rem!important}.mb-md-3{margin-bottom:1rem!important}.mb-md-4{margin-bottom:1.5rem!important}.mb-md-5{margin-bottom:3rem!important}.mb-md-auto{margin-bottom:auto!important}.ms-md-0{margin-left:0!important}.ms-md-1{margin-left:.25rem!important}.ms-md-2{margin-left:.5rem!important}.ms-md-3{margin-left:1rem!important}.ms-md-4{margin-left:1.5rem!important}.ms-md-5{margin-left:3rem!important}.ms-md-auto{margin-left:auto!important}.p-md-0{padding:0!important}.p-md-1{padding:.25rem!important}.p-md-2{padding:.5rem!important}.p-md-3{padding:1rem!important}.p-md-4{padding:1.5rem!important}.p-md-5{padding:3rem!important}.px-md-0{padding-right:0!important;padding-left:0!important}.px-md-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-md-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-md-3{padding-right:1rem!important;padding-left:1rem!important}.px-md-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-md-5{padding-right:3rem!important;padding-left:3rem!important}.py-md-0{padding-top:0!important;padding-bottom:0!important}.py-md-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-md-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-md-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-md-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-md-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-md-0{padding-top:0!important}.pt-md-1{padding-top:.25rem!important}.pt-md-2{padding-top:.5rem!important}.pt-md-3{padding-top:1rem!important}.pt-md-4{padding-top:1.5rem!important}.pt-md-5{padding-top:3rem!important}.pe-md-0{padding-right:0!important}.pe-md-1{padding-right:.25rem!important}.pe-md-2{padding-right:.5rem!important}.pe-md-3{padding-right:1rem!important}.pe-md-4{padding-right:1.5rem!important}.pe-md-5{padding-right:3rem!important}.pb-md-0{padding-bottom:0!important}.pb-md-1{padding-bottom:.25rem!important}.pb-md-2{padding-bottom:.5rem!important}.pb-md-3{padding-bottom:1rem!important}.pb-md-4{padding-bottom:1.5rem!important}.pb-md-5{padding-bottom:3rem!important}.ps-md-0{padding-left:0!important}.ps-md-1{padding-left:.25rem!important}.ps-md-2{padding-left:.5rem!important}.ps-md-3{padding-left:1rem!important}.ps-md-4{padding-left:1.5rem!important}.ps-md-5{padding-left:3rem!important}.gap-md-0{gap:0!important}.gap-md-1{gap:.25rem!important}.gap-md-2{gap:.5rem!important}.gap-md-3{gap:1rem!important}.gap-md-4{gap:1.5rem!important}.gap-md-5{gap:3rem!important}.text-md-start{text-align:left!important}.text-md-end{text-align:right!important}.text-md-center{text-align:center!important}}@media (min-width: 992px){.float-lg-start{float:left!important}.float-lg-end{float:right!important}.float-lg-none{float:none!important}.d-lg-inline{display:inline!important}.d-lg-inline-block{display:inline-block!important}.d-lg-block{display:block!important}.d-lg-grid{display:grid!important}.d-lg-table{display:table!important}.d-lg-table-row{display:table-row!important}.d-lg-table-cell{display:table-cell!important}.d-lg-flex{display:flex!important}.d-lg-inline-flex{display:inline-flex!important}.d-lg-none{display:none!important}.flex-lg-fill{flex:1 1 auto!important}.flex-lg-row{flex-direction:row!important}.flex-lg-column{flex-direction:column!important}.flex-lg-row-reverse{flex-direction:row-reverse!important}.flex-lg-column-reverse{flex-direction:column-reverse!important}.flex-lg-grow-0{flex-grow:0!important}.flex-lg-grow-1{flex-grow:1!important}.flex-lg-shrink-0{flex-shrink:0!important}.flex-lg-shrink-1{flex-shrink:1!important}.flex-lg-wrap{flex-wrap:wrap!important}.flex-lg-nowrap{flex-wrap:nowrap!important}.flex-lg-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-lg-start{justify-content:flex-start!important}.justify-content-lg-end{justify-content:flex-end!important}.justify-content-lg-center{justify-content:center!important}.justify-content-lg-between{justify-content:space-between!important}.justify-content-lg-around{justify-content:space-around!important}.justify-content-lg-evenly{justify-content:space-evenly!important}.align-items-lg-start{align-items:flex-start!important}.align-items-lg-end{align-items:flex-end!important}.align-items-lg-center{align-items:center!important}.align-items-lg-baseline{align-items:baseline!important}.align-items-lg-stretch{align-items:stretch!important}.align-content-lg-start{align-content:flex-start!important}.align-content-lg-end{align-content:flex-end!important}.align-content-lg-center{align-content:center!important}.align-content-lg-between{align-content:space-between!important}.align-content-lg-around{align-content:space-around!important}.align-content-lg-stretch{align-content:stretch!important}.align-self-lg-auto{align-self:auto!important}.align-self-lg-start{align-self:flex-start!important}.align-self-lg-end{align-self:flex-end!important}.align-self-lg-center{align-self:center!important}.align-self-lg-baseline{align-self:baseline!important}.align-self-lg-stretch{align-self:stretch!important}.order-lg-first{order:-1!important}.order-lg-0{order:0!important}.order-lg-1{order:1!important}.order-lg-2{order:2!important}.order-lg-3{order:3!important}.order-lg-4{order:4!important}.order-lg-5{order:5!important}.order-lg-last{order:6!important}.m-lg-0{margin:0!important}.m-lg-1{margin:.25rem!important}.m-lg-2{margin:.5rem!important}.m-lg-3{margin:1rem!important}.m-lg-4{margin:1.5rem!important}.m-lg-5{margin:3rem!important}.m-lg-auto{margin:auto!important}.mx-lg-0{margin-right:0!important;margin-left:0!important}.mx-lg-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-lg-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-lg-3{margin-right:1rem!important;margin-left:1rem!important}.mx-lg-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-lg-5{margin-right:3rem!important;margin-left:3rem!important}.mx-lg-auto{margin-right:auto!important;margin-left:auto!important}.my-lg-0{margin-top:0!important;margin-bottom:0!important}.my-lg-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-lg-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-lg-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-lg-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-lg-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-lg-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-lg-0{margin-top:0!important}.mt-lg-1{margin-top:.25rem!important}.mt-lg-2{margin-top:.5rem!important}.mt-lg-3{margin-top:1rem!important}.mt-lg-4{margin-top:1.5rem!important}.mt-lg-5{margin-top:3rem!important}.mt-lg-auto{margin-top:auto!important}.me-lg-0{margin-right:0!important}.me-lg-1{margin-right:.25rem!important}.me-lg-2{margin-right:.5rem!important}.me-lg-3{margin-right:1rem!important}.me-lg-4{margin-right:1.5rem!important}.me-lg-5{margin-right:3rem!important}.me-lg-auto{margin-right:auto!important}.mb-lg-0{margin-bottom:0!important}.mb-lg-1{margin-bottom:.25rem!important}.mb-lg-2{margin-bottom:.5rem!important}.mb-lg-3{margin-bottom:1rem!important}.mb-lg-4{margin-bottom:1.5rem!important}.mb-lg-5{margin-bottom:3rem!important}.mb-lg-auto{margin-bottom:auto!important}.ms-lg-0{margin-left:0!important}.ms-lg-1{margin-left:.25rem!important}.ms-lg-2{margin-left:.5rem!important}.ms-lg-3{margin-left:1rem!important}.ms-lg-4{margin-left:1.5rem!important}.ms-lg-5{margin-left:3rem!important}.ms-lg-auto{margin-left:auto!important}.p-lg-0{padding:0!important}.p-lg-1{padding:.25rem!important}.p-lg-2{padding:.5rem!important}.p-lg-3{padding:1rem!important}.p-lg-4{padding:1.5rem!important}.p-lg-5{padding:3rem!important}.px-lg-0{padding-right:0!important;padding-left:0!important}.px-lg-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-lg-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-lg-3{padding-right:1rem!important;padding-left:1rem!important}.px-lg-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-lg-5{padding-right:3rem!important;padding-left:3rem!important}.py-lg-0{padding-top:0!important;padding-bottom:0!important}.py-lg-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-lg-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-lg-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-lg-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-lg-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-lg-0{padding-top:0!important}.pt-lg-1{padding-top:.25rem!important}.pt-lg-2{padding-top:.5rem!important}.pt-lg-3{padding-top:1rem!important}.pt-lg-4{padding-top:1.5rem!important}.pt-lg-5{padding-top:3rem!important}.pe-lg-0{padding-right:0!important}.pe-lg-1{padding-right:.25rem!important}.pe-lg-2{padding-right:.5rem!important}.pe-lg-3{padding-right:1rem!important}.pe-lg-4{padding-right:1.5rem!important}.pe-lg-5{padding-right:3rem!important}.pb-lg-0{padding-bottom:0!important}.pb-lg-1{padding-bottom:.25rem!important}.pb-lg-2{padding-bottom:.5rem!important}.pb-lg-3{padding-bottom:1rem!important}.pb-lg-4{padding-bottom:1.5rem!important}.pb-lg-5{padding-bottom:3rem!important}.ps-lg-0{padding-left:0!important}.ps-lg-1{padding-left:.25rem!important}.ps-lg-2{padding-left:.5rem!important}.ps-lg-3{padding-left:1rem!important}.ps-lg-4{padding-left:1.5rem!important}.ps-lg-5{padding-left:3rem!important}.gap-lg-0{gap:0!important}.gap-lg-1{gap:.25rem!important}.gap-lg-2{gap:.5rem!important}.gap-lg-3{gap:1rem!important}.gap-lg-4{gap:1.5rem!important}.gap-lg-5{gap:3rem!important}.text-lg-start{text-align:left!important}.text-lg-end{text-align:right!important}.text-lg-center{text-align:center!important}}@media (min-width: 1200px){.float-xl-start{float:left!important}.float-xl-end{float:right!important}.float-xl-none{float:none!important}.d-xl-inline{display:inline!important}.d-xl-inline-block{display:inline-block!important}.d-xl-block{display:block!important}.d-xl-grid{display:grid!important}.d-xl-table{display:table!important}.d-xl-table-row{display:table-row!important}.d-xl-table-cell{display:table-cell!important}.d-xl-flex{display:flex!important}.d-xl-inline-flex{display:inline-flex!important}.d-xl-none{display:none!important}.flex-xl-fill{flex:1 1 auto!important}.flex-xl-row{flex-direction:row!important}.flex-xl-column{flex-direction:column!important}.flex-xl-row-reverse{flex-direction:row-reverse!important}.flex-xl-column-reverse{flex-direction:column-reverse!important}.flex-xl-grow-0{flex-grow:0!important}.flex-xl-grow-1{flex-grow:1!important}.flex-xl-shrink-0{flex-shrink:0!important}.flex-xl-shrink-1{flex-shrink:1!important}.flex-xl-wrap{flex-wrap:wrap!important}.flex-xl-nowrap{flex-wrap:nowrap!important}.flex-xl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-xl-start{justify-content:flex-start!important}.justify-content-xl-end{justify-content:flex-end!important}.justify-content-xl-center{justify-content:center!important}.justify-content-xl-between{justify-content:space-between!important}.justify-content-xl-around{justify-content:space-around!important}.justify-content-xl-evenly{justify-content:space-evenly!important}.align-items-xl-start{align-items:flex-start!important}.align-items-xl-end{align-items:flex-end!important}.align-items-xl-center{align-items:center!important}.align-items-xl-baseline{align-items:baseline!important}.align-items-xl-stretch{align-items:stretch!important}.align-content-xl-start{align-content:flex-start!important}.align-content-xl-end{align-content:flex-end!important}.align-content-xl-center{align-content:center!important}.align-content-xl-between{align-content:space-between!important}.align-content-xl-around{align-content:space-around!important}.align-content-xl-stretch{align-content:stretch!important}.align-self-xl-auto{align-self:auto!important}.align-self-xl-start{align-self:flex-start!important}.align-self-xl-end{align-self:flex-end!important}.align-self-xl-center{align-self:center!important}.align-self-xl-baseline{align-self:baseline!important}.align-self-xl-stretch{align-self:stretch!important}.order-xl-first{order:-1!important}.order-xl-0{order:0!important}.order-xl-1{order:1!important}.order-xl-2{order:2!important}.order-xl-3{order:3!important}.order-xl-4{order:4!important}.order-xl-5{order:5!important}.order-xl-last{order:6!important}.m-xl-0{margin:0!important}.m-xl-1{margin:.25rem!important}.m-xl-2{margin:.5rem!important}.m-xl-3{margin:1rem!important}.m-xl-4{margin:1.5rem!important}.m-xl-5{margin:3rem!important}.m-xl-auto{margin:auto!important}.mx-xl-0{margin-right:0!important;margin-left:0!important}.mx-xl-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-xl-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-xl-3{margin-right:1rem!important;margin-left:1rem!important}.mx-xl-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-xl-5{margin-right:3rem!important;margin-left:3rem!important}.mx-xl-auto{margin-right:auto!important;margin-left:auto!important}.my-xl-0{margin-top:0!important;margin-bottom:0!important}.my-xl-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-xl-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-xl-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-xl-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-xl-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-xl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xl-0{margin-top:0!important}.mt-xl-1{margin-top:.25rem!important}.mt-xl-2{margin-top:.5rem!important}.mt-xl-3{margin-top:1rem!important}.mt-xl-4{margin-top:1.5rem!important}.mt-xl-5{margin-top:3rem!important}.mt-xl-auto{margin-top:auto!important}.me-xl-0{margin-right:0!important}.me-xl-1{margin-right:.25rem!important}.me-xl-2{margin-right:.5rem!important}.me-xl-3{margin-right:1rem!important}.me-xl-4{margin-right:1.5rem!important}.me-xl-5{margin-right:3rem!important}.me-xl-auto{margin-right:auto!important}.mb-xl-0{margin-bottom:0!important}.mb-xl-1{margin-bottom:.25rem!important}.mb-xl-2{margin-bottom:.5rem!important}.mb-xl-3{margin-bottom:1rem!important}.mb-xl-4{margin-bottom:1.5rem!important}.mb-xl-5{margin-bottom:3rem!important}.mb-xl-auto{margin-bottom:auto!important}.ms-xl-0{margin-left:0!important}.ms-xl-1{margin-left:.25rem!important}.ms-xl-2{margin-left:.5rem!important}.ms-xl-3{margin-left:1rem!important}.ms-xl-4{margin-left:1.5rem!important}.ms-xl-5{margin-left:3rem!important}.ms-xl-auto{margin-left:auto!important}.p-xl-0{padding:0!important}.p-xl-1{padding:.25rem!important}.p-xl-2{padding:.5rem!important}.p-xl-3{padding:1rem!important}.p-xl-4{padding:1.5rem!important}.p-xl-5{padding:3rem!important}.px-xl-0{padding-right:0!important;padding-left:0!important}.px-xl-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-xl-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-xl-3{padding-right:1rem!important;padding-left:1rem!important}.px-xl-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-xl-5{padding-right:3rem!important;padding-left:3rem!important}.py-xl-0{padding-top:0!important;padding-bottom:0!important}.py-xl-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-xl-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-xl-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-xl-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-xl-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-xl-0{padding-top:0!important}.pt-xl-1{padding-top:.25rem!important}.pt-xl-2{padding-top:.5rem!important}.pt-xl-3{padding-top:1rem!important}.pt-xl-4{padding-top:1.5rem!important}.pt-xl-5{padding-top:3rem!important}.pe-xl-0{padding-right:0!important}.pe-xl-1{padding-right:.25rem!important}.pe-xl-2{padding-right:.5rem!important}.pe-xl-3{padding-right:1rem!important}.pe-xl-4{padding-right:1.5rem!important}.pe-xl-5{padding-right:3rem!important}.pb-xl-0{padding-bottom:0!important}.pb-xl-1{padding-bottom:.25rem!important}.pb-xl-2{padding-bottom:.5rem!important}.pb-xl-3{padding-bottom:1rem!important}.pb-xl-4{padding-bottom:1.5rem!important}.pb-xl-5{padding-bottom:3rem!important}.ps-xl-0{padding-left:0!important}.ps-xl-1{padding-left:.25rem!important}.ps-xl-2{padding-left:.5rem!important}.ps-xl-3{padding-left:1rem!important}.ps-xl-4{padding-left:1.5rem!important}.ps-xl-5{padding-left:3rem!important}.gap-xl-0{gap:0!important}.gap-xl-1{gap:.25rem!important}.gap-xl-2{gap:.5rem!important}.gap-xl-3{gap:1rem!important}.gap-xl-4{gap:1.5rem!important}.gap-xl-5{gap:3rem!important}.text-xl-start{text-align:left!important}.text-xl-end{text-align:right!important}.text-xl-center{text-align:center!important}}@media (min-width: 1400px){.float-xxl-start{float:left!important}.float-xxl-end{float:right!important}.float-xxl-none{float:none!important}.d-xxl-inline{display:inline!important}.d-xxl-inline-block{display:inline-block!important}.d-xxl-block{display:block!important}.d-xxl-grid{display:grid!important}.d-xxl-table{display:table!important}.d-xxl-table-row{display:table-row!important}.d-xxl-table-cell{display:table-cell!important}.d-xxl-flex{display:flex!important}.d-xxl-inline-flex{display:inline-flex!important}.d-xxl-none{display:none!important}.flex-xxl-fill{flex:1 1 auto!important}.flex-xxl-row{flex-direction:row!important}.flex-xxl-column{flex-direction:column!important}.flex-xxl-row-reverse{flex-direction:row-reverse!important}.flex-xxl-column-reverse{flex-direction:column-reverse!important}.flex-xxl-grow-0{flex-grow:0!important}.flex-xxl-grow-1{flex-grow:1!important}.flex-xxl-shrink-0{flex-shrink:0!important}.flex-xxl-shrink-1{flex-shrink:1!important}.flex-xxl-wrap{flex-wrap:wrap!important}.flex-xxl-nowrap{flex-wrap:nowrap!important}.flex-xxl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-xxl-start{justify-content:flex-start!important}.justify-content-xxl-end{justify-content:flex-end!important}.justify-content-xxl-center{justify-content:center!important}.justify-content-xxl-between{justify-content:space-between!important}.justify-content-xxl-around{justify-content:space-around!important}.justify-content-xxl-evenly{justify-content:space-evenly!important}.align-items-xxl-start{align-items:flex-start!important}.align-items-xxl-end{align-items:flex-end!important}.align-items-xxl-center{align-items:center!important}.align-items-xxl-baseline{align-items:baseline!important}.align-items-xxl-stretch{align-items:stretch!important}.align-content-xxl-start{align-content:flex-start!important}.align-content-xxl-end{align-content:flex-end!important}.align-content-xxl-center{align-content:center!important}.align-content-xxl-between{align-content:space-between!important}.align-content-xxl-around{align-content:space-around!important}.align-content-xxl-stretch{align-content:stretch!important}.align-self-xxl-auto{align-self:auto!important}.align-self-xxl-start{align-self:flex-start!important}.align-self-xxl-end{align-self:flex-end!important}.align-self-xxl-center{align-self:center!important}.align-self-xxl-baseline{align-self:baseline!important}.align-self-xxl-stretch{align-self:stretch!important}.order-xxl-first{order:-1!important}.order-xxl-0{order:0!important}.order-xxl-1{order:1!important}.order-xxl-2{order:2!important}.order-xxl-3{order:3!important}.order-xxl-4{order:4!important}.order-xxl-5{order:5!important}.order-xxl-last{order:6!important}.m-xxl-0{margin:0!important}.m-xxl-1{margin:.25rem!important}.m-xxl-2{margin:.5rem!important}.m-xxl-3{margin:1rem!important}.m-xxl-4{margin:1.5rem!important}.m-xxl-5{margin:3rem!important}.m-xxl-auto{margin:auto!important}.mx-xxl-0{margin-right:0!important;margin-left:0!important}.mx-xxl-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-xxl-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-xxl-3{margin-right:1rem!important;margin-left:1rem!important}.mx-xxl-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-xxl-5{margin-right:3rem!important;margin-left:3rem!important}.mx-xxl-auto{margin-right:auto!important;margin-left:auto!important}.my-xxl-0{margin-top:0!important;margin-bottom:0!important}.my-xxl-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-xxl-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-xxl-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-xxl-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-xxl-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-xxl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xxl-0{margin-top:0!important}.mt-xxl-1{margin-top:.25rem!important}.mt-xxl-2{margin-top:.5rem!important}.mt-xxl-3{margin-top:1rem!important}.mt-xxl-4{margin-top:1.5rem!important}.mt-xxl-5{margin-top:3rem!important}.mt-xxl-auto{margin-top:auto!important}.me-xxl-0{margin-right:0!important}.me-xxl-1{margin-right:.25rem!important}.me-xxl-2{margin-right:.5rem!important}.me-xxl-3{margin-right:1rem!important}.me-xxl-4{margin-right:1.5rem!important}.me-xxl-5{margin-right:3rem!important}.me-xxl-auto{margin-right:auto!important}.mb-xxl-0{margin-bottom:0!important}.mb-xxl-1{margin-bottom:.25rem!important}.mb-xxl-2{margin-bottom:.5rem!important}.mb-xxl-3{margin-bottom:1rem!important}.mb-xxl-4{margin-bottom:1.5rem!important}.mb-xxl-5{margin-bottom:3rem!important}.mb-xxl-auto{margin-bottom:auto!important}.ms-xxl-0{margin-left:0!important}.ms-xxl-1{margin-left:.25rem!important}.ms-xxl-2{margin-left:.5rem!important}.ms-xxl-3{margin-left:1rem!important}.ms-xxl-4{margin-left:1.5rem!important}.ms-xxl-5{margin-left:3rem!important}.ms-xxl-auto{margin-left:auto!important}.p-xxl-0{padding:0!important}.p-xxl-1{padding:.25rem!important}.p-xxl-2{padding:.5rem!important}.p-xxl-3{padding:1rem!important}.p-xxl-4{padding:1.5rem!important}.p-xxl-5{padding:3rem!important}.px-xxl-0{padding-right:0!important;padding-left:0!important}.px-xxl-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-xxl-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-xxl-3{padding-right:1rem!important;padding-left:1rem!important}.px-xxl-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-xxl-5{padding-right:3rem!important;padding-left:3rem!important}.py-xxl-0{padding-top:0!important;padding-bottom:0!important}.py-xxl-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-xxl-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-xxl-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-xxl-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-xxl-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-xxl-0{padding-top:0!important}.pt-xxl-1{padding-top:.25rem!important}.pt-xxl-2{padding-top:.5rem!important}.pt-xxl-3{padding-top:1rem!important}.pt-xxl-4{padding-top:1.5rem!important}.pt-xxl-5{padding-top:3rem!important}.pe-xxl-0{padding-right:0!important}.pe-xxl-1{padding-right:.25rem!important}.pe-xxl-2{padding-right:.5rem!important}.pe-xxl-3{padding-right:1rem!important}.pe-xxl-4{padding-right:1.5rem!important}.pe-xxl-5{padding-right:3rem!important}.pb-xxl-0{padding-bottom:0!important}.pb-xxl-1{padding-bottom:.25rem!important}.pb-xxl-2{padding-bottom:.5rem!important}.pb-xxl-3{padding-bottom:1rem!important}.pb-xxl-4{padding-bottom:1.5rem!important}.pb-xxl-5{padding-bottom:3rem!important}.ps-xxl-0{padding-left:0!important}.ps-xxl-1{padding-left:.25rem!important}.ps-xxl-2{padding-left:.5rem!important}.ps-xxl-3{padding-left:1rem!important}.ps-xxl-4{padding-left:1.5rem!important}.ps-xxl-5{padding-left:3rem!important}.gap-xxl-0{gap:0!important}.gap-xxl-1{gap:.25rem!important}.gap-xxl-2{gap:.5rem!important}.gap-xxl-3{gap:1rem!important}.gap-xxl-4{gap:1.5rem!important}.gap-xxl-5{gap:3rem!important}.text-xxl-start{text-align:left!important}.text-xxl-end{text-align:right!important}.text-xxl-center{text-align:center!important}}@media (min-width: 1200px){.fs-1{font-size:2.5rem!important}.fs-2{font-size:2rem!important}.fs-3{font-size:1.75rem!important}.fs-4{font-size:1.5rem!important}}@media print{.d-print-inline{display:inline!important}.d-print-inline-block{display:inline-block!important}.d-print-block{display:block!important}.d-print-grid{display:grid!important}.d-print-table{display:table!important}.d-print-table-row{display:table-row!important}.d-print-table-cell{display:table-cell!important}.d-print-flex{display:flex!important}.d-print-inline-flex{display:inline-flex!important}.d-print-none{display:none!important}}@media (max-width: 991px){.responsive-table__header{display:none}}@media (max-width: 991px){.responsive-table.table>:not(:first-child){border:none}}@media (max-width: 991px){.responsive-table__row{display:block;border-bottom:1px solid var(--border-color);border-top:2px solid var(--border-color);position:relative}.responsive-table__row:not(:last-child){margin-bottom:10px}}.responsive-table__cell.responsive-table__cell{vertical-align:middle!important}@media (max-width: 991px){.responsive-table__cell.responsive-table__cell{display:block;width:100%;position:relative;padding:.5rem;font-size:.9rem}.responsive-table__cell.responsive-table__cell[data-th]:before{content:attr(data-th) ": ";font-weight:700}.responsive-table__cell.responsive-table__cell:last-child{position:absolute;top:3.5px;right:.5rem;width:auto;padding:0;border:none}}@media (max-width: 991px){.responsive-table__cell.responsive-table__cell .btn-sm,.responsive-table__cell.responsive-table__cell .btn-group-sm>.btn{padding:.1rem .4rem;margin-top:.16rem}}html:not([data-theme=dark]){--color-scheme: initial;--primary-color: #ffffff;--primary-color-alfa: rgba(255, 255, 255, .5);--secondary-color: #f5f6fe;--text-color: #232323;--border-color: rgba(0, 0, 0, .125);--active-color: #eeeeee;--brand-color: #4696e5;--input-color: #ffffff;--input-disabled-color: #f5f6fe;--input-border-color: rgba(0, 0, 0, .19);--input-text-color: #495057;--table-border-color: #dee2e6;--table-highlight-color: rgba(0, 0, 0, .075);--btn-close-filter: initial}html[data-theme=dark]{--color-scheme: dark;--primary-color: #161b22;--primary-color-alfa: rgba(22, 27, 34, .8);--secondary-color: #0f131a;--text-color: rgb(201, 209, 217);--border-color: rgba(255, 255, 255, .15);--active-color: #0f131a;--brand-color: #0b2d4e;--input-color: rgb(17.9928571429, 22.0821428571, 27.8071428571);--input-disabled-color: rgb(26.0071428571, 31.9178571429, 40.1928571429);--input-border-color: rgba(255, 255, 255, .15);--input-text-color: rgb(201, 209, 217);--table-border-color: #393d43;--table-highlight-color: rgba(255, 255, 255, .15);--btn-close-filter: invert(1)}:root{scroll-behavior:auto;color-scheme:var(--color-scheme)}html,body,#root{height:100%;background:var(--secondary-color);color:var(--text-color)}a,.btn-link{text-decoration:none}a:not(.nav-link):not(.navbar-brand):not(.page-link):not(.highlight-card):not(.btn):not(.dropdown-item):hover,.btn-link:hover{text-decoration:underline}.bg-main{background-color:#4696e5!important}.bg-warning{color:#232323}.card-body,.card-header,.list-group-item{background-color:transparent}.card-footer{background-color:var(--primary-color-alfa)}.card.card{box-shadow:0 .125rem .25rem #00000013;background-color:var(--primary-color);border-color:var(--border-color)}.list-group,.modal-content,.page-link,.page-item.disabled .page-link,.dropdown-menu{background-color:var(--primary-color)}.modal-header.modal-header,.modal-footer.modal-footer,.card-header.card-header,.card-footer.card-footer,.table.table thead th,.table.table th,.table.table td,.page-link.page-link,.page-link.page-link:hover,.page-item.page-item.disabled .page-link.page-link,.dropdown-divider.dropdown-divider,.dropdown-menu.dropdown-menu,.list-group-item.list-group-item,.modal-content.modal-content,hr{border-color:var(--border-color)}.table-bordered,.table-bordered thead th,.table-bordered thead td{border-color:var(--table-border-color)}.page-link:hover,.page-link:focus{background-color:var(--secondary-color)}.page-item.active .page-link{background-color:var(--brand-color);border-color:var(--brand-color)}.pagination .page-link{cursor:pointer}@media (min-width: 1200px){.container-xl{max-width:1320px}}@media (max-width: 767px){.container-xl{padding-right:0;padding-left:0}}.btn-block{display:block;width:100%}.btn-primary,.btn-primary:hover,.btn-primary:disabled,.btn-primary:active,.btn-primary:focus-visible,.btn-primary.active,.btn-outline-primary:hover,.btn-outline-primary:active.btn-outline-primary:active,.btn-outline-primary:focus-visible.btn-outline-primary:focus-visible,.btn-outline-primary.active.btn-outline-primary.active{color:#fff}.dropdown-item,.dropdown-item-text{color:var(--text-color)}.dropdown-item:not(:disabled){cursor:pointer}.dropdown-item:focus:not(:disabled),.dropdown-item:hover:not(:disabled),.dropdown-item.active:not(:disabled),.dropdown-item:active:not(:disabled){background-color:var(--active-color)!important;color:var(--text-color)!important}.dropdown-item--danger.dropdown-item--danger{color:#dc3545}.dropdown-item--danger.dropdown-item--danger:hover,.dropdown-item--danger.dropdown-item--danger:active,.dropdown-item--danger.dropdown-item--danger.active{color:#dc3545!important}.badge-main{color:#fff;background-color:var(--brand-color)}.close,.close:hover,.table,.table-hover>tbody>tr:hover>*,.table-hover>tbody>tr>*{color:var(--text-color)}.btn-close{filter:var(--btn-close-filter)}.table-hover tbody tr:hover{background-color:var(--secondary-color)}.form-control.form-control,.form-control.form-control:focus,.form-select.form-select,.form-select.form-select:focus{background-color:var(--primary-color);border-color:var(--input-border-color);color:var(--input-text-color)}.form-control.disabled,.form-control:disabled,.form-select.disabled,.form-select:disabled{background-color:var(--input-disabled-color);cursor:not-allowed}.card .form-control:not(:disabled),.card .form-control:not(:disabled):hover,.card .form-select:not(:disabled),.card .form-select:not(:disabled):hover,.modal .form-control:not(:disabled),.modal .form-control:not(:disabled):hover,.modal .form-select:not(:disabled),.modal .form-select:not(:disabled):hover{background-color:var(--input-color)}.card input[type=text]:not(:disabled),.dropdown input[type=text]:not(:disabled){background-color:var(--input-color)!important}.card input[type=date]:not(:disabled),.dropdown input[type=date]:not(:disabled){background-color:var(--input-color)!important}.card input[type=datetime-local]:not(:disabled),.dropdown input[type=datetime-local]:not(:disabled){background-color:var(--input-color)!important}.card input[type=password]:not(:disabled),.dropdown input[type=password]:not(:disabled){background-color:var(--input-color)!important}.card input[type=number]:not(:disabled),.dropdown input[type=number]:not(:disabled){background-color:var(--input-color)!important}.card input[type=email]:not(:disabled),.dropdown input[type=email]:not(:disabled){background-color:var(--input-color)!important}.card input[type=search]:not(:disabled),.dropdown input[type=search]:not(:disabled){background-color:var(--input-color)!important}.card input[type=url]:not(:disabled),.dropdown input[type=url]:not(:disabled){background-color:var(--input-color)!important}.input-group-text.input-group-text{border-color:var(--input-border-color)}.dropdown label{color:var(--text-color)!important}.table-active,.table-active>th,.table-active>td{background-color:var(--table-highlight-color)!important}@media (max-width: 767px){.navbar-brand{margin:0 auto!important}}.indivisible{white-space:nowrap}.pointer{cursor:pointer}.progress-bar{background-color:#4696e5}@media (max-width: 575px){.btn-xs-block{width:100%;display:block}}@media (max-width: 991px){.btn-md-block{width:100%;display:block}}@media (max-width: 767px){.btn-sm-block{width:100%;display:block}}.search-field{position:relative}.search-field:focus-within{z-index:1}.search-field__input.search-field__input{padding-left:40px;padding-right:40px}.search-field__input--no-border.search-field__input--no-border{border:none;border-radius:0}.search-field__icon{position:absolute;top:50%;transform:translateY(-50%);left:15px;color:#6c757d}.search-field__close{position:absolute;top:50%;transform:translateY(-50%);right:10px;cursor:pointer}.dropdown-btn__toggle.dropdown-btn__toggle{text-align:left}.dropdown-btn__toggle.dropdown-btn__toggle--with-caret{padding-right:1.75rem}.dropdown-btn__toggle.dropdown-btn__toggle,.dropdown-btn__toggle.dropdown-btn__toggle:not(:disabled):not(.disabled).active,.dropdown-btn__toggle.dropdown-btn__toggle:not(:disabled):not(.disabled):active,.dropdown-btn__toggle.dropdown-btn__toggle:not(:disabled):not(.disabled):focus,.dropdown-btn__toggle.dropdown-btn__toggle:not(:disabled):not(.disabled):hover,.show>.dropdown-btn__toggle.dropdown-btn__toggle.dropdown-toggle{color:var(--input-text-color);background-color:var(--primary-color);border-color:var(--input-border-color)}.card .dropdown-btn__toggle.dropdown-btn__toggle,.card .dropdown-btn__toggle.dropdown-btn__toggle:not(:disabled):not(.disabled).active,.card .dropdown-btn__toggle.dropdown-btn__toggle:not(:disabled):not(.disabled):active,.card .dropdown-btn__toggle.dropdown-btn__toggle:not(:disabled):not(.disabled):focus,.card .dropdown-btn__toggle.dropdown-btn__toggle:not(:disabled):not(.disabled):hover,.show>.card .dropdown-btn__toggle.dropdown-btn__toggle.dropdown-toggle{background-color:var(--input-color)}.dropdown-btn__toggle.dropdown-btn__toggle.disabled,.dropdown-btn__toggle.dropdown-btn__toggle:disabled{background-color:var(--input-disabled-color)}.dropdown-btn__toggle.dropdown-btn__toggle:after{position:absolute;top:50%;transform:translateY(-50%);right:.75rem}.nav-pills__nav{position:sticky!important;top:55px;z-index:2}.nav-pills__nav-link.nav-pills__nav-link{border-radius:0!important;padding-bottom:calc(.5rem - 3px)!important;border-bottom:3px solid transparent!important;color:#5d6778;font-weight:700;cursor:pointer;text-decoration:none}@media (min-width: 576px) and (max-width: 991px){.nav-pills__nav-link.nav-pills__nav-link{font-size:89%}}.nav-pills__nav-link:hover{color:#4696e5!important}.nav-pills__nav-link.active{border-color:#4696e5!important;background-color:var(--primary-color)!important;color:#4696e5!important}.ordering-dropdown__menu--link.ordering-dropdown__menu--link{min-width:11rem}.ordering-dropdown__sort-icon{margin:3.5px 0 0;float:right}.highlight-card.highlight-card.highlight-card{text-align:center;border-top:3px solid var(--brand-color);color:inherit;text-decoration:none}.highlight-card__link-icon{position:absolute;right:5px;bottom:5px;opacity:.1;transform:rotate(-45deg)}.highlight-card__title{color:#6c757d}.redirect-rule-modal__condition{border:1px solid var(--border-color)}.redirect-rule-modal__header.redirect-rule-modal__header,.redirect-rule-modal__footer.redirect-rule-modal__footer{background-color:var(--primary-color)}.redirect-rule-modal__remove-condition-button.redirect-rule-modal__remove-condition-button{top:-15px;right:-15px;background-color:var(--primary-color)}.redirect-rule-modal__remove-condition-button-icon{width:14px;line-height:14px}.redirect-rule-modal__conditions-row.redirect-rule-modal__conditions-row{padding-right:.8rem}.create-short-url-result__copy-btn{margin-left:10px;vertical-align:inherit}@media (min-width: 992px){.qr-code-modal__controls{width:16rem}}.short-urls-visits-count__max-visits-control{cursor:help}.short-url-visits-count__amount{transition:transform .3s ease;display:inline-block}.short-url-visits-count__amount--big{transform:scale(1.5)}.short-url-visits-count__tooltip-list-item:not(:last-child){margin-bottom:.5rem}.tag:not(:last-child){margin-right:3px}.tag__close.tag__close{font-size:1.3rem}.short-urls-row__cell.short-urls-row__cell{vertical-align:middle!important}.short-urls-row__cell--break{word-break:break-all}@media (min-width: 992px){.short-urls-row__cell--indivisible{white-space:nowrap}}@media (max-width: 991px){.short-urls-row__short-url-wrapper{word-break:break-all}}@media (min-width: 992px){.short-urls-row__short-url-wrapper{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;vertical-align:bottom;display:inline-block;max-width:18rem}}.short-urls-row__copy-hint{position:absolute;top:50%;transform:translateY(-50%) translate(10px);box-shadow:0 3px 15px #00000040}@media (max-width: 991px){.short-urls-row__copy-hint{position:absolute;top:50%;transform:translateY(-50%) translate(calc(-100% - 20px))}}.domains-dropdown__toggle-btn.domains-dropdown__toggle-btn,.domains-dropdown__toggle-btn.domains-dropdown__toggle-btn:hover,.domains-dropdown__toggle-btn.domains-dropdown__toggle-btn:active{color:#6c757d!important}.domains-dropdown__toggle-btn--active.domains-dropdown__toggle-btn--active,.domains-dropdown__toggle-btn--active.domains-dropdown__toggle-btn--active:hover,.domains-dropdown__toggle-btn--active.domains-dropdown__toggle-btn--active:active{color:var(--input-text-color)!important}.domains-dropdown__back-btn.domains-dropdown__back-btn,.domains-dropdown__back-btn.domains-dropdown__back-btn:hover{border-color:var(--border-color)}.icon-input-container{position:relative}.icon-input-container__input{padding-right:35px!important}.icon-input-container__input:not(:disabled){background-color:var(--primary-color)!important}.icon-input-container__icon{position:absolute;top:50%;transform:translateY(-50%);right:.75rem;cursor:pointer}.use-existing-if-found-info-icon__modal-quote{margin-bottom:0;padding:10px 15px;font-size:17.5px;border-left:5px solid #eeeeee;background-color:#f9f9f9}.short-url-form p:last-child{margin-bottom:0}.short-url-form .card{height:100%}.short-urls-filtering-bar__tags-icon{vertical-align:bottom;font-size:1.6rem}.short-urls-table.short-urls-table{margin-bottom:-1px}.short-urls-table__header-cell--with-action{cursor:pointer}.color-bullet{border-radius:50%;width:20px;height:20px;display:inline-block;vertical-align:-4px;margin-right:5px}.simple-paginator{-webkit-user-select:none;user-select:none}.tags-table__header-cell.tags-table__header-cell{z-index:1;position:relative;top:56px;position:sticky;cursor:pointer}.tags-table__header-cell.tags-table__header-cell:before{content:"";position:absolute;top:-1px;right:0;bottom:-1px;left:0;background:var(--table-border-color);z-index:-2}.tags-table__header-cell.tags-table__header-cell:first-child:before{left:0}.tags-table__header-cell.tags-table__header-cell:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:var(--primary-color);z-index:-1}.tags-table__header-cell.tags-table__header-cell:first-child:after{left:0}.chart-card__footer--sticky{position:sticky;bottom:0}.doughnut-chart-legend{list-style-type:none;padding:0;margin:0}@media (max-width: 767px){.doughnut-chart-legend{margin-top:1rem}}.doughnut-chart-legend__item:not(:first-child){margin-top:.3rem}.doughnut-chart-legend__item-color{width:20px;min-width:20px;height:20px;margin-right:5px;border-radius:10px}.doughnut-chart-legend__item-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media (min-width: 768px){.map-modal__modal.map-modal__modal{width:calc(100% - 40px);max-width:calc(100% - 40px);height:calc(100% - 40px);margin:20px}}@media (max-width: 767px){.map-modal__modal.map-modal__modal{width:calc(100% - 20px);max-width:calc(100% - 20px);height:calc(100% - 20px);margin:10px}}.map-modal__modal-content.map-modal__modal-content{height:100%}.map-modal__modal-title.map-modal__modal-title{position:absolute;width:100%;z-index:1001;padding:.5rem 1rem 1rem;margin:0;color:#fff;background:linear-gradient(#00000080,#0000)}.map-modal__modal-body.map-modal__modal-body{padding:0;display:flex;overflow:hidden}.map-modal__modal.map-modal__modal .leaflet-container.leaflet-container{flex:1 1 auto;border-radius:.3rem}.map-modal__modal.map-modal__modal .leaflet-top.leaflet-top .leaflet-control.leaflet-control{margin-top:60px}.visits-table{background-color:var(--primary-color);overflow-y:hidden}.visits-table__header-cell{cursor:pointer;margin-bottom:55px;z-index:1;position:relative}.visits-table__header-cell:before{content:"";position:absolute;top:-1px;right:-1px;bottom:-1px;left:0;background:var(--table-border-color);z-index:-2}.visits-table__header-cell:first-child:before{left:-1px}.visits-table__header-cell:after{content:"";position:absolute;top:0;right:0;bottom:0;left:1px;background:var(--primary-color);z-index:-1}.visits-table__header-cell:first-child:after{left:0}@media (min-width: 768px){.visits-table__header-cell.visits-table__sticky{top:96px}}.visits-table__header-icon{float:right;margin-top:3px}.visits-table__footer-cell.visits-table__footer-cell{bottom:0;margin-top:34px;z-index:1;position:relative}.visits-table__footer-cell.visits-table__footer-cell:before{content:"";position:absolute;top:-1px;right:-1px;bottom:-1px;left:0;background:var(--table-border-color);z-index:-2}.visits-table__footer-cell.visits-table__footer-cell:first-child:before{left:-1px}.visits-table__footer-cell.visits-table__footer-cell:after{content:"";position:absolute;top:0;right:0;bottom:0;left:1px;background:var(--primary-color);z-index:-1}.visits-table__footer-cell.visits-table__footer-cell:first-child:after{left:0}.visits-table__sticky.visits-table__sticky{position:sticky}.short-url-visits-header__created-at{cursor:default}.aside-menu{width:260px;background-color:var(--primary-color);box-shadow:#0000000d 0 8px 15px;position:fixed!important;padding-top:13px;padding-bottom:10px;top:56px;bottom:0;left:0;display:block;z-index:1010;overflow:hidden auto}@media (min-width: 768px){.aside-menu{padding:30px 15px 15px}}@media (max-width: 767px){.aside-menu{transition:left .3s;top:53px;box-shadow:-10px 0 50px 11px #0000008c}}@media (max-width: 767px){.aside-menu--hidden{left:-295px}}.aside-menu__nav{height:100%}.aside-menu__item{padding:10px 20px;margin:0 -15px;text-decoration:none!important;cursor:pointer}@media (max-width: 767px){.aside-menu__item{margin:0}}.aside-menu__item:hover{background-color:var(--secondary-color)}.aside-menu__item--selected,.aside-menu__item--selected:hover{color:#fff;background-color:var(--brand-color)}.aside-menu__item-text{margin-left:8px}.shlink-layout__swipeable,.shlink-layout__swipeable-inner{height:100%}.shlink-layout__burger-icon{display:none;transition:color .3s;position:fixed;top:18px;z-index:1035;font-size:1.5rem;cursor:pointer;color:#ffffff80}@media (max-width: 767px){.shlink-layout__burger-icon{display:inline-block}}.shlink-layout__burger-icon--active{color:#fff}.shlink-layout__container.shlink-layout__container{padding:20px 0 0;min-height:100%}@media (min-width: 768px){.shlink-layout__container.shlink-layout__container{padding:30px 0 0 260px}}.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity .2s linear;-moz-transition:opacity .2s linear;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:#ffffff80}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fff;background:#fffc;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;box-sizing:border-box;background:#fffc;text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}.react-tags{position:relative;padding:5px 0 0 6px;border-radius:.5rem;background-color:var(--primary-color);border:1px solid var(--input-border-color);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;font-size:1em;line-height:1.2;cursor:text}.input-group>.react-tags{flex:1 1 auto;width:1%;min-width:0}.card .react-tags{background-color:var(--input-color)}.react-tags.is-active{box-shadow:0 0 0 .2rem #4696e540}.react-tags__label{display:none}.react-tags__tag{font-size:100%}.react-tags__list{display:inline;vertical-align:2px;padding:0;list-style-type:none}.react-tags__list-item{display:inline-block}.react-tags__list-item:not(:last-child){margin-right:3px}.react-tags__combobox{display:inline-block;padding:6px 2px;margin-top:2px;margin-bottom:3px;max-width:100%}@media screen and (min-width: 576px){.react-tags__combobox{position:relative}}.react-tags__combobox-input{font-size:1.25rem;line-height:inherit;color:var(--input-text-color);background-color:inherit;max-width:100%;margin:0 0 0 7px;padding:0;border:0;outline:none}.react-tags__combobox-input::placeholder{color:#6c757d}.react-tags__combobox-input::-ms-clear{display:none}.react-tags__listbox{position:absolute;top:100%;left:0;width:100%;z-index:10;margin:4px -1px;padding:0;background:var(--primary-color);border:1px solid var(--border-color);border-radius:.25rem;box-shadow:0 2px 6px #0003}@media screen and (min-width: 576px){.react-tags__listbox{width:240px}}.react-tags__listbox .react-tags__listbox-option{padding:8px 10px}.react-tags__listbox .react-tags__listbox-option:not(:last-child){border-bottom:1px solid var(--border-color)}.react-tags__listbox .react-tags__listbox-option:hover:not(.react-tags__listbox-option--not-selectable){cursor:pointer;background-color:var(--active-color)}.react-tags__listbox .react-tags__listbox-option.is-active{background-color:var(--active-color)}.react-tags__listbox .react-tags__listbox-option.is-disabled{opacity:.5;cursor:auto}.sticky-card-paginator{position:sticky;bottom:0;background-color:var(--primary-color-alfa);padding:.75rem 0;border-top:1px solid var(--border-color)}.top-sticky{position:sticky;top:56px;z-index:10} diff --git a/dependabot/npm_and_yarn/vite-d4fe43cea2/favicon.gif b/dependabot/npm_and_yarn/vite-d4fe43cea2/favicon.gif new file mode 100644 index 00000000..dcf57c87 Binary files /dev/null and b/dependabot/npm_and_yarn/vite-d4fe43cea2/favicon.gif differ diff --git a/dependabot/npm_and_yarn/vite-d4fe43cea2/favicon.ico b/dependabot/npm_and_yarn/vite-d4fe43cea2/favicon.ico new file mode 100644 index 00000000..25764c30 Binary files /dev/null and b/dependabot/npm_and_yarn/vite-d4fe43cea2/favicon.ico differ diff --git a/dependabot/npm_and_yarn/vite-d4fe43cea2/favicon.png b/dependabot/npm_and_yarn/vite-d4fe43cea2/favicon.png new file mode 100644 index 00000000..25764c30 Binary files /dev/null and b/dependabot/npm_and_yarn/vite-d4fe43cea2/favicon.png differ diff --git a/dependabot/npm_and_yarn/vite-d4fe43cea2/favicon.svg b/dependabot/npm_and_yarn/vite-d4fe43cea2/favicon.svg new file mode 100644 index 00000000..5a085bcb --- /dev/null +++ b/dependabot/npm_and_yarn/vite-d4fe43cea2/favicon.svg @@ -0,0 +1 @@ + diff --git a/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-1024x1024.png b/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-1024x1024.png new file mode 100644 index 00000000..e468ac0a Binary files /dev/null and b/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-1024x1024.png differ diff --git a/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-114x114.png b/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-114x114.png new file mode 100644 index 00000000..fa813ad5 Binary files /dev/null and b/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-114x114.png differ diff --git a/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-120x120.png b/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-120x120.png new file mode 100644 index 00000000..5e84efc7 Binary files /dev/null and b/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-120x120.png differ diff --git a/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-128x128.png b/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-128x128.png new file mode 100644 index 00000000..25764c30 Binary files /dev/null and b/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-128x128.png differ diff --git a/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-144x144.png b/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-144x144.png new file mode 100644 index 00000000..5ca0d1e6 Binary files /dev/null and b/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-144x144.png differ diff --git a/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-150x150.png b/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-150x150.png new file mode 100644 index 00000000..491fcba7 Binary files /dev/null and b/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-150x150.png differ diff --git a/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-152x152.png b/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-152x152.png new file mode 100644 index 00000000..e2f866af Binary files /dev/null and b/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-152x152.png differ diff --git a/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-160x160.png b/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-160x160.png new file mode 100644 index 00000000..b34653a9 Binary files /dev/null and b/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-160x160.png differ diff --git a/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-167x167.png b/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-167x167.png new file mode 100644 index 00000000..d8720d36 Binary files /dev/null and b/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-167x167.png differ diff --git a/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-16x16.png b/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-16x16.png new file mode 100644 index 00000000..81457cbf Binary files /dev/null and b/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-16x16.png differ diff --git a/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-180x180.png b/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-180x180.png new file mode 100644 index 00000000..9b7a9547 Binary files /dev/null and b/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-180x180.png differ diff --git a/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-192x192.png b/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-192x192.png new file mode 100644 index 00000000..36a0ac72 Binary files /dev/null and b/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-192x192.png differ diff --git a/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-196x196.png b/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-196x196.png new file mode 100644 index 00000000..48338127 Binary files /dev/null and b/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-196x196.png differ diff --git a/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-228x228.png b/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-228x228.png new file mode 100644 index 00000000..0edc6b54 Binary files /dev/null and b/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-228x228.png differ diff --git a/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-24x24.png b/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-24x24.png new file mode 100644 index 00000000..0fba91d4 Binary files /dev/null and b/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-24x24.png differ diff --git a/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-256x256.png b/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-256x256.png new file mode 100644 index 00000000..ff7c3d12 Binary files /dev/null and b/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-256x256.png differ diff --git a/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-310x310.png b/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-310x310.png new file mode 100644 index 00000000..1a84f69d Binary files /dev/null and b/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-310x310.png differ diff --git a/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-32x32.png b/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-32x32.png new file mode 100644 index 00000000..6255cf37 Binary files /dev/null and b/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-32x32.png differ diff --git a/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-384x384.png b/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-384x384.png new file mode 100644 index 00000000..12f79c11 Binary files /dev/null and b/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-384x384.png differ diff --git a/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-40x40.png b/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-40x40.png new file mode 100644 index 00000000..1718864c Binary files /dev/null and b/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-40x40.png differ diff --git a/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-48x48.png b/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-48x48.png new file mode 100644 index 00000000..b94d23d8 Binary files /dev/null and b/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-48x48.png differ diff --git a/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-512x512.png b/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-512x512.png new file mode 100644 index 00000000..5d3ee53a Binary files /dev/null and b/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-512x512.png differ diff --git a/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-60x60.png b/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-60x60.png new file mode 100644 index 00000000..80ac238d Binary files /dev/null and b/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-60x60.png differ diff --git a/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-64x64.png b/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-64x64.png new file mode 100644 index 00000000..86481ca9 Binary files /dev/null and b/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-64x64.png differ diff --git a/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-72x72.png b/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-72x72.png new file mode 100644 index 00000000..60c1537f Binary files /dev/null and b/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-72x72.png differ diff --git a/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-76x76.png b/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-76x76.png new file mode 100644 index 00000000..91a8ea6b Binary files /dev/null and b/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-76x76.png differ diff --git a/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-96x96.png b/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-96x96.png new file mode 100644 index 00000000..7701826c Binary files /dev/null and b/dependabot/npm_and_yarn/vite-d4fe43cea2/icons/icon-96x96.png differ diff --git a/dependabot/npm_and_yarn/vite-d4fe43cea2/index.html b/dependabot/npm_and_yarn/vite-d4fe43cea2/index.html new file mode 100644 index 00000000..b7c95f11 --- /dev/null +++ b/dependabot/npm_and_yarn/vite-d4fe43cea2/index.html @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Shlink — The URL shortener + + + + + +
+ + diff --git a/dependabot/npm_and_yarn/vite-d4fe43cea2/manifest.json b/dependabot/npm_and_yarn/vite-d4fe43cea2/manifest.json new file mode 100644 index 00000000..db3a30ea --- /dev/null +++ b/dependabot/npm_and_yarn/vite-d4fe43cea2/manifest.json @@ -0,0 +1 @@ +{"name":"Shlink","short_name":"Shlink","start_url":"/","display":"standalone","background_color":"#4696e5","lang":"en","scope":"/shlink-web-client/dependabot/npm_and_yarn/vite-d4fe43cea2/","theme_color":"#4696e5","icons":[{"src":"./icons/icon-16x16.png","type":"image/png","sizes":"16x16"},{"src":"./icons/icon-24x24.png","type":"image/png","sizes":"24x24"},{"src":"./icons/icon-32x32.png","type":"image/png","sizes":"32x32"},{"src":"./icons/icon-40x40.png","type":"image/png","sizes":"40x40"},{"src":"./icons/icon-48x48.png","type":"image/png","sizes":"48x48"},{"src":"./icons/icon-60x60.png","type":"image/png","sizes":"60x60"},{"src":"./icons/icon-64x64.png","type":"image/png","sizes":"64x64"},{"src":"./icons/icon-72x72.png","type":"image/png","sizes":"72x72"},{"src":"./icons/icon-76x76.png","type":"image/png","sizes":"76x76"},{"src":"./icons/icon-96x96.png","type":"image/png","sizes":"96x96"},{"src":"./icons/icon-114x114.png","type":"image/png","sizes":"114x114"},{"src":"./icons/icon-120x120.png","type":"image/png","sizes":"120x120"},{"src":"./icons/icon-128x128.png","type":"image/png","sizes":"128x128"},{"src":"./icons/icon-144x144.png","type":"image/png","sizes":"144x144"},{"src":"./icons/icon-150x150.png","type":"image/png","sizes":"150x150"},{"src":"./icons/icon-152x152.png","type":"image/png","sizes":"152x152"},{"src":"./icons/icon-160x160.png","type":"image/png","sizes":"160x160"},{"src":"./icons/icon-167x167.png","type":"image/png","sizes":"167x167"},{"src":"./icons/icon-180x180.png","type":"image/png","sizes":"180x180"},{"src":"./icons/icon-192x192.png","type":"image/png","sizes":"192x192"},{"src":"./icons/icon-196x196.png","type":"image/png","sizes":"196x196"},{"src":"./icons/icon-228x228.png","type":"image/png","sizes":"228x228"},{"src":"./icons/icon-256x256.png","type":"image/png","sizes":"256x256"},{"src":"./icons/icon-310x310.png","type":"image/png","sizes":"310x310"},{"src":"./icons/icon-384x384.png","type":"image/png","sizes":"384x384"},{"src":"./icons/icon-512x512.png","type":"image/png","sizes":"512x512"},{"src":"./icons/icon-1024x1024.png","type":"image/png","sizes":"1024x1024"}]} diff --git a/dependabot/npm_and_yarn/vite-d4fe43cea2/service-worker.js b/dependabot/npm_and_yarn/vite-d4fe43cea2/service-worker.js new file mode 100644 index 00000000..9b52622e --- /dev/null +++ b/dependabot/npm_and_yarn/vite-d4fe43cea2/service-worker.js @@ -0,0 +1,2 @@ +try{self["workbox:core:7.2.0"]&&_()}catch{}const G=(s,...e)=>{let t=s;return e.length>0&&(t+=` :: ${JSON.stringify(e)}`),t},Q=G;class h extends Error{constructor(e,t){const n=Q(e,t);super(n),this.name=e,this.details=t}}const B=new Set;function z(s){B.add(s)}const d={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:typeof registration<"u"?registration.scope:""},k=s=>[d.prefix,s,d.suffix].filter(e=>e&&e.length>0).join("-"),J=s=>{for(const e of Object.keys(d))s(e)},x={updateDetails:s=>{J(e=>{typeof s[e]=="string"&&(d[e]=s[e])})},getGoogleAnalyticsName:s=>s||k(d.googleAnalytics),getPrecacheName:s=>s||k(d.precache),getPrefix:()=>d.prefix,getRuntimeName:s=>s||k(d.runtime),getSuffix:()=>d.suffix};function K(s,e){const t=new URL(s);for(const n of e)t.searchParams.delete(n);return t.href}async function X(s,e,t,n){const i=K(e.url,t);if(e.url===i)return s.match(e,n);const a=Object.assign(Object.assign({},n),{ignoreSearch:!0}),r=await s.keys(e,a);for(const c of r){const o=K(c.url,t);if(i===o)return s.match(c,n)}}let m;function Y(){if(m===void 0){const s=new Response("");if("body"in s)try{new Response(s.body),m=!0}catch{m=!1}m=!1}return m}function q(s){s.then(()=>{})}class Z{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}async function ee(){for(const s of B)await s()}const te=s=>new URL(String(s),location.href).href.replace(new RegExp(`^${location.origin}`),"");function se(s){return new Promise(e=>setTimeout(e,s))}function A(s,e){const t=e();return s.waitUntil(t),t}async function ne(s,e){let t=null;if(s.url&&(t=new URL(s.url).origin),t!==self.location.origin)throw new h("cross-origin-copy-response",{origin:t});const n=s.clone(),a={headers:new Headers(n.headers),status:n.status,statusText:n.statusText},r=Y()?n.body:await n.blob();return new Response(r,a)}function ie(){self.addEventListener("activate",()=>self.clients.claim())}const ae=(s,e)=>e.some(t=>s instanceof t);let j,O;function re(){return j||(j=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function ce(){return O||(O=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const F=new WeakMap,U=new WeakMap,H=new WeakMap,E=new WeakMap,P=new WeakMap;function oe(s){const e=new Promise((t,n)=>{const i=()=>{s.removeEventListener("success",a),s.removeEventListener("error",r)},a=()=>{t(f(s.result)),i()},r=()=>{n(s.error),i()};s.addEventListener("success",a),s.addEventListener("error",r)});return e.then(t=>{t instanceof IDBCursor&&F.set(t,s)}).catch(()=>{}),P.set(e,s),e}function le(s){if(U.has(s))return;const e=new Promise((t,n)=>{const i=()=>{s.removeEventListener("complete",a),s.removeEventListener("error",r),s.removeEventListener("abort",r)},a=()=>{t(),i()},r=()=>{n(s.error||new DOMException("AbortError","AbortError")),i()};s.addEventListener("complete",a),s.addEventListener("error",r),s.addEventListener("abort",r)});U.set(s,e)}let T={get(s,e,t){if(s instanceof IDBTransaction){if(e==="done")return U.get(s);if(e==="objectStoreNames")return s.objectStoreNames||H.get(s);if(e==="store")return t.objectStoreNames[1]?void 0:t.objectStore(t.objectStoreNames[0])}return f(s[e])},set(s,e,t){return s[e]=t,!0},has(s,e){return s instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in s}};function he(s){T=s(T)}function ue(s){return s===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...t){const n=s.call(v(this),e,...t);return H.set(n,e.sort?e.sort():[e]),f(n)}:ce().includes(s)?function(...e){return s.apply(v(this),e),f(F.get(this))}:function(...e){return f(s.apply(v(this),e))}}function de(s){return typeof s=="function"?ue(s):(s instanceof IDBTransaction&&le(s),ae(s,re())?new Proxy(s,T):s)}function f(s){if(s instanceof IDBRequest)return oe(s);if(E.has(s))return E.get(s);const e=de(s);return e!==s&&(E.set(s,e),P.set(e,s)),e}const v=s=>P.get(s);function fe(s,e,{blocked:t,upgrade:n,blocking:i,terminated:a}={}){const r=indexedDB.open(s,e),c=f(r);return n&&r.addEventListener("upgradeneeded",o=>{n(f(r.result),o.oldVersion,o.newVersion,f(r.transaction),o)}),t&&r.addEventListener("blocked",o=>t(o.oldVersion,o.newVersion,o)),c.then(o=>{a&&o.addEventListener("close",()=>a()),i&&o.addEventListener("versionchange",l=>i(l.oldVersion,l.newVersion,l))}).catch(()=>{}),c}function pe(s,{blocked:e}={}){const t=indexedDB.deleteDatabase(s);return e&&t.addEventListener("blocked",n=>e(n.oldVersion,n)),f(t).then(()=>{})}const ge=["get","getKey","getAll","getAllKeys","count"],me=["put","add","delete","clear"],D=new Map;function S(s,e){if(!(s instanceof IDBDatabase&&!(e in s)&&typeof e=="string"))return;if(D.get(e))return D.get(e);const t=e.replace(/FromIndex$/,""),n=e!==t,i=me.includes(t);if(!(t in(n?IDBIndex:IDBObjectStore).prototype)||!(i||ge.includes(t)))return;const a=async function(r,...c){const o=this.transaction(r,i?"readwrite":"readonly");let l=o.store;return n&&(l=l.index(c.shift())),(await Promise.all([l[t](...c),i&&o.done]))[0]};return D.set(e,a),a}he(s=>({...s,get:(e,t,n)=>S(e,t)||s.get(e,t,n),has:(e,t)=>!!S(e,t)||s.has(e,t)}));try{self["workbox:expiration:7.2.0"]&&_()}catch{}const we="workbox-expiration",w="cache-entries",W=s=>{const e=new URL(s,location.href);return e.hash="",e.href};class ye{constructor(e){this._db=null,this._cacheName=e}_upgradeDb(e){const t=e.createObjectStore(w,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}_upgradeDbAndDeleteOldDbs(e){this._upgradeDb(e),this._cacheName&&pe(this._cacheName)}async setTimestamp(e,t){e=W(e);const n={url:e,timestamp:t,cacheName:this._cacheName,id:this._getId(e)},a=(await this.getDb()).transaction(w,"readwrite",{durability:"relaxed"});await a.store.put(n),await a.done}async getTimestamp(e){const n=await(await this.getDb()).get(w,this._getId(e));return n==null?void 0:n.timestamp}async expireEntries(e,t){const n=await this.getDb();let i=await n.transaction(w).store.index("timestamp").openCursor(null,"prev");const a=[];let r=0;for(;i;){const o=i.value;o.cacheName===this._cacheName&&(e&&o.timestamp=t?a.push(i.value):r++),i=await i.continue()}const c=[];for(const o of a)await n.delete(w,o.id),c.push(o.url);return c}_getId(e){return this._cacheName+"|"+W(e)}async getDb(){return this._db||(this._db=await fe(we,1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)})),this._db}}class _e{constructor(e,t={}){this._isRunning=!1,this._rerunRequested=!1,this._maxEntries=t.maxEntries,this._maxAgeSeconds=t.maxAgeSeconds,this._matchOptions=t.matchOptions,this._cacheName=e,this._timestampModel=new ye(e)}async expireEntries(){if(this._isRunning){this._rerunRequested=!0;return}this._isRunning=!0;const e=this._maxAgeSeconds?Date.now()-this._maxAgeSeconds*1e3:0,t=await this._timestampModel.expireEntries(e,this._maxEntries),n=await self.caches.open(this._cacheName);for(const i of t)await n.delete(i,this._matchOptions);this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,q(this.expireEntries()))}async updateTimestamp(e){await this._timestampModel.setTimestamp(e,Date.now())}async isURLExpired(e){if(this._maxAgeSeconds){const t=await this._timestampModel.getTimestamp(e),n=Date.now()-this._maxAgeSeconds*1e3;return t!==void 0?t{if(!a)return null;const r=this._isResponseDateFresh(a),c=this._getCacheExpiration(i);q(c.expireEntries());const o=c.updateTimestamp(n.url);if(t)try{t.waitUntil(o)}catch{}return r?a:null},this.cacheDidUpdate=async({cacheName:t,request:n})=>{const i=this._getCacheExpiration(t);await i.updateTimestamp(n.url),await i.expireEntries()},this._config=e,this._maxAgeSeconds=e.maxAgeSeconds,this._cacheExpirations=new Map,e.purgeOnQuotaError&&z(()=>this.deleteCacheAndMetadata())}_getCacheExpiration(e){if(e===x.getRuntimeName())throw new h("expire-custom-caches-only");let t=this._cacheExpirations.get(e);return t||(t=new _e(e,this._config),this._cacheExpirations.set(e,t)),t}_isResponseDateFresh(e){if(!this._maxAgeSeconds)return!0;const t=this._getDateHeaderTimestamp(e);if(t===null)return!0;const n=Date.now();return t>=n-this._maxAgeSeconds*1e3}_getDateHeaderTimestamp(e){if(!e.headers.has("date"))return null;const t=e.headers.get("date"),i=new Date(t).getTime();return isNaN(i)?null:i}async deleteCacheAndMetadata(){for(const[e,t]of this._cacheExpirations)await self.caches.delete(e),await t.delete();this._cacheExpirations=new Map}}try{self["workbox:precaching:7.2.0"]&&_()}catch{}const Re="__WB_REVISION__";function Ce(s){if(!s)throw new h("add-to-cache-list-unexpected-type",{entry:s});if(typeof s=="string"){const a=new URL(s,location.href);return{cacheKey:a.href,url:a.href}}const{revision:e,url:t}=s;if(!t)throw new h("add-to-cache-list-unexpected-type",{entry:s});if(!e){const a=new URL(t,location.href);return{cacheKey:a.href,url:a.href}}const n=new URL(t,location.href),i=new URL(t,location.href);return n.searchParams.set(Re,e),{cacheKey:n.href,url:i.href}}class xe{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async({request:e,state:t})=>{t&&(t.originalRequest=e)},this.cachedResponseWillBeUsed=async({event:e,state:t,cachedResponse:n})=>{if(e.type==="install"&&t&&t.originalRequest&&t.originalRequest instanceof Request){const i=t.originalRequest.url;n?this.notUpdatedURLs.push(i):this.updatedURLs.push(i)}return n}}}class ke{constructor({precacheController:e}){this.cacheKeyWillBeUsed=async({request:t,params:n})=>{const i=(n==null?void 0:n.cacheKey)||this._precacheController.getCacheKeyForURL(t.url);return i?new Request(i,{headers:t.headers}):t},this._precacheController=e}}try{self["workbox:strategies:7.2.0"]&&_()}catch{}function R(s){return typeof s=="string"?new Request(s):s}class Ee{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new Z,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const n of this._plugins)this._pluginStateMap.set(n,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:t}=this;let n=R(e);if(n.mode==="navigate"&&t instanceof FetchEvent&&t.preloadResponse){const r=await t.preloadResponse;if(r)return r}const i=this.hasCallback("fetchDidFail")?n.clone():null;try{for(const r of this.iterateCallbacks("requestWillFetch"))n=await r({request:n.clone(),event:t})}catch(r){if(r instanceof Error)throw new h("plugin-error-request-will-fetch",{thrownErrorMessage:r.message})}const a=n.clone();try{let r;r=await fetch(n,n.mode==="navigate"?void 0:this._strategy.fetchOptions);for(const c of this.iterateCallbacks("fetchDidSucceed"))r=await c({event:t,request:a,response:r});return r}catch(r){throw i&&await this.runCallbacks("fetchDidFail",{error:r,event:t,originalRequest:i.clone(),request:a.clone()}),r}}async fetchAndCachePut(e){const t=await this.fetch(e),n=t.clone();return this.waitUntil(this.cachePut(e,n)),t}async cacheMatch(e){const t=R(e);let n;const{cacheName:i,matchOptions:a}=this._strategy,r=await this.getCacheKey(t,"read"),c=Object.assign(Object.assign({},a),{cacheName:i});n=await caches.match(r,c);for(const o of this.iterateCallbacks("cachedResponseWillBeUsed"))n=await o({cacheName:i,matchOptions:a,cachedResponse:n,request:r,event:this.event})||void 0;return n}async cachePut(e,t){const n=R(e);await se(0);const i=await this.getCacheKey(n,"write");if(!t)throw new h("cache-put-with-no-response",{url:te(i.url)});const a=await this._ensureResponseSafeToCache(t);if(!a)return!1;const{cacheName:r,matchOptions:c}=this._strategy,o=await self.caches.open(r),l=this.hasCallback("cacheDidUpdate"),g=l?await X(o,i.clone(),["__WB_REVISION__"],c):null;try{await o.put(i,l?a.clone():a)}catch(u){if(u instanceof Error)throw u.name==="QuotaExceededError"&&await ee(),u}for(const u of this.iterateCallbacks("cacheDidUpdate"))await u({cacheName:r,oldResponse:g,newResponse:a.clone(),request:i,event:this.event});return!0}async getCacheKey(e,t){const n=`${e.url} | ${t}`;if(!this._cacheKeys[n]){let i=e;for(const a of this.iterateCallbacks("cacheKeyWillBeUsed"))i=R(await a({mode:t,request:i,event:this.event,params:this.params}));this._cacheKeys[n]=i}return this._cacheKeys[n]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const n of this.iterateCallbacks(e))await n(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if(typeof t[e]=="function"){const n=this._pluginStateMap.get(t);yield a=>{const r=Object.assign(Object.assign({},a),{state:n});return t[e](r)}}}waitUntil(e){return this._extendLifetimePromises.push(e),e}async doneWaiting(){let e;for(;e=this._extendLifetimePromises.shift();)await e}destroy(){this._handlerDeferred.resolve(null)}async _ensureResponseSafeToCache(e){let t=e,n=!1;for(const i of this.iterateCallbacks("cacheWillUpdate"))if(t=await i({request:this.request,response:t,event:this.event})||void 0,n=!0,!t)break;return n||t&&t.status!==200&&(t=void 0),t}}class V{constructor(e={}){this.cacheName=x.getRuntimeName(e.cacheName),this.plugins=e.plugins||[],this.fetchOptions=e.fetchOptions,this.matchOptions=e.matchOptions}handle(e){const[t]=this.handleAll(e);return t}handleAll(e){e instanceof FetchEvent&&(e={event:e,request:e.request});const t=e.event,n=typeof e.request=="string"?new Request(e.request):e.request,i="params"in e?e.params:void 0,a=new Ee(this,{event:t,request:n,params:i}),r=this._getResponse(a,n,t),c=this._awaitComplete(r,a,n,t);return[r,c]}async _getResponse(e,t,n){await e.runCallbacks("handlerWillStart",{event:n,request:t});let i;try{if(i=await this._handle(t,e),!i||i.type==="error")throw new h("no-response",{url:t.url})}catch(a){if(a instanceof Error){for(const r of e.iterateCallbacks("handlerDidError"))if(i=await r({error:a,event:n,request:t}),i)break}if(!i)throw a}for(const a of e.iterateCallbacks("handlerWillRespond"))i=await a({event:n,request:t,response:i});return i}async _awaitComplete(e,t,n,i){let a,r;try{a=await e}catch{}try{await t.runCallbacks("handlerDidRespond",{event:i,request:n,response:a}),await t.doneWaiting()}catch(c){c instanceof Error&&(r=c)}if(await t.runCallbacks("handlerDidComplete",{event:i,request:n,response:a,error:r}),t.destroy(),r)throw r}}class p extends V{constructor(e={}){e.cacheName=x.getPrecacheName(e.cacheName),super(e),this._fallbackToNetwork=e.fallbackToNetwork!==!1,this.plugins.push(p.copyRedirectedCacheableResponsesPlugin)}async _handle(e,t){const n=await t.cacheMatch(e);return n||(t.event&&t.event.type==="install"?await this._handleInstall(e,t):await this._handleFetch(e,t))}async _handleFetch(e,t){let n;const i=t.params||{};if(this._fallbackToNetwork){const a=i.integrity,r=e.integrity,c=!r||r===a;n=await t.fetch(new Request(e,{integrity:e.mode!=="no-cors"?r||a:void 0})),a&&c&&e.mode!=="no-cors"&&(this._useDefaultCacheabilityPluginIfNeeded(),await t.cachePut(e,n.clone()))}else throw new h("missing-precache-entry",{cacheName:this.cacheName,url:e.url});return n}async _handleInstall(e,t){this._useDefaultCacheabilityPluginIfNeeded();const n=await t.fetch(e);if(!await t.cachePut(e,n.clone()))throw new h("bad-precaching-response",{url:e.url,status:n.status});return n}_useDefaultCacheabilityPluginIfNeeded(){let e=null,t=0;for(const[n,i]of this.plugins.entries())i!==p.copyRedirectedCacheableResponsesPlugin&&(i===p.defaultPrecacheCacheabilityPlugin&&(e=n),i.cacheWillUpdate&&t++);t===0?this.plugins.push(p.defaultPrecacheCacheabilityPlugin):t>1&&e!==null&&this.plugins.splice(e,1)}}p.defaultPrecacheCacheabilityPlugin={async cacheWillUpdate({response:s}){return!s||s.status>=400?null:s}};p.copyRedirectedCacheableResponsesPlugin={async cacheWillUpdate({response:s}){return s.redirected?await ne(s):s}};class ve{constructor({cacheName:e,plugins:t=[],fallbackToNetwork:n=!0}={}){this._urlsToCacheKeys=new Map,this._urlsToCacheModes=new Map,this._cacheKeysToIntegrities=new Map,this._strategy=new p({cacheName:x.getPrecacheName(e),plugins:[...t,new ke({precacheController:this})],fallbackToNetwork:n}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}get strategy(){return this._strategy}precache(e){this.addToCacheList(e),this._installAndActiveListenersAdded||(self.addEventListener("install",this.install),self.addEventListener("activate",this.activate),this._installAndActiveListenersAdded=!0)}addToCacheList(e){const t=[];for(const n of e){typeof n=="string"?t.push(n):n&&n.revision===void 0&&t.push(n.url);const{cacheKey:i,url:a}=Ce(n),r=typeof n!="string"&&n.revision?"reload":"default";if(this._urlsToCacheKeys.has(a)&&this._urlsToCacheKeys.get(a)!==i)throw new h("add-to-cache-list-conflicting-entries",{firstEntry:this._urlsToCacheKeys.get(a),secondEntry:i});if(typeof n!="string"&&n.integrity){if(this._cacheKeysToIntegrities.has(i)&&this._cacheKeysToIntegrities.get(i)!==n.integrity)throw new h("add-to-cache-list-conflicting-integrities",{url:a});this._cacheKeysToIntegrities.set(i,n.integrity)}if(this._urlsToCacheKeys.set(a,i),this._urlsToCacheModes.set(a,r),t.length>0){const c=`Workbox is precaching URLs without revision info: ${t.join(", ")} +This is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(c)}}}install(e){return A(e,async()=>{const t=new xe;this.strategy.plugins.push(t);for(const[a,r]of this._urlsToCacheKeys){const c=this._cacheKeysToIntegrities.get(r),o=this._urlsToCacheModes.get(a),l=new Request(a,{integrity:c,cache:o,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:r},request:l,event:e}))}const{updatedURLs:n,notUpdatedURLs:i}=t;return{updatedURLs:n,notUpdatedURLs:i}})}activate(e){return A(e,async()=>{const t=await self.caches.open(this.strategy.cacheName),n=await t.keys(),i=new Set(this._urlsToCacheKeys.values()),a=[];for(const r of n)i.has(r.url)||(await t.delete(r),a.push(r.url));return{deletedURLs:a}})}getURLsToCacheKeys(){return this._urlsToCacheKeys}getCachedURLs(){return[...this._urlsToCacheKeys.keys()]}getCacheKeyForURL(e){const t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}getIntegrityForCacheKey(e){return this._cacheKeysToIntegrities.get(e)}async matchPrecache(e){const t=e instanceof Request?e.url:e,n=this.getCacheKeyForURL(t);if(n)return(await self.caches.open(this.strategy.cacheName)).match(n)}createHandlerBoundToURL(e){const t=this.getCacheKeyForURL(e);if(!t)throw new h("non-precached-url",{url:e});return n=>(n.request=new Request(e),n.params=Object.assign({cacheKey:t},n.params),this.strategy.handle(n))}}let L;const I=()=>(L||(L=new ve),L);try{self["workbox:routing:7.2.0"]&&_()}catch{}const $="GET",C=s=>s&&typeof s=="object"?s:{handle:s};class b{constructor(e,t,n=$){this.handler=C(t),this.match=e,this.method=n}setCatchHandler(e){this.catchHandler=C(e)}}class De extends b{constructor(e,t,n){const i=({url:a})=>{const r=e.exec(a.href);if(r&&!(a.origin!==location.origin&&r.index!==0))return r.slice(1)};super(i,t,n)}}class Le{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,n=this.handleRequest({request:t,event:e});n&&e.respondWith(n)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,n=Promise.all(t.urlsToCache.map(i=>{typeof i=="string"&&(i=[i]);const a=new Request(...i);return this.handleRequest({request:a,event:e})}));e.waitUntil(n),e.ports&&e.ports[0]&&n.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const n=new URL(e.url,location.href);if(!n.protocol.startsWith("http"))return;const i=n.origin===location.origin,{params:a,route:r}=this.findMatchingRoute({event:t,request:e,sameOrigin:i,url:n});let c=r&&r.handler;const o=e.method;if(!c&&this._defaultHandlerMap.has(o)&&(c=this._defaultHandlerMap.get(o)),!c)return;let l;try{l=c.handle({url:n,request:e,event:t,params:a})}catch(u){l=Promise.reject(u)}const g=r&&r.catchHandler;return l instanceof Promise&&(this._catchHandler||g)&&(l=l.catch(async u=>{if(g)try{return await g.handle({url:n,request:e,event:t,params:a})}catch(N){N instanceof Error&&(u=N)}if(this._catchHandler)return this._catchHandler.handle({url:n,request:e,event:t});throw u})),l}findMatchingRoute({url:e,sameOrigin:t,request:n,event:i}){const a=this._routes.get(n.method)||[];for(const r of a){let c;const o=r.match({url:e,sameOrigin:t,request:n,event:i});if(o)return c=o,(Array.isArray(c)&&c.length===0||o.constructor===Object&&Object.keys(o).length===0||typeof o=="boolean")&&(c=void 0),{route:r,params:c}}return{}}setDefaultHandler(e,t=$){this._defaultHandlerMap.set(t,C(e))}setCatchHandler(e){this._catchHandler=C(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new h("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(t>-1)this._routes.get(e.method).splice(t,1);else throw new h("unregister-route-route-not-registered")}}let y;const Ue=()=>(y||(y=new Le,y.addFetchListener(),y.addCacheListener()),y);function M(s,e,t){let n;if(typeof s=="string"){const a=new URL(s,location.href),r=({url:c})=>c.href===a.href;n=new b(r,e,t)}else if(s instanceof RegExp)n=new De(s,e,t);else if(typeof s=="function")n=new b(s,e,t);else if(s instanceof b)n=s;else throw new h("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return Ue().registerRoute(n),n}function Te(s,e=[]){for(const t of[...s.searchParams.keys()])e.some(n=>n.test(t))&&s.searchParams.delete(t);return s}function*Pe(s,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:t="index.html",cleanURLs:n=!0,urlManipulation:i}={}){const a=new URL(s,location.href);a.hash="",yield a.href;const r=Te(a,e);if(yield r.href,t&&r.pathname.endsWith("/")){const c=new URL(r.href);c.pathname+=t,yield c.href}if(n){const c=new URL(r.href);c.pathname+=".html",yield c.href}if(i){const c=i({url:a});for(const o of c)yield o.href}}class Ie extends b{constructor(e,t){const n=({request:i})=>{const a=e.getURLsToCacheKeys();for(const r of Pe(i.url,t)){const c=a.get(r);if(c){const o=e.getIntegrityForCacheKey(c);return{cacheKey:c,integrity:o}}}};super(n,e.strategy)}}function Me(s){const e=I(),t=new Ie(e,s);M(t)}function Ne(s){return I().createHandlerBoundToURL(s)}function Ke(s){I().precache(s)}function Ae(s,e){Ke(s),Me(e)}const je={cacheWillUpdate:async({response:s})=>s.status===200||s.status===0?s:null};class Oe extends V{constructor(e={}){super(e),this.plugins.some(t=>"cacheWillUpdate"in t)||this.plugins.unshift(je)}async _handle(e,t){const n=t.fetchAndCachePut(e).catch(()=>{});t.waitUntil(n);let i=await t.cacheMatch(e),a;if(!i)try{i=await n}catch(r){r instanceof Error&&(a=r)}if(!i)throw new h("no-response",{url:e.url,error:a});return i}}const Se="shlink-web-client",We="A React-based progressive web application for shlink",Be="/shlink-web-client/dependabot/npm_and_yarn/vite-d4fe43cea2",qe="https://github.com/shlinkio/shlink-web-client",Fe="MIT",He="module",Ve={lint:"node --run lint:css && node --run lint:js","lint:css":"stylelint src/*.scss src/**/*.scss","lint:js":"eslint src test config/test","lint:fix":"node --run lint:css:fix && node --run lint:js:fix","lint:css:fix":"node --run lint:css -- --fix","lint:js:fix":"node --run lint:js -- --fix",types:"tsc",start:"vite serve --host=0.0.0.0",preview:"vite preview --host=0.0.0.0",build:"node --run types && vite build && node scripts/replace-version.mjs","build:dist":"node --run build && node scripts/create-dist-file.mjs",test:"vitest run --run","test:watch":"vitest --watch","test:ci":"node --run test -- --coverage","test:verbose":"node --run test -- --verbose"},$e={"@fortawesome/fontawesome-free":"^6.7.1","@fortawesome/fontawesome-svg-core":"^6.7.1","@fortawesome/free-brands-svg-icons":"^6.7.1","@fortawesome/free-regular-svg-icons":"^6.7.1","@fortawesome/free-solid-svg-icons":"^6.7.1","@fortawesome/react-fontawesome":"^0.2.2","@json2csv/plainjs":"^7.0.6","@reduxjs/toolkit":"^2.4.0","@shlinkio/data-manipulation":"^1.0.3","@shlinkio/shlink-frontend-kit":"^0.6.0","@shlinkio/shlink-js-sdk":"^1.3.0","@shlinkio/shlink-web-component":"^0.11.0",bootstrap:"5.2.3",bottlejs:"^2.0.1",clsx:"^2.1.1","compare-versions":"^6.1.1",csvtojson:"^2.0.10","date-fns":"^4.1.0",react:"^18.3.1","react-dom":"^18.3.1","react-external-link":"^2.3.1","react-redux":"^9.1.2","react-router-dom":"^6.28.0",reactstrap:"^9.2.3","redux-localstorage-simple":"^2.5.1","workbox-core":"^7.3.0","workbox-expiration":"^7.3.0","workbox-precaching":"^7.3.0","workbox-routing":"^7.3.0","workbox-strategies":"^7.3.0"},Ge={"@shlinkio/eslint-config-js-coding-standard":"~3.2.1","@shlinkio/stylelint-config-css-coding-standard":"~1.1.1","@stylistic/eslint-plugin":"^2.11.0","@testing-library/jest-dom":"^6.6.3","@testing-library/react":"^16.0.1","@testing-library/user-event":"^14.5.2","@total-typescript/shoehorn":"^0.1.2","@types/react":"^18.3.12","@types/react-dom":"^18.3.1","@types/uuid":"^10.0.0","@vitejs/plugin-react":"^4.3.4","@vitest/coverage-v8":"^2.1.6","adm-zip":"^0.5.16","axe-core":"^4.10.2",chalk:"^5.3.0",eslint:"^9.16.0","eslint-plugin-jsx-a11y":"^6.10.2","eslint-plugin-react":"^7.37.2","eslint-plugin-react-hooks":"^5.0.0","eslint-plugin-simple-import-sort":"^12.1.1",history:"^5.3.0",jsdom:"^25.0.1",sass:"^1.81.0",stylelint:"^15.11.0",typescript:"^5.7.2","typescript-eslint":"^8.16.0",vite:"^6.0.3","vite-plugin-pwa":"^0.21.1",vitest:"^2.0.2"},Qe=[">0.2%","not dead","not ie <= 11","not op_mini all"],ze={name:Se,description:We,private:!1,homepage:Be,repository:qe,license:Fe,type:He,scripts:Ve,dependencies:$e,devDependencies:Ge,browserslist:Qe};ie();Ae([{"revision":null,"url":"assets/index-B1tNf8e9.js"},{"revision":null,"url":"assets/index-Ina9ujc2.css"},{"revision":"71f0e625f39d081f6e41b62b9042ed41","url":"index.html"},{"revision":"583b223ad8e20f05aaa64923d7db2e46","url":"icons/icon-1024x1024.png"},{"revision":"2dff586aaefa4c8d17f4c0bcbdef8b53","url":"icons/icon-114x114.png"},{"revision":"8e28257a68ef1c55bc68bfff80e1a310","url":"icons/icon-120x120.png"},{"revision":"0059b6f0c97fa871a5c29643b2857585","url":"icons/icon-128x128.png"},{"revision":"41478c2456281f61e54d714718743ecc","url":"icons/icon-144x144.png"},{"revision":"625251910295f33a578ae6d8117711c9","url":"icons/icon-150x150.png"},{"revision":"19b71508b1d05defe32cf16a7d453001","url":"icons/icon-152x152.png"},{"revision":"9d029a32a54ba3084c67acd5d74f8ac4","url":"icons/icon-160x160.png"},{"revision":"6ec104aeaf745f003ecdaef2edddce97","url":"icons/icon-167x167.png"},{"revision":"3e8169a112865ef0d76bba4e2dfd3a89","url":"icons/icon-16x16.png"},{"revision":"871d67907434ed0ddf5d2a6c220e09af","url":"icons/icon-180x180.png"},{"revision":"cee2529402074d73b2135e2ddee25f6b","url":"icons/icon-192x192.png"},{"revision":"85055b452284c0193142936dee7d2cd1","url":"icons/icon-196x196.png"},{"revision":"f471155dd70b99924422dd9dd87ea94d","url":"icons/icon-228x228.png"},{"revision":"20f0b51945ae3c973420e31d6b4d43c1","url":"icons/icon-24x24.png"},{"revision":"4d896c5c7025582605de31fb74f0316b","url":"icons/icon-256x256.png"},{"revision":"d99b49e5bcad41968313c3e132e7c661","url":"icons/icon-310x310.png"},{"revision":"4c9695cfb4cea403c1b66bbb7b4f7420","url":"icons/icon-32x32.png"},{"revision":"f9597636bef677327c3abc0fd1a743c4","url":"icons/icon-384x384.png"},{"revision":"f74edb9cc54ac938c1589876f8da9f21","url":"icons/icon-40x40.png"},{"revision":"52933970fac8498311687de13549b014","url":"icons/icon-48x48.png"},{"revision":"de22c0eb9e08d3576df5cedb568ca56b","url":"icons/icon-512x512.png"},{"revision":"40209a194f29b21882571c77bd2bd906","url":"icons/icon-60x60.png"},{"revision":"c8ba5a8c1da76d74c7bb21827fcf975c","url":"icons/icon-64x64.png"},{"revision":"ae3435baceb494f9c966e2c2c736ea35","url":"icons/icon-72x72.png"},{"revision":"850aa5b026fd1452af6c1ddd9d71850f","url":"icons/icon-76x76.png"},{"revision":"8c62535e6b7a498ece1f6c6ae62ede59","url":"icons/icon-96x96.png"},{"revision":"291a957253d870fd04585310a9637ebb","url":"manifest.json"}]);const Je=new RegExp("/[^/?]+\\.[^/]+$");M(({request:s,url:e})=>!(s.mode!=="navigate"||e.pathname.startsWith("/_")||e.pathname.match(Je)),Ne(`${ze.homepage}/index.html`));M(({url:s})=>s.origin===self.location.origin&&s.pathname.endsWith(".png"),new Oe({cacheName:"images",plugins:[new be({maxEntries:50})]}));self.addEventListener("message",s=>{s.data&&s.data.type==="SKIP_WAITING"&&self.skipWaiting()});