var z6=Object.defineProperty;var H6=(t,e,n)=>e in t?z6(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var je=(t,e,n)=>(H6(t,typeof e!="symbol"?e+"":e,n),n);import{g as _M,a as U6,c as Ls}from"./__commonjsHelpers__-042e6b4d.js";function W6(t,e){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var NS={},V6={get exports(){return NS},set exports(t){NS=t}},qm={},Q={},Y6={get exports(){return Q},set exports(t){Q=t}},tt={};/** * @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 tf=Symbol.for("react.element"),q6=Symbol.for("react.portal"),Z6=Symbol.for("react.fragment"),G6=Symbol.for("react.strict_mode"),K6=Symbol.for("react.profiler"),X6=Symbol.for("react.provider"),Q6=Symbol.for("react.context"),J6=Symbol.for("react.forward_ref"),e5=Symbol.for("react.suspense"),t5=Symbol.for("react.memo"),n5=Symbol.for("react.lazy"),IS=Symbol.iterator;function r5(t){return t===null||typeof t!="object"?null:(t=IS&&t[IS]||t["@@iterator"],typeof t=="function"?t:null)}var bM={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},wM=Object.assign,xM={};function Ll(t,e,n){this.props=t,this.context=e,this.refs=xM,this.updater=n||bM}Ll.prototype.isReactComponent={};Ll.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};Ll.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function SM(){}SM.prototype=Ll.prototype;function zb(t,e,n){this.props=t,this.context=e,this.refs=xM,this.updater=n||bM}var Hb=zb.prototype=new SM;Hb.constructor=zb;wM(Hb,Ll.prototype);Hb.isPureReactComponent=!0;var FS=Array.isArray,EM=Object.prototype.hasOwnProperty,Ub={current:null},OM={key:!0,ref:!0,__self:!0,__source:!0};function PM(t,e,n){var r,i={},o=null,a=null;if(e!=null)for(r in e.ref!==void 0&&(a=e.ref),e.key!==void 0&&(o=""+e.key),e)EM.call(e,r)&&!OM.hasOwnProperty(r)&&(i[r]=e[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1>>1,ee=V[B];if(0>>1;Bi(ne,A))aei(he,ne)?(V[B]=he,V[ae]=A,B=ae):(V[B]=ne,V[q]=A,B=q);else if(aei(he,A))V[B]=he,V[ae]=A,B=ae;else break e}}return N}function i(V,N){var A=V.sortIndex-N.sortIndex;return A!==0?A:V.id-N.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;t.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();t.unstable_now=function(){return a.now()-s}}var l=[],c=[],f=1,h=null,p=3,m=!1,v=!1,y=!1,w=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(V){for(var N=n(c);N!==null;){if(N.callback===null)r(c);else if(N.startTime<=V)r(c),N.sortIndex=N.expirationTime,e(l,N);else break;N=n(c)}}function O(V){if(y=!1,S(V),!v)if(n(l)!==null)v=!0,re(M);else{var N=n(c);N!==null&&se(O,N.startTime-V)}}function M(V,N){v=!1,y&&(y=!1,_($),$=-1),m=!0;var A=p;try{for(S(N),h=n(l);h!==null&&(!(h.expirationTime>N)||V&&!H());){var B=h.callback;if(typeof B=="function"){h.callback=null,p=h.priorityLevel;var ee=B(h.expirationTime<=N);N=t.unstable_now(),typeof ee=="function"?h.callback=ee:h===n(l)&&r(l),S(N)}else r(l);h=n(l)}if(h!==null)var z=!0;else{var q=n(c);q!==null&&se(O,q.startTime-N),z=!1}return z}finally{h=null,p=A,m=!1}}var C=!1,R=null,$=-1,U=5,I=-1;function H(){return!(t.unstable_now()-IV||125B?(V.sortIndex=A,e(c,V),n(l)===null&&V===n(c)&&(y?(_($),$=-1):y=!0,se(O,A-B))):(V.sortIndex=ee,e(l,V),v||m||(v=!0,re(M))),V},t.unstable_shouldYield=H,t.unstable_wrapCallback=function(V){var N=p;return function(){var A=p;p=N;try{return V.apply(this,arguments)}finally{p=A}}}})(CM);(function(t){t.exports=CM})(m5);/** * @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 kM=Q,dr=m_;function xe(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),g_=Object.prototype.hasOwnProperty,g5=/^[: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]*$/,jS={},BS={};function v5(t){return g_.call(BS,t)?!0:g_.call(jS,t)?!1:g5.test(t)?BS[t]=!0:(jS[t]=!0,!1)}function y5(t,e,n,r){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function _5(t,e,n,r){if(e===null||typeof e>"u"||y5(t,e,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Zn(t,e,n,r,i,o,a){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=o,this.removeEmptyString=a}var Ln={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){Ln[t]=new Zn(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];Ln[e]=new Zn(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){Ln[t]=new Zn(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Ln[t]=new Zn(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){Ln[t]=new Zn(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){Ln[t]=new Zn(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){Ln[t]=new Zn(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){Ln[t]=new Zn(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){Ln[t]=new Zn(t,5,!1,t.toLowerCase(),null,!1,!1)});var Vb=/[\-:]([a-z])/g;function Yb(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(Vb,Yb);Ln[e]=new Zn(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(Vb,Yb);Ln[e]=new Zn(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(Vb,Yb);Ln[e]=new Zn(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){Ln[t]=new Zn(t,1,!1,t.toLowerCase(),null,!1,!1)});Ln.xlinkHref=new Zn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){Ln[t]=new Zn(t,1,!1,t.toLowerCase(),null,!0,!0)});function qb(t,e,n,r){var i=Ln.hasOwnProperty(e)?Ln[e]:null;(i!==null?i.type!==0:r||!(2s||i[a]!==o[s]){var l=` `+i[a].replace(" at new "," at ");return t.displayName&&l.includes("")&&(l=l.replace("",t.displayName)),l}while(1<=a&&0<=s);break}}}finally{zv=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?xu(t):""}function b5(t){switch(t.tag){case 5:return xu(t.type);case 16:return xu("Lazy");case 13:return xu("Suspense");case 19:return xu("SuspenseList");case 0:case 2:case 15:return t=Hv(t.type,!1),t;case 11:return t=Hv(t.type.render,!1),t;case 1:return t=Hv(t.type,!0),t;default:return""}}function b_(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case As:return"Fragment";case Rs:return"Portal";case v_:return"Profiler";case Zb:return"StrictMode";case y_:return"Suspense";case __:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case RM:return(t.displayName||"Context")+".Consumer";case LM:return(t._context.displayName||"Context")+".Provider";case Gb:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Kb:return e=t.displayName||null,e!==null?e:b_(t.type)||"Memo";case ho:e=t._payload,t=t._init;try{return b_(t(e))}catch{}}return null}function w5(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return b_(e);case 8:return e===Zb?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Vo(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function DM(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function x5(t){var e=DM(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Vf(t){t._valueTracker||(t._valueTracker=x5(t))}function NM(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=DM(t)?t.checked?"true":"false":t.value),t=r,t!==n?(e.setValue(t),!0):!1}function Qh(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function w_(t,e){var n=e.checked;return Nt({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function HS(t,e){var n=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;n=Vo(e.value!=null?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function IM(t,e){e=e.checked,e!=null&&qb(t,"checked",e,!1)}function x_(t,e){IM(t,e);var n=Vo(e.value),r=e.type;if(n!=null)r==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(r==="submit"||r==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?S_(t,e.type,n):e.hasOwnProperty("defaultValue")&&S_(t,e.type,Vo(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function US(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function S_(t,e,n){(e!=="number"||Qh(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var Su=Array.isArray;function Zs(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i"+e.valueOf().toString()+"",e=Yf.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function cc(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Iu={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},S5=["Webkit","ms","Moz","O"];Object.keys(Iu).forEach(function(t){S5.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Iu[e]=Iu[t]})});function BM(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||Iu.hasOwnProperty(t)&&Iu[t]?(""+e).trim():e+"px"}function zM(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=BM(n,e[n],r);n==="float"&&(n="cssFloat"),r?t.setProperty(n,i):t[n]=i}}var E5=Nt({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 P_(t,e){if(e){if(E5[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(xe(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(xe(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(xe(61))}if(e.style!=null&&typeof e.style!="object")throw Error(xe(62))}}function T_(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var C_=null;function Xb(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var k_=null,Gs=null,Ks=null;function YS(t){if(t=of(t)){if(typeof k_!="function")throw Error(xe(280));var e=t.stateNode;e&&(e=Qm(e),k_(t.stateNode,t.type,e))}}function HM(t){Gs?Ks?Ks.push(t):Ks=[t]:Gs=t}function UM(){if(Gs){var t=Gs,e=Ks;if(Ks=Gs=null,YS(t),e)for(t=0;t>>=0,t===0?32:31-(N5(t)/I5|0)|0}var qf=64,Zf=4194304;function Eu(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function np(t,e){var n=t.pendingLanes;if(n===0)return 0;var r=0,i=t.suspendedLanes,o=t.pingedLanes,a=n&268435455;if(a!==0){var s=a&~i;s!==0?r=Eu(s):(o&=a,o!==0&&(r=Eu(o)))}else a=n&~i,a!==0?r=Eu(a):o!==0&&(r=Eu(o));if(r===0)return 0;if(e!==0&&e!==r&&!(e&i)&&(i=r&-r,o=e&-e,i>=o||i===16&&(o&4194240)!==0))return e;if(r&4&&(r|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=r;0n;n++)e.push(t);return e}function nf(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Yr(e),t[e]=n}function B5(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var r=t.eventTimes;for(t=t.expirationTimes;0=$u),tE=String.fromCharCode(32),nE=!1;function u3(t,e){switch(t){case"keyup":return pI.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function c3(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ds=!1;function gI(t,e){switch(t){case"compositionend":return c3(e);case"keypress":return e.which!==32?null:(nE=!0,tE);case"textInput":return t=e.data,t===tE&&nE?null:t;default:return null}}function vI(t,e){if(Ds)return t==="compositionend"||!ow&&u3(t,e)?(t=s3(),zd=nw=wo=null,Ds=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:n,offset:e-t};t=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=aE(n)}}function p3(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?p3(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function m3(){for(var t=window,e=Qh();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Qh(t.document)}return e}function aw(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function PI(t){var e=m3(),n=t.focusedElem,r=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&p3(n.ownerDocument.documentElement,n)){if(r!==null&&aw(n)){if(e=r.start,t=r.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!t.extend&&o>r&&(i=r,r=o,o=i),i=sE(n,o);var a=sE(n,r);i&&a&&(t.rangeCount!==1||t.anchorNode!==i.node||t.anchorOffset!==i.offset||t.focusNode!==a.node||t.focusOffset!==a.offset)&&(e=e.createRange(),e.setStart(i.node,i.offset),t.removeAllRanges(),o>r?(t.addRange(e),t.extend(a.node,a.offset)):(e.setEnd(a.node,a.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Ns=null,N_=null,Bu=null,I_=!1;function lE(t,e,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;I_||Ns==null||Ns!==Qh(r)||(r=Ns,"selectionStart"in r&&aw(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Bu&&gc(Bu,r)||(Bu=r,r=op(N_,"onSelect"),0$s||(t.current=H_[$s],H_[$s]=null,$s--)}function _t(t,e){$s++,H_[$s]=t.current,t.current=e}var Yo={},$n=ra(Yo),er=ra(!1),Va=Yo;function cl(t,e){var n=t.type.contextTypes;if(!n)return Yo;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=e[o];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=i),i}function tr(t){return t=t.childContextTypes,t!=null}function sp(){Et(er),Et($n)}function mE(t,e,n){if($n.current!==Yo)throw Error(xe(168));_t($n,e),_t(er,n)}function E3(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in e))throw Error(xe(108,w5(t)||"Unknown",i));return Nt({},n,r)}function lp(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Yo,Va=$n.current,_t($n,t),_t(er,er.current),!0}function gE(t,e,n){var r=t.stateNode;if(!r)throw Error(xe(169));n?(t=E3(t,e,Va),r.__reactInternalMemoizedMergedChildContext=t,Et(er),Et($n),_t($n,t)):Et(er),_t(er,n)}var Ri=null,Jm=!1,ny=!1;function O3(t){Ri===null?Ri=[t]:Ri.push(t)}function $I(t){Jm=!0,O3(t)}function ia(){if(!ny&&Ri!==null){ny=!0;var t=0,e=ht;try{var n=Ri;for(ht=1;t>=a,i-=a,Ii=1<<32-Yr(e)+i|n<$?(U=R,R=null):U=R.sibling;var I=p(_,R,S[$],O);if(I===null){R===null&&(R=U);break}t&&R&&I.alternate===null&&e(_,R),b=o(I,b,$),C===null?M=I:C.sibling=I,C=I,R=U}if($===S.length)return n(_,R),Ct&&ba(_,$),M;if(R===null){for(;$$?(U=R,R=null):U=R.sibling;var H=p(_,R,I.value,O);if(H===null){R===null&&(R=U);break}t&&R&&H.alternate===null&&e(_,R),b=o(H,b,$),C===null?M=H:C.sibling=H,C=H,R=U}if(I.done)return n(_,R),Ct&&ba(_,$),M;if(R===null){for(;!I.done;$++,I=S.next())I=h(_,I.value,O),I!==null&&(b=o(I,b,$),C===null?M=I:C.sibling=I,C=I);return Ct&&ba(_,$),M}for(R=r(_,R);!I.done;$++,I=S.next())I=m(R,_,$,I.value,O),I!==null&&(t&&I.alternate!==null&&R.delete(I.key===null?$:I.key),b=o(I,b,$),C===null?M=I:C.sibling=I,C=I);return t&&R.forEach(function(W){return e(_,W)}),Ct&&ba(_,$),M}function w(_,b,S,O){if(typeof S=="object"&&S!==null&&S.type===As&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case Wf:e:{for(var M=S.key,C=b;C!==null;){if(C.key===M){if(M=S.type,M===As){if(C.tag===7){n(_,C.sibling),b=i(C,S.props.children),b.return=_,_=b;break e}}else if(C.elementType===M||typeof M=="object"&&M!==null&&M.$$typeof===ho&&SE(M)===C.type){n(_,C.sibling),b=i(C,S.props),b.ref=su(_,C,S),b.return=_,_=b;break e}n(_,C);break}else e(_,C);C=C.sibling}S.type===As?(b=Ia(S.props.children,_.mode,O,S.key),b.return=_,_=b):(O=Gd(S.type,S.key,S.props,null,_.mode,O),O.ref=su(_,b,S),O.return=_,_=O)}return a(_);case Rs:e:{for(C=S.key;b!==null;){if(b.key===C)if(b.tag===4&&b.stateNode.containerInfo===S.containerInfo&&b.stateNode.implementation===S.implementation){n(_,b.sibling),b=i(b,S.children||[]),b.return=_,_=b;break e}else{n(_,b);break}else e(_,b);b=b.sibling}b=cy(S,_.mode,O),b.return=_,_=b}return a(_);case ho:return C=S._init,w(_,b,C(S._payload),O)}if(Su(S))return v(_,b,S,O);if(nu(S))return y(_,b,S,O);td(_,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,b!==null&&b.tag===6?(n(_,b.sibling),b=i(b,S),b.return=_,_=b):(n(_,b),b=uy(S,_.mode,O),b.return=_,_=b),a(_)):n(_,b)}return w}var dl=A3(!0),D3=A3(!1),af={},gi=ra(af),bc=ra(af),wc=ra(af);function Ra(t){if(t===af)throw Error(xe(174));return t}function mw(t,e){switch(_t(wc,e),_t(bc,t),_t(gi,af),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:O_(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=O_(e,t)}Et(gi),_t(gi,e)}function hl(){Et(gi),Et(bc),Et(wc)}function N3(t){Ra(wc.current);var e=Ra(gi.current),n=O_(e,t.type);e!==n&&(_t(bc,t),_t(gi,n))}function gw(t){bc.current===t&&(Et(gi),Et(bc))}var Rt=ra(0);function pp(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var ry=[];function vw(){for(var t=0;tn?n:4,t(!0);var r=iy.transition;iy.transition={};try{t(!1),e()}finally{ht=n,iy.transition=r}}function X3(){return Cr().memoizedState}function HI(t,e,n){var r=jo(t);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Q3(t))J3(e,n);else if(n=k3(t,e,n,r),n!==null){var i=Yn();qr(n,t,r,i),e4(n,e,r)}}function UI(t,e,n){var r=jo(t),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Q3(t))J3(e,i);else{var o=t.alternate;if(t.lanes===0&&(o===null||o.lanes===0)&&(o=e.lastRenderedReducer,o!==null))try{var a=e.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,Xr(s,a)){var l=e.interleaved;l===null?(i.next=i,hw(e)):(i.next=l.next,l.next=i),e.interleaved=i;return}}catch{}finally{}n=k3(t,e,i,r),n!==null&&(i=Yn(),qr(n,t,r,i),e4(n,e,r))}}function Q3(t){var e=t.alternate;return t===Dt||e!==null&&e===Dt}function J3(t,e){zu=mp=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function e4(t,e,n){if(n&4194240){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,Jb(t,n)}}var gp={readContext:Tr,useCallback:Rn,useContext:Rn,useEffect:Rn,useImperativeHandle:Rn,useInsertionEffect:Rn,useLayoutEffect:Rn,useMemo:Rn,useReducer:Rn,useRef:Rn,useState:Rn,useDebugValue:Rn,useDeferredValue:Rn,useTransition:Rn,useMutableSource:Rn,useSyncExternalStore:Rn,useId:Rn,unstable_isNewReconciler:!1},WI={readContext:Tr,useCallback:function(t,e){return si().memoizedState=[t,e===void 0?null:e],t},useContext:Tr,useEffect:OE,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,Vd(4194308,4,Y3.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Vd(4194308,4,t,e)},useInsertionEffect:function(t,e){return Vd(4,2,t,e)},useMemo:function(t,e){var n=si();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=si();return e=n!==void 0?n(e):e,r.memoizedState=r.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},r.queue=t,t=t.dispatch=HI.bind(null,Dt,t),[r.memoizedState,t]},useRef:function(t){var e=si();return t={current:t},e.memoizedState=t},useState:EE,useDebugValue:xw,useDeferredValue:function(t){return si().memoizedState=t},useTransition:function(){var t=EE(!1),e=t[0];return t=zI.bind(null,t[1]),si().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var r=Dt,i=si();if(Ct){if(n===void 0)throw Error(xe(407));n=n()}else{if(n=e(),pn===null)throw Error(xe(349));qa&30||$3(r,e,n)}i.memoizedState=n;var o={value:n,getSnapshot:e};return i.queue=o,OE(B3.bind(null,r,o,t),[t]),r.flags|=2048,Ec(9,j3.bind(null,r,o,n,e),void 0,null),n},useId:function(){var t=si(),e=pn.identifierPrefix;if(Ct){var n=Fi,r=Ii;n=(r&~(1<<32-Yr(r)-1)).toString(32)+n,e=":"+e+"R"+n,n=xc++,0<\/script>",t=t.removeChild(t.firstChild)):typeof r.is=="string"?t=a.createElement(n,{is:r.is}):(t=a.createElement(n),n==="select"&&(a=t,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):t=a.createElementNS(t,n),t[ci]=e,t[_c]=r,u4(t,e,!1,!1),e.stateNode=t;e:{switch(a=T_(n,r),n){case"dialog":bt("cancel",t),bt("close",t),i=r;break;case"iframe":case"object":case"embed":bt("load",t),i=r;break;case"video":case"audio":for(i=0;iml&&(e.flags|=128,r=!0,lu(o,!1),e.lanes=4194304)}else{if(!r)if(t=pp(a),t!==null){if(e.flags|=128,r=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),lu(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Ct)return An(e),null}else 2*Yt()-o.renderingStartTime>ml&&n!==1073741824&&(e.flags|=128,r=!0,lu(o,!1),e.lanes=4194304);o.isBackwards?(a.sibling=e.child,e.child=a):(n=o.last,n!==null?n.sibling=a:e.child=a,o.last=a)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=Yt(),e.sibling=null,n=Rt.current,_t(Rt,r?n&1|2:n&1),e):(An(e),null);case 22:case 23:return Cw(),r=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?sr&1073741824&&(An(e),e.subtreeFlags&6&&(e.flags|=8192)):An(e),null;case 24:return null;case 25:return null}throw Error(xe(156,e.tag))}function QI(t,e){switch(lw(e),e.tag){case 1:return tr(e.type)&&sp(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return hl(),Et(er),Et($n),vw(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return gw(e),null;case 13:if(Et(Rt),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(xe(340));fl()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Et(Rt),null;case 4:return hl(),null;case 10:return dw(e.type._context),null;case 22:case 23:return Cw(),null;case 24:return null;default:return null}}var rd=!1,In=!1,JI=typeof WeakSet=="function"?WeakSet:Set,$e=null;function Hs(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ft(t,e,r)}else n.current=null}function e0(t,e,n){try{n()}catch(r){Ft(t,e,r)}}var DE=!1;function e8(t,e){if(F_=rp,t=m3(),aw(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,c=0,f=0,h=t,p=null;t:for(;;){for(var m;h!==n||i!==0&&h.nodeType!==3||(s=a+i),h!==o||r!==0&&h.nodeType!==3||(l=a+r),h.nodeType===3&&(a+=h.nodeValue.length),(m=h.firstChild)!==null;)p=h,h=m;for(;;){if(h===t)break t;if(p===n&&++c===i&&(s=a),p===o&&++f===r&&(l=a),(m=h.nextSibling)!==null)break;h=p,p=h.parentNode}h=m}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for($_={focusedElem:t,selectionRange:n},rp=!1,$e=e;$e!==null;)if(e=$e,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,$e=t;else for(;$e!==null;){e=$e;try{var v=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var y=v.memoizedProps,w=v.memoizedState,_=e.stateNode,b=_.getSnapshotBeforeUpdate(e.elementType===e.type?y:jr(e.type,y),w);_.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var S=e.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(xe(163))}}catch(O){Ft(e,e.return,O)}if(t=e.sibling,t!==null){t.return=e.return,$e=t;break}$e=e.return}return v=DE,DE=!1,v}function Hu(t,e,n){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&t)===t){var o=i.destroy;i.destroy=void 0,o!==void 0&&e0(e,n,o)}i=i.next}while(i!==r)}}function ng(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function t0(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function d4(t){var e=t.alternate;e!==null&&(t.alternate=null,d4(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[ci],delete e[_c],delete e[z_],delete e[II],delete e[FI])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function h4(t){return t.tag===5||t.tag===3||t.tag===4}function NE(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||h4(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function n0(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=ap));else if(r!==4&&(t=t.child,t!==null))for(n0(t,e,n),t=t.sibling;t!==null;)n0(t,e,n),t=t.sibling}function r0(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(r!==4&&(t=t.child,t!==null))for(r0(t,e,n),t=t.sibling;t!==null;)r0(t,e,n),t=t.sibling}var Tn=null,Br=!1;function so(t,e,n){for(n=n.child;n!==null;)p4(t,e,n),n=n.sibling}function p4(t,e,n){if(mi&&typeof mi.onCommitFiberUnmount=="function")try{mi.onCommitFiberUnmount(Zm,n)}catch{}switch(n.tag){case 5:In||Hs(n,e);case 6:var r=Tn,i=Br;Tn=null,so(t,e,n),Tn=r,Br=i,Tn!==null&&(Br?(t=Tn,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):Tn.removeChild(n.stateNode));break;case 18:Tn!==null&&(Br?(t=Tn,n=n.stateNode,t.nodeType===8?ty(t.parentNode,n):t.nodeType===1&&ty(t,n),pc(t)):ty(Tn,n.stateNode));break;case 4:r=Tn,i=Br,Tn=n.stateNode.containerInfo,Br=!0,so(t,e,n),Tn=r,Br=i;break;case 0:case 11:case 14:case 15:if(!In&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&e0(n,e,a),i=i.next}while(i!==r)}so(t,e,n);break;case 1:if(!In&&(Hs(n,e),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Ft(n,e,s)}so(t,e,n);break;case 21:so(t,e,n);break;case 22:n.mode&1?(In=(r=In)||n.memoizedState!==null,so(t,e,n),In=r):so(t,e,n);break;default:so(t,e,n)}}function IE(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new JI),e.forEach(function(r){var i=u8.bind(null,t,r);n.has(r)||(n.add(r),r.then(i,i))})}}function $r(t,e){var n=e.deletions;if(n!==null)for(var r=0;ri&&(i=a),r&=~o}if(r=i,r=Yt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*n8(r/1960))-r,10t?16:t,xo===null)var r=!1;else{if(t=xo,xo=null,_p=0,ot&6)throw Error(xe(331));var i=ot;for(ot|=4,$e=t.current;$e!==null;){var o=$e,a=o.child;if($e.flags&16){var s=o.deletions;if(s!==null){for(var l=0;lYt()-Pw?Na(t,0):Ow|=n),nr(t,e)}function x4(t,e){e===0&&(t.mode&1?(e=Zf,Zf<<=1,!(Zf&130023424)&&(Zf=4194304)):e=1);var n=Yn();t=Vi(t,e),t!==null&&(nf(t,e,n),nr(t,n))}function l8(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),x4(t,n)}function u8(t,e){var n=0;switch(t.tag){case 13:var r=t.stateNode,i=t.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=t.stateNode;break;default:throw Error(xe(314))}r!==null&&r.delete(e),x4(t,n)}var S4;S4=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||er.current)Jn=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return Jn=!1,KI(t,e,n);Jn=!!(t.flags&131072)}else Jn=!1,Ct&&e.flags&1048576&&P3(e,cp,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;Yd(t,e),t=e.pendingProps;var i=cl(e,$n.current);Qs(e,n),i=_w(null,e,r,t,i,n);var o=bw();return e.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,tr(r)?(o=!0,lp(e)):o=!1,e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,pw(e),i.updater=eg,e.stateNode=i,i._reactInternals=e,q_(e,r,t,n),e=K_(null,e,r,!0,o,n)):(e.tag=0,Ct&&o&&sw(e),Wn(null,e,i,n),e=e.child),e;case 16:r=e.elementType;e:{switch(Yd(t,e),t=e.pendingProps,i=r._init,r=i(r._payload),e.type=r,i=e.tag=f8(r),t=jr(r,t),i){case 0:e=G_(null,e,r,t,n);break e;case 1:e=LE(null,e,r,t,n);break e;case 11:e=kE(null,e,r,t,n);break e;case 14:e=ME(null,e,r,jr(r.type,t),n);break e}throw Error(xe(306,r,""))}return e;case 0:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:jr(r,i),G_(t,e,r,i,n);case 1:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:jr(r,i),LE(t,e,r,i,n);case 3:e:{if(a4(e),t===null)throw Error(xe(387));r=e.pendingProps,o=e.memoizedState,i=o.element,M3(t,e),hp(e,r,null,n);var a=e.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},e.updateQueue.baseState=o,e.memoizedState=o,e.flags&256){i=pl(Error(xe(423)),e),e=RE(t,e,r,n,i);break e}else if(r!==i){i=pl(Error(xe(424)),e),e=RE(t,e,r,n,i);break e}else for(ur=Io(e.stateNode.containerInfo.firstChild),fr=e,Ct=!0,Hr=null,n=D3(e,null,r,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(fl(),r===i){e=Yi(t,e,n);break e}Wn(t,e,r,n)}e=e.child}return e;case 5:return N3(e),t===null&&W_(e),r=e.type,i=e.pendingProps,o=t!==null?t.memoizedProps:null,a=i.children,j_(r,i)?a=null:o!==null&&j_(r,o)&&(e.flags|=32),o4(t,e),Wn(t,e,a,n),e.child;case 6:return t===null&&W_(e),null;case 13:return s4(t,e,n);case 4:return mw(e,e.stateNode.containerInfo),r=e.pendingProps,t===null?e.child=dl(e,null,r,n):Wn(t,e,r,n),e.child;case 11:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:jr(r,i),kE(t,e,r,i,n);case 7:return Wn(t,e,e.pendingProps,n),e.child;case 8:return Wn(t,e,e.pendingProps.children,n),e.child;case 12:return Wn(t,e,e.pendingProps.children,n),e.child;case 10:e:{if(r=e.type._context,i=e.pendingProps,o=e.memoizedProps,a=i.value,_t(fp,r._currentValue),r._currentValue=a,o!==null)if(Xr(o.value,a)){if(o.children===i.children&&!er.current){e=Yi(t,e,n);break e}}else for(o=e.child,o!==null&&(o.return=e);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=zi(-1,n&-n),l.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var f=c.pending;f===null?l.next=l:(l.next=f.next,f.next=l),c.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),V_(o.return,n,e),s.lanes|=n;break}l=l.next}}else if(o.tag===10)a=o.type===e.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(xe(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),V_(a,n,e),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===e){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}Wn(t,e,i.children,n),e=e.child}return e;case 9:return i=e.type,r=e.pendingProps.children,Qs(e,n),i=Tr(i),r=r(i),e.flags|=1,Wn(t,e,r,n),e.child;case 14:return r=e.type,i=jr(r,e.pendingProps),i=jr(r.type,i),ME(t,e,r,i,n);case 15:return r4(t,e,e.type,e.pendingProps,n);case 17:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:jr(r,i),Yd(t,e),e.tag=1,tr(r)?(t=!0,lp(e)):t=!1,Qs(e,n),R3(e,r,i),q_(e,r,i,n),K_(null,e,r,!0,t,n);case 19:return l4(t,e,n);case 22:return i4(t,e,n)}throw Error(xe(156,e.tag))};function E4(t,e){return KM(t,e)}function c8(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Er(t,e,n,r){return new c8(t,e,n,r)}function Mw(t){return t=t.prototype,!(!t||!t.isReactComponent)}function f8(t){if(typeof t=="function")return Mw(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Gb)return 11;if(t===Kb)return 14}return 2}function Bo(t,e){var n=t.alternate;return n===null?(n=Er(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function Gd(t,e,n,r,i,o){var a=2;if(r=t,typeof t=="function")Mw(t)&&(a=1);else if(typeof t=="string")a=5;else e:switch(t){case As:return Ia(n.children,i,o,e);case Zb:a=8,i|=8;break;case v_:return t=Er(12,n,e,i|2),t.elementType=v_,t.lanes=o,t;case y_:return t=Er(13,n,e,i),t.elementType=y_,t.lanes=o,t;case __:return t=Er(19,n,e,i),t.elementType=__,t.lanes=o,t;case AM:return ig(n,i,o,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case LM:a=10;break e;case RM:a=9;break e;case Gb:a=11;break e;case Kb:a=14;break e;case ho:a=16,r=null;break e}throw Error(xe(130,t==null?t:typeof t,""))}return e=Er(a,n,e,i),e.elementType=t,e.type=r,e.lanes=o,e}function Ia(t,e,n,r){return t=Er(7,t,r,e),t.lanes=n,t}function ig(t,e,n,r){return t=Er(22,t,r,e),t.elementType=AM,t.lanes=n,t.stateNode={isHidden:!1},t}function uy(t,e,n){return t=Er(6,t,null,e),t.lanes=n,t}function cy(t,e,n){return e=Er(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function d8(t,e,n,r,i){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Wv(0),this.expirationTimes=Wv(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wv(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Lw(t,e,n,r,i,o,a,s,l){return t=new d8(t,e,n,s,l),e===1?(e=1,o===!0&&(e|=8)):e=0,o=Er(3,null,null,e),t.current=o,o.stateNode=t,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},pw(o),t}function h8(t,e,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}e(),t.exports=pr})(p5);const Fa=_M(Wa);var y8,WE=Wa;y8=WE.createRoot,WE.hydrateRoot;var xp={},_8={get exports(){return xp},set exports(t){xp=t}},C4={};/** * @license React * use-sync-external-store-shim.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 gl=Q;function b8(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var w8=typeof Object.is=="function"?Object.is:b8,x8=gl.useState,S8=gl.useEffect,E8=gl.useLayoutEffect,O8=gl.useDebugValue;function P8(t,e){var n=e(),r=x8({inst:{value:n,getSnapshot:e}}),i=r[0].inst,o=r[1];return E8(function(){i.value=n,i.getSnapshot=e,fy(i)&&o({inst:i})},[t,n,e]),S8(function(){return fy(i)&&o({inst:i}),t(function(){fy(i)&&o({inst:i})})},[t]),O8(n),n}function fy(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!w8(t,n)}catch{return!0}}function T8(t,e){return e()}var C8=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?T8:P8;C4.useSyncExternalStore=gl.useSyncExternalStore!==void 0?gl.useSyncExternalStore:C8;(function(t){t.exports=C4})(_8);var VE={},k8={get exports(){return VE},set exports(t){VE=t}},k4={};/** * @license React * use-sync-external-store-shim/with-selector.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var ug=Q,M8=xp;function L8(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var R8=typeof Object.is=="function"?Object.is:L8,A8=M8.useSyncExternalStore,D8=ug.useRef,N8=ug.useEffect,I8=ug.useMemo,F8=ug.useDebugValue;k4.useSyncExternalStoreWithSelector=function(t,e,n,r,i){var o=D8(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=I8(function(){function l(m){if(!c){if(c=!0,f=m,m=r(m),i!==void 0&&a.hasValue){var v=a.value;if(i(v,m))return h=v}return h=m}if(v=h,R8(f,m))return v;var y=r(m);return i!==void 0&&i(v,y)?v:(f=m,h=y)}var c=!1,f,h,p=n===void 0?null:n;return[function(){return l(e())},p===null?void 0:function(){return l(p())}]},[e,n,r,i]);var s=A8(t,o[0],o[1]);return N8(function(){a.hasValue=!0,a.value=s},[s]),F8(s),s};(function(t){t.exports=k4})(k8);function $8(t){t()}let M4=$8;const j8=t=>M4=t,B8=()=>M4,L4=Q.createContext(null),z8=()=>{throw new Error("uSES not initialized!")};function el(){return el=Object.assign||function(t){for(var e=1;e=0)&&(n[i]=t[i]);return n}var l0={},H8={get exports(){return l0},set exports(t){l0=t}},pt={};/** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var mn=typeof Symbol=="function"&&Symbol.for,Iw=mn?Symbol.for("react.element"):60103,Fw=mn?Symbol.for("react.portal"):60106,cg=mn?Symbol.for("react.fragment"):60107,fg=mn?Symbol.for("react.strict_mode"):60108,dg=mn?Symbol.for("react.profiler"):60114,hg=mn?Symbol.for("react.provider"):60109,pg=mn?Symbol.for("react.context"):60110,$w=mn?Symbol.for("react.async_mode"):60111,mg=mn?Symbol.for("react.concurrent_mode"):60111,gg=mn?Symbol.for("react.forward_ref"):60112,vg=mn?Symbol.for("react.suspense"):60113,U8=mn?Symbol.for("react.suspense_list"):60120,yg=mn?Symbol.for("react.memo"):60115,_g=mn?Symbol.for("react.lazy"):60116,W8=mn?Symbol.for("react.block"):60121,V8=mn?Symbol.for("react.fundamental"):60117,Y8=mn?Symbol.for("react.responder"):60118,q8=mn?Symbol.for("react.scope"):60119;function gr(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case Iw:switch(t=t.type,t){case $w:case mg:case cg:case dg:case fg:case vg:return t;default:switch(t=t&&t.$$typeof,t){case pg:case gg:case _g:case yg:case hg:return t;default:return e}}case Fw:return e}}}function R4(t){return gr(t)===mg}pt.AsyncMode=$w;pt.ConcurrentMode=mg;pt.ContextConsumer=pg;pt.ContextProvider=hg;pt.Element=Iw;pt.ForwardRef=gg;pt.Fragment=cg;pt.Lazy=_g;pt.Memo=yg;pt.Portal=Fw;pt.Profiler=dg;pt.StrictMode=fg;pt.Suspense=vg;pt.isAsyncMode=function(t){return R4(t)||gr(t)===$w};pt.isConcurrentMode=R4;pt.isContextConsumer=function(t){return gr(t)===pg};pt.isContextProvider=function(t){return gr(t)===hg};pt.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===Iw};pt.isForwardRef=function(t){return gr(t)===gg};pt.isFragment=function(t){return gr(t)===cg};pt.isLazy=function(t){return gr(t)===_g};pt.isMemo=function(t){return gr(t)===yg};pt.isPortal=function(t){return gr(t)===Fw};pt.isProfiler=function(t){return gr(t)===dg};pt.isStrictMode=function(t){return gr(t)===fg};pt.isSuspense=function(t){return gr(t)===vg};pt.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===cg||t===mg||t===dg||t===fg||t===vg||t===U8||typeof t=="object"&&t!==null&&(t.$$typeof===_g||t.$$typeof===yg||t.$$typeof===hg||t.$$typeof===pg||t.$$typeof===gg||t.$$typeof===V8||t.$$typeof===Y8||t.$$typeof===q8||t.$$typeof===W8)};pt.typeOf=gr;(function(t){t.exports=pt})(H8);var jw=l0,Z8={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},G8={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},K8={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},A4={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Bw={};Bw[jw.ForwardRef]=K8;Bw[jw.Memo]=A4;function YE(t){return jw.isMemo(t)?A4:Bw[t.$$typeof]||Z8}var X8=Object.defineProperty,Q8=Object.getOwnPropertyNames,qE=Object.getOwnPropertySymbols,J8=Object.getOwnPropertyDescriptor,eF=Object.getPrototypeOf,ZE=Object.prototype;function D4(t,e,n){if(typeof e!="string"){if(ZE){var r=eF(e);r&&r!==ZE&&D4(t,r,n)}var i=Q8(e);qE&&(i=i.concat(qE(e)));for(var o=YE(t),a=YE(e),s=0;se(i(...o)))}return n}function c0(t){return function(n){const r=t(n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function KE(t){return t.dependsOnOwnProps?Boolean(t.dependsOnOwnProps):t.length!==1}function N4(t,e){return function(r,{displayName:i}){const o=function(s,l){return o.dependsOnOwnProps?o.mapToProps(s,l):o.mapToProps(s,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(s,l){o.mapToProps=t,o.dependsOnOwnProps=KE(t);let c=o(s,l);return typeof c=="function"&&(o.mapToProps=c,o.dependsOnOwnProps=KE(c),c=o(s,l)),c},o}}function Uw(t,e){return(n,r)=>{throw new Error(`Invalid value of type ${typeof t} for ${e} argument when connecting component ${r.wrappedComponentName}.`)}}function uF(t){return t&&typeof t=="object"?c0(e=>lF(t,e)):t?typeof t=="function"?N4(t):Uw(t,"mapDispatchToProps"):c0(e=>({dispatch:e}))}function cF(t){return t?typeof t=="function"?N4(t):Uw(t,"mapStateToProps"):c0(()=>({}))}function fF(t,e,n){return el({},n,t,e)}function dF(t){return function(n,{displayName:r,areMergedPropsEqual:i}){let o=!1,a;return function(l,c,f){const h=t(l,c,f);return o?i(h,a)||(a=h):(o=!0,a=h),a}}}function hF(t){return t?typeof t=="function"?dF(t):Uw(t,"mergeProps"):()=>fF}function pF(){const t=B8();let e=null,n=null;return{clear(){e=null,n=null},notify(){t(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){let r=[],i=e;for(;i;)r.push(i),i=i.next;return r},subscribe(r){let i=!0,o=n={callback:r,next:null,prev:n};return o.prev?o.prev.next=o:e=o,function(){!i||e===null||(i=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}const XE={notify(){},get:()=>[]};function I4(t,e){let n,r=XE;function i(h){return l(),r.subscribe(h)}function o(){r.notify()}function a(){f.onStateChange&&f.onStateChange()}function s(){return Boolean(n)}function l(){n||(n=e?e.addNestedSub(a):t.subscribe(a),r=pF())}function c(){n&&(n(),n=void 0,r.clear(),r=XE)}const f={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:a,isSubscribed:s,trySubscribe:l,tryUnsubscribe:c,getListeners:()=>r};return f}const mF=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Sp=mF?Q.useLayoutEffect:Q.useEffect;function QE(t,e){return t===e?t!==0||e!==0||1/t===1/e:t!==t&&e!==e}function dy(t,e){if(QE(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;const n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(let i=0;i{F4=t},yF=[null,null];function _F(t,e,n){Sp(()=>t(...e),n)}function bF(t,e,n,r,i,o){t.current=r,n.current=!1,i.current&&(i.current=null,o())}function wF(t,e,n,r,i,o,a,s,l,c,f){if(!t)return()=>{};let h=!1,p=null;const m=()=>{if(h||!s.current)return;const y=e.getState();let w,_;try{w=r(y,i.current)}catch(b){_=b,p=b}_||(p=null),w===o.current?a.current||c():(o.current=w,l.current=w,a.current=!0,f())};return n.onStateChange=m,n.trySubscribe(),m(),()=>{if(h=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}function xF(t,e){return t===e}function $ue(t,e,n,{pure:r,areStatesEqual:i=xF,areOwnPropsEqual:o=dy,areStatePropsEqual:a=dy,areMergedPropsEqual:s=dy,forwardRef:l=!1,context:c=L4}={}){const f=c,h=cF(t),p=uF(e),m=hF(n),v=Boolean(t);return w=>{const _=w.displayName||w.name||"Component",b=`Connect(${_})`,S={shouldHandleStateChanges:v,displayName:b,wrappedComponentName:_,WrappedComponent:w,initMapStateToProps:h,initMapDispatchToProps:p,initMergeProps:m,areStatesEqual:i,areStatePropsEqual:a,areOwnPropsEqual:o,areMergedPropsEqual:s};function O(R){const[$,U,I]=Q.useMemo(()=>{const{reactReduxForwardedRef:Z}=R,ie=Nw(R,gF);return[R.context,Z,ie]},[R]),H=Q.useMemo(()=>$&&$.Consumer&&u0.isContextConsumer(j.createElement($.Consumer,null))?$:f,[$,f]),W=Q.useContext(H),J=Boolean(R.store)&&Boolean(R.store.getState)&&Boolean(R.store.dispatch),Y=Boolean(W)&&Boolean(W.store),X=J?R.store:W.store,re=Y?W.getServerState:X.getState,se=Q.useMemo(()=>sF(X.dispatch,S),[X]),[V,N]=Q.useMemo(()=>{if(!v)return yF;const Z=I4(X,J?void 0:W.subscription),ie=Z.notifyNestedSubs.bind(Z);return[Z,ie]},[X,J,W]),A=Q.useMemo(()=>J?W:el({},W,{subscription:V}),[J,W,V]),B=Q.useRef(),ee=Q.useRef(I),z=Q.useRef(),q=Q.useRef(!1);Q.useRef(!1);const ne=Q.useRef(!1),ae=Q.useRef();Sp(()=>(ne.current=!0,()=>{ne.current=!1}),[]);const he=Q.useMemo(()=>()=>z.current&&I===ee.current?z.current:se(X.getState(),I),[X,I]),P=Q.useMemo(()=>ie=>V?wF(v,X,V,se,ee,B,q,ne,z,N,ie):()=>{},[V]);_F(bF,[ee,B,q,I,z,N]);let k;try{k=F4(P,he,re?()=>se(re(),I):he)}catch(Z){throw ae.current&&(Z.message+=` The error may be correlated with this previous error: ${ae.current.stack} `),Z}Sp(()=>{ae.current=void 0,z.current=void 0,B.current=k});const D=Q.useMemo(()=>j.createElement(w,el({},k,{ref:U})),[U,w,k]);return Q.useMemo(()=>v?j.createElement(H.Provider,{value:A},D):D,[H,D,A])}const C=j.memo(O);if(C.WrappedComponent=w,C.displayName=O.displayName=b,l){const $=j.forwardRef(function(I,H){return j.createElement(C,el({},I,{reactReduxForwardedRef:H}))});return $.displayName=b,$.WrappedComponent=w,GE($,w)}return GE(C,w)}}function jue({store:t,context:e,children:n,serverState:r}){const i=Q.useMemo(()=>{const s=I4(t);return{store:t,subscription:s,getServerState:r?()=>r:void 0}},[t,r]),o=Q.useMemo(()=>t.getState(),[t]);Sp(()=>{const{subscription:s}=i;return s.onStateChange=s.notifyNestedSubs,s.trySubscribe(),o!==t.getState()&&s.notifyNestedSubs(),()=>{s.tryUnsubscribe(),s.onStateChange=void 0}},[i,o]);const a=e||L4;return j.createElement(a.Provider,{value:i},n)}vF(xp.useSyncExternalStore);j8(Wa.unstable_batchedUpdates);/** * @remix-run/router v1.2.1 * * 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 Ep(){return Ep=Object.assign?Object.assign.bind():function(t){for(var e=1;e"u")throw new Error(e)}function EF(){return Math.random().toString(36).substr(2,8)}function eO(t){return{usr:t.state,key:t.key}}function f0(t,e,n,r){return n===void 0&&(n=null),Ep({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?Dl(e):e,{state:n,key:e&&e.key||r||EF()})}function Pc(t){let{pathname:e="/",search:n="",hash:r=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Dl(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substr(r),t=t.substr(0,r)),t&&(e.pathname=t)}return e}function OF(t){let e=typeof window<"u"&&typeof window.location<"u"&&window.location.origin!=="null"?window.location.origin:window.location.href,n=typeof t=="string"?t:Pc(t);return tn(e,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,e)}function PF(t,e,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=So.Pop,l=null;function c(){s=So.Pop,l&&l({action:s,location:p.location})}function f(m,v){s=So.Push;let y=f0(p.location,m,v);n&&n(y,m);let w=eO(y),_=p.createHref(y);try{a.pushState(w,"",_)}catch{i.location.assign(_)}o&&l&&l({action:s,location:p.location})}function h(m,v){s=So.Replace;let y=f0(p.location,m,v);n&&n(y,m);let w=eO(y),_=p.createHref(y);a.replaceState(w,"",_),o&&l&&l({action:s,location:p.location})}let p={get action(){return s},get location(){return t(i,a)},listen(m){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(JE,c),l=m,()=>{i.removeEventListener(JE,c),l=null}},createHref(m){return e(i,m)},encodeLocation(m){let v=OF(typeof m=="string"?m:Pc(m));return{pathname:v.pathname,search:v.search,hash:v.hash}},push:f,replace:h,go(m){return a.go(m)}};return p}var tO;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(tO||(tO={}));function TF(t,e,n){n===void 0&&(n="/");let r=typeof e=="string"?Dl(e):e,i=B4(r.pathname||"/",n);if(i==null)return null;let o=$4(t);CF(o);let a=null;for(let s=0;a==null&&s{let l={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};l.relativePath.startsWith("/")&&(tn(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=zo([r,l.relativePath]),f=n.concat(l);o.children&&o.children.length>0&&(tn(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),$4(o.children,e,f,c)),!(o.path==null&&!o.index)&&e.push({path:c,score:NF(c,o.index),routesMeta:f})};return t.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,a);else for(let l of j4(o.path))i(o,a,l)}),e}function j4(t){let e=t.split("/");if(e.length===0)return[];let[n,...r]=e,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let a=j4(r.join("/")),s=[];return s.push(...a.map(l=>l===""?o:[o,l].join("/"))),i&&s.push(...a),s.map(l=>t.startsWith("/")&&l===""?"/":l)}function CF(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:IF(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const kF=/^:\w+$/,MF=3,LF=2,RF=1,AF=10,DF=-2,nO=t=>t==="*";function NF(t,e){let n=t.split("/"),r=n.length;return n.some(nO)&&(r+=DF),e&&(r+=LF),n.filter(i=>!nO(i)).reduce((i,o)=>i+(kF.test(o)?MF:o===""?RF:AF),r)}function IF(t,e){return t.length===e.length&&t.slice(0,-1).every((r,i)=>r===e[i])?t[t.length-1]-e[e.length-1]:0}function FF(t,e){let{routesMeta:n}=t,r={},i="/",o=[];for(let a=0;a{if(f==="*"){let p=s[h]||"";a=o.slice(0,o.length-p.length).replace(/(.)\/+$/,"$1")}return c[f]=zF(s[h]||"",f),c},{}),pathname:o,pathnameBase:a,pattern:t}}function jF(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),Ww(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let r=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(a,s)=>(r.push(s),"/([^\\/]+)"));return t.endsWith("*")?(r.push("*"),i+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":t!==""&&t!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),r]}function BF(t){try{return decodeURI(t)}catch(e){return Ww(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function zF(t,e){try{return decodeURIComponent(t)}catch(n){return Ww(!1,'The value for the URL param "'+e+'" will not be decoded because'+(' the string "'+t+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),t}}function B4(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&r!=="/"?null:t.slice(n)||"/"}function Ww(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function HF(t,e){e===void 0&&(e="/");let{pathname:n,search:r="",hash:i=""}=typeof t=="string"?Dl(t):t;return{pathname:n?n.startsWith("/")?n:UF(n,e):e,search:VF(r),hash:YF(i)}}function UF(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function hy(t,e,n,r){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` 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 z4(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function H4(t,e,n,r){r===void 0&&(r=!1);let i;typeof t=="string"?i=Dl(t):(i=Ep({},t),tn(!i.pathname||!i.pathname.includes("?"),hy("?","pathname","search",i)),tn(!i.pathname||!i.pathname.includes("#"),hy("#","pathname","hash",i)),tn(!i.search||!i.search.includes("#"),hy("#","search","hash",i)));let o=t===""||i.pathname==="",a=o?"/":i.pathname,s;if(r||a==null)s=n;else{let h=e.length-1;if(a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),h-=1;i.pathname=p.join("/")}s=h>=0?e[h]:"/"}let l=HF(i,s),c=a&&a!=="/"&&a.endsWith("/"),f=(o||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||f)&&(l.pathname+="/"),l}const zo=t=>t.join("/").replace(/\/\/+/g,"/"),WF=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),VF=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,YF=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;class qF{constructor(e,n,r,i){i===void 0&&(i=!1),this.status=e,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function ZF(t){return t instanceof qF}const GF=["post","put","patch","delete"];[...GF];/** * React Router v6.6.1 * * 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 d0(){return d0=Object.assign?Object.assign.bind():function(t){for(var e=1;e{i.value=r,i.getSnapshot=e,py(i)&&o({inst:i})},[t,r,e]),JF(()=>(py(i)&&o({inst:i}),t(()=>{py(i)&&o({inst:i})})),[t]),t$(r),r}function py(t){const e=t.getSnapshot,n=t.value;try{const r=e();return!XF(n,r)}catch{return!0}}function r$(t,e,n){return e()}const i$=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",o$=!i$,a$=o$?r$:n$;"useSyncExternalStore"in p_&&(t=>t.useSyncExternalStore)(p_);const s$=Q.createContext(null),l$=Q.createContext(null),Mg=Q.createContext(null),sf=Q.createContext(null),Lg=Q.createContext(null),ls=Q.createContext({outlet:null,matches:[]}),U4=Q.createContext(null);function u$(t,e){let{relative:n}=e===void 0?{}:e;Nl()||tn(!1);let{basename:r,navigator:i}=Q.useContext(sf),{hash:o,pathname:a,search:s}=Vw(t,{relative:n}),l=a;return r!=="/"&&(l=a==="/"?r:zo([r,a])),i.createHref({pathname:l,search:s,hash:o})}function Nl(){return Q.useContext(Lg)!=null}function lf(){return Nl()||tn(!1),Q.useContext(Lg).location}function W4(){Nl()||tn(!1);let{basename:t,navigator:e}=Q.useContext(sf),{matches:n}=Q.useContext(ls),{pathname:r}=lf(),i=JSON.stringify(z4(n).map(s=>s.pathnameBase)),o=Q.useRef(!1);return Q.useEffect(()=>{o.current=!0}),Q.useCallback(function(s,l){if(l===void 0&&(l={}),!o.current)return;if(typeof s=="number"){e.go(s);return}let c=H4(s,JSON.parse(i),r,l.relative==="path");t!=="/"&&(c.pathname=c.pathname==="/"?t:zo([t,c.pathname])),(l.replace?e.replace:e.push)(c,l.state,l)},[t,e,i,r])}function Bue(){let{matches:t}=Q.useContext(ls),e=t[t.length-1];return e?e.params:{}}function Vw(t,e){let{relative:n}=e===void 0?{}:e,{matches:r}=Q.useContext(ls),{pathname:i}=lf(),o=JSON.stringify(z4(r).map(a=>a.pathnameBase));return Q.useMemo(()=>H4(t,JSON.parse(o),i,n==="path"),[t,o,i,n])}function c$(t,e){Nl()||tn(!1);let{navigator:n}=Q.useContext(sf),r=Q.useContext(Mg),{matches:i}=Q.useContext(ls),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let s=o?o.pathnameBase:"/";o&&o.route;let l=lf(),c;if(e){var f;let y=typeof e=="string"?Dl(e):e;s==="/"||(f=y.pathname)!=null&&f.startsWith(s)||tn(!1),c=y}else c=l;let h=c.pathname||"/",p=s==="/"?h:h.slice(s.length)||"/",m=TF(t,{pathname:p}),v=p$(m&&m.map(y=>Object.assign({},y,{params:Object.assign({},a,y.params),pathname:zo([s,n.encodeLocation?n.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?s:zo([s,n.encodeLocation?n.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),i,r||void 0);return e&&v?Q.createElement(Lg.Provider,{value:{location:d0({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:So.Pop}},v):v}function f$(){let t=y$(),e=ZF(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r};return Q.createElement(Q.Fragment,null,Q.createElement("h2",null,"Unhandled Thrown Error!"),Q.createElement("h3",{style:{fontStyle:"italic"}},e),n?Q.createElement("pre",{style:i},n):null,Q.createElement("p",null,"💿 Hey developer 👋"),Q.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",Q.createElement("code",{style:o},"errorElement")," props on ",Q.createElement("code",{style:o},"")))}class d$ extends Q.Component{constructor(e){super(e),this.state={location:e.location,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location?{error:e.error,location:e.location}:{error:e.error||n.error,location:n.location}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error?Q.createElement(ls.Provider,{value:this.props.routeContext},Q.createElement(U4.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function h$(t){let{routeContext:e,match:n,children:r}=t,i=Q.useContext(s$);return i&&n.route.errorElement&&(i._deepestRenderedBoundaryId=n.route.id),Q.createElement(ls.Provider,{value:e},r)}function p$(t,e,n){if(e===void 0&&(e=[]),t==null)if(n!=null&&n.errors)t=n.matches;else return null;let r=t,i=n==null?void 0:n.errors;if(i!=null){let o=r.findIndex(a=>a.route.id&&(i==null?void 0:i[a.route.id]));o>=0||tn(!1),r=r.slice(0,Math.min(r.length,o+1))}return r.reduceRight((o,a,s)=>{let l=a.route.id?i==null?void 0:i[a.route.id]:null,c=n?a.route.errorElement||Q.createElement(f$,null):null,f=e.concat(r.slice(0,s+1)),h=()=>Q.createElement(h$,{match:a,routeContext:{outlet:o,matches:f}},l?c:a.route.element!==void 0?a.route.element:o);return n&&(a.route.errorElement||s===0)?Q.createElement(d$,{location:n.location,component:c,error:l,children:h(),routeContext:{outlet:null,matches:f}}):h()},null)}var rO;(function(t){t.UseRevalidator="useRevalidator"})(rO||(rO={}));var Op;(function(t){t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator"})(Op||(Op={}));function m$(t){let e=Q.useContext(Mg);return e||tn(!1),e}function g$(t){let e=Q.useContext(ls);return e||tn(!1),e}function v$(t){let e=g$(),n=e.matches[e.matches.length-1];return n.route.id||tn(!1),n.route.id}function y$(){var t;let e=Q.useContext(U4),n=m$(Op.UseRouteError),r=v$(Op.UseRouteError);return e||((t=n.errors)==null?void 0:t[r])}function zue(t){let{to:e,replace:n,state:r,relative:i}=t;Nl()||tn(!1);let o=Q.useContext(Mg),a=W4();return Q.useEffect(()=>{o&&o.navigation.state!=="idle"||a(e,{replace:n,state:r,relative:i})}),null}function _$(t){tn(!1)}function b$(t){let{basename:e="/",children:n=null,location:r,navigationType:i=So.Pop,navigator:o,static:a=!1}=t;Nl()&&tn(!1);let s=e.replace(/^\/*/,"/"),l=Q.useMemo(()=>({basename:s,navigator:o,static:a}),[s,o,a]);typeof r=="string"&&(r=Dl(r));let{pathname:c="/",search:f="",hash:h="",state:p=null,key:m="default"}=r,v=Q.useMemo(()=>{let y=B4(c,s);return y==null?null:{pathname:y,search:f,hash:h,state:p,key:m}},[s,c,f,h,p,m]);return v==null?null:Q.createElement(sf.Provider,{value:l},Q.createElement(Lg.Provider,{children:n,value:{location:v,navigationType:i}}))}function Hue(t){let{children:e,location:n}=t,r=Q.useContext(l$),i=r&&!e?r.router.routes:h0(e);return c$(i,n)}var iO;(function(t){t[t.pending=0]="pending",t[t.success=1]="success",t[t.error=2]="error"})(iO||(iO={}));new Promise(()=>{});function h0(t,e){e===void 0&&(e=[]);let n=[];return Q.Children.forEach(t,(r,i)=>{if(!Q.isValidElement(r))return;if(r.type===Q.Fragment){n.push.apply(n,h0(r.props.children,e));return}r.type!==_$&&tn(!1),!r.props.index||!r.props.children||tn(!1);let o=[...e,i],a={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,hasErrorBoundary:r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle};r.props.children&&(a.children=h0(r.props.children,o)),n.push(a)}),n}/** * React Router DOM v6.6.1 * * 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 Pp(){return Pp=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(n[i]=t[i]);return n}function w$(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function x$(t,e){return t.button===0&&(!e||e==="_self")&&!w$(t)}const S$=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],E$=["aria-current","caseSensitive","className","end","style","to","children"];function Uue(t){let{basename:e,children:n,window:r}=t,i=Q.useRef();i.current==null&&(i.current=SF({window:r,v5Compat:!0}));let o=i.current,[a,s]=Q.useState({action:o.action,location:o.location});return Q.useLayoutEffect(()=>o.listen(s),[o]),Q.createElement(b$,{basename:e,children:n,location:a.location,navigationType:a.action,navigator:o})}const O$=Q.forwardRef(function(e,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:s,target:l,to:c,preventScrollReset:f}=e,h=V4(e,S$),p=u$(c,{relative:i}),m=P$(c,{replace:a,state:s,target:l,preventScrollReset:f,relative:i});function v(y){r&&r(y),y.defaultPrevented||m(y)}return Q.createElement("a",Pp({},h,{href:p,onClick:o?r:v,ref:n,target:l}))}),Wue=Q.forwardRef(function(e,n){let{"aria-current":r="page",caseSensitive:i=!1,className:o="",end:a=!1,style:s,to:l,children:c}=e,f=V4(e,E$),h=Vw(l,{relative:f.relative}),p=lf(),m=Q.useContext(Mg),{navigator:v}=Q.useContext(sf),y=v.encodeLocation?v.encodeLocation(h).pathname:h.pathname,w=p.pathname,_=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;i||(w=w.toLowerCase(),_=_?_.toLowerCase():null,y=y.toLowerCase());let b=w===y||!a&&w.startsWith(y)&&w.charAt(y.length)==="/",S=_!=null&&(_===y||!a&&_.startsWith(y)&&_.charAt(y.length)==="/"),O=b?r:void 0,M;typeof o=="function"?M=o({isActive:b,isPending:S}):M=[o,b?"active":null,S?"pending":null].filter(Boolean).join(" ");let C=typeof s=="function"?s({isActive:b,isPending:S}):s;return Q.createElement(O$,Pp({},f,{"aria-current":O,className:M,ref:n,style:C,to:l}),typeof c=="function"?c({isActive:b,isPending:S}):c)});var oO;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmitImpl="useSubmitImpl",t.UseFetcher="useFetcher"})(oO||(oO={}));var aO;(function(t){t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(aO||(aO={}));function P$(t,e){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a}=e===void 0?{}:e,s=W4(),l=lf(),c=Vw(t,{relative:a});return Q.useCallback(f=>{if(x$(f,n)){f.preventDefault();let h=r!==void 0?r:Pc(l)===Pc(c);s(t,{replace:h,state:i,preventScrollReset:o,relative:a})}},[l,s,c,r,i,n,t,o,a])}var Qr,wi=".",Y4="function",q4="string",Z4="__global__",Yw="Provider",T$=0,qw=Array.prototype.slice,C$=function(e,n){var r=e[n];if(r===void 0&&Qr.config.strict)throw new Error("Bottle was unable to resolve a service. `"+n+"` is undefined.");return r},Rg=function(e){var n;return this.nested[e]||(n=Qr.pop(),this.nested[e]=n,this.factory(e,function(){return n.container})),this.nested[e]},G4=function(e){return e.split(wi).reduce(C$,this)},k$=function(e,n,r,i){var o={configurable:!0,enumerable:!0};return e.length?o.get=function(){var s=0,l=function(f){if(f)throw f;e[s]&&e[s++](r,l)};return l(),r}:(o.value=r,o.writable=!0),Object.defineProperty(i,n,o),i[n]},M$=function(e,n){var r,i;return typeof e===Y4&&(n=e,e=Z4),r=e.split(wi),i=r.shift(),r.length?Rg.call(this,i).middleware(r.join(wi),n):(this.middlewares[i]||(this.middlewares[i]=[]),this.middlewares[i].push(n)),this},L$=function(e,n){return n(e)},sO=function(e,n){return(e[n]||[]).concat(e.__global__||[])},R$=function(e,n){var r,i,o,a,s;return this.id,o=this.container,a=this.decorators,s=this.middlewares,r=e+Yw,i=Object.create(null),i[r]={configurable:!0,enumerable:!0,get:function(){var c=new n;return delete o[r],o[r]=c,c}},i[e]={configurable:!0,enumerable:!0,get:function(){var c=o[r],f;return c&&(f=sO(a,e).reduce(L$,c.$get(o)),delete o[r],delete o[e]),f===void 0?f:k$(sO(s,e),e,f,o)}},Object.defineProperties(o,i),this},K4=function(e,n){var r,i;return r=e.split(wi),this.providerMap[e]&&r.length===1&&!this.container[e+Yw]?console.error(e+" provider already instantiated."):(this.originalProviders[e]=n,this.providerMap[e]=!0,i=r.shift(),r.length?(Rg.call(this,i).provider(r.join(wi),n),this):R$.call(this,i,n))},Zw=function(e,n){return K4.call(this,e,function(){this.$get=n})},X4=function(e,n,r){var i=arguments.length>3?qw.call(arguments,3):[],o=this;return Zw.call(this,e,function(){var s=n,l=i.map(G4,o.container);return r?new(n.bind.apply(n,[null].concat(l))):s.apply(null,l)})},A$=function(e,n){return X4.apply(this,[e,n,!0].concat(qw.call(arguments,2)))},D$=function(e,n){return X4.apply(this,[e,n,!1].concat(qw.call(arguments,2)))},Q4=function(e,n){Object.defineProperty(this,e,{configurable:!0,enumerable:!0,value:n,writable:!0})},J4=function(e,n){var r=e[n];return r||(r={},Q4.call(e,n,r)),r},N$=function(e,n){var r;return r=e.split(wi),e=r.pop(),Q4.call(r.reduce(J4,this.container),e,n),this},I$=function(e,n){Object.defineProperty(this,e,{configurable:!1,enumerable:!0,value:n,writable:!1})},F$=function(e,n){var r=e.split(wi);return e=r.pop(),I$.call(r.reduce(J4,this.container),e,n),this},eL=function(e,n){var r,i;return typeof e===Y4&&(n=e,e=Z4),r=e.split(wi),i=r.shift(),r.length?Rg.call(this,i).decorator(r.join(wi),n):(this.decorators[i]||(this.decorators[i]=[]),this.decorators[i].push(n)),this},$$=function(e){return this.deferred.push(e),this},j$=function(e){return(e||[]).map(G4,this.container)},B$=function(e,n){return Zw.call(this,e,function(i){return{instance:n.bind(n,i)}})},z$=function(e){return!/^\$(?:decorator|register|list)$|Provider$/.test(e)},Gw=function(e){return Object.keys(e||this.container||{}).filter(z$)},Tp={},H$=function(e){var n;return typeof e===q4?(n=Tp[e],n||(Tp[e]=n=new Qr,n.constant("BOTTLE_NAME",e)),n):new Qr},U$=function(e){typeof e===q4?delete Tp[e]:Tp={}},tL=function(e){var n=e.$value===void 0?e:e.$value;return this[e.$type||"service"].apply(this,[e.$name,n].concat(e.$inject||[]))},lO=function(e){delete this.providerMap[e],delete this.container[e],delete this.container[e+Yw]},W$=function(e){var n=this.originalProviders,r=Array.isArray(e);Object.keys(this.originalProviders).forEach(function(o){if(!(r&&e.indexOf(o)===-1)){var a=o.split(wi);a.length>1&&a.forEach(lO,Rg.call(this,a[0])),lO.call(this,o),this.provider(o,n[o])}},this)},V$=function(e){return this.deferred.forEach(function(r){r(e)}),this};Qr=function t(e){if(!(this instanceof t))return t.pop(e);this.id=T$++,this.decorators={},this.middlewares={},this.nested={},this.providerMap={},this.originalProviders={},this.deferred=[],this.container={$decorator:eL.bind(this),$register:tL.bind(this),$list:Gw.bind(this)}};Qr.prototype={constant:F$,decorator:eL,defer:$$,digest:j$,factory:Zw,instanceFactory:B$,list:Gw,middleware:M$,provider:K4,resetProviders:W$,register:tL,resolve:V$,service:A$,serviceFactory:D$,value:N$};Qr.pop=H$;Qr.clear=U$;Qr.list=Gw;Qr.config={strict:!1};const Vue=Qr;var Y$=function(){return!0};const Yue=Y$;function wt(t){return t!=null&&typeof t=="object"&&t["@@functional/placeholder"]===!0}function dt(t){return function e(n){return arguments.length===0||wt(n)?e:t.apply(this,arguments)}}function it(t){return function e(n,r){switch(arguments.length){case 0:return e;case 1:return wt(n)?e:dt(function(i){return t(n,i)});default:return wt(n)&&wt(r)?e:wt(n)?dt(function(i){return t(i,r)}):wt(r)?dt(function(i){return t(n,i)}):t(n,r)}}}function q$(t,e){t=t||[],e=e||[];var n,r=t.length,i=e.length,o=[];for(n=0;n=arguments.length)?s=e[a]:(s=arguments[i],i+=1),r[a]=s,wt(s)||(o-=1),a+=1}return o<=0?n.apply(this,r):Il(o,Ag(t,r,n))}}var Z$=it(function(e,n){return e===1?dt(n):Il(e,Ag(e,[],n))});const Cp=Z$;function oa(t){return function e(n,r,i){switch(arguments.length){case 0:return e;case 1:return wt(n)?e:it(function(o,a){return t(n,o,a)});case 2:return wt(n)&&wt(r)?e:wt(n)?it(function(o,a){return t(o,r,a)}):wt(r)?it(function(o,a){return t(n,o,a)}):dt(function(o){return t(n,r,o)});default:return wt(n)&&wt(r)&&wt(i)?e:wt(n)&&wt(r)?it(function(o,a){return t(o,a,i)}):wt(n)&&wt(i)?it(function(o,a){return t(o,r,a)}):wt(r)&&wt(i)?it(function(o,a){return t(n,o,a)}):wt(n)?dt(function(o){return t(o,r,i)}):wt(r)?dt(function(o){return t(n,o,i)}):wt(i)?dt(function(o){return t(n,r,o)}):t(n,r,i)}}}const uf=Array.isArray||function(e){return e!=null&&e.length>=0&&Object.prototype.toString.call(e)==="[object Array]"};function G$(t){return t!=null&&typeof t["@@transducer/step"]=="function"}function Kw(t,e,n){return function(){if(arguments.length===0)return n();var r=Array.prototype.slice.call(arguments,0),i=r.pop();if(!uf(i)){for(var o=0;oe?n:e});const X$=K$;function Kd(t,e){for(var n=0,r=e.length,i=Array(r);n0?e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1):!1});const nL=Q$;var J$=function(){function t(e){this.f=e}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(e){return e},t.prototype["@@transducer/step"]=function(e,n){return this.f(e,n)},t}();function e7(t){return new J$(t)}var t7=it(function(e,n){return Il(e.length,function(){return e.apply(n,arguments)})});const n7=t7;function r7(t,e,n){for(var r=0,i=n.length;r=0;)n=hO[r],cr(n,e)&&!u7(i,n)&&(i[i.length]=n),r-=1;return i});const Ka=c7;var f7=it(Kw(["fantasy-land/map","map"],a7,function(e,n){switch(Object.prototype.toString.call(n)){case"[object Function]":return Cp(n.length,function(){return e.call(this,n.apply(this,arguments))});case"[object Object]":return Fl(function(r,i){return r[i]=e(n[i]),r},{},Ka(n));default:return Kd(e,n)}}));const Xw=f7,p0=Number.isInteger||function(e){return e<<0===e};var d7=it(function(e,n){var r=e<0?n.length+e:e;return Dg(n)?n.charAt(r):n[r]});const iL=d7;var h7=it(function(e,n){return e.map(function(r){for(var i=n,o=0,a;o1){var o=!P7(r)&&cr(i,r)?r[i]:p0(e[1])?[]:{};n=t(Array.prototype.slice.call(e,1),n,o)}if(p0(i)&&uf(r)){var a=[].concat(r);return a[i]=n,a}else return E7(i,n,r)});const Kue=T7;function C7(t){var e=Object.prototype.toString.call(t);return e==="[object Function]"||e==="[object AsyncFunction]"||e==="[object GeneratorFunction]"||e==="[object AsyncGeneratorFunction]"}var k7=it(function(e,n){var r=Cp(e,n);return Cp(e,function(){return Fl(w7,Xw(r,arguments[0]),Array.prototype.slice.call(arguments,1))})});const M7=k7;var L7=dt(function(e){return M7(e.length,e)});const R7=L7;function A7(t){return function e(n){for(var r,i,o,a=[],s=0,l=n.length;s=0;){if(n[o]===t)return r[o]===e;o-=1}switch(i){case"Map":return t.size!==e.size?!1:vO(t.entries(),e.entries(),n.concat([t]),r.concat([e]));case"Set":return t.size!==e.size?!1:vO(t.values(),e.values(),n.concat([t]),r.concat([e]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var a=Ka(t);if(a.length!==Ka(e).length)return!1;var s=n.concat([t]),l=r.concat([e]);for(o=a.length-1;o>=0;){var c=a[o];if(!(cr(c,e)&&Jw(e[c],t[c],s,l)))return!1;o-=1}return!0}var Z7=it(function(e,n){return Jw(e,n,[],[])});const e2=Z7;function G7(t,e,n){var r,i;if(typeof t.indexOf=="function")switch(typeof e){case"number":if(e===0){for(r=1/e;n=0}function gy(t){var e=t.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0");return'"'+e.replace(/"/g,'\\"')+'"'}var cu=function(e){return(e<10?"0":"")+e},X7=typeof Date.prototype.toISOString=="function"?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+cu(e.getUTCMonth()+1)+"-"+cu(e.getUTCDate())+"T"+cu(e.getUTCHours())+":"+cu(e.getUTCMinutes())+":"+cu(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};const Q7=X7;function J7(t){return function(){return!t.apply(this,arguments)}}function ej(t,e){for(var n=0,r=e.length,i=[];n":lL(a,s)},r=function(o,a){return Kd(function(s){return gy(s)+": "+n(o[s])},a.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+Kd(n,t).join(", ")+"))";case"[object Array]":return"["+Kd(n,t).concat(r(t,sj(function(o){return/^\d+$/.test(o)},Ka(t)))).join(", ")+"]";case"[object Boolean]":return typeof t=="object"?"new Boolean("+n(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?n(NaN):gy(Q7(t)))+")";case"[object Null]":return"null";case"[object Number]":return typeof t=="object"?"new Number("+n(t.valueOf())+")":1/t===-1/0?"-0":t.toString(10);case"[object String]":return typeof t=="object"?"new String("+n(t.valueOf())+")":gy(t);case"[object Undefined]":return"undefined";default:if(typeof t.toString=="function"){var i=t.toString();if(i!=="[object Object]")return i}return"{"+r(t,Ka(t)).join(", ")+"}"}}var lj=dt(function(e){return lL(e,[])});const uj=lj;var cj=dt(function(e){var n=oL(X$,0,Xw(function(r){return r[0].length},e));return Il(n,function(){for(var r=0;ra?1:0})});const vce=$j;var jj=it(function(e,n){if(e<=0)throw new Error("First argument to splitEvery must be a positive integer");for(var r=[],i=0;i"u"?rt:mo(Uint8Array),nl={"%AggregateError%":typeof AggregateError>"u"?rt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?rt:ArrayBuffer,"%ArrayIteratorPrototype%":ws?mo([][Symbol.iterator]()):rt,"%AsyncFromSyncIteratorPrototype%":rt,"%AsyncFunction%":ks,"%AsyncGenerator%":ks,"%AsyncGeneratorFunction%":ks,"%AsyncIteratorPrototype%":ks,"%Atomics%":typeof Atomics>"u"?rt:Atomics,"%BigInt%":typeof BigInt>"u"?rt:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?rt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?rt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?rt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?rt:FinalizationRegistry,"%Function%":cL,"%GeneratorFunction%":ks,"%Int8Array%":typeof Int8Array>"u"?rt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?rt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?rt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ws?mo(mo([][Symbol.iterator]())):rt,"%JSON%":typeof JSON=="object"?JSON:rt,"%Map%":typeof Map>"u"?rt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ws?rt:mo(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?rt:Promise,"%Proxy%":typeof Proxy>"u"?rt:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?rt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?rt:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ws?rt:mo(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?rt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ws?mo(""[Symbol.iterator]()):rt,"%Symbol%":ws?Symbol:rt,"%SyntaxError%":Cc,"%ThrowTypeError%":nB,"%TypedArray%":rB,"%TypeError%":tl,"%Uint8Array%":typeof Uint8Array>"u"?rt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?rt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?rt:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?rt:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?rt:WeakMap,"%WeakRef%":typeof WeakRef>"u"?rt:WeakRef,"%WeakSet%":typeof WeakSet>"u"?rt:WeakSet},iB=function t(e){var n;if(e==="%AsyncFunction%")n=yy("async function () {}");else if(e==="%GeneratorFunction%")n=yy("function* () {}");else if(e==="%AsyncGeneratorFunction%")n=yy("async function* () {}");else if(e==="%AsyncGenerator%"){var r=t("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(e==="%AsyncIteratorPrototype%"){var i=t("%AsyncGenerator%");i&&(n=mo(i.prototype))}return nl[e]=n,n},bO={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Ng=t2,Mp=tB,oB=Ng.call(Function.call,Array.prototype.concat),aB=Ng.call(Function.apply,Array.prototype.splice),wO=Ng.call(Function.call,String.prototype.replace),Lp=Ng.call(Function.call,String.prototype.slice),sB=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,lB=/\\(\\)?/g,uB=function(e){var n=Lp(e,0,1),r=Lp(e,-1);if(n==="%"&&r!=="%")throw new Cc("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new Cc("invalid intrinsic syntax, expected opening `%`");var i=[];return wO(e,sB,function(o,a,s,l){i[i.length]=s?wO(l,lB,"$1"):a||o}),i},cB=function(e,n){var r=e,i;if(Mp(bO,r)&&(i=bO[r],r="%"+i[0]+"%"),Mp(nl,r)){var o=nl[r];if(o===ks&&(o=iB(r)),typeof o>"u"&&!n)throw new tl("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:i,name:r,value:o}}throw new Cc("intrinsic "+e+" does not exist!")},n2=function(e,n){if(typeof e!="string"||e.length===0)throw new tl("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new tl('"allowMissing" argument must be a boolean');var r=uB(e),i=r.length>0?r[0]:"",o=cB("%"+i+"%",n),a=o.name,s=o.value,l=!1,c=o.alias;c&&(i=c[0],aB(r,oB([0,1],c)));for(var f=1,h=!0;f=r.length){var y=$a(s,p);h=!!y,h&&"get"in y&&!("originalValue"in y.get)?s=y.get:s=s[p]}else h=Mp(s,p),s=s[p];h&&!l&&(nl[a]=s)}}return s},g0={},fB={get exports(){return g0},set exports(t){g0=t}};(function(t){var e=t2,n=n2,r=n("%Function.prototype.apply%"),i=n("%Function.prototype.call%"),o=n("%Reflect.apply%",!0)||e.call(i,r),a=n("%Object.getOwnPropertyDescriptor%",!0),s=n("%Object.defineProperty%",!0),l=n("%Math.max%");if(s)try{s({},"a",{value:1})}catch{s=null}t.exports=function(h){var p=o(e,i,arguments);if(a&&s){var m=a(p,"length");m.configurable&&s(p,"length",{value:1+l(0,h.length-(arguments.length-1))})}return p};var c=function(){return o(e,r,arguments)};s?s(t.exports,"apply",{value:c}):t.exports.apply=c})(fB);var fL=n2,dL=g0,dB=dL(fL("String.prototype.indexOf")),hB=function(e,n){var r=fL(e,!!n);return typeof r=="function"&&dB(e,".prototype.")>-1?dL(r):r};const pB={},mB=Object.freeze(Object.defineProperty({__proto__:null,default:pB},Symbol.toStringTag,{value:"Module"})),gB=U6(mB);var r2=typeof Map=="function"&&Map.prototype,by=Object.getOwnPropertyDescriptor&&r2?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Rp=r2&&by&&typeof by.get=="function"?by.get:null,vB=r2&&Map.prototype.forEach,i2=typeof Set=="function"&&Set.prototype,wy=Object.getOwnPropertyDescriptor&&i2?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Ap=i2&&wy&&typeof wy.get=="function"?wy.get:null,yB=i2&&Set.prototype.forEach,_B=typeof WeakMap=="function"&&WeakMap.prototype,Vu=_B?WeakMap.prototype.has:null,bB=typeof WeakSet=="function"&&WeakSet.prototype,Yu=bB?WeakSet.prototype.has:null,wB=typeof WeakRef=="function"&&WeakRef.prototype,xO=wB?WeakRef.prototype.deref:null,xB=Boolean.prototype.valueOf,SB=Object.prototype.toString,EB=Function.prototype.toString,OB=String.prototype.match,o2=String.prototype.slice,Eo=String.prototype.replace,PB=String.prototype.toUpperCase,SO=String.prototype.toLowerCase,hL=RegExp.prototype.test,EO=Array.prototype.concat,ui=Array.prototype.join,TB=Array.prototype.slice,OO=Math.floor,v0=typeof BigInt=="function"?BigInt.prototype.valueOf:null,xy=Object.getOwnPropertySymbols,y0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,vl=typeof Symbol=="function"&&typeof Symbol.iterator=="object",jn=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===vl||"symbol")?Symbol.toStringTag:null,pL=Object.prototype.propertyIsEnumerable,PO=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function TO(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||hL.call(/e/,e))return e;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var r=t<0?-OO(-t):OO(t);if(r!==t){var i=String(r),o=o2.call(e,i.length+1);return Eo.call(i,n,"$&_")+"."+Eo.call(Eo.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Eo.call(e,n,"$&_")}var Sy=gB.custom,Ey=Sy&&gL(Sy)?Sy:null,CB=function t(e,n,r,i){var o=n||{};if(go(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(go(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=go(o,"customInspect")?o.customInspect:!0;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(go(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(go(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=o.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return yL(e,o);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var l=String(e);return s?TO(e,l):l}if(typeof e=="bigint"){var c=String(e)+"n";return s?TO(e,c):c}var f=typeof o.depth>"u"?5:o.depth;if(typeof r>"u"&&(r=0),r>=f&&f>0&&typeof e=="object")return _0(e)?"[Array]":"[Object]";var h=qB(o,r);if(typeof i>"u")i=[];else if(vL(i,e)>=0)return"[Circular]";function p(J,Y,X){if(Y&&(i=TB.call(i),i.push(Y)),X){var re={depth:o.depth};return go(o,"quoteStyle")&&(re.quoteStyle=o.quoteStyle),t(J,re,r+1,i)}return t(J,o,r+1,i)}if(typeof e=="function"){var m=$B(e),v=ad(e,p);return"[Function"+(m?": "+m:" (anonymous)")+"]"+(v.length>0?" { "+ui.call(v,", ")+" }":"")}if(gL(e)){var y=vl?Eo.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):y0.call(e);return typeof e=="object"&&!vl?du(y):y}if(WB(e)){for(var w="<"+SO.call(String(e.nodeName)),_=e.attributes||[],b=0;b<_.length;b++)w+=" "+_[b].name+"="+mL(kB(_[b].value),"double",o);return w+=">",e.childNodes&&e.childNodes.length&&(w+="..."),w+="",w}if(_0(e)){if(e.length===0)return"[]";var S=ad(e,p);return h&&!YB(S)?"["+b0(S,h)+"]":"[ "+ui.call(S,", ")+" ]"}if(RB(e)){var O=ad(e,p);return"cause"in e&&!pL.call(e,"cause")?"{ ["+String(e)+"] "+ui.call(EO.call("[cause]: "+p(e.cause),O),", ")+" }":O.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+ui.call(O,", ")+" }"}if(typeof e=="object"&&a){if(Ey&&typeof e[Ey]=="function")return e[Ey]();if(a!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(jB(e)){var M=[];return vB.call(e,function(J,Y){M.push(p(Y,e,!0)+" => "+p(J,e))}),CO("Map",Rp.call(e),M,h)}if(HB(e)){var C=[];return yB.call(e,function(J){C.push(p(J,e))}),CO("Set",Ap.call(e),C,h)}if(BB(e))return Oy("WeakMap");if(UB(e))return Oy("WeakSet");if(zB(e))return Oy("WeakRef");if(DB(e))return du(p(Number(e)));if(IB(e))return du(p(v0.call(e)));if(NB(e))return du(xB.call(e));if(AB(e))return du(p(String(e)));if(!MB(e)&&!LB(e)){var R=ad(e,p),$=PO?PO(e)===Object.prototype:e instanceof Object||e.constructor===Object,U=e instanceof Object?"":"null prototype",I=!$&&jn&&Object(e)===e&&jn in e?o2.call(aa(e),8,-1):U?"Object":"",H=$||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",W=H+(I||U?"["+ui.call(EO.call([],I||[],U||[]),": ")+"] ":"");return R.length===0?W+"{}":h?W+"{"+b0(R,h)+"}":W+"{ "+ui.call(R,", ")+" }"}return String(e)};function mL(t,e,n){var r=(n.quoteStyle||e)==="double"?'"':"'";return r+t+r}function kB(t){return Eo.call(String(t),/"/g,""")}function _0(t){return aa(t)==="[object Array]"&&(!jn||!(typeof t=="object"&&jn in t))}function MB(t){return aa(t)==="[object Date]"&&(!jn||!(typeof t=="object"&&jn in t))}function LB(t){return aa(t)==="[object RegExp]"&&(!jn||!(typeof t=="object"&&jn in t))}function RB(t){return aa(t)==="[object Error]"&&(!jn||!(typeof t=="object"&&jn in t))}function AB(t){return aa(t)==="[object String]"&&(!jn||!(typeof t=="object"&&jn in t))}function DB(t){return aa(t)==="[object Number]"&&(!jn||!(typeof t=="object"&&jn in t))}function NB(t){return aa(t)==="[object Boolean]"&&(!jn||!(typeof t=="object"&&jn in t))}function gL(t){if(vl)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!y0)return!1;try{return y0.call(t),!0}catch{}return!1}function IB(t){if(!t||typeof t!="object"||!v0)return!1;try{return v0.call(t),!0}catch{}return!1}var FB=Object.prototype.hasOwnProperty||function(t){return t in this};function go(t,e){return FB.call(t,e)}function aa(t){return SB.call(t)}function $B(t){if(t.name)return t.name;var e=OB.call(EB.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function vL(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;ne.maxStringLength){var n=t.length-e.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return yL(o2.call(t,0,e.maxStringLength),e)+r}var i=Eo.call(Eo.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,VB);return mL(i,"single",e)}function VB(t){var e=t.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return n?"\\"+n:"\\x"+(e<16?"0":"")+PB.call(e.toString(16))}function du(t){return"Object("+t+")"}function Oy(t){return t+" { ? }"}function CO(t,e,n,r){var i=r?b0(n,r):ui.call(n,", ");return t+" ("+e+") {"+i+"}"}function YB(t){for(var e=0;e=0)return!1;return!0}function qB(t,e){var n;if(t.indent===" ")n=" ";else if(typeof t.indent=="number"&&t.indent>0)n=ui.call(Array(t.indent+1)," ");else return null;return{base:n,prev:ui.call(Array(e+1),n)}}function b0(t,e){if(t.length===0)return"";var n=` `+e.prev+e.base;return n+ui.call(t,","+n)+` `+e.prev}function ad(t,e){var n=_0(t),r=[];if(n){r.length=t.length;for(var i=0;i1;){var n=e.pop(),r=n.obj[n.prop];if(Ca(r)){for(var i=[],o=0;o=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===l9.RFC1738&&(c===40||c===41)){s+=a.charAt(l);continue}if(c<128){s=s+oi[c];continue}if(c<2048){s=s+(oi[192|c>>6]+oi[128|c&63]);continue}if(c<55296||c>=57344){s=s+(oi[224|c>>12]+oi[128|c>>6&63]+oi[128|c&63]);continue}l+=1,c=65536+((c&1023)<<10|a.charCodeAt(l)&1023),s+=oi[240|c>>18]+oi[128|c>>12&63]+oi[128|c>>6&63]+oi[128|c&63]}return s},p9=function(e){for(var n=[{obj:{o:e},prop:"o"}],r=[],i=0;i"u"&&(S=0)}if(typeof l=="function"?_=l(n,_):_ instanceof Date?_=h(_):r==="comma"&&Ai(_)&&(_=w0.maybeMap(_,function(N){return N instanceof Date?h(N):N})),_===null){if(o)return s&&!v?s(n,Pn.encoder,y,"key",p):n;_=""}if(S9(_)||w0.isBuffer(_)){if(s){var C=v?n:s(n,Pn.encoder,y,"key",p);if(r==="comma"&&v){for(var R=b9.call(String(_),","),$="",U=0;U"u")return I;var H;if(r==="comma"&&Ai(_))H=[{value:_.length>0?_.join(",")||null:void 0}];else if(Ai(l))H=l;else{var W=Object.keys(_);H=c?W.sort(c):W}for(var J=i&&Ai(_)&&_.length===1?n+"[]":n,Y=0;Y"u"?Pn.allowDots:!!e.allowDots,charset:n,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Pn.charsetSentinel,delimiter:typeof e.delimiter>"u"?Pn.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:Pn.encode,encoder:typeof e.encoder=="function"?e.encoder:Pn.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:Pn.encodeValuesOnly,filter:o,format:r,formatter:i,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:Pn.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:Pn.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Pn.strictNullHandling}},P9=function(t,e){var n=t,r=O9(e),i,o;typeof r.filter=="function"?(o=r.filter,n=o("",n)):Ai(r.filter)&&(o=r.filter,i=o);var a=[];if(typeof n!="object"||n===null)return"";var s;e&&e.arrayFormat in kO?s=e.arrayFormat:e&&"indices"in e?s=e.indices?"indices":"repeat":s="indices";var l=kO[s];if(e&&"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var c=l==="comma"&&e&&e.commaRoundTrip;i||(i=Object.keys(n)),r.sort&&i.sort(r.sort);for(var f=wL(),h=0;h0?v+m:""},yl=bL,x0=Object.prototype.hasOwnProperty,T9=Array.isArray,fn={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:yl.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},C9=function(t){return t.replace(/&#(\d+);/g,function(e,n){return String.fromCharCode(parseInt(n,10))})},SL=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},k9="utf8=%26%2310003%3B",M9="utf8=%E2%9C%93",L9=function(e,n){var r={},i=n.ignoreQueryPrefix?e.replace(/^\?/,""):e,o=n.parameterLimit===1/0?void 0:n.parameterLimit,a=i.split(n.delimiter,o),s=-1,l,c=n.charset;if(n.charsetSentinel)for(l=0;l-1&&(v=T9(v)?[v]:v),x0.call(r,m)?r[m]=yl.combine(r[m],v):r[m]=v}return r},R9=function(t,e,n,r){for(var i=r?e:SL(e,n),o=t.length-1;o>=0;--o){var a,s=t[o];if(s==="[]"&&n.parseArrays)a=[].concat(i);else{a=n.plainObjects?Object.create(null):{};var l=s.charAt(0)==="["&&s.charAt(s.length-1)==="]"?s.slice(1,-1):s,c=parseInt(l,10);!n.parseArrays&&l===""?a={0:i}:!isNaN(c)&&s!==l&&String(c)===l&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(a=[],a[c]=i):l!=="__proto__"&&(a[l]=i)}i=a}return i},A9=function(e,n,r,i){if(e){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,l=r.depth>0&&a.exec(o),c=l?o.slice(0,l.index):o,f=[];if(c){if(!r.plainObjects&&x0.call(Object.prototype,c)&&!r.allowPrototypes)return;f.push(c)}for(var h=0;r.depth>0&&(l=s.exec(o))!==null&&h"u"?fn.charset:e.charset;return{allowDots:typeof e.allowDots>"u"?fn.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:fn.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:fn.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:fn.arrayLimit,charset:n,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:fn.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:fn.comma,decoder:typeof e.decoder=="function"?e.decoder:fn.decoder,delimiter:typeof e.delimiter=="string"||yl.isRegExp(e.delimiter)?e.delimiter:fn.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:fn.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:fn.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:fn.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:fn.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:fn.strictNullHandling}},N9=function(t,e){var n=D9(e);if(t===""||t===null||typeof t>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof t=="string"?L9(t,n):t,i=n.plainObjects?Object.create(null):{},o=Object.keys(r),a=0;at.length)&&(e=t.length);for(var n=0,r=new Array(e);n-1;i--){var o=n[i],a=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=o)}return Ot.head.insertBefore(e,r),t}}var Cz="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Ac(){for(var t=12,e="";t-- >0;)e+=Cz[Math.random()*62|0];return e}function jl(t){for(var e=[],n=(t||[]).length>>>0;n--;)e[n]=t[n];return e}function p2(t){return t.classList?jl(t.classList):(t.getAttribute("class")||"").split(" ").filter(function(e){return e})}function NL(t){return"".concat(t).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function kz(t){return Object.keys(t||{}).reduce(function(e,n){return e+"".concat(n,'="').concat(NL(t[n]),'" ')},"").trim()}function Ig(t){return Object.keys(t||{}).reduce(function(e,n){return e+"".concat(n,": ").concat(t[n].trim(),";")},"")}function m2(t){return t.size!==pi.size||t.x!==pi.x||t.y!==pi.y||t.rotate!==pi.rotate||t.flipX||t.flipY}function Mz(t){var e=t.transform,n=t.containerWidth,r=t.iconWidth,i={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(e.x*32,", ").concat(e.y*32,") "),a="scale(".concat(e.size/16*(e.flipX?-1:1),", ").concat(e.size/16*(e.flipY?-1:1),") "),s="rotate(".concat(e.rotate," 0 0)"),l={transform:"".concat(o," ").concat(a," ").concat(s)},c={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:l,path:c}}function Lz(t){var e=t.transform,n=t.width,r=n===void 0?E0:n,i=t.height,o=i===void 0?E0:i,a=t.startCentered,s=a===void 0?!1:a,l="";return s&&CL?l+="translate(".concat(e.x/lo-r/2,"em, ").concat(e.y/lo-o/2,"em) "):s?l+="translate(calc(-50% + ".concat(e.x/lo,"em), calc(-50% + ").concat(e.y/lo,"em)) "):l+="translate(".concat(e.x/lo,"em, ").concat(e.y/lo,"em) "),l+="scale(".concat(e.size/lo*(e.flipX?-1:1),", ").concat(e.size/lo*(e.flipY?-1:1),") "),l+="rotate(".concat(e.rotate,"deg) "),l}var Rz=`:root, :host { --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid"; --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular"; --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light"; --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin"; --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone"; --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp"; --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands"; } 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 { -webkit-transform-origin: center center; transform-origin: center center; } .fa-layers-text { left: 50%; top: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); -webkit-transform-origin: center center; 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); -webkit-transform: scale(var(--fa-counter-scale, 0.25)); transform: scale(var(--fa-counter-scale, 0.25)); -webkit-transform-origin: top right; transform-origin: top right; } .fa-layers-bottom-right { bottom: var(--fa-bottom, 0); right: var(--fa-right, 0); top: auto; -webkit-transform: scale(var(--fa-layers-scale, 0.25)); transform: scale(var(--fa-layers-scale, 0.25)); -webkit-transform-origin: bottom right; transform-origin: bottom right; } .fa-layers-bottom-left { bottom: var(--fa-bottom, 0); left: var(--fa-left, 0); right: auto; top: auto; -webkit-transform: scale(var(--fa-layers-scale, 0.25)); transform: scale(var(--fa-layers-scale, 0.25)); -webkit-transform-origin: bottom left; transform-origin: bottom left; } .fa-layers-top-right { top: var(--fa-top, 0); right: var(--fa-right, 0); -webkit-transform: scale(var(--fa-layers-scale, 0.25)); transform: scale(var(--fa-layers-scale, 0.25)); -webkit-transform-origin: top right; transform-origin: top right; } .fa-layers-top-left { left: var(--fa-left, 0); right: auto; top: var(--fa-top, 0); -webkit-transform: scale(var(--fa-layers-scale, 0.25)); transform: scale(var(--fa-layers-scale, 0.25)); -webkit-transform-origin: top left; 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(var(--fa-li-width, 2em) * -1); 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 { -webkit-animation-name: fa-beat; animation-name: fa-beat; -webkit-animation-delay: var(--fa-animation-delay, 0s); animation-delay: var(--fa-animation-delay, 0s); -webkit-animation-direction: var(--fa-animation-direction, normal); animation-direction: var(--fa-animation-direction, normal); -webkit-animation-duration: var(--fa-animation-duration, 1s); animation-duration: var(--fa-animation-duration, 1s); -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); animation-iteration-count: var(--fa-animation-iteration-count, infinite); -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out); animation-timing-function: var(--fa-animation-timing, ease-in-out); } .fa-bounce { -webkit-animation-name: fa-bounce; animation-name: fa-bounce; -webkit-animation-delay: var(--fa-animation-delay, 0s); animation-delay: var(--fa-animation-delay, 0s); -webkit-animation-direction: var(--fa-animation-direction, normal); animation-direction: var(--fa-animation-direction, normal); -webkit-animation-duration: var(--fa-animation-duration, 1s); animation-duration: var(--fa-animation-duration, 1s); -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); animation-iteration-count: var(--fa-animation-iteration-count, infinite); -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); } .fa-fade { -webkit-animation-name: fa-fade; animation-name: fa-fade; -webkit-animation-delay: var(--fa-animation-delay, 0s); animation-delay: var(--fa-animation-delay, 0s); -webkit-animation-direction: var(--fa-animation-direction, normal); animation-direction: var(--fa-animation-direction, normal); -webkit-animation-duration: var(--fa-animation-duration, 1s); animation-duration: var(--fa-animation-duration, 1s); -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); animation-iteration-count: var(--fa-animation-iteration-count, infinite); -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); } .fa-beat-fade { -webkit-animation-name: fa-beat-fade; animation-name: fa-beat-fade; -webkit-animation-delay: var(--fa-animation-delay, 0s); animation-delay: var(--fa-animation-delay, 0s); -webkit-animation-direction: var(--fa-animation-direction, normal); animation-direction: var(--fa-animation-direction, normal); -webkit-animation-duration: var(--fa-animation-duration, 1s); animation-duration: var(--fa-animation-duration, 1s); -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); animation-iteration-count: var(--fa-animation-iteration-count, infinite); -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); } .fa-flip { -webkit-animation-name: fa-flip; animation-name: fa-flip; -webkit-animation-delay: var(--fa-animation-delay, 0s); animation-delay: var(--fa-animation-delay, 0s); -webkit-animation-direction: var(--fa-animation-direction, normal); animation-direction: var(--fa-animation-direction, normal); -webkit-animation-duration: var(--fa-animation-duration, 1s); animation-duration: var(--fa-animation-duration, 1s); -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); animation-iteration-count: var(--fa-animation-iteration-count, infinite); -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out); animation-timing-function: var(--fa-animation-timing, ease-in-out); } .fa-shake { -webkit-animation-name: fa-shake; animation-name: fa-shake; -webkit-animation-delay: var(--fa-animation-delay, 0s); animation-delay: var(--fa-animation-delay, 0s); -webkit-animation-direction: var(--fa-animation-direction, normal); animation-direction: var(--fa-animation-direction, normal); -webkit-animation-duration: var(--fa-animation-duration, 1s); animation-duration: var(--fa-animation-duration, 1s); -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); animation-iteration-count: var(--fa-animation-iteration-count, infinite); -webkit-animation-timing-function: var(--fa-animation-timing, linear); animation-timing-function: var(--fa-animation-timing, linear); } .fa-spin { -webkit-animation-name: fa-spin; animation-name: fa-spin; -webkit-animation-delay: var(--fa-animation-delay, 0s); animation-delay: var(--fa-animation-delay, 0s); -webkit-animation-direction: var(--fa-animation-direction, normal); animation-direction: var(--fa-animation-direction, normal); -webkit-animation-duration: var(--fa-animation-duration, 2s); animation-duration: var(--fa-animation-duration, 2s); -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); animation-iteration-count: var(--fa-animation-iteration-count, infinite); -webkit-animation-timing-function: var(--fa-animation-timing, linear); animation-timing-function: var(--fa-animation-timing, linear); } .fa-spin-reverse { --fa-animation-direction: reverse; } .fa-pulse, .fa-spin-pulse { -webkit-animation-name: fa-spin; animation-name: fa-spin; -webkit-animation-direction: var(--fa-animation-direction, normal); animation-direction: var(--fa-animation-direction, normal); -webkit-animation-duration: var(--fa-animation-duration, 1s); animation-duration: var(--fa-animation-duration, 1s); -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); animation-iteration-count: var(--fa-animation-iteration-count, infinite); -webkit-animation-timing-function: var(--fa-animation-timing, steps(8)); 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 { -webkit-animation-delay: -1ms; animation-delay: -1ms; -webkit-animation-duration: 1ms; animation-duration: 1ms; -webkit-animation-iteration-count: 1; animation-iteration-count: 1; transition-delay: 0s; transition-duration: 0s; } } @-webkit-keyframes fa-beat { 0%, 90% { -webkit-transform: scale(1); transform: scale(1); } 45% { -webkit-transform: scale(var(--fa-beat-scale, 1.25)); transform: scale(var(--fa-beat-scale, 1.25)); } } @keyframes fa-beat { 0%, 90% { -webkit-transform: scale(1); transform: scale(1); } 45% { -webkit-transform: scale(var(--fa-beat-scale, 1.25)); transform: scale(var(--fa-beat-scale, 1.25)); } } @-webkit-keyframes fa-bounce { 0% { -webkit-transform: scale(1, 1) translateY(0); transform: scale(1, 1) translateY(0); } 10% { -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); } 30% { -webkit-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)); 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% { -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); } 57% { -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); } 64% { -webkit-transform: scale(1, 1) translateY(0); transform: scale(1, 1) translateY(0); } 100% { -webkit-transform: scale(1, 1) translateY(0); transform: scale(1, 1) translateY(0); } } @keyframes fa-bounce { 0% { -webkit-transform: scale(1, 1) translateY(0); transform: scale(1, 1) translateY(0); } 10% { -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); } 30% { -webkit-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)); 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% { -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); } 57% { -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); } 64% { -webkit-transform: scale(1, 1) translateY(0); transform: scale(1, 1) translateY(0); } 100% { -webkit-transform: scale(1, 1) translateY(0); transform: scale(1, 1) translateY(0); } } @-webkit-keyframes fa-fade { 50% { opacity: var(--fa-fade-opacity, 0.4); } } @keyframes fa-fade { 50% { opacity: var(--fa-fade-opacity, 0.4); } } @-webkit-keyframes fa-beat-fade { 0%, 100% { opacity: var(--fa-beat-fade-opacity, 0.4); -webkit-transform: scale(1); transform: scale(1); } 50% { opacity: 1; -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125)); transform: scale(var(--fa-beat-fade-scale, 1.125)); } } @keyframes fa-beat-fade { 0%, 100% { opacity: var(--fa-beat-fade-opacity, 0.4); -webkit-transform: scale(1); transform: scale(1); } 50% { opacity: 1; -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125)); transform: scale(var(--fa-beat-fade-scale, 1.125)); } } @-webkit-keyframes fa-flip { 50% { -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); } } @keyframes fa-flip { 50% { -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); } } @-webkit-keyframes fa-shake { 0% { -webkit-transform: rotate(-15deg); transform: rotate(-15deg); } 4% { -webkit-transform: rotate(15deg); transform: rotate(15deg); } 8%, 24% { -webkit-transform: rotate(-18deg); transform: rotate(-18deg); } 12%, 28% { -webkit-transform: rotate(18deg); transform: rotate(18deg); } 16% { -webkit-transform: rotate(-22deg); transform: rotate(-22deg); } 20% { -webkit-transform: rotate(22deg); transform: rotate(22deg); } 32% { -webkit-transform: rotate(-12deg); transform: rotate(-12deg); } 36% { -webkit-transform: rotate(12deg); transform: rotate(12deg); } 40%, 100% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } } @keyframes fa-shake { 0% { -webkit-transform: rotate(-15deg); transform: rotate(-15deg); } 4% { -webkit-transform: rotate(15deg); transform: rotate(15deg); } 8%, 24% { -webkit-transform: rotate(-18deg); transform: rotate(-18deg); } 12%, 28% { -webkit-transform: rotate(18deg); transform: rotate(18deg); } 16% { -webkit-transform: rotate(-22deg); transform: rotate(-22deg); } 20% { -webkit-transform: rotate(22deg); transform: rotate(22deg); } 32% { -webkit-transform: rotate(-12deg); transform: rotate(-12deg); } 36% { -webkit-transform: rotate(12deg); transform: rotate(12deg); } 40%, 100% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } } @-webkit-keyframes fa-spin { 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } @keyframes fa-spin { 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } .fa-rotate-90 { -webkit-transform: rotate(90deg); transform: rotate(90deg); } .fa-rotate-180 { -webkit-transform: rotate(180deg); transform: rotate(180deg); } .fa-rotate-270 { -webkit-transform: rotate(270deg); transform: rotate(270deg); } .fa-flip-horizontal { -webkit-transform: scale(-1, 1); transform: scale(-1, 1); } .fa-flip-vertical { -webkit-transform: scale(1, -1); transform: scale(1, -1); } .fa-flip-both, .fa-flip-horizontal.fa-flip-vertical { -webkit-transform: scale(-1, -1); transform: scale(-1, -1); } .fa-rotate-by { -webkit-transform: rotate(var(--fa-rotate-angle, none)); transform: rotate(var(--fa-rotate-angle, none)); } .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; } .fad.fa-inverse, .fa-duotone.fa-inverse { color: var(--fa-inverse, #fff); }`;function IL(){var t=kL,e=ML,n=Be.cssPrefix,r=Be.replacementClass,i=Rz;if(n!==t||r!==e){var o=new RegExp("\\.".concat(t,"\\-"),"g"),a=new RegExp("\\--".concat(t,"\\-"),"g"),s=new RegExp("\\.".concat(e),"g");i=i.replace(o,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(s,".".concat(r))}return i}var $O=!1;function ky(){Be.autoAddCss&&!$O&&(Tz(IL()),$O=!0)}var Az={mixout:function(){return{dom:{css:IL,insertCss:ky}}},hooks:function(){return{beforeDOMElementCreation:function(){ky()},beforeI2svg:function(){ky()}}}},Zi=qo||{};Zi[qi]||(Zi[qi]={});Zi[qi].styles||(Zi[qi].styles={});Zi[qi].hooks||(Zi[qi].hooks={});Zi[qi].shims||(Zi[qi].shims=[]);var Wr=Zi[qi],FL=[],Dz=function t(){Ot.removeEventListener("DOMContentLoaded",t),Np=1,FL.map(function(e){return e()})},Np=!1;Ji&&(Np=(Ot.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Ot.readyState),Np||Ot.addEventListener("DOMContentLoaded",Dz));function Nz(t){Ji&&(Np?setTimeout(t,0):FL.push(t))}function df(t){var e=t.tag,n=t.attributes,r=n===void 0?{}:n,i=t.children,o=i===void 0?[]:i;return typeof t=="string"?NL(t):"<".concat(e," ").concat(kz(r),">").concat(o.map(df).join(""),"")}function jO(t,e,n){if(t&&t[e]&&t[e][n])return{prefix:e,iconName:n,icon:t[e][n]}}var Iz=function(e,n){return function(r,i,o,a){return e.call(n,r,i,o,a)}},My=function(e,n,r,i){var o=Object.keys(e),a=o.length,s=i!==void 0?Iz(n,i):n,l,c,f;for(r===void 0?(l=1,f=e[o[0]]):(l=0,f=r);l=55296&&i<=56319&&n=55296&&r<=56319&&n>e+1&&(i=t.charCodeAt(e+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function BO(t){return Object.keys(t).reduce(function(e,n){var r=t[n],i=!!r.icon;return i?e[r.iconName]=r.icon:e[n]=r,e},{})}function T0(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,i=r===void 0?!1:r,o=BO(e);typeof Wr.hooks.addPack=="function"&&!i?Wr.hooks.addPack(t,BO(e)):Wr.styles[t]=Fe(Fe({},Wr.styles[t]||{}),o),t==="fas"&&T0("fa",e)}var md,gd,vd,Ws=Wr.styles,jz=Wr.shims,Bz=(md={},ln(md,xt,Object.values(Lc[xt])),ln(md,$t,Object.values(Lc[$t])),md),g2=null,$L={},jL={},BL={},zL={},HL={},zz=(gd={},ln(gd,xt,Object.keys(kc[xt])),ln(gd,$t,Object.keys(kc[$t])),gd);function Hz(t){return~xz.indexOf(t)}function Uz(t,e){var n=e.split("-"),r=n[0],i=n.slice(1).join("-");return r===t&&i!==""&&!Hz(i)?i:null}var UL=function(){var e=function(o){return My(Ws,function(a,s,l){return a[l]=My(s,o,{}),a},{})};$L=e(function(i,o,a){if(o[3]&&(i[o[3]]=a),o[2]){var s=o[2].filter(function(l){return typeof l=="number"});s.forEach(function(l){i[l.toString(16)]=a})}return i}),jL=e(function(i,o,a){if(i[a]=a,o[2]){var s=o[2].filter(function(l){return typeof l=="string"});s.forEach(function(l){i[l]=a})}return i}),HL=e(function(i,o,a){var s=o[2];return i[a]=a,s.forEach(function(l){i[l]=a}),i});var n="far"in Ws||Be.autoFetchSvg,r=My(jz,function(i,o){var a=o[0],s=o[1],l=o[2];return s==="far"&&!n&&(s="fas"),typeof a=="string"&&(i.names[a]={prefix:s,iconName:l}),typeof a=="number"&&(i.unicodes[a.toString(16)]={prefix:s,iconName:l}),i},{names:{},unicodes:{}});BL=r.names,zL=r.unicodes,g2=Fg(Be.styleDefault,{family:Be.familyDefault})};Pz(function(t){g2=Fg(t.styleDefault,{family:Be.familyDefault})});UL();function v2(t,e){return($L[t]||{})[e]}function Wz(t,e){return(jL[t]||{})[e]}function Da(t,e){return(HL[t]||{})[e]}function WL(t){return BL[t]||{prefix:null,iconName:null}}function Vz(t){var e=zL[t],n=v2("fas",t);return e||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function Zo(){return g2}var y2=function(){return{prefix:null,iconName:null,rest:[]}};function Fg(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.family,r=n===void 0?xt:n,i=kc[r][t],o=Mc[r][t]||Mc[r][i],a=t in Wr.styles?t:null;return o||a||null}var zO=(vd={},ln(vd,xt,Object.keys(Lc[xt])),ln(vd,$t,Object.keys(Lc[$t])),vd);function $g(t){var e,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.skipLookups,i=r===void 0?!1:r,o=(e={},ln(e,xt,"".concat(Be.cssPrefix,"-").concat(xt)),ln(e,$t,"".concat(Be.cssPrefix,"-").concat($t)),e),a=null,s=xt;(t.includes(o[xt])||t.some(function(c){return zO[xt].includes(c)}))&&(s=xt),(t.includes(o[$t])||t.some(function(c){return zO[$t].includes(c)}))&&(s=$t);var l=t.reduce(function(c,f){var h=Uz(Be.cssPrefix,f);if(Ws[f]?(f=Bz[s].includes(f)?gz[s][f]:f,a=f,c.prefix=f):zz[s].indexOf(f)>-1?(a=f,c.prefix=Fg(f,{family:s})):h?c.iconName=h:f!==Be.replacementClass&&f!==o[xt]&&f!==o[$t]&&c.rest.push(f),!i&&c.prefix&&c.iconName){var p=a==="fa"?WL(c.iconName):{},m=Da(c.prefix,c.iconName);p.prefix&&(a=null),c.iconName=p.iconName||m||c.iconName,c.prefix=p.prefix||c.prefix,c.prefix==="far"&&!Ws.far&&Ws.fas&&!Be.autoFetchSvg&&(c.prefix="fas")}return c},y2());return(t.includes("fa-brands")||t.includes("fab"))&&(l.prefix="fab"),(t.includes("fa-duotone")||t.includes("fad"))&&(l.prefix="fad"),!l.prefix&&s===$t&&(Ws.fass||Be.autoFetchSvg)&&(l.prefix="fass",l.iconName=Da(l.prefix,l.iconName)||l.iconName),(l.prefix==="fa"||a==="fa")&&(l.prefix=Zo()||"fas"),l}var Yz=function(){function t(){iz(this,t),this.definitions={}}return oz(t,[{key:"add",value:function(){for(var n=this,r=arguments.length,i=new Array(r),o=0;o0&&f.forEach(function(h){typeof h=="string"&&(n[s][h]=c)}),n[s][l]=c}),n}}]),t}(),HO=[],Vs={},rl={},qz=Object.keys(rl);function Zz(t,e){var n=e.mixoutsTo;return HO=t,Vs={},Object.keys(rl).forEach(function(r){qz.indexOf(r)===-1&&delete rl[r]}),HO.forEach(function(r){var i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(function(a){typeof i[a]=="function"&&(n[a]=i[a]),Dp(i[a])==="object"&&Object.keys(i[a]).forEach(function(s){n[a]||(n[a]={}),n[a][s]=i[a][s]})}),r.hooks){var o=r.hooks();Object.keys(o).forEach(function(a){Vs[a]||(Vs[a]=[]),Vs[a].push(o[a])})}r.provides&&r.provides(rl)}),n}function C0(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i1?e-1:0),r=1;r0&&arguments[0]!==void 0?arguments[0]:{};return Ji?(Qa("beforeI2svg",e),Gi("pseudoElements2svg",e),Gi("i2svg",e)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.autoReplaceSvgRoot;Be.autoReplaceSvg===!1&&(Be.autoReplaceSvg=!0),Be.observeMutations=!0,Nz(function(){Qz({autoReplaceSvgRoot:n}),Qa("watch",e)})}},Xz={icon:function(e){if(e===null)return null;if(Dp(e)==="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Da(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){var n=e[1].indexOf("fa-")===0?e[1].slice(3):e[1],r=Fg(e[0]);return{prefix:r,iconName:Da(r,n)||n}}if(typeof e=="string"&&(e.indexOf("".concat(Be.cssPrefix,"-"))>-1||e.match(vz))){var i=$g(e.split(" "),{skipLookups:!0});return{prefix:i.prefix||Zo(),iconName:Da(i.prefix,i.iconName)||i.iconName}}if(typeof e=="string"){var o=Zo();return{prefix:o,iconName:Da(o,e)||e}}}},vr={noAuto:Gz,config:Be,dom:Kz,parse:Xz,library:VL,findIconDefinition:k0,toHtml:df},Qz=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.autoReplaceSvgRoot,r=n===void 0?Ot:n;(Object.keys(Wr.styles).length>0||Be.autoFetchSvg)&&Ji&&Be.autoReplaceSvg&&vr.dom.i2svg({node:r})};function jg(t,e){return Object.defineProperty(t,"abstract",{get:e}),Object.defineProperty(t,"html",{get:function(){return t.abstract.map(function(r){return df(r)})}}),Object.defineProperty(t,"node",{get:function(){if(Ji){var r=Ot.createElement("div");return r.innerHTML=t.html,r.children}}}),t}function Jz(t){var e=t.children,n=t.main,r=t.mask,i=t.attributes,o=t.styles,a=t.transform;if(m2(a)&&n.found&&!r.found){var s=n.width,l=n.height,c={x:s/l/2,y:.5};i.style=Ig(Fe(Fe({},o),{},{"transform-origin":"".concat(c.x+a.x/16,"em ").concat(c.y+a.y/16,"em")}))}return[{tag:"svg",attributes:i,children:e}]}function eH(t){var e=t.prefix,n=t.iconName,r=t.children,i=t.attributes,o=t.symbol,a=o===!0?"".concat(e,"-").concat(Be.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Fe(Fe({},i),{},{id:a}),children:r}]}]}function _2(t){var e=t.icons,n=e.main,r=e.mask,i=t.prefix,o=t.iconName,a=t.transform,s=t.symbol,l=t.title,c=t.maskId,f=t.titleId,h=t.extra,p=t.watchable,m=p===void 0?!1:p,v=r.found?r:n,y=v.width,w=v.height,_=i==="fak",b=[Be.replacementClass,o?"".concat(Be.cssPrefix,"-").concat(o):""].filter(function(U){return h.classes.indexOf(U)===-1}).filter(function(U){return U!==""||!!U}).concat(h.classes).join(" "),S={children:[],attributes:Fe(Fe({},h.attributes),{},{"data-prefix":i,"data-icon":o,class:b,role:h.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(y," ").concat(w)})},O=_&&!~h.classes.indexOf("fa-fw")?{width:"".concat(y/w*16*.0625,"em")}:{};m&&(S.attributes[Xa]=""),l&&(S.children.push({tag:"title",attributes:{id:S.attributes["aria-labelledby"]||"title-".concat(f||Ac())},children:[l]}),delete S.attributes.title);var M=Fe(Fe({},S),{},{prefix:i,iconName:o,main:n,mask:r,maskId:c,transform:a,symbol:s,styles:Fe(Fe({},O),h.styles)}),C=r.found&&n.found?Gi("generateAbstractMask",M)||{children:[],attributes:{}}:Gi("generateAbstractIcon",M)||{children:[],attributes:{}},R=C.children,$=C.attributes;return M.children=R,M.attributes=$,s?eH(M):Jz(M)}function UO(t){var e=t.content,n=t.width,r=t.height,i=t.transform,o=t.title,a=t.extra,s=t.watchable,l=s===void 0?!1:s,c=Fe(Fe(Fe({},a.attributes),o?{title:o}:{}),{},{class:a.classes.join(" ")});l&&(c[Xa]="");var f=Fe({},a.styles);m2(i)&&(f.transform=Lz({transform:i,startCentered:!0,width:n,height:r}),f["-webkit-transform"]=f.transform);var h=Ig(f);h.length>0&&(c.style=h);var p=[];return p.push({tag:"span",attributes:c,children:[e]}),o&&p.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),p}function tH(t){var e=t.content,n=t.title,r=t.extra,i=Fe(Fe(Fe({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),o=Ig(r.styles);o.length>0&&(i.style=o);var a=[];return a.push({tag:"span",attributes:i,children:[e]}),n&&a.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),a}var Ly=Wr.styles;function M0(t){var e=t[0],n=t[1],r=t.slice(4),i=u2(r,1),o=i[0],a=null;return Array.isArray(o)?a={tag:"g",attributes:{class:"".concat(Be.cssPrefix,"-").concat(Aa.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Be.cssPrefix,"-").concat(Aa.SECONDARY),fill:"currentColor",d:o[0]}},{tag:"path",attributes:{class:"".concat(Be.cssPrefix,"-").concat(Aa.PRIMARY),fill:"currentColor",d:o[1]}}]}:a={tag:"path",attributes:{fill:"currentColor",d:o}},{found:!0,width:e,height:n,icon:a}}var nH={found:!1,width:512,height:512};function rH(t,e){!LL&&!Be.showMissingIcons&&t&&console.error('Icon with name "'.concat(t,'" and prefix "').concat(e,'" is missing.'))}function L0(t,e){var n=e;return e==="fa"&&Be.styleDefault!==null&&(e=Zo()),new Promise(function(r,i){if(Gi("missingIconAbstract"),n==="fa"){var o=WL(t)||{};t=o.iconName||t,e=o.prefix||e}if(t&&e&&Ly[e]&&Ly[e][t]){var a=Ly[e][t];return r(M0(a))}rH(t,e),r(Fe(Fe({},nH),{},{icon:Be.showMissingIcons&&t?Gi("missingIconAbstract")||{}:{}}))})}var WO=function(){},R0=Be.measurePerformance&&ud&&ud.mark&&ud.measure?ud:{mark:WO,measure:WO},Pu='FA "6.2.1"',iH=function(e){return R0.mark("".concat(Pu," ").concat(e," begins")),function(){return YL(e)}},YL=function(e){R0.mark("".concat(Pu," ").concat(e," ends")),R0.measure("".concat(Pu," ").concat(e),"".concat(Pu," ").concat(e," begins"),"".concat(Pu," ").concat(e," ends"))},b2={begin:iH,end:YL},Xd=function(){};function VO(t){var e=t.getAttribute?t.getAttribute(Xa):null;return typeof e=="string"}function oH(t){var e=t.getAttribute?t.getAttribute(f2):null,n=t.getAttribute?t.getAttribute(d2):null;return e&&n}function aH(t){return t&&t.classList&&t.classList.contains&&t.classList.contains(Be.replacementClass)}function sH(){if(Be.autoReplaceSvg===!0)return Qd.replace;var t=Qd[Be.autoReplaceSvg];return t||Qd.replace}function lH(t){return Ot.createElementNS("http://www.w3.org/2000/svg",t)}function uH(t){return Ot.createElement(t)}function qL(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.ceFn,r=n===void 0?t.tag==="svg"?lH:uH:n;if(typeof t=="string")return Ot.createTextNode(t);var i=r(t.tag);Object.keys(t.attributes||[]).forEach(function(a){i.setAttribute(a,t.attributes[a])});var o=t.children||[];return o.forEach(function(a){i.appendChild(qL(a,{ceFn:r}))}),i}function cH(t){var e=" ".concat(t.outerHTML," ");return e="".concat(e,"Font Awesome fontawesome.com "),e}var Qd={replace:function(e){var n=e[0];if(n.parentNode)if(e[1].forEach(function(i){n.parentNode.insertBefore(qL(i),n)}),n.getAttribute(Xa)===null&&Be.keepOriginalSource){var r=Ot.createComment(cH(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(e){var n=e[0],r=e[1];if(~p2(n).indexOf(Be.replacementClass))return Qd.replace(e);var i=new RegExp("".concat(Be.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var o=r[0].attributes.class.split(" ").reduce(function(s,l){return l===Be.replacementClass||l.match(i)?s.toSvg.push(l):s.toNode.push(l),s},{toNode:[],toSvg:[]});r[0].attributes.class=o.toSvg.join(" "),o.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",o.toNode.join(" "))}var a=r.map(function(s){return df(s)}).join(` `);n.setAttribute(Xa,""),n.innerHTML=a}};function YO(t){t()}function ZL(t,e){var n=typeof e=="function"?e:Xd;if(t.length===0)n();else{var r=YO;Be.mutateApproach===pz&&(r=qo.requestAnimationFrame||YO),r(function(){var i=sH(),o=b2.begin("mutate");t.map(i),o(),n()})}}var w2=!1;function GL(){w2=!0}function A0(){w2=!1}var Ip=null;function qO(t){if(IO&&Be.observeMutations){var e=t.treeCallback,n=e===void 0?Xd:e,r=t.nodeCallback,i=r===void 0?Xd:r,o=t.pseudoElementsCallback,a=o===void 0?Xd:o,s=t.observeMutationsRoot,l=s===void 0?Ot:s;Ip=new IO(function(c){if(!w2){var f=Zo();jl(c).forEach(function(h){if(h.type==="childList"&&h.addedNodes.length>0&&!VO(h.addedNodes[0])&&(Be.searchPseudoElements&&a(h.target),n(h.target)),h.type==="attributes"&&h.target.parentNode&&Be.searchPseudoElements&&a(h.target.parentNode),h.type==="attributes"&&VO(h.target)&&~wz.indexOf(h.attributeName))if(h.attributeName==="class"&&oH(h.target)){var p=$g(p2(h.target)),m=p.prefix,v=p.iconName;h.target.setAttribute(f2,m||f),v&&h.target.setAttribute(d2,v)}else aH(h.target)&&i(h.target)})}}),Ji&&Ip.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function fH(){Ip&&Ip.disconnect()}function dH(t){var e=t.getAttribute("style"),n=[];return e&&(n=e.split(";").reduce(function(r,i){var o=i.split(":"),a=o[0],s=o.slice(1);return a&&s.length>0&&(r[a]=s.join(":").trim()),r},{})),n}function hH(t){var e=t.getAttribute("data-prefix"),n=t.getAttribute("data-icon"),r=t.innerText!==void 0?t.innerText.trim():"",i=$g(p2(t));return i.prefix||(i.prefix=Zo()),e&&n&&(i.prefix=e,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=Wz(i.prefix,t.innerText)||v2(i.prefix,P0(t.innerText))),!i.iconName&&Be.autoFetchSvg&&t.firstChild&&t.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=t.firstChild.data)),i}function pH(t){var e=jl(t.attributes).reduce(function(i,o){return i.name!=="class"&&i.name!=="style"&&(i[o.name]=o.value),i},{}),n=t.getAttribute("title"),r=t.getAttribute("data-fa-title-id");return Be.autoA11y&&(n?e["aria-labelledby"]="".concat(Be.replacementClass,"-title-").concat(r||Ac()):(e["aria-hidden"]="true",e.focusable="false")),e}function mH(){return{iconName:null,title:null,titleId:null,prefix:null,transform:pi,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function ZO(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=hH(t),r=n.iconName,i=n.prefix,o=n.rest,a=pH(t),s=C0("parseNodeAttributes",{},t),l=e.styleParser?dH(t):[];return Fe({iconName:r,title:t.getAttribute("title"),titleId:t.getAttribute("data-fa-title-id"),prefix:i,transform:pi,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:l,attributes:a}},s)}var gH=Wr.styles;function KL(t){var e=Be.autoReplaceSvg==="nest"?ZO(t,{styleParser:!1}):ZO(t);return~e.extra.classes.indexOf(RL)?Gi("generateLayersText",t,e):Gi("generateSvgReplacementMutation",t,e)}var Go=new Set;h2.map(function(t){Go.add("fa-".concat(t))});Object.keys(kc[xt]).map(Go.add.bind(Go));Object.keys(kc[$t]).map(Go.add.bind(Go));Go=cf(Go);function GO(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Ji)return Promise.resolve();var n=Ot.documentElement.classList,r=function(h){return n.add("".concat(FO,"-").concat(h))},i=function(h){return n.remove("".concat(FO,"-").concat(h))},o=Be.autoFetchSvg?Go:h2.map(function(f){return"fa-".concat(f)}).concat(Object.keys(gH));o.includes("fa")||o.push("fa");var a=[".".concat(RL,":not([").concat(Xa,"])")].concat(o.map(function(f){return".".concat(f,":not([").concat(Xa,"])")})).join(", ");if(a.length===0)return Promise.resolve();var s=[];try{s=jl(t.querySelectorAll(a))}catch{}if(s.length>0)r("pending"),i("complete");else return Promise.resolve();var l=b2.begin("onTree"),c=s.reduce(function(f,h){try{var p=KL(h);p&&f.push(p)}catch(m){LL||m.name==="MissingIcon"&&console.error(m)}return f},[]);return new Promise(function(f,h){Promise.all(c).then(function(p){ZL(p,function(){r("active"),r("complete"),i("pending"),typeof e=="function"&&e(),l(),f()})}).catch(function(p){l(),h(p)})})}function vH(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;KL(t).then(function(n){n&&ZL([n],e)})}function yH(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(e||{}).icon?e:k0(e||{}),i=n.mask;return i&&(i=(i||{}).icon?i:k0(i||{})),t(r,Fe(Fe({},n),{},{mask:i}))}}var _H=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,i=r===void 0?pi:r,o=n.symbol,a=o===void 0?!1:o,s=n.mask,l=s===void 0?null:s,c=n.maskId,f=c===void 0?null:c,h=n.title,p=h===void 0?null:h,m=n.titleId,v=m===void 0?null:m,y=n.classes,w=y===void 0?[]:y,_=n.attributes,b=_===void 0?{}:_,S=n.styles,O=S===void 0?{}:S;if(e){var M=e.prefix,C=e.iconName,R=e.icon;return jg(Fe({type:"icon"},e),function(){return Qa("beforeDOMElementCreation",{iconDefinition:e,params:n}),Be.autoA11y&&(p?b["aria-labelledby"]="".concat(Be.replacementClass,"-title-").concat(v||Ac()):(b["aria-hidden"]="true",b.focusable="false")),_2({icons:{main:M0(R),mask:l?M0(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:M,iconName:C,transform:Fe(Fe({},pi),i),symbol:a,title:p,maskId:f,titleId:v,extra:{attributes:b,styles:O,classes:w}})})}},bH={mixout:function(){return{icon:yH(_H)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=GO,n.nodeCallback=vH,n}}},provides:function(e){e.i2svg=function(n){var r=n.node,i=r===void 0?Ot:r,o=n.callback,a=o===void 0?function(){}:o;return GO(i,a)},e.generateSvgReplacementMutation=function(n,r){var i=r.iconName,o=r.title,a=r.titleId,s=r.prefix,l=r.transform,c=r.symbol,f=r.mask,h=r.maskId,p=r.extra;return new Promise(function(m,v){Promise.all([L0(i,s),f.iconName?L0(f.iconName,f.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(y){var w=u2(y,2),_=w[0],b=w[1];m([n,_2({icons:{main:_,mask:b},prefix:s,iconName:i,transform:l,symbol:c,maskId:h,title:o,titleId:a,extra:p,watchable:!0})])}).catch(v)})},e.generateAbstractIcon=function(n){var r=n.children,i=n.attributes,o=n.main,a=n.transform,s=n.styles,l=Ig(s);l.length>0&&(i.style=l);var c;return m2(a)&&(c=Gi("generateAbstractTransformGrouping",{main:o,transform:a,containerWidth:o.width,iconWidth:o.width})),r.push(c||o.icon),{children:r,attributes:i}}}},wH={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.classes,o=i===void 0?[]:i;return jg({type:"layer"},function(){Qa("beforeDOMElementCreation",{assembler:n,params:r});var a=[];return n(function(s){Array.isArray(s)?s.map(function(l){a=a.concat(l.abstract)}):a=a.concat(s.abstract)}),[{tag:"span",attributes:{class:["".concat(Be.cssPrefix,"-layers")].concat(cf(o)).join(" ")},children:a}]})}}}},xH={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.title,o=i===void 0?null:i,a=r.classes,s=a===void 0?[]:a,l=r.attributes,c=l===void 0?{}:l,f=r.styles,h=f===void 0?{}:f;return jg({type:"counter",content:n},function(){return Qa("beforeDOMElementCreation",{content:n,params:r}),tH({content:n.toString(),title:o,extra:{attributes:c,styles:h,classes:["".concat(Be.cssPrefix,"-layers-counter")].concat(cf(s))}})})}}}},SH={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.transform,o=i===void 0?pi:i,a=r.title,s=a===void 0?null:a,l=r.classes,c=l===void 0?[]:l,f=r.attributes,h=f===void 0?{}:f,p=r.styles,m=p===void 0?{}:p;return jg({type:"text",content:n},function(){return Qa("beforeDOMElementCreation",{content:n,params:r}),UO({content:n,transform:Fe(Fe({},pi),o),title:s,extra:{attributes:h,styles:m,classes:["".concat(Be.cssPrefix,"-layers-text")].concat(cf(c))}})})}}},provides:function(e){e.generateLayersText=function(n,r){var i=r.title,o=r.transform,a=r.extra,s=null,l=null;if(CL){var c=parseInt(getComputedStyle(n).fontSize,10),f=n.getBoundingClientRect();s=f.width/c,l=f.height/c}return Be.autoA11y&&!i&&(a.attributes["aria-hidden"]="true"),Promise.resolve([n,UO({content:n.innerHTML,width:s,height:l,transform:o,title:i,extra:a,watchable:!0})])}}},EH=new RegExp('"',"ug"),KO=[1105920,1112319];function OH(t){var e=t.replace(EH,""),n=$z(e,0),r=n>=KO[0]&&n<=KO[1],i=e.length===2?e[0]===e[1]:!1;return{value:P0(i?e[0]:e),isSecondary:r||i}}function XO(t,e){var n="".concat(hz).concat(e.replace(":","-"));return new Promise(function(r,i){if(t.getAttribute(n)!==null)return r();var o=jl(t.children),a=o.filter(function(R){return R.getAttribute(O0)===e})[0],s=qo.getComputedStyle(t,e),l=s.getPropertyValue("font-family").match(yz),c=s.getPropertyValue("font-weight"),f=s.getPropertyValue("content");if(a&&!l)return t.removeChild(a),r();if(l&&f!=="none"&&f!==""){var h=s.getPropertyValue("content"),p=~["Sharp"].indexOf(l[2])?$t:xt,m=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(l[2])?Mc[p][l[2].toLowerCase()]:_z[p][c],v=OH(h),y=v.value,w=v.isSecondary,_=l[0].startsWith("FontAwesome"),b=v2(m,y),S=b;if(_){var O=Vz(y);O.iconName&&O.prefix&&(b=O.iconName,m=O.prefix)}if(b&&!w&&(!a||a.getAttribute(f2)!==m||a.getAttribute(d2)!==S)){t.setAttribute(n,S),a&&t.removeChild(a);var M=mH(),C=M.extra;C.attributes[O0]=e,L0(b,m).then(function(R){var $=_2(Fe(Fe({},M),{},{icons:{main:R,mask:y2()},prefix:m,iconName:S,extra:C,watchable:!0})),U=Ot.createElement("svg");e==="::before"?t.insertBefore(U,t.firstChild):t.appendChild(U),U.outerHTML=$.map(function(I){return df(I)}).join(` `),t.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function PH(t){return Promise.all([XO(t,"::before"),XO(t,"::after")])}function TH(t){return t.parentNode!==document.head&&!~mz.indexOf(t.tagName.toUpperCase())&&!t.getAttribute(O0)&&(!t.parentNode||t.parentNode.tagName!=="svg")}function QO(t){if(Ji)return new Promise(function(e,n){var r=jl(t.querySelectorAll("*")).filter(TH).map(PH),i=b2.begin("searchPseudoElements");GL(),Promise.all(r).then(function(){i(),A0(),e()}).catch(function(){i(),A0(),n()})})}var CH={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=QO,n}}},provides:function(e){e.pseudoElements2svg=function(n){var r=n.node,i=r===void 0?Ot:r;Be.searchPseudoElements&&QO(i)}}},JO=!1,kH={mixout:function(){return{dom:{unwatch:function(){GL(),JO=!0}}}},hooks:function(){return{bootstrap:function(){qO(C0("mutationObserverCallbacks",{}))},noAuto:function(){fH()},watch:function(n){var r=n.observeMutationsRoot;JO?A0():qO(C0("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},eP=function(e){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce(function(r,i){var o=i.toLowerCase().split("-"),a=o[0],s=o.slice(1).join("-");if(a&&s==="h")return r.flipX=!0,r;if(a&&s==="v")return r.flipY=!0,r;if(s=parseFloat(s),isNaN(s))return r;switch(a){case"grow":r.size=r.size+s;break;case"shrink":r.size=r.size-s;break;case"left":r.x=r.x-s;break;case"right":r.x=r.x+s;break;case"up":r.y=r.y-s;break;case"down":r.y=r.y+s;break;case"rotate":r.rotate=r.rotate+s;break}return r},n)},MH={mixout:function(){return{parse:{transform:function(n){return eP(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-transform");return i&&(n.transform=eP(i)),n}}},provides:function(e){e.generateAbstractTransformGrouping=function(n){var r=n.main,i=n.transform,o=n.containerWidth,a=n.iconWidth,s={transform:"translate(".concat(o/2," 256)")},l="translate(".concat(i.x*32,", ").concat(i.y*32,") "),c="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),f="rotate(".concat(i.rotate," 0 0)"),h={transform:"".concat(l," ").concat(c," ").concat(f)},p={transform:"translate(".concat(a/2*-1," -256)")},m={outer:s,inner:h,path:p};return{tag:"g",attributes:Fe({},m.outer),children:[{tag:"g",attributes:Fe({},m.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:Fe(Fe({},r.icon.attributes),m.path)}]}]}}}},Ry={x:0,y:0,width:"100%",height:"100%"};function tP(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return t.attributes&&(t.attributes.fill||e)&&(t.attributes.fill="black"),t}function LH(t){return t.tag==="g"?t.children:[t]}var RH={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-mask"),o=i?$g(i.split(" ").map(function(a){return a.trim()})):y2();return o.prefix||(o.prefix=Zo()),n.mask=o,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(e){e.generateAbstractMask=function(n){var r=n.children,i=n.attributes,o=n.main,a=n.mask,s=n.maskId,l=n.transform,c=o.width,f=o.icon,h=a.width,p=a.icon,m=Mz({transform:l,containerWidth:h,iconWidth:c}),v={tag:"rect",attributes:Fe(Fe({},Ry),{},{fill:"white"})},y=f.children?{children:f.children.map(tP)}:{},w={tag:"g",attributes:Fe({},m.inner),children:[tP(Fe({tag:f.tag,attributes:Fe(Fe({},f.attributes),m.path)},y))]},_={tag:"g",attributes:Fe({},m.outer),children:[w]},b="mask-".concat(s||Ac()),S="clip-".concat(s||Ac()),O={tag:"mask",attributes:Fe(Fe({},Ry),{},{id:b,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[v,_]},M={tag:"defs",children:[{tag:"clipPath",attributes:{id:S},children:LH(p)},O]};return r.push(M,{tag:"rect",attributes:Fe({fill:"currentColor","clip-path":"url(#".concat(S,")"),mask:"url(#".concat(b,")")},Ry)}),{children:r,attributes:i}}}},AH={provides:function(e){var n=!1;qo.matchMedia&&(n=qo.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){var r=[],i={fill:"currentColor"},o={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:Fe(Fe({},i),{},{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"})});var a=Fe(Fe({},o),{},{attributeName:"opacity"}),s={tag:"circle",attributes:Fe(Fe({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||s.children.push({tag:"animate",attributes:Fe(Fe({},o),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Fe(Fe({},a),{},{values:"1;0;1;1;0;1;"})}),r.push(s),r.push({tag:"path",attributes:Fe(Fe({},i),{},{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:n?[]:[{tag:"animate",attributes:Fe(Fe({},a),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:Fe(Fe({},i),{},{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:Fe(Fe({},a),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},DH={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-symbol"),o=i===null?!1:i===""?!0:i;return n.symbol=o,n}}}},NH=[Az,bH,wH,xH,SH,CH,kH,MH,RH,AH,DH];Zz(NH,{mixoutsTo:vr});vr.noAuto;vr.config;vr.library;vr.dom;var D0=vr.parse;vr.findIconDefinition;vr.toHtml;var IH=vr.icon;vr.layer;vr.text;vr.counter;var x={},FH={get exports(){return x},set exports(t){x=t}},$H="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",jH=$H,BH=jH;function XL(){}function QL(){}QL.resetWarningCache=XL;var zH=function(){function t(r,i,o,a,s,l){if(l!==BH){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}t.isRequired=t;function e(){return t}var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:QL,resetWarningCache:XL};return n.PropTypes=n,n};FH.exports=zH();function nP(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Oo(t){for(var e=1;e=0)&&(n[i]=t[i]);return n}function UH(t,e){if(t==null)return{};var n=HH(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function N0(t){return WH(t)||VH(t)||YH(t)||qH()}function WH(t){if(Array.isArray(t))return I0(t)}function VH(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function YH(t,e){if(t){if(typeof t=="string")return I0(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return I0(t,e)}}function I0(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n2&&arguments[2]!==void 0?arguments[2]:{};if(typeof e=="string")return e;var r=(e.children||[]).map(function(l){return eR(t,l)}),i=Object.keys(e.attributes||{}).reduce(function(l,c){var f=e.attributes[c];switch(c){case"class":l.attrs.className=f,delete e.attributes.class;break;case"style":l.attrs.style=QH(f);break;default:c.indexOf("aria-")===0||c.indexOf("data-")===0?l.attrs[c.toLowerCase()]=f:l.attrs[JL(c)]=f}return l},{attrs:{}}),o=n.style,a=o===void 0?{}:o,s=UH(n,KH);return i.attrs.style=Oo(Oo({},i.attrs.style),a),t.apply(void 0,[e.tag,Oo(Oo({},i.attrs),s)].concat(N0(r)))}var tR=!1;try{tR=!0}catch{}function JH(){if(!tR&&console&&typeof console.error=="function"){var t;(t=console).error.apply(t,arguments)}}function rP(t){if(t&&Fp(t)==="object"&&t.prefix&&t.iconName&&t.icon)return t;if(D0.icon)return D0.icon(t);if(t===null)return null;if(t&&Fp(t)==="object"&&t.prefix&&t.iconName)return t;if(Array.isArray(t)&&t.length===2)return{prefix:t[0],iconName:t[1]};if(typeof t=="string")return{prefix:"fas",iconName:t}}function Ay(t,e){return Array.isArray(e)&&e.length>0||!Array.isArray(e)&&e?Ys({},t,e):{}}var Bg=j.forwardRef(function(t,e){var n=t.icon,r=t.mask,i=t.symbol,o=t.className,a=t.title,s=t.titleId,l=t.maskId,c=rP(n),f=Ay("classes",[].concat(N0(ZH(t)),N0(o.split(" ")))),h=Ay("transform",typeof t.transform=="string"?D0.transform(t.transform):t.transform),p=Ay("mask",rP(r)),m=IH(c,Oo(Oo(Oo(Oo({},f),h),p),{},{symbol:i,title:a,titleId:s,maskId:l}));if(!m)return JH("Could not find icon",c),null;var v=m.abstract,y={ref:e};return Object.keys(t).forEach(function(w){Bg.defaultProps.hasOwnProperty(w)||(y[w]=t[w])}),eU(v[0],y)});Bg.displayName="FontAwesomeIcon";Bg.propTypes={beat:x.bool,border:x.bool,beatFade:x.bool,bounce:x.bool,className:x.string,fade:x.bool,flash:x.bool,mask:x.oneOfType([x.object,x.array,x.string]),maskId:x.string,fixedWidth:x.bool,inverse:x.bool,flip:x.oneOf([!0,!1,"horizontal","vertical","both"]),icon:x.oneOfType([x.object,x.array,x.string]),listItem:x.bool,pull:x.oneOf(["right","left"]),pulse:x.bool,rotation:x.oneOf([0,90,180,270]),shake:x.bool,size:x.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:x.bool,spinPulse:x.bool,spinReverse:x.bool,symbol:x.oneOfType([x.bool,x.string]),title:x.string,titleId:x.string,transform:x.oneOfType([x.string,x.object]),swapOpacity:x.bool};Bg.defaultProps={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};var eU=eR.bind(null,j.createElement),F0={},tU={get exports(){return F0},set exports(t){F0=t}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var r=[],i=0;i1?n-1:0),i=1;i"u")return!1;var e=Ar(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function pU(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},i=e.attributes[n]||{},o=e.elements[n];!Pr(o)||!xi(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 mU(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var i=e.elements[r],o=e.attributes[r]||{},a=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),s=a.reduce(function(l,c){return l[c]="",l},{});!Pr(i)||!xi(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const gU={name:"applyStyles",enabled:!0,phase:"write",fn:pU,effect:mU,requires:["computeStyles"]};function vi(t){return t.split("-")[0]}var ja=Math.max,$p=Math.min,wl=Math.round;function j0(){var t=navigator.userAgentData;return t!=null&&t.brands?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function lR(){return!/^((?!chrome|android).)*safari/i.test(j0())}function xl(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),i=1,o=1;e&&Pr(t)&&(i=t.offsetWidth>0&&wl(r.width)/t.offsetWidth||1,o=t.offsetHeight>0&&wl(r.height)/t.offsetHeight||1);var a=Ja(t)?Ar(t):window,s=a.visualViewport,l=!lR()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/i,f=(r.top+(l&&s?s.offsetTop:0))/o,h=r.width/i,p=r.height/o;return{width:h,height:p,top:f,right:c+h,bottom:f+p,left:c,x:c,y:f}}function E2(t){var e=xl(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function uR(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&S2(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ki(t){return Ar(t).getComputedStyle(t)}function vU(t){return["table","td","th"].indexOf(xi(t))>=0}function sa(t){return((Ja(t)?t.ownerDocument:t.document)||window.document).documentElement}function zg(t){return xi(t)==="html"?t:t.assignedSlot||t.parentNode||(S2(t)?t.host:null)||sa(t)}function lP(t){return!Pr(t)||Ki(t).position==="fixed"?null:t.offsetParent}function yU(t){var e=/firefox/i.test(j0()),n=/Trident/i.test(j0());if(n&&Pr(t)){var r=Ki(t);if(r.position==="fixed")return null}var i=zg(t);for(S2(i)&&(i=i.host);Pr(i)&&["html","body"].indexOf(xi(i))<0;){var o=Ki(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function pf(t){for(var e=Ar(t),n=lP(t);n&&vU(n)&&Ki(n).position==="static";)n=lP(n);return n&&(xi(n)==="html"||xi(n)==="body"&&Ki(n).position==="static")?e:n||yU(t)||e}function O2(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Ku(t,e,n){return ja(t,$p(e,n))}function _U(t,e,n){var r=Ku(t,e,n);return r>n?n:r}function cR(){return{top:0,right:0,bottom:0,left:0}}function fR(t){return Object.assign({},cR(),t)}function dR(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var bU=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,fR(typeof e!="number"?e:dR(e,hf))};function wU(t){var e,n=t.state,r=t.name,i=t.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=vi(n.placement),l=O2(s),c=[ir,Mr].indexOf(s)>=0,f=c?"height":"width";if(!(!o||!a)){var h=bU(i.padding,n),p=E2(o),m=l==="y"?rr:ir,v=l==="y"?kr:Mr,y=n.rects.reference[f]+n.rects.reference[l]-a[l]-n.rects.popper[f],w=a[l]-n.rects.reference[l],_=pf(o),b=_?l==="y"?_.clientHeight||0:_.clientWidth||0:0,S=y/2-w/2,O=h[m],M=b-p[f]-h[v],C=b/2-p[f]/2+S,R=Ku(O,C,M),$=l;n.modifiersData[r]=(e={},e[$]=R,e.centerOffset=R-C,e)}}function xU(t){var e=t.state,n=t.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||uR(e.elements.popper,i)&&(e.elements.arrow=i))}const SU={name:"arrow",enabled:!0,phase:"main",fn:wU,effect:xU,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Sl(t){return t.split("-")[1]}var EU={top:"auto",right:"auto",bottom:"auto",left:"auto"};function OU(t){var e=t.x,n=t.y,r=window,i=r.devicePixelRatio||1;return{x:wl(e*i)/i||0,y:wl(n*i)/i||0}}function uP(t){var e,n=t.popper,r=t.popperRect,i=t.placement,o=t.variation,a=t.offsets,s=t.position,l=t.gpuAcceleration,c=t.adaptive,f=t.roundOffsets,h=t.isFixed,p=a.x,m=p===void 0?0:p,v=a.y,y=v===void 0?0:v,w=typeof f=="function"?f({x:m,y}):{x:m,y};m=w.x,y=w.y;var _=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),S=ir,O=rr,M=window;if(c){var C=pf(n),R="clientHeight",$="clientWidth";if(C===Ar(n)&&(C=sa(n),Ki(C).position!=="static"&&s==="absolute"&&(R="scrollHeight",$="scrollWidth")),C=C,i===rr||(i===ir||i===Mr)&&o===Dc){O=kr;var U=h&&C===M&&M.visualViewport?M.visualViewport.height:C[R];y-=U-r.height,y*=l?1:-1}if(i===ir||(i===rr||i===kr)&&o===Dc){S=Mr;var I=h&&C===M&&M.visualViewport?M.visualViewport.width:C[$];m-=I-r.width,m*=l?1:-1}}var H=Object.assign({position:s},c&&EU),W=f===!0?OU({x:m,y}):{x:m,y};if(m=W.x,y=W.y,l){var J;return Object.assign({},H,(J={},J[O]=b?"0":"",J[S]=_?"0":"",J.transform=(M.devicePixelRatio||1)<=1?"translate("+m+"px, "+y+"px)":"translate3d("+m+"px, "+y+"px, 0)",J))}return Object.assign({},H,(e={},e[O]=b?y+"px":"",e[S]=_?m+"px":"",e.transform="",e))}function PU(t){var e=t.state,n=t.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:vi(e.placement),variation:Sl(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,uP(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,uP(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const TU={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:PU,data:{}};var yd={passive:!0};function CU(t){var e=t.state,n=t.instance,r=t.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,l=Ar(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&c.forEach(function(f){f.addEventListener("scroll",n.update,yd)}),s&&l.addEventListener("resize",n.update,yd),function(){o&&c.forEach(function(f){f.removeEventListener("scroll",n.update,yd)}),s&&l.removeEventListener("resize",n.update,yd)}}const kU={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:CU,data:{}};var MU={left:"right",right:"left",bottom:"top",top:"bottom"};function Jd(t){return t.replace(/left|right|bottom|top/g,function(e){return MU[e]})}var LU={start:"end",end:"start"};function cP(t){return t.replace(/start|end/g,function(e){return LU[e]})}function P2(t){var e=Ar(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function T2(t){return xl(sa(t)).left+P2(t).scrollLeft}function RU(t,e){var n=Ar(t),r=sa(t),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var c=lR();(c||!c&&e==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+T2(t),y:l}}function AU(t){var e,n=sa(t),r=P2(t),i=(e=t.ownerDocument)==null?void 0:e.body,o=ja(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=ja(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+T2(t),l=-r.scrollTop;return Ki(i||n).direction==="rtl"&&(s+=ja(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function C2(t){var e=Ki(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function hR(t){return["html","body","#document"].indexOf(xi(t))>=0?t.ownerDocument.body:Pr(t)&&C2(t)?t:hR(zg(t))}function Xu(t,e){var n;e===void 0&&(e=[]);var r=hR(t),i=r===((n=t.ownerDocument)==null?void 0:n.body),o=Ar(r),a=i?[o].concat(o.visualViewport||[],C2(r)?r:[]):r,s=e.concat(a);return i?s:s.concat(Xu(zg(a)))}function B0(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function DU(t,e){var n=xl(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function fP(t,e,n){return e===aR?B0(RU(t,n)):Ja(e)?DU(e,n):B0(AU(sa(t)))}function NU(t){var e=Xu(zg(t)),n=["absolute","fixed"].indexOf(Ki(t).position)>=0,r=n&&Pr(t)?pf(t):t;return Ja(r)?e.filter(function(i){return Ja(i)&&uR(i,r)&&xi(i)!=="body"}):[]}function IU(t,e,n,r){var i=e==="clippingParents"?NU(t):[].concat(e),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,c){var f=fP(t,c,r);return l.top=ja(f.top,l.top),l.right=$p(f.right,l.right),l.bottom=$p(f.bottom,l.bottom),l.left=ja(f.left,l.left),l},fP(t,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 pR(t){var e=t.reference,n=t.element,r=t.placement,i=r?vi(r):null,o=r?Sl(r):null,a=e.x+e.width/2-n.width/2,s=e.y+e.height/2-n.height/2,l;switch(i){case rr:l={x:a,y:e.y-n.height};break;case kr:l={x:a,y:e.y+e.height};break;case Mr:l={x:e.x+e.width,y:s};break;case ir:l={x:e.x-n.width,y:s};break;default:l={x:e.x,y:e.y}}var c=i?O2(i):null;if(c!=null){var f=c==="y"?"height":"width";switch(o){case bl:l[c]=l[c]-(e[f]/2-n[f]/2);break;case Dc:l[c]=l[c]+(e[f]/2-n[f]/2);break}}return l}function Nc(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=r===void 0?t.placement:r,o=n.strategy,a=o===void 0?t.strategy:o,s=n.boundary,l=s===void 0?nU:s,c=n.rootBoundary,f=c===void 0?aR:c,h=n.elementContext,p=h===void 0?hu:h,m=n.altBoundary,v=m===void 0?!1:m,y=n.padding,w=y===void 0?0:y,_=fR(typeof w!="number"?w:dR(w,hf)),b=p===hu?rU:hu,S=t.rects.popper,O=t.elements[v?b:p],M=IU(Ja(O)?O:O.contextElement||sa(t.elements.popper),l,f,a),C=xl(t.elements.reference),R=pR({reference:C,element:S,strategy:"absolute",placement:i}),$=B0(Object.assign({},S,R)),U=p===hu?$:C,I={top:M.top-U.top+_.top,bottom:U.bottom-M.bottom+_.bottom,left:M.left-U.left+_.left,right:U.right-M.right+_.right},H=t.modifiersData.offset;if(p===hu&&H){var W=H[i];Object.keys(I).forEach(function(J){var Y=[Mr,kr].indexOf(J)>=0?1:-1,X=[rr,kr].indexOf(J)>=0?"y":"x";I[J]+=W[X]*Y})}return I}function FU(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?sR:l,f=Sl(r),h=f?s?sP:sP.filter(function(v){return Sl(v)===f}):hf,p=h.filter(function(v){return c.indexOf(v)>=0});p.length===0&&(p=h);var m=p.reduce(function(v,y){return v[y]=Nc(t,{placement:y,boundary:i,rootBoundary:o,padding:a})[vi(y)],v},{});return Object.keys(m).sort(function(v,y){return m[v]-m[y]})}function $U(t){if(vi(t)===x2)return[];var e=Jd(t);return[cP(t),e,cP(e)]}function jU(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,c=n.padding,f=n.boundary,h=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,v=m===void 0?!0:m,y=n.allowedAutoPlacements,w=e.options.placement,_=vi(w),b=_===w,S=l||(b||!v?[Jd(w)]:$U(w)),O=[w].concat(S).reduce(function(q,ne){return q.concat(vi(ne)===x2?FU(e,{placement:ne,boundary:f,rootBoundary:h,padding:c,flipVariations:v,allowedAutoPlacements:y}):ne)},[]),M=e.rects.reference,C=e.rects.popper,R=new Map,$=!0,U=O[0],I=0;I=0,X=Y?"width":"height",re=Nc(e,{placement:H,boundary:f,rootBoundary:h,altBoundary:p,padding:c}),se=Y?J?Mr:ir:J?kr:rr;M[X]>C[X]&&(se=Jd(se));var V=Jd(se),N=[];if(o&&N.push(re[W]<=0),s&&N.push(re[se]<=0,re[V]<=0),N.every(function(q){return q})){U=H,$=!1;break}R.set(H,N)}if($)for(var A=v?3:1,B=function(ne){var ae=O.find(function(he){var P=R.get(he);if(P)return P.slice(0,ne).every(function(k){return k})});if(ae)return U=ae,"break"},ee=A;ee>0;ee--){var z=B(ee);if(z==="break")break}e.placement!==U&&(e.modifiersData[r]._skip=!0,e.placement=U,e.reset=!0)}}const BU={name:"flip",enabled:!0,phase:"main",fn:jU,requiresIfExists:["offset"],data:{_skip:!1}};function dP(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function hP(t){return[rr,Mr,kr,ir].some(function(e){return t[e]>=0})}function zU(t){var e=t.state,n=t.name,r=e.rects.reference,i=e.rects.popper,o=e.modifiersData.preventOverflow,a=Nc(e,{elementContext:"reference"}),s=Nc(e,{altBoundary:!0}),l=dP(a,r),c=dP(s,i,o),f=hP(l),h=hP(c);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:h},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":h})}const HU={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:zU};function UU(t,e,n){var r=vi(t),i=[ir,rr].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[ir,Mr].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function WU(t){var e=t.state,n=t.options,r=t.name,i=n.offset,o=i===void 0?[0,0]:i,a=sR.reduce(function(f,h){return f[h]=UU(h,e.rects,o),f},{}),s=a[e.placement],l=s.x,c=s.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[r]=a}const VU={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:WU};function YU(t){var e=t.state,n=t.name;e.modifiersData[n]=pR({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const qU={name:"popperOffsets",enabled:!0,phase:"read",fn:YU,data:{}};function ZU(t){return t==="x"?"y":"x"}function GU(t){var e=t.state,n=t.options,r=t.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,c=n.rootBoundary,f=n.altBoundary,h=n.padding,p=n.tether,m=p===void 0?!0:p,v=n.tetherOffset,y=v===void 0?0:v,w=Nc(e,{boundary:l,rootBoundary:c,padding:h,altBoundary:f}),_=vi(e.placement),b=Sl(e.placement),S=!b,O=O2(_),M=ZU(O),C=e.modifiersData.popperOffsets,R=e.rects.reference,$=e.rects.popper,U=typeof y=="function"?y(Object.assign({},e.rects,{placement:e.placement})):y,I=typeof U=="number"?{mainAxis:U,altAxis:U}:Object.assign({mainAxis:0,altAxis:0},U),H=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,W={x:0,y:0};if(C){if(o){var J,Y=O==="y"?rr:ir,X=O==="y"?kr:Mr,re=O==="y"?"height":"width",se=C[O],V=se+w[Y],N=se-w[X],A=m?-$[re]/2:0,B=b===bl?R[re]:$[re],ee=b===bl?-$[re]:-R[re],z=e.elements.arrow,q=m&&z?E2(z):{width:0,height:0},ne=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:cR(),ae=ne[Y],he=ne[X],P=Ku(0,R[re],q[re]),k=S?R[re]/2-A-P-ae-I.mainAxis:B-P-ae-I.mainAxis,D=S?-R[re]/2+A+P+he+I.mainAxis:ee+P+he+I.mainAxis,G=e.elements.arrow&&pf(e.elements.arrow),Z=G?O==="y"?G.clientTop||0:G.clientLeft||0:0,ie=(J=H==null?void 0:H[O])!=null?J:0,pe=se+k-ie-Z,Le=se+D-ie,ue=Ku(m?$p(V,pe):V,se,m?ja(N,Le):N);C[O]=ue,W[O]=ue-se}if(s){var me,ve=O==="x"?rr:ir,Se=O==="x"?kr:Mr,Re=C[M],ke=M==="y"?"height":"width",Me=Re+w[ve],le=Re-w[Se],fe=[rr,ir].indexOf(_)!==-1,ye=(me=H==null?void 0:H[M])!=null?me:0,ge=fe?Me:Re-R[ke]-$[ke]-ye+I.altAxis,we=fe?Re+R[ke]+$[ke]-ye-I.altAxis:le,Pe=m&&fe?_U(ge,Re,we):Ku(m?ge:Me,Re,m?we:le);C[M]=Pe,W[M]=Pe-Re}e.modifiersData[r]=W}}const KU={name:"preventOverflow",enabled:!0,phase:"main",fn:GU,requiresIfExists:["offset"]};function XU(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function QU(t){return t===Ar(t)||!Pr(t)?P2(t):XU(t)}function JU(t){var e=t.getBoundingClientRect(),n=wl(e.width)/t.offsetWidth||1,r=wl(e.height)/t.offsetHeight||1;return n!==1||r!==1}function eW(t,e,n){n===void 0&&(n=!1);var r=Pr(e),i=Pr(e)&&JU(e),o=sa(e),a=xl(t,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((xi(e)!=="body"||C2(o))&&(s=QU(e)),Pr(e)?(l=xl(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):o&&(l.x=T2(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function tW(t){var e=new Map,n=new Set,r=[];t.forEach(function(o){e.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 l=e.get(s);l&&i(l)}}),r.push(o)}return t.forEach(function(o){n.has(o.name)||i(o)}),r}function nW(t){var e=tW(t);return hU.reduce(function(n,r){return n.concat(e.filter(function(i){return i.phase===r}))},[])}function rW(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function iW(t){var e=t.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(e).map(function(n){return e[n]})}var pP={placement:"bottom",modifiers:[],strategy:"absolute"};function mP(){for(var t=arguments.length,e=new Array(t),n=0;n=0)&&(n[i]=t[i]);return n}function We(t,e){if(t==null)return{};var n=_W(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function bW(){let t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t);const e=t.offsetWidth-t.clientWidth;return document.body.removeChild(t),e}function k2(t){document.body.style.paddingRight=t>0?`${t}px`:null}function wW(){return document.body.clientWidthe[n]||n).join(" "):t}function or(t,e){const n={};return Object.keys(t).forEach(r=>{e.indexOf(r)===-1&&(n[r]=t[r])}),n}function wR(t,e){const n=Array.isArray(e)?e:[e];let{length:r}=n,i;const o={};for(;r>0;)r-=1,i=n[r],o[i]=t[i];return o}let yP={};function U0(t){yP[t]||(typeof console<"u"&&console.error(t),yP[t]=!0)}function xR(t,e){return function(r,i,o,...a){return r[i]!==null&&typeof r[i]<"u"&&U0(`"${i}" property of "${o}" has been deprecated. ${e}`),t(r,i,o,...a)}}const SW=typeof window=="object"&&window.Element||function(){};function M2(t,e,n){if(!(t[e]instanceof SW))return new Error("Invalid prop `"+e+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")}const Ko=x.oneOfType([x.string,x.func,M2,x.shape({current:x.any})]),Oe=x.oneOfType([x.func,x.string,x.shape({$$typeof:x.symbol,render:x.func}),x.arrayOf(x.oneOfType([x.func,x.string,x.shape({$$typeof:x.symbol,render:x.func})]))]),es={Fade:150,Collapse:350,Modal:300,Carousel:600,Offcanvas:300},jp=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],Ni={ENTERING:"entering",ENTERED:"entered",EXITING:"exiting",EXITED:"exited"},ct={esc:27,space:32,enter:13,tab:9,up:38,down:40,home:36,end:35,n:78,p:80},EW=["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"],L2=!!(typeof window<"u"&&window.document&&window.document.createElement);function OW(t){return t&&typeof t=="object"?"current"in t:!1}function SR(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}function Bp(t){const e=typeof t;return t!=null&&(e==="object"||e==="function")}function _P(t){const e=typeof t,n=0/0;if(e==="number")return t;if(e==="symbol"||e==="object"&&SR(t)==="[object Symbol]")return n;if(Bp(t)){const i=typeof t.valueOf=="function"?t.valueOf():t;t=Bp(i)?`${i}`:i}if(e!=="string")return t===0?t:+t;t=t.replace(/^\s+|\s+$/g,"");const r=/^0b[01]+$/i.test(t);return r||/^0o[0-7]+$/i.test(t)?parseInt(t.slice(2),r?2:8):/^[-+]0x[0-9a-f]+$/i.test(t)?n:+t}function PW(t){if(!Bp(t))return!1;const e=SR(t);return e==="[object Function]"||e==="[object AsyncFunction]"||e==="[object GeneratorFunction]"||e==="[object Proxy]"}function ER(t){if(OW(t))return t.current;if(PW(t))return t();if(typeof t=="string"&&L2){let e=document.querySelectorAll(t);if(e.length||(e=document.querySelectorAll(`#${t}`)),!e.length)throw new Error(`The target '${t}' could not be identified in the dom, tip: check spelling`);return e}return t}function zp(t){return t===null?!1:Array.isArray(t)||L2&&typeof t.length=="number"}function El(t,e){const n=ER(t);return e?zp(n)?n:n===null?[]:[n]:zp(n)?n[0]:n}const TW=["touchstart","click"];function CW(t,e,n,r){let i=t;zp(i)||(i=[i]);let o=n;if(typeof o=="string"&&(o=o.split(/\s+/)),!zp(i)||typeof e!="function"||!Array.isArray(o))throw new Error(` The first argument of this function must be DOM node or an array on DOM nodes or NodeList. The second must be a function. The third is a string or an array of strings that represents DOM events `);return Array.prototype.forEach.call(o,a=>{Array.prototype.forEach.call(i,s=>{s.addEventListener(a,e,r)})}),function(){Array.prototype.forEach.call(o,s=>{Array.prototype.forEach.call(i,l=>{l.removeEventListener(s,e,r)})})}}const OR=["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"])'];x.oneOfType([x.bool,x.string]),x.string,x.object;const kW=["className","cssModule","noGutters","tag","widths"],MW=["xs","sm","md","lg","xl","xxl"],Ss=x.oneOfType([x.number,x.string]),LW={tag:Oe,noGutters:xR(x.bool,"Please use Bootstrap 5 gutter utility classes. https://getbootstrap.com/docs/5.0/layout/gutters/"),className:x.string,cssModule:x.object,xs:Ss,sm:Ss,md:Ss,lg:Ss,xl:Ss,xxl:Ss,widths:x.array},RW={tag:"div",widths:MW};function PR(t){const{className:e,cssModule:n,noGutters:r,tag:i,widths:o}=t,a=We(t,kW),s=[];o.forEach((c,f)=>{let h=t[c];if(delete a[c],!h)return;const p=!f;s.push(p?`row-cols-${h}`:`row-cols-${c}-${h}`)});const l=Ne(Te(e,r?"gx-0":null,"row",s),n);return j.createElement(i,Ie({},a,{className:l}))}PR.propTypes=LW;PR.defaultProps=RW;const AW=["className","cssModule","widths","tag"],TR=["xs","sm","md","lg","xl","xxl"],bP=x.oneOfType([x.number,x.string]),Es=x.oneOfType([x.bool,x.number,x.string,x.shape({size:x.oneOfType([x.bool,x.number,x.string]),order:bP,offset:bP})]),DW={tag:Oe,xs:Es,sm:Es,md:Es,lg:Es,xl:Es,xxl:Es,className:x.string,cssModule:x.object,widths:x.array},NW={tag:"div",widths:TR},wP=(t,e,n)=>n===!0||n===""?t?"col":`col-${e}`:n==="auto"?t?"col-auto":`col-${e}-auto`:t?`col-${n}`:`col-${e}-${n}`,IW=(t,e,n=TR)=>{const r=t,i=[];return n.forEach((o,a)=>{let s=r[o];if(delete r[o],!s&&s!=="")return;const l=!a;if(Bp(s)){const c=l?"-":`-${o}-`,f=wP(l,o,s.size);i.push(Ne(Te({[f]:s.size||s.size==="",[`order${c}${s.order}`]:s.order||s.order===0,[`offset${c}${s.offset}`]:s.offset||s.offset===0}),e))}else{const c=wP(l,o,s);i.push(c)}}),{colClasses:i,modifiedAttributes:r}};function R2(t){const{className:e,cssModule:n,widths:r,tag:i}=t,o=We(t,AW);let{modifiedAttributes:a,colClasses:s}=IW(o,n,r);s.length||s.push("col");const l=Ne(Te(e,s),n);return j.createElement(i,Ie({},a,{className:l}))}R2.propTypes=DW;R2.defaultProps=NW;const FW=["expand","className","cssModule","light","dark","fixed","sticky","color","container","tag","children"],$W={children:x.node,className:x.string,color:x.string,container:x.oneOfType([x.bool,x.string]),cssModule:x.object,dark:x.bool,expand:x.oneOfType([x.bool,x.string]),fixed:x.string,full:x.bool,light:x.bool,role:x.string,sticky:x.string,tag:Oe},jW={tag:"nav",expand:!1,container:"fluid"},BW=t=>t===!1?!1:t===!0||t==="xs"?"navbar-expand":`navbar-expand-${t}`;function CR(t){const{expand:e,className:n,cssModule:r,light:i,dark:o,fixed:a,sticky:s,color:l,container:c,tag:f,children:h}=t,p=We(t,FW),m=Ne(Te(n,"navbar",BW(e),{"navbar-light":i,"navbar-dark":o,[`bg-${l}`]:l,[`fixed-${a}`]:a,[`sticky-${s}`]:s}),r),v=c&&c===!0?"container":`container-${c}`;return j.createElement(f,Ie({},p,{className:m}),c?j.createElement("div",{className:v},h):h)}CR.propTypes=$W;CR.defaultProps=jW;const zW=["className","cssModule","tag"],HW={className:x.string,cssModule:x.object,tag:Oe},UW={tag:"a"};function kR(t){const{className:e,cssModule:n,tag:r}=t,i=We(t,zW),o=Ne(Te(e,"navbar-brand"),n);return j.createElement(r,Ie({},i,{className:o}))}kR.propTypes=HW;kR.defaultProps=UW;x.string,x.object,x.bool;const WW=["className","cssModule","children","tag"],VW={className:x.string,cssModule:x.object,tag:Oe,type:x.string,children:x.node},YW={tag:"button",type:"button"};function MR(t){const{className:e,cssModule:n,children:r,tag:i}=t,o=We(t,WW),a=Ne(Te(e,"navbar-toggler"),n);return j.createElement(i,Ie({"aria-label":"Toggle navigation"},o,{className:a}),r||j.createElement("span",{className:Ne("navbar-toggler-icon",n)}))}MR.propTypes=VW;MR.defaultProps=YW;const qW=["className","cssModule","tabs","pills","vertical","horizontal","justified","fill","navbar","card","tag"],ZW={card:x.bool,className:x.string,cssModule:x.object,fill:x.bool,horizontal:x.oneOf(["center","end"]),justified:x.bool,navbar:x.bool,pills:x.bool,tabs:x.bool,tag:Oe,vertical:x.oneOfType([x.bool,x.string])},GW={tag:"ul",vertical:!1},KW=t=>t===!1?!1:t===!0||t==="xs"?"flex-column":`flex-${t}-column`;function LR(t){const{className:e,cssModule:n,tabs:r,pills:i,vertical:o,horizontal:a,justified:s,fill:l,navbar:c,card:f,tag:h}=t,p=We(t,qW),m=Ne(Te(e,c?"navbar-nav":"nav",a?`justify-content-${a}`:!1,KW(o),{"nav-tabs":r,"card-header-tabs":f&&r,"nav-pills":i,"card-header-pills":f&&i,"nav-justified":s,"nav-fill":l}),n);return j.createElement(h,Ie({},p,{className:m}))}LR.propTypes=ZW;LR.defaultProps=GW;const XW=["className","cssModule","active","tag"],QW={active:x.bool,className:x.string,cssModule:x.object,tag:Oe},JW={tag:"li"};function RR(t){const{className:e,cssModule:n,active:r,tag:i}=t,o=We(t,XW),a=Ne(Te(e,"nav-item",r?"active":!1),n);return j.createElement(i,Ie({},o,{className:a}))}RR.propTypes=QW;RR.defaultProps=JW;const eV=["className","cssModule","active","tag","innerRef"],tV={active:x.bool,className:x.string,cssModule:x.object,disabled:x.bool,href:x.any,innerRef:x.oneOfType([x.object,x.func,x.string]),onClick:x.func,tag:Oe},nV={tag:"a"};class A2 extends j.Component{constructor(e){super(e),this.onClick=this.onClick.bind(this)}onClick(e){if(this.props.disabled){e.preventDefault();return}this.props.href==="#"&&e.preventDefault(),this.props.onClick&&this.props.onClick(e)}render(){let e=this.props,{className:n,cssModule:r,active:i,tag:o,innerRef:a}=e,s=We(e,eV);const l=Ne(Te(n,"nav-link",{disabled:s.disabled,active:i}),r);return j.createElement(o,Ie({},s,{ref:a,onClick:this.onClick,className:l}))}}A2.propTypes=tV;A2.defaultProps=nV;var vfe=A2;x.string,x.node,x.string,x.object,x.string;x.bool,x.string,x.object;const rV=["className","cssModule","variant","innerRef"],iV={active:x.bool,"aria-label":x.string,onClick:x.func,variant:x.oneOf(["white"]),className:x.string,cssModule:x.object,innerRef:x.oneOfType([x.object,x.string,x.func])},oV={"aria-label":"close"};function D2(t){const{className:e,cssModule:n,variant:r,innerRef:i}=t,o=We(t,rV),a=Ne(Te(e,"btn-close",r&&`btn-close-${r}`));return j.createElement("button",Ie({ref:i,type:"button",className:a},o))}D2.propTypes=iV;D2.defaultProps=oV;const aV=["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"],sV={active:x.bool,"aria-label":x.string,block:x.bool,children:x.node,className:x.string,cssModule:x.object,close:x.bool,color:x.string,disabled:x.bool,innerRef:x.oneOfType([x.object,x.func,x.string]),onClick:x.func,outline:x.bool,size:x.string,tag:Oe},lV={color:"secondary",tag:"button"};function N2(t){const e=Q.useCallback(w=>{if(t.disabled){w.preventDefault();return}if(t.onClick)return t.onClick(w)},[t.onClick,t.disabled]);let{active:n,"aria-label":r,block:i,className:o,close:a,cssModule:s,color:l,outline:c,size:f,tag:h,innerRef:p}=t,m=We(t,aV);if(a)return j.createElement(D2,m);const v=`btn${c?"-outline":""}-${l}`,y=Ne(Te(o,"btn",v,f?`btn-${f}`:!1,i?"d-block w-100":!1,{active:n,disabled:t.disabled}),s);return m.href&&h==="button"&&(h="a"),j.createElement(h,Ie({type:h==="button"&&m.onClick?"button":void 0},m,{className:y,ref:p,onClick:e,"aria-label":r}))}N2.propTypes=sV;N2.defaultProps=lV;x.func,x.func,x.func,x.bool,x.string,x.object;const Ic=j.createContext({}),AR=j.createContext({}),uV=["className","cssModule","direction","isOpen","group","size","nav","setActiveFromChild","active","tag","menuRole"],cV={a11y:x.bool,disabled:x.bool,direction:x.oneOf(["up","down","start","end","left","right"]),group:x.bool,isOpen:x.bool,nav:x.bool,active:x.bool,size:x.string,tag:Oe,toggle:x.func,children:x.node,className:x.string,cssModule:x.object,dropup:x.bool,inNavbar:x.bool,setActiveFromChild:x.bool,menuRole:x.oneOf(["listbox","menu"])},fV={a11y:!0,isOpen:!1,direction:"down",nav:!1,active:!1,inNavbar:!1,setActiveFromChild:!1},dV=[ct.space,ct.enter,ct.up,ct.down,ct.end,ct.home];class Hg extends j.Component{constructor(e){super(e),this.addEvents=this.addEvents.bind(this),this.handleDocumentClick=this.handleDocumentClick.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.removeEvents=this.removeEvents.bind(this),this.toggle=this.toggle.bind(this),this.handleMenuRef=this.handleMenuRef.bind(this),this.handleToggleRef=this.handleToggleRef.bind(this),this.containerRef=j.createRef(),this.menuRef=j.createRef(),this.toggleRef=j.createRef()}componentDidMount(){this.handleProps()}componentDidUpdate(e){this.props.isOpen!==e.isOpen&&this.handleProps()}componentWillUnmount(){this.removeEvents()}handleMenuRef(e){this.menuRef.current=e}handleToggleRef(e){this.toggleRef.current=e}handleDocumentClick(e){if(e&&(e.which===3||e.type==="keyup"&&e.which!==ct.tab))return;const n=this.getContainer(),r=this.getMenu(),i=this.getToggle(),o=e.target===i,a=r&&r.contains(e.target)&&r!==e.target;let s=!1;n&&(s=n.classList.contains("input-group")&&n.classList.contains("dropdown")&&e.target.tagName==="INPUT"),!((o&&!s||a)&&(e.type!=="keyup"||e.which===ct.tab))&&this.toggle(e)}handleKeyDown(e){const n=e.target.getAttribute("role")==="menuitem"||e.target.getAttribute("role")==="option",r=this.getMenuCtrl()===e.target,i=ct.tab===e.which;if(!(/input|textarea/i.test(e.target.tagName)||i&&!this.props.a11y||i&&!(n||r))&&((dV.indexOf(e.which)!==-1||e.which>=48&&e.which<=90)&&e.preventDefault(),!this.props.disabled&&(r&&([ct.space,ct.enter,ct.up,ct.down].indexOf(e.which)>-1?(this.props.isOpen||this.toggle(e),setTimeout(()=>this.getMenuItems()[0].focus())):this.props.isOpen&&i?(e.preventDefault(),this.getMenuItems()[0].focus()):this.props.isOpen&&e.which===ct.esc&&this.toggle(e)),this.props.isOpen&&n))){if([ct.tab,ct.esc].indexOf(e.which)>-1)this.toggle(e),this.getMenuCtrl().focus();else if([ct.space,ct.enter].indexOf(e.which)>-1)e.target.click(),this.getMenuCtrl().focus();else if([ct.down,ct.up].indexOf(e.which)>-1||[ct.n,ct.p].indexOf(e.which)>-1&&e.ctrlKey){const o=this.getMenuItems();let a=o.indexOf(e.target);ct.up===e.which||ct.p===e.which&&e.ctrlKey?a=a!==0?a-1:o.length-1:(ct.down===e.which||ct.n===e.which&&e.ctrlKey)&&(a=a===o.length-1?0:a+1),o[a].focus()}else if(ct.end===e.which){const o=this.getMenuItems();o[o.length-1].focus()}else if(ct.home===e.which)this.getMenuItems()[0].focus();else if(e.which>=48&&e.which<=90){const o=this.getMenuItems(),a=String.fromCharCode(e.which).toLowerCase();for(let s=0;sdocument.addEventListener(e,this.handleDocumentClick,!0))}removeEvents(){["click","touchstart","keyup"].forEach(e=>document.removeEventListener(e,this.handleDocumentClick,!0))}toggle(e){return this.props.disabled?e&&e.preventDefault():this.props.toggle(e)}render(){const e=or(this.props,["toggle","disabled","inNavbar","a11y"]),{className:n,cssModule:r,direction:i,isOpen:o,group:a,size:s,nav:l,setActiveFromChild:c,active:f,tag:h,menuRole:p}=e,m=We(e,uV),v=h||(l?"li":"div");let y=!1;c&&j.Children.map(this.props.children[1].props.children,_=>{_&&_.props.active&&(y=!0)});const w=Ne(Te(n,l&&f?"active":!1,c&&y?"active":!1,{"btn-group":a,[`btn-group-${s}`]:!!s,dropdown:!a,dropup:i==="up",dropstart:i==="start"||i==="left",dropend:i==="end"||i==="right",show:o,"nav-item":l}),r);return this.context.insideInputGroup?j.createElement(Ic.Provider,{value:this.getContextValue()},j.createElement(iP,null,j.Children.map(this.props.children,_=>j.cloneElement(_,{onKeyDown:this.handleKeyDown})))):j.createElement(Ic.Provider,{value:this.getContextValue()},j.createElement(iP,null,j.createElement(v,Ie({},m,{[typeof v=="string"?"ref":"innerRef"]:this.containerRef,onKeyDown:this.handleKeyDown,className:w}))))}}Hg.propTypes=cV;Hg.defaultProps=fV;Hg.contextType=AR;var Ug=Hg;const hV={children:x.node};function I2(t){return j.createElement(Ug,Ie({group:!0},t))}I2.propTypes=hV;x.string,x.string,x.object,x.string,x.string,x.bool;x.string,x.string,x.object,x.string;const pV=["className","cssModule","divider","tag","header","active","text"],mV={children:x.node,active:x.bool,disabled:x.bool,divider:x.bool,tag:Oe,header:x.bool,onClick:x.func,className:x.string,cssModule:x.object,toggle:x.bool,text:x.bool},gV={tag:"button",toggle:!0};class Wg extends j.Component{constructor(e){super(e),this.onClick=this.onClick.bind(this),this.getTabIndex=this.getTabIndex.bind(this)}onClick(e){const{disabled:n,header:r,divider:i,text:o}=this.props;if(n||r||i||o){e.preventDefault();return}this.props.onClick&&this.props.onClick(e),this.props.toggle&&this.context.toggle(e)}getRole(){return this.context.menuRole==="listbox"?"option":"menuitem"}getTabIndex(){const{disabled:e,header:n,divider:r,text:i}=this.props;return e||n||r||i?"-1":"0"}render(){const e=this.getTabIndex(),n=e>-1?this.getRole():void 0;let r=or(this.props,["toggle"]),{className:i,cssModule:o,divider:a,tag:s,header:l,active:c,text:f}=r,h=We(r,pV);const p=Ne(Te(i,{disabled:h.disabled,"dropdown-item":!a&&!l&&!f,active:c,"dropdown-header":l,"dropdown-divider":a,"dropdown-item-text":f}),o);return s==="button"&&(l?s="h6":a?s="div":h.href?s="a":f&&(s="span")),j.createElement(s,Ie({type:s==="button"&&(h.onClick||this.props.toggle)?"button":void 0},h,{tabIndex:e,role:n,className:p,onClick:this.onClick}))}}Wg.propTypes=mV;Wg.defaultProps=gV;Wg.contextType=Ic;var yfe=Wg;const vV=["className","cssModule","dark","end","right","tag","flip","modifiers","persist","strategy","container","updateOnSelect"],yV={tag:Oe,children:x.node.isRequired,dark:x.bool,end:x.bool,flip:x.bool,modifiers:x.array,className:x.string,cssModule:x.object,style:x.object,persist:x.bool,strategy:x.string,container:Ko,updateOnSelect:x.bool,right:xR(x.bool,'Please use "end" instead.')},_V={tag:"div",flip:!0,modifiers:[]},bV={up:"top",left:"left",right:"right",start:"left",end:"right",down:"bottom"};class Vg extends j.Component{getRole(){return this.context.menuRole==="listbox"?"listbox":"menu"}render(){const e=this.props,{className:n,cssModule:r,dark:i,end:o,right:a,tag:s,flip:l,modifiers:c,persist:f,strategy:h,container:p,updateOnSelect:m}=e,v=We(e,vV),y=Ne(Te(n,"dropdown-menu",{"dropdown-menu-dark":i,"dropdown-menu-end":o||a,show:this.context.isOpen}),r),w=s;if(f||this.context.isOpen&&!this.context.inNavbar){const O=`${bV[this.context.direction]||"bottom"}-${o||a?"end":"start"}`,M=[...c,{name:"flip",enabled:!!l}],C=j.createElement(vR,{placement:O,modifiers:M,strategy:h},({ref:R,style:$,placement:U,update:I})=>{let H=He(He({},this.props.style),$);const W=J=>{R(J);const{onMenuRef:Y}=this.context;Y&&Y(J)};return j.createElement(w,Ie({tabIndex:"-1",role:this.getRole(),ref:W},v,{style:H,"aria-hidden":!this.context.isOpen,className:y,"data-popper-placement":U,onClick:()=>m&&I()}))});return p?Fa.createPortal(C,El(p)):C}const{onMenuRef:_}=this.context;return j.createElement(w,Ie({tabIndex:"-1",role:this.getRole()},v,{ref:_,"aria-hidden":!this.context.isOpen,className:y,"data-popper-placement":v.placement}))}}Vg.propTypes=yV;Vg.defaultProps=_V;Vg.contextType=Ic;var _fe=Vg;const wV=["className","color","cssModule","caret","split","nav","tag","innerRef"],xV={caret:x.bool,color:x.string,children:x.node,className:x.string,cssModule:x.object,disabled:x.bool,onClick:x.func,"aria-haspopup":x.bool,split:x.bool,tag:Oe,nav:x.bool,innerRef:x.oneOfType([x.object,x.string,x.func])},SV={color:"secondary","aria-haspopup":!0};class Yg extends j.Component{constructor(e){super(e),this.onClick=this.onClick.bind(this)}onClick(e){if(this.props.disabled||this.context.disabled){e.preventDefault();return}this.props.nav&&!this.props.tag&&e.preventDefault(),this.props.onClick&&this.props.onClick(e),this.context.toggle(e)}getRole(){return this.context.menuRole||this.props["aria-haspopup"]}render(){const e=this.props,{className:n,color:r,cssModule:i,caret:o,split:a,nav:s,tag:l,innerRef:c}=e,f=We(e,wV),h=f["aria-label"]||"Toggle Dropdown",p=Ne(Te(n,{"dropdown-toggle":o||a,"dropdown-toggle-split":a,"nav-link":s}),i),m=typeof f.children<"u"?f.children:j.createElement("span",{className:"visually-hidden"},h);let v;return s&&!l?(v="a",f.href="#"):l?v=l:(v=N2,f.color=r,f.cssModule=i),this.context.inNavbar?j.createElement(v,Ie({},f,{className:p,onClick:this.onClick,ref:this.context.onToggleRef,"aria-expanded":this.context.isOpen,"aria-haspopup":this.getRole(),children:m})):j.createElement(gW,{innerRef:c},({ref:y})=>{const w=_=>{y(_);const{onToggleRef:b}=this.context;b&&b(_)};return j.createElement(v,Ie({},f,{[typeof v=="string"?"ref":"innerRef"]:w,className:p,onClick:this.onClick,"aria-expanded":this.context.isOpen,"aria-haspopup":this.getRole(),children:m}))})}}Yg.propTypes=xV;Yg.defaultProps=SV;Yg.contextType=Ic;var bfe=Yg;const EV=["tag","baseClass","baseClassActive","className","cssModule","children","innerRef"],OV=He(He({},to.propTypes),{},{children:x.oneOfType([x.arrayOf(x.node),x.node]),tag:Oe,baseClass:x.string,baseClassActive:x.string,className:x.string,cssModule:x.object,innerRef:x.oneOfType([x.object,x.string,x.func])}),PV=He(He({},to.defaultProps),{},{tag:"div",baseClass:"fade",baseClassActive:"show",timeout:es.Fade,appear:!0,enter:!0,exit:!0,in:!0});function jt(t){const{tag:e,baseClass:n,baseClassActive:r,className:i,cssModule:o,children:a,innerRef:s}=t,l=We(t,EV),c=wR(l,jp),f=or(l,jp);return j.createElement(to,c,h=>{const m=Ne(Te(i,n,h==="entered"&&r),o);return j.createElement(e,Ie({className:m},f,{ref:s}),a)})}jt.propTypes=OV;jt.defaultProps=PV;j.createContext({});x.node,x.string,x.object,x.bool,x.oneOfType([x.object,x.string,x.func]),x.oneOfType([x.array,x.string]).isRequired,x.func.isRequired;x.string,x.object,x.oneOfType([x.object,x.string,x.func]),x.node,x.oneOfType([x.array,x.string]),x.bool;x.node,x.string,x.object,x.oneOfType([x.object,x.string,x.func]),x.string.isRequired;x.node,x.string,x.object,x.oneOfType([x.object,x.string,x.func]);const TV=["tag","horizontal","isOpen","className","navbar","cssModule","children","innerRef"],CV=He(He({},to.propTypes),{},{horizontal:x.bool,isOpen:x.bool,children:x.oneOfType([x.arrayOf(x.node),x.node]),tag:Oe,className:x.node,navbar:x.bool,cssModule:x.object,innerRef:x.shape({current:x.object})}),kV=He(He({},to.defaultProps),{},{horizontal:!1,isOpen:!1,appear:!1,enter:!0,exit:!0,tag:"div",timeout:es.Collapse}),MV={[Ni.ENTERING]:"collapsing",[Ni.ENTERED]:"collapse show",[Ni.EXITING]:"collapsing",[Ni.EXITED]:"collapse"};function LV(t){return MV[t]||"collapse"}class F2 extends Q.Component{constructor(e){super(e),this.state={dimension:null},this.nodeRef=e.innerRef||j.createRef(),["onEntering","onEntered","onExit","onExiting","onExited"].forEach(n=>{this[n]=this[n].bind(this)})}onEntering(e,n){const r=this.getNode();this.setState({dimension:this.getDimension(r)}),this.props.onEntering(r,n)}onEntered(e,n){const r=this.getNode();this.setState({dimension:null}),this.props.onEntered(r,n)}onExit(){const e=this.getNode();this.setState({dimension:this.getDimension(e)}),this.props.onExit(e)}onExiting(){const e=this.getNode();this.getDimension(e),this.setState({dimension:0}),this.props.onExiting(e)}onExited(){const e=this.getNode();this.setState({dimension:null}),this.props.onExited(e)}getNode(){return this.nodeRef.current}getDimension(e){return this.props.horizontal?e.scrollWidth:e.scrollHeight}render(){const e=this.props,{tag:n,horizontal:r,isOpen:i,className:o,navbar:a,cssModule:s,children:l,innerRef:c}=e,f=We(e,TV),{dimension:h}=this.state,p=wR(f,jp),m=or(f,jp);return j.createElement(to,Ie({},p,{in:i,nodeRef:this.nodeRef,onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),v=>{let y=LV(v);const w=Ne(Te(o,r&&"collapse-horizontal",y,a&&"navbar-collapse"),s),_=h===null?null:{[r?"width":"height"]:h};return j.createElement(n,Ie({},m,{style:He(He({},m.style),_),className:w,ref:this.nodeRef}),l)})}}F2.propTypes=CV;F2.defaultProps=kV;var RV=F2;x.string.isRequired,x.string,x.node,x.object,x.oneOfType([x.object,x.string,x.func]);x.node,x.string,x.string,x.object,x.oneOfType([x.object,x.func,x.string]),x.bool;const AV=["className","cssModule","color","body","inverse","outline","tag","innerRef"],DV={body:x.bool,className:x.string,color:x.string,cssModule:x.object,innerRef:x.oneOfType([x.object,x.string,x.func]),inverse:x.bool,outline:x.bool,tag:Oe},NV={tag:"div"};function DR(t){const{className:e,cssModule:n,color:r,body:i,inverse:o,outline:a,tag:s,innerRef:l}=t,c=We(t,AV),f=Ne(Te(e,"card",o?"text-white":!1,i?"card-body":!1,r?`${a?"border":"bg"}-${r}`:!1),n);return j.createElement(s,Ie({},c,{className:f,ref:l}))}DR.propTypes=DV;DR.defaultProps=NV;x.string,x.object;x.string,x.object;x.string,x.object;const IV=["className","cssModule","innerRef","tag"],FV={className:x.string,cssModule:x.object,innerRef:x.oneOfType([x.object,x.string,x.func]),tag:Oe},$V={tag:"div"};function NR(t){const{className:e,cssModule:n,innerRef:r,tag:i}=t,o=We(t,IV),a=Ne(Te(e,"card-body"),n);return j.createElement(i,Ie({},o,{className:a,ref:r}))}NR.propTypes=FV;NR.defaultProps=$V;x.oneOfType([x.object,x.func,x.string]),x.string,x.object;const jV=["className","cssModule","tag"],BV={className:x.string,cssModule:x.object,tag:Oe},zV={tag:"div"};function IR(t){const{className:e,cssModule:n,tag:r}=t,i=We(t,jV),o=Ne(Te(e,"card-footer"),n);return j.createElement(r,Ie({},i,{className:o}))}IR.propTypes=BV;IR.defaultProps=zV;const HV=["className","cssModule","tag"],UV={className:x.string,cssModule:x.object,tag:Oe},WV={tag:"div"};function FR(t){const{className:e,cssModule:n,tag:r}=t,i=We(t,HV),o=Ne(Te(e,"card-header"),n);return j.createElement(r,Ie({},i,{className:o}))}FR.propTypes=UV;FR.defaultProps=WV;x.bool,x.string,x.object,x.bool;x.string,x.object;const th=j.createContext({}),VV=["in","children","cssModule","slide","tag","className"];class qg extends j.Component{constructor(e){super(e),this.state={startAnimation:!1},this.onEnter=this.onEnter.bind(this),this.onEntering=this.onEntering.bind(this),this.onExit=this.onExit.bind(this),this.onExiting=this.onExiting.bind(this),this.onExited=this.onExited.bind(this)}onEnter(e,n){this.setState({startAnimation:!1}),this.props.onEnter(e,n)}onEntering(e,n){const{offsetHeight:r}=e;return this.setState({startAnimation:!0}),this.props.onEntering(e,n),r}onExit(e){this.setState({startAnimation:!1}),this.props.onExit(e)}onExiting(e){this.setState({startAnimation:!0}),e.dispatchEvent(new CustomEvent("slide.bs.carousel")),this.props.onExiting(e)}onExited(e){e.dispatchEvent(new CustomEvent("slid.bs.carousel")),this.props.onExited(e)}render(){const e=this.props,{in:n,children:r,cssModule:i,slide:o,tag:a,className:s}=e,l=We(e,VV);return j.createElement(to,Ie({},l,{enter:o,exit:o,in:n,onEnter:this.onEnter,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),c=>{const{direction:f}=this.context,h=c===Ni.ENTERED||c===Ni.EXITING,p=(c===Ni.ENTERING||c===Ni.EXITING)&&this.state.startAnimation&&(f==="end"?"carousel-item-start":"carousel-item-end"),m=c===Ni.ENTERING&&(f==="end"?"carousel-item-next":"carousel-item-prev"),v=Ne(Te(s,"carousel-item",h&&"active",p,m),i);return j.createElement(a,{className:v},r)})}}qg.propTypes=He(He({},to.propTypes),{},{tag:Oe,in:x.bool,cssModule:x.object,children:x.node,slide:x.bool,className:x.string});qg.defaultProps=He(He({},to.defaultProps),{},{tag:"div",timeout:es.Carousel,slide:!0});qg.contextType=th;var $R=qg;const YV=40,jR={activeIndex:x.number,next:x.func.isRequired,previous:x.func.isRequired,keyboard:x.bool,pause:x.oneOf(["hover",!1]),ride:x.oneOf(["carousel"]),interval:x.oneOfType([x.number,x.string,x.bool]),children:x.array,mouseEnter:x.func,mouseLeave:x.func,slide:x.bool,dark:x.bool,fade:x.bool,cssModule:x.object,className:x.string,enableTouch:x.bool},qV=Object.keys(jR),ZV={interval:5e3,pause:"hover",keyboard:!0,slide:!0,enableTouch:!0,fade:!1};class $2 extends j.Component{constructor(e){super(e),this.handleKeyPress=this.handleKeyPress.bind(this),this.renderItems=this.renderItems.bind(this),this.hoverStart=this.hoverStart.bind(this),this.hoverEnd=this.hoverEnd.bind(this),this.handleTouchStart=this.handleTouchStart.bind(this),this.handleTouchEnd=this.handleTouchEnd.bind(this),this.touchStartX=0,this.touchStartY=0,this.state={activeIndex:this.props.activeIndex,direction:"end",indicatorClicked:!1}}componentDidMount(){this.props.ride==="carousel"&&this.setInterval(),document.addEventListener("keyup",this.handleKeyPress)}static getDerivedStateFromProps(e,n){let r=null,{activeIndex:i,direction:o,indicatorClicked:a}=n;return e.activeIndex!==i&&(e.activeIndex===i+1?o="end":e.activeIndex===i-1?o="start":e.activeIndex{this.props.next()},parseInt(this.props.interval,10)))}clearInterval(){clearInterval(this.cycleInterval)}hoverStart(...e){this.props.pause==="hover"&&this.clearInterval(),this.props.mouseEnter&&this.props.mouseEnter(...e)}hoverEnd(...e){this.props.pause==="hover"&&this.setInterval(),this.props.mouseLeave&&this.props.mouseLeave(...e)}renderItems(e,n){const{slide:r}=this.props;return j.createElement("div",{className:n},e.map((i,o)=>{const a=o===this.state.activeIndex;return j.cloneElement(i,{in:a,slide:r})}))}render(){const{cssModule:e,slide:n,className:r,dark:i,fade:o}=this.props,a=or(this.props,qV),s=Ne(Te(r,"carousel",o&&"carousel-fade",n&&"slide",i&&"carousel-dark"),e),l=Ne(Te("carousel-inner"),e),c=this.props.children.filter(_=>_!=null&&typeof _!="boolean");if(c.every(_=>_.type===$R))return j.createElement("div",Ie({},a,{className:s,onMouseEnter:this.hoverStart,onMouseLeave:this.hoverEnd}),j.createElement(th.Provider,{value:this.getContextValue()},this.renderItems(c,l)));if(c[0]instanceof Array){const _=c[0],b=c[1],S=c[2];return j.createElement("div",Ie({},a,{className:s,onMouseEnter:this.hoverStart,onMouseLeave:this.hoverEnd}),j.createElement(th.Provider,{value:this.getContextValue()},this.renderItems(_,l),b,S))}const h=c[0],p=_=>{typeof h.props.onClickHandler=="function"&&this.setState({indicatorClicked:!0},()=>h.props.onClickHandler(_))},m=j.cloneElement(h,{onClickHandler:p}),v=c[1],y=c[2],w=c[3];return j.createElement("div",Ie({},a,{className:s,onMouseEnter:this.hoverStart,onMouseLeave:this.hoverEnd,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),j.createElement(th.Provider,{value:this.getContextValue()},m,this.renderItems(v,l),y,w))}}$2.propTypes=jR;$2.defaultProps=ZV;var GV=$2;const KV=["direction","onClickHandler","cssModule","directionText","className"];function W0(t){const{direction:e,onClickHandler:n,cssModule:r,directionText:i,className:o}=t,a=We(t,KV),s=Ne(Te(o,`carousel-control-${e}`),r),l=Ne(Te(`carousel-control-${e}-icon`),r),c=Ne(Te("visually-hidden"),r);return j.createElement("a",Ie({},a,{className:s,style:{cursor:"pointer"},role:"button",tabIndex:"0",onClick:f=>{f.preventDefault(),n()}}),j.createElement("span",{className:l,"aria-hidden":"true"}),j.createElement("span",{className:c},i||e))}W0.propTypes={direction:x.oneOf(["prev","next"]).isRequired,onClickHandler:x.func.isRequired,cssModule:x.object,directionText:x.string,className:x.string};const XV=["items","activeIndex","cssModule","onClickHandler","className"];function BR(t){const{items:e,activeIndex:n,cssModule:r,onClickHandler:i,className:o}=t,a=We(t,XV),s=Ne(Te(o,"carousel-indicators"),r),l=e.map((c,f)=>{const h=Ne(Te({active:n===f}),r);return j.createElement("button",{"aria-label":c.caption,"data-bs-target":!0,type:"button",key:`${c.key||Object.values(c).join("")}`,onClick:p=>{p.preventDefault(),i(f)},className:h})});return j.createElement("div",Ie({className:s},a),l)}BR.propTypes={activeIndex:x.number.isRequired,className:x.string,cssModule:x.object,items:x.array.isRequired,onClickHandler:x.func.isRequired};function zR(t){const{captionHeader:e,captionText:n,cssModule:r,className:i}=t,o=Ne(Te(i,"carousel-caption","d-none","d-md-block"),r);return j.createElement("div",{className:o},j.createElement("h3",null,e),j.createElement("p",null,n))}zR.propTypes={captionHeader:x.node,captionText:x.node.isRequired,className:x.string,cssModule:x.object};const QV=["defaultActiveIndex","autoPlay","indicators","controls","items","goToIndex"],JV={items:x.array.isRequired,indicators:x.bool,controls:x.bool,autoPlay:x.bool,defaultActiveIndex:x.number,activeIndex:x.number,next:x.func,previous:x.func,goToIndex:x.func};class HR extends Q.Component{constructor(e){super(e),this.animating=!1,this.state={activeIndex:e.defaultActiveIndex||0},this.next=this.next.bind(this),this.previous=this.previous.bind(this),this.goToIndex=this.goToIndex.bind(this),this.onExiting=this.onExiting.bind(this),this.onExited=this.onExited.bind(this)}onExiting(){this.animating=!0}onExited(){this.animating=!1}next(){this.animating||this.setState(e=>({activeIndex:e.activeIndex===this.props.items.length-1?0:e.activeIndex+1}))}previous(){this.animating||this.setState(e=>({activeIndex:e.activeIndex===0?this.props.items.length-1:e.activeIndex-1}))}goToIndex(e){this.animating||this.setState({activeIndex:e})}render(){const e=this.props,{defaultActiveIndex:n,autoPlay:r,indicators:i,controls:o,items:a,goToIndex:s}=e,l=We(e,QV),{activeIndex:c}=this.state,f=a.map(h=>{const p=h.key||h.src;return j.createElement($R,{onExiting:this.onExiting,onExited:this.onExited,key:p},j.createElement("img",{className:"d-block w-100",src:h.src,alt:h.altText}),j.createElement(zR,{captionText:h.caption,captionHeader:h.header||h.caption}))});return j.createElement(GV,Ie({activeIndex:c,next:this.next,previous:this.previous,ride:r?"carousel":void 0},l),i&&j.createElement(BR,{items:a,activeIndex:l.activeIndex||c,onClickHandler:s||this.goToIndex}),f,o&&j.createElement(W0,{direction:"prev",directionText:"Previous",onClickHandler:l.previous||this.previous}),o&&j.createElement(W0,{direction:"next",directionText:"Next",onClickHandler:l.next||this.next}))}}HR.propTypes=JV;HR.defaultProps={controls:!0,indicators:!0,autoPlay:!0};x.string,x.object;const eY=["className","cssModule","tag"],tY={className:x.string,cssModule:x.object,tag:Oe},nY={tag:"p"};function UR(t){const{className:e,cssModule:n,tag:r}=t,i=We(t,eY),o=Ne(Te(e,"card-text"),n);return j.createElement(r,Ie({},i,{className:o}))}UR.propTypes=tY;UR.defaultProps=nY;const rY=["className","cssModule","tag"],iY={className:x.string,cssModule:x.object,tag:Oe},oY={tag:"div"};function WR(t){const{className:e,cssModule:n,tag:r}=t,i=We(t,rY),o=Ne(Te(e,"card-title"),n);return j.createElement(r,Ie({},i,{className:o}))}WR.propTypes=iY;WR.defaultProps=oY;const aY=["cssModule","children","isOpen","flip","target","offset","fallbackPlacements","placementPrefix","arrowClassName","hideArrow","popperClassName","tag","container","modifiers","strategy","boundariesElement","onClosed","fade","transition","placement"];function sY(){}const lY={children:x.oneOfType([x.node,x.func]).isRequired,popperClassName:x.string,placement:x.string,placementPrefix:x.string,arrowClassName:x.string,hideArrow:x.bool,tag:Oe,isOpen:x.bool,cssModule:x.object,offset:x.arrayOf(x.number),fallbackPlacements:x.array,flip:x.bool,container:Ko,target:Ko.isRequired,modifiers:x.array,strategy:x.string,boundariesElement:x.oneOfType([x.string,M2]),onClosed:x.func,fade:x.bool,transition:x.shape(jt.propTypes)},uY={boundariesElement:"scrollParent",placement:"auto",hideArrow:!1,isOpen:!1,offset:[0,0],flip:!0,container:"body",modifiers:[],onClosed:sY,fade:!0,transition:He({},jt.defaultProps)};class j2 extends j.Component{constructor(e){super(e),this.setTargetNode=this.setTargetNode.bind(this),this.getTargetNode=this.getTargetNode.bind(this),this.getRef=this.getRef.bind(this),this.onClosed=this.onClosed.bind(this),this.state={isOpen:e.isOpen}}static getDerivedStateFromProps(e,n){return e.isOpen&&!n.isOpen?{isOpen:e.isOpen}:null}componentDidUpdate(){this._element&&this._element.childNodes&&this._element.childNodes[0]&&this._element.childNodes[0].focus&&this._element.childNodes[0].focus()}onClosed(){this.props.onClosed(),this.setState({isOpen:!1})}getTargetNode(){return this.targetNode}getContainerNode(){return El(this.props.container)}getRef(e){this._element=e}setTargetNode(e){this.targetNode=typeof e=="string"?El(e):e}renderChildren(){const e=this.props,{cssModule:n,children:r,isOpen:i,flip:o,target:a,offset:s,fallbackPlacements:l,placementPrefix:c,arrowClassName:f,hideArrow:h,popperClassName:p,tag:m,container:v,modifiers:y,strategy:w,boundariesElement:_,onClosed:b,fade:S,transition:O,placement:M}=e,C=We(e,aY),R=Ne(Te("arrow",f),n),$=Ne(Te(p,c?`${c}-auto`:""),this.props.cssModule),U=y.map(J=>J.name),H=[...[{name:"offset",options:{offset:s}},{name:"flip",enabled:o,options:{fallbackPlacements:l}},{name:"preventOverflow",options:{boundary:_}}].filter(J=>!U.includes(J.name)),...y],W=He(He(He({},jt.defaultProps),O),{},{baseClass:S?O.baseClass:"",timeout:S?O.timeout:0});return j.createElement(jt,Ie({},W,C,{in:i,onExited:this.onClosed,tag:m}),j.createElement(vR,{referenceElement:this.targetNode,modifiers:H,placement:M,strategy:w},({ref:J,style:Y,placement:X,isReferenceHidden:re,arrowProps:se,update:V})=>j.createElement("div",{ref:J,style:Y,className:$,"data-popper-placement":X,"data-popper-reference-hidden":re?"true":void 0},typeof r=="function"?r({update:V}):r,!h&&j.createElement("span",{ref:se.ref,className:R,style:se.style}))))}render(){return this.setTargetNode(this.props.target),this.state.isOpen?this.props.container==="inline"?this.renderChildren():Fa.createPortal(j.createElement("div",{ref:this.getRef},this.renderChildren()),this.getContainerNode()):null}}j2.propTypes=lY;j2.defaultProps=uY;var cY=j2;x.object.isRequired;Ko.isRequired;const Zg={children:x.oneOfType([x.node,x.func]),placement:x.oneOf(EW),target:Ko.isRequired,container:Ko,isOpen:x.bool,disabled:x.bool,hideArrow:x.bool,boundariesElement:x.oneOfType([x.string,M2]),className:x.string,innerClassName:x.string,arrowClassName:x.string,popperClassName:x.string,cssModule:x.object,toggle:x.func,autohide:x.bool,placementPrefix:x.string,delay:x.oneOfType([x.shape({show:x.number,hide:x.number}),x.number]),modifiers:x.array,strategy:x.string,offset:x.arrayOf(x.number),innerRef:x.oneOfType([x.func,x.string,x.object]),trigger:x.string,fade:x.bool,flip:x.bool},VR={show:0,hide:50},fY={isOpen:!1,hideArrow:!1,autohide:!1,delay:VR,toggle:function(){},trigger:"click",fade:!0};function YR(t,e){return e&&(t===e||e.contains(t))}function xP(t,e=[]){return e&&e.length&&e.filter(n=>YR(t,n))[0]}class B2 extends j.Component{constructor(e){super(e),this._targets=[],this.currentTargetElement=null,this.addTargetEvents=this.addTargetEvents.bind(this),this.handleDocumentClick=this.handleDocumentClick.bind(this),this.removeTargetEvents=this.removeTargetEvents.bind(this),this.toggle=this.toggle.bind(this),this.showWithDelay=this.showWithDelay.bind(this),this.hideWithDelay=this.hideWithDelay.bind(this),this.onMouseOverTooltipContent=this.onMouseOverTooltipContent.bind(this),this.onMouseLeaveTooltipContent=this.onMouseLeaveTooltipContent.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.onEscKeyDown=this.onEscKeyDown.bind(this),this.getRef=this.getRef.bind(this),this.state={isOpen:e.isOpen},this._isMounted=!1}componentDidMount(){this._isMounted=!0,this.updateTarget()}componentWillUnmount(){this._isMounted=!1,this.removeTargetEvents(),this._targets=null,this.clearShowTimeout(),this.clearHideTimeout()}static getDerivedStateFromProps(e,n){return e.isOpen&&!n.isOpen?{isOpen:e.isOpen}:null}handleDocumentClick(e){const n=this.props.trigger.split(" ");n.indexOf("legacy")>-1&&(this.props.isOpen||xP(e.target,this._targets))?(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen&&!YR(e.target,this._popover)?this.hideWithDelay(e):this.props.isOpen||this.showWithDelay(e)):n.indexOf("click")>-1&&xP(e.target,this._targets)&&(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen?this.hideWithDelay(e):this.showWithDelay(e))}onMouseOverTooltipContent(){this.props.trigger.indexOf("hover")>-1&&!this.props.autohide&&(this._hideTimeout&&this.clearHideTimeout(),this.state.isOpen&&!this.props.isOpen&&this.toggle())}onMouseLeaveTooltipContent(e){this.props.trigger.indexOf("hover")>-1&&!this.props.autohide&&(this._showTimeout&&this.clearShowTimeout(),e.persist(),this._hideTimeout=setTimeout(this.hide.bind(this,e),this.getDelay("hide")))}onEscKeyDown(e){e.key==="Escape"&&this.hide(e)}getRef(e){const{innerRef:n}=this.props;n&&(typeof n=="function"?n(e):typeof n=="object"&&(n.current=e)),this._popover=e}getDelay(e){const{delay:n}=this.props;return typeof n=="object"?isNaN(n[e])?VR[e]:n[e]:n}getCurrentTarget(e){if(!e)return null;const n=this._targets.indexOf(e);return n>=0?this._targets[n]:this.getCurrentTarget(e.parentElement)}show(e){if(!this.props.isOpen){if(this.clearShowTimeout(),this.currentTargetElement=e?e.currentTarget||this.getCurrentTarget(e.target):null,e&&e.composedPath&&typeof e.composedPath=="function"){const n=e.composedPath();this.currentTargetElement=n&&n[0]||this.currentTargetElement}this.toggle(e)}}showWithDelay(e){this._hideTimeout&&this.clearHideTimeout(),this._showTimeout=setTimeout(this.show.bind(this,e),this.getDelay("show"))}hide(e){this.props.isOpen&&(this.clearHideTimeout(),this.currentTargetElement=null,this.toggle(e))}hideWithDelay(e){this._showTimeout&&this.clearShowTimeout(),this._hideTimeout=setTimeout(this.hide.bind(this,e),this.getDelay("hide"))}clearShowTimeout(){clearTimeout(this._showTimeout),this._showTimeout=void 0}clearHideTimeout(){clearTimeout(this._hideTimeout),this._hideTimeout=void 0}addEventOnTargets(e,n,r){this._targets.forEach(i=>{i.addEventListener(e,n,r)})}removeEventOnTargets(e,n,r){this._targets.forEach(i=>{i.removeEventListener(e,n,r)})}addTargetEvents(){if(this.props.trigger){let e=this.props.trigger.split(" ");e.indexOf("manual")===-1&&((e.indexOf("click")>-1||e.indexOf("legacy")>-1)&&document.addEventListener("click",this.handleDocumentClick,!0),this._targets&&this._targets.length&&(e.indexOf("hover")>-1&&(this.addEventOnTargets("mouseover",this.showWithDelay,!0),this.addEventOnTargets("mouseout",this.hideWithDelay,!0)),e.indexOf("focus")>-1&&(this.addEventOnTargets("focusin",this.show,!0),this.addEventOnTargets("focusout",this.hide,!0)),this.addEventOnTargets("keydown",this.onEscKeyDown,!0)))}}removeTargetEvents(){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)}updateTarget(){const e=El(this.props.target,!0);e!==this._targets&&(this.removeTargetEvents(),this._targets=e?Array.from(e):[],this.currentTargetElement=this.currentTargetElement||this._targets[0],this.addTargetEvents())}toggle(e){return this.props.disabled||!this._isMounted?e&&e.preventDefault():this.props.toggle(e)}render(){this.props.isOpen&&this.updateTarget();const e=this.currentTargetElement||this._targets[0];if(!e)return null;const{className:n,cssModule:r,innerClassName:i,isOpen:o,hideArrow:a,boundariesElement:s,placement:l,placementPrefix:c,arrowClassName:f,popperClassName:h,container:p,modifiers:m,strategy:v,offset:y,fade:w,flip:_,children:b}=this.props,S=or(this.props,Object.keys(Zg)),O=Ne(h,r),M=Ne(i,r);return j.createElement(cY,{className:n,target:e,isOpen:o,hideArrow:a,boundariesElement:s,placement:l,placementPrefix:c,arrowClassName:f,popperClassName:O,container:p,modifiers:m,strategy:v,offset:y,cssModule:r,fade:w,flip:_},({update:C})=>j.createElement("div",Ie({},S,{ref:this.getRef,className:M,role:"tooltip",onMouseOver:this.onMouseOverTooltipContent,onMouseLeave:this.onMouseLeaveTooltipContent,onKeyDown:this.onEscKeyDown}),typeof b=="function"?b({update:C}):b))}}B2.propTypes=Zg;B2.defaultProps=fY;var qR=B2;const dY={placement:"right",placementPrefix:"bs-popover",trigger:"click",offset:[0,8]};function Gg(t){const e=Te("popover","show",t.popperClassName),n=Te("popover-inner",t.innerClassName);return j.createElement(qR,Ie({},t,{arrowClassName:"popover-arrow",popperClassName:e,innerClassName:n}))}Gg.propTypes=Zg;Gg.defaultProps=dY;const hY=["defaultOpen"];class pY extends Q.Component{constructor(e){super(e),this.state={isOpen:e.defaultOpen||!1},this.toggle=this.toggle.bind(this)}toggle(){this.setState(e=>({isOpen:!e.isOpen}))}render(){return j.createElement(Gg,Ie({isOpen:this.state.isOpen,toggle:this.toggle},or(this.props,hY)))}}pY.propTypes=He({defaultOpen:x.bool},Gg.propTypes);x.string,x.object;x.string,x.object;const mY=["children","className","barClassName","cssModule","value","min","max","animated","striped","color","bar","multi","tag","style","barStyle","barAriaValueText","barAriaLabelledBy"],gY={animated:x.bool,bar:x.bool,barAriaLabelledBy:x.string,barAriaValueText:x.string,barClassName:x.string,barStyle:x.object,children:x.node,className:x.string,cssModule:x.object,color:x.string,max:x.oneOfType([x.string,x.number]),min:x.oneOfType([x.string,x.number]),multi:x.bool,striped:x.bool,style:x.object,tag:Oe,value:x.oneOfType([x.string,x.number])},vY={tag:"div",value:0,min:0,max:100,style:{},barStyle:{}};function ZR(t){const{children:e,className:n,barClassName:r,cssModule:i,value:o,min:a,max:s,animated:l,striped:c,color:f,bar:h,multi:p,tag:m,style:v,barStyle:y,barAriaValueText:w,barAriaLabelledBy:_}=t,b=We(t,mY),S=_P(o)/_P(s)*100,O=Ne(Te(n,"progress"),i),C={className:Ne(Te("progress-bar",h&&n||r,l?"progress-bar-animated":null,f?`bg-${f}`:null,c||l?"progress-bar-striped":null),i),style:He(He(He({},h?v:{}),y),{},{width:`${S}%`}),role:"progressbar","aria-valuenow":o,"aria-valuemin":a,"aria-valuemax":s,"aria-valuetext":w,"aria-labelledby":_,children:e};return h?j.createElement(m,Ie({},b,C)):j.createElement(m,Ie({},b,{style:v,className:O}),p?e:j.createElement("div",C))}ZR.propTypes=gY;ZR.defaultProps=vY;const yY={children:x.node.isRequired,node:x.any};class GR extends j.Component{componentWillUnmount(){this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null}render(){return L2?(!this.props.node&&!this.defaultNode&&(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode)),Fa.createPortal(this.props.children,this.props.node||this.defaultNode)):null}}GR.propTypes=yY;var KR=GR;function Hp(){}const SP=x.shape(jt.propTypes),XR={autoFocus:x.bool,backdrop:x.oneOfType([x.bool,x.oneOf(["static"])]),backdropClassName:x.string,backdropTransition:SP,centered:x.bool,children:x.node,contentClassName:x.string,className:x.string,container:Ko,cssModule:x.object,external:x.node,fade:x.bool,fullscreen:x.oneOfType([x.bool,x.oneOf(["sm","md","lg","xl"])]),innerRef:x.oneOfType([x.object,x.string,x.func]),isOpen:x.bool,keyboard:x.bool,labelledBy:x.string,modalClassName:x.string,modalTransition:SP,onClosed:x.func,onEnter:x.func,onExit:x.func,onOpened:x.func,returnFocusAfterClose:x.bool,role:x.string,scrollable:x.bool,size:x.string,toggle:x.func,trapFocus:x.bool,unmountOnClose:x.bool,wrapClassName:x.string,zIndex:x.oneOfType([x.number,x.string])},_Y=Object.keys(XR),bY={isOpen:!1,autoFocus:!0,centered:!1,scrollable:!1,role:"dialog",backdrop:!0,keyboard:!0,zIndex:1050,fade:!0,onOpened:Hp,onClosed:Hp,modalTransition:{timeout:es.Modal},backdropTransition:{mountOnEnter:!0,timeout:es.Fade},unmountOnClose:!0,returnFocusAfterClose:!0,container:"body",trapFocus:!1};class Cn extends j.Component{constructor(e){super(e),this._element=null,this._originalBodyPadding=null,this.getFocusableChildren=this.getFocusableChildren.bind(this),this.handleBackdropClick=this.handleBackdropClick.bind(this),this.handleBackdropMouseDown=this.handleBackdropMouseDown.bind(this),this.handleEscape=this.handleEscape.bind(this),this.handleStaticBackdropAnimation=this.handleStaticBackdropAnimation.bind(this),this.handleTab=this.handleTab.bind(this),this.onOpened=this.onOpened.bind(this),this.onClosed=this.onClosed.bind(this),this.manageFocusAfterClose=this.manageFocusAfterClose.bind(this),this.clearBackdropAnimationTimeout=this.clearBackdropAnimationTimeout.bind(this),this.trapFocus=this.trapFocus.bind(this),this.state={isOpen:!1,showStaticBackdropAnimation:!1}}componentDidMount(){const{isOpen:e,autoFocus:n,onEnter:r}=this.props;e&&(this.init(),this.setState({isOpen:!0}),n&&this.setFocus()),r&&r(),document.addEventListener("focus",this.trapFocus,!0),this._isMounted=!0}componentDidUpdate(e,n){if(this.props.isOpen&&!e.isOpen){this.init(),this.setState({isOpen:!0});return}this.props.autoFocus&&this.state.isOpen&&!n.isOpen&&this.setFocus(),this._element&&e.zIndex!==this.props.zIndex&&(this._element.style.zIndex=this.props.zIndex)}componentWillUnmount(){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}handleBackdropClick(e){if(e.target===this._mouseDownElement){e.stopPropagation();const n=this._dialog?this._dialog.parentNode:null;if(n&&e.target===n&&this.props.backdrop==="static"&&this.handleStaticBackdropAnimation(),!this.props.isOpen||this.props.backdrop!==!0)return;n&&e.target===n&&this.props.toggle&&this.props.toggle(e)}}handleTab(e){if(e.which!==9||this.modalIndex{this.setState({showStaticBackdropAnimation:!1})},100)}onOpened(e,n){this.props.onOpened(),(this.props.modalTransition.onEntered||Hp)(e,n)}onClosed(e){const{unmountOnClose:n}=this.props;this.props.onClosed(),(this.props.modalTransition.onExited||Hp)(e),n&&this.destroy(),this.close(),this._isMounted&&this.setState({isOpen:!1})}setFocus(){this._dialog&&this._dialog.parentNode&&typeof this._dialog.parentNode.focus=="function"&&this._dialog.parentNode.focus()}getFocusableChildren(){return this._element.querySelectorAll(OR.join(", "))}getFocusedChild(){let e;const n=this.getFocusableChildren();try{e=document.activeElement}catch{e=n[0]}return e}trapFocus(e){if(!this.props.trapFocus||!this._element||this._dialog&&this._dialog.parentNode===e.target||this.modalIndex0&&(e.preventDefault(),e.stopPropagation(),n[0].focus())}init(){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=El(this.props.container),this._mountContainer.appendChild(this._element)),this._originalBodyPadding=_R(),Cn.openCount<1&&(Cn.originalBodyOverflow=window.getComputedStyle(document.body).overflow),bR(),Cn.openCount===0&&(document.body.className=Te(document.body.className,Ne("modal-open",this.props.cssModule)),document.body.style.overflow="hidden"),this.modalIndex=Cn.openCount,Cn.openCount+=1}destroy(){this._element&&(this._mountContainer.removeChild(this._element),this._element=null),this.manageFocusAfterClose()}manageFocusAfterClose(){if(this._triggeringElement){const{returnFocusAfterClose:e}=this.props;this._triggeringElement.focus&&e&&this._triggeringElement.focus(),this._triggeringElement=null}}close(){if(Cn.openCount<=1){const e=Ne("modal-open",this.props.cssModule),n=new RegExp(`(^| )${e}( |$)`);document.body.className=document.body.className.replace(n," ").trim(),document.body.style.overflow=Cn.originalBodyOverflow}this.manageFocusAfterClose(),Cn.openCount=Math.max(0,Cn.openCount-1),k2(this._originalBodyPadding)}clearBackdropAnimationTimeout(){this._backdropAnimationTimeout&&(clearTimeout(this._backdropAnimationTimeout),this._backdropAnimationTimeout=void 0)}renderModalDialog(){const e=or(this.props,_Y),n="modal-dialog";return j.createElement("div",Ie({},e,{className:Ne(Te(n,this.props.className,{[`modal-${this.props.size}`]:this.props.size,[`${n}-centered`]:this.props.centered,[`${n}-scrollable`]:this.props.scrollable,"modal-fullscreen":this.props.fullscreen===!0,[`modal-fullscreen-${this.props.fullscreen}-down`]:typeof this.props.fullscreen=="string"}),this.props.cssModule),role:"document",ref:r=>{this._dialog=r}}),j.createElement("div",{className:Ne(Te("modal-content",this.props.contentClassName),this.props.cssModule)},this.props.children))}render(){const{unmountOnClose:e}=this.props;if(this._element&&(this.state.isOpen||!e)){const n=!!this._element&&!this.state.isOpen&&!e;this._element.style.display=n?"none":"block";const{wrapClassName:r,modalClassName:i,backdropClassName:o,cssModule:a,isOpen:s,backdrop:l,role:c,labelledBy:f,external:h,innerRef:p}=this.props,m={onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown,onKeyUp:this.handleEscape,onKeyDown:this.handleTab,style:{display:"block"},"aria-labelledby":f,role:c,tabIndex:"-1"},v=this.props.fade,y=He(He(He({},jt.defaultProps),this.props.modalTransition),{},{baseClass:v?this.props.modalTransition.baseClass:"",timeout:v?this.props.modalTransition.timeout:0}),w=He(He(He({},jt.defaultProps),this.props.backdropTransition),{},{baseClass:v?this.props.backdropTransition.baseClass:"",timeout:v?this.props.backdropTransition.timeout:0}),_=l&&(v?j.createElement(jt,Ie({},w,{in:s&&!!l,cssModule:a,className:Ne(Te("modal-backdrop",o),a)})):j.createElement("div",{className:Ne(Te("modal-backdrop","show",o),a)}));return j.createElement(KR,{node:this._element},j.createElement("div",{className:Ne(r)},j.createElement(jt,Ie({},m,y,{in:s,onEntered:this.onOpened,onExited:this.onClosed,cssModule:a,className:Ne(Te("modal",i,this.state.showStaticBackdropAnimation&&"modal-static"),a),innerRef:p}),h,this.renderModalDialog()),_))}return null}}Cn.propTypes=XR;Cn.defaultProps=bY;Cn.openCount=0;Cn.originalBodyOverflow=null;var wfe=Cn;const wY=["className","cssModule","children","toggle","tag","wrapTag","closeAriaLabel","close"],xY={children:x.node,className:x.string,close:x.object,closeAriaLabel:x.string,cssModule:x.object,tag:Oe,toggle:x.func,wrapTag:Oe},SY={tag:"h5",wrapTag:"div",closeAriaLabel:"Close"};function QR(t){let e;const{className:n,cssModule:r,children:i,toggle:o,tag:a,wrapTag:s,closeAriaLabel:l,close:c}=t,f=We(t,wY),h=Ne(Te(n,"modal-header"),r);return!c&&o&&(e=j.createElement("button",{type:"button",onClick:o,className:Ne("btn-close",r),"aria-label":l})),j.createElement(s,Ie({},f,{className:h}),j.createElement(a,{className:Ne("modal-title",r)},i),c||e)}QR.propTypes=xY;QR.defaultProps=SY;const EY=["className","cssModule","tag"],OY={className:x.string,cssModule:x.object,tag:Oe},PY={tag:"div"};function JR(t){const{className:e,cssModule:n,tag:r}=t,i=We(t,EY),o=Ne(Te(e,"modal-body"),n);return j.createElement(r,Ie({},i,{className:o}))}JR.propTypes=OY;JR.defaultProps=PY;const TY=["className","cssModule","tag"],CY={className:x.string,cssModule:x.object,tag:Oe},kY={tag:"div"};function eA(t){const{className:e,cssModule:n,tag:r}=t,i=We(t,TY),o=Ne(Te(e,"modal-footer"),n);return j.createElement(r,Ie({},i,{className:o}))}eA.propTypes=CY;eA.defaultProps=kY;const MY={placement:"top",autohide:!0,placementPrefix:"bs-tooltip",trigger:"hover focus"};function Kg(t){const e=Te("tooltip","show",t.popperClassName),n=Te("tooltip-inner",t.innerClassName);return j.createElement(qR,Ie({},t,{arrowClassName:"tooltip-arrow",popperClassName:e,innerClassName:n}))}Kg.propTypes=Zg;Kg.defaultProps=MY;x.bool,x.bool,x.string,x.object,x.bool,x.bool,x.oneOfType([x.func,x.string,x.object]),x.oneOfType([x.bool,x.string]),x.string,x.bool;const LY=["className","cssModule","tag","flush","horizontal","numbered"],RY={className:x.string,cssModule:x.object,flush:x.bool,horizontal:x.oneOfType([x.bool,x.string]),numbered:x.bool,tag:Oe},AY={tag:"ul",horizontal:!1,numbered:!1},DY=t=>t===!1?!1:t===!0||t==="xs"?"list-group-horizontal":`list-group-horizontal-${t}`;function tA(t){const{className:e,cssModule:n,tag:r,flush:i,horizontal:o,numbered:a}=t,s=We(t,LY),l=Ne(Te(e,"list-group",i?"list-group-flush":DY(o),{"list-group-numbered":a}),n);return j.createElement(r,Ie({},s,{className:l}))}tA.propTypes=RY;tA.defaultProps=AY;const NY=["className","cssModule","tag","innerRef"],IY={children:x.node,tag:Oe,innerRef:x.oneOfType([x.object,x.func,x.string]),className:x.string,cssModule:x.object},FY={tag:"form"};class nA extends Q.Component{constructor(e){super(e),this.getRef=this.getRef.bind(this),this.submit=this.submit.bind(this)}getRef(e){this.props.innerRef&&this.props.innerRef(e),this.ref=e}submit(){this.ref&&this.ref.submit()}render(){const e=this.props,{className:n,cssModule:r,tag:i,innerRef:o}=e,a=We(e,NY),s=Ne(n,r);return j.createElement(i,Ie({},a,{ref:o,className:s}))}}nA.propTypes=IY;nA.defaultProps=FY;x.node,x.string,x.object,x.bool,x.bool;const $Y=["className","cssModule","row","disabled","check","inline","floating","tag","switch"],jY={children:x.node,row:x.bool,check:x.bool,switch:x.bool,inline:x.bool,floating:x.bool,disabled:x.bool,tag:Oe,className:x.string,cssModule:x.object},BY={tag:"div"};function rA(t){const{className:e,cssModule:n,row:r,disabled:i,check:o,inline:a,floating:s,tag:l,switch:c}=t,f=We(t,$Y),h=o||c,p=Ne(Te(e,r?"row":!1,h?"form-check":"mb-3",c?"form-switch":!1,h&&a?"form-check-inline":!1,h&&i?"disabled":!1,s&&"form-floating"),n);return l==="fieldset"&&(f.disabled=i),j.createElement(l,Ie({},f,{className:p}))}rA.propTypes=jY;rA.defaultProps=BY;x.node,x.bool,x.string,x.string,x.object;const zY=["className","cssModule","type","bsSize","valid","invalid","tag","addon","plaintext","innerRef"],HY={children:x.node,type:x.string,size:x.oneOfType([x.number,x.string]),bsSize:x.string,valid:x.bool,invalid:x.bool,tag:Oe,innerRef:x.oneOfType([x.object,x.func,x.string]),plaintext:x.bool,addon:x.bool,className:x.string,cssModule:x.object},UY={type:"text"};let z2=class extends j.Component{constructor(e){super(e),this.getRef=this.getRef.bind(this),this.focus=this.focus.bind(this)}getRef(e){this.props.innerRef&&this.props.innerRef(e),this.ref=e}focus(){this.ref&&this.ref.focus()}render(){let e=this.props,{className:n,cssModule:r,type:i,bsSize:o,valid:a,invalid:s,tag:l,addon:c,plaintext:f,innerRef:h}=e,p=We(e,zY);const m=["switch","radio","checkbox"].indexOf(i)>-1,v=/\D/g,y=i==="textarea",w=i==="select",_=i==="range";let b=l||(w||y?i:"input"),S="form-control";f?(S=`${S}-plaintext`,b=l||"input"):_?S="form-range":w?S="form-select":m&&(c?S=null:S="form-check-input"),p.size&&v.test(p.size)&&(U0(`Please use the prop "bsSize" instead of the "size" to bootstrap's input sizing.`),o=p.size,delete p.size);const O=Ne(Te(n,s&&"is-invalid",a&&"is-valid",o?w?`form-select-${o}`:`form-control-${o}`:!1,S),r);return(b==="input"||l&&typeof l=="function")&&(p.type=i==="switch"?"checkbox":i),p.children&&!(f||i==="select"||typeof b!="string"||b==="select")&&(U0(`Input with a type of "${i}" cannot have children. Please use "value"/"defaultValue" instead.`),delete p.children),j.createElement(b,Ie({},p,{ref:h,className:O,"aria-invalid":s}))}};z2.propTypes=HY;z2.defaultProps=UY;var Sfe=z2;const WY=["className","cssModule","tag","type","size"],VY={className:x.string,cssModule:x.object,size:x.string,tag:Oe,type:x.string},YY={tag:"div"};function iA(t){const{className:e,cssModule:n,tag:r,type:i,size:o}=t,a=We(t,WY),s=Ne(Te(e,"input-group",o?`input-group-${o}`:null),n);return t.type==="dropdown"?j.createElement(Ug,Ie({},a,{className:s})):j.createElement(AR.Provider,{value:{insideInputGroup:!0}},j.createElement(r,Ie({},a,{className:s})))}iA.propTypes=VY;iA.defaultProps=YY;x.string,x.object;const Dy=x.oneOfType([x.number,x.string]),Os=x.oneOfType([x.bool,x.string,x.number,x.shape({size:Dy,order:Dy,offset:Dy})]);x.node,x.bool,x.bool,x.string,x.string,x.string,x.object,x.array;x.bool,x.bool,x.node,x.string,x.object,x.bool,x.bool,x.bool,x.bool,x.bool,x.bool,x.bool;function Up(){}const EP=x.shape(jt.propTypes),oA={autoFocus:x.bool,backdrop:x.bool,backdropClassName:x.string,backdropTransition:EP,children:x.node,className:x.string,container:Ko,cssModule:x.object,direction:x.oneOf(["start","end","bottom","top"]),fade:x.bool,innerRef:x.oneOfType([x.object,x.string,x.func]),isOpen:x.bool,keyboard:x.bool,labelledBy:x.string,offcanvasTransition:EP,onClosed:x.func,onEnter:x.func,onExit:x.func,style:x.object,onOpened:x.func,returnFocusAfterClose:x.bool,role:x.string,scrollable:x.bool,toggle:x.func,trapFocus:x.bool,unmountOnClose:x.bool,zIndex:x.oneOfType([x.number,x.string])},qY=Object.keys(oA),ZY={isOpen:!1,autoFocus:!0,direction:"start",scrollable:!1,role:"dialog",backdrop:!0,keyboard:!0,zIndex:1050,fade:!0,onOpened:Up,onClosed:Up,offcanvasTransition:{timeout:es.Offcanvas},backdropTransition:{mountOnEnter:!0,timeout:es.Fade},unmountOnClose:!0,returnFocusAfterClose:!0,container:"body",trapFocus:!1};class zr extends j.Component{constructor(e){super(e),this._element=null,this._originalBodyPadding=null,this.getFocusableChildren=this.getFocusableChildren.bind(this),this.handleBackdropClick=this.handleBackdropClick.bind(this),this.handleBackdropMouseDown=this.handleBackdropMouseDown.bind(this),this.handleEscape=this.handleEscape.bind(this),this.handleTab=this.handleTab.bind(this),this.onOpened=this.onOpened.bind(this),this.onClosed=this.onClosed.bind(this),this.manageFocusAfterClose=this.manageFocusAfterClose.bind(this),this.clearBackdropAnimationTimeout=this.clearBackdropAnimationTimeout.bind(this),this.trapFocus=this.trapFocus.bind(this),this.state={isOpen:!1}}componentDidMount(){const{isOpen:e,autoFocus:n,onEnter:r}=this.props;e&&(this.init(),this.setState({isOpen:!0}),n&&this.setFocus()),r&&r(),document.addEventListener("focus",this.trapFocus,!0),this._isMounted=!0}componentDidUpdate(e,n){if(this.props.isOpen&&!e.isOpen){this.init(),this.setState({isOpen:!0});return}this.props.autoFocus&&this.state.isOpen&&!n.isOpen&&this.setFocus(),this._element&&e.zIndex!==this.props.zIndex&&(this._element.style.zIndex=this.props.zIndex)}componentWillUnmount(){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}handleBackdropClick(e){if(e.target===this._mouseDownElement){e.stopPropagation();const n=this._backdrop;if(!this.props.isOpen||this.props.backdrop!==!0)return;n&&e.target===n&&this.props.toggle&&this.props.toggle(e)}}handleTab(e){if(e.which!==9||this.offcanvasIndex0&&(e.preventDefault(),e.stopPropagation(),n[0].focus())}init(){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=El(this.props.container),this._mountContainer.appendChild(this._element)),this._originalBodyPadding=_R(),bR(),zr.openCount===0&&this.props.backdrop&&!this.props.scrollable&&(document.body.style.overflow="hidden"),this.offcanvasIndex=zr.openCount,zr.openCount+=1}destroy(){this._element&&(this._mountContainer.removeChild(this._element),this._element=null),this.manageFocusAfterClose()}manageFocusAfterClose(){if(this._triggeringElement){const{returnFocusAfterClose:e}=this.props;this._triggeringElement.focus&&e&&this._triggeringElement.focus(),this._triggeringElement=null}}close(){this.manageFocusAfterClose(),zr.openCount=Math.max(0,zr.openCount-1),document.body.style.overflow=null,k2(this._originalBodyPadding)}clearBackdropAnimationTimeout(){this._backdropAnimationTimeout&&(clearTimeout(this._backdropAnimationTimeout),this._backdropAnimationTimeout=void 0)}render(){const{direction:e,unmountOnClose:n}=this.props;if(this._element&&(this.state.isOpen||!n)){const r=!!this._element&&!this.state.isOpen&&!n;this._element.style.display=r?"none":"block";const{className:i,backdropClassName:o,cssModule:a,isOpen:s,backdrop:l,role:c,labelledBy:f,style:h}=this.props,p={onKeyUp:this.handleEscape,onKeyDown:this.handleTab,"aria-labelledby":f,role:c,tabIndex:"-1"},m=this.props.fade,v=He(He(He({},jt.defaultProps),this.props.offcanvasTransition),{},{baseClass:m?this.props.offcanvasTransition.baseClass:"",timeout:m?this.props.offcanvasTransition.timeout:0}),y=He(He(He({},jt.defaultProps),this.props.backdropTransition),{},{baseClass:m?this.props.backdropTransition.baseClass:"",timeout:m?this.props.backdropTransition.timeout:0}),w=l&&(m?j.createElement(jt,Ie({},y,{in:s&&!!l,innerRef:b=>{this._backdrop=b},cssModule:a,className:Ne(Te("offcanvas-backdrop",o),a),onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown})):j.createElement("div",{className:Ne(Te("offcanvas-backdrop","show",o),a),onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown})),_=or(this.props,qY);return j.createElement(KR,{node:this._element},j.createElement(jt,Ie({},_,p,v,{in:s,onEntered:this.onOpened,onExited:this.onClosed,cssModule:a,className:Ne(Te("offcanvas",i,`offcanvas-${e}`),a),innerRef:b=>{this._dialog=b},style:He(He({},h),{},{visibility:s?"visible":"hidden"})}),this.props.children),w)}return null}}zr.propTypes=oA;zr.defaultProps=ZY;zr.openCount=0;x.string,x.object;x.node,x.string,x.object,x.string,x.object,x.func;const GY=["className","listClassName","cssModule","size","tag","listTag","aria-label"],KY={children:x.node,className:x.string,listClassName:x.string,cssModule:x.object,size:x.string,tag:Oe,listTag:Oe,"aria-label":x.string},XY={tag:"nav",listTag:"ul","aria-label":"pagination"};function aA(t){const{className:e,listClassName:n,cssModule:r,size:i,tag:o,listTag:a,"aria-label":s}=t,l=We(t,GY),c=Ne(Te(e),r),f=Ne(Te(n,"pagination",{[`pagination-${i}`]:!!i}),r);return j.createElement(o,{className:c,"aria-label":s},j.createElement(a,Ie({},l,{className:f})))}aA.propTypes=KY;aA.defaultProps=XY;const QY=["active","className","cssModule","disabled","tag"],JY={active:x.bool,children:x.node,className:x.string,cssModule:x.object,disabled:x.bool,tag:Oe},eq={tag:"li"};function sA(t){const{active:e,className:n,cssModule:r,disabled:i,tag:o}=t,a=We(t,QY),s=Ne(Te(n,"page-item",{active:e,disabled:i}),r);return j.createElement(o,Ie({},a,{className:s}))}sA.propTypes=JY;sA.defaultProps=eq;const tq=["className","cssModule","next","previous","first","last","tag"],nq={"aria-label":x.string,children:x.node,className:x.string,cssModule:x.object,next:x.bool,previous:x.bool,first:x.bool,last:x.bool,tag:Oe},rq={tag:"a"};function lA(t){let{className:e,cssModule:n,next:r,previous:i,first:o,last:a,tag:s}=t,l=We(t,tq);const c=Ne(Te(e,"page-link"),n);let f;i?f="Previous":r?f="Next":o?f="First":a&&(f="Last");const h=t["aria-label"]||f;let p;i?p="‹":r?p="›":o?p="«":a&&(p="»");let{children:m}=t;return m&&Array.isArray(m)&&m.length===0&&(m=null),!l.href&&s==="a"&&(s="button"),(i||r||o||a)&&(m=[j.createElement("span",{"aria-hidden":"true",key:"caret"},m||p),j.createElement("span",{className:"visually-hidden",key:"ariaLabel"},h)]),j.createElement(s,Ie({},l,{className:c,"aria-label":h}),m)}lA.propTypes=nq;lA.defaultProps=rq;const iq=j.createContext({}),uA={tag:Oe,activeTab:x.any,className:x.string,cssModule:x.object},oq={tag:"div"};class cA extends Q.Component{static getDerivedStateFromProps(e,n){return n.activeTab!==e.activeTab?{activeTab:e.activeTab}:null}constructor(e){super(e),this.state={activeTab:this.props.activeTab}}render(){const{className:e,cssModule:n,tag:r}=this.props,i=or(this.props,Object.keys(uA)),o=Ne(Te("tab-content",e),n);return j.createElement(iq.Provider,{value:{activeTabId:this.state.activeTab}},j.createElement(r,Ie({},i,{className:o})))}}cA.propTypes=uA;cA.defaultProps=oq;x.string,x.object,x.any;const aq=["className","closeClassName","closeAriaLabel","cssModule","tag","color","isOpen","toggle","children","transition","fade","innerRef"],sq={children:x.node,className:x.string,closeClassName:x.string,closeAriaLabel:x.string,color:x.string,cssModule:x.object,fade:x.bool,innerRef:x.oneOfType([x.object,x.string,x.func]),isOpen:x.bool,tag:Oe,toggle:x.func,transition:x.shape(jt.propTypes)},lq={color:"success",isOpen:!0,tag:"div",closeAriaLabel:"Close",fade:!0,transition:He(He({},jt.defaultProps),{},{unmountOnExit:!0})};function fA(t){const{className:e,closeClassName:n,closeAriaLabel:r,cssModule:i,tag:o,color:a,isOpen:s,toggle:l,children:c,transition:f,fade:h,innerRef:p}=t,m=We(t,aq),v=Ne(Te(e,"alert",`alert-${a}`,{"alert-dismissible":l}),i),y=Ne(Te("btn-close",n),i),w=He(He(He({},jt.defaultProps),f),{},{baseClass:h?f.baseClass:"",timeout:h?f.timeout:0});return j.createElement(jt,Ie({},m,w,{tag:o,className:v,in:s,role:"alert",innerRef:p}),l?j.createElement("button",{type:"button",className:y,"aria-label":r,onClick:l}):null,c)}fA.propTypes=sq;fA.defaultProps=lq;x.node,x.string,x.object,x.bool,x.bool,x.shape(jt.propTypes),x.oneOfType([x.object,x.string,x.func]);He(He({},jt.defaultProps),{},{unmountOnExit:!0});x.string,x.object,x.oneOfType([x.object,x.string,x.func]);x.oneOfType([x.string,x.node]),x.func,x.string,x.object,x.node,x.string,x.oneOfType([x.string,x.number]),x.object,x.string;const uq=["className","cssModule","tag","active","disabled","action","color"],cq={action:x.bool,active:x.bool,className:x.string,cssModule:x.object,color:x.string,disabled:x.bool,tag:Oe},fq={tag:"li"},dq=t=>{t.preventDefault()};function dA(t){const{className:e,cssModule:n,tag:r,active:i,disabled:o,action:a,color:s}=t,l=We(t,uq),c=Ne(Te(e,i?"active":!1,o?"disabled":!1,a?"list-group-item-action":!1,s?`list-group-item-${s}`:!1,"list-group-item"),n);return o&&(l.onClick=dq),j.createElement(r,Ie({},l,{className:c}))}dA.propTypes=cq;dA.defaultProps=fq;x.string,x.object;x.string,x.object;const hq=["className","cssModule","tag","type"],pq={className:x.string,cssModule:x.object,tag:Oe,type:x.string},mq={tag:"ul"},H2=Q.forwardRef((t,e)=>{const{className:n,cssModule:r,tag:i,type:o}=t,a=We(t,hq),s=Ne(Te(n,o?`list-${o}`:!1),r);return j.createElement(i,Ie({},a,{className:s,ref:e}))});H2.name="List";H2.propTypes=pq;H2.defaultProps=mq;const gq=["className","cssModule","tag"],vq={className:x.string,cssModule:x.object,tag:Oe},yq={tag:"li"},U2=Q.forwardRef((t,e)=>{const{className:n,cssModule:r,tag:i}=t,o=We(t,gq),a=Ne(Te(n,"list-inline-item"),r);return j.createElement(i,Ie({},o,{className:a,ref:e}))});U2.name="ListInlineItem";U2.propTypes=vq;U2.defaultProps=yq;const _q=["defaultOpen"];class bq extends Q.Component{constructor(e){super(e),this.state={isOpen:e.defaultOpen||!1},this.toggle=this.toggle.bind(this)}toggle(){this.setState(e=>({isOpen:!e.isOpen}))}render(){return j.createElement(I2,Ie({isOpen:this.state.isOpen,toggle:this.toggle},or(this.props,_q)))}}bq.propTypes=He({defaultOpen:x.bool},I2.propTypes);const wq=["toggleEvents","defaultOpen"],xq={defaultOpen:x.bool,toggler:x.string.isRequired,toggleEvents:x.arrayOf(x.string)},Sq={toggleEvents:TW};class hA extends Q.Component{constructor(e){super(e),this.togglers=null,this.removeEventListeners=null,this.toggle=this.toggle.bind(this),this.state={isOpen:e.defaultOpen||!1}}componentDidMount(){this.togglers=ER(this.props.toggler),this.togglers.length&&(this.removeEventListeners=CW(this.togglers,this.toggle,this.props.toggleEvents))}componentWillUnmount(){this.togglers.length&&this.removeEventListeners&&this.removeEventListeners()}toggle(e){this.setState(({isOpen:n})=>({isOpen:!n})),e.preventDefault()}render(){return j.createElement(RV,Ie({isOpen:this.state.isOpen},or(this.props,wq)))}}hA.propTypes=xq;hA.defaultProps=Sq;const Eq=["defaultOpen"];class Oq extends Q.Component{constructor(e){super(e),this.state={isOpen:e.defaultOpen||!1},this.toggle=this.toggle.bind(this)}toggle(e){this.setState(n=>({isOpen:!n.isOpen}),()=>{this.props.onToggle&&this.props.onToggle(e,this.state.isOpen)})}render(){return j.createElement(Ug,Ie({isOpen:this.state.isOpen,toggle:this.toggle},or(this.props,Eq)))}}Oq.propTypes=He({defaultOpen:x.bool,onToggle:x.func},Ug.propTypes);const Pq=["defaultOpen"];class Tq extends Q.Component{constructor(e){super(e),this.state={isOpen:e.defaultOpen||!1},this.toggle=this.toggle.bind(this)}toggle(){this.setState(e=>({isOpen:!e.isOpen}))}render(){return j.createElement(Kg,Ie({isOpen:this.state.isOpen,toggle:this.toggle},or(this.props,Pq)))}}Tq.propTypes=He({defaultOpen:x.bool},Kg.propTypes);x.oneOf(["border","grow"]),x.oneOf(["sm"]),x.oneOf(["primary","secondary","success","danger","warning","info","light","dark"]),x.string,x.object,x.string;He(He({},R2.propTypes),{},{color:x.string,tag:Oe,animation:x.oneOf(["glow","wave"]),innerRef:x.oneOfType([x.object,x.func,x.string]),size:x.oneOf(["lg","sm","xs"])});x.string,x.string,x.bool,x.string,x.object;(()=>{if(typeof window!="object"||typeof window.CustomEvent=="function")return;const t=(e,n)=>{n=n||{bubbles:!1,cancelable:!1,detail:null};let r=document.createEvent("CustomEvent");return r.initCustomEvent(e,n.bubbles,n.cancelable,n.detail),r};window.CustomEvent=t})();(()=>{if(typeof Object.values=="function")return;Object.values=e=>Object.keys(e).map(n=>e[n])})();const Cq="Left",kq="Right",Mq="Up",Lq="Down",qs={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},V0={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},OP="mousemove",PP="mouseup",Rq="touchend",Aq="touchmove",Dq="touchstart";function Nq(t,e,n,r){return t>e?n>0?kq:Cq:r>0?Lq:Mq}function TP(t,e){if(e===0)return t;const n=Math.PI/180*e,r=t[0]*Math.cos(n)+t[1]*Math.sin(n),i=t[1]*Math.cos(n)-t[0]*Math.sin(n);return[r,i]}function Iq(t,e){const n=f=>{const h="touches"in f;h&&f.touches.length>1||t((p,m)=>{m.trackMouse&&!h&&(document.addEventListener(OP,r),document.addEventListener(PP,a));const{clientX:v,clientY:y}=h?f.touches[0]:f,w=TP([v,y],m.rotationAngle);return m.onTouchStartOrOnMouseDown&&m.onTouchStartOrOnMouseDown({event:f}),Object.assign(Object.assign(Object.assign({},p),V0),{initial:w.slice(),xy:w,start:f.timeStamp||0})})},r=f=>{t((h,p)=>{const m="touches"in f;if(m&&f.touches.length>1)return h;if(f.timeStamp-h.start>p.swipeDuration)return h.swiping?Object.assign(Object.assign({},h),{swiping:!1}):h;const{clientX:v,clientY:y}=m?f.touches[0]:f,[w,_]=TP([v,y],p.rotationAngle),b=w-h.xy[0],S=_-h.xy[1],O=Math.abs(b),M=Math.abs(S),C=(f.timeStamp||0)-h.start,R=Math.sqrt(O*O+M*M)/(C||1),$=[b/(C||1),S/(C||1)],U=Nq(O,M,b,S),I=typeof p.delta=="number"?p.delta:p.delta[U.toLowerCase()]||qs.delta;if(O{t((h,p)=>{let m;if(h.swiping&&h.eventData){if(f.timeStamp-h.start{document.removeEventListener(OP,r),document.removeEventListener(PP,a)},a=f=>{o(),i(f)},s=(f,h)=>{let p=()=>{};if(f&&f.addEventListener){const m=Object.assign(Object.assign({},qs.touchEventOptions),h.touchEventOptions),v=[[Dq,n,m],[Aq,r,Object.assign(Object.assign({},m),h.preventScrollOnSwipe?{passive:!1}:{})],[Rq,i,m]];v.forEach(([y,w,_])=>f.addEventListener(y,w,_)),p=()=>v.forEach(([y,w])=>f.removeEventListener(y,w))}return p},c={ref:f=>{f!==null&&t((h,p)=>{if(h.el===f)return h;const m={};return h.el&&h.el!==f&&h.cleanUpTouch&&(h.cleanUpTouch(),m.cleanUpTouch=void 0),p.trackTouch&&f&&(m.cleanUpTouch=s(f,p)),Object.assign(Object.assign(Object.assign({},h),{el:f}),m)})}};return e.trackMouse&&(c.onMouseDown=n),[c,s]}function Fq(t,e,n,r){return!e.trackTouch||!t.el?(t.cleanUpTouch&&t.cleanUpTouch(),Object.assign(Object.assign({},t),{cleanUpTouch:void 0})):t.cleanUpTouch?e.preventScrollOnSwipe!==n.preventScrollOnSwipe||e.touchEventOptions.passive!==n.touchEventOptions.passive?(t.cleanUpTouch(),Object.assign(Object.assign({},t),{cleanUpTouch:r(t.el,e)})):t:Object.assign(Object.assign({},t),{cleanUpTouch:r(t.el,e)})}function Efe(t){const{trackMouse:e}=t,n=Q.useRef(Object.assign({},V0)),r=Q.useRef(Object.assign({},qs)),i=Q.useRef(Object.assign({},r.current));i.current=Object.assign({},r.current),r.current=Object.assign(Object.assign({},qs),t);let o;for(o in qs)r.current[o]===void 0&&(r.current[o]=qs[o]);const[a,s]=Q.useMemo(()=>Iq(l=>n.current=l(n.current,r.current),{trackMouse:e}),[e]);return n.current=Fq(n.current,r.current,i.current,s),a}var _d,$q=new Uint8Array(16);function jq(){if(!_d&&(_d=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!_d))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return _d($q)}const Bq=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function zq(t){return typeof t=="string"&&Bq.test(t)}var On=[];for(var Ny=0;Ny<256;++Ny)On.push((Ny+256).toString(16).substr(1));function Hq(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(On[t[e+0]]+On[t[e+1]]+On[t[e+2]]+On[t[e+3]]+"-"+On[t[e+4]]+On[t[e+5]]+"-"+On[t[e+6]]+On[t[e+7]]+"-"+On[t[e+8]]+On[t[e+9]]+"-"+On[t[e+10]]+On[t[e+11]]+On[t[e+12]]+On[t[e+13]]+On[t[e+14]]+On[t[e+15]]).toLowerCase();if(!zq(n))throw TypeError("Stringified UUID is invalid");return n}function Ofe(t,e,n){t=t||{};var r=t.random||(t.rng||jq)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,e){n=n||0;for(var i=0;i<16;++i)e[n+i]=r[i];return e}return Hq(r)}/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var Y0=function(){return Y0=Object.assign||function(e){for(var n,r=1,i=arguments.length;r{const n=CP(t),r=CP(e),i=n.pop(),o=r.pop(),a=LP(n,r);return a!==0?a:i&&o?LP(i.split("."),o.split(".")):i||o?i?-1:1:0},Tfe=(t,e,n)=>{Zq(n);const r=Wq(t,e);return pA[n].includes(r)},Vq=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,CP=t=>{if(typeof t!="string")throw new TypeError("Invalid argument expected string");const e=t.match(Vq);if(!e)throw new Error(`Invalid argument not valid semver ('${t}' received)`);return e.shift(),e},kP=t=>t==="*"||t==="x"||t==="X",MP=t=>{const e=parseInt(t,10);return isNaN(e)?t:e},Yq=(t,e)=>typeof t!=typeof e?[String(t),String(e)]:[t,e],qq=(t,e)=>{if(kP(t)||kP(e))return 0;const[n,r]=Yq(MP(t),MP(e));return n>r?1:n{for(let n=0;n":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]},RP=Object.keys(pA),Zq=t=>{if(typeof t!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof t}`);if(RP.indexOf(t)===-1)throw new Error(`Invalid operator, expected one of ${RP.join("|")}`)};function Ur(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r3?e.i-4:e.i:Array.isArray(t)?1:W2(t)?2:V2(t)?3:0}function il(t,e){return Bl(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Gq(t,e){return Bl(t)===2?t.get(e):t[e]}function mA(t,e,n){var r=Bl(t);r===2?t.set(e,n):r===3?(t.delete(e),t.add(n)):t[e]=n}function gA(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function W2(t){return tZ&&t instanceof Map}function V2(t){return nZ&&t instanceof Set}function Ea(t){return t.o||t.t}function Y2(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=yA(t);delete e[Tt];for(var n=ol(e),r=0;r1&&(t.set=t.add=t.clear=t.delete=Kq),Object.freeze(t),e&&ts(t,function(n,r){return q2(r,!0)},!0)),t}function Kq(){Ur(2)}function Z2(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function yi(t){var e=K0[t];return e||Ur(18,t),e}function Xq(t,e){K0[t]||(K0[t]=e)}function q0(){return Fc}function Iy(t,e){e&&(yi("Patches"),t.u=[],t.s=[],t.v=e)}function Wp(t){Z0(t),t.p.forEach(Qq),t.p=null}function Z0(t){t===Fc&&(Fc=t.l)}function AP(t){return Fc={p:[],l:Fc,h:t,m:!0,_:0}}function Qq(t){var e=t[Tt];e.i===0||e.i===1?e.j():e.O=!0}function Fy(t,e){e._=e.p.length;var n=e.p[0],r=t!==void 0&&t!==n;return e.h.g||yi("ES5").S(e,t,r),r?(n[Tt].P&&(Wp(e),Ur(4)),Xi(t)&&(t=Vp(e,t),e.l||Yp(e,t)),e.u&&yi("Patches").M(n[Tt].t,t,e.u,e.s)):t=Vp(e,n,[]),Wp(e),e.u&&e.v(e.u,e.s),t!==vA?t:void 0}function Vp(t,e,n){if(Z2(e))return e;var r=e[Tt];if(!r)return ts(e,function(o,a){return DP(t,r,e,o,a,n)},!0),e;if(r.A!==t)return e;if(!r.P)return Yp(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=Y2(r.k):r.o;ts(r.i===3?new Set(i):i,function(o,a){return DP(t,r,i,o,a,n)}),Yp(t,i,!1),n&&t.u&&yi("Patches").R(r,n,t.u,t.s)}return r.o}function DP(t,e,n,r,i,o){if(Xo(i)){var a=Vp(t,i,o&&e&&e.i!==3&&!il(e.D,r)?o.concat(r):void 0);if(mA(n,r,a),!Xo(a))return;t.m=!1}if(Xi(i)&&!Z2(i)){if(!t.h.F&&t._<1)return;Vp(t,i),e&&e.A.l||Yp(t,i)}}function Yp(t,e,n){n===void 0&&(n=!1),t.h.F&&t.m&&q2(e,n)}function $y(t,e){var n=t[Tt];return(n?Ea(n):t)[e]}function NP(t,e){if(e in t)for(var n=Object.getPrototypeOf(t);n;){var r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=Object.getPrototypeOf(n)}}function bo(t){t.P||(t.P=!0,t.l&&bo(t.l))}function jy(t){t.o||(t.o=Y2(t.t))}function G0(t,e,n){var r=W2(e)?yi("MapSet").N(e,n):V2(e)?yi("MapSet").T(e,n):t.g?function(i,o){var a=Array.isArray(i),s={i:a?1:0,A:o?o.A:q0(),P:!1,I:!1,D:{},l:o,t:i,k:null,o:null,j:null,C:!1},l=s,c=$c;a&&(l=[s],c=Cu);var f=Proxy.revocable(l,c),h=f.revoke,p=f.proxy;return s.k=p,s.j=h,p}(e,n):yi("ES5").J(e,n);return(n?n.A:q0()).p.push(r),r}function Jq(t){return Xo(t)||Ur(22,t),function e(n){if(!Xi(n))return n;var r,i=n[Tt],o=Bl(n);if(i){if(!i.P&&(i.i<4||!yi("ES5").K(i)))return i.t;i.I=!0,r=IP(n,o),i.I=!1}else r=IP(n,o);return ts(r,function(a,s){i&&Gq(i.t,a)===s||mA(r,a,e(s))}),o===3?new Set(r):r}(t)}function IP(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Y2(t)}function eZ(){function t(o,a){var s=i[o];return s?s.enumerable=a:i[o]=s={configurable:!0,enumerable:a,get:function(){var l=this[Tt];return $c.get(l,o)},set:function(l){var c=this[Tt];$c.set(c,o,l)}},s}function e(o){for(var a=o.length-1;a>=0;a--){var s=o[a][Tt];if(!s.P)switch(s.i){case 5:r(s)&&bo(s);break;case 4:n(s)&&bo(s)}}}function n(o){for(var a=o.t,s=o.k,l=ol(s),c=l.length-1;c>=0;c--){var f=l[c];if(f!==Tt){var h=a[f];if(h===void 0&&!il(a,f))return!0;var p=s[f],m=p&&p[Tt];if(m?m.t!==h:!gA(p,h))return!0}}var v=!!a[Tt];return l.length!==ol(a).length+(v?0:1)}function r(o){var a=o.k;if(a.length!==o.t.length)return!0;var s=Object.getOwnPropertyDescriptor(a,a.length-1);if(s&&!s.get)return!0;for(var l=0;l1?_-1:0),S=1;S<_;S++)b[S-1]=arguments[S];return l.produce(y,function(O){var M;return(M=o).call.apply(M,[w,O].concat(b))})}}var c;if(typeof o!="function"&&Ur(6),a!==void 0&&typeof a!="function"&&Ur(7),Xi(i)){var f=AP(r),h=G0(r,i,void 0),p=!0;try{c=o(h),p=!1}finally{p?Wp(f):Z0(f)}return typeof Promise<"u"&&c instanceof Promise?c.then(function(y){return Iy(f,a),Fy(y,f)},function(y){throw Wp(f),y}):(Iy(f,a),Fy(c,f))}if(!i||typeof i!="object"){if((c=o(i))===void 0&&(c=i),c===vA&&(c=void 0),r.F&&q2(c,!0),a){var m=[],v=[];yi("Patches").M(i,c,m,v),a(m,v)}return c}Ur(21,i)},this.produceWithPatches=function(i,o){if(typeof i=="function")return function(c){for(var f=arguments.length,h=Array(f>1?f-1:0),p=1;p=0;i--){var o=r[i];if(o.path.length===0&&o.op==="replace"){n=o.value;break}}i>-1&&(r=r.slice(i+1));var a=yi("Patches").$;return Xo(n)?a(n,r):this.produce(n,function(s){return a(s,r)})},t}(),hr=new iZ,_A=hr.produce;hr.produceWithPatches.bind(hr);hr.setAutoFreeze.bind(hr);hr.setUseProxies.bind(hr);hr.applyPatches.bind(hr);hr.createDraft.bind(hr);hr.finishDraft.bind(hr);function oZ(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function BP(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function zP(t){for(var e=1;e"u"&&(n=e,e=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Dn(1));return n(bA)(t,e)}if(typeof t!="function")throw new Error(Dn(2));var i=t,o=e,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function f(){if(l)throw new Error(Dn(3));return o}function h(y){if(typeof y!="function")throw new Error(Dn(4));if(l)throw new Error(Dn(5));var w=!0;return c(),s.push(y),function(){if(w){if(l)throw new Error(Dn(6));w=!1,c();var b=s.indexOf(y);s.splice(b,1),a=null}}}function p(y){if(!aZ(y))throw new Error(Dn(7));if(typeof y.type>"u")throw new Error(Dn(8));if(l)throw new Error(Dn(9));try{l=!0,o=i(o,y)}finally{l=!1}for(var w=a=s,_=0;_"u")throw new Error(Dn(12));if(typeof n(void 0,{type:qp.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Dn(13))})}function lZ(t){for(var e=Object.keys(t),n={},r=0;r"u")throw c&&c.type,new Error(Dn(14));h[m]=w,f=f||w!==y}return f=f||o.length!==Object.keys(l).length,f?h:l}}function Zp(){for(var t=arguments.length,e=new Array(t),n=0;n0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]0)for(var S=m.getState(),O=Array.from(n.values()),M=0,C=O;M1?"s":"")+" required, but only "+e.length+" present")}function nh(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?nh=function(n){return typeof n}:nh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},nh(t)}function Ce(t){Ee(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||nh(t)==="object"&&e==="[object Date]"?new Date(t.getTime()):typeof t=="number"||e==="[object Number]"?new Date(t):((typeof t=="string"||e==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function us(t,e){Ee(2,arguments);var n=Ce(t),r=Ge(e);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function Si(t,e){Ee(2,arguments);var n=Ce(t),r=Ge(e);if(isNaN(r))return new Date(NaN);if(!r)return n;var i=n.getDate(),o=new Date(n.getTime());o.setMonth(n.getMonth()+r+1,0);var a=o.getDate();return i>=a?o:(n.setFullYear(o.getFullYear(),o.getMonth(),i),n)}function rh(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?rh=function(n){return typeof n}:rh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},rh(t)}function Rfe(t,e){if(Ee(2,arguments),!e||rh(e)!=="object")return new Date(NaN);var n=e.years?Ge(e.years):0,r=e.months?Ge(e.months):0,i=e.weeks?Ge(e.weeks):0,o=e.days?Ge(e.days):0,a=e.hours?Ge(e.hours):0,s=e.minutes?Ge(e.minutes):0,l=e.seconds?Ge(e.seconds):0,c=Ce(t),f=r||n?Si(c,r+n*12):c,h=o||i?us(f,o+i*7):f,p=s+a*60,m=l+p*60,v=m*1e3,y=new Date(h.getTime()+v);return y}function J2(t,e){Ee(2,arguments);var n=Ce(t).getTime(),r=Ge(e);return new Date(n+r)}var YZ=36e5;function qZ(t,e){Ee(2,arguments);var n=Ge(e);return J2(t,n*YZ)}var ZZ={};function no(){return ZZ}function RA(t,e){var n,r,i,o,a,s,l,c;Ee(1,arguments);var f=no(),h=Ge((n=(r=(i=(o=e==null?void 0:e.weekStartsOn)!==null&&o!==void 0?o:e==null||(a=e.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:f.weekStartsOn)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Ce(t),m=p.getDay(),v=(m=i.getTime()?n+1:e.getTime()>=a.getTime()?n:n-1}function KZ(t){Ee(1,arguments);var e=GZ(t),n=new Date(0);n.setFullYear(e,0,4),n.setHours(0,0,0,0);var r=Kp(n);return r}function Ol(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}function _i(t){Ee(1,arguments);var e=Ce(t);return e.setHours(0,0,0,0),e}var XZ=864e5;function Bc(t,e){Ee(2,arguments);var n=_i(t),r=_i(e),i=n.getTime()-Ol(n),o=r.getTime()-Ol(r);return Math.round((i-o)/XZ)}var QZ=6e4;function J0(t,e){Ee(2,arguments);var n=Ge(e);return J2(t,n*QZ)}function ex(t,e){Ee(2,arguments);var n=Ge(e),r=n*7;return us(t,r)}function Pl(t,e){Ee(2,arguments);var n=Ge(e);return Si(t,n*12)}function ih(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ih=function(n){return typeof n}:ih=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ih(t)}function KP(t){Ee(1,arguments);var e;if(t&&typeof t.forEach=="function")e=t;else if(ih(t)==="object"&&t!==null)e=Array.prototype.slice.call(t);else return new Date(NaN);var n;return e.forEach(function(r){var i=Ce(r);(n===void 0||ni||isNaN(i.getDate()))&&(n=i)}),n||new Date(NaN)}function ah(t,e){Ee(2,arguments);var n=Ce(t),r=Ce(e),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}var tx=6e4,Qg=36e5,JZ=1e3;function eG(t,e){Ee(2,arguments);var n=_i(t),r=_i(e);return n.getTime()===r.getTime()}function sh(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?sh=function(n){return typeof n}:sh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},sh(t)}function nx(t){return Ee(1,arguments),t instanceof Date||sh(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function AA(t){if(Ee(1,arguments),!nx(t)&&typeof t!="number")return!1;var e=Ce(t);return!isNaN(Number(e))}function zc(t,e){Ee(2,arguments);var n=Ce(t),r=Ce(e),i=n.getFullYear()-r.getFullYear(),o=n.getMonth()-r.getMonth();return i*12+o}function e1(t){Ee(1,arguments);var e=Ce(t),n=Math.floor(e.getMonth()/3)+1;return n}function Xp(t,e){Ee(2,arguments);var n=Ce(t),r=Ce(e);return n.getFullYear()-r.getFullYear()}function QP(t,e){var n=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return n<0?-1:n>0?1:n}function tG(t,e){Ee(2,arguments);var n=Ce(t),r=Ce(e),i=QP(n,r),o=Math.abs(Bc(n,r));n.setDate(n.getDate()-i*o);var a=Number(QP(n,r)===-i),s=i*(o-a);return s===0?0:s}function DA(t,e){return Ee(2,arguments),Ce(t).getTime()-Ce(e).getTime()}var JP={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},nG="trunc";function rx(t){return t?JP[t]:JP[nG]}function Afe(t,e,n){Ee(2,arguments);var r=DA(t,e)/Qg;return rx(n==null?void 0:n.roundingMethod)(r)}function Qp(t){Ee(1,arguments);var e=Ce(t);return e.setHours(23,59,59,999),e}function rG(t){Ee(1,arguments);var e=Ce(t),n=e.getMonth();return e.setFullYear(e.getFullYear(),n+1,0),e.setHours(23,59,59,999),e}function iG(t){Ee(1,arguments);var e=Ce(t);return Qp(e).getTime()===rG(e).getTime()}function oG(t,e){Ee(2,arguments);var n=Ce(t),r=Ce(e),i=ah(n,r),o=Math.abs(zc(n,r)),a;if(o<1)a=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-i*o);var s=ah(n,r)===-i;iG(Ce(t))&&o===1&&ah(t,r)===1&&(s=!1),a=i*(o-Number(s))}return a===0?0:a}function aG(t,e,n){Ee(2,arguments);var r=DA(t,e)/1e3;return rx(n==null?void 0:n.roundingMethod)(r)}function Dfe(t,e,n){Ee(2,arguments);var r=tG(t,e)/7;return rx(n==null?void 0:n.roundingMethod)(r)}function t1(t){Ee(1,arguments);var e=Ce(t),n=e.getMonth(),r=n-n%3;return e.setMonth(r,1),e.setHours(0,0,0,0),e}function sG(t){Ee(1,arguments);var e=Ce(t);return e.setDate(1),e.setHours(0,0,0,0),e}function lG(t){Ee(1,arguments);var e=Ce(t),n=new Date(0);return n.setFullYear(e.getFullYear(),0,1),n.setHours(0,0,0,0),n}function uG(t,e){var n,r,i,o,a,s,l,c;Ee(1,arguments);var f=no(),h=Ge((n=(r=(i=(o=e==null?void 0:e.weekStartsOn)!==null&&o!==void 0?o:e==null||(a=e.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:f.weekStartsOn)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Ce(t),m=p.getDay(),v=(m=i.getTime()?n+1:e.getTime()>=a.getTime()?n:n-1}function dG(t){Ee(1,arguments);var e=IA(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var r=Tl(n);return r}var hG=6048e5;function FA(t){Ee(1,arguments);var e=Ce(t),n=Tl(e).getTime()-dG(e).getTime();return Math.round(n/hG)+1}function ns(t,e){var n,r,i,o,a,s,l,c;Ee(1,arguments);var f=no(),h=Ge((n=(r=(i=(o=e==null?void 0:e.weekStartsOn)!==null&&o!==void 0?o:e==null||(a=e.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:f.weekStartsOn)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Ce(t),m=p.getUTCDay(),v=(m=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=new Date(0);v.setUTCFullYear(h+1,0,m),v.setUTCHours(0,0,0,0);var y=ns(v,e),w=new Date(0);w.setUTCFullYear(h,0,m),w.setUTCHours(0,0,0,0);var _=ns(w,e);return f.getTime()>=y.getTime()?h+1:f.getTime()>=_.getTime()?h:h-1}function pG(t,e){var n,r,i,o,a,s,l,c;Ee(1,arguments);var f=no(),h=Ge((n=(r=(i=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(a=e.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:f.firstWeekContainsDate)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1),p=ix(t,e),m=new Date(0);m.setUTCFullYear(p,0,h),m.setUTCHours(0,0,0,0);var v=ns(m,e);return v}var mG=6048e5;function $A(t,e){Ee(1,arguments);var n=Ce(t),r=ns(n,e).getTime()-pG(n,e).getTime();return Math.round(r/mG)+1}function Qe(t,e){for(var n=t<0?"-":"",r=Math.abs(t).toString();r.length0?r:1-r;return Qe(n==="yy"?i%100:i,n.length)},M:function(e,n){var r=e.getUTCMonth();return n==="M"?String(r+1):Qe(r+1,2)},d:function(e,n){return Qe(e.getUTCDate(),n.length)},a:function(e,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,n){return Qe(e.getUTCHours()%12||12,n.length)},H:function(e,n){return Qe(e.getUTCHours(),n.length)},m:function(e,n){return Qe(e.getUTCMinutes(),n.length)},s:function(e,n){return Qe(e.getUTCSeconds(),n.length)},S:function(e,n){var r=n.length,i=e.getUTCMilliseconds(),o=Math.floor(i*Math.pow(10,r-3));return Qe(o,n.length)}};const uo=gG;var Ps={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},vG={G:function(e,n,r){var i=e.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});case"GGGG":default:return r.era(i,{width:"wide"})}},y:function(e,n,r){if(n==="yo"){var i=e.getUTCFullYear(),o=i>0?i:1-i;return r.ordinalNumber(o,{unit:"year"})}return uo.y(e,n)},Y:function(e,n,r,i){var o=ix(e,i),a=o>0?o:1-o;if(n==="YY"){var s=a%100;return Qe(s,2)}return n==="Yo"?r.ordinalNumber(a,{unit:"year"}):Qe(a,n.length)},R:function(e,n){var r=IA(e);return Qe(r,n.length)},u:function(e,n){var r=e.getUTCFullYear();return Qe(r,n.length)},Q:function(e,n,r){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return Qe(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,n,r){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return Qe(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,n,r){var i=e.getUTCMonth();switch(n){case"M":case"MM":return uo.M(e,n);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(e,n,r){var i=e.getUTCMonth();switch(n){case"L":return String(i+1);case"LL":return Qe(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(e,n,r,i){var o=$A(e,i);return n==="wo"?r.ordinalNumber(o,{unit:"week"}):Qe(o,n.length)},I:function(e,n,r){var i=FA(e);return n==="Io"?r.ordinalNumber(i,{unit:"week"}):Qe(i,n.length)},d:function(e,n,r){return n==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):uo.d(e,n)},D:function(e,n,r){var i=fG(e);return n==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):Qe(i,n.length)},E:function(e,n,r){var i=e.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});case"EEEE":default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(e,n,r,i){var o=e.getUTCDay(),a=(o-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(a);case"ee":return Qe(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,n,r,i){var o=e.getUTCDay(),a=(o-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(a);case"cc":return Qe(a,n.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,n,r){var i=e.getUTCDay(),o=i===0?7:i;switch(n){case"i":return String(o);case"ii":return Qe(o,n.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});case"iiii":default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(e,n,r){var i=e.getUTCHours(),o=i/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,n,r){var i=e.getUTCHours(),o;switch(i===12?o=Ps.noon:i===0?o=Ps.midnight:o=i/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,n,r){var i=e.getUTCHours(),o;switch(i>=17?o=Ps.evening:i>=12?o=Ps.afternoon:i>=4?o=Ps.morning:o=Ps.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,n,r){if(n==="ho"){var i=e.getUTCHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return uo.h(e,n)},H:function(e,n,r){return n==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):uo.H(e,n)},K:function(e,n,r){var i=e.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(i,{unit:"hour"}):Qe(i,n.length)},k:function(e,n,r){var i=e.getUTCHours();return i===0&&(i=24),n==="ko"?r.ordinalNumber(i,{unit:"hour"}):Qe(i,n.length)},m:function(e,n,r){return n==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):uo.m(e,n)},s:function(e,n,r){return n==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):uo.s(e,n)},S:function(e,n){return uo.S(e,n)},X:function(e,n,r,i){var o=i._originalDate||e,a=o.getTimezoneOffset();if(a===0)return"Z";switch(n){case"X":return tT(a);case"XXXX":case"XX":return Oa(a);case"XXXXX":case"XXX":default:return Oa(a,":")}},x:function(e,n,r,i){var o=i._originalDate||e,a=o.getTimezoneOffset();switch(n){case"x":return tT(a);case"xxxx":case"xx":return Oa(a);case"xxxxx":case"xxx":default:return Oa(a,":")}},O:function(e,n,r,i){var o=i._originalDate||e,a=o.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+eT(a,":");case"OOOO":default:return"GMT"+Oa(a,":")}},z:function(e,n,r,i){var o=i._originalDate||e,a=o.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+eT(a,":");case"zzzz":default:return"GMT"+Oa(a,":")}},t:function(e,n,r,i){var o=i._originalDate||e,a=Math.floor(o.getTime()/1e3);return Qe(a,n.length)},T:function(e,n,r,i){var o=i._originalDate||e,a=o.getTime();return Qe(a,n.length)}};function eT(t,e){var n=t>0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),o=r%60;if(o===0)return n+String(i);var a=e||"";return n+String(i)+a+Qe(o,2)}function tT(t,e){if(t%60===0){var n=t>0?"-":"+";return n+Qe(Math.abs(t)/60,2)}return Oa(t,e)}function Oa(t,e){var n=e||"",r=t>0?"-":"+",i=Math.abs(t),o=Qe(Math.floor(i/60),2),a=Qe(i%60,2);return r+o+n+a}const yG=vG;var nT=function(e,n){switch(e){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},jA=function(e,n){switch(e){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},_G=function(e,n){var r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return nT(e,n);var a;switch(i){case"P":a=n.dateTime({width:"short"});break;case"PP":a=n.dateTime({width:"medium"});break;case"PPP":a=n.dateTime({width:"long"});break;case"PPPP":default:a=n.dateTime({width:"full"});break}return a.replace("{{date}}",nT(i,n)).replace("{{time}}",jA(o,n))},bG={p:jA,P:_G};const n1=bG;var wG=["D","DD"],xG=["YY","YYYY"];function BA(t){return wG.indexOf(t)!==-1}function zA(t){return xG.indexOf(t)!==-1}function Jp(t,e,n){if(t==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var SG={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},EG=function(e,n,r){var i,o=SG[e];return typeof o=="string"?i=o:n===1?i=o.one:i=o.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};const OG=EG;function Uy(t){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.width?String(e.width):t.defaultWidth,r=t.formats[n]||t.formats[t.defaultWidth];return r}}var PG={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},TG={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},CG={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},kG={date:Uy({formats:PG,defaultWidth:"full"}),time:Uy({formats:TG,defaultWidth:"full"}),dateTime:Uy({formats:CG,defaultWidth:"full"})};const MG=kG;var LG={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},RG=function(e,n,r,i){return LG[e]};const AG=RG;function pu(t){return function(e,n){var r=n!=null&&n.context?String(n.context):"standalone",i;if(r==="formatting"&&t.formattingValues){var o=t.defaultFormattingWidth||t.defaultWidth,a=n!=null&&n.width?String(n.width):o;i=t.formattingValues[a]||t.formattingValues[o]}else{var s=t.defaultWidth,l=n!=null&&n.width?String(n.width):t.defaultWidth;i=t.values[l]||t.values[s]}var c=t.argumentCallback?t.argumentCallback(e):e;return i[c]}}var DG={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},NG={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},IG={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"]},FG={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"]},$G={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"}},jG={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"}},BG=function(e,n){var r=Number(e),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},zG={ordinalNumber:BG,era:pu({values:DG,defaultWidth:"wide"}),quarter:pu({values:NG,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:pu({values:IG,defaultWidth:"wide"}),day:pu({values:FG,defaultWidth:"wide"}),dayPeriod:pu({values:$G,defaultWidth:"wide",formattingValues:jG,defaultFormattingWidth:"wide"})};const HG=zG;function mu(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],o=e.match(i);if(!o)return null;var a=o[0],s=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(s)?WG(s,function(h){return h.test(a)}):UG(s,function(h){return h.test(a)}),c;c=t.valueCallback?t.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;var f=e.slice(a.length);return{value:c,rest:f}}}function UG(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function WG(t,e){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(t.matchPattern);if(!r)return null;var i=r[0],o=e.match(t.parsePattern);if(!o)return null;var a=t.valueCallback?t.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;var s=e.slice(i.length);return{value:a,rest:s}}}var YG=/^(\d+)(th|st|nd|rd)?/i,qG=/\d+/i,ZG={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},GG={any:[/^b/i,/^(a|c)/i]},KG={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},XG={any:[/1/i,/2/i,/3/i,/4/i]},QG={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},JG={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]},eK={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},tK={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]},nK={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},rK={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}},iK={ordinalNumber:VG({matchPattern:YG,parsePattern:qG,valueCallback:function(e){return parseInt(e,10)}}),era:mu({matchPatterns:ZG,defaultMatchWidth:"wide",parsePatterns:GG,defaultParseWidth:"any"}),quarter:mu({matchPatterns:KG,defaultMatchWidth:"wide",parsePatterns:XG,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:mu({matchPatterns:QG,defaultMatchWidth:"wide",parsePatterns:JG,defaultParseWidth:"any"}),day:mu({matchPatterns:eK,defaultMatchWidth:"wide",parsePatterns:tK,defaultParseWidth:"any"}),dayPeriod:mu({matchPatterns:nK,defaultMatchWidth:"any",parsePatterns:rK,defaultParseWidth:"any"})};const oK=iK;var aK={code:"en-US",formatDistance:OG,formatLong:MG,formatRelative:AG,localize:HG,match:oK,options:{weekStartsOn:0,firstWeekContainsDate:1}};const ox=aK;var sK=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,lK=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,uK=/^'([^]*?)'?$/,cK=/''/g,fK=/[a-zA-Z]/;function rT(t,e,n){var r,i,o,a,s,l,c,f,h,p,m,v,y,w,_,b,S,O;Ee(2,arguments);var M=String(e),C=no(),R=(r=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:C.locale)!==null&&r!==void 0?r:ox,$=Ge((o=(a=(s=(l=n==null?void 0:n.firstWeekContainsDate)!==null&&l!==void 0?l:n==null||(c=n.locale)===null||c===void 0||(f=c.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&s!==void 0?s:C.firstWeekContainsDate)!==null&&a!==void 0?a:(h=C.locale)===null||h===void 0||(p=h.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!($>=1&&$<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var U=Ge((m=(v=(y=(w=n==null?void 0:n.weekStartsOn)!==null&&w!==void 0?w:n==null||(_=n.locale)===null||_===void 0||(b=_.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&y!==void 0?y:C.weekStartsOn)!==null&&v!==void 0?v:(S=C.locale)===null||S===void 0||(O=S.options)===null||O===void 0?void 0:O.weekStartsOn)!==null&&m!==void 0?m:0);if(!(U>=0&&U<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!R.localize)throw new RangeError("locale must contain localize property");if(!R.formatLong)throw new RangeError("locale must contain formatLong property");var I=Ce(t);if(!AA(I))throw new RangeError("Invalid time value");var H=Ol(I),W=NA(I,H),J={firstWeekContainsDate:$,weekStartsOn:U,locale:R,_originalDate:I},Y=M.match(lK).map(function(X){var re=X[0];if(re==="p"||re==="P"){var se=n1[re];return se(X,R.formatLong)}return X}).join("").match(sK).map(function(X){if(X==="''")return"'";var re=X[0];if(re==="'")return dK(X);var se=yG[re];if(se)return!(n!=null&&n.useAdditionalWeekYearTokens)&&zA(X)&&Jp(X,e,String(t)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&BA(X)&&Jp(X,e,String(t)),se(W,X,R.localize,J);if(re.match(fK))throw new RangeError("Format string contains an unescaped latin alphabet character `"+re+"`");return X}).join("");return Y}function dK(t){var e=t.match(uK);return e?e[1].replace(cK,"'"):t}function ax(t,e){if(t==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function hK(t){return ax({},t)}var iT=1440,pK=2520,Wy=43200,mK=86400;function Ife(t,e,n){var r,i;Ee(2,arguments);var o=no(),a=(r=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:o.locale)!==null&&r!==void 0?r:ox;if(!a.formatDistance)throw new RangeError("locale must contain formatDistance property");var s=ah(t,e);if(isNaN(s))throw new RangeError("Invalid time value");var l=ax(hK(n),{addSuffix:Boolean(n==null?void 0:n.addSuffix),comparison:s}),c,f;s>0?(c=Ce(e),f=Ce(t)):(c=Ce(t),f=Ce(e));var h=aG(f,c),p=(Ol(f)-Ol(c))/1e3,m=Math.round((h-p)/60),v;if(m<2)return n!=null&&n.includeSeconds?h<5?a.formatDistance("lessThanXSeconds",5,l):h<10?a.formatDistance("lessThanXSeconds",10,l):h<20?a.formatDistance("lessThanXSeconds",20,l):h<40?a.formatDistance("halfAMinute",0,l):h<60?a.formatDistance("lessThanXMinutes",1,l):a.formatDistance("xMinutes",1,l):m===0?a.formatDistance("lessThanXMinutes",1,l):a.formatDistance("xMinutes",m,l);if(m<45)return a.formatDistance("xMinutes",m,l);if(m<90)return a.formatDistance("aboutXHours",1,l);if(mr.getTime()}function $i(t,e){Ee(2,arguments);var n=Ce(t),r=Ce(e);return n.getTime()"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 tm(t){return tm=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},tm(t)}function sx(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function aT(t,e){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 nm(t){return nm=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},nm(t)}function uT(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var NK=function(t){LK(n,t);var e=RK(n);function n(){var r;kK(this,n);for(var i=arguments.length,o=new Array(i),a=0;a0,r=n?e:1-e,i;if(r<=50)i=t||100;else{var o=r+50,a=Math.floor(o/100)*100,s=t>=o%100;i=t+a-(s?100:0)}return n?i:1-i}function qA(t){return t%400===0||t%4===0&&t%100!==0}function ch(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ch=function(n){return typeof n}:ch=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ch(t)}function IK(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function cT(t,e){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 im(t){return im=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},im(t)}function fT(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var HK=function(t){$K(n,t);var e=jK(n);function n(){var r;IK(this,n);for(var i=arguments.length,o=new Array(i),a=0;a0}},{key:"set",value:function(i,o,a){var s=i.getUTCFullYear();if(a.isTwoDigitYear){var l=YA(a.year,s);return i.setUTCFullYear(l,0,1),i.setUTCHours(0,0,0,0),i}var c=!("era"in o)||o.era===1?a.year:1-a.year;return i.setUTCFullYear(c,0,1),i.setUTCHours(0,0,0,0),i}}]),n}(ut);function fh(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?fh=function(n){return typeof n}:fh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},fh(t)}function UK(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dT(t,e){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 om(t){return om=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},om(t)}function hT(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var GK=function(t){VK(n,t);var e=YK(n);function n(){var r;UK(this,n);for(var i=arguments.length,o=new Array(i),a=0;a0}},{key:"set",value:function(i,o,a,s){var l=ix(i,s);if(a.isTwoDigitYear){var c=YA(a.year,l);return i.setUTCFullYear(c,0,s.firstWeekContainsDate),i.setUTCHours(0,0,0,0),ns(i,s)}var f=!("era"in o)||o.era===1?a.year:1-a.year;return i.setUTCFullYear(f,0,s.firstWeekContainsDate),i.setUTCHours(0,0,0,0),ns(i,s)}}]),n}(ut);function dh(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?dh=function(n){return typeof n}:dh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},dh(t)}function KK(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function pT(t,e){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 am(t){return am=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},am(t)}function mT(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var nX=function(t){QK(n,t);var e=JK(n);function n(){var r;KK(this,n);for(var i=arguments.length,o=new Array(i),a=0;a"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 sm(t){return sm=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},sm(t)}function vT(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var uX=function(t){oX(n,t);var e=aX(n);function n(){var r;rX(this,n);for(var i=arguments.length,o=new Array(i),a=0;a"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 lm(t){return lm=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},lm(t)}function _T(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var gX=function(t){dX(n,t);var e=hX(n);function n(){var r;cX(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=1&&o<=4}},{key:"set",value:function(i,o,a){return i.setUTCMonth((a-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),n}(ut);function mh(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?mh=function(n){return typeof n}:mh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},mh(t)}function vX(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function bT(t,e){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 um(t){return um=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},um(t)}function wT(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var SX=function(t){_X(n,t);var e=bX(n);function n(){var r;vX(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=1&&o<=4}},{key:"set",value:function(i,o,a){return i.setUTCMonth((a-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),n}(ut);function gh(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?gh=function(n){return typeof n}:gh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},gh(t)}function EX(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xT(t,e){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 cm(t){return cm=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},cm(t)}function ST(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var MX=function(t){PX(n,t);var e=TX(n);function n(){var r;EX(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=0&&o<=11}},{key:"set",value:function(i,o,a){return i.setUTCMonth(a,1),i.setUTCHours(0,0,0,0),i}}]),n}(ut);function vh(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?vh=function(n){return typeof n}:vh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},vh(t)}function LX(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ET(t,e){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 fm(t){return fm=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},fm(t)}function OT(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var FX=function(t){AX(n,t);var e=DX(n);function n(){var r;LX(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=0&&o<=11}},{key:"set",value:function(i,o,a){return i.setUTCMonth(a,1),i.setUTCHours(0,0,0,0),i}}]),n}(ut);function $X(t,e,n){Ee(2,arguments);var r=Ce(t),i=Ge(e),o=$A(r,n)-i;return r.setUTCDate(r.getUTCDate()-o*7),r}function yh(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?yh=function(n){return typeof n}:yh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},yh(t)}function jX(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function PT(t,e){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 dm(t){return dm=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},dm(t)}function TT(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var VX=function(t){zX(n,t);var e=HX(n);function n(){var r;jX(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=1&&o<=53}},{key:"set",value:function(i,o,a,s){return ns($X(i,a,s),s)}}]),n}(ut);function YX(t,e){Ee(2,arguments);var n=Ce(t),r=Ge(e),i=FA(n)-r;return n.setUTCDate(n.getUTCDate()-i*7),n}function _h(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_h=function(n){return typeof n}:_h=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_h(t)}function qX(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function CT(t,e){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 hm(t){return hm=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},hm(t)}function kT(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var JX=function(t){GX(n,t);var e=KX(n);function n(){var r;qX(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=1&&o<=53}},{key:"set",value:function(i,o,a){return Tl(YX(i,a))}}]),n}(ut);function bh(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?bh=function(n){return typeof n}:bh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},bh(t)}function eQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function MT(t,e){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 pm(t){return pm=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},pm(t)}function Vy(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var aQ=[31,28,31,30,31,30,31,31,30,31,30,31],sQ=[31,29,31,30,31,30,31,31,30,31,30,31],lQ=function(t){nQ(n,t);var e=rQ(n);function n(){var r;eQ(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=1&&o<=sQ[l]:o>=1&&o<=aQ[l]}},{key:"set",value:function(i,o,a){return i.setUTCDate(a),i.setUTCHours(0,0,0,0),i}}]),n}(ut);function xh(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?xh=function(n){return typeof n}:xh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},xh(t)}function uQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function LT(t,e){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 mm(t){return mm=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},mm(t)}function Yy(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var mQ=function(t){fQ(n,t);var e=dQ(n);function n(){var r;uQ(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=1&&o<=366:o>=1&&o<=365}},{key:"set",value:function(i,o,a){return i.setUTCMonth(0,a),i.setUTCHours(0,0,0,0),i}}]),n}(ut);function cx(t,e,n){var r,i,o,a,s,l,c,f;Ee(2,arguments);var h=no(),p=Ge((r=(i=(o=(a=n==null?void 0:n.weekStartsOn)!==null&&a!==void 0?a:n==null||(s=n.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:h.weekStartsOn)!==null&&i!==void 0?i:(c=h.locale)===null||c===void 0||(f=c.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&r!==void 0?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=Ce(t),v=Ge(e),y=m.getUTCDay(),w=v%7,_=(w+7)%7,b=(_"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 gm(t){return gm=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},gm(t)}function AT(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var xQ=function(t){yQ(n,t);var e=_Q(n);function n(){var r;gQ(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=0&&o<=6}},{key:"set",value:function(i,o,a,s){return i=cx(i,a,s),i.setUTCHours(0,0,0,0),i}}]),n}(ut);function Oh(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Oh=function(n){return typeof n}:Oh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Oh(t)}function SQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function DT(t,e){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 vm(t){return vm=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},vm(t)}function NT(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var kQ=function(t){OQ(n,t);var e=PQ(n);function n(){var r;SQ(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=0&&o<=6}},{key:"set",value:function(i,o,a,s){return i=cx(i,a,s),i.setUTCHours(0,0,0,0),i}}]),n}(ut);function Ph(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ph=function(n){return typeof n}:Ph=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ph(t)}function MQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function IT(t,e){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 ym(t){return ym=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ym(t)}function FT(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var IQ=function(t){RQ(n,t);var e=AQ(n);function n(){var r;MQ(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=0&&o<=6}},{key:"set",value:function(i,o,a,s){return i=cx(i,a,s),i.setUTCHours(0,0,0,0),i}}]),n}(ut);function FQ(t,e){Ee(2,arguments);var n=Ge(e);n%7===0&&(n=n-7);var r=1,i=Ce(t),o=i.getUTCDay(),a=n%7,s=(a+7)%7,l=(s"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 _m(t){return _m=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},_m(t)}function jT(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var WQ=function(t){BQ(n,t);var e=zQ(n);function n(){var r;$Q(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=1&&o<=7}},{key:"set",value:function(i,o,a){return i=FQ(i,a),i.setUTCHours(0,0,0,0),i}}]),n}(ut);function Ch(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ch=function(n){return typeof n}:Ch=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ch(t)}function VQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function BT(t,e){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 bm(t){return bm=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},bm(t)}function zT(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var XQ=function(t){qQ(n,t);var e=ZQ(n);function n(){var r;VQ(this,n);for(var i=arguments.length,o=new Array(i),a=0;a"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 wm(t){return wm=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},wm(t)}function UT(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var iJ=function(t){eJ(n,t);var e=tJ(n);function n(){var r;QQ(this,n);for(var i=arguments.length,o=new Array(i),a=0;a"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 xm(t){return xm=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},xm(t)}function VT(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var fJ=function(t){sJ(n,t);var e=lJ(n);function n(){var r;oJ(this,n);for(var i=arguments.length,o=new Array(i),a=0;a"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 Sm(t){return Sm=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Sm(t)}function qT(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var yJ=function(t){pJ(n,t);var e=mJ(n);function n(){var r;dJ(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=1&&o<=12}},{key:"set",value:function(i,o,a){var s=i.getUTCHours()>=12;return s&&a<12?i.setUTCHours(a+12,0,0,0):!s&&a===12?i.setUTCHours(0,0,0,0):i.setUTCHours(a,0,0,0),i}}]),n}(ut);function Rh(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Rh=function(n){return typeof n}:Rh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Rh(t)}function _J(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ZT(t,e){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 Em(t){return Em=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Em(t)}function GT(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var OJ=function(t){wJ(n,t);var e=xJ(n);function n(){var r;_J(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=0&&o<=23}},{key:"set",value:function(i,o,a){return i.setUTCHours(a,0,0,0),i}}]),n}(ut);function Ah(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ah=function(n){return typeof n}:Ah=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ah(t)}function PJ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function KT(t,e){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 Om(t){return Om=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Om(t)}function XT(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var RJ=function(t){CJ(n,t);var e=kJ(n);function n(){var r;PJ(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=0&&o<=11}},{key:"set",value:function(i,o,a){var s=i.getUTCHours()>=12;return s&&a<12?i.setUTCHours(a+12,0,0,0):i.setUTCHours(a,0,0,0),i}}]),n}(ut);function Dh(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Dh=function(n){return typeof n}:Dh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Dh(t)}function AJ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function QT(t,e){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 Pm(t){return Pm=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Pm(t)}function JT(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var jJ=function(t){NJ(n,t);var e=IJ(n);function n(){var r;AJ(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=1&&o<=24}},{key:"set",value:function(i,o,a){var s=a<=24?a%24:a;return i.setUTCHours(s,0,0,0),i}}]),n}(ut);function Nh(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Nh=function(n){return typeof n}:Nh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Nh(t)}function BJ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function eC(t,e){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 Tm(t){return Tm=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Tm(t)}function tC(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var YJ=function(t){HJ(n,t);var e=UJ(n);function n(){var r;BJ(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=0&&o<=59}},{key:"set",value:function(i,o,a){return i.setUTCMinutes(a,0,0),i}}]),n}(ut);function Ih(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ih=function(n){return typeof n}:Ih=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ih(t)}function qJ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function nC(t,e){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 Cm(t){return Cm=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Cm(t)}function rC(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var JJ=function(t){GJ(n,t);var e=KJ(n);function n(){var r;qJ(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=0&&o<=59}},{key:"set",value:function(i,o,a){return i.setUTCSeconds(a,0),i}}]),n}(ut);function Fh(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Fh=function(n){return typeof n}:Fh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Fh(t)}function eee(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function iC(t,e){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 km(t){return km=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},km(t)}function oC(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var aee=function(t){nee(n,t);var e=ree(n);function n(){var r;eee(this,n);for(var i=arguments.length,o=new Array(i),a=0;a"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 Mm(t){return Mm=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Mm(t)}function sC(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var hee=function(t){uee(n,t);var e=cee(n);function n(){var r;see(this,n);for(var i=arguments.length,o=new Array(i),a=0;a"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 Lm(t){return Lm=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Lm(t)}function uC(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var bee=function(t){gee(n,t);var e=vee(n);function n(){var r;pee(this,n);for(var i=arguments.length,o=new Array(i),a=0;a"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 Rm(t){return Rm=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Rm(t)}function fC(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Tee=function(t){See(n,t);var e=Eee(n);function n(){var r;wee(this,n);for(var i=arguments.length,o=new Array(i),a=0;a"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 Am(t){return Am=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Am(t)}function hC(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Dee=function(t){Mee(n,t);var e=Lee(n);function n(){var r;Cee(this,n);for(var i=arguments.length,o=new Array(i),a=0;a"u"||t[Symbol.iterator]==null){if(Array.isArray(t)||(n=Iee(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){n=t[Symbol.iterator]()},n:function(){var c=n.next();return o=c.done,c},e:function(c){a=!0,s=c},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(a)throw s}}}}function Iee(t,e){if(t){if(typeof t=="string")return mC(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mC(t,e)}}function mC(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=1&&I<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var H=Ge((v=(y=(w=(_=r==null?void 0:r.weekStartsOn)!==null&&_!==void 0?_:r==null||(b=r.locale)===null||b===void 0||(S=b.options)===null||S===void 0?void 0:S.weekStartsOn)!==null&&w!==void 0?w:$.weekStartsOn)!==null&&y!==void 0?y:(O=$.locale)===null||O===void 0||(M=O.options)===null||M===void 0?void 0:M.weekStartsOn)!==null&&v!==void 0?v:0);if(!(H>=0&&H<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(R==="")return C===""?Ce(n):new Date(NaN);var W={firstWeekContainsDate:I,weekStartsOn:H,locale:U},J=[new PK],Y=R.match($ee).map(function(P){var k=P[0];if(k in n1){var D=n1[k];return D(P,U.formatLong)}return P}).join("").match(Fee),X=[],re=pC(Y),se;try{var V=function(){var k=se.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&zA(k)&&Jp(k,R,t),!(r!=null&&r.useAdditionalDayOfYearTokens)&&BA(k)&&Jp(k,R,t);var D=k[0],G=Nee[D];if(G){var Z=G.incompatibleTokens;if(Array.isArray(Z)){var ie=X.find(function(Le){return Z.includes(Le.token)||Le.token===D});if(ie)throw new RangeError("The format string mustn't contain `".concat(ie.fullToken,"` and `").concat(k,"` at the same time"))}else if(G.incompatibleTokens==="*"&&X.length>0)throw new RangeError("The format string mustn't contain `".concat(k,"` and any other token at the same time"));X.push({token:D,fullToken:k});var pe=G.run(C,k,U.match,W);if(!pe)return{v:new Date(NaN)};J.push(pe.setter),C=pe.rest}else{if(D.match(Hee))throw new RangeError("Format string contains an unescaped latin alphabet character `"+D+"`");if(k==="''"?k="'":D==="'"&&(k=Uee(k)),C.indexOf(k)===0)C=C.slice(k.length);else return{v:new Date(NaN)}}};for(re.s();!(se=re.n()).done;){var N=V();if(Hh(N)==="object")return N.v}}catch(P){re.e(P)}finally{re.f()}if(C.length>0&&zee.test(C))return new Date(NaN);var A=J.map(function(P){return P.priority}).sort(function(P,k){return k-P}).filter(function(P,k,D){return D.indexOf(P)===k}).map(function(P){return J.filter(function(k){return k.priority===P}).sort(function(k,D){return D.subPriority-k.subPriority})}).map(function(P){return P[0]}),B=Ce(n);if(isNaN(B.getTime()))return new Date(NaN);var ee=NA(B,Ol(B)),z={},q=pC(A),ne;try{for(q.s();!(ne=q.n()).done;){var ae=ne.value;if(!ae.validate(ee,W))return new Date(NaN);var he=ae.set(ee,z,W);Array.isArray(he)?(ee=he[0],ax(z,he[1])):ee=he}}catch(P){q.e(P)}finally{q.f()}return ee}function Uee(t){return t.match(jee)[1].replace(Bee,"'")}function Wee(t,e){Ee(2,arguments);var n=Ce(t),r=Ce(e);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function Vee(t,e){Ee(2,arguments);var n=t1(t),r=t1(e);return n.getTime()===r.getTime()}function Yee(t,e){Ee(2,arguments);var n=Ce(t),r=Ce(e);return n.getFullYear()===r.getFullYear()}function Hc(t,e){Ee(2,arguments);var n=Ce(t).getTime(),r=Ce(e.start).getTime(),i=Ce(e.end).getTime();if(!(r<=i))throw new RangeError("Invalid interval");return n>=r&&n<=i}function qee(t,e){Ee(2,arguments);var n=Ge(e);return us(t,-n)}function Zee(t,e){var n;Ee(1,arguments);var r=Ge((n=e==null?void 0:e.additionalDigits)!==null&&n!==void 0?n:2);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof t=="string"||Object.prototype.toString.call(t)==="[object String]"))return new Date(NaN);var i=Qee(t),o;if(i.date){var a=Jee(i.date,r);o=ete(a.restDateString,a.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var s=o.getTime(),l=0,c;if(i.time&&(l=tte(i.time),isNaN(l)))return new Date(NaN);if(i.timezone){if(c=nte(i.timezone),isNaN(c))return new Date(NaN)}else{var f=new Date(s+l),h=new Date(0);return h.setFullYear(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()),h.setHours(f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()),h}return new Date(s+l+c)}var bd={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Gee=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Kee=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Xee=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Qee(t){var e={},n=t.split(bd.dateTimeDelimiter),r;if(n.length>2)return e;if(/:/.test(n[0])?r=n[0]:(e.date=n[0],r=n[1],bd.timeZoneDelimiter.test(e.date)&&(e.date=t.split(bd.timeZoneDelimiter)[0],r=t.substr(e.date.length,t.length))),r){var i=bd.timezone.exec(r);i?(e.time=r.replace(i[1],""),e.timezone=i[1]):e.time=r}return e}function Jee(t,e){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=t.match(n);if(!r)return{year:NaN,restDateString:""};var i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:o===null?i:o*100,restDateString:t.slice((r[1]||r[2]).length)}}function ete(t,e){if(e===null)return new Date(NaN);var n=t.match(Gee);if(!n)return new Date(NaN);var r=!!n[4],i=gu(n[1]),o=gu(n[2])-1,a=gu(n[3]),s=gu(n[4]),l=gu(n[5])-1;if(r)return ste(e,s,l)?rte(e,s,l):new Date(NaN);var c=new Date(0);return!ote(e,o,a)||!ate(e,i)?new Date(NaN):(c.setUTCFullYear(e,o,Math.max(i,a)),c)}function gu(t){return t?parseInt(t):1}function tte(t){var e=t.match(Kee);if(!e)return NaN;var n=Zy(e[1]),r=Zy(e[2]),i=Zy(e[3]);return lte(n,r,i)?n*Qg+r*tx+i*1e3:NaN}function Zy(t){return t&&parseFloat(t.replace(",","."))||0}function nte(t){if(t==="Z")return 0;var e=t.match(Xee);if(!e)return 0;var n=e[1]==="+"?-1:1,r=parseInt(e[2]),i=e[3]&&parseInt(e[3])||0;return ute(r,i)?n*(r*Qg+i*tx):NaN}function rte(t,e,n){var r=new Date(0);r.setUTCFullYear(t,0,4);var i=r.getUTCDay()||7,o=(e-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}var ite=[31,null,31,30,31,30,31,31,30,31,30,31];function ZA(t){return t%400===0||t%4===0&&t%100!==0}function ote(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(ite[e]||(ZA(t)?29:28))}function ate(t,e){return e>=1&&e<=(ZA(t)?366:365)}function ste(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}function lte(t,e,n){return t===24?e===0&&n===0:n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}function ute(t,e){return e>=0&&e<=59}function hi(t,e){Ee(2,arguments);var n=Ce(t),r=Ge(e),i=n.getFullYear(),o=n.getDate(),a=new Date(0);a.setFullYear(i,r,15),a.setHours(0,0,0,0);var s=vK(a);return n.setMonth(r,Math.min(o,s)),n}function Qu(t,e){Ee(2,arguments);var n=Ce(t),r=Ge(e);return n.setHours(r),n}function Ju(t,e){Ee(2,arguments);var n=Ce(t),r=Ge(e);return n.setMinutes(r),n}function ku(t,e){Ee(2,arguments);var n=Ce(t),r=Ge(e),i=Math.floor(n.getMonth()/3)+1,o=r-i;return hi(n,n.getMonth()+o*3)}function cte(t,e){Ee(2,arguments);var n=Ce(t),r=Ge(e);return n.setSeconds(r),n}function Dm(t,e){Ee(2,arguments);var n=Ce(t),r=Ge(e);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function Uc(t,e){Ee(2,arguments);var n=Ge(e);return Si(t,-n)}function fte(t,e){Ee(2,arguments);var n=Ge(e);return ex(t,-n)}function Wc(t,e){Ee(2,arguments);var n=Ge(e);return Pl(t,-n)}function dte(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,db(t,e)}function db(t,e){return db=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},db(t,e)}function hte(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}function gC(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function pte(t,e,n){return t===e?!0:t.correspondingElement?t.correspondingElement.classList.contains(n):t.classList.contains(n)}function mte(t,e,n){if(t===e)return!0;for(;t.parentNode||t.host;){if(t.parentNode&&pte(t,e,n))return!0;t=t.parentNode||t.host}return t}function gte(t){return document.documentElement.clientWidth<=t.clientX||document.documentElement.clientHeight<=t.clientY}var vte=function(){if(!(typeof window>"u"||typeof window.addEventListener!="function")){var e=!1,n=Object.defineProperty({},"passive",{get:function(){e=!0}}),r=function(){};return window.addEventListener("testPassiveEventSupport",r,n),window.removeEventListener("testPassiveEventSupport",r,n),e}};function yte(t){return t===void 0&&(t=0),function(){return++t}}var _te=yte(),hb,wd={},Gy={},bte=["touchstart","touchmove"],wte="ignore-react-onclickoutside";function vC(t,e){var n=null,r=bte.indexOf(e)!==-1;return r&&hb&&(n={passive:!t.props.preventDefault}),n}function Jg(t,e){var n,r,i=t.displayName||t.name||"Component";return r=n=function(o){dte(a,o);function a(l){var c;return c=o.call(this,l)||this,c.__outsideClickHandler=function(f){if(typeof c.__clickOutsideHandlerProp=="function"){c.__clickOutsideHandlerProp(f);return}var h=c.getInstance();if(typeof h.props.handleClickOutside=="function"){h.props.handleClickOutside(f);return}if(typeof h.handleClickOutside=="function"){h.handleClickOutside(f);return}throw new Error("WrappedComponent: "+i+" lacks a handleClickOutside(event) function for processing outside click events.")},c.__getComponentNode=function(){var f=c.getInstance();return e&&typeof e.setClickOutsideRef=="function"?e.setClickOutsideRef()(f):typeof f.setClickOutsideRef=="function"?f.setClickOutsideRef():Wa.findDOMNode(f)},c.enableOnClickOutside=function(){if(!(typeof document>"u"||Gy[c._uid])){typeof hb>"u"&&(hb=vte()),Gy[c._uid]=!0;var f=c.props.eventTypes;f.forEach||(f=[f]),wd[c._uid]=function(h){if(c.componentNode!==null&&(c.props.preventDefault&&h.preventDefault(),c.props.stopPropagation&&h.stopPropagation(),!(c.props.excludeScrollbar&>e(h)))){var p=h.composed&&h.composedPath&&h.composedPath().shift()||h.target;mte(p,c.componentNode,c.props.outsideClickIgnoreClass)===document&&c.__outsideClickHandler(h)}},f.forEach(function(h){document.addEventListener(h,wd[c._uid],vC(gC(c),h))})}},c.disableOnClickOutside=function(){delete Gy[c._uid];var f=wd[c._uid];if(f&&typeof document<"u"){var h=c.props.eventTypes;h.forEach||(h=[h]),h.forEach(function(p){return document.removeEventListener(p,f,vC(gC(c),p))}),delete wd[c._uid]}},c.getRef=function(f){return c.instanceRef=f},c._uid=_te(),c}var s=a.prototype;return s.getInstance=function(){if(t.prototype&&!t.prototype.isReactComponent)return this;var c=this.instanceRef;return c.getInstance?c.getInstance():c},s.componentDidMount=function(){if(!(typeof document>"u"||!document.createElement)){var c=this.getInstance();if(e&&typeof e.handleClickOutside=="function"&&(this.__clickOutsideHandlerProp=e.handleClickOutside(c),typeof this.__clickOutsideHandlerProp!="function"))throw new Error("WrappedComponent: "+i+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),!this.props.disableOnClickOutside&&this.enableOnClickOutside()}},s.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},s.componentWillUnmount=function(){this.disableOnClickOutside()},s.render=function(){var c=this.props;c.excludeScrollbar;var f=hte(c,["excludeScrollbar"]);return t.prototype&&t.prototype.isReactComponent?f.ref=this.getRef:f.wrappedRef=this.getRef,f.disableOnClickOutside=this.disableOnClickOutside,f.enableOnClickOutside=this.enableOnClickOutside,Q.createElement(t,f)},a}(Q.Component),n.displayName="OnClickOutside("+i+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:e&&e.excludeScrollbar||!1,outsideClickIgnoreClass:wte,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return t.getClass?t.getClass():t},r}var GA=Q.createContext(),KA=Q.createContext();function xte(t){var e=t.children,n=Q.useState(null),r=n[0],i=n[1],o=Q.useRef(!1);Q.useEffect(function(){return function(){o.current=!0}},[]);var a=Q.useCallback(function(s){o.current||i(s)},[]);return Q.createElement(GA.Provider,{value:r},Q.createElement(KA.Provider,{value:a},e))}var XA=function(e){return Array.isArray(e)?e[0]:e},QA=function(e){if(typeof e=="function"){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i"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}}();return function(){var n,r=mb(t);if(e){var i=mb(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Mte(this,n)}}function tD(t){return function(e){if(Array.isArray(e))return Ky(e)}(t)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||function(e,n){if(e){if(typeof e=="string")return Ky(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ky(e,n)}}(t)||function(){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 Ky(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&(o=qy(t,e.slice(0,t.length),new Date)),vo(o)||(o=new Date(t))),vo(o)&&s?o:null)}function vo(t,e){return e=e||new Date("1/1/1000"),AA(t)&&!$i(t,e)}function Gt(t,e,n){if(n==="en")return rT(t,e,{awareOfUnicodeTokens:!0});var r=Uo(n);return n&&!r&&console.warn('A locale object was not found for the provided string ["'.concat(n,'"].')),!r&&za()&&Uo(za())&&(r=Uo(za())),rT(t,e,{locale:r||null,awareOfUnicodeTokens:!0})}function Xy(t,e){var n=e.dateFormat,r=e.locale;return t&&Gt(t,Array.isArray(n)?n[0]:n,r)||""}function OC(t,e){var n=e.hour,r=n===void 0?0:n,i=e.minute,o=i===void 0?0:i,a=e.second;return Qu(Ju(cte(t,a===void 0?0:a),o),r)}function Dte(t,e){var n=e&&Uo(e)||za()&&Uo(za());return _K(t,n?{locale:n}:null)}function Nte(t,e){return Gt(t,"ddd",e)}function Ite(t){return _i(t)}function fx(t,e,n){var r=Uo(e||za());return RA(t,{locale:r,weekStartsOn:n})}function Ba(t){return sG(t)}function Mu(t){return lG(t)}function Fte(t){return t1(t)}function nD(t,e){return t&&e?Yee(t,e):!t&&!e}function Po(t,e){return t&&e?Wee(t,e):!t&&!e}function Nm(t,e){return t&&e?Vee(t,e):!t&&!e}function Xn(t,e){return t&&e?eG(t,e):!t&&!e}function To(t,e){return t&&e?wK(t,e):!t&&!e}function Uh(t,e,n){var r,i=_i(e),o=Qp(n);try{r=Hc(t,{start:i,end:o})}catch{r=!1}return r}function za(){return(typeof window<"u"?window:globalThis).__localeId__}function Uo(t){if(typeof t=="string"){var e=typeof window<"u"?window:globalThis;return e.__localeData__?e.__localeData__[t]:null}return t}function rD(t,e){return Gt(hi(nn(),t),"LLLL",e)}function iD(t,e){return Gt(hi(nn(),t),"LLL",e)}function $te(t,e){return Gt(ku(nn(),t),"QQQ",e)}function tv(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.minDate,r=e.maxDate,i=e.excludeDates,o=e.excludeDateIntervals,a=e.includeDates,s=e.includeDateIntervals,l=e.filterDate;return nv(t,{minDate:n,maxDate:r})||i&&i.some(function(c){return Xn(t,c)})||o&&o.some(function(c){var f=c.start,h=c.end;return Hc(t,{start:f,end:h})})||a&&!a.some(function(c){return Xn(t,c)})||s&&!s.some(function(c){var f=c.start,h=c.end;return Hc(t,{start:f,end:h})})||l&&!l(nn(t))||!1}function dx(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.excludeDates,r=e.excludeDateIntervals;return r&&r.length>0?r.some(function(i){var o=i.start,a=i.end;return Hc(t,{start:o,end:a})}):n&&n.some(function(i){return Xn(t,i)})||!1}function jte(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.minDate,r=e.maxDate,i=e.excludeDates,o=e.includeDates,a=e.filterDate;return nv(t,{minDate:n,maxDate:r})||i&&i.some(function(s){return Po(t,s)})||o&&!o.some(function(s){return Po(t,s)})||a&&!a(nn(t))||!1}function Bte(t,e,n,r){var i=lt(t),o=Vn(t),a=lt(e),s=Vn(e),l=lt(r);return i===a&&i===l?o<=n&&n<=s:i=n||li:void 0}function zte(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.minDate,r=e.maxDate,i=e.excludeDates,o=e.includeDates,a=e.filterDate;return nv(t,{minDate:n,maxDate:r})||i&&i.some(function(s){return Nm(t,s)})||o&&!o.some(function(s){return Nm(t,s)})||a&&!a(nn(t))||!1}function Hte(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.minDate,r=e.maxDate,i=new Date(t,0,1);return nv(i,{minDate:n,maxDate:r})||!1}function Ute(t,e,n,r){var i=lt(t),o=e1(t),a=lt(e),s=e1(e),l=lt(r);return i===a&&i===l?o<=n&&n<=s:i=n||li:void 0}function nv(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.minDate,r=e.maxDate;return n&&Bc(t,n)<0||r&&Bc(t,r)>0}function PC(t,e){return e.some(function(n){return Zr(n)===Zr(t)&&Gr(n)===Gr(t)})}function TC(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.excludeTimes,r=e.includeTimes,i=e.filterTime;return n&&PC(t,n)||r&&!PC(t,r)||i&&!i(t)||!1}function CC(t,e){var n=e.minTime,r=e.maxTime;if(!n||!r)throw new Error("Both minTime and maxTime props required");var i,o=nn(),a=Qu(Ju(o,Gr(t)),Zr(t)),s=Qu(Ju(o,Gr(n)),Zr(n)),l=Qu(Ju(o,Gr(r)),Zr(r));try{i=!Hc(a,{start:s,end:l})}catch{i=!1}return i}function kC(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.minDate,r=e.includeDates,i=Uc(t,1);return n&&zc(n,i)>0||r&&r.every(function(o){return zc(o,i)>0})||!1}function MC(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.maxDate,r=e.includeDates,i=Si(t,1);return n&&zc(i,n)>0||r&&r.every(function(o){return zc(i,o)>0})||!1}function LC(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.minDate,r=e.includeDates,i=Wc(t,1);return n&&Xp(n,i)>0||r&&r.every(function(o){return Xp(o,i)>0})||!1}function RC(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.maxDate,r=e.includeDates,i=Pl(t,1);return n&&Xp(i,n)>0||r&&r.every(function(o){return Xp(i,o)>0})||!1}function oD(t){var e=t.minDate,n=t.includeDates;if(n&&e){var r=n.filter(function(i){return Bc(i,e)>=0});return XP(r)}return n?XP(n):e}function aD(t){var e=t.maxDate,n=t.includeDates;if(n&&e){var r=n.filter(function(i){return Bc(i,e)<=0});return KP(r)}return n?KP(n):e}function AC(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"react-datepicker__day--highlighted",n=new Map,r=0,i=t.length;r1&&arguments[1]!==void 0?arguments[1]:12,n=Math.ceil(lt(t)/e)*e,r=n-(e-1);return{startPeriod:r,endPeriod:n}}function Vte(t,e,n,r){for(var i=[],o=0;o<2*e+1;o++){var a=t+e-o,s=!0;n&&(s=lt(n)<=a),r&&s&&(s=lt(r)>=a),s&&i.push(a)}return i}var Yte=Jg(function(t){yn(n,j.Component);var e=_n(n);function n(r){var i;gn(this,n),te(oe(i=e.call(this,r)),"renderOptions",function(){var l=i.props.year,c=i.state.yearsList.map(function(p){return j.createElement("div",{className:l===p?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:p,onClick:i.onChange.bind(oe(i),p),"aria-selected":l===p?"true":void 0},l===p?j.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",p)}),f=i.props.minDate?lt(i.props.minDate):null,h=i.props.maxDate?lt(i.props.maxDate):null;return h&&i.state.yearsList.find(function(p){return p===h})||c.unshift(j.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:i.incrementYears},j.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),f&&i.state.yearsList.find(function(p){return p===f})||c.push(j.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:i.decrementYears},j.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),c}),te(oe(i),"onChange",function(l){i.props.onChange(l)}),te(oe(i),"handleClickOutside",function(){i.props.onCancel()}),te(oe(i),"shiftYears",function(l){var c=i.state.yearsList.map(function(f){return f+l});i.setState({yearsList:c})}),te(oe(i),"incrementYears",function(){return i.shiftYears(1)}),te(oe(i),"decrementYears",function(){return i.shiftYears(-1)});var o=r.yearDropdownItemNumber,a=r.scrollableYearDropdown,s=o||(a?10:5);return i.state={yearsList:Vte(i.props.year,s,i.props.minDate,i.props.maxDate)},i.dropdownRef=Q.createRef(),i}return vn(n,[{key:"componentDidMount",value:function(){var r=this.dropdownRef.current;r&&(r.scrollTop=r.scrollHeight/2-r.clientHeight/2)}},{key:"render",value:function(){var r=Te({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return j.createElement("div",{className:r,ref:this.dropdownRef},this.renderOptions())}}]),n}()),qte=function(t){yn(n,j.Component);var e=_n(n);function n(){var r;gn(this,n);for(var i=arguments.length,o=new Array(i),a=0;a0&&arguments[0]!==void 0?arguments[0]:{},l=!1;r.getTabIndex()===0&&!s.isInputFocused&&r.isSameDay(r.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(l=!0),r.props.inline&&!r.props.shouldFocusDayInline&&(l=!1),r.props.containerRef&&r.props.containerRef.current&&r.props.containerRef.current.contains(document.activeElement)&&document.activeElement.classList.contains("react-datepicker__day")&&(l=!0)),l&&r.dayEl.current.focus({preventScroll:!0})}),te(oe(r),"renderDayContents",function(){return r.props.monthShowsDuplicateDaysEnd&&r.isAfterMonth()||r.props.monthShowsDuplicateDaysStart&&r.isBeforeMonth()?null:r.props.renderDayContents?r.props.renderDayContents(oT(r.props.day),r.props.day):oT(r.props.day)}),te(oe(r),"render",function(){return j.createElement("div",{ref:r.dayEl,className:r.getClassNames(r.props.day),onKeyDown:r.handleOnKeyDown,onClick:r.handleClick,onMouseEnter:r.handleMouseEnter,tabIndex:r.getTabIndex(),"aria-label":r.getAriaLabel(),role:"option","aria-disabled":r.isDisabled(),"aria-current":r.isCurrentDay()?"date":void 0,"aria-selected":r.isSelected()},r.renderDayContents())}),r}return vn(n,[{key:"componentDidMount",value:function(){this.handleFocusDay()}},{key:"componentDidUpdate",value:function(r){this.handleFocusDay(r)}}]),n}(),ene=function(t){yn(n,j.Component);var e=_n(n);function n(){var r;gn(this,n);for(var i=arguments.length,o=new Array(i),a=0;a=6,m=!l&&!r.isWeekInMonth(h);if(p||m){if(!r.props.peekNextMonth)break;f=!0}}return s}),te(oe(r),"onMonthClick",function(s,l){r.handleDayClick(Ba(hi(r.props.day,l)),s)}),te(oe(r),"handleMonthNavigation",function(s,l){r.isDisabled(l)||r.isExcluded(l)||(r.props.setPreSelection(l),r.MONTH_REFS[s].current&&r.MONTH_REFS[s].current.focus())}),te(oe(r),"onMonthKeyDown",function(s,l){var c=s.key;if(!r.props.disabledKeyboardNavigation)switch(c){case"Enter":r.onMonthClick(s,l),r.props.setPreSelection(r.props.selected);break;case"ArrowRight":r.handleMonthNavigation(l===11?0:l+1,Si(r.props.preSelection,1));break;case"ArrowLeft":r.handleMonthNavigation(l===0?11:l-1,Uc(r.props.preSelection,1))}}),te(oe(r),"onQuarterClick",function(s,l){r.handleDayClick(Fte(ku(r.props.day,l)),s)}),te(oe(r),"getMonthClassNames",function(s){var l=r.props,c=l.day,f=l.startDate,h=l.endDate,p=l.selected,m=l.minDate,v=l.maxDate,y=l.preSelection,w=l.monthClassName,_=w?w(c):void 0;return Te("react-datepicker__month-text","react-datepicker__month-".concat(s),_,{"react-datepicker__month--disabled":(m||v)&&jte(hi(c,s),r.props),"react-datepicker__month--selected":r.isSelectedMonth(c,s,p),"react-datepicker__month-text--keyboard-selected":Vn(y)===s,"react-datepicker__month--in-range":Bte(f,h,s,c),"react-datepicker__month--range-start":r.isRangeStartMonth(s),"react-datepicker__month--range-end":r.isRangeEndMonth(s),"react-datepicker__month-text--today":r.isCurrentMonth(c,s)})}),te(oe(r),"getTabIndex",function(s){var l=Vn(r.props.preSelection);return r.props.disabledKeyboardNavigation||s!==l?"-1":"0"}),te(oe(r),"getAriaLabel",function(s){var l=r.props,c=l.chooseDayAriaLabelPrefix,f=c===void 0?"Choose":c,h=l.disabledDayAriaLabelPrefix,p=h===void 0?"Not available":h,m=l.day,v=hi(m,s),y=r.isDisabled(v)||r.isExcluded(v)?p:f;return"".concat(y," ").concat(Gt(v,"MMMM yyyy"))}),te(oe(r),"getQuarterClassNames",function(s){var l=r.props,c=l.day,f=l.startDate,h=l.endDate,p=l.selected,m=l.minDate,v=l.maxDate;return Te("react-datepicker__quarter-text","react-datepicker__quarter-".concat(s),{"react-datepicker__quarter--disabled":(m||v)&&zte(ku(c,s),r.props),"react-datepicker__quarter--selected":r.isSelectedQuarter(c,s,p),"react-datepicker__quarter--in-range":Ute(f,h,s,c),"react-datepicker__quarter--range-start":r.isRangeStartQuarter(s),"react-datepicker__quarter--range-end":r.isRangeEndQuarter(s)})}),te(oe(r),"renderMonths",function(){var s=r.props,l=s.showFullMonthYearPicker,c=s.showTwoColumnMonthYearPicker,f=s.showFourColumnMonthYearPicker,h=s.locale,p=s.day,m=s.selected;return(f?[[0,1,2,3],[4,5,6,7],[8,9,10,11]]:c?[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]]:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]]).map(function(v,y){return j.createElement("div",{className:"react-datepicker__month-wrapper",key:y},v.map(function(w,_){return j.createElement("div",{ref:r.MONTH_REFS[w],key:_,onClick:function(b){r.onMonthClick(b,w)},onKeyDown:function(b){r.onMonthKeyDown(b,w)},tabIndex:r.getTabIndex(w),className:r.getMonthClassNames(w),role:"option","aria-label":r.getAriaLabel(w),"aria-current":r.isCurrentMonth(p,w)?"date":void 0,"aria-selected":r.isSelectedMonth(p,w,m)},l?rD(w,h):iD(w,h))}))})}),te(oe(r),"renderQuarters",function(){var s=r.props,l=s.day,c=s.selected;return j.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map(function(f,h){return j.createElement("div",{key:h,role:"option",onClick:function(p){r.onQuarterClick(p,f)},className:r.getQuarterClassNames(f),"aria-selected":r.isSelectedQuarter(l,f,c)},$te(f,r.props.locale))}))}),te(oe(r),"getClassNames",function(){var s=r.props;s.day;var l=s.selectingDate,c=s.selectsStart,f=s.selectsEnd,h=s.showMonthYearPicker,p=s.showQuarterYearPicker;return Te("react-datepicker__month",{"react-datepicker__month--selecting-range":l&&(c||f)},{"react-datepicker__monthPicker":h},{"react-datepicker__quarterPicker":p})}),r}return vn(n,[{key:"render",value:function(){var r=this.props,i=r.showMonthYearPicker,o=r.showQuarterYearPicker,a=r.day,s=r.ariaLabelPrefix,l=s===void 0?"month ":s;return j.createElement("div",{className:this.getClassNames(),onMouseLeave:this.handleMouseLeave,"aria-label":"".concat(l," ").concat(Gt(a,"yyyy-MM")),role:"listbox"},i?this.renderMonths():o?this.renderQuarters():this.renderWeeks())}}]),n}(),sD=function(t){yn(n,j.Component);var e=_n(n);function n(){var r;gn(this,n);for(var i=arguments.length,o=new Array(i),a=0;a0&&arguments[0]!==void 0?arguments[0]:{}).className||"").split(/\s+/);return ane.some(function(s){return a.indexOf(s)>=0})})(o.target)&&i.props.onDropdownFocus()}),te(oe(i),"getDateInView",function(){var o=i.props,a=o.preSelection,s=o.selected,l=o.openToDate,c=oD(i.props),f=aD(i.props),h=nn(),p=l||s||a;return p||(c&&$i(h,c)?c:f&&Qo(h,f)?f:h)}),te(oe(i),"increaseMonth",function(){i.setState(function(o){var a=o.date;return{date:Si(a,1)}},function(){return i.handleMonthChange(i.state.date)})}),te(oe(i),"decreaseMonth",function(){i.setState(function(o){var a=o.date;return{date:Uc(a,1)}},function(){return i.handleMonthChange(i.state.date)})}),te(oe(i),"handleDayClick",function(o,a,s){i.props.onSelect(o,a,s),i.props.setPreSelection&&i.props.setPreSelection(o)}),te(oe(i),"handleDayMouseEnter",function(o){i.setState({selectingDate:o}),i.props.onDayMouseEnter&&i.props.onDayMouseEnter(o)}),te(oe(i),"handleMonthMouseLeave",function(){i.setState({selectingDate:null}),i.props.onMonthMouseLeave&&i.props.onMonthMouseLeave()}),te(oe(i),"handleYearChange",function(o){i.props.onYearChange&&i.props.onYearChange(o),i.props.adjustDateOnChange&&(i.props.onSelect&&i.props.onSelect(o),i.props.setOpen&&i.props.setOpen(!0)),i.props.setPreSelection&&i.props.setPreSelection(o)}),te(oe(i),"handleMonthChange",function(o){i.props.onMonthChange&&i.props.onMonthChange(o),i.props.adjustDateOnChange&&(i.props.onSelect&&i.props.onSelect(o),i.props.setOpen&&i.props.setOpen(!0)),i.props.setPreSelection&&i.props.setPreSelection(o)}),te(oe(i),"handleMonthYearChange",function(o){i.handleYearChange(o),i.handleMonthChange(o)}),te(oe(i),"changeYear",function(o){i.setState(function(a){var s=a.date;return{date:Dm(s,o)}},function(){return i.handleYearChange(i.state.date)})}),te(oe(i),"changeMonth",function(o){i.setState(function(a){var s=a.date;return{date:hi(s,o)}},function(){return i.handleMonthChange(i.state.date)})}),te(oe(i),"changeMonthYear",function(o){i.setState(function(a){var s=a.date;return{date:Dm(hi(s,Vn(o)),lt(o))}},function(){return i.handleMonthYearChange(i.state.date)})}),te(oe(i),"header",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i.state.date,a=fx(o,i.props.locale,i.props.calendarStartDay),s=[];return i.props.showWeekNumbers&&s.push(j.createElement("div",{key:"W",className:"react-datepicker__day-name"},i.props.weekLabel||"#")),s.concat([0,1,2,3,4,5,6].map(function(l){var c=us(a,l),f=i.formatWeekday(c,i.props.locale),h=i.props.weekDayClassName?i.props.weekDayClassName(c):void 0;return j.createElement("div",{key:l,className:Te("react-datepicker__day-name",h)},f)}))}),te(oe(i),"formatWeekday",function(o,a){return i.props.formatWeekDay?function(s,l,c){return l(Gt(s,"EEEE",c))}(o,i.props.formatWeekDay,a):i.props.useWeekdaysShort?function(s,l){return Gt(s,"EEE",l)}(o,a):function(s,l){return Gt(s,"EEEEEE",l)}(o,a)}),te(oe(i),"decreaseYear",function(){i.setState(function(o){var a=o.date;return{date:Wc(a,i.props.showYearPicker?i.props.yearItemNumber:1)}},function(){return i.handleYearChange(i.state.date)})}),te(oe(i),"renderPreviousButton",function(){if(!i.props.renderCustomHeader){var o;switch(!0){case i.props.showMonthYearPicker:o=LC(i.state.date,i.props);break;case i.props.showYearPicker:o=function(_){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=b.minDate,O=b.yearItemNumber,M=O===void 0?12:O,C=ec(Mu(Wc(_,M)),M).endPeriod,R=S&<(S);return R&&R>C||!1}(i.state.date,i.props);break;default:o=kC(i.state.date,i.props)}if((i.props.forceShowMonthNavigation||i.props.showDisabledMonthNavigation||!o)&&!i.props.showTimeSelectOnly){var a=["react-datepicker__navigation","react-datepicker__navigation--previous"],s=i.decreaseMonth;(i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker)&&(s=i.decreaseYear),o&&i.props.showDisabledMonthNavigation&&(a.push("react-datepicker__navigation--previous--disabled"),s=null);var l=i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker,c=i.props,f=c.previousMonthButtonLabel,h=c.previousYearButtonLabel,p=i.props,m=p.previousMonthAriaLabel,v=m===void 0?typeof f=="string"?f:"Previous Month":m,y=p.previousYearAriaLabel,w=y===void 0?typeof h=="string"?h:"Previous Year":y;return j.createElement("button",{type:"button",className:a.join(" "),onClick:s,onKeyDown:i.props.handleOnKeyDown,"aria-label":l?w:v},j.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"].join(" ")},l?i.props.previousYearButtonLabel:i.props.previousMonthButtonLabel))}}}),te(oe(i),"increaseYear",function(){i.setState(function(o){var a=o.date;return{date:Pl(a,i.props.showYearPicker?i.props.yearItemNumber:1)}},function(){return i.handleYearChange(i.state.date)})}),te(oe(i),"renderNextButton",function(){if(!i.props.renderCustomHeader){var o;switch(!0){case i.props.showMonthYearPicker:o=RC(i.state.date,i.props);break;case i.props.showYearPicker:o=function(_){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=b.maxDate,O=b.yearItemNumber,M=O===void 0?12:O,C=ec(Pl(_,M),M).startPeriod,R=S&<(S);return R&&R0&&arguments[0]!==void 0?arguments[0]:i.state.date,a=["react-datepicker__current-month"];return i.props.showYearDropdown&&a.push("react-datepicker__current-month--hasYearDropdown"),i.props.showMonthDropdown&&a.push("react-datepicker__current-month--hasMonthDropdown"),i.props.showMonthYearDropdown&&a.push("react-datepicker__current-month--hasMonthYearDropdown"),j.createElement("div",{className:a.join(" ")},Gt(o,i.props.dateFormat,i.props.locale))}),te(oe(i),"renderYearDropdown",function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showYearDropdown&&!o)return j.createElement(qte,{adjustDateOnChange:i.props.adjustDateOnChange,date:i.state.date,onSelect:i.props.onSelect,setOpen:i.props.setOpen,dropdownMode:i.props.dropdownMode,onChange:i.changeYear,minDate:i.props.minDate,maxDate:i.props.maxDate,year:lt(i.state.date),scrollableYearDropdown:i.props.scrollableYearDropdown,yearDropdownItemNumber:i.props.yearDropdownItemNumber})}),te(oe(i),"renderMonthDropdown",function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showMonthDropdown&&!o)return j.createElement(Gte,{dropdownMode:i.props.dropdownMode,locale:i.props.locale,onChange:i.changeMonth,month:Vn(i.state.date),useShortMonthInDropdown:i.props.useShortMonthInDropdown})}),te(oe(i),"renderMonthYearDropdown",function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(i.props.showMonthYearDropdown&&!o)return j.createElement(Qte,{dropdownMode:i.props.dropdownMode,locale:i.props.locale,dateFormat:i.props.dateFormat,onChange:i.changeMonthYear,minDate:i.props.minDate,maxDate:i.props.maxDate,date:i.state.date,scrollableMonthYearDropdown:i.props.scrollableMonthYearDropdown})}),te(oe(i),"renderTodayButton",function(){if(i.props.todayButton&&!i.props.showTimeSelectOnly)return j.createElement("div",{className:"react-datepicker__today-button",onClick:function(o){return i.props.onSelect(_i(nn()),o)}},i.props.todayButton)}),te(oe(i),"renderDefaultHeader",function(o){var a=o.monthDate,s=o.i;return j.createElement("div",{className:"react-datepicker__header ".concat(i.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},i.renderCurrentMonth(a),j.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(i.props.dropdownMode),onFocus:i.handleDropdownFocus},i.renderMonthDropdown(s!==0),i.renderMonthYearDropdown(s!==0),i.renderYearDropdown(s!==0)),j.createElement("div",{className:"react-datepicker__day-names"},i.header(a)))}),te(oe(i),"renderCustomHeader",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=o.monthDate,s=o.i;if(i.props.showTimeSelect&&!i.state.monthContainer||i.props.showTimeSelectOnly)return null;var l=kC(i.state.date,i.props),c=MC(i.state.date,i.props),f=LC(i.state.date,i.props),h=RC(i.state.date,i.props),p=!i.props.showMonthYearPicker&&!i.props.showQuarterYearPicker&&!i.props.showYearPicker;return j.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:i.props.onDropdownFocus},i.props.renderCustomHeader(wC(wC({},i.state),{},{customHeaderCount:s,monthDate:a,changeMonth:i.changeMonth,changeYear:i.changeYear,decreaseMonth:i.decreaseMonth,increaseMonth:i.increaseMonth,decreaseYear:i.decreaseYear,increaseYear:i.increaseYear,prevMonthButtonDisabled:l,nextMonthButtonDisabled:c,prevYearButtonDisabled:f,nextYearButtonDisabled:h})),p&&j.createElement("div",{className:"react-datepicker__day-names"},i.header(a)))}),te(oe(i),"renderYearHeader",function(){var o=i.state.date,a=i.props,s=a.showYearPicker,l=ec(o,a.yearItemNumber),c=l.startPeriod,f=l.endPeriod;return j.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},s?"".concat(c," - ").concat(f):lt(o))}),te(oe(i),"renderHeader",function(o){switch(!0){case i.props.renderCustomHeader!==void 0:return i.renderCustomHeader(o);case(i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker):return i.renderYearHeader(o);default:return i.renderDefaultHeader(o)}}),te(oe(i),"renderMonths",function(){if(!i.props.showTimeSelectOnly&&!i.props.showYearPicker){for(var o=[],a=i.props.showPreviousMonths?i.props.monthsShown-1:0,s=Uc(i.state.date,a),l=0;l0;o.push(j.createElement("div",{key:h,ref:function(v){i.monthContainer=v},className:"react-datepicker__month-container"},i.renderHeader({monthDate:f,i:l}),j.createElement(nne,{chooseDayAriaLabelPrefix:i.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:i.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:i.props.weekAriaLabelPrefix,ariaLabelPrefix:i.props.monthAriaLabelPrefix,onChange:i.changeMonthYear,day:f,dayClassName:i.props.dayClassName,calendarStartDay:i.props.calendarStartDay,monthClassName:i.props.monthClassName,onDayClick:i.handleDayClick,handleOnKeyDown:i.props.handleOnDayKeyDown,onDayMouseEnter:i.handleDayMouseEnter,onMouseLeave:i.handleMonthMouseLeave,onWeekSelect:i.props.onWeekSelect,orderInDisplay:l,formatWeekNumber:i.props.formatWeekNumber,locale:i.props.locale,minDate:i.props.minDate,maxDate:i.props.maxDate,excludeDates:i.props.excludeDates,excludeDateIntervals:i.props.excludeDateIntervals,highlightDates:i.props.highlightDates,selectingDate:i.state.selectingDate,includeDates:i.props.includeDates,includeDateIntervals:i.props.includeDateIntervals,inline:i.props.inline,shouldFocusDayInline:i.props.shouldFocusDayInline,fixedHeight:i.props.fixedHeight,filterDate:i.props.filterDate,preSelection:i.props.preSelection,setPreSelection:i.props.setPreSelection,selected:i.props.selected,selectsStart:i.props.selectsStart,selectsEnd:i.props.selectsEnd,selectsRange:i.props.selectsRange,selectsDisabledDaysInRange:i.props.selectsDisabledDaysInRange,showWeekNumbers:i.props.showWeekNumbers,startDate:i.props.startDate,endDate:i.props.endDate,peekNextMonth:i.props.peekNextMonth,setOpen:i.props.setOpen,shouldCloseOnSelect:i.props.shouldCloseOnSelect,renderDayContents:i.props.renderDayContents,disabledKeyboardNavigation:i.props.disabledKeyboardNavigation,showMonthYearPicker:i.props.showMonthYearPicker,showFullMonthYearPicker:i.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:i.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:i.props.showFourColumnMonthYearPicker,showYearPicker:i.props.showYearPicker,showQuarterYearPicker:i.props.showQuarterYearPicker,isInputFocused:i.props.isInputFocused,containerRef:i.containerRef,monthShowsDuplicateDaysEnd:p,monthShowsDuplicateDaysStart:m})))}return o}}),te(oe(i),"renderYears",function(){if(!i.props.showTimeSelectOnly)return i.props.showYearPicker?j.createElement("div",{className:"react-datepicker__year--container"},i.renderHeader(),j.createElement(rne,ev({onDayClick:i.handleDayClick,date:i.state.date},i.props))):void 0}),te(oe(i),"renderTimeSection",function(){if(i.props.showTimeSelect&&(i.state.monthContainer||i.props.showTimeSelectOnly))return j.createElement(sD,{selected:i.props.selected,openToDate:i.props.openToDate,onChange:i.props.onTimeChange,timeClassName:i.props.timeClassName,format:i.props.timeFormat,includeTimes:i.props.includeTimes,intervals:i.props.timeIntervals,minTime:i.props.minTime,maxTime:i.props.maxTime,excludeTimes:i.props.excludeTimes,filterTime:i.props.filterTime,timeCaption:i.props.timeCaption,todayButton:i.props.todayButton,showMonthDropdown:i.props.showMonthDropdown,showMonthYearDropdown:i.props.showMonthYearDropdown,showYearDropdown:i.props.showYearDropdown,withPortal:i.props.withPortal,monthRef:i.state.monthContainer,injectTimes:i.props.injectTimes,locale:i.props.locale,handleOnKeyDown:i.props.handleOnKeyDown,showTimeSelectOnly:i.props.showTimeSelectOnly})}),te(oe(i),"renderInputTimeSection",function(){var o=new Date(i.props.selected),a=vo(o)&&Boolean(i.props.selected)?"".concat(DC(o.getHours()),":").concat(DC(o.getMinutes())):"";if(i.props.showTimeInput)return j.createElement(ine,{date:o,timeString:a,timeInputLabel:i.props.timeInputLabel,onChange:i.props.onTimeChange,customTimeInput:i.props.customTimeInput})}),i.containerRef=j.createRef(),i.state={date:i.getDateInView(),selectingDate:null,monthContainer:null},i}return vn(n,[{key:"componentDidMount",value:function(){var r=this;this.props.showTimeSelect&&(this.assignMonthContainer=void r.setState({monthContainer:r.monthContainer}))}},{key:"componentDidUpdate",value:function(r){this.props.preSelection&&!Xn(this.props.preSelection,r.preSelection)?this.setState({date:this.props.preSelection}):this.props.openToDate&&!Xn(this.props.openToDate,r.openToDate)&&this.setState({date:this.props.openToDate})}},{key:"render",value:function(){var r=this.props.container||one;return j.createElement("div",{ref:this.containerRef},j.createElement(r,{className:Te("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showPopperArrow:this.props.showPopperArrow,arrowProps:this.props.arrowProps},this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.props.children))}}],[{key:"defaultProps",get:function(){return{onDropdownFocus:function(){},monthsShown:1,monthSelectedIn:0,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",customTimeInput:null,yearItemNumber:12}}}]),n}(),lD=function(t){yn(n,j.Component);var e=_n(n);function n(r){var i;return gn(this,n),(i=e.call(this,r)).el=document.createElement("div"),i}return vn(n,[{key:"componentDidMount",value:function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)}},{key:"componentWillUnmount",value:function(){this.portalRoot.removeChild(this.el)}},{key:"render",value:function(){return Fa.createPortal(this.props.children,this.el)}}]),n}(),lne=function(t){return!t.disabled&&t.tabIndex!==-1},une=function(t){yn(n,j.Component);var e=_n(n);function n(r){var i;return gn(this,n),te(oe(i=e.call(this,r)),"getTabChildren",function(){return Array.prototype.slice.call(i.tabLoopRef.current.querySelectorAll("[tabindex], a, button, input, select, textarea"),1,-1).filter(lne)}),te(oe(i),"handleFocusStart",function(o){var a=i.getTabChildren();a&&a.length>1&&a[a.length-1].focus()}),te(oe(i),"handleFocusEnd",function(o){var a=i.getTabChildren();a&&a.length>1&&a[0].focus()}),i.tabLoopRef=j.createRef(),i}return vn(n,[{key:"render",value:function(){return this.props.enableTabLoop?j.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},j.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:"0",onFocus:this.handleFocusStart}),this.props.children,j.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:"0",onFocus:this.handleFocusEnd})):this.props.children}}],[{key:"defaultProps",get:function(){return{enableTabLoop:!0}}}]),n}(),cne=function(t){yn(n,j.Component);var e=_n(n);function n(){return gn(this,n),e.apply(this,arguments)}return vn(n,[{key:"render",value:function(){var r,i=this.props,o=i.className,a=i.wrapperClassName,s=i.hidePopper,l=i.popperComponent,c=i.popperModifiers,f=i.popperPlacement,h=i.popperProps,p=i.targetComponent,m=i.enableTabLoop,v=i.popperOnKeyDown,y=i.portalId,w=i.portalHost;if(!s){var _=Te("react-datepicker-popper",o);r=j.createElement(Cte,ev({modifiers:c,placement:f},h),function(S){var O=S.ref,M=S.style,C=S.placement,R=S.arrowProps;return j.createElement(une,{enableTabLoop:m},j.createElement("div",{ref:O,style:M,className:_,"data-placement":C,onKeyDown:v},j.cloneElement(l,{arrowProps:R})))})}this.props.popperContainer&&(r=j.createElement(this.props.popperContainer,{},r)),y&&!s&&(r=j.createElement(lD,{portalId:y,portalHost:w},r));var b=Te("react-datepicker-wrapper",a);return j.createElement(xte,{className:"react-datepicker-manager"},j.createElement(kte,null,function(S){var O=S.ref;return j.createElement("div",{ref:O,className:b},p)}),r)}}],[{key:"defaultProps",get:function(){return{hidePopper:!0,popperModifiers:[],popperProps:{},popperPlacement:"bottom-start"}}}]),n}(),fne=Jg(sne),jfe=function(t){yn(n,j.Component);var e=_n(n);function n(r){var i;return gn(this,n),te(oe(i=e.call(this,r)),"getPreSelection",function(){return i.props.openToDate?i.props.openToDate:i.props.selectsEnd&&i.props.startDate?i.props.startDate:i.props.selectsStart&&i.props.endDate?i.props.endDate:nn()}),te(oe(i),"calcInitialState",function(){var o,a=i.getPreSelection(),s=oD(i.props),l=aD(i.props),c=s&&$i(a,_i(s))?s:l&&Qo(a,Qp(l))?l:a;return{open:i.props.startOpen||!1,preventFocus:!1,preSelection:(o=i.props.selectsRange?i.props.startDate:i.props.selected)!==null&&o!==void 0?o:c,highlightDates:AC(i.props.highlightDates),focused:!1,shouldFocusDayInline:!1}}),te(oe(i),"clearPreventFocusTimeout",function(){i.preventFocusTimeout&&clearTimeout(i.preventFocusTimeout)}),te(oe(i),"setFocus",function(){i.input&&i.input.focus&&i.input.focus({preventScroll:!0})}),te(oe(i),"setBlur",function(){i.input&&i.input.blur&&i.input.blur(),i.cancelFocusInput()}),te(oe(i),"setOpen",function(o){var a=arguments.length>1&&arguments[1]!==void 0&&arguments[1];i.setState({open:o,preSelection:o&&i.state.open?i.state.preSelection:i.calcInitialState().preSelection,lastPreSelectChange:Qy},function(){o||i.setState(function(s){return{focused:!!a&&s.focused}},function(){!a&&i.setBlur(),i.setState({inputValue:null})})})}),te(oe(i),"inputOk",function(){return nx(i.state.preSelection)}),te(oe(i),"isCalendarOpen",function(){return i.props.open===void 0?i.state.open&&!i.props.disabled&&!i.props.readOnly:i.props.open}),te(oe(i),"handleFocus",function(o){i.state.preventFocus||(i.props.onFocus(o),i.props.preventOpenOnFocus||i.props.readOnly||i.setOpen(!0)),i.setState({focused:!0})}),te(oe(i),"cancelFocusInput",function(){clearTimeout(i.inputFocusTimeout),i.inputFocusTimeout=null}),te(oe(i),"deferFocusInput",function(){i.cancelFocusInput(),i.inputFocusTimeout=setTimeout(function(){return i.setFocus()},1)}),te(oe(i),"handleDropdownFocus",function(){i.cancelFocusInput()}),te(oe(i),"handleBlur",function(o){(!i.state.open||i.props.withPortal||i.props.showTimeInput)&&i.props.onBlur(o),i.setState({focused:!1})}),te(oe(i),"handleCalendarClickOutside",function(o){i.props.inline||i.setOpen(!1),i.props.onClickOutside(o),i.props.withPortal&&o.preventDefault()}),te(oe(i),"handleChange",function(){for(var o=arguments.length,a=new Array(o),s=0;s=128>>ge&&ye<=2048>>ge&&ye<=57344>>ge&&ye<=65536>>ge&&ye<>6>15?3:ge>31?2:1;if(ye===6*2)return ge>15?3:2;if(ye===6*3)return 3;throw new Error}for(var Se=65533,Re="",ke=this.bitsNeeded,Me=this.codePoint,le=0;le191||!me(Me<<6|fe&63,ke-6,ve(ke,Me)))&&(ke=0,Me=Se,Re+=String.fromCharCode(Me)),ke===0?(fe>=0&&fe<=127?(ke=0,Me=fe):fe>=192&&fe<=223?(ke=6*1,Me=fe&31):fe>=224&&fe<=239?(ke=6*2,Me=fe&15):fe>=240&&fe<=247?(ke=6*3,Me=fe&7):(ke=0,Me=Se),ke!==0&&!me(Me,ke,ve(ke,Me))&&(ke=0,Me=Se)):(ke-=6,Me=Me<<6|fe&63),ke===0&&(Me<=65535?Re+=String.fromCharCode(Me):(Re+=String.fromCharCode(55296+(Me-65535-1>>10)),Re+=String.fromCharCode(56320+(Me-65535-1&1023))))}return this.bitsNeeded=ke,this.codePoint=Me,Re};var b=function(){try{return new m().decode(new v().encode("test"),{stream:!0})==="test"}catch(ue){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+ue)}return!1};(m==null||v==null||!b())&&(m=_);var S=function(){};function O(ue){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=S,this.onload=S,this.onerror=S,this.onreadystatechange=S,this._contentType="",this._xhr=ue,this._sendTimeout=0,this._abort=S}O.prototype.open=function(ue,me){this._abort(!0);var ve=this,Se=this._xhr,Re=1,ke=0;this._abort=function(we){ve._sendTimeout!==0&&(i(ve._sendTimeout),ve._sendTimeout=0),(Re===1||Re===2||Re===3)&&(Re=4,Se.onload=S,Se.onerror=S,Se.onabort=S,Se.onprogress=S,Se.onreadystatechange=S,Se.abort(),ke!==0&&(i(ke),ke=0),we||(ve.readyState=4,ve.onabort(null),ve.onreadystatechange())),Re=0};var Me=function(){if(Re===1){var we=0,Pe="",De=void 0;if("contentType"in Se)we=200,Pe="OK",De=Se.contentType;else try{we=Se.status,Pe=Se.statusText,De=Se.getResponseHeader("Content-Type")}catch{we=0,Pe="",De=void 0}we!==0&&(Re=2,ve.readyState=2,ve.status=we,ve.statusText=Pe,ve._contentType=De,ve.onreadystatechange())}},le=function(){if(Me(),Re===2||Re===3){Re=3;var we="";try{we=Se.responseText}catch{}ve.readyState=3,ve.responseText=we,ve.onprogress()}},fe=function(we,Pe){if((Pe==null||Pe.preventDefault==null)&&(Pe={preventDefault:S}),le(),Re===1||Re===2||Re===3){if(Re=4,ke!==0&&(i(ke),ke=0),ve.readyState=4,we==="load")ve.onload(Pe);else if(we==="error")ve.onerror(Pe);else if(we==="abort")ve.onabort(Pe);else throw new TypeError;ve.onreadystatechange()}},ye=function(we){Se!=null&&(Se.readyState===4?(!("onload"in Se)||!("onerror"in Se)||!("onabort"in Se))&&fe(Se.responseText===""?"error":"load",we):Se.readyState===3?"onprogress"in Se||le():Se.readyState===2&&Me())},ge=function(){ke=r(function(){ge()},500),Se.readyState===3&&le()};"onload"in Se&&(Se.onload=function(we){fe("load",we)}),"onerror"in Se&&(Se.onerror=function(we){fe("error",we)}),"onabort"in Se&&(Se.onabort=function(we){fe("abort",we)}),"onprogress"in Se&&(Se.onprogress=le),"onreadystatechange"in Se&&(Se.onreadystatechange=function(we){ye(we)}),("contentType"in Se||!("ontimeout"in o.prototype))&&(me+=(me.indexOf("?")===-1?"?":"&")+"padding=true"),Se.open(ue,me,!0),"readyState"in Se&&(ke=r(function(){ge()},0))},O.prototype.abort=function(){this._abort(!1)},O.prototype.getResponseHeader=function(ue){return this._contentType},O.prototype.setRequestHeader=function(ue,me){var ve=this._xhr;"setRequestHeader"in ve&&ve.setRequestHeader(ue,me)},O.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},O.prototype.send=function(){if((!("ontimeout"in o.prototype)||!("sendAsBinary"in o.prototype)&&!("mozAnon"in o.prototype))&&c!=null&&c.readyState!=null&&c.readyState!=="complete"){var ue=this;ue._sendTimeout=r(function(){ue._sendTimeout=0,ue.send()},4);return}var me=this._xhr;"withCredentials"in me&&(me.withCredentials=this.withCredentials);try{me.send(void 0)}catch(ve){throw ve}};function M(ue){return ue.replace(/[A-Z]/g,function(me){return String.fromCharCode(me.charCodeAt(0)+32)})}function C(ue){for(var me=Object.create(null),ve=ue.split(`\r `),Se=0;Se"u"?typeof window<"u"?window:typeof self<"u"?self:Ls:globalThis)})(mne,gb);var rv={},gne=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,n=[],r=0;r"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var h=NC[e.format]||NC.default;window.clipboardData.setData(h,t)}else f.clipboardData.clearData(),f.clipboardData.setData(e.format,t);e.onCopy&&(f.preventDefault(),e.onCopy(f.clipboardData))}),document.body.appendChild(s),o.selectNodeContents(s),a.addRange(o);var c=document.execCommand("copy");if(!c)throw new Error("copy command was unsuccessful");l=!0}catch(f){n&&console.error("unable to copy using execCommand: ",f),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),e.onCopy&&e.onCopy(window.clipboardData),l=!0}catch(h){n&&console.error("unable to copy using clipboardData: ",h),n&&console.error("falling back to prompt"),r=_ne("message"in e?e.message:yne),window.prompt(r,t)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(o):a.removeAllRanges()),s&&document.body.removeChild(s),i()}return l}var wne=bne;function vb(t){return vb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vb(t)}Object.defineProperty(rv,"__esModule",{value:!0});rv.CopyToClipboard=void 0;var xd=uD(Q),xne=uD(wne),Sne=["text","onCopy","options","children"];function uD(t){return t&&t.__esModule?t:{default:t}}function IC(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function FC(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function One(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}function Pne(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $C(t,e){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 Im(t){return Im=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Im(t)}function hx(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var fD=function(t){Cne(n,t);var e=kne(n);function n(){var r;Pne(this,n);for(var i=arguments.length,o=new Array(i),a=0;a");return t}function Ine(t){function e(n,r){const{instance:i,context:o}=t(n).current;return Q.useImperativeHandle(r,()=>i),n.children==null?null:j.createElement(pD,{value:o},n.children)}return Q.forwardRef(e)}function Fne(t){function e(n,r){const[i,o]=Q.useState(!1),{instance:a}=t(n,o).current;Q.useImperativeHandle(r,()=>a),Q.useEffect(function(){i&&a.update()},[a,i,n.children]);const s=a._contentNode;return s?Wa.createPortal(n.children,s):null}return Q.forwardRef(e)}function $ne(t){function e(n,r){const{instance:i}=t(n).current;return Q.useImperativeHandle(r,()=>i),null}return Q.forwardRef(e)}function gD(t,e){const n=Q.useRef();Q.useEffect(function(){return e!=null&&t.instance.on(e),n.current=e,function(){n.current!=null&&t.instance.off(n.current),n.current=null}},[t,e])}function px(t,e){const n=t.pane??e.pane;return n?{...t,pane:n}:t}function jne(t,e){return function(r,i){const o=mD(),a=t(px(r,o),o);return dD(o.map,r.attribution),gD(a.current,r.eventHandlers),e(a.current,o,r,i),a}}var Jo={},Bne={get exports(){return Jo},set exports(t){Jo=t}};/* @preserve * Leaflet 1.9.3, a JS library for interactive maps. https://leafletjs.com * (c) 2010-2022 Vladimir Agafonkin, (c) 2010-2011 CloudMade */(function(t,e){(function(n,r){r(e)})(Ls,function(n){var r="1.9.3";function i(u){var d,g,E,T;for(g=1,E=arguments.length;g"u"||!L||!L.Mixin)){u=S(u)?u:[u];for(var d=0;d0?Math.floor(u):Math.ceil(u)};V.prototype={clone:function(){return new V(this.x,this.y)},add:function(u){return this.clone()._add(A(u))},_add:function(u){return this.x+=u.x,this.y+=u.y,this},subtract:function(u){return this.clone()._subtract(A(u))},_subtract:function(u){return this.x-=u.x,this.y-=u.y,this},divideBy:function(u){return this.clone()._divideBy(u)},_divideBy:function(u){return this.x/=u,this.y/=u,this},multiplyBy:function(u){return this.clone()._multiplyBy(u)},_multiplyBy:function(u){return this.x*=u,this.y*=u,this},scaleBy:function(u){return new V(this.x*u.x,this.y*u.y)},unscaleBy:function(u){return new V(this.x/u.x,this.y/u.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=N(this.x),this.y=N(this.y),this},distanceTo:function(u){u=A(u);var d=u.x-this.x,g=u.y-this.y;return Math.sqrt(d*d+g*g)},equals:function(u){return u=A(u),u.x===this.x&&u.y===this.y},contains:function(u){return u=A(u),Math.abs(u.x)<=Math.abs(this.x)&&Math.abs(u.y)<=Math.abs(this.y)},toString:function(){return"Point("+p(this.x)+", "+p(this.y)+")"}};function A(u,d,g){return u instanceof V?u:S(u)?new V(u[0],u[1]):u==null?u:typeof u=="object"&&"x"in u&&"y"in u?new V(u.x,u.y):new V(u,d,g)}function B(u,d){if(u)for(var g=d?[u,d]:u,E=0,T=g.length;E=this.min.x&&g.x<=this.max.x&&d.y>=this.min.y&&g.y<=this.max.y},intersects:function(u){u=ee(u);var d=this.min,g=this.max,E=u.min,T=u.max,F=T.x>=d.x&&E.x<=g.x,K=T.y>=d.y&&E.y<=g.y;return F&&K},overlaps:function(u){u=ee(u);var d=this.min,g=this.max,E=u.min,T=u.max,F=T.x>d.x&&E.xd.y&&E.y=d.lat&&T.lat<=g.lat&&E.lng>=d.lng&&T.lng<=g.lng},intersects:function(u){u=q(u);var d=this._southWest,g=this._northEast,E=u.getSouthWest(),T=u.getNorthEast(),F=T.lat>=d.lat&&E.lat<=g.lat,K=T.lng>=d.lng&&E.lng<=g.lng;return F&&K},overlaps:function(u){u=q(u);var d=this._southWest,g=this._northEast,E=u.getSouthWest(),T=u.getNorthEast(),F=T.lat>d.lat&&E.latd.lng&&E.lng1,Ut=function(){var u=!1;try{var d=Object.defineProperty({},"passive",{get:function(){u=!0}});window.addEventListener("testPassiveEventSupport",h,d),window.removeEventListener("testPassiveEventSupport",h,d)}catch{}return u}(),Hn=function(){return!!document.createElement("canvas").getContext}(),wn=!!(document.createElementNS&&Le("svg").createSVGRect),xn=!!wn&&function(){var u=document.createElement("div");return u.innerHTML="",(u.firstChild&&u.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),rn=!wn&&function(){try{var u=document.createElement("div");u.innerHTML='';var d=u.firstChild;return d.style.behavior="url(#default#VML)",d&&typeof d.adj=="object"}catch{return!1}}(),Dr=navigator.platform.indexOf("Mac")===0,Nr=navigator.platform.indexOf("Linux")===0;function Sn(u){return navigator.userAgent.toLowerCase().indexOf(u)>=0}var ze={ie:ve,ielt9:Se,edge:Re,webkit:ke,android:Me,android23:le,androidStock:ye,opera:ge,chrome:we,gecko:Pe,safari:De,phantom:Ke,opera12:Xe,win:Ve,ie3d:It,webkit3d:Mt,gecko3d:un,any3d:zn,mobile:Jr,mobileWebkit:bn,mobileWebkit3d:Hl,msPointer:ei,pointer:wf,touch:Sf,touchNative:xf,mobileOpera:Ul,mobileGecko:ua,retina:Xt,passiveEvents:Ut,canvas:Hn,svg:wn,vml:rn,inlineSvg:xn,mac:Dr,linux:Nr},Bx=ze.msPointer?"MSPointerDown":"pointerdown",zx=ze.msPointer?"MSPointerMove":"pointermove",Hx=ze.msPointer?"MSPointerUp":"pointerup",Ux=ze.msPointer?"MSPointerCancel":"pointercancel",hv={touchstart:Bx,touchmove:zx,touchend:Hx,touchcancel:Ux},Wx={touchstart:zN,touchmove:Ef,touchend:Ef,touchcancel:Ef},ds={},Vx=!1;function IN(u,d,g){return d==="touchstart"&&BN(),Wx[d]?(g=Wx[d].bind(this,g),u.addEventListener(hv[d],g,!1),g):(console.warn("wrong event specified:",d),h)}function FN(u,d,g){if(!hv[d]){console.warn("wrong event specified:",d);return}u.removeEventListener(hv[d],g,!1)}function $N(u){ds[u.pointerId]=u}function jN(u){ds[u.pointerId]&&(ds[u.pointerId]=u)}function Yx(u){delete ds[u.pointerId]}function BN(){Vx||(document.addEventListener(Bx,$N,!0),document.addEventListener(zx,jN,!0),document.addEventListener(Hx,Yx,!0),document.addEventListener(Ux,Yx,!0),Vx=!0)}function Ef(u,d){if(d.pointerType!==(d.MSPOINTER_TYPE_MOUSE||"mouse")){d.touches=[];for(var g in ds)d.touches.push(ds[g]);d.changedTouches=[d],u(d)}}function zN(u,d){d.MSPOINTER_TYPE_TOUCH&&d.pointerType===d.MSPOINTER_TYPE_TOUCH&&En(d),Ef(u,d)}function HN(u){var d={},g,E;for(E in u)g=u[E],d[E]=g&&g.bind?g.bind(u):g;return u=d,d.type="dblclick",d.detail=2,d.isTrusted=!1,d._simulated=!0,d}var UN=200;function WN(u,d){u.addEventListener("dblclick",d);var g=0,E;function T(F){if(F.detail!==1){E=F.detail;return}if(!(F.pointerType==="mouse"||F.sourceCapabilities&&!F.sourceCapabilities.firesTouchEvents)){var K=Xx(F);if(!(K.some(function(de){return de instanceof HTMLLabelElement&&de.attributes.for})&&!K.some(function(de){return de instanceof HTMLInputElement||de instanceof HTMLSelectElement}))){var ce=Date.now();ce-g<=UN?(E++,E===2&&d(HN(F))):E=1,g=ce}}}return u.addEventListener("click",T),{dblclick:d,simDblclick:T}}function VN(u,d){u.removeEventListener("dblclick",d.dblclick),u.removeEventListener("click",d.simDblclick)}var pv=Tf(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Wl=Tf(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),qx=Wl==="webkitTransition"||Wl==="OTransition"?Wl+"End":"transitionend";function Zx(u){return typeof u=="string"?document.getElementById(u):u}function Vl(u,d){var g=u.style[d]||u.currentStyle&&u.currentStyle[d];if((!g||g==="auto")&&document.defaultView){var E=document.defaultView.getComputedStyle(u,null);g=E?E[d]:null}return g==="auto"?null:g}function st(u,d,g){var E=document.createElement(u);return E.className=d||"",g&&g.appendChild(E),E}function Lt(u){var d=u.parentNode;d&&d.removeChild(u)}function Of(u){for(;u.firstChild;)u.removeChild(u.firstChild)}function hs(u){var d=u.parentNode;d&&d.lastChild!==u&&d.appendChild(u)}function ps(u){var d=u.parentNode;d&&d.firstChild!==u&&d.insertBefore(u,d.firstChild)}function mv(u,d){if(u.classList!==void 0)return u.classList.contains(d);var g=Pf(u);return g.length>0&&new RegExp("(^|\\s)"+d+"(\\s|$)").test(g)}function Ze(u,d){if(u.classList!==void 0)for(var g=v(d),E=0,T=g.length;E0?2*window.devicePixelRatio:1;function Jx(u){return ze.edge?u.wheelDeltaY/2:u.deltaY&&u.deltaMode===0?-u.deltaY/ZN:u.deltaY&&u.deltaMode===1?-u.deltaY*20:u.deltaY&&u.deltaMode===2?-u.deltaY*60:u.deltaX||u.deltaZ?0:u.wheelDelta?(u.wheelDeltaY||u.wheelDelta)/2:u.detail&&Math.abs(u.detail)<32765?-u.detail*20:u.detail?u.detail/-32765*60:0}function Tv(u,d){var g=d.relatedTarget;if(!g)return!0;try{for(;g&&g!==u;)g=g.parentNode}catch{return!1}return g!==u}var GN={__proto__:null,on:Ye,off:vt,stopPropagation:da,disableScrollPropagation:Pv,disableClickPropagation:Gl,preventDefault:En,stop:ha,getPropagationPath:Xx,getMousePosition:Qx,getWheelDelta:Jx,isExternalTarget:Tv,addListener:Ye,removeListener:vt},eS=se.extend({run:function(u,d,g,E){this.stop(),this._el=u,this._inProgress=!0,this._duration=g||.25,this._easeOutPower=1/Math.max(E||.5,.2),this._startPos=fa(u),this._offset=d.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=H(this._animate,this),this._step()},_step:function(u){var d=+new Date-this._startTime,g=this._duration*1e3;dthis.options.maxZoom)?this.setZoom(u):this},panInsideBounds:function(u,d){this._enforcingBounds=!0;var g=this.getCenter(),E=this._limitCenter(g,this._zoom,q(u));return g.equals(E)||this.panTo(E,d),this._enforcingBounds=!1,this},panInside:function(u,d){d=d||{};var g=A(d.paddingTopLeft||d.padding||[0,0]),E=A(d.paddingBottomRight||d.padding||[0,0]),T=this.project(this.getCenter()),F=this.project(u),K=this.getPixelBounds(),ce=ee([K.min.add(g),K.max.subtract(E)]),de=ce.getSize();if(!ce.contains(F)){this._enforcingBounds=!0;var be=F.subtract(ce.getCenter()),Ae=ce.extend(F).getSize().subtract(de);T.x+=be.x<0?-Ae.x:Ae.x,T.y+=be.y<0?-Ae.y:Ae.y,this.panTo(this.unproject(T),d),this._enforcingBounds=!1}return this},invalidateSize:function(u){if(!this._loaded)return this;u=i({animate:!1,pan:!0},u===!0?{animate:!0}:u);var d=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var g=this.getSize(),E=d.divideBy(2).round(),T=g.divideBy(2).round(),F=E.subtract(T);return!F.x&&!F.y?this:(u.animate&&u.pan?this.panBy(F):(u.pan&&this._rawPanBy(F),this.fire("move"),u.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(a(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:d,newSize:g}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(u){if(u=this._locateOptions=i({timeout:1e4,watch:!1},u),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var d=a(this._handleGeolocationResponse,this),g=a(this._handleGeolocationError,this);return u.watch?this._locationWatchId=navigator.geolocation.watchPosition(d,g,u):navigator.geolocation.getCurrentPosition(d,g,u),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(u){if(this._container._leaflet_id){var d=u.code,g=u.message||(d===1?"permission denied":d===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:d,message:"Geolocation error: "+g+"."})}},_handleGeolocationResponse:function(u){if(this._container._leaflet_id){var d=u.coords.latitude,g=u.coords.longitude,E=new ne(d,g),T=E.toBounds(u.coords.accuracy*2),F=this._locateOptions;if(F.setView){var K=this.getBoundsZoom(T);this.setView(E,F.maxZoom?Math.min(K,F.maxZoom):K)}var ce={latlng:E,bounds:T,timestamp:u.timestamp};for(var de in u.coords)typeof u.coords[de]=="number"&&(ce[de]=u.coords[de]);this.fire("locationfound",ce)}},addHandler:function(u,d){if(!d)return this;var g=this[u]=new d(this);return this._handlers.push(g),this.options[u]&&g.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(),Lt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(W(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var u;for(u in this._layers)this._layers[u].remove();for(u in this._panes)Lt(this._panes[u]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(u,d){var g="leaflet-pane"+(u?" leaflet-"+u.replace("Pane","")+"-pane":""),E=st("div",g,d||this._mapPane);return u&&(this._panes[u]=E),E},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var u=this.getPixelBounds(),d=this.unproject(u.getBottomLeft()),g=this.unproject(u.getTopRight());return new z(d,g)},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(u,d,g){u=q(u),g=A(g||[0,0]);var E=this.getZoom()||0,T=this.getMinZoom(),F=this.getMaxZoom(),K=u.getNorthWest(),ce=u.getSouthEast(),de=this.getSize().subtract(g),be=ee(this.project(ce,E),this.project(K,E)).getSize(),Ae=ze.any3d?this.options.zoomSnap:1,Ue=de.x/be.x,Je=de.y/be.y,br=d?Math.max(Ue,Je):Math.min(Ue,Je);return E=this.getScaleZoom(br,E),Ae&&(E=Math.round(E/(Ae/100))*(Ae/100),E=d?Math.ceil(E/Ae)*Ae:Math.floor(E/Ae)*Ae),Math.max(T,Math.min(F,E))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new V(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(u,d){var g=this._getTopLeftPoint(u,d);return new B(g,g.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(u){return this.options.crs.getProjectedBounds(u===void 0?this.getZoom():u)},getPane:function(u){return typeof u=="string"?this._panes[u]:u},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(u,d){var g=this.options.crs;return d=d===void 0?this._zoom:d,g.scale(u)/g.scale(d)},getScaleZoom:function(u,d){var g=this.options.crs;d=d===void 0?this._zoom:d;var E=g.zoom(u*g.scale(d));return isNaN(E)?1/0:E},project:function(u,d){return d=d===void 0?this._zoom:d,this.options.crs.latLngToPoint(ae(u),d)},unproject:function(u,d){return d=d===void 0?this._zoom:d,this.options.crs.pointToLatLng(A(u),d)},layerPointToLatLng:function(u){var d=A(u).add(this.getPixelOrigin());return this.unproject(d)},latLngToLayerPoint:function(u){var d=this.project(ae(u))._round();return d._subtract(this.getPixelOrigin())},wrapLatLng:function(u){return this.options.crs.wrapLatLng(ae(u))},wrapLatLngBounds:function(u){return this.options.crs.wrapLatLngBounds(q(u))},distance:function(u,d){return this.options.crs.distance(ae(u),ae(d))},containerPointToLayerPoint:function(u){return A(u).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(u){return A(u).add(this._getMapPanePos())},containerPointToLatLng:function(u){var d=this.containerPointToLayerPoint(A(u));return this.layerPointToLatLng(d)},latLngToContainerPoint:function(u){return this.layerPointToContainerPoint(this.latLngToLayerPoint(ae(u)))},mouseEventToContainerPoint:function(u){return Qx(u,this._container)},mouseEventToLayerPoint:function(u){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(u))},mouseEventToLatLng:function(u){return this.layerPointToLatLng(this.mouseEventToLayerPoint(u))},_initContainer:function(u){var d=this._container=Zx(u);if(d){if(d._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");Ye(d,"scroll",this._onScroll,this),this._containerId=l(d)},_initLayout:function(){var u=this._container;this._fadeAnimated=this.options.fadeAnimation&&ze.any3d,Ze(u,"leaflet-container"+(ze.touch?" leaflet-touch":"")+(ze.retina?" leaflet-retina":"")+(ze.ielt9?" leaflet-oldie":"")+(ze.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var d=Vl(u,"position");d!=="absolute"&&d!=="relative"&&d!=="fixed"&&d!=="sticky"&&(u.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var u=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Qt(this._mapPane,new V(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Ze(u.markerPane,"leaflet-zoom-hide"),Ze(u.shadowPane,"leaflet-zoom-hide"))},_resetView:function(u,d,g){Qt(this._mapPane,new V(0,0));var E=!this._loaded;this._loaded=!0,d=this._limitZoom(d),this.fire("viewprereset");var T=this._zoom!==d;this._moveStart(T,g)._move(u,d)._moveEnd(T),this.fire("viewreset"),E&&this.fire("load")},_moveStart:function(u,d){return u&&this.fire("zoomstart"),d||this.fire("movestart"),this},_move:function(u,d,g,E){d===void 0&&(d=this._zoom);var T=this._zoom!==d;return this._zoom=d,this._lastCenter=u,this._pixelOrigin=this._getNewPixelOrigin(u),E?g&&g.pinch&&this.fire("zoom",g):((T||g&&g.pinch)&&this.fire("zoom",g),this.fire("move",g)),this},_moveEnd:function(u){return u&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return W(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(u){Qt(this._mapPane,this._getMapPanePos().subtract(u))},_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(u){this._targets={},this._targets[l(this._container)]=this;var d=u?vt:Ye;d(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&d(window,"resize",this._onResize,this),ze.any3d&&this.options.transform3DLimit&&(u?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){W(this._resizeRequest),this._resizeRequest=H(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var u=this._getMapPanePos();Math.max(Math.abs(u.x),Math.abs(u.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(u,d){for(var g=[],E,T=d==="mouseout"||d==="mouseover",F=u.target||u.srcElement,K=!1;F;){if(E=this._targets[l(F)],E&&(d==="click"||d==="preclick")&&this._draggableMoved(E)){K=!0;break}if(E&&E.listens(d,!0)&&(T&&!Tv(F,u)||(g.push(E),T))||F===this._container)break;F=F.parentNode}return!g.length&&!K&&!T&&this.listens(d,!0)&&(g=[this]),g},_isClickDisabled:function(u){for(;u&&u!==this._container;){if(u._leaflet_disable_click)return!0;u=u.parentNode}},_handleDOMEvent:function(u){var d=u.target||u.srcElement;if(!(!this._loaded||d._leaflet_disable_events||u.type==="click"&&this._isClickDisabled(d))){var g=u.type;g==="mousedown"&&wv(d),this._fireDOMEvent(u,g)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(u,d,g){if(u.type==="click"){var E=i({},u);E.type="preclick",this._fireDOMEvent(E,E.type,g)}var T=this._findEventTargets(u,d);if(g){for(var F=[],K=0;K0?Math.round(u-d)/2:Math.max(0,Math.ceil(u))-Math.max(0,Math.floor(d))},_limitZoom:function(u){var d=this.getMinZoom(),g=this.getMaxZoom(),E=ze.any3d?this.options.zoomSnap:1;return E&&(u=Math.round(u/E)*E),Math.max(d,Math.min(g,u))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Wt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(u,d){var g=this._getCenterOffset(u)._trunc();return(d&&d.animate)!==!0&&!this.getSize().contains(g)?!1:(this.panBy(g,d),!0)},_createAnimProxy:function(){var u=this._proxy=st("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(u),this.on("zoomanim",function(d){var g=pv,E=this._proxy.style[g];ca(this._proxy,this.project(d.center,d.zoom),this.getZoomScale(d.zoom,1)),E===this._proxy.style[g]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Lt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var u=this.getCenter(),d=this.getZoom();ca(this._proxy,this.project(u,d),this.getZoomScale(d,1))},_catchTransitionEnd:function(u){this._animatingZoom&&u.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(u,d,g){if(this._animatingZoom)return!0;if(g=g||{},!this._zoomAnimated||g.animate===!1||this._nothingToAnimate()||Math.abs(d-this._zoom)>this.options.zoomAnimationThreshold)return!1;var E=this.getZoomScale(d),T=this._getCenterOffset(u)._divideBy(1-1/E);return g.animate!==!0&&!this.getSize().contains(T)?!1:(H(function(){this._moveStart(!0,!1)._animateZoom(u,d,!0)},this),!0)},_animateZoom:function(u,d,g,E){this._mapPane&&(g&&(this._animatingZoom=!0,this._animateToCenter=u,this._animateToZoom=d,Ze(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:u,zoom:d,noUpdate:E}),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&&Wt(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 KN(u,d){return new nt(u,d)}var Ir=Y.extend({options:{position:"topright"},initialize:function(u){y(this,u)},getPosition:function(){return this.options.position},setPosition:function(u){var d=this._map;return d&&d.removeControl(this),this.options.position=u,d&&d.addControl(this),this},getContainer:function(){return this._container},addTo:function(u){this.remove(),this._map=u;var d=this._container=this.onAdd(u),g=this.getPosition(),E=u._controlCorners[g];return Ze(d,"leaflet-control"),g.indexOf("bottom")!==-1?E.insertBefore(d,E.firstChild):E.appendChild(d),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Lt(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(u){this._map&&u&&u.screenX>0&&u.screenY>0&&this._map.getContainer().focus()}}),Kl=function(u){return new Ir(u)};nt.include({addControl:function(u){return u.addTo(this),this},removeControl:function(u){return u.remove(),this},_initControlPos:function(){var u=this._controlCorners={},d="leaflet-",g=this._controlContainer=st("div",d+"control-container",this._container);function E(T,F){var K=d+T+" "+d+F;u[T+F]=st("div",K,g)}E("top","left"),E("top","right"),E("bottom","left"),E("bottom","right")},_clearControlPos:function(){for(var u in this._controlCorners)Lt(this._controlCorners[u]);Lt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var tS=Ir.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(u,d,g,E){return g1,this._baseLayersList.style.display=u?"":"none"),this._separator.style.display=d&&u?"":"none",this},_onLayerChange:function(u){this._handlingClick||this._update();var d=this._getLayer(l(u.target)),g=d.overlay?u.type==="add"?"overlayadd":"overlayremove":u.type==="add"?"baselayerchange":null;g&&this._map.fire(g,d)},_createRadioElement:function(u,d){var g='",E=document.createElement("div");return E.innerHTML=g,E.firstChild},_addItem:function(u){var d=document.createElement("label"),g=this._map.hasLayer(u.layer),E;u.overlay?(E=document.createElement("input"),E.type="checkbox",E.className="leaflet-control-layers-selector",E.defaultChecked=g):E=this._createRadioElement("leaflet-base-layers_"+l(this),g),this._layerControlInputs.push(E),E.layerId=l(u.layer),Ye(E,"click",this._onInputClick,this);var T=document.createElement("span");T.innerHTML=" "+u.name;var F=document.createElement("span");d.appendChild(F),F.appendChild(E),F.appendChild(T);var K=u.overlay?this._overlaysList:this._baseLayersList;return K.appendChild(d),this._checkDisabledLayers(),d},_onInputClick:function(){var u=this._layerControlInputs,d,g,E=[],T=[];this._handlingClick=!0;for(var F=u.length-1;F>=0;F--)d=u[F],g=this._getLayer(d.layerId).layer,d.checked?E.push(g):d.checked||T.push(g);for(F=0;F=0;T--)d=u[T],g=this._getLayer(d.layerId).layer,d.disabled=g.options.minZoom!==void 0&&Eg.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var u=this._section;Ye(u,"click",En),this.expand(),setTimeout(function(){vt(u,"click",En)})}}),XN=function(u,d,g){return new tS(u,d,g)},Cv=Ir.extend({options:{position:"topleft",zoomInText:'',zoomInTitle:"Zoom in",zoomOutText:'',zoomOutTitle:"Zoom out"},onAdd:function(u){var d="leaflet-control-zoom",g=st("div",d+" leaflet-bar"),E=this.options;return this._zoomInButton=this._createButton(E.zoomInText,E.zoomInTitle,d+"-in",g,this._zoomIn),this._zoomOutButton=this._createButton(E.zoomOutText,E.zoomOutTitle,d+"-out",g,this._zoomOut),this._updateDisabled(),u.on("zoomend zoomlevelschange",this._updateDisabled,this),g},onRemove:function(u){u.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(u){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(u.shiftKey?3:1))},_createButton:function(u,d,g,E,T){var F=st("a",g,E);return F.innerHTML=u,F.href="#",F.title=d,F.setAttribute("role","button"),F.setAttribute("aria-label",d),Gl(F),Ye(F,"click",ha),Ye(F,"click",T,this),Ye(F,"click",this._refocusOnMap,this),F},_updateDisabled:function(){var u=this._map,d="leaflet-disabled";Wt(this._zoomInButton,d),Wt(this._zoomOutButton,d),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||u._zoom===u.getMinZoom())&&(Ze(this._zoomOutButton,d),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||u._zoom===u.getMaxZoom())&&(Ze(this._zoomInButton,d),this._zoomInButton.setAttribute("aria-disabled","true"))}});nt.mergeOptions({zoomControl:!0}),nt.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Cv,this.addControl(this.zoomControl))});var QN=function(u){return new Cv(u)},nS=Ir.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(u){var d="leaflet-control-scale",g=st("div",d),E=this.options;return this._addScales(E,d+"-line",g),u.on(E.updateWhenIdle?"moveend":"move",this._update,this),u.whenReady(this._update,this),g},onRemove:function(u){u.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(u,d,g){u.metric&&(this._mScale=st("div",d,g)),u.imperial&&(this._iScale=st("div",d,g))},_update:function(){var u=this._map,d=u.getSize().y/2,g=u.distance(u.containerPointToLatLng([0,d]),u.containerPointToLatLng([this.options.maxWidth,d]));this._updateScales(g)},_updateScales:function(u){this.options.metric&&u&&this._updateMetric(u),this.options.imperial&&u&&this._updateImperial(u)},_updateMetric:function(u){var d=this._getRoundNum(u),g=d<1e3?d+" m":d/1e3+" km";this._updateScale(this._mScale,g,d/u)},_updateImperial:function(u){var d=u*3.2808399,g,E,T;d>5280?(g=d/5280,E=this._getRoundNum(g),this._updateScale(this._iScale,E+" mi",E/g)):(T=this._getRoundNum(d),this._updateScale(this._iScale,T+" ft",T/d))},_updateScale:function(u,d,g){u.style.width=Math.round(this.options.maxWidth*g)+"px",u.innerHTML=d},_getRoundNum:function(u){var d=Math.pow(10,(Math.floor(u)+"").length-1),g=u/d;return g=g>=10?10:g>=5?5:g>=3?3:g>=2?2:1,d*g}}),JN=function(u){return new nS(u)},e6='',kv=Ir.extend({options:{position:"bottomright",prefix:''+(ze.inlineSvg?e6+" ":"")+"Leaflet"},initialize:function(u){y(this,u),this._attributions={}},onAdd:function(u){u.attributionControl=this,this._container=st("div","leaflet-control-attribution"),Gl(this._container);for(var d in u._layers)u._layers[d].getAttribution&&this.addAttribution(u._layers[d].getAttribution());return this._update(),u.on("layeradd",this._addAttribution,this),this._container},onRemove:function(u){u.off("layeradd",this._addAttribution,this)},_addAttribution:function(u){u.layer.getAttribution&&(this.addAttribution(u.layer.getAttribution()),u.layer.once("remove",function(){this.removeAttribution(u.layer.getAttribution())},this))},setPrefix:function(u){return this.options.prefix=u,this._update(),this},addAttribution:function(u){return u?(this._attributions[u]||(this._attributions[u]=0),this._attributions[u]++,this._update(),this):this},removeAttribution:function(u){return u?(this._attributions[u]&&(this._attributions[u]--,this._update()),this):this},_update:function(){if(this._map){var u=[];for(var d in this._attributions)this._attributions[d]&&u.push(d);var g=[];this.options.prefix&&g.push(this.options.prefix),u.length&&g.push(u.join(", ")),this._container.innerHTML=g.join(' ')}}});nt.mergeOptions({attributionControl:!0}),nt.addInitHook(function(){this.options.attributionControl&&new kv().addTo(this)});var t6=function(u){return new kv(u)};Ir.Layers=tS,Ir.Zoom=Cv,Ir.Scale=nS,Ir.Attribution=kv,Kl.layers=XN,Kl.zoom=QN,Kl.scale=JN,Kl.attribution=t6;var ni=Y.extend({initialize:function(u){this._map=u},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}});ni.addTo=function(u,d){return u.addHandler(d,this),this};var n6={Events:re},rS=ze.touch?"touchstart mousedown":"mousedown",io=se.extend({options:{clickTolerance:3},initialize:function(u,d,g,E){y(this,E),this._element=u,this._dragStartTarget=d||u,this._preventOutline=g},enable:function(){this._enabled||(Ye(this._dragStartTarget,rS,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(io._dragging===this&&this.finishDrag(!0),vt(this._dragStartTarget,rS,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(u){if(this._enabled&&(this._moved=!1,!mv(this._element,"leaflet-zoom-anim"))){if(u.touches&&u.touches.length!==1){io._dragging===this&&this.finishDrag();return}if(!(io._dragging||u.shiftKey||u.which!==1&&u.button!==1&&!u.touches)&&(io._dragging=this,this._preventOutline&&wv(this._element),yv(),Yl(),!this._moving)){this.fire("down");var d=u.touches?u.touches[0]:u,g=Gx(this._element);this._startPoint=new V(d.clientX,d.clientY),this._startPos=fa(this._element),this._parentScale=xv(g);var E=u.type==="mousedown";Ye(document,E?"mousemove":"touchmove",this._onMove,this),Ye(document,E?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(u){if(this._enabled){if(u.touches&&u.touches.length>1){this._moved=!0;return}var d=u.touches&&u.touches.length===1?u.touches[0]:u,g=new V(d.clientX,d.clientY)._subtract(this._startPoint);!g.x&&!g.y||Math.abs(g.x)+Math.abs(g.y)F&&(K=ce,F=de);F>g&&(d[K]=1,Mv(u,d,g,E,K),Mv(u,d,g,K,T))}function o6(u,d){for(var g=[u[0]],E=1,T=0,F=u.length;Ed&&(g.push(u[E]),T=E);return Td.max.x&&(g|=2),u.yd.max.y&&(g|=8),g}function a6(u,d){var g=d.x-u.x,E=d.y-u.y;return g*g+E*E}function Xl(u,d,g,E){var T=d.x,F=d.y,K=g.x-T,ce=g.y-F,de=K*K+ce*ce,be;return de>0&&(be=((u.x-T)*K+(u.y-F)*ce)/de,be>1?(T=g.x,F=g.y):be>0&&(T+=K*be,F+=ce*be)),K=u.x-T,ce=u.y-F,E?K*K+ce*ce:new V(T,F)}function _r(u){return!S(u[0])||typeof u[0][0]!="object"&&typeof u[0][0]<"u"}function lS(u){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),_r(u)}function uS(u,d){var g,E,T,F,K,ce,de,be;if(!u||u.length===0)throw new Error("latlngs not passed");_r(u)||(console.warn("latlngs are not flat! Only the first ring will be used"),u=u[0]);var Ae=[];for(var Ue in u)Ae.push(d.project(ae(u[Ue])));var Je=Ae.length;for(g=0,E=0;gE){de=(F-E)/T,be=[ce.x-de*(ce.x-K.x),ce.y-de*(ce.y-K.y)];break}return d.unproject(A(be))}var s6={__proto__:null,simplify:iS,pointToSegmentDistance:oS,closestPointOnSegment:r6,clipSegment:sS,_getEdgeIntersection:Mf,_getBitCode:pa,_sqClosestPointOnSegment:Xl,isFlat:_r,_flat:lS,polylineCenter:uS};function cS(u,d,g){var E,T=[1,4,2,8],F,K,ce,de,be,Ae,Ue,Je;for(F=0,Ae=u.length;F1e-7;ce++)be=T*Math.sin(K),be=Math.pow((1-be)/(1+be),T/2),de=Math.PI/2-2*Math.atan(F*be)-K,K+=de;return new ne(K*d,u.x*d/g)}},u6={__proto__:null,LonLat:Lv,Mercator:Rv,SphericalMercator:D},c6=i({},P,{code:"EPSG:3395",projection:Rv,transformation:function(){var u=.5/(Math.PI*Rv.R);return Z(u,.5,-u,.5)}()}),dS=i({},P,{code:"EPSG:4326",projection:Lv,transformation:Z(1/180,1,-1/180,.5)}),f6=i({},he,{projection:Lv,transformation:Z(1,0,-1,0),scale:function(u){return Math.pow(2,u)},zoom:function(u){return Math.log(u)/Math.LN2},distance:function(u,d){var g=d.lng-u.lng,E=d.lat-u.lat;return Math.sqrt(g*g+E*E)},infinite:!0});he.Earth=P,he.EPSG3395=c6,he.EPSG3857=ie,he.EPSG900913=pe,he.EPSG4326=dS,he.Simple=f6;var Fr=se.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(u){return u.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(u){return u&&u.removeLayer(this),this},getPane:function(u){return this._map.getPane(u?this.options[u]||u:this.options.pane)},addInteractiveTarget:function(u){return this._map._targets[l(u)]=this,this},removeInteractiveTarget:function(u){return delete this._map._targets[l(u)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(u){var d=u.target;if(d.hasLayer(this)){if(this._map=d,this._zoomAnimated=d._zoomAnimated,this.getEvents){var g=this.getEvents();d.on(g,this),this.once("remove",function(){d.off(g,this)},this)}this.onAdd(d),this.fire("add"),d.fire("layeradd",{layer:this})}}});nt.include({addLayer:function(u){if(!u._layerAdd)throw new Error("The provided object is not a Layer.");var d=l(u);return this._layers[d]?this:(this._layers[d]=u,u._mapToAdd=this,u.beforeAdd&&u.beforeAdd(this),this.whenReady(u._layerAdd,u),this)},removeLayer:function(u){var d=l(u);return this._layers[d]?(this._loaded&&u.onRemove(this),delete this._layers[d],this._loaded&&(this.fire("layerremove",{layer:u}),u.fire("remove")),u._map=u._mapToAdd=null,this):this},hasLayer:function(u){return l(u)in this._layers},eachLayer:function(u,d){for(var g in this._layers)u.call(d,this._layers[g]);return this},_addLayers:function(u){u=u?S(u)?u:[u]:[];for(var d=0,g=u.length;dthis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()=2&&d[0]instanceof ne&&d[0].equals(d[g-1])&&d.pop(),d},_setLatLngs:function(u){Oi.prototype._setLatLngs.call(this,u),_r(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return _r(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var u=this._renderer._bounds,d=this.options.weight,g=new V(d,d);if(u=new B(u.min.subtract(g),u.max.add(g)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(u))){if(this.options.noClip){this._parts=this._rings;return}for(var E=0,T=this._rings.length,F;Eu.y!=T.y>u.y&&u.x<(T.x-E.x)*(u.y-E.y)/(T.y-E.y)+E.x&&(d=!d);return d||Oi.prototype._containsPoint.call(this,u,!0)}});function _6(u,d){return new vs(u,d)}var Pi=Ei.extend({initialize:function(u,d){y(this,d),this._layers={},u&&this.addData(u)},addData:function(u){var d=S(u)?u:u.features,g,E,T;if(d){for(g=0,E=d.length;g0?E:[d.src];return}S(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(d.style,"objectFit")&&(d.style.objectFit="fill"),d.autoplay=!!this.options.autoplay,d.loop=!!this.options.loop,d.muted=!!this.options.muted,d.playsInline=!!this.options.playsInline;for(var F=0;FT?(d.height=T+"px",Ze(u,F)):Wt(u,F),this._containerWidth=this._container.offsetWidth},_animateZoom:function(u){var d=this._map._latLngToNewLayerPoint(this._latlng,u.zoom,u.center),g=this._getAnchor();Qt(this._container,d.add(g))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var u=this._map,d=parseInt(Vl(this._container,"marginBottom"),10)||0,g=this._container.offsetHeight+d,E=this._containerWidth,T=new V(this._containerLeft,-g-this._containerBottom);T._add(fa(this._container));var F=u.layerPointToContainerPoint(T),K=A(this.options.autoPanPadding),ce=A(this.options.autoPanPaddingTopLeft||K),de=A(this.options.autoPanPaddingBottomRight||K),be=u.getSize(),Ae=0,Ue=0;F.x+E+de.x>be.x&&(Ae=F.x+E-be.x+de.x),F.x-Ae-ce.x<0&&(Ae=F.x-ce.x),F.y+g+de.y>be.y&&(Ue=F.y+g-be.y+de.y),F.y-Ue-ce.y<0&&(Ue=F.y-ce.y),(Ae||Ue)&&(this.options.keepInView&&(this._autopanning=!0),u.fire("autopanstart").panBy([Ae,Ue]))}},_getAnchor:function(){return A(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),E6=function(u,d){return new $f(u,d)};nt.mergeOptions({closePopupOnClick:!0}),nt.include({openPopup:function(u,d,g){return this._initOverlay($f,u,d,g).openOn(this),this},closePopup:function(u){return u=arguments.length?u:this._popup,u&&u.close(),this}}),Fr.include({bindPopup:function(u,d){return this._popup=this._initOverlay($f,this._popup,u,d),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(u){return this._popup&&(this instanceof Ei||(this._popup._source=this),this._popup._prepareOpen(u||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(u){return this._popup&&this._popup.setContent(u),this},getPopup:function(){return this._popup},_openPopup:function(u){if(!(!this._popup||!this._map)){ha(u);var d=u.layer||u.target;if(this._popup._source===d&&!(d instanceof oo)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(u.latlng);return}this._popup._source=d,this.openPopup(u.latlng)}},_movePopup:function(u){this._popup.setLatLng(u.latlng)},_onKeyPress:function(u){u.originalEvent.keyCode===13&&this._openPopup(u)}});var jf=ri.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(u){ri.prototype.onAdd.call(this,u),this.setOpacity(this.options.opacity),u.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(u){ri.prototype.onRemove.call(this,u),u.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var u=ri.prototype.getEvents.call(this);return this.options.permanent||(u.preclick=this.close),u},_initLayout:function(){var u="leaflet-tooltip",d=u+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=st("div",d),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+l(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(u){var d,g,E=this._map,T=this._container,F=E.latLngToContainerPoint(E.getCenter()),K=E.layerPointToContainerPoint(u),ce=this.options.direction,de=T.offsetWidth,be=T.offsetHeight,Ae=A(this.options.offset),Ue=this._getAnchor();ce==="top"?(d=de/2,g=be):ce==="bottom"?(d=de/2,g=0):ce==="center"?(d=de/2,g=be/2):ce==="right"?(d=0,g=be/2):ce==="left"?(d=de,g=be/2):K.xthis.options.maxZoom||gE?this._retainParent(T,F,K,E):!1)},_retainChildren:function(u,d,g,E){for(var T=2*u;T<2*u+2;T++)for(var F=2*d;F<2*d+2;F++){var K=new V(T,F);K.z=g+1;var ce=this._tileCoordsToKey(K),de=this._tiles[ce];if(de&&de.active){de.retain=!0;continue}else de&&de.loaded&&(de.retain=!0);g+1this.options.maxZoom||this.options.minZoom!==void 0&&T1){this._setView(u,g);return}for(var Ue=T.min.y;Ue<=T.max.y;Ue++)for(var Je=T.min.x;Je<=T.max.x;Je++){var br=new V(Je,Ue);if(br.z=this._tileZoom,!!this._isValidTile(br)){var ma=this._tiles[this._tileCoordsToKey(br)];ma?ma.current=!0:K.push(br)}}if(K.sort(function(ao,Fv){return ao.distanceTo(F)-Fv.distanceTo(F)}),K.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var zf=document.createDocumentFragment();for(Je=0;Jeg.max.x)||!d.wrapLat&&(u.yg.max.y))return!1}if(!this.options.bounds)return!0;var E=this._tileCoordsToBounds(u);return q(this.options.bounds).overlaps(E)},_keyToBounds:function(u){return this._tileCoordsToBounds(this._keyToTileCoords(u))},_tileCoordsToNwSe:function(u){var d=this._map,g=this.getTileSize(),E=u.scaleBy(g),T=E.add(g),F=d.unproject(E,u.z),K=d.unproject(T,u.z);return[F,K]},_tileCoordsToBounds:function(u){var d=this._tileCoordsToNwSe(u),g=new z(d[0],d[1]);return this.options.noWrap||(g=this._map.wrapLatLngBounds(g)),g},_tileCoordsToKey:function(u){return u.x+":"+u.y+":"+u.z},_keyToTileCoords:function(u){var d=u.split(":"),g=new V(+d[0],+d[1]);return g.z=+d[2],g},_removeTile:function(u){var d=this._tiles[u];d&&(Lt(d.el),delete this._tiles[u],this.fire("tileunload",{tile:d.el,coords:this._keyToTileCoords(u)}))},_initTile:function(u){Ze(u,"leaflet-tile");var d=this.getTileSize();u.style.width=d.x+"px",u.style.height=d.y+"px",u.onselectstart=h,u.onmousemove=h,ze.ielt9&&this.options.opacity<1&&yr(u,this.options.opacity)},_addTile:function(u,d){var g=this._getTilePos(u),E=this._tileCoordsToKey(u),T=this.createTile(this._wrapCoords(u),a(this._tileReady,this,u));this._initTile(T),this.createTile.length<2&&H(a(this._tileReady,this,u,null,T)),Qt(T,g),this._tiles[E]={el:T,coords:u,current:!0},d.appendChild(T),this.fire("tileloadstart",{tile:T,coords:u})},_tileReady:function(u,d,g){d&&this.fire("tileerror",{error:d,tile:g,coords:u});var E=this._tileCoordsToKey(u);g=this._tiles[E],g&&(g.loaded=+new Date,this._map._fadeAnimated?(yr(g.el,0),W(this._fadeFrame),this._fadeFrame=H(this._updateOpacity,this)):(g.active=!0,this._pruneTiles()),d||(Ze(g.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:g.el,coords:u})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),ze.ielt9||!this._map._fadeAnimated?H(this._pruneTiles,this):setTimeout(a(this._pruneTiles,this),250)))},_getTilePos:function(u){return u.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(u){var d=new V(this._wrapX?f(u.x,this._wrapX):u.x,this._wrapY?f(u.y,this._wrapY):u.y);return d.z=u.z,d},_pxBoundsToTileRange:function(u){var d=this.getTileSize();return new B(u.min.unscaleBy(d).floor(),u.max.unscaleBy(d).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var u in this._tiles)if(!this._tiles[u].loaded)return!1;return!0}});function T6(u){return new Jl(u)}var _s=Jl.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(u,d){this._url=u,d=y(this,d),d.detectRetina&&ze.retina&&d.maxZoom>0?(d.tileSize=Math.floor(d.tileSize/2),d.zoomReverse?(d.zoomOffset--,d.minZoom=Math.min(d.maxZoom,d.minZoom+1)):(d.zoomOffset++,d.maxZoom=Math.max(d.minZoom,d.maxZoom-1)),d.minZoom=Math.max(0,d.minZoom)):d.zoomReverse?d.minZoom=Math.min(d.maxZoom,d.minZoom):d.maxZoom=Math.max(d.minZoom,d.maxZoom),typeof d.subdomains=="string"&&(d.subdomains=d.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(u,d){return this._url===u&&d===void 0&&(d=!0),this._url=u,d||this.redraw(),this},createTile:function(u,d){var g=document.createElement("img");return Ye(g,"load",a(this._tileOnLoad,this,d,g)),Ye(g,"error",a(this._tileOnError,this,d,g)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(g.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(g.referrerPolicy=this.options.referrerPolicy),g.alt="",g.src=this.getTileUrl(u),g},getTileUrl:function(u){var d={r:ze.retina?"@2x":"",s:this._getSubdomain(u),x:u.x,y:u.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var g=this._globalTileRange.max.y-u.y;this.options.tms&&(d.y=g),d["-y"]=g}return b(this._url,i(d,this.options))},_tileOnLoad:function(u,d){ze.ielt9?setTimeout(a(u,this,null,d),0):u(null,d)},_tileOnError:function(u,d,g){var E=this.options.errorTileUrl;E&&d.getAttribute("src")!==E&&(d.src=E),u(g,d)},_onTileRemove:function(u){u.tile.onload=null},_getZoomForUrl:function(){var u=this._tileZoom,d=this.options.maxZoom,g=this.options.zoomReverse,E=this.options.zoomOffset;return g&&(u=d-u),u+E},_getSubdomain:function(u){var d=Math.abs(u.x+u.y)%this.options.subdomains.length;return this.options.subdomains[d]},_abortLoading:function(){var u,d;for(u in this._tiles)if(this._tiles[u].coords.z!==this._tileZoom&&(d=this._tiles[u].el,d.onload=h,d.onerror=h,!d.complete)){d.src=M;var g=this._tiles[u].coords;Lt(d),delete this._tiles[u],this.fire("tileabort",{tile:d,coords:g})}},_removeTile:function(u){var d=this._tiles[u];if(d)return d.el.setAttribute("src",M),Jl.prototype._removeTile.call(this,u)},_tileReady:function(u,d,g){if(!(!this._map||g&&g.getAttribute("src")===M))return Jl.prototype._tileReady.call(this,u,d,g)}});function _S(u,d){return new _s(u,d)}var bS=_s.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(u,d){this._url=u;var g=i({},this.defaultWmsParams);for(var E in d)E in this.options||(g[E]=d[E]);d=y(this,d);var T=d.detectRetina&&ze.retina?2:1,F=this.getTileSize();g.width=F.x*T,g.height=F.y*T,this.wmsParams=g},onAdd:function(u){this._crs=this.options.crs||u.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var d=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[d]=this._crs.code,_s.prototype.onAdd.call(this,u)},getTileUrl:function(u){var d=this._tileCoordsToNwSe(u),g=this._crs,E=ee(g.project(d[0]),g.project(d[1])),T=E.min,F=E.max,K=(this._wmsVersion>=1.3&&this._crs===dS?[T.y,T.x,F.y,F.x]:[T.x,T.y,F.x,F.y]).join(","),ce=_s.prototype.getTileUrl.call(this,u);return ce+w(this.wmsParams,ce,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+K},setParams:function(u,d){return i(this.wmsParams,u),d||this.redraw(),this}});function C6(u,d){return new bS(u,d)}_s.WMS=bS,_S.wms=C6;var Ti=Fr.extend({options:{padding:.1},initialize:function(u){y(this,u),l(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&Ze(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 u={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(u.zoomanim=this._onAnimZoom),u},_onAnimZoom:function(u){this._updateTransform(u.center,u.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(u,d){var g=this._map.getZoomScale(d,this._zoom),E=this._map.getSize().multiplyBy(.5+this.options.padding),T=this._map.project(this._center,d),F=E.multiplyBy(-g).add(T).subtract(this._map._getNewPixelOrigin(u,d));ze.any3d?ca(this._container,F,g):Qt(this._container,F)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var u in this._layers)this._layers[u]._reset()},_onZoomEnd:function(){for(var u in this._layers)this._layers[u]._project()},_updatePaths:function(){for(var u in this._layers)this._layers[u]._update()},_update:function(){var u=this.options.padding,d=this._map.getSize(),g=this._map.containerPointToLayerPoint(d.multiplyBy(-u)).round();this._bounds=new B(g,g.add(d.multiplyBy(1+u*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),wS=Ti.extend({options:{tolerance:0},getEvents:function(){var u=Ti.prototype.getEvents.call(this);return u.viewprereset=this._onViewPreReset,u},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Ti.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var u=this._container=document.createElement("canvas");Ye(u,"mousemove",this._onMouseMove,this),Ye(u,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Ye(u,"mouseout",this._handleMouseOut,this),u._leaflet_disable_events=!0,this._ctx=u.getContext("2d")},_destroyContainer:function(){W(this._redrawRequest),delete this._ctx,Lt(this._container),vt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var u;this._redrawBounds=null;for(var d in this._layers)u=this._layers[d],u._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Ti.prototype._update.call(this);var u=this._bounds,d=this._container,g=u.getSize(),E=ze.retina?2:1;Qt(d,u.min),d.width=E*g.x,d.height=E*g.y,d.style.width=g.x+"px",d.style.height=g.y+"px",ze.retina&&this._ctx.scale(2,2),this._ctx.translate(-u.min.x,-u.min.y),this.fire("update")}},_reset:function(){Ti.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(u){this._updateDashArray(u),this._layers[l(u)]=u;var d=u._order={layer:u,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=d),this._drawLast=d,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(u){this._requestRedraw(u)},_removePath:function(u){var d=u._order,g=d.next,E=d.prev;g?g.prev=E:this._drawLast=E,E?E.next=g:this._drawFirst=g,delete u._order,delete this._layers[l(u)],this._requestRedraw(u)},_updatePath:function(u){this._extendRedrawBounds(u),u._project(),u._update(),this._requestRedraw(u)},_updateStyle:function(u){this._updateDashArray(u),this._requestRedraw(u)},_updateDashArray:function(u){if(typeof u.options.dashArray=="string"){var d=u.options.dashArray.split(/[, ]+/),g=[],E,T;for(T=0;T')}}catch{}return function(u){return document.createElement("<"+u+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),k6={_initContainer:function(){this._container=st("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Ti.prototype._update.call(this),this.fire("update"))},_initPath:function(u){var d=u._container=eu("shape");Ze(d,"leaflet-vml-shape "+(this.options.className||"")),d.coordsize="1 1",u._path=eu("path"),d.appendChild(u._path),this._updateStyle(u),this._layers[l(u)]=u},_addPath:function(u){var d=u._container;this._container.appendChild(d),u.options.interactive&&u.addInteractiveTarget(d)},_removePath:function(u){var d=u._container;Lt(d),u.removeInteractiveTarget(d),delete this._layers[l(u)]},_updateStyle:function(u){var d=u._stroke,g=u._fill,E=u.options,T=u._container;T.stroked=!!E.stroke,T.filled=!!E.fill,E.stroke?(d||(d=u._stroke=eu("stroke")),T.appendChild(d),d.weight=E.weight+"px",d.color=E.color,d.opacity=E.opacity,E.dashArray?d.dashStyle=S(E.dashArray)?E.dashArray.join(" "):E.dashArray.replace(/( *, *)/g," "):d.dashStyle="",d.endcap=E.lineCap.replace("butt","flat"),d.joinstyle=E.lineJoin):d&&(T.removeChild(d),u._stroke=null),E.fill?(g||(g=u._fill=eu("fill")),T.appendChild(g),g.color=E.fillColor||E.color,g.opacity=E.fillOpacity):g&&(T.removeChild(g),u._fill=null)},_updateCircle:function(u){var d=u._point.round(),g=Math.round(u._radius),E=Math.round(u._radiusY||g);this._setPath(u,u._empty()?"M0 0":"AL "+d.x+","+d.y+" "+g+","+E+" 0,"+65535*360)},_setPath:function(u,d){u._path.v=d},_bringToFront:function(u){hs(u._container)},_bringToBack:function(u){ps(u._container)}},Bf=ze.vml?eu:Le,tu=Ti.extend({_initContainer:function(){this._container=Bf("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Bf("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Lt(this._container),vt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Ti.prototype._update.call(this);var u=this._bounds,d=u.getSize(),g=this._container;(!this._svgSize||!this._svgSize.equals(d))&&(this._svgSize=d,g.setAttribute("width",d.x),g.setAttribute("height",d.y)),Qt(g,u.min),g.setAttribute("viewBox",[u.min.x,u.min.y,d.x,d.y].join(" ")),this.fire("update")}},_initPath:function(u){var d=u._path=Bf("path");u.options.className&&Ze(d,u.options.className),u.options.interactive&&Ze(d,"leaflet-interactive"),this._updateStyle(u),this._layers[l(u)]=u},_addPath:function(u){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(u._path),u.addInteractiveTarget(u._path)},_removePath:function(u){Lt(u._path),u.removeInteractiveTarget(u._path),delete this._layers[l(u)]},_updatePath:function(u){u._project(),u._update()},_updateStyle:function(u){var d=u._path,g=u.options;d&&(g.stroke?(d.setAttribute("stroke",g.color),d.setAttribute("stroke-opacity",g.opacity),d.setAttribute("stroke-width",g.weight),d.setAttribute("stroke-linecap",g.lineCap),d.setAttribute("stroke-linejoin",g.lineJoin),g.dashArray?d.setAttribute("stroke-dasharray",g.dashArray):d.removeAttribute("stroke-dasharray"),g.dashOffset?d.setAttribute("stroke-dashoffset",g.dashOffset):d.removeAttribute("stroke-dashoffset")):d.setAttribute("stroke","none"),g.fill?(d.setAttribute("fill",g.fillColor||g.color),d.setAttribute("fill-opacity",g.fillOpacity),d.setAttribute("fill-rule",g.fillRule||"evenodd")):d.setAttribute("fill","none"))},_updatePoly:function(u,d){this._setPath(u,ue(u._parts,d))},_updateCircle:function(u){var d=u._point,g=Math.max(Math.round(u._radius),1),E=Math.max(Math.round(u._radiusY),1)||g,T="a"+g+","+E+" 0 1,0 ",F=u._empty()?"M0 0":"M"+(d.x-g)+","+d.y+T+g*2+",0 "+T+-g*2+",0 ";this._setPath(u,F)},_setPath:function(u,d){u._path.setAttribute("d",d)},_bringToFront:function(u){hs(u._path)},_bringToBack:function(u){ps(u._path)}});ze.vml&&tu.include(k6);function SS(u){return ze.svg||ze.vml?new tu(u):null}nt.include({getRenderer:function(u){var d=u.options.renderer||this._getPaneRenderer(u.options.pane)||this.options.renderer||this._renderer;return d||(d=this._renderer=this._createRenderer()),this.hasLayer(d)||this.addLayer(d),d},_getPaneRenderer:function(u){if(u==="overlayPane"||u===void 0)return!1;var d=this._paneRenderers[u];return d===void 0&&(d=this._createRenderer({pane:u}),this._paneRenderers[u]=d),d},_createRenderer:function(u){return this.options.preferCanvas&&xS(u)||SS(u)}});var ES=vs.extend({initialize:function(u,d){vs.prototype.initialize.call(this,this._boundsToLatLngs(u),d)},setBounds:function(u){return this.setLatLngs(this._boundsToLatLngs(u))},_boundsToLatLngs:function(u){return u=q(u),[u.getSouthWest(),u.getNorthWest(),u.getNorthEast(),u.getSouthEast()]}});function M6(u,d){return new ES(u,d)}tu.create=Bf,tu.pointsToPath=ue,Pi.geometryToLayer=Af,Pi.coordsToLatLng=Dv,Pi.coordsToLatLngs=Df,Pi.latLngToCoords=Nv,Pi.latLngsToCoords=Nf,Pi.getFeature=ys,Pi.asFeature=If,nt.mergeOptions({boxZoom:!0});var OS=ni.extend({initialize:function(u){this._map=u,this._container=u._container,this._pane=u._panes.overlayPane,this._resetStateTimeout=0,u.on("unload",this._destroy,this)},addHooks:function(){Ye(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){vt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Lt(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(u){if(!u.shiftKey||u.which!==1&&u.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),Yl(),yv(),this._startPoint=this._map.mouseEventToContainerPoint(u),Ye(document,{contextmenu:ha,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(u){this._moved||(this._moved=!0,this._box=st("div","leaflet-zoom-box",this._container),Ze(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(u);var d=new B(this._point,this._startPoint),g=d.getSize();Qt(this._box,d.min),this._box.style.width=g.x+"px",this._box.style.height=g.y+"px"},_finish:function(){this._moved&&(Lt(this._box),Wt(this._container,"leaflet-crosshair")),ql(),_v(),vt(document,{contextmenu:ha,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(u){if(!(u.which!==1&&u.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(a(this._resetState,this),0);var d=new z(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(d).fire("boxzoomend",{boxZoomBounds:d})}},_onKeyDown:function(u){u.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});nt.addInitHook("addHandler","boxZoom",OS),nt.mergeOptions({doubleClickZoom:!0});var PS=ni.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(u){var d=this._map,g=d.getZoom(),E=d.options.zoomDelta,T=u.originalEvent.shiftKey?g-E:g+E;d.options.doubleClickZoom==="center"?d.setZoom(T):d.setZoomAround(u.containerPoint,T)}});nt.addInitHook("addHandler","doubleClickZoom",PS),nt.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var TS=ni.extend({addHooks:function(){if(!this._draggable){var u=this._map;this._draggable=new io(u._mapPane,u._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),u.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),u.on("zoomend",this._onZoomEnd,this),u.whenReady(this._onZoomEnd,this))}Ze(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Wt(this._map._container,"leaflet-grab"),Wt(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 u=this._map;if(u._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var d=q(this._map.options.maxBounds);this._offsetLimit=ee(this._map.latLngToContainerPoint(d.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(d.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;u.fire("movestart").fire("dragstart"),u.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(u){if(this._map.options.inertia){var d=this._lastTime=+new Date,g=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(g),this._times.push(d),this._prunePositions(d)}this._map.fire("move",u).fire("drag",u)},_prunePositions:function(u){for(;this._positions.length>1&&u-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var u=this._map.getSize().divideBy(2),d=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=d.subtract(u).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(u,d){return u-(u-d)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var u=this._draggable._newPos.subtract(this._draggable._startPos),d=this._offsetLimit;u.xd.max.x&&(u.x=this._viscousLimit(u.x,d.max.x)),u.y>d.max.y&&(u.y=this._viscousLimit(u.y,d.max.y)),this._draggable._newPos=this._draggable._startPos.add(u)}},_onPreDragWrap:function(){var u=this._worldWidth,d=Math.round(u/2),g=this._initialWorldOffset,E=this._draggable._newPos.x,T=(E-d+g)%u+d-g,F=(E+d+g)%u-d-g,K=Math.abs(T+g)0?F:-F))-d;this._delta=0,this._startTime=null,K&&(u.options.scrollWheelZoom==="center"?u.setZoom(d+K):u.setZoomAround(this._lastMousePos,d+K))}});nt.addInitHook("addHandler","scrollWheelZoom",kS);var L6=600;nt.mergeOptions({tapHold:ze.touchNative&&ze.safari&&ze.mobile,tapTolerance:15});var MS=ni.extend({addHooks:function(){Ye(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){vt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(u){if(clearTimeout(this._holdTimeout),u.touches.length===1){var d=u.touches[0];this._startPos=this._newPos=new V(d.clientX,d.clientY),this._holdTimeout=setTimeout(a(function(){this._cancel(),this._isTapValid()&&(Ye(document,"touchend",En),Ye(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",d))},this),L6),Ye(document,"touchend touchcancel contextmenu",this._cancel,this),Ye(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function u(){vt(document,"touchend",En),vt(document,"touchend touchcancel",u)},_cancel:function(){clearTimeout(this._holdTimeout),vt(document,"touchend touchcancel contextmenu",this._cancel,this),vt(document,"touchmove",this._onMove,this)},_onMove:function(u){var d=u.touches[0];this._newPos=new V(d.clientX,d.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(u,d){var g=new MouseEvent(u,{bubbles:!0,cancelable:!0,view:window,screenX:d.screenX,screenY:d.screenY,clientX:d.clientX,clientY:d.clientY});g._simulated=!0,d.target.dispatchEvent(g)}});nt.addInitHook("addHandler","tapHold",MS),nt.mergeOptions({touchZoom:ze.touch,bounceAtZoomLimits:!0});var LS=ni.extend({addHooks:function(){Ze(this._map._container,"leaflet-touch-zoom"),Ye(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Wt(this._map._container,"leaflet-touch-zoom"),vt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(u){var d=this._map;if(!(!u.touches||u.touches.length!==2||d._animatingZoom||this._zooming)){var g=d.mouseEventToContainerPoint(u.touches[0]),E=d.mouseEventToContainerPoint(u.touches[1]);this._centerPoint=d.getSize()._divideBy(2),this._startLatLng=d.containerPointToLatLng(this._centerPoint),d.options.touchZoom!=="center"&&(this._pinchStartLatLng=d.containerPointToLatLng(g.add(E)._divideBy(2))),this._startDist=g.distanceTo(E),this._startZoom=d.getZoom(),this._moved=!1,this._zooming=!0,d._stop(),Ye(document,"touchmove",this._onTouchMove,this),Ye(document,"touchend touchcancel",this._onTouchEnd,this),En(u)}},_onTouchMove:function(u){if(!(!u.touches||u.touches.length!==2||!this._zooming)){var d=this._map,g=d.mouseEventToContainerPoint(u.touches[0]),E=d.mouseEventToContainerPoint(u.touches[1]),T=g.distanceTo(E)/this._startDist;if(this._zoom=d.getScaleZoom(T,this._startZoom),!d.options.bounceAtZoomLimits&&(this._zoomd.getMaxZoom()&&T>1)&&(this._zoom=d._limitZoom(this._zoom)),d.options.touchZoom==="center"){if(this._center=this._startLatLng,T===1)return}else{var F=g._add(E)._divideBy(2)._subtract(this._centerPoint);if(T===1&&F.x===0&&F.y===0)return;this._center=d.unproject(d.project(this._pinchStartLatLng,this._zoom).subtract(F),this._zoom)}this._moved||(d._moveStart(!0,!1),this._moved=!0),W(this._animRequest);var K=a(d._move,d,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=H(K,this,!0),En(u)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,W(this._animRequest),vt(document,"touchmove",this._onTouchMove,this),vt(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))}});nt.addInitHook("addHandler","touchZoom",LS),nt.BoxZoom=OS,nt.DoubleClickZoom=PS,nt.Drag=TS,nt.Keyboard=CS,nt.ScrollWheelZoom=kS,nt.TapHold=MS,nt.TouchZoom=LS,n.Bounds=B,n.Browser=ze,n.CRS=he,n.Canvas=wS,n.Circle=Av,n.CircleMarker=Rf,n.Class=Y,n.Control=Ir,n.DivIcon=yS,n.DivOverlay=ri,n.DomEvent=GN,n.DomUtil=qN,n.Draggable=io,n.Evented=se,n.FeatureGroup=Ei,n.GeoJSON=Pi,n.GridLayer=Jl,n.Handler=ni,n.Icon=gs,n.ImageOverlay=Ff,n.LatLng=ne,n.LatLngBounds=z,n.Layer=Fr,n.LayerGroup=ms,n.LineUtil=s6,n.Map=nt,n.Marker=Lf,n.Mixin=n6,n.Path=oo,n.Point=V,n.PolyUtil=l6,n.Polygon=vs,n.Polyline=Oi,n.Popup=$f,n.PosAnimation=eS,n.Projection=u6,n.Rectangle=ES,n.Renderer=Ti,n.SVG=tu,n.SVGOverlay=vS,n.TileLayer=_s,n.Tooltip=jf,n.Transformation=G,n.Util=J,n.VideoOverlay=gS,n.bind=a,n.bounds=ee,n.canvas=xS,n.circle=v6,n.circleMarker=g6,n.control=Kl,n.divIcon=P6,n.extend=i,n.featureGroup=h6,n.geoJSON=mS,n.geoJson=b6,n.gridLayer=T6,n.icon=p6,n.imageOverlay=w6,n.latLng=ae,n.latLngBounds=q,n.layerGroup=d6,n.map=KN,n.marker=m6,n.point=A,n.polygon=_6,n.polyline=y6,n.popup=E6,n.rectangle=M6,n.setOptions=y,n.stamp=l,n.svg=SS,n.svgOverlay=S6,n.tileLayer=_S,n.tooltip=O6,n.transformation=Z,n.version=r,n.videoOverlay=x6;var R6=window.L;n.noConflict=function(){return window.L=R6,this},window.L=n})})(Bne,Jo);const Vfe=Jo;function mx(t,e,n){return Object.freeze({instance:t,context:e,container:n})}function gx(t,e){return e==null?function(r,i){const o=Q.useRef();return o.current||(o.current=t(r,i)),o}:function(r,i){const o=Q.useRef();o.current||(o.current=t(r,i));const a=Q.useRef(r),{instance:s}=o.current;return Q.useEffect(function(){a.current!==r&&(e(s,r,a.current),a.current=r)},[s,r,i]),o}}function zne(t,e){Q.useEffect(function(){return(e.layerContainer??e.map).addLayer(t.instance),function(){var o;(o=e.layerContainer)==null||o.removeLayer(t.instance),e.map.removeLayer(t.instance)}},[e,t])}function vD(t){return function(n){const r=mD(),i=t(px(n,r),r);return dD(r.map,n.attribution),gD(i.current,n.eventHandlers),zne(i.current,r),i}}function Hne(t,e){const n=gx(t,e),r=vD(n);return Ine(r)}function Une(t,e){const n=gx(t),r=jne(n,e);return Fne(r)}function Wne(t,e){const n=gx(t,e),r=vD(n);return $ne(r)}function Vne(t,e,n){const{opacity:r,zIndex:i}=e;r!=null&&r!==n.opacity&&t.setOpacity(r),i!=null&&i!==n.zIndex&&t.setZIndex(i)}function bb(){return bb=Object.assign||function(t){for(var e=1;e(m==null?void 0:m.map)??null,[m]);const y=Q.useCallback(_=>{if(_!==null&&m===null){const b=new Jo.Map(_,f);n!=null&&c!=null?b.setView(n,c):t!=null&&b.fitBounds(t,e),l!=null&&b.whenReady(l),v(Dne(b))}},[]);Q.useEffect(()=>()=>{m==null||m.map.remove()},[m]);const w=m?j.createElement(pD,{value:m},r):a??null;return j.createElement("div",bb({},p,{ref:y}),w)}const Yfe=Q.forwardRef(Yne),qfe=Hne(function({position:e,...n},r){const i=new Jo.Marker(e,n);return mx(i,Nne(r,{overlayContainer:i}))},function(e,n,r){n.position!==r.position&&e.setLatLng(n.position),n.icon!=null&&n.icon!==r.icon&&e.setIcon(n.icon),n.zIndexOffset!=null&&n.zIndexOffset!==r.zIndexOffset&&e.setZIndexOffset(n.zIndexOffset),n.opacity!=null&&n.opacity!==r.opacity&&e.setOpacity(n.opacity),e.dragging!=null&&n.draggable!==r.draggable&&(n.draggable===!0?e.dragging.enable():e.dragging.disable())}),Zfe=Une(function(e,n){const r=new Jo.Popup(e,n.overlayContainer);return mx(r,n)},function(e,n,{position:r},i){Q.useEffect(function(){const{instance:a}=e;function s(c){c.popup===a&&(a.update(),i(!0))}function l(c){c.popup===a&&i(!1)}return n.map.on({popupopen:s,popupclose:l}),n.overlayContainer==null?(r!=null&&a.setLatLng(r),a.openOn(n.map)):n.overlayContainer.bindPopup(a),function(){var f;n.map.off({popupopen:s,popupclose:l}),(f=n.overlayContainer)==null||f.unbindPopup(),n.map.removeLayer(a)}},[e,n,i,r])}),Gfe=Wne(function({url:e,...n},r){const i=new Jo.TileLayer(e,px(n,r));return mx(i,r)},function(e,n,r){Vne(e,n,r);const{url:i}=n;i!=null&&i!==r.url&&e.setUrl(i)});/*! * @kurkle/color v0.3.1 * https://github.com/kurkle/color#readme * (c) 2022 Jukka Kurkela * Released under the MIT License */function yf(t){return t+.5|0}const Co=(t,e,n)=>Math.max(Math.min(t,n),e);function Lu(t){return Co(yf(t*2.55),0,255)}function Wo(t){return Co(yf(t*255),0,255)}function Di(t){return Co(yf(t/2.55)/100,0,1)}function jC(t){return Co(yf(t*100),0,100)}const wr={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},wb=[..."0123456789ABCDEF"],qne=t=>wb[t&15],Zne=t=>wb[(t&240)>>4]+wb[t&15],Sd=t=>(t&240)>>4===(t&15),Gne=t=>Sd(t.r)&&Sd(t.g)&&Sd(t.b)&&Sd(t.a);function Kne(t){var e=t.length,n;return t[0]==="#"&&(e===4||e===5?n={r:255&wr[t[1]]*17,g:255&wr[t[2]]*17,b:255&wr[t[3]]*17,a:e===5?wr[t[4]]*17:255}:(e===7||e===9)&&(n={r:wr[t[1]]<<4|wr[t[2]],g:wr[t[3]]<<4|wr[t[4]],b:wr[t[5]]<<4|wr[t[6]],a:e===9?wr[t[7]]<<4|wr[t[8]]:255})),n}const Xne=(t,e)=>t<255?e(t):"";function Qne(t){var e=Gne(t)?qne:Zne;return t?"#"+e(t.r)+e(t.g)+e(t.b)+Xne(t.a,e):void 0}const Jne=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function yD(t,e,n){const r=e*Math.min(n,1-n),i=(o,a=(o+t/30)%12)=>n-r*Math.max(Math.min(a-3,9-a,1),-1);return[i(0),i(8),i(4)]}function ere(t,e,n){const r=(i,o=(i+t/60)%6)=>n-n*e*Math.max(Math.min(o,4-o,1),0);return[r(5),r(3),r(1)]}function tre(t,e,n){const r=yD(t,1,.5);let i;for(e+n>1&&(i=1/(e+n),e*=i,n*=i),i=0;i<3;i++)r[i]*=1-e-n,r[i]+=e;return r}function nre(t,e,n,r,i){return t===i?(e-n)/r+(e.5?f/(2-o-a):f/(o+a),l=nre(n,r,i,f,o),l=l*60+.5),[l|0,c||0,s]}function yx(t,e,n,r){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,r)).map(Wo)}function _x(t,e,n){return yx(yD,t,e,n)}function rre(t,e,n){return yx(tre,t,e,n)}function ire(t,e,n){return yx(ere,t,e,n)}function _D(t){return(t%360+360)%360}function ore(t){const e=Jne.exec(t);let n=255,r;if(!e)return;e[5]!==r&&(n=e[6]?Lu(+e[5]):Wo(+e[5]));const i=_D(+e[2]),o=+e[3]/100,a=+e[4]/100;return e[1]==="hwb"?r=rre(i,o,a):e[1]==="hsv"?r=ire(i,o,a):r=_x(i,o,a),{r:r[0],g:r[1],b:r[2],a:n}}function are(t,e){var n=vx(t);n[0]=_D(n[0]+e),n=_x(n),t.r=n[0],t.g=n[1],t.b=n[2]}function sre(t){if(!t)return;const e=vx(t),n=e[0],r=jC(e[1]),i=jC(e[2]);return t.a<255?`hsla(${n}, ${r}%, ${i}%, ${Di(t.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const BC={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},zC={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function lre(){const t={},e=Object.keys(zC),n=Object.keys(BC);let r,i,o,a,s;for(r=0;r>16&255,o>>8&255,o&255]}return t}let Ed;function ure(t){Ed||(Ed=lre(),Ed.transparent=[0,0,0,0]);const e=Ed[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:e.length===4?e[3]:255}}const cre=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function fre(t){const e=cre.exec(t);let n=255,r,i,o;if(e){if(e[7]!==r){const a=+e[7];n=e[8]?Lu(a):Co(a*255,0,255)}return r=+e[1],i=+e[3],o=+e[5],r=255&(e[2]?Lu(r):Co(r,0,255)),i=255&(e[4]?Lu(i):Co(i,0,255)),o=255&(e[6]?Lu(o):Co(o,0,255)),{r,g:i,b:o,a:n}}}function dre(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${Di(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}const Jy=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,Ts=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function hre(t,e,n){const r=Ts(Di(t.r)),i=Ts(Di(t.g)),o=Ts(Di(t.b));return{r:Wo(Jy(r+n*(Ts(Di(e.r))-r))),g:Wo(Jy(i+n*(Ts(Di(e.g))-i))),b:Wo(Jy(o+n*(Ts(Di(e.b))-o))),a:t.a+n*(e.a-t.a)}}function Od(t,e,n){if(t){let r=vx(t);r[e]=Math.max(0,Math.min(r[e]+r[e]*n,e===0?360:1)),r=_x(r),t.r=r[0],t.g=r[1],t.b=r[2]}}function bD(t,e){return t&&Object.assign(e||{},t)}function HC(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=Wo(t[3]))):(e=bD(t,{r:0,g:0,b:0,a:1}),e.a=Wo(e.a)),e}function pre(t){return t.charAt(0)==="r"?fre(t):ore(t)}class Vc{constructor(e){if(e instanceof Vc)return e;const n=typeof e;let r;n==="object"?r=HC(e):n==="string"&&(r=Kne(e)||ure(e)||pre(e)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var e=bD(this._rgb);return e&&(e.a=Di(e.a)),e}set rgb(e){this._rgb=HC(e)}rgbString(){return this._valid?dre(this._rgb):void 0}hexString(){return this._valid?Qne(this._rgb):void 0}hslString(){return this._valid?sre(this._rgb):void 0}mix(e,n){if(e){const r=this.rgb,i=e.rgb;let o;const a=n===o?.5:n,s=2*a-1,l=r.a-i.a,c=((s*l===-1?s:(s+l)/(1+s*l))+1)/2;o=1-c,r.r=255&c*r.r+o*i.r+.5,r.g=255&c*r.g+o*i.g+.5,r.b=255&c*r.b+o*i.b+.5,r.a=a*r.a+(1-a)*i.a,this.rgb=r}return this}interpolate(e,n){return e&&(this._rgb=hre(this._rgb,e._rgb,n)),this}clone(){return new Vc(this.rgb)}alpha(e){return this._rgb.a=Wo(e),this}clearer(e){const n=this._rgb;return n.a*=1-e,this}greyscale(){const e=this._rgb,n=yf(e.r*.3+e.g*.59+e.b*.11);return e.r=e.g=e.b=n,this}opaquer(e){const n=this._rgb;return n.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return Od(this._rgb,2,e),this}darken(e){return Od(this._rgb,2,-e),this}saturate(e){return Od(this._rgb,1,e),this}desaturate(e){return Od(this._rgb,1,-e),this}rotate(e){return are(this._rgb,e),this}}/*! * Chart.js v4.1.1 * https://www.chartjs.org * (c) 2022 Chart.js Contributors * Released under the MIT License */function Ci(){}const mre=(()=>{let t=0;return()=>t++})();function at(t){return t===null||typeof t>"u"}function St(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return e.slice(0,7)==="[object"&&e.slice(-6)==="Array]"}function et(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function Bt(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function ar(t,e){return Bt(t)?t:e}function qe(t,e){return typeof t>"u"?e:t}const gre=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:+t/e,wD=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*e:+t;function yt(t,e,n){if(t&&typeof t.call=="function")return t.apply(n,e)}function ft(t,e,n,r){let i,o,a;if(St(t))if(o=t.length,r)for(i=o-1;i>=0;i--)e.call(n,t[i],i);else for(i=0;it,x:t=>t.x,y:t=>t.y};function _re(t){const e=t.split("."),n=[];let r="";for(const i of e)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function bre(t){const e=_re(t);return n=>{for(const r of e){if(r==="")break;n=n&&n[r]}return n}}function ea(t,e){return(UC[e]||(UC[e]=bre(e)))(t)}function bx(t){return t.charAt(0).toUpperCase()+t.slice(1)}const Lr=t=>typeof t<"u",ta=t=>typeof t=="function",WC=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};function wre(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}const kt=Math.PI,Pt=2*kt,xre=Pt+kt,jm=Number.POSITIVE_INFINITY,Sre=kt/180,zt=kt/2,ga=kt/4,VC=kt*2/3,ko=Math.log10,bi=Math.sign;function nc(t,e,n){return Math.abs(t-e)i-o).pop(),e}function Cl(t){return!isNaN(parseFloat(t))&&isFinite(t)}function Ore(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}function SD(t,e,n){let r,i,o;for(r=0,i=t.length;rl&&c=Math.min(e,n)-r&&t<=Math.max(e,n)+r}function xx(t,e,n){n=n||(a=>t[a]1;)o=i+r>>1,n(o)?i=o:r=o;return{lo:i,hi:r}}const Bi=(t,e,n,r)=>xx(t,n,r?i=>{const o=t[i][e];return ot[i][e]xx(t,n,r=>t[r][e]>=n);function kre(t,e,n){let r=0,i=t.length;for(;rr&&t[i-1]>n;)i--;return r>0||i{const r="_onData"+bx(n),i=t[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!1,value(...o){const a=i.apply(this,o);return t._chartjs.listeners.forEach(s=>{typeof s[r]=="function"&&s[r](...o)}),a}})})}function ZC(t,e){const n=t._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(e);i!==-1&&r.splice(i,1),!(r.length>0)&&(OD.forEach(o=>{delete t[o]}),delete t._chartjs)}function PD(t){const e=new Set;let n,r;for(n=0,r=t.length;n"u"?function(t){return t()}:window.requestAnimationFrame}();function CD(t,e){let n=[],r=!1;return function(...i){n=i,r||(r=!0,TD.call(window,()=>{r=!1,t.apply(e,n)}))}}function Lre(t,e){let n;return function(...r){return e?(clearTimeout(n),n=setTimeout(t,e,r)):t.apply(this,r),e}}const Sx=t=>t==="start"?"left":t==="end"?"right":"center",Nn=(t,e,n)=>t==="start"?e:t==="end"?n:(e+n)/2,Rre=(t,e,n,r)=>t===(r?"left":"right")?n:t==="center"?(e+n)/2:e;function kD(t,e,n){const r=e.length;let i=0,o=r;if(t._sorted){const{iScale:a,_parsed:s}=t,l=a.axis,{min:c,max:f,minDefined:h,maxDefined:p}=a.getUserBounds();h&&(i=hn(Math.min(Bi(s,a.axis,c).lo,n?r:Bi(e,l,a.getPixelForValue(c)).lo),0,r-1)),p?o=hn(Math.max(Bi(s,a.axis,f,!0).hi+1,n?0:Bi(e,l,a.getPixelForValue(f),!0).hi+1),i,r)-i:o=r-i}return{start:i,count:o}}function MD(t){const{xScale:e,yScale:n,_scaleRanges:r}=t,i={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!r)return t._scaleRanges=i,!0;const o=r.xmin!==e.min||r.xmax!==e.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),o}const Pd=t=>t===0||t===1,GC=(t,e,n)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*Pt/n)),KC=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*Pt/n)+1,rc={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*zt)+1,easeOutSine:t=>Math.sin(t*zt),easeInOutSine:t=>-.5*(Math.cos(kt*t)-1),easeInExpo:t=>t===0?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>t===1?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>Pd(t)?t:t<.5?.5*Math.pow(2,10*(t*2-1)):.5*(-Math.pow(2,-10*(t*2-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>Pd(t)?t:GC(t,.075,.3),easeOutElastic:t=>Pd(t)?t:KC(t,.075,.3),easeInOutElastic(t){return Pd(t)?t:t<.5?.5*GC(t*2,.1125,.45):.5+.5*KC(t*2-1,.1125,.45)},easeInBack(t){return t*t*((1.70158+1)*t-1.70158)},easeOutBack(t){return(t-=1)*t*((1.70158+1)*t+1.70158)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:t=>1-rc.easeOutBounce(1-t),easeOutBounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?rc.easeInBounce(t*2)*.5:rc.easeOutBounce(t*2-1)*.5+.5};function LD(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function XC(t){return LD(t)?t:new Vc(t)}function e_(t){return LD(t)?t:new Vc(t).saturate(.5).darken(.1).hexString()}const Are=["x","y","borderWidth","radius","tension"],Dre=["color","borderColor","backgroundColor"];function Nre(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>e!=="onProgress"&&e!=="onComplete"&&e!=="fn"}),t.set("animations",{colors:{type:"color",properties:Dre},numbers:{type:"number",properties:Are}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>e|0}}}})}function Ire(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const QC=new Map;function Fre(t,e){e=e||{};const n=t+JSON.stringify(e);let r=QC.get(n);return r||(r=new Intl.NumberFormat(t,e),QC.set(n,r)),r}function _f(t,e,n){return Fre(e,n).format(t)}const RD={values(t){return St(t)?t:""+t},numeric(t,e,n){if(t===0)return"0";const r=this.chart.options.locale;let i,o=t;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(i="scientific"),o=$re(t,n)}const a=ko(Math.abs(o)),s=Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:i,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),_f(t,r,l)},logarithmic(t,e,n){if(t===0)return"0";const r=n[e].significand||t/Math.pow(10,Math.floor(ko(t)));return[1,2,3,5,10,15].includes(r)||e>.8*n.length?RD.numeric.call(this,t,e,n):""}};function $re(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t)),n}var iv={formatters:RD};function jre(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,n)=>n.lineWidth,tickColor:(e,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:iv.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&e!=="callback"&&e!=="parser",_indexable:e=>e!=="borderDash"&&e!=="tickBorderDash"&&e!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:e=>e!=="backdropPadding"&&e!=="callback",_indexable:e=>e!=="backdropPadding"})}const rs=Object.create(null),Sb=Object.create(null);function ic(t,e){if(!e)return t;const n=e.split(".");for(let r=0,i=n.length;rr.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,i)=>e_(i.backgroundColor),this.hoverBorderColor=(r,i)=>e_(i.borderColor),this.hoverColor=(r,i)=>e_(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(n)}set(e,n){return t_(this,e,n)}get(e){return ic(this,e)}describe(e,n){return t_(Sb,e,n)}override(e,n){return t_(rs,e,n)}route(e,n,r,i){const o=ic(this,e),a=ic(this,r),s="_"+n;Object.defineProperties(o,{[s]:{value:o[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[s],c=a[i];return et(l)?Object.assign({},c,l):qe(l,c)},set(l){this[s]=l}}})}apply(e){e.forEach(n=>n(this))}}var Kt=new Bre({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[Nre,Ire,jre]);function zre(t){return!t||at(t.size)||at(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function Bm(t,e,n,r,i){let o=e[i];return o||(o=e[i]=t.measureText(i).width,n.push(i)),o>r&&(r=o),r}function Hre(t,e,n,r){r=r||{};let i=r.data=r.data||{},o=r.garbageCollect=r.garbageCollect||[];r.font!==e&&(i=r.data={},o=r.garbageCollect=[],r.font=e),t.save(),t.font=e;let a=0;const s=n.length;let l,c,f,h,p;for(l=0;ln.length){for(l=0;l0&&t.stroke()}}function Zc(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.xe.top-n&&t.y0&&o.strokeColor!=="";let l,c;for(t.save(),t.font=i.string,Vre(t,o),l=0;l+t||0;function Ex(t,e){const n={},r=et(e),i=r?Object.keys(e):e,o=et(t)?r?a=>qe(t[a],t[e[a]]):a=>t[a]:()=>t;for(const a of i)n[a]=Xre(o(a));return n}function DD(t){return Ex(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Ha(t){return Ex(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Bn(t){const e=DD(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function sn(t,e){t=t||{},e=e||Kt.font;let n=qe(t.size,e.size);typeof n=="string"&&(n=parseInt(n,10));let r=qe(t.style,e.style);r&&!(""+r).match(Gre)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:qe(t.family,e.family),lineHeight:Kre(qe(t.lineHeight,e.lineHeight),n),size:n,style:r,weight:qe(t.weight,e.weight),string:""};return i.string=zre(i),i}function Ru(t,e,n,r){let i=!0,o,a,s;for(o=0,a=t.length;on&&s===0?0:s+l;return{min:a(r,-Math.abs(o)),max:a(i,o)}}function la(t,e){return Object.assign(Object.create(t),e)}function Ox(t,e=[""],n=t,r,i=()=>t[0]){Lr(r)||(r=$D("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:n,_fallback:r,_getTarget:i,override:a=>Ox([a,...t],e,n,r)};return new Proxy(o,{deleteProperty(a,s){return delete a[s],delete a._keys,delete t[0][s],!0},get(a,s){return ID(a,s,()=>aie(s,e,t,a))},getOwnPropertyDescriptor(a,s){return Reflect.getOwnPropertyDescriptor(a._scopes[0],s)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(a,s){return tk(a).includes(s)},ownKeys(a){return tk(a)},set(a,s,l){const c=a._storage||(a._storage=i());return a[s]=c[s]=l,delete a._keys,!0}})}function kl(t,e,n,r){const i={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:ND(t,r),setContext:o=>kl(t,o,n,r),override:o=>kl(t.override(o),e,n,r)};return new Proxy(i,{deleteProperty(o,a){return delete o[a],delete t[a],!0},get(o,a,s){return ID(o,a,()=>eie(o,a,s))},getOwnPropertyDescriptor(o,a){return o._descriptors.allKeys?Reflect.has(t,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,a)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(o,a){return Reflect.has(t,a)},ownKeys(){return Reflect.ownKeys(t)},set(o,a,s){return t[a]=s,delete o[a],!0}})}function ND(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:r=e.indexable,_allKeys:i=e.allKeys}=t;return{allKeys:i,scriptable:n,indexable:r,isScriptable:ta(n)?n:()=>n,isIndexable:ta(r)?r:()=>r}}const Jre=(t,e)=>t?t+bx(e):e,Px=(t,e)=>et(e)&&t!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function ID(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const r=n();return t[e]=r,r}function eie(t,e,n){const{_proxy:r,_context:i,_subProxy:o,_descriptors:a}=t;let s=r[e];return ta(s)&&a.isScriptable(e)&&(s=tie(e,s,t,n)),St(s)&&s.length&&(s=nie(e,s,t,a.isIndexable)),Px(e,s)&&(s=kl(s,i,o&&o[e],a)),s}function tie(t,e,n,r){const{_proxy:i,_context:o,_subProxy:a,_stack:s}=n;if(s.has(t))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+t);return s.add(t),e=e(o,a||r),s.delete(t),Px(t,e)&&(e=Tx(i._scopes,i,t,e)),e}function nie(t,e,n,r){const{_proxy:i,_context:o,_subProxy:a,_descriptors:s}=n;if(Lr(o.index)&&r(t))e=e[o.index%e.length];else if(et(e[0])){const l=e,c=i._scopes.filter(f=>f!==l);e=[];for(const f of l){const h=Tx(c,i,t,f);e.push(kl(h,o,a&&a[t],s))}}return e}function FD(t,e,n){return ta(t)?t(e,n):t}const rie=(t,e)=>t===!0?e:typeof t=="string"?ea(e,t):void 0;function iie(t,e,n,r,i){for(const o of e){const a=rie(n,o);if(a){t.add(a);const s=FD(a._fallback,n,i);if(Lr(s)&&s!==n&&s!==r)return s}else if(a===!1&&Lr(r)&&n!==r)return null}return!1}function Tx(t,e,n,r){const i=e._rootScopes,o=FD(e._fallback,n,r),a=[...t,...i],s=new Set;s.add(r);let l=ek(s,a,n,o||n,r);return l===null||Lr(o)&&o!==n&&(l=ek(s,a,o,l,r),l===null)?!1:Ox(Array.from(s),[""],i,o,()=>oie(e,n,r))}function ek(t,e,n,r,i){for(;n;)n=iie(t,e,n,r,i);return n}function oie(t,e,n){const r=t._getTarget();e in r||(r[e]={});const i=r[e];return St(i)&&et(n)?n:i||{}}function aie(t,e,n,r){let i;for(const o of e)if(i=$D(Jre(o,t),n),Lr(i))return Px(t,i)?Tx(n,r,t,i):i}function $D(t,e){for(const n of e){if(!n)continue;const r=n[t];if(Lr(r))return r}}function tk(t){let e=t._keys;return e||(e=t._keys=sie(t._scopes)),e}function sie(t){const e=new Set;for(const n of t)for(const r of Object.keys(n).filter(i=>!i.startsWith("_")))e.add(r);return Array.from(e)}function jD(t,e,n,r){const{iScale:i}=t,{key:o="r"}=this._parsing,a=new Array(r);let s,l,c,f;for(s=0,l=r;set==="x"?"y":"x";function uie(t,e,n,r){const i=t.skip?e:t,o=e,a=n.skip?e:n,s=xb(o,i),l=xb(a,o);let c=s/(s+l),f=l/(s+l);c=isNaN(c)?0:c,f=isNaN(f)?0:f;const h=r*c,p=r*f;return{previous:{x:o.x-h*(a.x-i.x),y:o.y-h*(a.y-i.y)},next:{x:o.x+p*(a.x-i.x),y:o.y+p*(a.y-i.y)}}}function cie(t,e,n){const r=t.length;let i,o,a,s,l,c=Ml(t,0);for(let f=0;f!c.skip)),e.cubicInterpolationMode==="monotone")die(t,i);else{let c=r?t[t.length-1]:t[0];for(o=0,a=t.length;ot.ownerDocument.defaultView.getComputedStyle(t,null);function mie(t,e){return sv(t).getPropertyValue(e)}const gie=["top","right","bottom","left"];function Ua(t,e,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const o=gie[i];r[o]=parseFloat(t[e+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const vie=(t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot);function yie(t,e){const n=t.touches,r=n&&n.length?n[0]:t,{offsetX:i,offsetY:o}=r;let a=!1,s,l;if(vie(i,o,t.target))s=i,l=o;else{const c=e.getBoundingClientRect();s=r.clientX-c.left,l=r.clientY-c.top,a=!0}return{x:s,y:l,box:a}}function Pa(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:r}=e,i=sv(n),o=i.boxSizing==="border-box",a=Ua(i,"padding"),s=Ua(i,"border","width"),{x:l,y:c,box:f}=yie(t,n),h=a.left+(f&&s.left),p=a.top+(f&&s.top);let{width:m,height:v}=e;return o&&(m-=a.width+s.width,v-=a.height+s.height),{x:Math.round((l-h)/m*n.width/r),y:Math.round((c-p)/v*n.height/r)}}function _ie(t,e,n){let r,i;if(e===void 0||n===void 0){const o=Cx(t);if(!o)e=t.clientWidth,n=t.clientHeight;else{const a=o.getBoundingClientRect(),s=sv(o),l=Ua(s,"border","width"),c=Ua(s,"padding");e=a.width-c.width-l.width,n=a.height-c.height-l.height,r=zm(s.maxWidth,o,"clientWidth"),i=zm(s.maxHeight,o,"clientHeight")}}return{width:e,height:n,maxWidth:r||jm,maxHeight:i||jm}}const Cd=t=>Math.round(t*10)/10;function bie(t,e,n,r){const i=sv(t),o=Ua(i,"margin"),a=zm(i.maxWidth,t,"clientWidth")||jm,s=zm(i.maxHeight,t,"clientHeight")||jm,l=_ie(t,e,n);let{width:c,height:f}=l;if(i.boxSizing==="content-box"){const p=Ua(i,"border","width"),m=Ua(i,"padding");c-=m.width+p.width,f-=m.height+p.height}return c=Math.max(0,c-o.width),f=Math.max(0,r?c/r:f-o.height),c=Cd(Math.min(c,a,l.maxWidth)),f=Cd(Math.min(f,s,l.maxHeight)),c&&!f&&(f=Cd(c/2)),(e!==void 0||n!==void 0)&&r&&l.height&&f>l.height&&(f=l.height,c=Cd(Math.floor(f*r))),{width:c,height:f}}function nk(t,e,n){const r=e||1,i=Math.floor(t.height*r),o=Math.floor(t.width*r);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const a=t.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),t.currentDevicePixelRatio!==r||a.height!==i||a.width!==o?(t.currentDevicePixelRatio=r,a.height=i,a.width=o,t.ctx.setTransform(r,0,0,r,0,0),!0):!1}const wie=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch{}return t}();function rk(t,e){const n=mie(t,e),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function Ta(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function xie(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:r==="middle"?n<.5?t.y:e.y:r==="after"?n<1?t.y:e.y:n>0?e.y:t.y}}function Sie(t,e,n,r){const i={x:t.cp2x,y:t.cp2y},o={x:e.cp1x,y:e.cp1y},a=Ta(t,i,n),s=Ta(i,o,n),l=Ta(o,e,n),c=Ta(a,s,n),f=Ta(s,l,n);return Ta(c,f,n)}const Eie=function(t,e){return{x(n){return t+t+e-n},setWidth(n){e=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},Oie=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function ll(t,e,n){return t?Eie(e,n):Oie()}function HD(t,e){let n,r;(e==="ltr"||e==="rtl")&&(n=t.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=r)}function UD(t,e){e!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function WD(t){return t==="angle"?{between:qc,compare:Pre,normalize:lr}:{between:ji,compare:(e,n)=>e-n,normalize:e=>e}}function ik({start:t,end:e,count:n,loop:r,style:i}){return{start:t%n,end:e%n,loop:r&&(e-t+1)%n===0,style:i}}function Pie(t,e,n){const{property:r,start:i,end:o}=n,{between:a,normalize:s}=WD(r),l=e.length;let{start:c,end:f,loop:h}=t,p,m;if(h){for(c+=l,f+=l,p=0,m=l;pl(i,S,_)&&s(i,S)!==0,M=()=>s(o,_)===0||l(o,S,_),C=()=>y||O(),R=()=>!y||M();for(let $=f,U=f;$<=h;++$)b=e[$%a],!b.skip&&(_=c(b[r]),_!==S&&(y=l(_,i,o),w===null&&C()&&(w=s(_,i)===0?$:U),w!==null&&R()&&(v.push(ik({start:w,end:$,loop:p,count:a,style:m})),w=null),U=$,S=_));return w!==null&&v.push(ik({start:w,end:h,loop:p,count:a,style:m})),v}function YD(t,e){const n=[],r=t.segments;for(let i=0;ii&&t[o%e].skip;)o--;return o%=e,{start:i,end:o}}function Cie(t,e,n,r){const i=t.length,o=[];let a=e,s=t[e],l;for(l=e+1;l<=n;++l){const c=t[l%i];c.skip||c.stop?s.skip||(r=!1,o.push({start:e%i,end:(l-1)%i,loop:r}),e=a=c.stop?l:null):(a=l,s.skip&&(e=l)),s=c}return a!==null&&o.push({start:e%i,end:a%i,loop:r}),o}function kie(t,e){const n=t.points,r=t.options.spanGaps,i=n.length;if(!i)return[];const o=!!t._loop,{start:a,end:s}=Tie(n,i,o,r);if(r===!0)return ok(t,[{start:a,end:s,loop:o}],n,e);const l=ss({chart:e,initial:n.initial,numSteps:a,currentStep:Math.min(r-n.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=TD.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const o=r.items;let a=o.length-1,s=!1,l;for(;a>=0;--a)l=o[a],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(e),s=!0):(o[a]=o[o.length-1],o.pop());s&&(i.draw(),this._notify(i,r,e,"progress")),o.length||(r.running=!1,this._notify(i,r,e,"complete"),r.initial=!1),n+=o.length}),this._lastDate=e,n===0&&(this._running=!1)}_getAnims(e){const n=this._charts;let r=n.get(e);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(e,r)),r}listen(e,n,r){this._getAnims(e).listeners[n].push(r)}add(e,n){!n||!n.length||this._getAnims(e).items.push(...n)}has(e){return this._getAnims(e).items.length>0}start(e){const n=this._charts.get(e);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(e){if(!this._running)return!1;const n=this._charts.get(e);return!(!n||!n.running||!n.items.length)}stop(e){const n=this._charts.get(e);if(!n||!n.items.length)return;const r=n.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();n.items=[],this._notify(e,n,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var ki=new Rie;const sk="transparent",Aie={boolean(t,e,n){return n>.5?e:t},color(t,e,n){const r=XC(t||sk),i=r.valid&&XC(e||sk);return i&&i.valid?i.mix(r,n).hexString():e},number(t,e,n){return t+(e-t)*n}};class Die{constructor(e,n,r,i){const o=n[r];i=Ru([e.to,i,o,e.from]);const a=Ru([e.from,o,i]);this._active=!0,this._fn=e.fn||Aie[e.type||typeof a],this._easing=rc[e.easing]||rc.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=n,this._prop=r,this._from=a,this._to=i,this._promises=void 0}active(){return this._active}update(e,n,r){if(this._active){this._notify(!1);const i=this._target[this._prop],o=r-this._start,a=this._duration-o;this._start=r,this._duration=Math.floor(Math.max(a,e.duration)),this._total+=o,this._loop=!!e.loop,this._to=Ru([e.to,n,i,e.from]),this._from=Ru([e.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const n=e-this._start,r=this._duration,i=this._prop,o=this._from,a=this._loop,s=this._to;let l;if(this._active=o!==s&&(a||n1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(o,s,l)}wait(){const e=this._promises||(this._promises=[]);return new Promise((n,r)=>{e.push({res:n,rej:r})})}_notify(e){const n=e?"res":"rej",r=this._promises||[];for(let i=0;i{const o=e[i];if(!et(o))return;const a={};for(const s of n)a[s]=o[s];(St(o.properties)&&o.properties||[i]).forEach(s=>{(s===i||!r.has(s))&&r.set(s,a)})})}_animateOptions(e,n){const r=n.options,i=Iie(e,r);if(!i)return[];const o=this._createAnimations(i,r);return r.$shared&&Nie(e.options.$animations,r).then(()=>{e.options=r},()=>{}),o}_createAnimations(e,n){const r=this._properties,i=[],o=e.$animations||(e.$animations={}),a=Object.keys(n),s=Date.now();let l;for(l=a.length-1;l>=0;--l){const c=a[l];if(c.charAt(0)==="$")continue;if(c==="options"){i.push(...this._animateOptions(e,n));continue}const f=n[c];let h=o[c];const p=r.get(c);if(h)if(p&&h.active()){h.update(p,f,s);continue}else h.cancel();if(!p||!p.duration){e[c]=f;continue}o[c]=h=new Die(p,e,c,f),i.push(h)}return i}update(e,n){if(this._properties.size===0){Object.assign(e,n);return}const r=this._createAnimations(e,n);if(r.length)return ki.add(this._chart,r),!0}}function Nie(t,e){const n=[],r=Object.keys(e);for(let i=0;i0||!n&&o<0)return i.index}return null}function dk(t,e){const{chart:n,_cachedMeta:r}=t,i=n._stacks||(n._stacks={}),{iScale:o,vScale:a,index:s}=r,l=o.axis,c=a.axis,f=Bie(o,a,r),h=e.length;let p;for(let m=0;mn[r].axis===e).shift()}function Uie(t,e){return la(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function Wie(t,e,n){return la(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}function vu(t,e){const n=t.controller.index,r=t.vScale&&t.vScale.axis;if(r){e=e||t._parsed;for(const i of e){const o=i._stacks;if(!o||o[r]===void 0||o[r][n]===void 0)return;delete o[r][n],o[r]._visualValues!==void 0&&o[r]._visualValues[n]!==void 0&&delete o[r]._visualValues[n]}}}const r_=t=>t==="reset"||t==="none",hk=(t,e)=>e?t:Object.assign({},t),Vie=(t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:ZD(n,!0),values:null};class Kr{constructor(e,n){this.chart=e,this._ctx=e.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=ck(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&vu(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(h,p,m,v)=>h==="x"?p:h==="r"?v:m,o=n.xAxisID=qe(r.xAxisID,n_(e,"x")),a=n.yAxisID=qe(r.yAxisID,n_(e,"y")),s=n.rAxisID=qe(r.rAxisID,n_(e,"r")),l=n.indexAxis,c=n.iAxisID=i(l,o,a,s),f=n.vAxisID=i(l,a,o,s);n.xScale=this.getScaleForId(o),n.yScale=this.getScaleForId(a),n.rScale=this.getScaleForId(s),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(f)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const n=this._cachedMeta;return e===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&ZC(this._data,this),e._stacked&&vu(e)}_dataCheck(){const e=this.getDataset(),n=e.data||(e.data=[]),r=this._data;if(et(n))this._data=jie(n);else if(r!==n){if(r){ZC(r,this);const i=this._cachedMeta;vu(i),i._parsed=[]}n&&Object.isExtensible(n)&&Mre(n,this),this._syncList=[],this._data=n}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const n=this._cachedMeta,r=this.getDataset();let i=!1;this._dataCheck();const o=n._stacked;n._stacked=ck(n.vScale,n),n.stack!==r.stack&&(i=!0,vu(n),n.stack=r.stack),this._resyncElements(e),(i||o!==n._stacked)&&dk(this,n._parsed)}configure(){const e=this.chart.config,n=e.datasetScopeKeys(this._type),r=e.getOptionScopes(this.getDataset(),n,!0);this.options=e.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,n){const{_cachedMeta:r,_data:i}=this,{iScale:o,_stacked:a}=r,s=o.axis;let l=e===0&&n===i.length?!0:r._sorted,c=e>0&&r._parsed[e-1],f,h,p;if(this._parsing===!1)r._parsed=i,r._sorted=!0,p=i;else{St(i[e])?p=this.parseArrayData(r,i,e,n):et(i[e])?p=this.parseObjectData(r,i,e,n):p=this.parsePrimitiveData(r,i,e,n);const m=()=>h[s]===null||c&&h[s]y||h=0;--p)if(!v()){this.updateRangeFromParsed(c,e,m,l);break}}return c}getAllParsedValues(e){const n=this._cachedMeta._parsed,r=[];let i,o,a;for(i=0,o=n.length;i=0&&ethis.getContext(r,i,n),y=c.resolveNamedOptions(p,m,v,h);return y.$shared&&(y.$shared=l,o[a]=Object.freeze(hk(y,l))),y}_resolveAnimations(e,n,r){const i=this.chart,o=this._cachedDataOpts,a=`animation-${n}`,s=o[a];if(s)return s;let l;if(i.options.animation!==!1){const f=this.chart.config,h=f.datasetAnimationScopeKeys(this._type,n),p=f.getOptionScopes(this.getDataset(),h);l=f.createResolver(p,this.getContext(e,r,n))}const c=new qD(i,l&&l.animations);return l&&l._cacheable&&(o[a]=Object.freeze(c)),c}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,n){return!n||r_(e)||this.chart._animationsDisabled}_getSharedOptions(e,n){const r=this.resolveDataElementOptions(e,n),i=this._sharedOptions,o=this.getSharedOptions(r),a=this.includeOptions(n,o)||o!==i;return this.updateSharedOptions(o,n,r),{sharedOptions:o,includeOptions:a}}updateElement(e,n,r,i){r_(i)?Object.assign(e,r):this._resolveAnimations(n,i).update(e,r)}updateSharedOptions(e,n,r){e&&!r_(n)&&this._resolveAnimations(void 0,n).update(e,r)}_setStyle(e,n,r,i){e.active=i;const o=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(e,{options:!i&&this.getSharedOptions(o)||o})}removeHoverStyle(e,n,r){this._setStyle(e,r,"active",!1)}setHoverStyle(e,n,r){this._setStyle(e,r,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const n=this._data,r=this._cachedMeta.data;for(const[s,l,c]of this._syncList)this[s](l,c);this._syncList=[];const i=r.length,o=n.length,a=Math.min(o,i);a&&this.parse(0,a),o>i?this._insertElements(i,o-i,e):o{for(c.length+=n,s=c.length-1;s>=a;s--)c[s]=c[s-n]};for(l(o),s=e;si-o))}return t._cache.$bar}function qie(t){const e=t.iScale,n=Yie(e,t.type);let r=e._length,i,o,a,s;const l=()=>{a===32767||a===-32768||(Lr(s)&&(r=Math.min(r,Math.abs(a-s)||r)),s=a)};for(i=0,o=n.length;i0?i[t-1]:null,s=tMath.abs(s)&&(l=s,c=a),e[n.axis]=c,e._custom={barStart:l,barEnd:c,start:i,end:o,min:a,max:s}}function GD(t,e,n,r){return St(t)?Kie(t,e,n,r):e[n.axis]=n.parse(t,r),e}function pk(t,e,n,r){const i=t.iScale,o=t.vScale,a=i.getLabels(),s=i===o,l=[];let c,f,h,p;for(c=n,f=n+r;c=n?1:-1)}function Qie(t){let e,n,r,i,o;return t.horizontal?(e=t.base>t.x,n="left",r="right"):(e=t.basel.controller.options.grouped),o=r.options.stacked,a=[],s=l=>{const c=l.controller.getParsed(n),f=c&&c[l.vScale.axis];if(at(f)||isNaN(f))return!0};for(const l of i)if(!(n!==void 0&&s(l))&&((o===!1||a.indexOf(l.stack)===-1||o===void 0&&l.stack===void 0)&&a.push(l.stack),l.index===e))break;return a.length||a.push(void 0),a}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,n,r){const i=this._getStacks(e,r),o=n!==void 0?i.indexOf(n):-1;return o===-1?i.length-1:o}_getRuler(){const e=this.options,n=this._cachedMeta,r=n.iScale,i=[];let o,a;for(o=0,a=n.data.length;o=0;--r)n=Math.max(n,e[r].size(this.resolveDataElementOptions(r))/2);return n>0&&n}getLabelAndValue(e){const n=this._cachedMeta,r=this.chart.data.labels||[],{xScale:i,yScale:o}=n,a=this.getParsed(e),s=i.getLabelForValue(a.x),l=o.getLabelForValue(a.y),c=a._custom;return{label:r[e]||"",value:"("+s+", "+l+(c?", "+c:"")+")"}}update(e){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,e)}updateElements(e,n,r,i){const o=i==="reset",{iScale:a,vScale:s}=this._cachedMeta,{sharedOptions:l,includeOptions:c}=this._getSharedOptions(n,i),f=a.axis,h=s.axis;for(let p=n;pqc(S,s,l,!0)?1:Math.max(O,O*n,M,M*n),v=(S,O,M)=>qc(S,s,l,!0)?-1:Math.min(O,O*n,M,M*n),y=m(0,c,h),w=m(zt,f,p),_=v(kt,c,h),b=v(kt+zt,f,p);r=(y-_)/2,i=(w-b)/2,o=-(y+_)/2,a=-(w+b)/2}return{ratioX:r,ratioY:i,offsetX:o,offsetY:a}}class Mo extends Kr{constructor(e,n){super(e,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,n){const r=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=r;else{let o=l=>+r[l];if(et(r[e])){const{key:l="value"}=this._parsing;o=c=>+ea(r[c],l)}let a,s;for(a=e,s=e+n;a0&&!isNaN(e)?Pt*(Math.abs(e)/n):0}getLabelAndValue(e){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],o=_f(n._parsed[e],r.options.locale);return{label:i[e]||"",value:o}}getMaxBorderWidth(e){let n=0;const r=this.chart;let i,o,a,s,l;if(!e){for(i=0,o=r.data.datasets.length;ie!=="spacing",_indexable:e=>e!=="spacing"}),je(Mo,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const n=e.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:i}}=e.legend.options;return n.labels.map((o,a)=>{const l=e.getDatasetMeta(0).controller.getStyle(a);return{text:o,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:i,lineWidth:l.borderWidth,pointStyle:r,hidden:!e.getDataVisibility(a),index:a}})}return[]}},onClick(e,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}}});class ac extends Kr{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const n=this._cachedMeta,{dataset:r,data:i=[],_dataset:o}=n,a=this.chart._animationsDisabled;let{start:s,count:l}=kD(n,i,a);this._drawStart=s,this._drawCount=l,MD(n)&&(s=0,l=i.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!o._decimated,r.points=i;const c=this.resolveDatasetElementOptions(e);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(r,void 0,{animated:!a,options:c},e),this.updateElements(i,s,l,e)}updateElements(e,n,r,i){const o=i==="reset",{iScale:a,vScale:s,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:f,includeOptions:h}=this._getSharedOptions(n,i),p=a.axis,m=s.axis,{spanGaps:v,segment:y}=this.options,w=Cl(v)?v:Number.POSITIVE_INFINITY,_=this.chart._animationsDisabled||o||i==="none",b=n+r,S=e.length;let O=n>0&&this.getParsed(n-1);for(let M=0;M=b){R.skip=!0;continue}const $=this.getParsed(M),U=at($[m]),I=R[p]=a.getPixelForValue($[p],M),H=R[m]=o||U?s.getBasePixel():s.getPixelForValue(l?this.applyStack(s,$,l):$[m],M);R.skip=isNaN(I)||isNaN(H)||U,R.stop=M>0&&Math.abs($[p]-O[p])>w,y&&(R.parsed=$,R.raw=c.data[M]),h&&(R.options=f||this.resolveDataElementOptions(M,C.active?"active":i)),_||this.updateElement(C,M,R,i),O=$}}getMaxOverflow(){const e=this._cachedMeta,n=e.dataset,r=n.options&&n.options.borderWidth||0,i=e.data||[];if(!i.length)return r;const o=i[0].size(this.resolveDataElementOptions(0)),a=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,o,a)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}je(ac,"id","line"),je(ac,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),je(ac,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class sc extends Kr{constructor(e,n){super(e,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],o=_f(n._parsed[e].r,r.options.locale);return{label:i[e]||"",value:o}}parseObjectData(e,n,r,i){return jD.bind(this)(e,n,r,i)}update(e){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,e)}getMinMax(){const e=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach((r,i)=>{const o=this.getParsed(i).r;!isNaN(o)&&this.chart.getDataVisibility(i)&&(on.max&&(n.max=o))}),n}_updateRadius(){const e=this.chart,n=e.chartArea,r=e.options,i=Math.min(n.right-n.left,n.bottom-n.top),o=Math.max(i/2,0),a=Math.max(r.cutoutPercentage?o/100*r.cutoutPercentage:1,0),s=(o-a)/e.getVisibleDatasetCount();this.outerRadius=o-s*this.index,this.innerRadius=this.outerRadius-s}updateElements(e,n,r,i){const o=i==="reset",a=this.chart,l=a.options.animation,c=this._cachedMeta.rScale,f=c.xCenter,h=c.yCenter,p=c.getIndexAngle(0)-.5*kt;let m=p,v;const y=360/this.countVisibleElements();for(v=0;v{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&n++}),n}_computeAngle(e,n,r){return this.chart.getDataVisibility(e)?Vr(this.resolveDataElementOptions(e,n).angle||r):0}}je(sc,"id","polarArea"),je(sc,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),je(sc,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const n=e.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:i}}=e.legend.options;return n.labels.map((o,a)=>{const l=e.getDatasetMeta(0).controller.getStyle(a);return{text:o,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:i,lineWidth:l.borderWidth,pointStyle:r,hidden:!e.getDataVisibility(a),index:a}})}return[]}},onClick(e,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class Ob extends Mo{}je(Ob,"id","pie"),je(Ob,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class Vh extends Kr{getLabelAndValue(e){const n=this._cachedMeta.vScale,r=this.getParsed(e);return{label:n.getLabels()[e],value:""+n.getLabelForValue(r[n.axis])}}parseObjectData(e,n,r,i){return jD.bind(this)(e,n,r,i)}update(e){const n=this._cachedMeta,r=n.dataset,i=n.data||[],o=n.iScale.getLabels();if(r.points=i,e!=="resize"){const a=this.resolveDatasetElementOptions(e);this.options.showLine||(a.borderWidth=0);const s={_loop:!0,_fullLoop:o.length===i.length,options:a};this.updateElement(r,void 0,s,e)}this.updateElements(i,0,i.length,e)}updateElements(e,n,r,i){const o=this._cachedMeta.rScale,a=i==="reset";for(let s=n;s0&&this.getParsed(n-1);for(let O=n;O0&&Math.abs(C[m]-S[m])>_,w&&(R.parsed=C,R.raw=c.data[O]),p&&(R.options=h||this.resolveDataElementOptions(O,M.active?"active":i)),b||this.updateElement(M,O,R,i),S=C}this.updateSharedOptions(h,i,f)}getMaxOverflow(){const e=this._cachedMeta,n=e.data||[];if(!this.options.showLine){let s=0;for(let l=n.length-1;l>=0;--l)s=Math.max(s,n[l].size(this.resolveDataElementOptions(l))/2);return s>0&&s}const r=e.dataset,i=r.options&&r.options.borderWidth||0;if(!n.length)return i;const o=n[0].size(this.resolveDataElementOptions(0)),a=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(i,o,a)/2}}je(Yh,"id","scatter"),je(Yh,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),je(Yh,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var roe=Object.freeze({__proto__:null,BarController:oc,BubbleController:Wh,DoughnutController:Mo,LineController:ac,PolarAreaController:sc,PieController:Ob,RadarController:Vh,ScatterController:Yh});function ya(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class kx{static override(e){Object.assign(kx.prototype,e)}constructor(e){this.options=e||{}}init(){}formats(){return ya()}parse(){return ya()}format(){return ya()}add(){return ya()}diff(){return ya()}startOf(){return ya()}endOf(){return ya()}}var ioe={_date:kx};function ooe(t,e,n,r){const{controller:i,data:o,_sorted:a}=t,s=i._cachedMeta.iScale;if(s&&e===s.axis&&e!=="r"&&a&&o.length){const l=s._reversePixels?Cre:Bi;if(r){if(i._sharedOptions){const c=o[0],f=typeof c.getRange=="function"&&c.getRange(e);if(f){const h=l(o,e,n-f),p=l(o,e,n+f);return{lo:h.lo,hi:p.hi}}}}else return l(o,e,n)}return{lo:0,hi:o.length-1}}function bf(t,e,n,r,i){const o=t.getSortedVisibleDatasetMetas(),a=n[e];for(let s=0,l=o.length;s{l[a](e[n],i)&&(o.push({element:l,datasetIndex:c,index:f}),s=s||l.inRange(e.x,e.y,i))}),r&&!s?[]:o}var uoe={evaluateInteractionItems:bf,modes:{index(t,e,n,r){const i=Pa(e,t),o=n.axis||"x",a=n.includeInvisible||!1,s=n.intersect?o_(t,i,o,r,a):a_(t,i,o,!1,r,a),l=[];return s.length?(t.getSortedVisibleDatasetMetas().forEach(c=>{const f=s[0].index,h=c.data[f];h&&!h.skip&&l.push({element:h,datasetIndex:c.index,index:f})}),l):[]},dataset(t,e,n,r){const i=Pa(e,t),o=n.axis||"xy",a=n.includeInvisible||!1;let s=n.intersect?o_(t,i,o,r,a):a_(t,i,o,!1,r,a);if(s.length>0){const l=s[0].datasetIndex,c=t.getDatasetMeta(l).data;s=[];for(let f=0;fn.pos===e)}function yk(t,e){return t.filter(n=>KD.indexOf(n.pos)===-1&&n.box.axis===e)}function _u(t,e){return t.sort((n,r)=>{const i=e?r:n,o=e?n:r;return i.weight===o.weight?i.index-o.index:i.weight-o.weight})}function coe(t){const e=[];let n,r,i,o,a,s;for(n=0,r=(t||[]).length;nc.box.fullSize),!0),r=_u(yu(e,"left"),!0),i=_u(yu(e,"right")),o=_u(yu(e,"top"),!0),a=_u(yu(e,"bottom")),s=yk(e,"x"),l=yk(e,"y");return{fullSize:n,leftAndTop:r.concat(o),rightAndBottom:i.concat(l).concat(a).concat(s),chartArea:yu(e,"chartArea"),vertical:r.concat(i).concat(l),horizontal:o.concat(a).concat(s)}}function _k(t,e,n,r){return Math.max(t[n],e[n])+Math.max(t[r],e[r])}function XD(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function poe(t,e,n,r){const{pos:i,box:o}=n,a=t.maxPadding;if(!et(i)){n.size&&(t[i]-=n.size);const h=r[n.stack]||{size:0,count:1};h.size=Math.max(h.size,n.horizontal?o.height:o.width),n.size=h.size/h.count,t[i]+=n.size}o.getPadding&&XD(a,o.getPadding());const s=Math.max(0,e.outerWidth-_k(a,t,"left","right")),l=Math.max(0,e.outerHeight-_k(a,t,"top","bottom")),c=s!==t.w,f=l!==t.h;return t.w=s,t.h=l,n.horizontal?{same:c,other:f}:{same:f,other:c}}function moe(t){const e=t.maxPadding;function n(r){const i=Math.max(e[r]-t[r],0);return t[r]+=i,i}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}function goe(t,e){const n=e.maxPadding;function r(i){const o={left:0,top:0,right:0,bottom:0};return i.forEach(a=>{o[a]=Math.max(e[a],n[a])}),o}return r(t?["left","right"]:["top","bottom"])}function Au(t,e,n,r){const i=[];let o,a,s,l,c,f;for(o=0,a=t.length,c=0;o{typeof y.beforeLayout=="function"&&y.beforeLayout()});const f=l.reduce((y,w)=>w.box.options&&w.box.options.display===!1?y:y+1,0)||1,h=Object.freeze({outerWidth:e,outerHeight:n,padding:i,availableWidth:o,availableHeight:a,vBoxMaxWidth:o/2/f,hBoxMaxHeight:a/2}),p=Object.assign({},i);XD(p,Bn(r));const m=Object.assign({maxPadding:p,w:o,h:a,x:i.left,y:i.top},i),v=doe(l.concat(c),h);Au(s.fullSize,m,h,v),Au(l,m,h,v),Au(c,m,h,v)&&Au(l,m,h,v),moe(m),bk(s.leftAndTop,m,h,v),m.x+=m.w,m.y+=m.h,bk(s.rightAndBottom,m,h,v),t.chartArea={left:m.left,top:m.top,right:m.left+m.w,bottom:m.top+m.h,height:m.h,width:m.w},ft(s.chartArea,y=>{const w=y.box;Object.assign(w,t.chartArea),w.update(m.w,m.h,{left:0,top:0,right:0,bottom:0})})}};class QD{acquireContext(e,n){}releaseContext(e){return!1}addEventListener(e,n,r){}removeEventListener(e,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(e,n,r,i){return n=Math.max(0,n||e.width),r=r||e.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(e){return!0}updateConfig(e){}}class voe extends QD{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const qh="$chartjs",yoe={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},wk=t=>t===null||t==="";function _oe(t,e){const n=t.style,r=t.getAttribute("height"),i=t.getAttribute("width");if(t[qh]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",wk(i)){const o=rk(t,"width");o!==void 0&&(t.width=o)}if(wk(r))if(t.style.height==="")t.height=t.width/(e||2);else{const o=rk(t,"height");o!==void 0&&(t.height=o)}return t}const JD=wie?{passive:!0}:!1;function boe(t,e,n){t.addEventListener(e,n,JD)}function woe(t,e,n){t.canvas.removeEventListener(e,n,JD)}function xoe(t,e){const n=yoe[t.type]||t.type,{x:r,y:i}=Pa(t,e);return{type:n,chart:e,native:t,x:r!==void 0?r:null,y:i!==void 0?i:null}}function Hm(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function Soe(t,e,n){const r=t.canvas,i=new MutationObserver(o=>{let a=!1;for(const s of o)a=a||Hm(s.addedNodes,r),a=a&&!Hm(s.removedNodes,r);a&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function Eoe(t,e,n){const r=t.canvas,i=new MutationObserver(o=>{let a=!1;for(const s of o)a=a||Hm(s.removedNodes,r),a=a&&!Hm(s.addedNodes,r);a&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const Kc=new Map;let xk=0;function eN(){const t=window.devicePixelRatio;t!==xk&&(xk=t,Kc.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function Ooe(t,e){Kc.size||window.addEventListener("resize",eN),Kc.set(t,e)}function Poe(t){Kc.delete(t),Kc.size||window.removeEventListener("resize",eN)}function Toe(t,e,n){const r=t.canvas,i=r&&Cx(r);if(!i)return;const o=CD((s,l)=>{const c=i.clientWidth;n(s,l),c{const l=s[0],c=l.contentRect.width,f=l.contentRect.height;c===0&&f===0||o(c,f)});return a.observe(i),Ooe(t,o),a}function s_(t,e,n){n&&n.disconnect(),e==="resize"&&Poe(t)}function Coe(t,e,n){const r=t.canvas,i=CD(o=>{t.ctx!==null&&n(xoe(o,t))},t);return boe(r,e,i),i}class koe extends QD{acquireContext(e,n){const r=e&&e.getContext&&e.getContext("2d");return r&&r.canvas===e?(_oe(e,n),r):null}releaseContext(e){const n=e.canvas;if(!n[qh])return!1;const r=n[qh].initial;["height","width"].forEach(o=>{const a=r[o];at(a)?n.removeAttribute(o):n.setAttribute(o,a)});const i=r.style||{};return Object.keys(i).forEach(o=>{n.style[o]=i[o]}),n.width=n.width,delete n[qh],!0}addEventListener(e,n,r){this.removeEventListener(e,n);const i=e.$proxies||(e.$proxies={}),a={attach:Soe,detach:Eoe,resize:Toe}[n]||Coe;i[n]=a(e,n,r)}removeEventListener(e,n){const r=e.$proxies||(e.$proxies={}),i=r[n];if(!i)return;({attach:s_,detach:s_,resize:s_}[n]||woe)(e,n,i),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,n,r,i){return bie(e,n,r,i)}isAttached(e){const n=Cx(e);return!!(n&&n.isConnected)}}function Moe(t){return!zD()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?voe:koe}var Fd;let ro=(Fd=class{constructor(){je(this,"active",!1)}tooltipPosition(e){const{x:n,y:r}=this.getProps(["x","y"],e);return{x:n,y:r}}hasValue(){return Cl(this.x)&&Cl(this.y)}getProps(e,n){const r=this.$animations;if(!n||!r)return this;const i={};return e.forEach(o=>{i[o]=r[o]&&r[o].active()?r[o]._to:this[o]}),i}},je(Fd,"defaults",{}),je(Fd,"defaultRoutes"),Fd);function Loe(t,e){const n=t.options.ticks,r=Roe(t),i=Math.min(n.maxTicksLimit||r,r),o=n.major.enabled?Doe(e):[],a=o.length,s=o[0],l=o[a-1],c=[];if(a>i)return Noe(e,c,o,a/i),c;const f=Aoe(o,e,i);if(a>0){let h,p;const m=a>1?Math.round((l-s)/(a-1)):null;for(Md(e,c,f,at(m)?0:s-m,s),h=0,p=a-1;hi)return l}return Math.max(i,1)}function Doe(t){const e=[];let n,r;for(n=0,r=t.length;nt==="left"?"right":t==="right"?"left":t,Sk=(t,e,n)=>e==="top"||e==="left"?t[e]+n:t[e]-n;function Ek(t,e){const n=[],r=t.length/e,i=t.length;let o=0;for(;oa+s)))return l}function joe(t,e){ft(t,n=>{const r=n.gc,i=r.length/2;let o;if(i>e){for(o=0;or?r:n,r=i&&n>r?n:r,{min:ar(n,ar(r,n)),max:ar(r,ar(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){yt(this.options.beforeUpdate,[this])}update(e,n,r){const{beginAtZero:i,grace:o,ticks:a}=this.options,s=a.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=Qre(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=s=o||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const f=this._getLabelSizes(),h=f.widest.width,p=f.highest.height,m=hn(this.chart.width-h,0,this.maxWidth);s=e.offset?this.maxWidth/r:m/(r-1),h+6>s&&(s=m/(r-(e.offset?.5:1)),l=this.maxHeight-bu(e.grid)-n.padding-Ok(e.title,this.chart.options.font),c=Math.sqrt(h*h+p*p),a=wx(Math.min(Math.asin(hn((f.highest.height+6)/s,-1,1)),Math.asin(hn(l/c,-1,1))-Math.asin(hn(p/c,-1,1)))),a=Math.max(i,Math.min(o,a))),this.labelRotation=a}afterCalculateLabelRotation(){yt(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){yt(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:o}}=this,a=this._isVisible(),s=this.isHorizontal();if(a){const l=Ok(i,n.options.font);if(s?(e.width=this.maxWidth,e.height=bu(o)+l):(e.height=this.maxHeight,e.width=bu(o)+l),r.display&&this.ticks.length){const{first:c,last:f,widest:h,highest:p}=this._getLabelSizes(),m=r.padding*2,v=Vr(this.labelRotation),y=Math.cos(v),w=Math.sin(v);if(s){const _=r.mirror?0:w*h.width+y*p.height;e.height=Math.min(this.maxHeight,e.height+_+m)}else{const _=r.mirror?0:y*h.width+w*p.height;e.width=Math.min(this.maxWidth,e.width+_+m)}this._calculatePadding(c,f,w,y)}}this._handleMargins(),s?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,n,r,i){const{ticks:{align:o,padding:a},position:s}=this.options,l=this.labelRotation!==0,c=s!=="top"&&this.axis==="x";if(this.isHorizontal()){const f=this.getPixelForTick(0)-this.left,h=this.right-this.getPixelForTick(this.ticks.length-1);let p=0,m=0;l?c?(p=i*e.width,m=r*n.height):(p=r*e.height,m=i*n.width):o==="start"?m=n.width:o==="end"?p=e.width:o!=="inner"&&(p=e.width/2,m=n.width/2),this.paddingLeft=Math.max((p-f+a)*this.width/(this.width-f),0),this.paddingRight=Math.max((m-h+a)*this.width/(this.width-h),0)}else{let f=n.height/2,h=e.height/2;o==="start"?(f=0,h=e.height):o==="end"&&(f=n.height,h=0),this.paddingTop=f+a,this.paddingBottom=h+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){yt(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:n}=this.options;return n==="top"||n==="bottom"||e==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let n,r;for(n=0,r=e.length;n({width:o[R]||0,height:a[R]||0});return{first:C(0),last:C(n-1),widest:C(O),highest:C(M),widths:o,heights:a}}getLabelForValue(e){return e}getPixelForValue(e,n){return NaN}getValueForPixel(e){}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const n=this._startPixel+e*this._length;return Tre(this._alignToPixels?va(this.chart,n,0):n)}getDecimalForPixel(e){const n=(e-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:n}=this;return e<0&&n<0?n:e>0&&n>0?e:0}getContext(e){const n=this.ticks||[];if(e>=0&&es*i?s/r:l/i:l*i0}_computeGridLineItems(e){const n=this.axis,r=this.chart,i=this.options,{grid:o,position:a,border:s}=i,l=o.offset,c=this.isHorizontal(),h=this.ticks.length+(l?1:0),p=bu(o),m=[],v=s.setContext(this.getContext()),y=v.display?v.width:0,w=y/2,_=function(re){return va(r,re,y)};let b,S,O,M,C,R,$,U,I,H,W,J;if(a==="top")b=_(this.bottom),R=this.bottom-p,U=b-w,H=_(e.top)+w,J=e.bottom;else if(a==="bottom")b=_(this.top),H=e.top,J=_(e.bottom)-w,R=b+w,U=this.top+p;else if(a==="left")b=_(this.right),C=this.right-p,$=b-w,I=_(e.left)+w,W=e.right;else if(a==="right")b=_(this.left),I=e.left,W=_(e.right)-w,C=b+w,$=this.left+p;else if(n==="x"){if(a==="center")b=_((e.top+e.bottom)/2+.5);else if(et(a)){const re=Object.keys(a)[0],se=a[re];b=_(this.chart.scales[re].getPixelForValue(se))}H=e.top,J=e.bottom,R=b+w,U=R+p}else if(n==="y"){if(a==="center")b=_((e.left+e.right)/2);else if(et(a)){const re=Object.keys(a)[0],se=a[re];b=_(this.chart.scales[re].getPixelForValue(se))}C=b-w,$=C-p,I=e.left,W=e.right}const Y=qe(i.ticks.maxTicksLimit,h),X=Math.max(1,Math.ceil(h/Y));for(S=0;So.value===e);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(e){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let o,a;const s=(l,c,f)=>{!f.width||!f.color||(r.save(),r.lineWidth=f.width,r.strokeStyle=f.color,r.setLineDash(f.borderDash||[]),r.lineDashOffset=f.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(c.x,c.y),r.stroke(),r.restore())};if(n.display)for(o=0,a=i.length;o{this.draw(o)}}]:[{z:r,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(e){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let o,a;for(o=0,a=n.length;o{const r=n.split("."),i=r.pop(),o=[t].concat(r).join("."),a=e[n].split("."),s=a.pop(),l=a.join(".");Kt.route(o,i,l,s)})}function Yoe(t){return"id"in t&&"defaults"in t}class qoe{constructor(){this.controllers=new Ld(Kr,"datasets",!0),this.elements=new Ld(ro,"elements"),this.plugins=new Ld(Object,"plugins"),this.scales=new Ld(cs,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,n,r){[...n].forEach(i=>{const o=r||this._getRegistryForType(i);r||o.isForType(i)||o===this.plugins&&i.id?this._exec(e,o,i):ft(i,a=>{const s=r||this._getRegistryForType(a);this._exec(e,s,a)})})}_exec(e,n,r){const i=bx(e);yt(r["before"+i],[],r),n[e](r),yt(r["after"+i],[],r)}_getRegistryForType(e){for(let n=0;no.filter(s=>!a.some(l=>s.plugin.id===l.plugin.id));this._notify(i(n,r),e,"stop"),this._notify(i(r,n),e,"start")}}function Goe(t){const e={},n=[],r=Object.keys(li.plugins.items);for(let o=0;o1&&Um(t[0].toLowerCase(),e),t))return t;throw new Error(`Cannot determine type of '${name}' axis. Please provide 'axis' or 'position' option.`)}function nae(t,e){const n=rs[t.type]||{scales:{}},r=e.scales||{},i=Pb(t.type,e),o=Object.create(null);return Object.keys(r).forEach(a=>{const s=r[a];if(!et(s))return console.error(`Invalid scale configuration for scale: ${a}`);if(s._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const l=Um(a,s),c=eae(l,i),f=n.scales||{};o[a]=tc(Object.create(null),[{axis:l},s,f[l],f[c]])}),t.data.datasets.forEach(a=>{const s=a.type||t.type,l=a.indexAxis||Pb(s,e),f=(rs[s]||{}).scales||{};Object.keys(f).forEach(h=>{const p=Joe(h,l),m=a[p+"AxisID"]||p;o[m]=o[m]||Object.create(null),tc(o[m],[{axis:p},r[m],f[h]])})}),Object.keys(o).forEach(a=>{const s=o[a];tc(s,[Kt.scales[s.type],Kt.scale])}),o}function tN(t){const e=t.options||(t.options={});e.plugins=qe(e.plugins,{}),e.scales=nae(t,e)}function nN(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function rae(t){return t=t||{},t.data=nN(t.data),tN(t),t}const Pk=new Map,rN=new Set;function Rd(t,e){let n=Pk.get(t);return n||(n=e(),Pk.set(t,n),rN.add(n)),n}const wu=(t,e,n)=>{const r=ea(e,n);r!==void 0&&t.add(r)};class iae{constructor(e){this._config=rae(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=nN(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),tN(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return Rd(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,n){return Rd(`${e}.transition.${n}`,()=>[[`datasets.${e}.transitions.${n}`,`transitions.${n}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,n){return Rd(`${e}-${n}`,()=>[[`datasets.${e}.elements.${n}`,`datasets.${e}`,`elements.${n}`,""]])}pluginScopeKeys(e){const n=e.id,r=this.type;return Rd(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,n){const r=this._scopeCache;let i=r.get(e);return(!i||n)&&(i=new Map,r.set(e,i)),i}getOptionScopes(e,n,r){const{options:i,type:o}=this,a=this._cachedScopes(e,r),s=a.get(n);if(s)return s;const l=new Set;n.forEach(f=>{e&&(l.add(e),f.forEach(h=>wu(l,e,h))),f.forEach(h=>wu(l,i,h)),f.forEach(h=>wu(l,rs[o]||{},h)),f.forEach(h=>wu(l,Kt,h)),f.forEach(h=>wu(l,Sb,h))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),rN.has(n)&&a.set(n,c),c}chartOptionScopes(){const{options:e,type:n}=this;return[e,rs[n]||{},Kt.datasets[n]||{},{type:n},Kt,Sb]}resolveNamedOptions(e,n,r,i=[""]){const o={$shared:!0},{resolver:a,subPrefixes:s}=Tk(this._resolverCache,e,i);let l=a;if(aae(a,n)){o.$shared=!1,r=ta(r)?r():r;const c=this.createResolver(e,r,s);l=kl(a,r,c)}for(const c of n)o[c]=l[c];return o}createResolver(e,n,r=[""],i){const{resolver:o}=Tk(this._resolverCache,e,r);return et(n)?kl(o,n,void 0,i):o}}function Tk(t,e,n){let r=t.get(e);r||(r=new Map,t.set(e,r));const i=n.join();let o=r.get(i);return o||(o={resolver:Ox(e,n),subPrefixes:n.filter(s=>!s.toLowerCase().includes("hover"))},r.set(i,o)),o}const oae=t=>et(t)&&Object.getOwnPropertyNames(t).reduce((e,n)=>e||ta(t[n]),!1);function aae(t,e){const{isScriptable:n,isIndexable:r}=ND(t);for(const i of e){const o=n(i),a=r(i),s=(a||o)&&t[i];if(o&&(ta(s)||oae(s))||a&&St(s))return!0}return!1}var sae="4.1.1";const lae=["top","bottom","left","right","chartArea"];function Ck(t,e){return t==="top"||t==="bottom"||lae.indexOf(t)===-1&&e==="x"}function kk(t,e){return function(n,r){return n[t]===r[t]?n[e]-r[e]:n[t]-r[t]}}function Mk(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),yt(n&&n.onComplete,[t],e)}function uae(t){const e=t.chart,n=e.options.animation;yt(n&&n.onProgress,[t],e)}function iN(t){return zD()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const Zh={},Lk=t=>{const e=iN(t);return Object.values(Zh).filter(n=>n.canvas===e).pop()};function cae(t,e,n){const r=Object.keys(t);for(const i of r){const o=+i;if(o>=e){const a=t[i];delete t[i],(n>0||o>e)&&(t[o+n]=a)}}}function fae(t,e,n,r){return!n||t.type==="mouseout"?null:r?e:t}function dae(t){const{xScale:e,yScale:n}=t;if(e&&n)return{left:e.left,right:e.right,top:n.top,bottom:n.bottom}}var co;let lv=(co=class{static register(...e){li.add(...e),Rk()}static unregister(...e){li.remove(...e),Rk()}constructor(e,n){const r=this.config=new iae(n),i=iN(e),o=Lk(i);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const a=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||Moe(i)),this.platform.updateConfig(r);const s=this.platform.acquireContext(i,a.aspectRatio),l=s&&s.canvas,c=l&&l.height,f=l&&l.width;if(this.id=mre(),this.ctx=s,this.canvas=l,this.width=f,this.height=c,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Zoe,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Lre(h=>this.update(h),a.resizeDelay||0),this._dataChanges=[],Zh[this.id]=this,!s||!l){console.error("Failed to create chart: can't acquire context from the given item");return}ki.listen(this,"complete",Mk),ki.listen(this,"progress",uae),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:n},width:r,height:i,_aspectRatio:o}=this;return at(e)?n&&o?o:i?r/i:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return li}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():nk(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return JC(this.canvas,this.ctx),this}stop(){return ki.stop(this),this}resize(e,n){ki.running(this)?this._resizeBeforeDraw={width:e,height:n}:this._resize(e,n)}_resize(e,n){const r=this.options,i=this.canvas,o=r.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(i,e,n,o),s=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,nk(this,s,!0)&&(this.notifyPlugins("resize",{size:a}),yt(r.onResize,[this,a],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};ft(n,(r,i)=>{r.id=i})}buildOrUpdateScales(){const e=this.options,n=e.scales,r=this.scales,i=Object.keys(r).reduce((a,s)=>(a[s]=!1,a),{});let o=[];n&&(o=o.concat(Object.keys(n).map(a=>{const s=n[a],l=Um(a,s),c=l==="r",f=l==="x";return{options:s,dposition:c?"chartArea":f?"bottom":"left",dtype:c?"radialLinear":f?"category":"linear"}}))),ft(o,a=>{const s=a.options,l=s.id,c=Um(l,s),f=qe(s.type,a.dtype);(s.position===void 0||Ck(s.position,c)!==Ck(a.dposition))&&(s.position=a.dposition),i[l]=!0;let h=null;if(l in r&&r[l].type===f)h=r[l];else{const p=li.getScale(f);h=new p({id:l,type:f,ctx:this.ctx,chart:this}),r[h.id]=h}h.init(s,e)}),ft(i,(a,s)=>{a||delete r[s]}),ft(r,a=>{Fn.configure(this,a,a.options),Fn.addBox(this,a)})}_updateMetasets(){const e=this._metasets,n=this.data.datasets.length,r=e.length;if(e.sort((i,o)=>i.index-o.index),r>n){for(let i=n;in.length&&delete this._stacks,e.forEach((r,i)=>{n.filter(o=>o===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const e=[],n=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=n.length;r{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let c=0,f=this.data.datasets.length;c{c.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(kk("z","_idx"));const{_active:s,_lastEvent:l}=this;l?this._eventHandler(l,!0):s.length&&this._updateHoverStyles(s,s,!0),this.render()}_updateScales(){ft(this.scales,e=>{Fn.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(e.events);(!WC(n,r)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:o}of n){const a=r==="_removeElements"?-o:o;cae(e,i,a)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=o=>new Set(e.filter(a=>a[0]===o).map((a,s)=>s+","+a.splice(1).join(","))),i=r(0);for(let o=1;oo.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Fn.update(this,this.width,this.height,e);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],ft(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,o)=>{i._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n=0;--n)this._drawDataset(e[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const n=this.ctx,r=e._clip,i=!r.disabled,o=dae(e)||this.chartArea,a={meta:e,index:e.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",a)!==!1&&(i&&ov(n,{left:r.left===!1?0:o.left-r.left,right:r.right===!1?this.width:o.right+r.right,top:r.top===!1?0:o.top-r.top,bottom:r.bottom===!1?this.height:o.bottom+r.bottom}),e.controller.draw(),i&&av(n),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(e){return Zc(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,n,r,i){const o=uoe.modes[n];return typeof o=="function"?o(this,e,r,i):[]}getDatasetMeta(e){const n=this.data.datasets[e],r=this._metasets;let i=r.filter(o=>o&&o._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:e,_dataset:n,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=la(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const n=this.data.datasets[e];if(!n)return!1;const r=this.getDatasetMeta(e);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(e,n){const r=this.getDatasetMeta(e);r.hidden=!n}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,n,r){const i=r?"show":"hide",o=this.getDatasetMeta(e),a=o.controller._resolveAnimations(void 0,i);Lr(n)?(o.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(e,r),a.update(o,{visible:r}),this.update(s=>s.datasetIndex===e?i:void 0))}hide(e,n){this._updateVisibility(e,n,!1)}show(e,n){this._updateVisibility(e,n,!0)}_destroyDatasetMeta(e){const n=this._metasets[e];n&&n.controller&&n.controller._destroy(),delete this._metasets[e]}_stop(){let e,n;for(this.stop(),ki.remove(this),e=0,n=this.data.datasets.length;e{n.addEventListener(this,o,a),e[o]=a},i=(o,a,s)=>{o.offsetX=a,o.offsetY=s,this._eventHandler(o)};ft(this.options.events,o=>r(o,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,n=this.platform,r=(l,c)=>{n.addEventListener(this,l,c),e[l]=c},i=(l,c)=>{e[l]&&(n.removeEventListener(this,l,c),delete e[l])},o=(l,c)=>{this.canvas&&this.resize(l,c)};let a;const s=()=>{i("attach",s),this.attached=!0,this.resize(),r("resize",o),r("detach",a)};a=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),r("attach",s)},n.isAttached(this.canvas)?s():a()}unbindEvents(){ft(this._listeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._listeners={},ft(this._responsiveListeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,n,r){const i=r?"set":"remove";let o,a,s,l;for(n==="dataset"&&(o=this.getDatasetMeta(e[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),s=0,l=e.length;s{const s=this.getDatasetMeta(o);if(!s)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:s.data[a],index:a}});!Fm(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(e,n,r){return this._plugins.notify(this,e,n,r)}isPluginEnabled(e){return this._plugins._cache.filter(n=>n.plugin.id===e).length===1}_updateHoverStyles(e,n,r){const i=this.options.hover,o=(l,c)=>l.filter(f=>!c.some(h=>f.datasetIndex===h.datasetIndex&&f.index===h.index)),a=o(n,e),s=r?e:o(e,n);a.length&&this.updateHoverStyle(a,i.mode,!1),s.length&&i.mode&&this.updateHoverStyle(s,i.mode,!0)}_eventHandler(e,n){const r={event:e,replay:n,cancelable:!0,inChartArea:this.isPointInArea(e)},i=a=>(a.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const o=this._handleEvent(e,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(o||r.changed)&&this.render(),this}_handleEvent(e,n,r){const{_active:i=[],options:o}=this,a=n,s=this._getActiveElements(e,i,r,a),l=wre(e),c=fae(e,this._lastEvent,r,l);r&&(this._lastEvent=null,yt(o.onHover,[e,s,this],this),l&&yt(o.onClick,[e,s,this],this));const f=!Fm(s,i);return(f||n)&&(this._active=s,this._updateHoverStyles(s,i,n)),this._lastEvent=c,f}_getActiveElements(e,n,r,i){if(e.type==="mouseout")return[];if(!r)return n;const o=this.options.hover;return this.getElementsAtEventForMode(e,o.mode,o,i)}},je(co,"defaults",Kt),je(co,"instances",Zh),je(co,"overrides",rs),je(co,"registry",li),je(co,"version",sae),je(co,"getChart",Lk),co);function Rk(){return ft(lv.instances,t=>t._plugins.invalidate())}function hae(t,e,n){const{startAngle:r,pixelMargin:i,x:o,y:a,outerRadius:s,innerRadius:l}=e;let c=i/s;t.beginPath(),t.arc(o,a,s,r-c,n+c),l>i?(c=i/l,t.arc(o,a,l,n+c,r-c,!0)):t.arc(o,a,i,n+zt,r-zt),t.closePath(),t.clip()}function pae(t){return Ex(t,["outerStart","outerEnd","innerStart","innerEnd"])}function mae(t,e,n,r){const i=pae(t.options.borderRadius),o=(n-e)/2,a=Math.min(o,r*e/2),s=l=>{const c=(n-Math.min(o,l))*r/2;return hn(l,0,Math.min(o,c))};return{outerStart:s(i.outerStart),outerEnd:s(i.outerEnd),innerStart:hn(i.innerStart,0,a),innerEnd:hn(i.innerEnd,0,a)}}function Cs(t,e,n,r){return{x:n+t*Math.cos(e),y:r+t*Math.sin(e)}}function Wm(t,e,n,r,i,o){const{x:a,y:s,startAngle:l,pixelMargin:c,innerRadius:f}=e,h=Math.max(e.outerRadius+r+n-c,0),p=f>0?f+r+n+c:0;let m=0;const v=i-l;if(r){const X=f>0?f-r:0,re=h>0?h-r:0,se=(X+re)/2,V=se!==0?v*se/(se+r):v;m=(v-V)/2}const y=Math.max(.001,v*h-n/kt)/h,w=(v-y)/2,_=l+w+m,b=i-w-m,{outerStart:S,outerEnd:O,innerStart:M,innerEnd:C}=mae(e,p,h,b-_),R=h-S,$=h-O,U=_+S/R,I=b-O/$,H=p+M,W=p+C,J=_+M/H,Y=b-C/W;if(t.beginPath(),o){const X=(U+I)/2;if(t.arc(a,s,h,U,X),t.arc(a,s,h,X,I),O>0){const N=Cs($,I,a,s);t.arc(N.x,N.y,O,I,b+zt)}const re=Cs(W,b,a,s);if(t.lineTo(re.x,re.y),C>0){const N=Cs(W,Y,a,s);t.arc(N.x,N.y,C,b+zt,Y+Math.PI)}const se=(b-C/p+(_+M/p))/2;if(t.arc(a,s,p,b-C/p,se,!0),t.arc(a,s,p,se,_+M/p,!0),M>0){const N=Cs(H,J,a,s);t.arc(N.x,N.y,M,J+Math.PI,_-zt)}const V=Cs(R,_,a,s);if(t.lineTo(V.x,V.y),S>0){const N=Cs(R,U,a,s);t.arc(N.x,N.y,S,_-zt,U)}}else{t.moveTo(a,s);const X=Math.cos(U)*h+a,re=Math.sin(U)*h+s;t.lineTo(X,re);const se=Math.cos(I)*h+a,V=Math.sin(I)*h+s;t.lineTo(se,V)}t.closePath()}function gae(t,e,n,r,i){const{fullCircles:o,startAngle:a,circumference:s}=e;let l=e.endAngle;if(o){Wm(t,e,n,r,l,i);for(let c=0;c=Pt||qc(o,s,l),y=ji(a,c+p,f+p);return v&&y}getCenterPoint(e){const{x:n,y:r,startAngle:i,endAngle:o,innerRadius:a,outerRadius:s}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],e),{offset:l,spacing:c}=this.options,f=(i+o)/2,h=(a+s+c+l)/2;return{x:n+Math.cos(f)*h,y:r+Math.sin(f)*h}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const{options:n,circumference:r}=this,i=(n.offset||0)/4,o=(n.spacing||0)/2,a=n.circular;if(this.pixelMargin=n.borderAlign==="inner"?.33:0,this.fullCircles=r>Pt?Math.floor(r/Pt):0,r===0||this.innerRadius<0||this.outerRadius<0)return;e.save();const s=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(s)*i,Math.sin(s)*i);const l=1-Math.sin(Math.min(kt,r||0)),c=i*l;e.fillStyle=n.backgroundColor,e.strokeStyle=n.borderColor,gae(e,this,c,o,a),vae(e,this,c,o,a),e.restore()}}je(Gh,"id","arc"),je(Gh,"defaults",{borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),je(Gh,"defaultRoutes",{backgroundColor:"backgroundColor"});function oN(t,e,n=e){t.lineCap=qe(n.borderCapStyle,e.borderCapStyle),t.setLineDash(qe(n.borderDash,e.borderDash)),t.lineDashOffset=qe(n.borderDashOffset,e.borderDashOffset),t.lineJoin=qe(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=qe(n.borderWidth,e.borderWidth),t.strokeStyle=qe(n.borderColor,e.borderColor)}function yae(t,e,n){t.lineTo(n.x,n.y)}function _ae(t){return t.stepped?Ure:t.tension||t.cubicInterpolationMode==="monotone"?Wre:yae}function aN(t,e,n={}){const r=t.length,{start:i=0,end:o=r-1}=n,{start:a,end:s}=e,l=Math.max(i,a),c=Math.min(o,s),f=is&&o>s;return{count:r,start:l,loop:e.loop,ilen:c(a+(c?s-O:O))%o,S=()=>{y!==w&&(t.lineTo(f,w),t.lineTo(f,y),t.lineTo(f,_))};for(l&&(m=i[b(0)],t.moveTo(m.x,m.y)),p=0;p<=s;++p){if(m=i[b(p)],m.skip)continue;const O=m.x,M=m.y,C=O|0;C===v?(Mw&&(w=M),f=(h*f+O)/++h):(S(),t.lineTo(O,M),v=C,h=0,y=w=M),_=M}S()}function Tb(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return!t._decimated&&!t._loop&&!e.tension&&e.cubicInterpolationMode!=="monotone"&&!e.stepped&&!n?wae:bae}function xae(t){return t.stepped?xie:t.tension||t.cubicInterpolationMode==="monotone"?Sie:Ta}function Sae(t,e,n,r){let i=e._path;i||(i=e._path=new Path2D,e.path(i,n,r)&&i.closePath()),oN(t,e.options),t.stroke(i)}function Eae(t,e,n,r){const{segments:i,options:o}=e,a=Tb(e);for(const s of i)oN(t,o,s.style),t.beginPath(),a(t,e,s,{start:n,end:n+r-1})&&t.closePath(),t.stroke()}const Oae=typeof Path2D=="function";function Pae(t,e,n,r){Oae&&!e.options.segment?Sae(t,e,n,r):Eae(t,e,n,r)}class Lo extends ro{constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const i=r.spanGaps?this._loop:this._fullLoop;pie(this._points,r,e,i,n),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=kie(this,this.options.segment))}first(){const e=this.segments,n=this.points;return e.length&&n[e[0].start]}last(){const e=this.segments,n=this.points,r=e.length;return r&&n[e[r-1].end]}interpolate(e,n){const r=this.options,i=e[n],o=this.points,a=YD(this,{property:n,start:i,end:i});if(!a.length)return;const s=[],l=xae(r);let c,f;for(c=0,f=a.length;ce!=="borderDash"&&e!=="fill"});function Ak(t,e,n,r){const i=t.options,{[n]:o}=t.getProps([n],r);return Math.abs(e-o)t.replace("rgb(","rgba(").replace(")",", 0.5)"));function lN(t){return Cb[t%Cb.length]}function uN(t){return Dk[t%Dk.length]}function Aae(t,e){return t.borderColor=lN(e),t.backgroundColor=uN(e),++e}function Dae(t,e){return t.backgroundColor=t.data.map(()=>lN(e++)),e}function Nae(t,e){return t.backgroundColor=t.data.map(()=>uN(e++)),e}function Iae(t){let e=0;return(n,r)=>{const i=t.getDatasetMeta(r).controller;i instanceof Mo?e=Dae(n,e):i instanceof sc?e=Nae(n,e):i&&(e=Aae(n,e))}}function Nk(t){let e;for(e in t)if(t[e].borderColor||t[e].backgroundColor)return!0;return!1}var Fae={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,e,n){if(!n.enabled)return;const{options:{elements:r},data:{datasets:i}}=t.config;if(!n.forceOverride&&(Nk(i)||r&&Nk(r)))return;const o=Iae(t);i.forEach(o)}};function $ae(t,e,n,r,i){const o=i.samples||r;if(o>=n)return t.slice(e,e+n);const a=[],s=(n-2)/(o-2);let l=0;const c=e+n-1;let f=e,h,p,m,v,y;for(a[l++]=t[f],h=0;hm&&(m=v,p=t[b],y=b);a[l++]=p,f=y}return a[l++]=t[c],a}function jae(t,e,n,r){let i=0,o=0,a,s,l,c,f,h,p,m,v,y;const w=[],_=e+n-1,b=t[e].x,O=t[_].x-b;for(a=e;ay&&(y=c,p=a),i=(o*i+s.x)/++o;else{const C=a-1;if(!at(h)&&!at(p)){const R=Math.min(h,p),$=Math.max(h,p);R!==m&&R!==C&&w.push({...t[R],x:i}),$!==m&&$!==C&&w.push({...t[$],x:i})}a>0&&C!==m&&w.push(t[C]),w.push(s),f=M,o=0,v=y=c,h=p=m=a}}return w}function cN(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{value:e})}}function Ik(t){t.data.datasets.forEach(e=>{cN(e)})}function Bae(t,e){const n=e.length;let r=0,i;const{iScale:o}=t,{min:a,max:s,minDefined:l,maxDefined:c}=o.getUserBounds();return l&&(r=hn(Bi(e,o.axis,a).lo,0,n-1)),c?i=hn(Bi(e,o.axis,s).hi+1,r,n)-r:i=n-r,{start:r,count:i}}var zae={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,n)=>{if(!n.enabled){Ik(t);return}const r=t.width;t.data.datasets.forEach((i,o)=>{const{_data:a,indexAxis:s}=i,l=t.getDatasetMeta(o),c=a||i.data;if(Ru([s,t.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;const f=t.scales[l.xAxisID];if(f.type!=="linear"&&f.type!=="time"||t.options.parsing)return;let{start:h,count:p}=Bae(l,c);const m=n.threshold||4*r;if(p<=m){cN(i);return}at(a)&&(i._data=c,delete i.data,Object.defineProperty(i,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(y){this._data=y}}));let v;switch(n.algorithm){case"lttb":v=$ae(c,h,p,r,n);break;case"min-max":v=jae(c,h,p,r);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}i._decimated=v})},destroy(t){Ik(t)}};function Hae(t,e,n){const r=t.segments,i=t.points,o=e.points,a=[];for(const s of r){let{start:l,end:c}=s;c=Mx(l,c,i);const f=kb(n,i[l],i[c],s.loop);if(!e.segments){a.push({source:s,target:f,start:i[l],end:i[c]});continue}const h=YD(e,f);for(const p of h){const m=kb(n,o[p.start],o[p.end],p.loop),v=VD(s,i,m);for(const y of v)a.push({source:y,target:p,start:{[n]:Fk(f,m,"start",Math.max)},end:{[n]:Fk(f,m,"end",Math.min)}})}}return a}function kb(t,e,n,r){if(r)return;let i=e[t],o=n[t];return t==="angle"&&(i=lr(i),o=lr(o)),{property:t,start:i,end:o}}function Uae(t,e){const{x:n=null,y:r=null}=t||{},i=e.points,o=[];return e.segments.forEach(({start:a,end:s})=>{s=Mx(a,s,i);const l=i[a],c=i[s];r!==null?(o.push({x:l.x,y:r}),o.push({x:c.x,y:r})):n!==null&&(o.push({x:n,y:l.y}),o.push({x:n,y:c.y}))}),o}function Mx(t,e,n){for(;e>t;e--){const r=n[e];if(!isNaN(r.x)&&!isNaN(r.y))break}return e}function Fk(t,e,n,r){return t&&e?r(t[n],e[n]):t?t[n]:e?e[n]:0}function fN(t,e){let n=[],r=!1;return St(t)?(r=!0,n=t):n=Uae(t,e),n.length?new Lo({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function $k(t){return t&&t.fill!==!1}function Wae(t,e,n){let i=t[e].fill;const o=[e];let a;if(!n)return i;for(;i!==!1&&o.indexOf(i)===-1;){if(!Bt(i))return i;if(a=t[i],!a)return!1;if(a.visible)return i;o.push(i),i=a.fill}return!1}function Vae(t,e,n){const r=Gae(t);if(et(r))return isNaN(r.value)?!1:r;let i=parseFloat(r);return Bt(i)&&Math.floor(i)===i?Yae(r[0],e,i,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function Yae(t,e,n,r){return(t==="-"||t==="+")&&(n=e+n),n===e||n<0||n>=r?!1:n}function qae(t,e){let n=null;return t==="start"?n=e.bottom:t==="end"?n=e.top:et(t)?n=e.getPixelForValue(t.value):e.getBasePixel&&(n=e.getBasePixel()),n}function Zae(t,e,n){let r;return t==="start"?r=n:t==="end"?r=e.options.reverse?e.min:e.max:et(t)?r=t.value:r=e.getBaseValue(),r}function Gae(t){const e=t.options,n=e.fill;let r=qe(n&&n.target,n);return r===void 0&&(r=!!e.backgroundColor),r===!1||r===null?!1:r===!0?"origin":r}function Kae(t){const{scale:e,index:n,line:r}=t,i=[],o=r.segments,a=r.points,s=Xae(e,n);s.push(fN({x:null,y:e.bottom},r));for(let l=0;l=0;--a){const s=i[a].$filler;s&&(s.line.updateControlPoints(o,s.axis),r&&s.fill&&c_(t.ctx,s,o))}},beforeDatasetsDraw(t,e,n){if(n.drawTime!=="beforeDatasetsDraw")return;const r=t.getSortedVisibleDatasetMetas();for(let i=r.length-1;i>=0;--i){const o=r[i].$filler;$k(o)&&c_(t.ctx,o,t.chartArea)}},beforeDatasetDraw(t,e,n){const r=e.meta.$filler;!$k(r)||n.drawTime!=="beforeDatasetDraw"||c_(t.ctx,r,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Hk=(t,e)=>{let{boxHeight:n=e,boxWidth:r=e}=t;return t.usePointStyle&&(n=Math.min(n,e),r=t.pointStyleWidth||Math.min(r,e)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(e,n)}},lse=(t,e)=>t!==null&&e!==null&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class Uk extends ro{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n,r){this.maxWidth=e,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let n=yt(e.generateLabels,[this.chart],this)||[];e.filter&&(n=n.filter(r=>e.filter(r,this.chart.data))),e.sort&&(n=n.sort((r,i)=>e.sort(r,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:e,ctx:n}=this;if(!e.display){this.width=this.height=0;return}const r=e.labels,i=sn(r.font),o=i.size,a=this._computeTitleHeight(),{boxWidth:s,itemHeight:l}=Hk(r,o);let c,f;n.font=i.string,this.isHorizontal()?(c=this.maxWidth,f=this._fitRows(a,o,s,l)+10):(f=this.maxHeight,c=this._fitCols(a,i,s,l)+10),this.width=Math.min(c,e.maxWidth||this.maxWidth),this.height=Math.min(f,e.maxHeight||this.maxHeight)}_fitRows(e,n,r,i){const{ctx:o,maxWidth:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],f=i+s;let h=e;o.textAlign="left",o.textBaseline="middle";let p=-1,m=-f;return this.legendItems.forEach((v,y)=>{const w=r+n/2+o.measureText(v.text).width;(y===0||c[c.length-1]+w+2*s>a)&&(h+=f,c[c.length-(y>0?0:1)]=0,m+=f,p++),l[y]={left:0,top:m,row:p,width:w,height:i},c[c.length-1]+=w+s}),h}_fitCols(e,n,r,i){const{ctx:o,maxHeight:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],f=a-e;let h=s,p=0,m=0,v=0,y=0;return this.legendItems.forEach((w,_)=>{const{itemWidth:b,itemHeight:S}=use(r,n,o,w,i);_>0&&m+S+2*s>f&&(h+=p+s,c.push({width:p,height:m}),v+=p+s,y++,p=m=0),l[_]={left:v,top:m,col:y,width:b,height:S},p=Math.max(p,b),m+=S+s}),h+=p,c.push({width:p,height:m}),h}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:o}}=this,a=ll(o,this.left,this.width);if(this.isHorizontal()){let s=0,l=Nn(r,this.left+i,this.right-this.lineWidths[s]);for(const c of n)s!==c.row&&(s=c.row,l=Nn(r,this.left+i,this.right-this.lineWidths[s])),c.top+=this.top+e+i,c.left=a.leftForLtr(a.x(l),c.width),l+=c.width+i}else{let s=0,l=Nn(r,this.top+e+i,this.bottom-this.columnSizes[s].height);for(const c of n)c.col!==s&&(s=c.col,l=Nn(r,this.top+e+i,this.bottom-this.columnSizes[s].height)),c.top=l,c.left+=this.left+i,c.left=a.leftForLtr(a.x(c.left),c.width),l+=c.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const e=this.ctx;ov(e,this),this._draw(),av(e)}}_draw(){const{options:e,columnSizes:n,lineWidths:r,ctx:i}=this,{align:o,labels:a}=e,s=Kt.color,l=ll(e.rtl,this.left,this.width),c=sn(a.font),{padding:f}=a,h=c.size,p=h/2;let m;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;const{boxWidth:v,boxHeight:y,itemHeight:w}=Hk(a,h),_=function(C,R,$){if(isNaN(v)||v<=0||isNaN(y)||y<0)return;i.save();const U=qe($.lineWidth,1);if(i.fillStyle=qe($.fillStyle,s),i.lineCap=qe($.lineCap,"butt"),i.lineDashOffset=qe($.lineDashOffset,0),i.lineJoin=qe($.lineJoin,"miter"),i.lineWidth=U,i.strokeStyle=qe($.strokeStyle,s),i.setLineDash(qe($.lineDash,[])),a.usePointStyle){const I={radius:y*Math.SQRT2/2,pointStyle:$.pointStyle,rotation:$.rotation,borderWidth:U},H=l.xPlus(C,v/2),W=R+p;AD(i,I,H,W,a.pointStyleWidth&&v)}else{const I=R+Math.max((h-y)/2,0),H=l.leftForLtr(C,v),W=Ha($.borderRadius);i.beginPath(),Object.values(W).some(J=>J!==0)?Gc(i,{x:H,y:I,w:v,h:y,radius:W}):i.rect(H,I,v,y),i.fill(),U!==0&&i.stroke()}i.restore()},b=function(C,R,$){is(i,$.text,C,R+w/2,c,{strikethrough:$.hidden,textAlign:l.textAlign($.textAlign)})},S=this.isHorizontal(),O=this._computeTitleHeight();S?m={x:Nn(o,this.left+f,this.right-r[0]),y:this.top+f+O,line:0}:m={x:this.left+f,y:Nn(o,this.top+O+f,this.bottom-n[0].height),line:0},HD(this.ctx,e.textDirection);const M=w+f;this.legendItems.forEach((C,R)=>{i.strokeStyle=C.fontColor,i.fillStyle=C.fontColor;const $=i.measureText(C.text).width,U=l.textAlign(C.textAlign||(C.textAlign=a.textAlign)),I=v+p+$;let H=m.x,W=m.y;l.setWidth(this.width),S?R>0&&H+I+f>this.right&&(W=m.y+=M,m.line++,H=m.x=Nn(o,this.left+f,this.right-r[m.line])):R>0&&W+M>this.bottom&&(H=m.x=H+n[m.line].width+f,m.line++,W=m.y=Nn(o,this.top+O+f,this.bottom-n[m.line].height));const J=l.x(H);if(_(J,W,C),H=Rre(U,H+v+p,S?H+I:this.right,e.rtl),b(l.x(H),W,C),S)m.x+=I+f;else if(typeof C.text!="string"){const Y=c.lineHeight;m.y+=hN(C,Y)}else m.y+=M}),UD(this.ctx,e.textDirection)}drawTitle(){const e=this.options,n=e.title,r=sn(n.font),i=Bn(n.padding);if(!n.display)return;const o=ll(e.rtl,this.left,this.width),a=this.ctx,s=n.position,l=r.size/2,c=i.top+l;let f,h=this.left,p=this.width;if(this.isHorizontal())p=Math.max(...this.lineWidths),f=this.top+c,h=Nn(e.align,h,this.right-p);else{const v=this.columnSizes.reduce((y,w)=>Math.max(y,w.height),0);f=c+Nn(e.align,this.top,this.bottom-v-e.labels.padding-this._computeTitleHeight())}const m=Nn(s,h,h+p);a.textAlign=o.textAlign(Sx(s)),a.textBaseline="middle",a.strokeStyle=n.color,a.fillStyle=n.color,a.font=r.string,is(a,n.text,m,f,r)}_computeTitleHeight(){const e=this.options.title,n=sn(e.font),r=Bn(e.padding);return e.display?n.lineHeight+r.height:0}_getLegendItemAt(e,n){let r,i,o;if(ji(e,this.left,this.right)&&ji(n,this.top,this.bottom)){for(o=this.legendHitBoxes,r=0;ro.length>a.length?o:a)),e+n.size/2+r.measureText(i).width}function fse(t,e,n){let r=t;return typeof e.text!="string"&&(r=hN(e,n)),r}function hN(t,e){const n=t.text?t.text.length+.5:0;return e*n}function dse(t,e){return!!((t==="mousemove"||t==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(t==="click"||t==="mouseup"))}var hse={id:"legend",_element:Uk,start(t,e,n){const r=t.legend=new Uk({ctx:t.ctx,options:n,chart:t});Fn.configure(t,r,n),Fn.addBox(t,r)},stop(t){Fn.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const r=t.legend;Fn.configure(t,r,n),r.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const r=e.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),e.hidden=!0):(i.show(r),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:o,useBorderRadius:a,borderRadius:s}}=t.legend.options;return t._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),f=Bn(c.borderWidth);return{text:e[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(f.width+f.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:a&&(s||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class Lx extends ro{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=e,this.height=this.bottom=n;const i=St(r.text)?r.text.length:1;this._padding=Bn(r.padding);const o=i*sn(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const e=this.options.position;return e==="top"||e==="bottom"}_drawArgs(e){const{top:n,left:r,bottom:i,right:o,options:a}=this,s=a.align;let l=0,c,f,h;return this.isHorizontal()?(f=Nn(s,r,o),h=n+e,c=o-r):(a.position==="left"?(f=r+e,h=Nn(s,i,n),l=kt*-.5):(f=o-e,h=Nn(s,n,i),l=kt*.5),c=i-n),{titleX:f,titleY:h,maxWidth:c,rotation:l}}draw(){const e=this.ctx,n=this.options;if(!n.display)return;const r=sn(n.font),o=r.lineHeight/2+this._padding.top,{titleX:a,titleY:s,maxWidth:l,rotation:c}=this._drawArgs(o);is(e,n.text,0,0,r,{color:n.color,maxWidth:l,rotation:c,textAlign:Sx(n.align),textBaseline:"middle",translation:[a,s]})}}function pse(t,e){const n=new Lx({ctx:t.ctx,options:e,chart:t});Fn.configure(t,n,e),Fn.addBox(t,n),t.titleBlock=n}var mse={id:"title",_element:Lx,start(t,e,n){pse(t,n)},stop(t){const e=t.titleBlock;Fn.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,n){const r=t.titleBlock;Fn.configure(t,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Ad=new WeakMap;var gse={id:"subtitle",start(t,e,n){const r=new Lx({ctx:t.ctx,options:n,chart:t});Fn.configure(t,r,n),Fn.addBox(t,r),Ad.set(t,r)},stop(t){Fn.removeBox(t,Ad.get(t)),Ad.delete(t)},beforeUpdate(t,e,n){const r=Ad.get(t);Fn.configure(t,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Du={average(t){if(!t.length)return!1;let e,n,r=0,i=0,o=0;for(e=0,n=t.length;e-1?t.split(` `):t}function vse(t,e){const{element:n,datasetIndex:r,index:i}=e,o=t.getDatasetMeta(r).controller,{label:a,value:s}=o.getLabelAndValue(i);return{chart:t,label:a,parsed:o.getParsed(i),raw:t.data.datasets[r].data[i],formattedValue:s,dataset:o.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function Wk(t,e){const n=t.chart.ctx,{body:r,footer:i,title:o}=t,{boxWidth:a,boxHeight:s}=e,l=sn(e.bodyFont),c=sn(e.titleFont),f=sn(e.footerFont),h=o.length,p=i.length,m=r.length,v=Bn(e.padding);let y=v.height,w=0,_=r.reduce((O,M)=>O+M.before.length+M.lines.length+M.after.length,0);if(_+=t.beforeBody.length+t.afterBody.length,h&&(y+=h*c.lineHeight+(h-1)*e.titleSpacing+e.titleMarginBottom),_){const O=e.displayColors?Math.max(s,l.lineHeight):l.lineHeight;y+=m*O+(_-m)*l.lineHeight+(_-1)*e.bodySpacing}p&&(y+=e.footerMarginTop+p*f.lineHeight+(p-1)*e.footerSpacing);let b=0;const S=function(O){w=Math.max(w,n.measureText(O).width+b)};return n.save(),n.font=c.string,ft(t.title,S),n.font=l.string,ft(t.beforeBody.concat(t.afterBody),S),b=e.displayColors?a+2+e.boxPadding:0,ft(r,O=>{ft(O.before,S),ft(O.lines,S),ft(O.after,S)}),b=0,n.font=f.string,ft(t.footer,S),n.restore(),w+=v.width,{width:w,height:y}}function yse(t,e){const{y:n,height:r}=e;return nt.height-r/2?"bottom":"center"}function _se(t,e,n,r){const{x:i,width:o}=r,a=n.caretSize+n.caretPadding;if(t==="left"&&i+o+a>e.width||t==="right"&&i-o-a<0)return!0}function bse(t,e,n,r){const{x:i,width:o}=n,{width:a,chartArea:{left:s,right:l}}=t;let c="center";return r==="center"?c=i<=(s+l)/2?"left":"right":i<=o/2?c="left":i>=a-o/2&&(c="right"),_se(c,t,e,n)&&(c="center"),c}function Vk(t,e,n){const r=n.yAlign||e.yAlign||yse(t,n);return{xAlign:n.xAlign||e.xAlign||bse(t,e,n,r),yAlign:r}}function wse(t,e){let{x:n,width:r}=t;return e==="right"?n-=r:e==="center"&&(n-=r/2),n}function xse(t,e,n){let{y:r,height:i}=t;return e==="top"?r+=n:e==="bottom"?r-=i+n:r-=i/2,r}function Yk(t,e,n,r){const{caretSize:i,caretPadding:o,cornerRadius:a}=t,{xAlign:s,yAlign:l}=n,c=i+o,{topLeft:f,topRight:h,bottomLeft:p,bottomRight:m}=Ha(a);let v=wse(e,s);const y=xse(e,l,c);return l==="center"?s==="left"?v+=c:s==="right"&&(v-=c):s==="left"?v-=Math.max(f,p)+i:s==="right"&&(v+=Math.max(h,m)+i),{x:hn(v,0,r.width-e.width),y:hn(y,0,r.height-e.height)}}function Dd(t,e,n){const r=Bn(n.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-r.right:t.x+r.left}function qk(t){return ai([],Mi(t))}function Sse(t,e,n){return la(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}function Zk(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const pN={beforeTitle:Ci,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(r>0&&e.dataIndex"u"?pN[e].call(n,r):i}class Mb extends ro{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const n=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&n.options.animation&&r.animations,o=new qD(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=Sse(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,n){const{callbacks:r}=n,i=Gn(r,"beforeTitle",this,e),o=Gn(r,"title",this,e),a=Gn(r,"afterTitle",this,e);let s=[];return s=ai(s,Mi(i)),s=ai(s,Mi(o)),s=ai(s,Mi(a)),s}getBeforeBody(e,n){return qk(Gn(n.callbacks,"beforeBody",this,e))}getBody(e,n){const{callbacks:r}=n,i=[];return ft(e,o=>{const a={before:[],lines:[],after:[]},s=Zk(r,o);ai(a.before,Mi(Gn(s,"beforeLabel",this,o))),ai(a.lines,Gn(s,"label",this,o)),ai(a.after,Mi(Gn(s,"afterLabel",this,o))),i.push(a)}),i}getAfterBody(e,n){return qk(Gn(n.callbacks,"afterBody",this,e))}getFooter(e,n){const{callbacks:r}=n,i=Gn(r,"beforeFooter",this,e),o=Gn(r,"footer",this,e),a=Gn(r,"afterFooter",this,e);let s=[];return s=ai(s,Mi(i)),s=ai(s,Mi(o)),s=ai(s,Mi(a)),s}_createItems(e){const n=this._active,r=this.chart.data,i=[],o=[],a=[];let s=[],l,c;for(l=0,c=n.length;le.filter(f,h,p,r))),e.itemSort&&(s=s.sort((f,h)=>e.itemSort(f,h,r))),ft(s,f=>{const h=Zk(e.callbacks,f);i.push(Gn(h,"labelColor",this,f)),o.push(Gn(h,"labelPointStyle",this,f)),a.push(Gn(h,"labelTextColor",this,f))}),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=a,this.dataPoints=s,s}update(e,n){const r=this.options.setContext(this.getContext()),i=this._active;let o,a=[];if(!i.length)this.opacity!==0&&(o={opacity:0});else{const s=Du[r.position].call(this,i,this._eventPosition);a=this._createItems(r),this.title=this.getTitle(a,r),this.beforeBody=this.getBeforeBody(a,r),this.body=this.getBody(a,r),this.afterBody=this.getAfterBody(a,r),this.footer=this.getFooter(a,r);const l=this._size=Wk(this,r),c=Object.assign({},s,l),f=Vk(this.chart,r,c),h=Yk(r,c,f,this.chart);this.xAlign=f.xAlign,this.yAlign=f.yAlign,o={opacity:1,x:h.x,y:h.y,width:l.width,height:l.height,caretX:s.x,caretY:s.y}}this._tooltipItems=a,this.$context=void 0,o&&this._resolveAnimations().update(this,o),e&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(e,n,r,i){const o=this.getCaretPosition(e,r,i);n.lineTo(o.x1,o.y1),n.lineTo(o.x2,o.y2),n.lineTo(o.x3,o.y3)}getCaretPosition(e,n,r){const{xAlign:i,yAlign:o}=this,{caretSize:a,cornerRadius:s}=r,{topLeft:l,topRight:c,bottomLeft:f,bottomRight:h}=Ha(s),{x:p,y:m}=e,{width:v,height:y}=n;let w,_,b,S,O,M;return o==="center"?(O=m+y/2,i==="left"?(w=p,_=w-a,S=O+a,M=O-a):(w=p+v,_=w+a,S=O-a,M=O+a),b=w):(i==="left"?_=p+Math.max(l,f)+a:i==="right"?_=p+v-Math.max(c,h)-a:_=this.caretX,o==="top"?(S=m,O=S-a,w=_-a,b=_+a):(S=m+y,O=S+a,w=_+a,b=_-a),M=S),{x1:w,x2:_,x3:b,y1:S,y2:O,y3:M}}drawTitle(e,n,r){const i=this.title,o=i.length;let a,s,l;if(o){const c=ll(r.rtl,this.x,this.width);for(e.x=Dd(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",a=sn(r.titleFont),s=r.titleSpacing,n.fillStyle=r.titleColor,n.font=a.string,l=0;lS!==0)?(e.beginPath(),e.fillStyle=o.multiKeyBackground,Gc(e,{x:w,y,w:c,h:l,radius:b}),e.fill(),e.stroke(),e.fillStyle=a.backgroundColor,e.beginPath(),Gc(e,{x:_,y:y+1,w:c-2,h:l-2,radius:b}),e.fill()):(e.fillStyle=o.multiKeyBackground,e.fillRect(w,y,c,l),e.strokeRect(w,y,c,l),e.fillStyle=a.backgroundColor,e.fillRect(_,y+1,c-2,l-2))}e.fillStyle=this.labelTextColors[r]}drawBody(e,n,r){const{body:i}=this,{bodySpacing:o,bodyAlign:a,displayColors:s,boxHeight:l,boxWidth:c,boxPadding:f}=r,h=sn(r.bodyFont);let p=h.lineHeight,m=0;const v=ll(r.rtl,this.x,this.width),y=function($){n.fillText($,v.x(e.x+m),e.y+p/2),e.y+=p+o},w=v.textAlign(a);let _,b,S,O,M,C,R;for(n.textAlign=a,n.textBaseline="middle",n.font=h.string,e.x=Dd(this,w,r),n.fillStyle=r.bodyColor,ft(this.beforeBody,y),m=s&&w!=="right"?a==="center"?c/2+f:c+2+f:0,O=0,C=i.length;O0&&n.stroke()}_updateAnimationTarget(e){const n=this.chart,r=this.$animations,i=r&&r.x,o=r&&r.y;if(i||o){const a=Du[e.position].call(this,this._active,this._eventPosition);if(!a)return;const s=this._size=Wk(this,e),l=Object.assign({},a,this._size),c=Vk(n,e,l),f=Yk(e,l,c,n);(i._to!==f.x||o._to!==f.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=s.width,this.height=s.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,f))}}_willRender(){return!!this.opacity}draw(e){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},o={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const a=Bn(n.padding),s=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&s&&(e.save(),e.globalAlpha=r,this.drawBackground(o,e,i,n),HD(e,n.textDirection),o.y+=a.top,this.drawTitle(o,e,n),this.drawBody(o,e,n),this.drawFooter(o,e,n),UD(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const r=this._active,i=e.map(({datasetIndex:s,index:l})=>{const c=this.chart.getDatasetMeta(s);if(!c)throw new Error("Cannot find a dataset at index "+s);return{datasetIndex:s,element:c.data[l],index:l}}),o=!Fm(r,i),a=this._positionChanged(i,n);(o||a)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,o=this._active||[],a=this._getActiveElements(e,o,n,r),s=this._positionChanged(a,e),l=n||!Fm(a,o)||s;return l&&(this._active=a,(i.enabled||i.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,n))),l}_getActiveElements(e,n,r,i){const o=this.options;if(e.type==="mouseout")return[];if(!i)return n;const a=this.chart.getElementsAtEventForMode(e,o.mode,o,r);return o.reverse&&a.reverse(),a}_positionChanged(e,n){const{caretX:r,caretY:i,options:o}=this,a=Du[o.position].call(this,e,n);return a!==!1&&(r!==a.x||i!==a.y)}}je(Mb,"positioners",Du);var Ese={id:"tooltip",_element:Mb,positioners:Du,afterInit(t,e,n){n&&(t.tooltip=new Mb({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(t.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:pN},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},Ose=Object.freeze({__proto__:null,Colors:Fae,Decimation:zae,Filler:sse,Legend:hse,SubTitle:gse,Title:mse,Tooltip:Ese});const Pse=(t,e,n,r)=>(typeof e=="string"?(n=t.push(e)-1,r.unshift({index:n,label:e})):isNaN(e)&&(n=null),n);function Tse(t,e,n,r){const i=t.indexOf(e);if(i===-1)return Pse(t,e,n,r);const o=t.lastIndexOf(e);return i!==o?n:i}const Cse=(t,e)=>t===null?null:hn(Math.round(t),0,e);function Gk(t){const e=this.getLabels();return t>=0&&tn.length-1?null:this.getPixelForValue(n[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}je(Lb,"id","category"),je(Lb,"defaults",{ticks:{callback:Gk}});function kse(t,e){const n=[],{bounds:i,step:o,min:a,max:s,precision:l,count:c,maxTicks:f,maxDigits:h,includeBounds:p}=t,m=o||1,v=f-1,{min:y,max:w}=e,_=!at(a),b=!at(s),S=!at(c),O=(w-y)/(h+1);let M=YC((w-y)/v/m)*m,C,R,$,U;if(M<1e-14&&!_&&!b)return[{value:y},{value:w}];U=Math.ceil(w/M)-Math.floor(y/M),U>v&&(M=YC(U*M/v/m)*m),at(l)||(C=Math.pow(10,l),M=Math.ceil(M*C)/C),i==="ticks"?(R=Math.floor(y/M)*M,$=Math.ceil(w/M)*M):(R=y,$=w),_&&b&&o&&Ore((s-a)/o,M/1e3)?(U=Math.round(Math.min((s-a)/M,f)),M=(s-a)/U,R=a,$=s):S?(R=_?a:R,$=b?s:$,U=c-1,M=($-R)/U):(U=($-R)/M,nc(U,Math.round(U),M/1e3)?U=Math.round(U):U=Math.ceil(U));const I=Math.max(qC(M),qC(R));C=Math.pow(10,at(l)?I:l),R=Math.round(R*C)/C,$=Math.round($*C)/C;let H=0;for(_&&(p&&R!==a?(n.push({value:a}),Ri=n?i:l,s=l=>o=r?o:l;if(e){const l=bi(i),c=bi(o);l<0&&c<0?s(0):l>0&&c>0&&a(0)}if(i===o){let l=o===0?1:Math.abs(o*.05);s(o+l),e||a(i-l)}this.min=i,this.max=o}getTickLimit(){const e=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=e,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,n=e.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,bounds:e.bounds,min:e.min,max:e.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},o=this._range||this,a=kse(i,o);return e.bounds==="ticks"&&SD(a,this,"value"),e.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){const e=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&e.length){const i=(r-n)/Math.max(e.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(e){return _f(e,this.chart.options.locale,this.options.ticks.format)}}class Rb extends Vm{determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=Bt(e)?e:0,this.max=Bt(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),n=e?this.width:this.height,r=Vr(this.options.ticks.minRotation),i=(e?Math.sin(r):Math.cos(r))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,o.lineHeight/i))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}je(Rb,"id","linear"),je(Rb,"defaults",{ticks:{callback:iv.formatters.numeric}});const Xc=t=>Math.floor(ko(t)),_a=(t,e)=>Math.pow(10,Xc(t)+e);function Xk(t){return t/Math.pow(10,Xc(t))===1}function Qk(t,e,n){const r=Math.pow(10,n),i=Math.floor(t/r);return Math.ceil(e/r)-i}function Mse(t,e){const n=e-t;let r=Xc(n);for(;Qk(t,e,r)>10;)r++;for(;Qk(t,e,r)<10;)r--;return Math.min(r,Xc(t))}function Lse(t,{min:e,max:n}){e=ar(t.min,e);const r=[],i=Xc(e);let o=Mse(e,n),a=o<0?Math.pow(10,Math.abs(o)):1;const s=Math.pow(10,o),l=i>o?Math.pow(10,i):0,c=Math.round((e-l)*a)/a,f=Math.floor((e-l)/s/10)*s*10;let h=Math.floor((c-f)/Math.pow(10,o)),p=ar(t.min,Math.round((l+f+h*Math.pow(10,o))*a)/a);for(;p=10?h=h<15?15:20:h++,h>=20&&(o++,h=2,a=o>=0?1:a),p=Math.round((l+f+h*Math.pow(10,o))*a)/a;const m=ar(t.max,p);return r.push({value:m,major:Xk(m),significand:h}),r}class Ab extends cs{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,n){const r=Vm.prototype.parse.apply(this,[e,n]);if(r===0){this._zero=!0;return}return Bt(r)&&r>0?r:null}determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=Bt(e)?Math.max(0,e):null,this.max=Bt(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Bt(this._userMin)&&(this.min=e===_a(this.min,0)?_a(this.min,-1):_a(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:e,maxDefined:n}=this.getUserBounds();let r=this.min,i=this.max;const o=s=>r=e?r:s,a=s=>i=n?i:s;r===i&&(r<=0?(o(1),a(10)):(o(_a(r,-1)),a(_a(i,1)))),r<=0&&o(_a(i,-1)),i<=0&&a(_a(r,1)),this.min=r,this.max=i}buildTicks(){const e=this.options,n={min:this._userMin,max:this._userMax},r=Lse(n,this);return e.bounds==="ticks"&&SD(r,this,"value"),e.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(e){return e===void 0?"0":_f(e,this.chart.options.locale,this.options.ticks.format)}configure(){const e=this.min;super.configure(),this._startValue=ko(e),this._valueRange=ko(this.max)-ko(e)}getPixelForValue(e){return(e===void 0||e===0)&&(e=this.min),e===null||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(ko(e)-this._startValue)/this._valueRange)}getValueForPixel(e){const n=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+n*this._valueRange)}}je(Ab,"id","logarithmic"),je(Ab,"defaults",{ticks:{callback:iv.formatters.logarithmic,major:{enabled:!0}}});function Db(t){const e=t.ticks;if(e.display&&t.display){const n=Bn(e.backdropPadding);return qe(e.font&&e.font.size,Kt.font.size)+n.height}return 0}function Rse(t,e,n){return n=St(n)?n:[n],{w:Hre(t,e.string,n),h:n.length*e.lineHeight}}function Jk(t,e,n,r,i){return t===r||t===i?{start:e-n/2,end:e+n/2}:ti?{start:e-n,end:e}:{start:e,end:e+n}}function Ase(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},n=Object.assign({},e),r=[],i=[],o=t._pointLabels.length,a=t.options.pointLabels,s=a.centerPointLabels?kt/o:0;for(let l=0;le.r&&(s=(r.end-e.r)/o,t.r=Math.max(t.r,e.r+s)),i.starte.b&&(l=(i.end-e.b)/a,t.b=Math.max(t.b,e.b+l))}function Nse(t,e,n){const r=[],i=t._pointLabels.length,o=t.options,a=Db(o)/2,s=t.drawingArea,l=o.pointLabels.centerPointLabels?kt/i:0;for(let c=0;c270||n<90)&&(t-=e),t}function jse(t,e){const{ctx:n,options:{pointLabels:r}}=t;for(let i=e-1;i>=0;i--){const o=r.setContext(t.getPointLabelContext(i)),a=sn(o.font),{x:s,y:l,textAlign:c,left:f,top:h,right:p,bottom:m}=t._pointLabelItems[i],{backdropColor:v}=o;if(!at(v)){const y=Ha(o.borderRadius),w=Bn(o.backdropPadding);n.fillStyle=v;const _=f-w.left,b=h-w.top,S=p-f+w.width,O=m-h+w.height;Object.values(y).some(M=>M!==0)?(n.beginPath(),Gc(n,{x:_,y:b,w:S,h:O,radius:y}),n.fill()):n.fillRect(_,b,S,O)}is(n,t._pointLabels[i],s,l+a.lineHeight/2,a,{color:o.color,textAlign:c,textBaseline:"middle"})}}function mN(t,e,n,r){const{ctx:i}=t;if(n)i.arc(t.xCenter,t.yCenter,e,0,Pt);else{let o=t.getPointPosition(0,e);i.moveTo(o.x,o.y);for(let a=1;a{const i=yt(this.options.pointLabels.callback,[n,r],this);return i||i===0?i:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const e=this.options;e.display&&e.pointLabels.display?Ase(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,n,r,i){this.xCenter+=Math.floor((e-n)/2),this.yCenter+=Math.floor((r-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,n,r,i))}getIndexAngle(e){const n=Pt/(this._pointLabels.length||1),r=this.options.startAngle||0;return lr(e*n+Vr(r))}getDistanceFromCenterForValue(e){if(at(e))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*n:(e-this.min)*n}getValueForDistanceFromCenter(e){if(at(e))return NaN;const n=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(e){const n=this._pointLabels||[];if(e>=0&&e{if(h!==0){l=this.getDistanceFromCenterForValue(f.value);const p=this.getContext(h),m=i.setContext(p),v=o.setContext(p);Bse(this,m,l,a,v)}}),r.display){for(e.save(),s=a-1;s>=0;s--){const f=r.setContext(this.getPointLabelContext(s)),{color:h,lineWidth:p}=f;!p||!h||(e.lineWidth=p,e.strokeStyle=h,e.setLineDash(f.borderDash),e.lineDashOffset=f.borderDashOffset,l=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),c=this.getPointPosition(s,l),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(c.x,c.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const i=this.getIndexAngle(0);let o,a;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(i),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach((s,l)=>{if(l===0&&!n.reverse)return;const c=r.setContext(this.getContext(l)),f=sn(c.font);if(o=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){e.font=f.string,a=e.measureText(s.label).width,e.fillStyle=c.backdropColor;const h=Bn(c.backdropPadding);e.fillRect(-a/2-h.left,-o-f.size/2-h.top,a+h.width,f.size+h.height)}is(e,s.label,0,-o,f,{color:c.color})}),e.restore()}drawTitle(){}}je(Nu,"id","radialLinear"),je(Nu,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:iv.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(e){return e},padding:5,centerPointLabels:!1}}),je(Nu,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),je(Nu,"descriptors",{angleLines:{_fallback:"grid"}});const uv={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Qn=Object.keys(uv);function Hse(t,e){return t-e}function eM(t,e){if(at(e))return null;const n=t._adapter,{parser:r,round:i,isoWeekday:o}=t._parseOpts;let a=e;return typeof r=="function"&&(a=r(a)),Bt(a)||(a=typeof r=="string"?n.parse(a,r):n.parse(a)),a===null?null:(i&&(a=i==="week"&&(Cl(o)||o===!0)?n.startOf(a,"isoWeek",o):n.startOf(a,i)),+a)}function tM(t,e,n,r){const i=Qn.length;for(let o=Qn.indexOf(t);o=Qn.indexOf(n);o--){const a=Qn[o];if(uv[a].common&&t._adapter.diff(i,r,a)>=e-1)return a}return Qn[n?Qn.indexOf(n):0]}function Wse(t){for(let e=Qn.indexOf(t)+1,n=Qn.length;e=e?n[r]:n[i];t[o]=!0}}function Vse(t,e,n,r){const i=t._adapter,o=+i.startOf(e[0].value,r),a=e[e.length-1].value;let s,l;for(s=o;s<=a;s=+i.add(s,1,r))l=n[s],l>=0&&(e[l].major=!0);return e}function rM(t,e,n){const r=[],i={},o=e.length;let a,s;for(a=0;a+e.value))}initOffsets(e=[]){let n=0,r=0,i,o;this.options.offset&&e.length&&(i=this.getDecimalForValue(e[0]),e.length===1?n=1-i:n=(this.getDecimalForValue(e[1])-i)/2,o=this.getDecimalForValue(e[e.length-1]),e.length===1?r=o:r=(o-this.getDecimalForValue(e[e.length-2]))/2);const a=e.length<3?.5:.25;n=hn(n,0,a),r=hn(r,0,a),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const e=this._adapter,n=this.min,r=this.max,i=this.options,o=i.time,a=o.unit||tM(o.minUnit,n,r,this._getLabelCapacity(n)),s=qe(i.ticks.stepSize,1),l=a==="week"?o.isoWeekday:!1,c=Cl(l)||l===!0,f={};let h=n,p,m;if(c&&(h=+e.startOf(h,"isoWeek",l)),h=+e.startOf(h,c?"day":a),e.diff(r,n,a)>1e5*s)throw new Error(n+" and "+r+" are too far apart with stepSize of "+s+" "+a);const v=i.ticks.source==="data"&&this.getDataTimestamps();for(p=h,m=0;py-w).map(y=>+y)}getLabelForValue(e){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(e,r.tooltipFormat):n.format(e,r.displayFormats.datetime)}_tickFormatFunction(e,n,r,i){const o=this.options,a=o.ticks.callback;if(a)return yt(a,[e,n,r],this);const s=o.time.displayFormats,l=this._unit,c=this._majorUnit,f=l&&s[l],h=c&&s[c],p=r[n],m=c&&h&&p&&p.major;return this._adapter.format(e,i||(m?h:f))}generateTickLabels(e){let n,r,i;for(n=0,r=e.length;n0?s:1}getDataTimestamps(){let e=this._cache.data||[],n,r;if(e.length)return e;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n=t[r].pos&&e<=t[i].pos&&({lo:r,hi:i}=Bi(t,"pos",e)),{pos:o,time:s}=t[r],{pos:a,time:l}=t[i]):(e>=t[r].time&&e<=t[i].time&&({lo:r,hi:i}=Bi(t,"time",e)),{time:o,pos:s}=t[r],{time:a,pos:l}=t[i]);const c=a-o;return c?s+(l-s)*(e-o)/c:s}class Nb extends Qc{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(e);this._minPos=Nd(n,this.min),this._tableRange=Nd(n,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:n,max:r}=this,i=[],o=[];let a,s,l,c,f;for(a=0,s=e.length;a=n&&c<=r&&i.push(c);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(a=0,s=i.length;a2&&arguments[2]!==void 0?arguments[2]:gN;const r=[];t.datasets=e.map(i=>{const o=t.datasets.find(a=>a[n]===i[n]);return!o||!i.data||r.includes(o)?{...i}:(r.push(o),Object.assign(o,i),o)})}function Gse(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gN;const n={labels:[],datasets:[]};return vN(n,t.labels),yN(n,t.datasets,e),n}function Qfe(t,e){return t.getElementsAtEventForMode(e.nativeEvent,"nearest",{intersect:!0},!1)}function Kse(t,e){const{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:o,type:a,data:s,options:l,plugins:c=[],fallbackContent:f,updateMode:h,...p}=t,m=Q.useRef(null),v=Q.useRef(),y=()=>{m.current&&(v.current=new lv(m.current,{type:a,data:Gse(s,o),options:l&&{...l},plugins:c}),iM(e,v.current))},w=()=>{iM(e,null),v.current&&(v.current.destroy(),v.current=null)};return Q.useEffect(()=>{!i&&v.current&&l&&Zse(v.current,l)},[i,l]),Q.useEffect(()=>{!i&&v.current&&vN(v.current.config.data,s.labels)},[i,s.labels]),Q.useEffect(()=>{!i&&v.current&&s.datasets&&yN(v.current.config.data,s.datasets,o)},[i,s.datasets]),Q.useEffect(()=>{v.current&&(i?(w(),setTimeout(y)):v.current.update(h))},[i,l,s.labels,s.datasets,h]),Q.useEffect(()=>{v.current&&(w(),setTimeout(y))},[a]),Q.useEffect(()=>(y(),()=>w()),[]),j.createElement("canvas",Object.assign({ref:m,role:"img",height:n,width:r},p),f)}const Xse=Q.forwardRef(Kse);function Rx(t,e){return lv.register(e),Q.forwardRef((n,r)=>j.createElement(Xse,Object.assign({},n,{ref:r,type:t})))}const Jfe=Rx("line",ac),ede=Rx("bar",oc),tde=Rx("doughnut",Mo),Qse={"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"},_N={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"},Vt={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},Un={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"},fo={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class _e{static getFirstMatch(e,n){const r=n.match(e);return r&&r.length>0&&r[1]||""}static getSecondMatch(e,n){const r=n.match(e);return r&&r.length>1&&r[2]||""}static matchAndReturnConst(e,n,r){if(e.test(n))return r}static getWindowsVersionName(e){switch(e){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(e){const n=e.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(e){const n=e.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(e){return e.split(".").length}static compareVersions(e,n,r=!1){const i=_e.getVersionPrecision(e),o=_e.getVersionPrecision(n);let a=Math.max(i,o),s=0;const l=_e.map([e,n],c=>{const f=a-_e.getVersionPrecision(c),h=c+new Array(f+1).join(".0");return _e.map(h.split("."),p=>new Array(20-p.length).join("0")+p).reverse()});for(r&&(s=a-Math.min(i,o)),a-=1;a>=s;){if(l[0][a]>l[1][a])return 1;if(l[0][a]===l[1][a]){if(a===s)return 0;a-=1}else if(l[0][a]{r[l]=a[l]})}return e}static getBrowserAlias(e){return Qse[e]}static getBrowserTypeByAlias(e){return _N[e]||""}}const gt=/version\/(\d+(\.?_?\d+)+)/i,Jse=[{test:[/googlebot/i],describe(t){const e={name:"Googlebot"},n=_e.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,t)||_e.getFirstMatch(gt,t);return n&&(e.version=n),e}},{test:[/opera/i],describe(t){const e={name:"Opera"},n=_e.getFirstMatch(gt,t)||_e.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/opr\/|opios/i],describe(t){const e={name:"Opera"},n=_e.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,t)||_e.getFirstMatch(gt,t);return n&&(e.version=n),e}},{test:[/SamsungBrowser/i],describe(t){const e={name:"Samsung Internet for Android"},n=_e.getFirstMatch(gt,t)||_e.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/Whale/i],describe(t){const e={name:"NAVER Whale Browser"},n=_e.getFirstMatch(gt,t)||_e.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/MZBrowser/i],describe(t){const e={name:"MZ Browser"},n=_e.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,t)||_e.getFirstMatch(gt,t);return n&&(e.version=n),e}},{test:[/focus/i],describe(t){const e={name:"Focus"},n=_e.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,t)||_e.getFirstMatch(gt,t);return n&&(e.version=n),e}},{test:[/swing/i],describe(t){const e={name:"Swing"},n=_e.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,t)||_e.getFirstMatch(gt,t);return n&&(e.version=n),e}},{test:[/coast/i],describe(t){const e={name:"Opera Coast"},n=_e.getFirstMatch(gt,t)||_e.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(t){const e={name:"Opera Touch"},n=_e.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,t)||_e.getFirstMatch(gt,t);return n&&(e.version=n),e}},{test:[/yabrowser/i],describe(t){const e={name:"Yandex Browser"},n=_e.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,t)||_e.getFirstMatch(gt,t);return n&&(e.version=n),e}},{test:[/ucbrowser/i],describe(t){const e={name:"UC Browser"},n=_e.getFirstMatch(gt,t)||_e.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/Maxthon|mxios/i],describe(t){const e={name:"Maxthon"},n=_e.getFirstMatch(gt,t)||_e.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/epiphany/i],describe(t){const e={name:"Epiphany"},n=_e.getFirstMatch(gt,t)||_e.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/puffin/i],describe(t){const e={name:"Puffin"},n=_e.getFirstMatch(gt,t)||_e.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/sleipnir/i],describe(t){const e={name:"Sleipnir"},n=_e.getFirstMatch(gt,t)||_e.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/k-meleon/i],describe(t){const e={name:"K-Meleon"},n=_e.getFirstMatch(gt,t)||_e.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/micromessenger/i],describe(t){const e={name:"WeChat"},n=_e.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,t)||_e.getFirstMatch(gt,t);return n&&(e.version=n),e}},{test:[/qqbrowser/i],describe(t){const e={name:/qqbrowserlite/i.test(t)?"QQ Browser Lite":"QQ Browser"},n=_e.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,t)||_e.getFirstMatch(gt,t);return n&&(e.version=n),e}},{test:[/msie|trident/i],describe(t){const e={name:"Internet Explorer"},n=_e.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/\sedg\//i],describe(t){const e={name:"Microsoft Edge"},n=_e.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/edg([ea]|ios)/i],describe(t){const e={name:"Microsoft Edge"},n=_e.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/vivaldi/i],describe(t){const e={name:"Vivaldi"},n=_e.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/seamonkey/i],describe(t){const e={name:"SeaMonkey"},n=_e.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/sailfish/i],describe(t){const e={name:"Sailfish"},n=_e.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,t);return n&&(e.version=n),e}},{test:[/silk/i],describe(t){const e={name:"Amazon Silk"},n=_e.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/phantom/i],describe(t){const e={name:"PhantomJS"},n=_e.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/slimerjs/i],describe(t){const e={name:"SlimerJS"},n=_e.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(t){const e={name:"BlackBerry"},n=_e.getFirstMatch(gt,t)||_e.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/(web|hpw)[o0]s/i],describe(t){const e={name:"WebOS Browser"},n=_e.getFirstMatch(gt,t)||_e.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/bada/i],describe(t){const e={name:"Bada"},n=_e.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/tizen/i],describe(t){const e={name:"Tizen"},n=_e.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,t)||_e.getFirstMatch(gt,t);return n&&(e.version=n),e}},{test:[/qupzilla/i],describe(t){const e={name:"QupZilla"},n=_e.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,t)||_e.getFirstMatch(gt,t);return n&&(e.version=n),e}},{test:[/firefox|iceweasel|fxios/i],describe(t){const e={name:"Firefox"},n=_e.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/electron/i],describe(t){const e={name:"Electron"},n=_e.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/MiuiBrowser/i],describe(t){const e={name:"Miui"},n=_e.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/chromium/i],describe(t){const e={name:"Chromium"},n=_e.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,t)||_e.getFirstMatch(gt,t);return n&&(e.version=n),e}},{test:[/chrome|crios|crmo/i],describe(t){const e={name:"Chrome"},n=_e.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/GSA/i],describe(t){const e={name:"Google Search"},n=_e.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test(t){const e=!t.test(/like android/i),n=t.test(/android/i);return e&&n},describe(t){const e={name:"Android Browser"},n=_e.getFirstMatch(gt,t);return n&&(e.version=n),e}},{test:[/playstation 4/i],describe(t){const e={name:"PlayStation 4"},n=_e.getFirstMatch(gt,t);return n&&(e.version=n),e}},{test:[/safari|applewebkit/i],describe(t){const e={name:"Safari"},n=_e.getFirstMatch(gt,t);return n&&(e.version=n),e}},{test:[/.*/i],describe(t){const e=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,i=t.search("\\(")!==-1?n:e;return{name:_e.getFirstMatch(i,t),version:_e.getSecondMatch(i,t)}}}],ele=[{test:[/Roku\/DVP/],describe(t){const e=_e.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,t);return{name:Un.Roku,version:e}}},{test:[/windows phone/i],describe(t){const e=_e.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,t);return{name:Un.WindowsPhone,version:e}}},{test:[/windows /i],describe(t){const e=_e.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,t),n=_e.getWindowsVersionName(e);return{name:Un.Windows,version:e,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(t){const e={name:Un.iOS},n=_e.getSecondMatch(/(Version\/)(\d[\d.]+)/,t);return n&&(e.version=n),e}},{test:[/macintosh/i],describe(t){const e=_e.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,t).replace(/[_\s]/g,"."),n=_e.getMacOSVersionName(e),r={name:Un.MacOS,version:e};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(t){const e=_e.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,t).replace(/[_\s]/g,".");return{name:Un.iOS,version:e}}},{test(t){const e=!t.test(/like android/i),n=t.test(/android/i);return e&&n},describe(t){const e=_e.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,t),n=_e.getAndroidVersionName(e),r={name:Un.Android,version:e};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(t){const e=_e.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,t),n={name:Un.WebOS};return e&&e.length&&(n.version=e),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(t){const e=_e.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,t)||_e.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,t)||_e.getFirstMatch(/\bbb(\d+)/i,t);return{name:Un.BlackBerry,version:e}}},{test:[/bada/i],describe(t){const e=_e.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,t);return{name:Un.Bada,version:e}}},{test:[/tizen/i],describe(t){const e=_e.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,t);return{name:Un.Tizen,version:e}}},{test:[/linux/i],describe(){return{name:Un.Linux}}},{test:[/CrOS/],describe(){return{name:Un.ChromeOS}}},{test:[/PlayStation 4/],describe(t){const e=_e.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,t);return{name:Un.PlayStation4,version:e}}}],tle=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(t){const e=_e.getFirstMatch(/(can-l01)/i,t)&&"Nova",n={type:Vt.mobile,vendor:"Huawei"};return e&&(n.model=e),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:Vt.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:Vt.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:Vt.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:Vt.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:Vt.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:Vt.tablet}}},{test(t){const e=t.test(/ipod|iphone/i),n=t.test(/like (ipod|iphone)/i);return e&&!n},describe(t){const e=_e.getFirstMatch(/(ipod|iphone)/i,t);return{type:Vt.mobile,vendor:"Apple",model:e}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:Vt.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:Vt.mobile}}},{test(t){return t.getBrowserName(!0)==="blackberry"},describe(){return{type:Vt.mobile,vendor:"BlackBerry"}}},{test(t){return t.getBrowserName(!0)==="bada"},describe(){return{type:Vt.mobile}}},{test(t){return t.getBrowserName()==="windows phone"},describe(){return{type:Vt.mobile,vendor:"Microsoft"}}},{test(t){const e=Number(String(t.getOSVersion()).split(".")[0]);return t.getOSName(!0)==="android"&&e>=3},describe(){return{type:Vt.tablet}}},{test(t){return t.getOSName(!0)==="android"},describe(){return{type:Vt.mobile}}},{test(t){return t.getOSName(!0)==="macos"},describe(){return{type:Vt.desktop,vendor:"Apple"}}},{test(t){return t.getOSName(!0)==="windows"},describe(){return{type:Vt.desktop}}},{test(t){return t.getOSName(!0)==="linux"},describe(){return{type:Vt.desktop}}},{test(t){return t.getOSName(!0)==="playstation 4"},describe(){return{type:Vt.tv}}},{test(t){return t.getOSName(!0)==="roku"},describe(){return{type:Vt.tv}}}],nle=[{test(t){return t.getBrowserName(!0)==="microsoft edge"},describe(t){if(/\sedg\//i.test(t))return{name:fo.Blink};const n=_e.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,t);return{name:fo.EdgeHTML,version:n}}},{test:[/trident/i],describe(t){const e={name:fo.Trident},n=_e.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test(t){return t.test(/presto/i)},describe(t){const e={name:fo.Presto},n=_e.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test(t){const e=t.test(/gecko/i),n=t.test(/like gecko/i);return e&&!n},describe(t){const e={name:fo.Gecko},n=_e.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:fo.Blink}}},{test:[/(apple)?webkit/i],describe(t){const e={name:fo.WebKit},n=_e.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}}];class oM{constructor(e,n=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},n!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};const e=_e.find(Jse,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 e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?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 e=_e.find(ele,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 e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){const{name:n}=this.getOS();return e?String(n).toLowerCase()||"":n||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){const{type:n}=this.getPlatform();return e?String(n).toLowerCase()||"":n||""}parsePlatform(){this.parsedResult.platform={};const e=_e.find(tle,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 e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};const e=_e.find(nle,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 e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return _e.assign({},this.parsedResult)}satisfies(e){const n={};let r=0;const i={};let o=0;if(Object.keys(e).forEach(s=>{const l=e[s];typeof l=="string"?(i[s]=l,o+=1):typeof l=="object"&&(n[s]=l,r+=1)}),r>0){const s=Object.keys(n),l=_e.find(s,f=>this.isOS(f));if(l){const f=this.satisfies(n[l]);if(f!==void 0)return f}const c=_e.find(s,f=>this.isPlatform(f));if(c){const f=this.satisfies(n[c]);if(f!==void 0)return f}}if(o>0){const s=Object.keys(i),l=_e.find(s,c=>this.isBrowser(c,!0));if(l!==void 0)return this.compareVersion(i[l])}}isBrowser(e,n=!1){const r=this.getBrowserName().toLowerCase();let i=e.toLowerCase();const o=_e.getBrowserTypeByAlias(i);return n&&o&&(i=o.toLowerCase()),i===r}compareVersion(e){let n=[0],r=e,i=!1;const o=this.getBrowserVersion();if(typeof o=="string")return e[0]===">"||e[0]==="<"?(r=e.substr(1),e[1]==="="?(i=!0,r=e.substr(2)):n=[],e[0]===">"?n.push(1):n.push(-1)):e[0]==="="?r=e.substr(1):e[0]==="~"&&(i=!0,r=e.substr(1)),n.indexOf(_e.compareVersions(o,r,i))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,n=!1){return this.isBrowser(e,n)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.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 nde{static getParser(e,n=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new oM(e,n)}static parse(e){return new oM(e).getResult()}static get BROWSER_MAP(){return _N}static get ENGINE_MAP(){return fo}static get OS_MAP(){return Un}static get PLATFORMS_MAP(){return Vt}}function rle(t){return j.createElement("button",{type:"button",className:t.classNames.selectedTag,title:t.removeButtonText,onClick:t.onDelete},j.createElement("span",{className:t.classNames.selectedTagName},t.tag.name))}const ile={position:"absolute",width:0,height:0,visibility:"hidden",overflow:"scroll",whiteSpace:"pre"},ole=["fontSize","fontFamily","fontWeight","fontStyle","letterSpacing","textTransform"];class ale extends j.Component{constructor(e){super(e),this.state={inputWidth:null},this.input=j.createRef(),this.sizer=j.createRef()}componentDidMount(){this.props.autoresize&&(this.copyInputStyles(),this.updateInputWidth())}componentDidUpdate({query:e,placeholderText:n}){(e!==this.props.query||n!==this.props.placeholderText)&&this.updateInputWidth()}copyInputStyles(){const e=window.getComputedStyle(this.input.current);ole.forEach(n=>{this.sizer.current.style[n]=e[n]})}updateInputWidth(){let e;this.props.autoresize&&(e=Math.ceil(this.sizer.current.scrollWidth)+2),e!==this.state.inputWidth&&this.setState({inputWidth:e})}render(){const{id:e,query:n,ariaLabelText:r,placeholderText:i,expanded:o,classNames:a,inputAttributes:s,inputEventHandlers:l,index:c}=this.props;return j.createElement("div",{className:a.searchWrapper},j.createElement("input",Object.assign({},s,l,{ref:this.input,value:n,placeholder:i,className:a.searchInput,role:"combobox","aria-autocomplete":"list","aria-label":r||i,"aria-owns":e,"aria-activedescendant":c>-1?`${e}-${c}`:null,"aria-expanded":o,style:{width:this.state.inputWidth}})),j.createElement("div",{ref:this.sizer,style:ile},n||i))}}function Ax(t){return t.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")}function sle(t){return new RegExp(Ax(t),"gi")}function lle(t){return new RegExp(`(?:^|\\s)${Ax(t)}`,"i")}function ule(t){return new RegExp(`^${Ax(t)}$`,"i")}function cle(t,e){const n=sle(e);return t.replace(n,"$&")}function fle({item:t,query:e}){return j.createElement("span",{dangerouslySetInnerHTML:{__html:cle(t.name,e)}})}function dle(t){const e=t.suggestionComponent||fle,n=t.options.map((r,i)=>{const o=`${t.id}-${i}`,a=[];return t.index===i&&a.push(t.classNames.suggestionActive),r.disabled&&a.push(t.classNames.suggestionDisabled),j.createElement("li",{id:o,key:o,role:"option",className:a.join(" "),"aria-disabled":Boolean(r.disabled),onMouseDown:s=>s.preventDefault(),onClick:()=>t.addTag(r)},r.prefix?j.createElement("span",{className:t.classNames.suggestionPrefix},r.prefix," "):null,r.disableMarkIt?r.name:j.createElement(e,{item:r,query:t.query}))});return j.createElement("div",{className:t.classNames.suggestions},j.createElement("ul",{role:"listbox",id:t.id},n))}function hle(t,e){const n=t.querySelectorAll("a,button,input"),r=Array.prototype.findIndex.call(n,o=>o===e),i=n[r-1]||n[r+1];i&&i.focus()}const ka={ENTER:"Enter",TAB:"Tab",BACKSPACE:"Backspace",UP_ARROW:"ArrowUp",UP_ARROW_COMPAT:"Up",DOWN_ARROW:"ArrowDown",DOWN_ARROW_COMPAT:"Down"},bN={root:"react-tags",rootFocused:"is-focused",selected:"react-tags__selected",selectedTag:"react-tags__selected-tag",selectedTagName:"react-tags__selected-tag-name",search:"react-tags__search",searchWrapper:"react-tags__search-wrapper",searchInput:"react-tags__search-input",suggestions:"react-tags__suggestions",suggestionActive:"is-active",suggestionDisabled:"is-disabled",suggestionPrefix:"react-tags__suggestion-prefix"};function wN(t,e){return t.findIndex(n=>ule(e).test(n.name))}function f_(){if(this.state.query.length>=this.props.minQueryLength){const t=wN(this.state.options,this.state.query),e=this.state.index===-1?t:this.state.index,n=e>-1?this.state.options[e]:null;n?this.addTag(n):this.props.allowNew&&this.addTag({name:this.state.query})}}function ple(t){t.preventDefault();const e=this.state.options.length-1;this.setState({index:this.state.index<=0?e:this.state.index-1})}function mle(t){t.preventDefault();const e=this.state.options.length-1;this.setState({index:this.state.index>=e?0:this.state.index+1})}function gle(){this.state.query.length||this.deleteTag(this.props.tags.length-1)}function vle(t,e){return lle(e).test(t.name)}function yle(t,e){let n;return t.suggestionsTransform?n=t.suggestionsTransform(e.query,t.suggestions):n=t.suggestions.filter(r=>t.suggestionsFilter(r,e.query)),n=n.slice(0,t.maxSuggestionsLength),t.allowNew&&t.newTagText&&wN(n,e.query)===-1?n.push({id:0,name:e.query,prefix:t.newTagText,disableMarkIt:!0}):t.noSuggestionsText&&n.length===0&&n.push({id:0,name:t.noSuggestionsText,disabled:!0,disableMarkIt:!0}),n}class xN extends j.Component{constructor(e){super(e),this.state={query:"",focused:!1,index:-1},this.inputEventHandlers={onChange:()=>{},onBlur:this.onBlur.bind(this),onFocus:this.onFocus.bind(this),onInput:this.onInput.bind(this),onKeyDown:this.onKeyDown.bind(this)},this.container=j.createRef(),this.input=j.createRef()}onInput(e){const n=e.target.value;this.props.onInput&&this.props.onInput(n),n.length===this.state.query.length+1&&this.props.delimiters.indexOf(n.slice(-1))>-1?f_.call(this):n!==this.state.query&&this.setState({query:n})}onKeyDown(e){this.props.delimiters.indexOf(e.key)>-1&&((this.state.query||this.state.index>-1)&&e.preventDefault(),f_.call(this)),e.key===ka.BACKSPACE&&this.props.allowBackspace&&gle.call(this,e),(e.key===ka.UP_ARROW||e.key===ka.UP_ARROW_COMPAT)&&ple.call(this,e),(e.key===ka.DOWN_ARROW||e.key===ka.DOWN_ARROW_COMPAT)&&mle.call(this,e)}onClick(e){document.activeElement!==e.target&&this.focusInput()}onBlur(){this.setState({focused:!1,index:-1}),this.props.onBlur&&this.props.onBlur(),this.props.addOnBlur&&f_.call(this)}onFocus(){this.setState({focused:!0}),this.props.onFocus&&this.props.onFocus()}onDeleteTag(e,n){this.container.current&&hle(this.container.current,n.currentTarget),this.deleteTag(e)}addTag(e){e.disabled||typeof this.props.onValidate=="function"&&!this.props.onValidate(e)||(this.props.onAddition({id:e.id,name:e.name}),this.clearInput())}deleteTag(e){this.props.onDelete(e)}clearInput(){this.setState({query:"",index:-1})}clearSelectedIndex(){this.setState({index:-1})}focusInput(){this.input.current&&this.input.current.input.current&&this.input.current.input.current.focus()}render(){const e=this.props.tagComponent||rle,n=this.state.focused&&this.state.query.length>=this.props.minQueryLength,r=Object.assign({},bN,this.props.classNames),i=[r.root];return this.state.focused&&i.push(r.rootFocused),j.createElement("div",{ref:this.container,className:i.join(" "),onClick:this.onClick.bind(this)},j.createElement("div",{className:r.selected,"aria-relevant":"additions removals","aria-live":"polite"},this.props.tags.map((o,a)=>j.createElement(e,{key:a,tag:o,removeButtonText:this.props.removeButtonText,classNames:r,onDelete:this.onDeleteTag.bind(this,a)}))),j.createElement("div",{className:r.search},j.createElement(ale,Object.assign({},this.state,{id:this.props.id,ref:this.input,classNames:r,inputAttributes:this.props.inputAttributes,inputEventHandlers:this.inputEventHandlers,autoresize:this.props.autoresize,expanded:n,placeholderText:this.props.placeholderText,ariaLabelText:this.props.ariaLabelText})),n&&this.state.options.length?j.createElement(dle,Object.assign({},this.state,{id:this.props.id,classNames:r,expanded:n,addTag:this.addTag.bind(this),suggestionComponent:this.props.suggestionComponent})):null))}static getDerivedStateFromProps(e,n){return n.prevQuery!==n.query||n.prevSuggestions!==e.suggestions?{prevQuery:n.query,prevSuggestions:e.suggestions,options:yle(e,n)}:null}}xN.defaultProps={id:"ReactTags",tags:[],placeholderText:"Add new tag",removeButtonText:"Click to remove tag",noSuggestionsText:null,newTagText:null,suggestions:[],suggestionsFilter:vle,suggestionsTransform:null,autoresize:!0,classNames:bN,delimiters:[ka.TAB,ka.ENTER],minQueryLength:2,maxSuggestionsLength:6,allowNew:!1,allowBackspace:!0,addOnBlur:!1,tagComponent:null,suggestionComponent:null,inputAttributes:{}};xN.propTypes={id:x.string,tags:x.arrayOf(x.object),placeholderText:x.string,ariaLabelText:x.string,removeButtonText:x.string,noSuggestionsText:x.string,newTagText:x.string,suggestions:x.arrayOf(x.object),suggestionsFilter:x.func,suggestionsTransform:x.func,autoresize:x.bool,delimiters:x.arrayOf(x.string),onDelete:x.func.isRequired,onAddition:x.func.isRequired,onInput:x.func,onFocus:x.func,onBlur:x.func,onValidate:x.func,minQueryLength:x.number,maxSuggestionsLength:x.number,classNames:x.object,allowNew:x.bool,allowBackspace:x.bool,addOnBlur:x.bool,tagComponent:x.oneOfType([x.func,x.element]),suggestionComponent:x.oneOfType([x.func,x.element]),inputAttributes:x.object};function cv(){return(cv=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}function Ib(t){var e=Q.useRef(t),n=Q.useRef(function(r){e.current&&e.current(r)});return e.current=t,n.current}var Jc=function(t,e,n){return e===void 0&&(e=0),n===void 0&&(n=1),t>n?n:t0:w.buttons>0)&&i.current?o(aM(i.current,w,s.current)):y(!1)},v=function(){return y(!1)};function y(w){var _=l.current,b=Fb(i.current),S=w?b.addEventListener:b.removeEventListener;S(_?"touchmove":"mousemove",m),S(_?"touchend":"mouseup",v)}return[function(w){var _=w.nativeEvent,b=i.current;if(b&&(sM(_),!function(O,M){return M&&!lc(O)}(_,l.current)&&b)){if(lc(_)){l.current=!0;var S=_.changedTouches||[];S.length&&(s.current=S[0].identifier)}b.focus(),o(aM(b,_,s.current)),y(!0)}},function(w){var _=w.which||w.keyCode;_<37||_>40||(w.preventDefault(),a({left:_===39?.05:_===37?-.05:0,top:_===40?.05:_===38?-.05:0}))},y]},[a,o]),f=c[0],h=c[1],p=c[2];return Q.useEffect(function(){return p},[p]),j.createElement("div",cv({},r,{onTouchStart:f,onMouseDown:f,className:"react-colorful__interactive",ref:i,onKeyDown:h,tabIndex:0,role:"slider"}))}),Dx=function(t){return t.filter(Boolean).join(" ")},ON=function(t){var e=t.color,n=t.left,r=t.top,i=r===void 0?.5:r,o=Dx(["react-colorful__pointer",t.className]);return j.createElement("div",{className:o,style:{top:100*i+"%",left:100*n+"%"}},j.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:e}}))},kn=function(t,e,n){return e===void 0&&(e=0),n===void 0&&(n=Math.pow(10,e)),Math.round(n*t)/n},_le=function(t){return Ele($b(t))},$b=function(t){return t[0]==="#"&&(t=t.substring(1)),t.length<6?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:t.length===4?kn(parseInt(t[3]+t[3],16)/255,2):1}:{r:parseInt(t.substring(0,2),16),g:parseInt(t.substring(2,4),16),b:parseInt(t.substring(4,6),16),a:t.length===8?kn(parseInt(t.substring(6,8),16)/255,2):1}},ble=function(t){return Sle(xle(t))},wle=function(t){var e=t.s,n=t.v,r=t.a,i=(200-e)*n/100;return{h:kn(t.h),s:kn(i>0&&i<200?e*n/100/(i<=100?i:200-i)*100:0),l:kn(i/2),a:kn(r,2)}},jb=function(t){var e=wle(t);return"hsl("+e.h+", "+e.s+"%, "+e.l+"%)"},xle=function(t){var e=t.h,n=t.s,r=t.v,i=t.a;e=e/360*6,n/=100,r/=100;var o=Math.floor(e),a=r*(1-n),s=r*(1-(e-o)*n),l=r*(1-(1-e+o)*n),c=o%6;return{r:kn(255*[r,s,a,a,l,r][c]),g:kn(255*[l,r,r,s,a,a][c]),b:kn(255*[a,a,l,r,r,s][c]),a:kn(i,2)}},Id=function(t){var e=t.toString(16);return e.length<2?"0"+e:e},Sle=function(t){var e=t.r,n=t.g,r=t.b,i=t.a,o=i<1?Id(kn(255*i)):"";return"#"+Id(e)+Id(n)+Id(r)+o},Ele=function(t){var e=t.r,n=t.g,r=t.b,i=t.a,o=Math.max(e,n,r),a=o-Math.min(e,n,r),s=a?o===e?(n-r)/a:o===n?2+(r-e)/a:4+(e-n)/a:0;return{h:kn(60*(s<0?s+6:s)),s:kn(o?a/o*100:0),v:kn(o/255*100),a:i}},Ole=j.memo(function(t){var e=t.hue,n=t.onChange,r=Dx(["react-colorful__hue",t.className]);return j.createElement("div",{className:r},j.createElement(EN,{onMove:function(i){n({h:360*i.left})},onKey:function(i){n({h:Jc(e+360*i.left,0,360)})},"aria-label":"Hue","aria-valuenow":kn(e),"aria-valuemax":"360","aria-valuemin":"0"},j.createElement(ON,{className:"react-colorful__hue-pointer",left:e/360,color:jb({h:e,s:100,v:100,a:1})})))}),Ple=j.memo(function(t){var e=t.hsva,n=t.onChange,r={backgroundColor:jb({h:e.h,s:100,v:100,a:1})};return j.createElement("div",{className:"react-colorful__saturation",style:r},j.createElement(EN,{onMove:function(i){n({s:100*i.left,v:100-100*i.top})},onKey:function(i){n({s:Jc(e.s+100*i.left,0,100),v:Jc(e.v-100*i.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+kn(e.s)+"%, Brightness "+kn(e.v)+"%"},j.createElement(ON,{className:"react-colorful__saturation-pointer",top:1-e.v/100,left:e.s/100,color:jb(e)})))}),PN=function(t,e){if(t===e)return!0;for(var n in t)if(t[n]!==e[n])return!1;return!0},Tle=function(t,e){return t.toLowerCase()===e.toLowerCase()||PN($b(t),$b(e))};function Cle(t,e,n){var r=Ib(n),i=Q.useState(function(){return t.toHsva(e)}),o=i[0],a=i[1],s=Q.useRef({color:e,hsva:o});Q.useEffect(function(){if(!t.equal(e,s.current.color)){var c=t.toHsva(e);s.current={hsva:c,color:e},a(c)}},[e,t]),Q.useEffect(function(){var c;PN(o,s.current.hsva)||t.equal(c=t.fromHsva(o),s.current.color)||(s.current={hsva:o,color:c},r(c))},[o,t,r]);var l=Q.useCallback(function(c){a(function(f){return Object.assign({},f,c)})},[]);return[o,l]}var kle=typeof window<"u"?Q.useLayoutEffect:Q.useEffect,Mle=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},lM=new Map,Lle=function(t){kle(function(){var e=t.current?t.current.ownerDocument:document;if(e!==void 0&&!lM.has(e)){var n=e.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,lM.set(e,n);var r=Mle();r&&n.setAttribute("nonce",r),e.head.appendChild(n)}},[])},Rle=function(t){var e=t.className,n=t.colorModel,r=t.color,i=r===void 0?n.defaultColor:r,o=t.onChange,a=SN(t,["className","colorModel","color","onChange"]),s=Q.useRef(null);Lle(s);var l=Cle(n,i,o),c=l[0],f=l[1],h=Dx(["react-colorful",e]);return j.createElement("div",cv({},a,{ref:s,className:h}),j.createElement(Ple,{hsva:c,onChange:f}),j.createElement(Ole,{hue:c.h,onChange:f,className:"react-colorful__last-control"}))},Ale={defaultColor:"000",toHsva:_le,fromHsva:function(t){return ble({h:t.h,s:t.s,v:t.v,a:1})},equal:Tle},rde=function(t){return j.createElement(Rle,cv({},t,{colorModel:Ale}))},ide=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,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(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch{typeof window=="object"&&(n=window)}t.exports=n},function(t,e,n){var r=n(6),i=Object.keys||function(v){var y=[];for(var w in v)y.push(w);return y};t.exports=h;var o=n(5);o.inherits=n(2);var a=n(23),s=n(14);o.inherits(h,a);for(var l=i(s.prototype),c=0;c * @license MIT */var i=n(38),o=n(39),a=n(40);function s(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(P,k){if(s()=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|P}function y(P,k){if(c.isBuffer(P))return P.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(P)||P instanceof ArrayBuffer))return P.byteLength;typeof P!="string"&&(P=""+P);var D=P.length;if(D===0)return 0;for(var G=!1;;)switch(k){case"ascii":case"latin1":case"binary":return D;case"utf8":case"utf-8":case void 0:return ne(P).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*D;case"hex":return D>>>1;case"base64":return ae(P).length;default:if(G)return ne(P).length;k=(""+k).toLowerCase(),G=!0}}function w(P,k,D){var G=P[k];P[k]=P[D],P[D]=G}function _(P,k,D,G,Z){if(P.length===0)return-1;if(typeof D=="string"?(G=D,D=0):D>2147483647?D=2147483647:D<-2147483648&&(D=-2147483648),D=+D,isNaN(D)&&(D=Z?0:P.length-1),D<0&&(D=P.length+D),D>=P.length){if(Z)return-1;D=P.length-1}else if(D<0){if(!Z)return-1;D=0}if(typeof k=="string"&&(k=c.from(k,G)),c.isBuffer(k))return k.length===0?-1:b(P,k,D,G,Z);if(typeof k=="number")return k&=255,c.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?Z?Uint8Array.prototype.indexOf.call(P,k,D):Uint8Array.prototype.lastIndexOf.call(P,k,D):b(P,[k],D,G,Z);throw new TypeError("val must be string, number or Buffer")}function b(P,k,D,G,Z){var ie,pe=1,Le=P.length,ue=k.length;if(G!==void 0&&((G=String(G).toLowerCase())==="ucs2"||G==="ucs-2"||G==="utf16le"||G==="utf-16le")){if(P.length<2||k.length<2)return-1;pe=2,Le/=2,ue/=2,D/=2}function me(ke,Me){return pe===1?ke[Me]:ke.readUInt16BE(Me*pe)}if(Z){var ve=-1;for(ie=D;ieLe&&(D=Le-ue),ie=D;ie>=0;ie--){for(var Se=!0,Re=0;ReZ&&(G=Z):G=Z;var ie=k.length;if(ie%2!=0)throw new TypeError("Invalid hex string");G>ie/2&&(G=ie/2);for(var pe=0;pe>8,ue=pe%256,me.push(ue),me.push(Le);return me}(k,P.length-D),P,D,G)}function U(P,k,D){return k===0&&D===P.length?i.fromByteArray(P):i.fromByteArray(P.slice(k,D))}function I(P,k,D){D=Math.min(P.length,D);for(var G=[],Z=k;Z239?4:me>223?3:me>191?2:1;if(Z+Se<=D)switch(Se){case 1:me<128&&(ve=me);break;case 2:(192&(ie=P[Z+1]))==128&&(ue=(31&me)<<6|63&ie)>127&&(ve=ue);break;case 3:ie=P[Z+1],pe=P[Z+2],(192&ie)==128&&(192&pe)==128&&(ue=(15&me)<<12|(63&ie)<<6|63&pe)>2047&&(ue<55296||ue>57343)&&(ve=ue);break;case 4:ie=P[Z+1],pe=P[Z+2],Le=P[Z+3],(192&ie)==128&&(192&pe)==128&&(192&Le)==128&&(ue=(15&me)<<18|(63&ie)<<12|(63&pe)<<6|63&Le)>65535&&ue<1114112&&(ve=ue)}ve===null?(ve=65533,Se=1):ve>65535&&(ve-=65536,G.push(ve>>>10&1023|55296),ve=56320|1023&ve),G.push(ve),Z+=Se}return function(Re){var ke=Re.length;if(ke<=H)return String.fromCharCode.apply(String,Re);for(var Me="",le=0;lethis.length||((G===void 0||G>this.length)&&(G=this.length),G<=0)||(G>>>=0)<=(D>>>=0))return"";for(k||(k="utf8");;)switch(k){case"hex":return Y(this,D,G);case"utf8":case"utf-8":return I(this,D,G);case"ascii":return W(this,D,G);case"latin1":case"binary":return J(this,D,G);case"base64":return U(this,D,G);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return X(this,D,G);default:if(Z)throw new TypeError("Unknown encoding: "+k);k=(k+"").toLowerCase(),Z=!0}}.apply(this,arguments)},c.prototype.equals=function(P){if(!c.isBuffer(P))throw new TypeError("Argument must be a Buffer");return this===P||c.compare(this,P)===0},c.prototype.inspect=function(){var P="",k=e.INSPECT_MAX_BYTES;return this.length>0&&(P=this.toString("hex",0,k).match(/.{2}/g).join(" "),this.length>k&&(P+=" ... ")),""},c.prototype.compare=function(P,k,D,G,Z){if(!c.isBuffer(P))throw new TypeError("Argument must be a Buffer");if(k===void 0&&(k=0),D===void 0&&(D=P?P.length:0),G===void 0&&(G=0),Z===void 0&&(Z=this.length),k<0||D>P.length||G<0||Z>this.length)throw new RangeError("out of range index");if(G>=Z&&k>=D)return 0;if(G>=Z)return-1;if(k>=D)return 1;if(k>>>=0,D>>>=0,G>>>=0,Z>>>=0,this===P)return 0;for(var ie=Z-G,pe=D-k,Le=Math.min(ie,pe),ue=this.slice(G,Z),me=P.slice(k,D),ve=0;veZ)&&(D=Z),P.length>0&&(D<0||k<0)||k>this.length)throw new RangeError("Attempt to write outside buffer bounds");G||(G="utf8");for(var ie=!1;;)switch(G){case"hex":return S(this,P,k,D);case"utf8":case"utf-8":return O(this,P,k,D);case"ascii":return M(this,P,k,D);case"latin1":case"binary":return C(this,P,k,D);case"base64":return R(this,P,k,D);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $(this,P,k,D);default:if(ie)throw new TypeError("Unknown encoding: "+G);G=(""+G).toLowerCase(),ie=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var H=4096;function W(P,k,D){var G="";D=Math.min(P.length,D);for(var Z=k;ZG)&&(D=G);for(var Z="",ie=k;ieD)throw new RangeError("Trying to access beyond buffer length")}function se(P,k,D,G,Z,ie){if(!c.isBuffer(P))throw new TypeError('"buffer" argument must be a Buffer instance');if(k>Z||kP.length)throw new RangeError("Index out of range")}function V(P,k,D,G){k<0&&(k=65535+k+1);for(var Z=0,ie=Math.min(P.length-D,2);Z>>8*(G?Z:1-Z)}function N(P,k,D,G){k<0&&(k=4294967295+k+1);for(var Z=0,ie=Math.min(P.length-D,4);Z>>8*(G?Z:3-Z)&255}function A(P,k,D,G,Z,ie){if(D+G>P.length)throw new RangeError("Index out of range");if(D<0)throw new RangeError("Index out of range")}function B(P,k,D,G,Z){return Z||A(P,0,D,4),o.write(P,k,D,G,23,4),D+4}function ee(P,k,D,G,Z){return Z||A(P,0,D,8),o.write(P,k,D,G,52,8),D+8}c.prototype.slice=function(P,k){var D,G=this.length;if(P=~~P,k=k===void 0?G:~~k,P<0?(P+=G)<0&&(P=0):P>G&&(P=G),k<0?(k+=G)<0&&(k=0):k>G&&(k=G),k0&&(Z*=256);)G+=this[P+--k]*Z;return G},c.prototype.readUInt8=function(P,k){return k||re(P,1,this.length),this[P]},c.prototype.readUInt16LE=function(P,k){return k||re(P,2,this.length),this[P]|this[P+1]<<8},c.prototype.readUInt16BE=function(P,k){return k||re(P,2,this.length),this[P]<<8|this[P+1]},c.prototype.readUInt32LE=function(P,k){return k||re(P,4,this.length),(this[P]|this[P+1]<<8|this[P+2]<<16)+16777216*this[P+3]},c.prototype.readUInt32BE=function(P,k){return k||re(P,4,this.length),16777216*this[P]+(this[P+1]<<16|this[P+2]<<8|this[P+3])},c.prototype.readIntLE=function(P,k,D){P|=0,k|=0,D||re(P,k,this.length);for(var G=this[P],Z=1,ie=0;++ie=(Z*=128)&&(G-=Math.pow(2,8*k)),G},c.prototype.readIntBE=function(P,k,D){P|=0,k|=0,D||re(P,k,this.length);for(var G=k,Z=1,ie=this[P+--G];G>0&&(Z*=256);)ie+=this[P+--G]*Z;return ie>=(Z*=128)&&(ie-=Math.pow(2,8*k)),ie},c.prototype.readInt8=function(P,k){return k||re(P,1,this.length),128&this[P]?-1*(255-this[P]+1):this[P]},c.prototype.readInt16LE=function(P,k){k||re(P,2,this.length);var D=this[P]|this[P+1]<<8;return 32768&D?4294901760|D:D},c.prototype.readInt16BE=function(P,k){k||re(P,2,this.length);var D=this[P+1]|this[P]<<8;return 32768&D?4294901760|D:D},c.prototype.readInt32LE=function(P,k){return k||re(P,4,this.length),this[P]|this[P+1]<<8|this[P+2]<<16|this[P+3]<<24},c.prototype.readInt32BE=function(P,k){return k||re(P,4,this.length),this[P]<<24|this[P+1]<<16|this[P+2]<<8|this[P+3]},c.prototype.readFloatLE=function(P,k){return k||re(P,4,this.length),o.read(this,P,!0,23,4)},c.prototype.readFloatBE=function(P,k){return k||re(P,4,this.length),o.read(this,P,!1,23,4)},c.prototype.readDoubleLE=function(P,k){return k||re(P,8,this.length),o.read(this,P,!0,52,8)},c.prototype.readDoubleBE=function(P,k){return k||re(P,8,this.length),o.read(this,P,!1,52,8)},c.prototype.writeUIntLE=function(P,k,D,G){P=+P,k|=0,D|=0,G||se(this,P,k,D,Math.pow(2,8*D)-1,0);var Z=1,ie=0;for(this[k]=255&P;++ie=0&&(ie*=256);)this[k+Z]=P/ie&255;return k+D},c.prototype.writeUInt8=function(P,k,D){return P=+P,k|=0,D||se(this,P,k,1,255,0),c.TYPED_ARRAY_SUPPORT||(P=Math.floor(P)),this[k]=255&P,k+1},c.prototype.writeUInt16LE=function(P,k,D){return P=+P,k|=0,D||se(this,P,k,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[k]=255&P,this[k+1]=P>>>8):V(this,P,k,!0),k+2},c.prototype.writeUInt16BE=function(P,k,D){return P=+P,k|=0,D||se(this,P,k,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[k]=P>>>8,this[k+1]=255&P):V(this,P,k,!1),k+2},c.prototype.writeUInt32LE=function(P,k,D){return P=+P,k|=0,D||se(this,P,k,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[k+3]=P>>>24,this[k+2]=P>>>16,this[k+1]=P>>>8,this[k]=255&P):N(this,P,k,!0),k+4},c.prototype.writeUInt32BE=function(P,k,D){return P=+P,k|=0,D||se(this,P,k,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[k]=P>>>24,this[k+1]=P>>>16,this[k+2]=P>>>8,this[k+3]=255&P):N(this,P,k,!1),k+4},c.prototype.writeIntLE=function(P,k,D,G){if(P=+P,k|=0,!G){var Z=Math.pow(2,8*D-1);se(this,P,k,D,Z-1,-Z)}var ie=0,pe=1,Le=0;for(this[k]=255&P;++ie>0)-Le&255;return k+D},c.prototype.writeIntBE=function(P,k,D,G){if(P=+P,k|=0,!G){var Z=Math.pow(2,8*D-1);se(this,P,k,D,Z-1,-Z)}var ie=D-1,pe=1,Le=0;for(this[k+ie]=255&P;--ie>=0&&(pe*=256);)P<0&&Le===0&&this[k+ie+1]!==0&&(Le=1),this[k+ie]=(P/pe>>0)-Le&255;return k+D},c.prototype.writeInt8=function(P,k,D){return P=+P,k|=0,D||se(this,P,k,1,127,-128),c.TYPED_ARRAY_SUPPORT||(P=Math.floor(P)),P<0&&(P=255+P+1),this[k]=255&P,k+1},c.prototype.writeInt16LE=function(P,k,D){return P=+P,k|=0,D||se(this,P,k,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[k]=255&P,this[k+1]=P>>>8):V(this,P,k,!0),k+2},c.prototype.writeInt16BE=function(P,k,D){return P=+P,k|=0,D||se(this,P,k,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[k]=P>>>8,this[k+1]=255&P):V(this,P,k,!1),k+2},c.prototype.writeInt32LE=function(P,k,D){return P=+P,k|=0,D||se(this,P,k,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[k]=255&P,this[k+1]=P>>>8,this[k+2]=P>>>16,this[k+3]=P>>>24):N(this,P,k,!0),k+4},c.prototype.writeInt32BE=function(P,k,D){return P=+P,k|=0,D||se(this,P,k,4,2147483647,-2147483648),P<0&&(P=4294967295+P+1),c.TYPED_ARRAY_SUPPORT?(this[k]=P>>>24,this[k+1]=P>>>16,this[k+2]=P>>>8,this[k+3]=255&P):N(this,P,k,!1),k+4},c.prototype.writeFloatLE=function(P,k,D){return B(this,P,k,!0,D)},c.prototype.writeFloatBE=function(P,k,D){return B(this,P,k,!1,D)},c.prototype.writeDoubleLE=function(P,k,D){return ee(this,P,k,!0,D)},c.prototype.writeDoubleBE=function(P,k,D){return ee(this,P,k,!1,D)},c.prototype.copy=function(P,k,D,G){if(D||(D=0),G||G===0||(G=this.length),k>=P.length&&(k=P.length),k||(k=0),G>0&&G=this.length)throw new RangeError("sourceStart out of bounds");if(G<0)throw new RangeError("sourceEnd out of bounds");G>this.length&&(G=this.length),P.length-k=0;--Z)P[Z+k]=this[Z+D];else if(ie<1e3||!c.TYPED_ARRAY_SUPPORT)for(Z=0;Z>>=0,D=D===void 0?this.length:D>>>0,P||(P=0),typeof P=="number")for(ie=k;ie55295&&D<57344){if(!Z){if(D>56319){(k-=3)>-1&&ie.push(239,191,189);continue}if(pe+1===G){(k-=3)>-1&&ie.push(239,191,189);continue}Z=D;continue}if(D<56320){(k-=3)>-1&&ie.push(239,191,189),Z=D;continue}D=65536+(Z-55296<<10|D-56320)}else Z&&(k-=3)>-1&&ie.push(239,191,189);if(Z=null,D<128){if((k-=1)<0)break;ie.push(D)}else if(D<2048){if((k-=2)<0)break;ie.push(D>>6|192,63&D|128)}else if(D<65536){if((k-=3)<0)break;ie.push(D>>12|224,D>>6&63|128,63&D|128)}else{if(!(D<1114112))throw new Error("Invalid code point");if((k-=4)<0)break;ie.push(D>>18|240,D>>12&63|128,D>>6&63|128,63&D|128)}}return ie}function ae(P){return i.toByteArray(function(k){if((k=function(D){return D.trim?D.trim():D.replace(/^\s+|\s+$/g,"")}(k).replace(z,"")).length<2)return"";for(;k.length%4!=0;)k+="=";return k}(P))}function he(P,k,D,G){for(var Z=0;Z=k.length||Z>=P.length);++Z)k[Z+D]=P[Z];return Z}}).call(this,n(0))},function(t,e){var n,r,i=t.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 l,c=[],f=!1,h=-1;function p(){f&&l&&(f=!1,l.length?c=l.concat(c):h=-1,c.length&&m())}function m(){if(!f){var w=s(p);f=!0;for(var _=c.length;_;){for(l=c,c=[];++h<_;)l&&l[h].run();h=-1,_=c.length}l=null,f=!1,function(b){if(r===clearTimeout)return clearTimeout(b);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(b);try{r(b)}catch{try{return r.call(null,b)}catch{return r.call(this,b)}}}(w)}}function v(w,_){this.fun=w,this.array=_}function y(){}i.nextTick=function(w){var _=new Array(arguments.length-1);if(arguments.length>1)for(var b=1;b=0&&(s._idleTimeoutId=setTimeout(function(){s._onTimeout&&s._onTimeout()},l))},n(35),e.setImmediate=typeof self<"u"&&self.setImmediate||r!==void 0&&r.setImmediate||this&&this.setImmediate,e.clearImmediate=typeof self<"u"&&self.clearImmediate||r!==void 0&&r.clearImmediate||this&&this.clearImmediate}).call(this,n(0))},function(t,e){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}t.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,l,c,f,h,p;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 m=new Error('Uncaught, unspecified "error" event. ('+s+")");throw m.context=s,m}if(o(l=this._events[a]))return!1;if(r(l))switch(arguments.length){case 1:l.call(this);break;case 2:l.call(this,arguments[1]);break;case 3:l.call(this,arguments[1],arguments[2]);break;default:f=Array.prototype.slice.call(arguments,1),l.apply(this,f)}else if(i(l))for(f=Array.prototype.slice.call(arguments,1),c=(p=l.slice()).length,h=0;h0&&this._events[a].length>l&&(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 l=!1;function c(){this.removeListener(a,c),l||(l=!0,s.apply(this,arguments))}return c.listener=s,this.on(a,c),this},n.prototype.removeListener=function(a,s){var l,c,f,h;if(!r(s))throw TypeError("listener must be a function");if(!this._events||!this._events[a])return this;if(f=(l=this._events[a]).length,c=-1,l===s||r(l.listener)&&l.listener===s)delete this._events[a],this._events.removeListener&&this.emit("removeListener",a,s);else if(i(l)){for(h=f;h-- >0;)if(l[h]===s||l[h].listener&&l[h].listener===s){c=h;break}if(c<0)return this;l.length===1?(l.length=0,delete this._events[a]):l.splice(c,1),this._events.removeListener&&this.emit("removeListener",a,s)}return this},n.prototype.removeAllListeners=function(a){var s,l;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(l=this._events[a]))this.removeListener(a,l);else if(l)for(;l.length;)this.removeListener(a,l[l.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(t,e,n){(e=t.exports=n(23)).Stream=e,e.Readable=e,e.Writable=n(14),e.Duplex=n(1),e.Transform=n(27),e.PassThrough=n(45)},function(t,e,n){(function(r,i,o){var a=n(6);function s(I){var H=this;this.next=null,this.entry=null,this.finish=function(){(function(W,J,Y){var X=W.entry;for(W.entry=null;X;){var re=X.callback;J.pendingcb--,re(void 0),X=X.next}J.corkedRequestsFree?J.corkedRequestsFree.next=W:J.corkedRequestsFree=W})(H,I)}}t.exports=S;var l,c=!r.browser&&["v0.10","v0.9."].indexOf(r.version.slice(0,5))>-1?i:a.nextTick;S.WritableState=b;var f=n(5);f.inherits=n(2);var h,p={deprecate:n(44)},m=n(24),v=n(7).Buffer,y=o.Uint8Array||function(){},w=n(25);function _(){}function b(I,H){l=l||n(1),I=I||{};var W=H instanceof l;this.objectMode=!!I.objectMode,W&&(this.objectMode=this.objectMode||!!I.writableObjectMode);var J=I.highWaterMark,Y=I.writableHighWaterMark,X=this.objectMode?16:16384;this.highWaterMark=J||J===0?J:W&&(Y||Y===0)?Y:X,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 re=I.decodeStrings===!1;this.decodeStrings=!re,this.defaultEncoding=I.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(se){(function(V,N){var A=V._writableState,B=A.sync,ee=A.writecb;if(function(q){q.writing=!1,q.writecb=null,q.length-=q.writelen,q.writelen=0}(A),N)(function(q,ne,ae,he,P){--ne.pendingcb,ae?(a.nextTick(P,he),a.nextTick(U,q,ne),q._writableState.errorEmitted=!0,q.emit("error",he)):(P(he),q._writableState.errorEmitted=!0,q.emit("error",he),U(q,ne))})(V,A,B,N,ee);else{var z=R(A);z||A.corked||A.bufferProcessing||!A.bufferedRequest||C(V,A),B?c(M,V,A,z,ee):M(V,A,z,ee)}})(H,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 S(I){if(l=l||n(1),!(h.call(S,this)||this instanceof l))return new S(I);this._writableState=new b(I,this),this.writable=!0,I&&(typeof I.write=="function"&&(this._write=I.write),typeof I.writev=="function"&&(this._writev=I.writev),typeof I.destroy=="function"&&(this._destroy=I.destroy),typeof I.final=="function"&&(this._final=I.final)),m.call(this)}function O(I,H,W,J,Y,X,re){H.writelen=J,H.writecb=re,H.writing=!0,H.sync=!0,W?I._writev(Y,H.onwrite):I._write(Y,X,H.onwrite),H.sync=!1}function M(I,H,W,J){W||function(Y,X){X.length===0&&X.needDrain&&(X.needDrain=!1,Y.emit("drain"))}(I,H),H.pendingcb--,J(),U(I,H)}function C(I,H){H.bufferProcessing=!0;var W=H.bufferedRequest;if(I._writev&&W&&W.next){var J=H.bufferedRequestCount,Y=new Array(J),X=H.corkedRequestsFree;X.entry=W;for(var re=0,se=!0;W;)Y[re]=W,W.isBuf||(se=!1),W=W.next,re+=1;Y.allBuffers=se,O(I,H,!0,H.length,Y,"",X.finish),H.pendingcb++,H.lastBufferedRequest=null,X.next?(H.corkedRequestsFree=X.next,X.next=null):H.corkedRequestsFree=new s(H),H.bufferedRequestCount=0}else{for(;W;){var V=W.chunk,N=W.encoding,A=W.callback;if(O(I,H,!1,H.objectMode?1:V.length,V,N,A),W=W.next,H.bufferedRequestCount--,H.writing)break}W===null&&(H.lastBufferedRequest=null)}H.bufferedRequest=W,H.bufferProcessing=!1}function R(I){return I.ending&&I.length===0&&I.bufferedRequest===null&&!I.finished&&!I.writing}function $(I,H){I._final(function(W){H.pendingcb--,W&&I.emit("error",W),H.prefinished=!0,I.emit("prefinish"),U(I,H)})}function U(I,H){var W=R(H);return W&&(function(J,Y){Y.prefinished||Y.finalCalled||(typeof J._final=="function"?(Y.pendingcb++,Y.finalCalled=!0,a.nextTick($,J,Y)):(Y.prefinished=!0,J.emit("prefinish")))}(I,H),H.pendingcb===0&&(H.finished=!0,I.emit("finish"))),W}f.inherits(S,m),b.prototype.getBuffer=function(){for(var I=this.bufferedRequest,H=[];I;)H.push(I),I=I.next;return H},function(){try{Object.defineProperty(b.prototype,"buffer",{get:p.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"?(h=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(I){return!!h.call(this,I)||this===S&&I&&I._writableState instanceof b}})):h=function(I){return I instanceof this},S.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},S.prototype.write=function(I,H,W){var J=this._writableState,Y=!1,X=!J.objectMode&&function(re){return v.isBuffer(re)||re instanceof y}(I);return X&&!v.isBuffer(I)&&(I=function(re){return v.from(re)}(I)),typeof H=="function"&&(W=H,H=null),X?H="buffer":H||(H=J.defaultEncoding),typeof W!="function"&&(W=_),J.ended?function(re,se){var V=new Error("write after end");re.emit("error",V),a.nextTick(se,V)}(this,W):(X||function(re,se,V,N){var A=!0,B=!1;return V===null?B=new TypeError("May not write null values to stream"):typeof V=="string"||V===void 0||se.objectMode||(B=new TypeError("Invalid non-string/buffer chunk")),B&&(re.emit("error",B),a.nextTick(N,B),A=!1),A}(this,J,I,W))&&(J.pendingcb++,Y=function(re,se,V,N,A,B){if(!V){var ee=function(ae,he,P){return ae.objectMode||ae.decodeStrings===!1||typeof he!="string"||(he=v.from(he,P)),he}(se,N,A);N!==ee&&(V=!0,A="buffer",N=ee)}var z=se.objectMode?1:N.length;se.length+=z;var q=se.length-1))throw new TypeError("Unknown encoding: "+I);return this._writableState.defaultEncoding=I,this},Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(I,H,W){W(new Error("_write() is not implemented"))},S.prototype._writev=null,S.prototype.end=function(I,H,W){var J=this._writableState;typeof I=="function"?(W=I,I=null,H=null):typeof H=="function"&&(W=H,H=null),I!=null&&this.write(I,H),J.corked&&(J.corked=1,this.uncork()),J.ending||J.finished||function(Y,X,re){X.ending=!0,U(Y,X),re&&(X.finished?a.nextTick(re):Y.once("finish",re)),X.ended=!0,Y.writable=!1}(this,J,W)},Object.defineProperty(S.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(I){this._writableState&&(this._writableState.destroyed=I)}}),S.prototype.destroy=w.destroy,S.prototype._undestroy=w.undestroy,S.prototype._destroy=function(I,H){this.end(),H(I)}}).call(this,n(4),n(11).setImmediate,n(0))},function(t,e,n){(function(r,i,o){t.exports=function a(s,l,c){function f(m,v){if(!l[m]){if(!s[m]){var y=typeof _dereq_=="function"&&_dereq_;if(!v&&y)return y(m,!0);if(h)return h(m,!0);var w=new Error("Cannot find module '"+m+"'");throw w.code="MODULE_NOT_FOUND",w}var _=l[m]={exports:{}};s[m][0].call(_.exports,function(b){return f(s[m][1][b]||b)},_,_.exports,a,s,l,c)}return l[m].exports}for(var h=typeof _dereq_=="function"&&_dereq_,p=0;p0;){var b=_.shift();if(typeof b=="function"){var S=_.shift(),O=_.shift();b.call(S,O)}else b._settlePromises()}},m.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},m.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},m.prototype._reset=function(){this._isTickUsed=!1},s.exports=m,s.exports.firstLineError=c},{"./queue":26,"./schedule":29,"./util":36}],3:[function(a,s,l){s.exports=function(c,f,h,p){var m=!1,v=function(b,S){this._reject(S)},y=function(b,S){S.promiseRejectionQueued=!0,S.bindingPromise._then(v,v,null,this,b)},w=function(b,S){!(50397184&this._bitField)&&this._resolveCallback(S.target)},_=function(b,S){S.promiseRejectionQueued||this._reject(b)};c.prototype.bind=function(b){m||(m=!0,c.prototype._propagateFrom=p.propagateFromFunction(),c.prototype._boundValue=p.boundValueFunction());var S=h(b),O=new c(f);O._propagateFrom(this,1);var M=this._target();if(O._setBoundTo(S),S instanceof c){var C={promiseRejectionQueued:!1,promise:O,target:M,bindingPromise:S};M._then(f,y,void 0,O,C),S._then(w,_,void 0,O,C),O._setOnCancel(S)}else O._resolveCallback(M);return O},c.prototype._setBoundTo=function(b){b!==void 0?(this._bitField=2097152|this._bitField,this._boundTo=b):this._bitField=-2097153&this._bitField},c.prototype._isBound=function(){return(2097152&this._bitField)==2097152},c.bind=function(b,S){return c.resolve(S).bind(b)}}},{}],4:[function(a,s,l){var c;typeof Promise<"u"&&(c=Promise);var f=a("./promise")();f.noConflict=function(){try{Promise===f&&(Promise=c)}catch{}return f},s.exports=f},{"./promise":22}],5:[function(a,s,l){var c=Object.create;if(c){var f=c(null),h=c(null);f[" size"]=h[" size"]=0}s.exports=function(p){var m=a("./util"),v=m.canEvaluate;function y(b){return function(S,O){var M;if(S!=null&&(M=S[O]),typeof M!="function"){var C="Object "+m.classString(S)+" has no method '"+m.toString(O)+"'";throw new p.TypeError(C)}return M}(b,this.pop()).apply(b,this)}function w(b){return b[this]}function _(b){var S=+this;return S<0&&(S=Math.max(0,S+b.length)),b[S]}m.isIdentifier,p.prototype.call=function(b){var S=[].slice.call(arguments,1);return S.push(b),this._then(y,void 0,void 0,S,void 0)},p.prototype.get=function(b){var S;if(typeof b=="number")S=_;else if(v){var O=(void 0)(b);S=O!==null?O:w}else S=w;return this._then(S,void 0,void 0,b,void 0)}}},{"./util":36}],6:[function(a,s,l){s.exports=function(c,f,h,p){var m=a("./util"),v=m.tryCatch,y=m.errorObj,w=c._async;c.prototype.break=c.prototype.cancel=function(){if(!p.cancellation())return this._warn("cancellation is disabled");for(var _=this,b=_;_._isCancellable();){if(!_._cancelBy(b)){b._isFollowing()?b._followee().cancel():b._cancelBranched();break}var S=_._cancellationParent;if(S==null||!S._isCancellable()){_._isFollowing()?_._followee().cancel():_._cancelBranched();break}_._isFollowing()&&_._followee().cancel(),_._setWillBeCancelled(),b=_,_=S}},c.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},c.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===void 0||this._branchesRemainingToCancel<=0},c.prototype._cancelBy=function(_){return _===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},c.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},c.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),w.invoke(this._cancelPromises,this,void 0))},c.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},c.prototype._unsetOnCancel=function(){this._onCancelField=void 0},c.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},c.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},c.prototype._doInvokeOnCancel=function(_,b){if(m.isArray(_))for(var S=0;S<_.length;++S)this._doInvokeOnCancel(_[S],b);else if(_!==void 0)if(typeof _=="function"){if(!b){var O=v(_).call(this._boundValue());O===y&&(this._attachExtraTrace(O.e),w.throwLater(O.e))}}else _._resultCancelled(this)},c.prototype._invokeOnCancel=function(){var _=this._onCancel();this._unsetOnCancel(),w.invoke(this._doInvokeOnCancel,this,_)},c.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},c.prototype._resultCancelled=function(){this.cancel()}}},{"./util":36}],7:[function(a,s,l){s.exports=function(c){var f=a("./util"),h=a("./es5").keys,p=f.tryCatch,m=f.errorObj;return function(v,y,w){return function(_){var b=w._boundValue();e:for(var S=0;S=0)return h[v]}return c.prototype._promiseCreated=function(){},c.prototype._pushContext=function(){},c.prototype._popContext=function(){return null},c._peekContext=c.prototype._peekContext=function(){},p.prototype._pushContext=function(){this._trace!==void 0&&(this._trace._promiseCreated=null,h.push(this._trace))},p.prototype._popContext=function(){if(this._trace!==void 0){var v=h.pop(),y=v._promiseCreated;return v._promiseCreated=null,y}return null},p.CapturedTrace=null,p.create=function(){if(f)return new p},p.deactivateLongStackTraces=function(){},p.activateLongStackTraces=function(){var v=c.prototype._pushContext,y=c.prototype._popContext,w=c._peekContext,_=c.prototype._peekContext,b=c.prototype._promiseCreated;p.deactivateLongStackTraces=function(){c.prototype._pushContext=v,c.prototype._popContext=y,c._peekContext=w,c.prototype._peekContext=_,c.prototype._promiseCreated=b,f=!1},f=!0,c.prototype._pushContext=p.prototype._pushContext,c.prototype._popContext=p.prototype._popContext,c._peekContext=c.prototype._peekContext=m,c.prototype._promiseCreated=function(){var S=this._peekContext();S&&S._promiseCreated==null&&(S._promiseCreated=this)}},p}},{}],9:[function(a,s,l){s.exports=function(c,f){var h,p,m,v=c._getDomain,y=c._async,w=a("./errors").Warning,_=a("./util"),b=_.canAttachTrace,S=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,O=/\((?:timers\.js):\d+:\d+\)/,M=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,C=null,R=null,$=!1,U=_.env("BLUEBIRD_DEBUG")!=0,I=!(_.env("BLUEBIRD_WARNINGS")==0||!U&&!_.env("BLUEBIRD_WARNINGS")),H=!(_.env("BLUEBIRD_LONG_STACK_TRACES")==0||!U&&!_.env("BLUEBIRD_LONG_STACK_TRACES")),W=_.env("BLUEBIRD_W_FORGOTTEN_RETURN")!=0&&(I||!!_.env("BLUEBIRD_W_FORGOTTEN_RETURN"));c.prototype.suppressUnhandledRejections=function(){var le=this._target();le._bitField=-1048577&le._bitField|524288},c.prototype._ensurePossibleRejectionHandled=function(){if(!(524288&this._bitField)){this._setRejectionIsUnhandled();var le=this;setTimeout(function(){le._notifyUnhandledRejection()},1)}},c.prototype._notifyUnhandledRejectionIsHandled=function(){pe("rejectionHandled",h,void 0,this)},c.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},c.prototype._returnedNonUndefined=function(){return(268435456&this._bitField)!=0},c.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var le=this._settledValue();this._setUnhandledRejectionIsNotified(),pe("unhandledRejection",p,le,this)}},c.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},c.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField},c.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},c.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},c.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},c.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},c.prototype._warn=function(le,fe,ye){return D(le,fe,ye||this)},c.onPossiblyUnhandledRejection=function(le){var fe=v();p=typeof le=="function"?fe===null?le:_.domainBind(fe,le):void 0},c.onUnhandledRejectionHandled=function(le){var fe=v();h=typeof le=="function"?fe===null?le:_.domainBind(fe,le):void 0};var J=function(){};c.longStackTraces=function(){if(y.haveItemsQueued()&&!Me.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created See http://goo.gl/MqrFmX `);if(!Me.longStackTraces&&ue()){var le=c.prototype._captureStackTrace,fe=c.prototype._attachExtraTrace;Me.longStackTraces=!0,J=function(){if(y.haveItemsQueued()&&!Me.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created See http://goo.gl/MqrFmX `);c.prototype._captureStackTrace=le,c.prototype._attachExtraTrace=fe,f.deactivateLongStackTraces(),y.enableTrampoline(),Me.longStackTraces=!1},c.prototype._captureStackTrace=P,c.prototype._attachExtraTrace=k,f.activateLongStackTraces(),y.disableTrampolineIfNecessary()}},c.hasLongStackTraces=function(){return Me.longStackTraces&&ue()};var Y=function(){try{if(typeof CustomEvent=="function"){var le=new CustomEvent("CustomEvent");return _.global.dispatchEvent(le),function(fe,ye){var ge=new CustomEvent(fe.toLowerCase(),{detail:ye,cancelable:!0});return!_.global.dispatchEvent(ge)}}return typeof Event=="function"?(le=new Event("CustomEvent"),_.global.dispatchEvent(le),function(fe,ye){var ge=new Event(fe.toLowerCase(),{cancelable:!0});return ge.detail=ye,!_.global.dispatchEvent(ge)}):((le=document.createEvent("CustomEvent")).initCustomEvent("testingtheevent",!1,!0,{}),_.global.dispatchEvent(le),function(fe,ye){var ge=document.createEvent("CustomEvent");return ge.initCustomEvent(fe.toLowerCase(),!1,!0,ye),!_.global.dispatchEvent(ge)})}catch{}return function(){return!1}}(),X=_.isNode?function(){return r.emit.apply(r,arguments)}:_.global?function(le){var fe="on"+le.toLowerCase(),ye=_.global[fe];return!!ye&&(ye.apply(_.global,[].slice.call(arguments,1)),!0)}:function(){return!1};function re(le,fe){return{promise:fe}}var se={promiseCreated:re,promiseFulfilled:re,promiseRejected:re,promiseResolved:re,promiseCancelled:re,promiseChained:function(le,fe,ye){return{promise:fe,child:ye}},warning:function(le,fe){return{warning:fe}},unhandledRejection:function(le,fe,ye){return{reason:fe,promise:ye}},rejectionHandled:re},V=function(le){var fe=!1;try{fe=X.apply(null,arguments)}catch(ge){y.throwLater(ge),fe=!0}var ye=!1;try{ye=Y(le,se[le].apply(null,arguments))}catch(ge){y.throwLater(ge),ye=!0}return ye||fe};function N(){return!1}function A(le,fe,ye){var ge=this;try{le(fe,ye,function(we){if(typeof we!="function")throw new TypeError("onCancel must be a function, got: "+_.toString(we));ge._attachCancellationCallback(we)})}catch(we){return we}}function B(le){if(!this._isCancellable())return this;var fe=this._onCancel();fe!==void 0?_.isArray(fe)?fe.push(le):this._setOnCancel([fe,le]):this._setOnCancel(le)}function ee(){return this._onCancelField}function z(le){this._onCancelField=le}function q(){this._cancellationParent=void 0,this._onCancelField=void 0}function ne(le,fe){if(1&fe){this._cancellationParent=le;var ye=le._branchesRemainingToCancel;ye===void 0&&(ye=0),le._branchesRemainingToCancel=ye+1}2&fe&&le._isBound()&&this._setBoundTo(le._boundTo)}c.config=function(le){if("longStackTraces"in(le=Object(le))&&(le.longStackTraces?c.longStackTraces():!le.longStackTraces&&c.hasLongStackTraces()&&J()),"warnings"in le){var fe=le.warnings;Me.warnings=!!fe,W=Me.warnings,_.isObject(fe)&&"wForgottenReturn"in fe&&(W=!!fe.wForgottenReturn)}if("cancellation"in le&&le.cancellation&&!Me.cancellation){if(y.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");c.prototype._clearCancellationData=q,c.prototype._propagateFrom=ne,c.prototype._onCancel=ee,c.prototype._setOnCancel=z,c.prototype._attachCancellationCallback=B,c.prototype._execute=A,ae=ne,Me.cancellation=!0}return"monitoring"in le&&(le.monitoring&&!Me.monitoring?(Me.monitoring=!0,c.prototype._fireEvent=V):!le.monitoring&&Me.monitoring&&(Me.monitoring=!1,c.prototype._fireEvent=N)),c},c.prototype._fireEvent=N,c.prototype._execute=function(le,fe,ye){try{le(fe,ye)}catch(ge){return ge}},c.prototype._onCancel=function(){},c.prototype._setOnCancel=function(le){},c.prototype._attachCancellationCallback=function(le){},c.prototype._captureStackTrace=function(){},c.prototype._attachExtraTrace=function(){},c.prototype._clearCancellationData=function(){},c.prototype._propagateFrom=function(le,fe){};var ae=function(le,fe){2&fe&&le._isBound()&&this._setBoundTo(le._boundTo)};function he(){var le=this._boundTo;return le!==void 0&&le instanceof c?le.isFulfilled()?le.value():void 0:le}function P(){this._trace=new Re(this._peekContext())}function k(le,fe){if(b(le)){var ye=this._trace;if(ye!==void 0&&fe&&(ye=ye._parent),ye!==void 0)ye.attachExtraTrace(le);else if(!le.__stackCleaned__){var ge=Z(le);_.notEnumerableProp(le,"stack",ge.message+` `+ge.stack.join(` `)),_.notEnumerableProp(le,"__stackCleaned__",!0)}}}function D(le,fe,ye){if(Me.warnings){var ge,we=new w(le);if(fe)ye._attachExtraTrace(we);else if(Me.longStackTraces&&(ge=c._peekContext()))ge.attachExtraTrace(we);else{var Pe=Z(we);we.stack=Pe.message+` `+Pe.stack.join(` `)}V("warning",we)||ie(we,"",!0)}}function G(le){for(var fe=[],ye=0;ye0?function(ge){for(var we=ge.stack.replace(/\s+$/g,"").split(` `),Pe=0;Pe0&&ge.name!="SyntaxError"&&(we=we.slice(Pe)),we}(le):[" (No stack trace)"],{message:ye,stack:le.name=="SyntaxError"?fe:G(fe)}}function ie(le,fe,ye){if(typeof console<"u"){var ge;if(_.isObject(le)){var we=le.stack;ge=fe+R(we,le)}else ge=fe+String(le);typeof m=="function"?m(ge,ye):typeof console.log!="function"&&typeof console.log!="object"||console.log(ge)}}function pe(le,fe,ye,ge){var we=!1;try{typeof fe=="function"&&(we=!0,le==="rejectionHandled"?fe(ge):fe(ye,ge))}catch(Pe){y.throwLater(Pe)}le==="unhandledRejection"?V(le,ye,ge)||we||ie(ye,"Unhandled rejection "):V(le,ge)}function Le(le){var fe;if(typeof le=="function")fe="[function "+(le.name||"anonymous")+"]";else{if(fe=le&&typeof le.toString=="function"?le.toString():_.toString(le),/\[object [a-zA-Z0-9$_]+\]/.test(fe))try{fe=JSON.stringify(le)}catch{}fe.length===0&&(fe="(empty array)")}return"(<"+function(ye){return ye.length<41?ye:ye.substr(0,38)+"..."}(fe)+">, no stack trace)"}function ue(){return typeof ke=="function"}var me=function(){return!1},ve=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function Se(le){var fe=le.match(ve);if(fe)return{fileName:fe[1],line:parseInt(fe[2],10)}}function Re(le){this._parent=le,this._promisesCreated=0;var fe=this._length=1+(le===void 0?0:le._length);ke(this,Re),fe>32&&this.uncycle()}_.inherits(Re,Error),f.CapturedTrace=Re,Re.prototype.uncycle=function(){var le=this._length;if(!(le<2)){for(var fe=[],ye={},ge=0,we=this;we!==void 0;++ge)fe.push(we),we=we._parent;for(ge=(le=this._length=ge)-1;ge>=0;--ge){var Pe=fe[ge].stack;ye[Pe]===void 0&&(ye[Pe]=ge)}for(ge=0;ge0&&(fe[De-1]._parent=void 0,fe[De-1]._length=1),fe[ge]._parent=void 0,fe[ge]._length=1;var Ke=ge>0?fe[ge-1]:this;De=0;--Ve)fe[Ve]._length=Xe,Xe++;return}}}},Re.prototype.attachExtraTrace=function(le){if(!le.__stackCleaned__){this.uncycle();for(var fe=Z(le),ye=fe.message,ge=[fe.stack],we=this;we!==void 0;)ge.push(G(we.stack.split(` `))),we=we._parent;(function(Pe){for(var De=Pe[0],Ke=1;Ke=0;--un)if(Xe[un]===It){Mt=un;break}for(un=Mt;un>=0;--un){var zn=Xe[un];if(De[Ve]!==zn)break;De.pop(),Ve--}De=Xe}})(ge),function(Pe){for(var De=0;De=0)return C=/@/,R=fe,$=!0,function(Pe){Pe.stack=new Error().stack};try{throw new Error}catch(Pe){ge="stack"in Pe}return"stack"in we||!ge||typeof Error.stackTraceLimit!="number"?(R=function(Pe,De){return typeof Pe=="string"?Pe:typeof De!="object"&&typeof De!="function"||De.name===void 0||De.message===void 0?Le(De):De.toString()},null):(C=le,R=fe,function(Pe){Error.stackTraceLimit+=6;try{throw new Error}catch(De){Pe.stack=De.stack}Error.stackTraceLimit-=6})}();typeof console<"u"&&console.warn!==void 0&&(m=function(le){console.warn(le)},_.isNode&&r.stderr.isTTY?m=function(le,fe){var ye=fe?"\x1B[33m":"\x1B[31m";console.warn(ye+le+`\x1B[0m `)}:_.isNode||typeof new Error().stack!="string"||(m=function(le,fe){console.warn("%c"+le,fe?"color: darkorange":"color: red")}));var Me={warnings:I,longStackTraces:!1,cancellation:!1,monitoring:!1};return H&&c.longStackTraces(),{longStackTraces:function(){return Me.longStackTraces},warnings:function(){return Me.warnings},cancellation:function(){return Me.cancellation},monitoring:function(){return Me.monitoring},propagateFromFunction:function(){return ae},boundValueFunction:function(){return he},checkForgottenReturns:function(le,fe,ye,ge,we){if(le===void 0&&fe!==null&&W){if(we!==void 0&&we._returnedNonUndefined()||!(65535&ge._bitField))return;ye&&(ye+=" ");var Pe="",De="";if(fe._trace){for(var Ke=fe._trace.stack.split(` `),Xe=G(Ke),Ve=Xe.length-1;Ve>=0;--Ve){var It=Xe[Ve];if(!O.test(It)){var Mt=It.match(M);Mt&&(Pe="at "+Mt[1]+":"+Mt[2]+":"+Mt[3]+" ");break}}if(Xe.length>0){var un=Xe[0];for(Ve=0;Ve0&&(De=` `+Ke[Ve-1]);break}}}var zn="a promise was created in a "+ye+"handler "+Pe+"but was not returned from it, see http://goo.gl/rRqMUw"+De;ge._warn(zn,!0,fe)}},setBounds:function(le,fe){if(ue()){for(var ye,ge,we=le.stack.split(` `),Pe=fe.stack.split(` `),De=-1,Ke=-1,Xe=0;Xe=Ke||(me=function(It){if(S.test(It))return!0;var Mt=Se(It);return!!(Mt&&Mt.fileName===ye&&De<=Mt.line&&Mt.line<=Ke)})}},warn:D,deprecated:function(le,fe){var ye=le+" is deprecated and will be removed in a future version.";return fe&&(ye+=" Use "+fe+" instead."),D(ye)},CapturedTrace:Re,fireDomEvent:Y,fireGlobalEvent:X}}},{"./errors":12,"./util":36}],10:[function(a,s,l){s.exports=function(c){function f(){return this.value}function h(){throw this.reason}c.prototype.return=c.prototype.thenReturn=function(p){return p instanceof c&&p.suppressUnhandledRejections(),this._then(f,void 0,void 0,{value:p},void 0)},c.prototype.throw=c.prototype.thenThrow=function(p){return this._then(h,void 0,void 0,{reason:p},void 0)},c.prototype.catchThrow=function(p){if(arguments.length<=1)return this._then(void 0,h,void 0,{reason:p},void 0);var m=arguments[1];return this.caught(p,function(){throw m})},c.prototype.catchReturn=function(p){if(arguments.length<=1)return p instanceof c&&p.suppressUnhandledRejections(),this._then(void 0,f,void 0,{value:p},void 0);var m=arguments[1];return m instanceof c&&m.suppressUnhandledRejections(),this.caught(p,function(){return m})}}},{}],11:[function(a,s,l){s.exports=function(c,f){var h=c.reduce,p=c.all;function m(){return p(this)}c.prototype.each=function(v){return h(this,v,f,0)._then(m,void 0,void 0,this,void 0)},c.prototype.mapSeries=function(v){return h(this,v,f,f)},c.each=function(v,y){return h(v,y,f,0)._then(m,void 0,void 0,v,void 0)},c.mapSeries=function(v,y){return h(v,y,f,f)}}},{}],12:[function(a,s,l){var c,f,h=a("./es5"),p=h.freeze,m=a("./util"),v=m.inherits,y=m.notEnumerableProp;function w(I,H){function W(J){if(!(this instanceof W))return new W(J);y(this,"message",typeof J=="string"?J:H),y(this,"name",I),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return v(W,Error),W}var _=w("Warning","warning"),b=w("CancellationError","cancellation error"),S=w("TimeoutError","timeout error"),O=w("AggregateError","aggregate error");try{c=TypeError,f=RangeError}catch{c=w("TypeError","type error"),f=w("RangeError","range error")}for(var M="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),C=0;C1?C.cancelPromise._reject(R):C.cancelPromise._cancel(),C.cancelPromise=null,!0)}function S(){return M.call(this,this.promise._target()._settledValue())}function O(C){if(!b(this,C))return v.e=C,v}function M(C){var R=this.promise,$=this.handler;if(!this.called){this.called=!0;var U=this.isFinallyHandler()?$.call(R._boundValue()):$.call(R._boundValue(),C);if(U===h)return U;if(U!==void 0){R._setReturnedNonUndefined();var I=f(U,R);if(I instanceof c){if(this.cancelPromise!=null){if(I._isCancelled()){var H=new m("late cancellation observer");return R._attachExtraTrace(H),v.e=H,v}I.isPending()&&I._attachCancellationCallback(new _(this))}return I._then(S,O,void 0,this,void 0)}}}return R.isRejected()?(b(this),v.e=C,v):(b(this),C)}return w.prototype.isFinallyHandler=function(){return this.type===0},_.prototype._resultCancelled=function(){b(this.finallyHandler)},c.prototype._passThrough=function(C,R,$,U){return typeof C!="function"?this.then():this._then($,U,void 0,new w(this,R,C),void 0)},c.prototype.lastly=c.prototype.finally=function(C){return this._passThrough(C,0,M,M)},c.prototype.tap=function(C){return this._passThrough(C,1,M)},c.prototype.tapCatch=function(C){var R=arguments.length;if(R===1)return this._passThrough(C,1,void 0,M);var $,U=new Array(R-1),I=0;for($=0;$0&&typeof arguments[_]=="function"&&(w=arguments[_]);var b=[].slice.call(arguments);w&&b.pop();var S=new f(b).promise();return w!==void 0?S.spread(w):S}}},{"./util":36}],18:[function(a,s,l){s.exports=function(c,f,h,p,m,v){var y=c._getDomain,w=a("./util"),_=w.tryCatch,b=w.errorObj,S=c._async;function O(C,R,$,U){this.constructor$(C),this._promise._captureStackTrace();var I=y();this._callback=I===null?R:w.domainBind(I,R),this._preservedValues=U===m?new Array(this.length()):null,this._limit=$,this._inFlight=0,this._queue=[],S.invoke(this._asyncInit,this,void 0)}function M(C,R,$,U){if(typeof R!="function")return h("expecting a function but got "+w.classString(R));var I=0;if($!==void 0){if(typeof $!="object"||$===null)return c.reject(new TypeError("options argument must be an object but it is "+w.classString($)));if(typeof $.concurrency!="number")return c.reject(new TypeError("'concurrency' must be a number but it is "+w.classString($.concurrency)));I=$.concurrency}return new O(C,R,I=typeof I=="number"&&isFinite(I)&&I>=1?I:0,U).promise()}w.inherits(O,f),O.prototype._asyncInit=function(){this._init$(void 0,-2)},O.prototype._init=function(){},O.prototype._promiseFulfilled=function(C,R){var $=this._values,U=this.length(),I=this._preservedValues,H=this._limit;if(R<0){if($[R=-1*R-1]=C,H>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(H>=1&&this._inFlight>=H)return $[R]=C,this._queue.push(R),!1;I!==null&&(I[R]=C);var W=this._promise,J=this._callback,Y=W._boundValue();W._pushContext();var X=_(J).call(Y,C,R,U),re=W._popContext();if(v.checkForgottenReturns(X,re,I!==null?"Promise.filter":"Promise.map",W),X===b)return this._reject(X.e),!0;var se=p(X,this._promise);if(se instanceof c){var V=(se=se._target())._bitField;if(!(50397184&V))return H>=1&&this._inFlight++,$[R]=se,se._proxy(this,-1*(R+1)),!1;if(!(33554432&V))return 16777216&V?(this._reject(se._reason()),!0):(this._cancel(),!0);X=se._value()}$[R]=X}return++this._totalResolved>=U&&(I!==null?this._filter($,I):this._resolve($),!0)},O.prototype._drainQueue=function(){for(var C=this._queue,R=this._limit,$=this._values;C.length>0&&this._inFlight1){m.deprecated("calling Promise.try with more than 1 argument");var S=arguments[1],O=arguments[2];_=v.isArray(S)?y(w).apply(O,S):y(w).call(O,S)}else _=y(w)();var M=b._popContext();return m.checkForgottenReturns(_,M,"Promise.try",b),b._resolveFromSyncValue(_),b},c.prototype._resolveFromSyncValue=function(w){w===v.errorObj?this._rejectCallback(w.e,!1):this._resolveCallback(w,!0)}}},{"./util":36}],20:[function(a,s,l){var c=a("./util"),f=c.maybeWrapAsError,h=a("./errors").OperationalError,p=a("./es5"),m=/^(?:name|message|stack|cause)$/;function v(y){var w;if(function(O){return O instanceof Error&&p.getPrototypeOf(O)===Error.prototype}(y)){(w=new h(y)).name=y.name,w.message=y.message,w.stack=y.stack;for(var _=p.keys(y),b=0;b<_.length;++b){var S=_[b];m.test(S)||(w[S]=y[S])}return w}return c.markAsOriginatingFromRejection(y),y}s.exports=function(y,w){return function(_,b){if(y!==null){if(_){var S=v(f(_));y._attachExtraTrace(S),y._reject(S)}else if(w){var O=[].slice.call(arguments,1);y._fulfill(O)}else y._fulfill(b);y=null}}}},{"./errors":12,"./es5":13,"./util":36}],21:[function(a,s,l){s.exports=function(c){var f=a("./util"),h=c._async,p=f.tryCatch,m=f.errorObj;function v(_,b){if(!f.isArray(_))return y.call(this,_,b);var S=p(b).apply(this._boundValue(),[null].concat(_));S===m&&h.throwLater(S.e)}function y(_,b){var S=this._boundValue(),O=_===void 0?p(b).call(S,null):p(b).call(S,null,_);O===m&&h.throwLater(O.e)}function w(_,b){if(!_){var S=new Error(_+"");S.cause=_,_=S}var O=p(b).call(this._boundValue(),_);O===m&&h.throwLater(O.e)}c.prototype.asCallback=c.prototype.nodeify=function(_,b){if(typeof _=="function"){var S=y;b!==void 0&&Object(b).spread&&(S=v),this._then(S,w,void 0,this,_)}return this}}},{"./util":36}],22:[function(a,s,l){s.exports=function(){var c=function(){return new O(`circular promise resolution chain See http://goo.gl/MqrFmX `)},f=function(){return new N.PromiseInspection(this._target())},h=function(z){return N.reject(new O(z))};function p(){}var m,v={},y=a("./util");m=y.isNode?function(){var z=r.domain;return z===void 0&&(z=null),z}:function(){return null},y.notEnumerableProp(N,"_getDomain",m);var w=a("./es5"),_=a("./async"),b=new _;w.defineProperty(N,"_async",{value:b});var S=a("./errors"),O=N.TypeError=S.TypeError;N.RangeError=S.RangeError;var M=N.CancellationError=S.CancellationError;N.TimeoutError=S.TimeoutError,N.OperationalError=S.OperationalError,N.RejectionError=S.OperationalError,N.AggregateError=S.AggregateError;var C=function(){},R={},$={},U=a("./thenables")(N,C),I=a("./promise_array")(N,C,U,h,p),H=a("./context")(N),W=H.create,J=a("./debuggability")(N,H),Y=(J.CapturedTrace,a("./finally")(N,U,$)),X=a("./catch_filter")($),re=a("./nodeback"),se=y.errorObj,V=y.tryCatch;function N(z){z!==C&&function(q,ne){if(q==null||q.constructor!==N)throw new O(`the promise constructor cannot be invoked directly See http://goo.gl/MqrFmX `);if(typeof ne!="function")throw new O("expecting a function but got "+y.classString(ne))}(this,z),this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,this._resolveFromExecutor(z),this._promiseCreated(),this._fireEvent("promiseCreated",this)}function A(z){this.promise._resolveCallback(z)}function B(z){this.promise._rejectCallback(z,!1)}function ee(z){var q=new N(C);q._fulfillmentHandler0=z,q._rejectionHandler0=z,q._promise0=z,q._receiver0=z}return N.prototype.toString=function(){return"[object Promise]"},N.prototype.caught=N.prototype.catch=function(z){var q=arguments.length;if(q>1){var ne,ae=new Array(q-1),he=0;for(ne=0;ne0&&typeof z!="function"&&typeof q!="function"){var ne=".then() only accepts functions but was passed: "+y.classString(z);arguments.length>1&&(ne+=", "+y.classString(q)),this._warn(ne)}return this._then(z,q,void 0,void 0,void 0)},N.prototype.done=function(z,q){this._then(z,q,void 0,void 0,void 0)._setIsFinal()},N.prototype.spread=function(z){return typeof z!="function"?h("expecting a function but got "+y.classString(z)):this.all()._then(z,void 0,void 0,R,void 0)},N.prototype.toJSON=function(){var z={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(z.fulfillmentValue=this.value(),z.isFulfilled=!0):this.isRejected()&&(z.rejectionReason=this.reason(),z.isRejected=!0),z},N.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new I(this).promise()},N.prototype.error=function(z){return this.caught(y.originatesFromRejection,z)},N.getNewLibraryCopy=s.exports,N.is=function(z){return z instanceof N},N.fromNode=N.fromCallback=function(z){var q=new N(C);q._captureStackTrace();var ne=arguments.length>1&&!!Object(arguments[1]).multiArgs,ae=V(z)(re(q,ne));return ae===se&&q._rejectCallback(ae.e,!0),q._isFateSealed()||q._setAsyncGuaranteed(),q},N.all=function(z){return new I(z).promise()},N.cast=function(z){var q=U(z);return q instanceof N||((q=new N(C))._captureStackTrace(),q._setFulfilled(),q._rejectionHandler0=z),q},N.resolve=N.fulfilled=N.cast,N.reject=N.rejected=function(z){var q=new N(C);return q._captureStackTrace(),q._rejectCallback(z,!0),q},N.setScheduler=function(z){if(typeof z!="function")throw new O("expecting a function but got "+y.classString(z));return b.setScheduler(z)},N.prototype._then=function(z,q,ne,ae,he){var P=he!==void 0,k=P?he:new N(C),D=this._target(),G=D._bitField;P||(k._propagateFrom(this,3),k._captureStackTrace(),ae===void 0&&2097152&this._bitField&&(ae=50397184&G?this._boundValue():D===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,k));var Z=m();if(50397184&G){var ie,pe,Le=D._settlePromiseCtx;33554432&G?(pe=D._rejectionHandler0,ie=z):16777216&G?(pe=D._fulfillmentHandler0,ie=q,D._unsetRejectionIsUnhandled()):(Le=D._settlePromiseLateCancellationObserver,pe=new M("late cancellation observer"),D._attachExtraTrace(pe),ie=q),b.invoke(Le,D,{handler:Z===null?ie:typeof ie=="function"&&y.domainBind(Z,ie),promise:k,receiver:ae,value:pe})}else D._addCallbacks(z,q,k,ae,Z);return k},N.prototype._length=function(){return 65535&this._bitField},N.prototype._isFateSealed=function(){return(117506048&this._bitField)!=0},N.prototype._isFollowing=function(){return(67108864&this._bitField)==67108864},N.prototype._setLength=function(z){this._bitField=-65536&this._bitField|65535&z},N.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},N.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},N.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},N.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},N.prototype._isFinal=function(){return(4194304&this._bitField)>0},N.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},N.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},N.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},N.prototype._setAsyncGuaranteed=function(){b.hasCustomScheduler()||(this._bitField=134217728|this._bitField)},N.prototype._receiverAt=function(z){var q=z===0?this._receiver0:this[4*z-4+3];if(q!==v)return q===void 0&&this._isBound()?this._boundValue():q},N.prototype._promiseAt=function(z){return this[4*z-4+2]},N.prototype._fulfillmentHandlerAt=function(z){return this[4*z-4+0]},N.prototype._rejectionHandlerAt=function(z){return this[4*z-4+1]},N.prototype._boundValue=function(){},N.prototype._migrateCallback0=function(z){z._bitField;var q=z._fulfillmentHandler0,ne=z._rejectionHandler0,ae=z._promise0,he=z._receiverAt(0);he===void 0&&(he=v),this._addCallbacks(q,ne,ae,he,null)},N.prototype._migrateCallbackAt=function(z,q){var ne=z._fulfillmentHandlerAt(q),ae=z._rejectionHandlerAt(q),he=z._promiseAt(q),P=z._receiverAt(q);P===void 0&&(P=v),this._addCallbacks(ne,ae,he,P,null)},N.prototype._addCallbacks=function(z,q,ne,ae,he){var P=this._length();if(P>=65531&&(P=0,this._setLength(0)),P===0)this._promise0=ne,this._receiver0=ae,typeof z=="function"&&(this._fulfillmentHandler0=he===null?z:y.domainBind(he,z)),typeof q=="function"&&(this._rejectionHandler0=he===null?q:y.domainBind(he,q));else{var k=4*P-4;this[k+2]=ne,this[k+3]=ae,typeof z=="function"&&(this[k+0]=he===null?z:y.domainBind(he,z)),typeof q=="function"&&(this[k+1]=he===null?q:y.domainBind(he,q))}return this._setLength(P+1),P},N.prototype._proxy=function(z,q){this._addCallbacks(void 0,void 0,q,z,null)},N.prototype._resolveCallback=function(z,q){if(!(117506048&this._bitField)){if(z===this)return this._rejectCallback(c(),!1);var ne=U(z,this);if(!(ne instanceof N))return this._fulfill(z);q&&this._propagateFrom(ne,2);var ae=ne._target();if(ae!==this){var he=ae._bitField;if(50397184&he)if(33554432&he)this._fulfill(ae._value());else if(16777216&he)this._reject(ae._reason());else{var D=new M("late cancellation observer");ae._attachExtraTrace(D),this._reject(D)}else{var P=this._length();P>0&&ae._migrateCallback0(this);for(var k=1;k>>16)){if(z===this){var ne=c();return this._attachExtraTrace(ne),this._reject(ne)}this._setFulfilled(),this._rejectionHandler0=z,(65535&q)>0&&(134217728&q?this._settlePromises():b.settlePromises(this))}},N.prototype._reject=function(z){var q=this._bitField;if(!((117506048&q)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=z,this._isFinal())return b.fatalError(z,y.isNode);(65535&q)>0?b.settlePromises(this):this._ensurePossibleRejectionHandled()}},N.prototype._fulfillPromises=function(z,q){for(var ne=1;ne0){if(16842752&z){var ne=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,ne,z),this._rejectPromises(q,ne)}else{var ae=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,ae,z),this._fulfillPromises(q,ae)}this._setLength(0)}this._clearCancellationData()},N.prototype._settledValue=function(){var z=this._bitField;return 33554432&z?this._rejectionHandler0:16777216&z?this._fulfillmentHandler0:void 0},N.defer=N.pending=function(){return J.deprecated("Promise.defer","new Promise"),{promise:new N(C),resolve:A,reject:B}},y.notEnumerableProp(N,"_makeSelfResolutionError",c),a("./method")(N,C,U,h,J),a("./bind")(N,C,U,J),a("./cancel")(N,I,h,J),a("./direct_resolve")(N),a("./synchronous_inspection")(N),a("./join")(N,I,U,C,b,m),N.Promise=N,N.version="3.5.1",a("./map.js")(N,I,h,U,C,J),a("./call_get.js")(N),a("./using.js")(N,h,U,W,C,J),a("./timers.js")(N,C,J),a("./generators.js")(N,h,C,U,p,J),a("./nodeify.js")(N),a("./promisify.js")(N,C),a("./props.js")(N,I,U,h),a("./race.js")(N,C,U,h),a("./reduce.js")(N,I,h,U,C,J),a("./settle.js")(N,I,J),a("./some.js")(N,I,h),a("./filter.js")(N,C),a("./each.js")(N,C),a("./any.js")(N),y.toFastProperties(N),y.toFastProperties(N.prototype),ee({a:1}),ee({b:2}),ee({c:3}),ee(1),ee(function(){}),ee(void 0),ee(!1),ee(new N(C)),J.setBounds(_.firstLineError,y.lastLineError),N}},{"./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,l){s.exports=function(c,f,h,p,m){var v=a("./util");function y(w){var _=this._promise=new c(f);w instanceof c&&_._propagateFrom(w,3),_._setOnCancel(this),this._values=w,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return v.isArray,v.inherits(y,m),y.prototype.length=function(){return this._length},y.prototype.promise=function(){return this._promise},y.prototype._init=function w(_,b){var S=h(this._values,this._promise);if(S instanceof c){var O=(S=S._target())._bitField;if(this._values=S,(50397184&O)==0)return this._promise._setAsyncGuaranteed(),S._then(w,this._reject,void 0,this,b);if(!(33554432&O))return 16777216&O?this._reject(S._reason()):this._cancel();S=S._value()}if((S=v.asArray(S))!==null)S.length!==0?this._iterate(S):b===-5?this._resolveEmptyArray():this._resolve(function(C){switch(b){case-2:return[];case-3:return{};case-6:return new Map}}());else{var M=p("expecting an array or an iterable object but got "+v.classString(S)).reason();this._promise._rejectCallback(M,!1)}},y.prototype._iterate=function(w){var _=this.getActualLength(w.length);this._length=_,this._values=this.shouldCopyValues()?new Array(_):this._values;for(var b=this._promise,S=!1,O=null,M=0;M<_;++M){var C=h(w[M],b);O=C instanceof c?(C=C._target())._bitField:null,S?O!==null&&C.suppressUnhandledRejections():O!==null?50397184&O?S=33554432&O?this._promiseFulfilled(C._value(),M):16777216&O?this._promiseRejected(C._reason(),M):this._promiseCancelled(M):(C._proxy(this,M),this._values[M]=C):S=this._promiseFulfilled(C,M)}S||b._setAsyncGuaranteed()},y.prototype._isResolved=function(){return this._values===null},y.prototype._resolve=function(w){this._values=null,this._promise._fulfill(w)},y.prototype._cancel=function(){!this._isResolved()&&this._promise._isCancellable()&&(this._values=null,this._promise._cancel())},y.prototype._reject=function(w){this._values=null,this._promise._rejectCallback(w,!1)},y.prototype._promiseFulfilled=function(w,_){return this._values[_]=w,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},y.prototype._promiseCancelled=function(){return this._cancel(),!0},y.prototype._promiseRejected=function(w){return this._totalResolved++,this._reject(w),!0},y.prototype._resultCancelled=function(){if(!this._isResolved()){var w=this._values;if(this._cancel(),w instanceof c)w.cancel();else for(var _=0;_=this._length){var C;if(this._isMap)C=function(I){for(var H=new m,W=I.length/2|0,J=0;J>1},c.prototype.props=function(){return S(this)},c.props=function(O){return S(O)}}},{"./es5":13,"./util":36}],26:[function(a,s,l){function c(f){this._capacity=f,this._length=0,this._front=0}c.prototype._willBeOverCapacity=function(f){return this._capacity"u"){var p=i.setImmediate,m=r.nextTick;c=f.isRecentNode?function(y){p.call(i,y)}:function(y){m.call(r,y)}}else if(typeof h=="function"&&typeof h.resolve=="function"){var v=h.resolve();c=function(y){v.then(y)}}else c=typeof MutationObserver>"u"||typeof window<"u"&&window.navigator&&(window.navigator.standalone||window.cordova)?o!==void 0?function(y){o(y)}:typeof setTimeout<"u"?function(y){setTimeout(y,0)}:function(){throw new Error(`No async scheduler available See http://goo.gl/MqrFmX `)}:function(){var y=document.createElement("div"),w={attributes:!0},_=!1,b=document.createElement("div");return new MutationObserver(function(){y.classList.toggle("foo"),_=!1}).observe(b,w),function(S){var O=new MutationObserver(function(){O.disconnect(),S()});O.observe(y,w),_||(_=!0,b.classList.toggle("foo"))}}();s.exports=c},{"./util":36}],30:[function(a,s,l){s.exports=function(c,f,h){var p=c.PromiseInspection;function m(v){this.constructor$(v)}a("./util").inherits(m,f),m.prototype._promiseResolved=function(v,y){return this._values[v]=y,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},m.prototype._promiseFulfilled=function(v,y){var w=new p;return w._bitField=33554432,w._settledValueField=v,this._promiseResolved(y,w)},m.prototype._promiseRejected=function(v,y){var w=new p;return w._bitField=16777216,w._settledValueField=v,this._promiseResolved(y,w)},c.settle=function(v){return h.deprecated(".settle()",".reflect()"),new m(v).promise()},c.prototype.settle=function(){return c.settle(this)}}},{"./util":36}],31:[function(a,s,l){s.exports=function(c,f,h){var p=a("./util"),m=a("./errors").RangeError,v=a("./errors").AggregateError,y=p.isArray,w={};function _(S){this.constructor$(S),this._howMany=0,this._unwrap=!1,this._initialized=!1}function b(S,O){if((0|O)!==O||O<0)return h(`expecting a positive integer See http://goo.gl/MqrFmX `);var M=new _(S),C=M.promise();return M.setHowMany(O),M.init(),C}p.inherits(_,f),_.prototype._init=function(){if(this._initialized)if(this._howMany!==0){this._init$(void 0,-5);var S=y(this._values);!this._isResolved()&&S&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}else this._resolve([])},_.prototype.init=function(){this._initialized=!0,this._init()},_.prototype.setUnwrap=function(){this._unwrap=!0},_.prototype.howMany=function(){return this._howMany},_.prototype.setHowMany=function(S){this._howMany=S},_.prototype._promiseFulfilled=function(S){return this._addFulfilled(S),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),this.howMany()===1&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},_.prototype._promiseRejected=function(S){return this._addRejected(S),this._checkOutcome()},_.prototype._promiseCancelled=function(){return this._values instanceof c||this._values==null?this._cancel():(this._addRejected(w),this._checkOutcome())},_.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var S=new v,O=this.length();O0?this._reject(S):this._cancel(),!0}return!1},_.prototype._fulfilled=function(){return this._totalResolved},_.prototype._rejected=function(){return this._values.length-this.length()},_.prototype._addRejected=function(S){this._values.push(S)},_.prototype._addFulfilled=function(S){this._values[this._totalResolved++]=S},_.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},_.prototype._getRangeError=function(S){var O="Input array must contain at least "+this._howMany+" items but contains only "+S+" items";return new m(O)},_.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},c.some=function(S,O){return b(S,O)},c.prototype.some=function(S){return b(this,S)},c._SomePromiseArray=_}},{"./errors":12,"./util":36}],32:[function(a,s,l){s.exports=function(c){function f(_){_!==void 0?(_=_._target(),this._bitField=_._bitField,this._settledValueField=_._isFateSealed()?_._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}f.prototype._settledValue=function(){return this._settledValueField};var h=f.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()},p=f.prototype.error=f.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()},m=f.prototype.isFulfilled=function(){return(33554432&this._bitField)!=0},v=f.prototype.isRejected=function(){return(16777216&this._bitField)!=0},y=f.prototype.isPending=function(){return(50397184&this._bitField)==0},w=f.prototype.isResolved=function(){return(50331648&this._bitField)!=0};f.prototype.isCancelled=function(){return(8454144&this._bitField)!=0},c.prototype.__isCancelled=function(){return(65536&this._bitField)==65536},c.prototype._isCancelled=function(){return this._target().__isCancelled()},c.prototype.isCancelled=function(){return(8454144&this._target()._bitField)!=0},c.prototype.isPending=function(){return y.call(this._target())},c.prototype.isRejected=function(){return v.call(this._target())},c.prototype.isFulfilled=function(){return m.call(this._target())},c.prototype.isResolved=function(){return w.call(this._target())},c.prototype.value=function(){return h.call(this._target())},c.prototype.reason=function(){var _=this._target();return _._unsetRejectionIsUnhandled(),p.call(_)},c.prototype._value=function(){return this._settledValue()},c.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},c.PromiseInspection=f}},{}],33:[function(a,s,l){s.exports=function(c,f){var h=a("./util"),p=h.errorObj,m=h.isObject,v={}.hasOwnProperty;return function(y,w){if(m(y)){if(y instanceof c)return y;var _=function(S){try{return function(O){return O.then}(S)}catch(O){return p.e=O,p}}(y);if(_===p){w&&w._pushContext();var b=c.reject(_.e);return w&&w._popContext(),b}if(typeof _=="function")return function(S){try{return v.call(S,"_promise0")}catch{return!1}}(y)?(b=new c(f),y._then(b._fulfill,b._reject,void 0,b,null),b):function(S,O,M){var C=new c(f),R=C;M&&M._pushContext(),C._captureStackTrace(),M&&M._popContext();var $=!0,U=h.tryCatch(O).call(S,function(I){C&&(C._resolveCallback(I),C=null)},function(I){C&&(C._rejectCallback(I,$,!0),C=null)});return $=!1,C&&U===p&&(C._rejectCallback(U.e,!0,!0),C=null),R}(y,_,w)}return y}}},{"./util":36}],34:[function(a,s,l){s.exports=function(c,f,h){var p=a("./util"),m=c.TimeoutError;function v(S){this.handle=S}v.prototype._resultCancelled=function(){clearTimeout(this.handle)};var y=function(S){return w(+this).thenReturn(S)},w=c.delay=function(S,O){var M,C;return O!==void 0?(M=c.resolve(O)._then(y,null,null,S,void 0),h.cancellation()&&O instanceof c&&M._setOnCancel(O)):(M=new c(f),C=setTimeout(function(){M._fulfill()},+S),h.cancellation()&&M._setOnCancel(new v(C)),M._captureStackTrace()),M._setAsyncGuaranteed(),M};function _(S){return clearTimeout(this.handle),S}function b(S){throw clearTimeout(this.handle),S}c.prototype.delay=function(S){return w(S,this)},c.prototype.timeout=function(S,O){var M,C;S=+S;var R=new v(setTimeout(function(){M.isPending()&&function($,U,I){var H;H=typeof U!="string"?U instanceof Error?U:new m("operation timed out"):new m(U),p.markAsOriginatingFromRejection(H),$._attachExtraTrace(H),$._reject(H),I!=null&&I.cancel()}(M,O,C)},S));return h.cancellation()?(C=this.then(),(M=C._then(_,b,void 0,R,void 0))._setOnCancel(R)):M=this._then(_,b,void 0,R,void 0),M}}},{"./util":36}],35:[function(a,s,l){s.exports=function(c,f,h,p,m,v){var y=a("./util"),w=a("./errors").TypeError,_=a("./util").inherits,b=y.errorObj,S=y.tryCatch,O={};function M(H){setTimeout(function(){throw H},0)}function C(H,W){var J=0,Y=H.length,X=new c(m);return function re(){if(J>=Y)return X._fulfill();var se=function(V){var N=h(V);return N!==V&&typeof V._isDisposable=="function"&&typeof V._getDisposer=="function"&&V._isDisposable()&&N._setDisposable(V._getDisposer()),N}(H[J++]);if(se instanceof c&&se._isDisposable()){try{se=h(se._getDisposer().tryDispose(W),H.promise)}catch(V){return M(V)}if(se instanceof c)return se._then(re,M,null,null,null)}re()}(),X}function R(H,W,J){this._data=H,this._promise=W,this._context=J}function $(H,W,J){this.constructor$(H,W,J)}function U(H){return R.isDisposer(H)?(this.resources[this.index]._setDisposable(H),H.promise()):H}function I(H){this.length=H,this.promise=null,this[H-1]=null}R.prototype.data=function(){return this._data},R.prototype.promise=function(){return this._promise},R.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():O},R.prototype.tryDispose=function(H){var W=this.resource(),J=this._context;J!==void 0&&J._pushContext();var Y=W!==O?this.doDispose(W,H):null;return J!==void 0&&J._popContext(),this._promise._unsetDisposable(),this._data=null,Y},R.isDisposer=function(H){return H!=null&&typeof H.resource=="function"&&typeof H.tryDispose=="function"},_($,R),$.prototype.doDispose=function(H,W){return this.data().call(H,H,W)},I.prototype._resultCancelled=function(){for(var H=this.length,W=0;W0},c.prototype._getDisposer=function(){return this._disposer},c.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},c.prototype.disposer=function(H){if(typeof H=="function")return new $(H,this,p());throw new w}}},{"./errors":12,"./util":36}],36:[function(a,s,l){var c,f=a("./es5"),h=typeof navigator>"u",p={e:{}},m=typeof self<"u"?self:typeof window<"u"?window:i!==void 0?i:this!==void 0?this:null;function v(){try{var Y=c;return c=null,Y.apply(this,arguments)}catch(X){return p.e=X,p}}function y(Y){return Y==null||Y===!0||Y===!1||typeof Y=="string"||typeof Y=="number"}function w(Y,X,re){if(y(Y))return Y;var se={value:re,configurable:!0,enumerable:!1,writable:!0};return f.defineProperty(Y,X,se),Y}var _=function(){var Y=[Array.prototype,Object.prototype,Function.prototype],X=function(V){for(var N=0;N1,se=X.length>0&&!(X.length===1&&X[0]==="constructor"),V=b.test(Y+"")&&f.names(Y).length>0;if(re||se||V)return!0}return!1}catch{return!1}},isIdentifier:function(Y){return S.test(Y)},inheritedDataKeys:_,getDataPropertyOrDefault:function(Y,X,re){if(!f.isES5)return{}.hasOwnProperty.call(Y,X)?Y[X]:void 0;var se=Object.getOwnPropertyDescriptor(Y,X);return se!=null?se.get==null&&se.set==null?se.value:re:void 0},thrower:function(Y){throw Y},isArray:f.isArray,asArray:U,notEnumerableProp:w,isPrimitive:y,isObject:function(Y){return typeof Y=="function"||typeof Y=="object"&&Y!==null},isError:M,canEvaluate:h,errorObj:p,tryCatch:function(Y){return c=Y,v},inherits:function(Y,X){var re={}.hasOwnProperty;function se(){for(var V in this.constructor=Y,this.constructor$=X,X.prototype)re.call(X.prototype,V)&&V.charAt(V.length-1)!=="$"&&(this[V+"$"]=X.prototype[V])}return se.prototype=X.prototype,Y.prototype=new se,Y.prototype},withAppended:function(Y,X){var re,se=Y.length,V=new Array(se+1);for(re=0;re10||Y[0]>0}(),J.isNode&&J.toFastProperties(r);try{throw new Error}catch(Y){J.lastLineError=Y}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(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(r,i){if(!i.eol&&r){for(var o=0,a=r.length;o0?(typeof B=="string"||ae.objectMode||Object.getPrototypeOf(B)===f.prototype||(B=function(he){return f.from(he)}(B)),z?ae.endEmitted?A.emit("error",new Error("stream.unshift() after end event")):C(A,ae,B,!0):ae.ended?A.emit("error",new Error("stream.push() after EOF")):(ae.reading=!1,ae.decoder&&!ee?(B=ae.decoder.write(B),ae.objectMode||B.length!==0?C(A,ae,B,!1):H(A,ae)):C(A,ae,B,!1))):z||(ae.reading=!1)),function(he){return!he.ended&&(he.needReadable||he.lengthB.highWaterMark&&(B.highWaterMark=function(ee){return ee>=R?ee=R:(ee--,ee|=ee>>>1,ee|=ee>>>2,ee|=ee>>>4,ee|=ee>>>8,ee|=ee>>>16,ee++),ee}(A)),A<=B.length?A:B.ended?B.length:(B.needReadable=!0,0))}function U(A){var B=A._readableState;B.needReadable=!1,B.emittedReadable||(v("emitReadable",B.flowing),B.emittedReadable=!0,B.sync?o.nextTick(I,A):I(A))}function I(A){v("emit readable"),A.emit("readable"),X(A)}function H(A,B){B.readingMore||(B.readingMore=!0,o.nextTick(W,A,B))}function W(A,B){for(var ee=B.length;!B.reading&&!B.flowing&&!B.ended&&B.length=B.length?(ee=B.decoder?B.buffer.join(""):B.buffer.length===1?B.buffer.head.data:B.buffer.concat(B.length),B.buffer.clear()):ee=function(z,q,ne){var ae;return zZ.length?Z.length:he;if(ie===Z.length?G+=Z:G+=Z.slice(0,he),(he-=ie)==0){ie===Z.length?(++D,k.next?P.head=k.next:P.head=P.tail=null):(P.head=k,k.data=Z.slice(ie));break}++D}return P.length-=D,G}(z,q):function(he,P){var k=f.allocUnsafe(he),D=P.head,G=1;for(D.data.copy(k),he-=D.data.length;D=D.next;){var Z=D.data,ie=he>Z.length?Z.length:he;if(Z.copy(k,k.length-he,0,ie),(he-=ie)==0){ie===Z.length?(++G,D.next?P.head=D.next:P.head=P.tail=null):(P.head=D,D.data=Z.slice(ie));break}++G}return P.length-=G,k}(z,q),ae}(A,B.buffer,B.decoder),ee);var ee}function se(A){var B=A._readableState;if(B.length>0)throw new Error('"endReadable()" called on non-empty stream');B.endEmitted||(B.ended=!0,o.nextTick(V,B,A))}function V(A,B){A.endEmitted||A.length!==0||(A.endEmitted=!0,B.readable=!1,B.emit("end"))}function N(A,B){for(var ee=0,z=A.length;ee=B.highWaterMark||B.ended))return v("read: emitReadable",B.length,B.ended),B.length===0&&B.ended?se(this):U(this),null;if((A=$(A,B))===0&&B.ended)return B.length===0&&se(this),null;var z,q=B.needReadable;return v("need readable",q),(B.length===0||B.length-A0?re(A,B):null)===null?(B.needReadable=!0,A=0):B.length-=A,B.length===0&&(B.ended||(B.needReadable=!0),ee!==A&&B.ended&&se(this)),z!==null&&this.emit("data",z),z},O.prototype._read=function(A){this.emit("error",new Error("_read() is not implemented"))},O.prototype.pipe=function(A,B){var ee=this,z=this._readableState;switch(z.pipesCount){case 0:z.pipes=A;break;case 1:z.pipes=[z.pipes,A];break;default:z.pipes.push(A)}z.pipesCount+=1,v("pipe count=%d opts=%j",z.pipesCount,B);var q=B&&B.end===!1||A===i.stdout||A===i.stderr?ie:ne;function ne(){v("onend"),A.end()}z.endEmitted?o.nextTick(q):ee.once("end",q),A.on("unpipe",function pe(Le,ue){v("onunpipe"),Le===ee&&ue&&ue.hasUnpiped===!1&&(ue.hasUnpiped=!0,v("cleanup"),A.removeListener("close",G),A.removeListener("finish",Z),A.removeListener("drain",ae),A.removeListener("error",D),A.removeListener("unpipe",pe),ee.removeListener("end",ne),ee.removeListener("end",ie),ee.removeListener("data",k),he=!0,!z.awaitDrain||A._writableState&&!A._writableState.needDrain||ae())});var ae=function(pe){return function(){var Le=pe._readableState;v("pipeOnDrain",Le.awaitDrain),Le.awaitDrain&&Le.awaitDrain--,Le.awaitDrain===0&&l(pe,"data")&&(Le.flowing=!0,X(pe))}}(ee);A.on("drain",ae);var he=!1,P=!1;function k(pe){v("ondata"),P=!1,A.write(pe)!==!1||P||((z.pipesCount===1&&z.pipes===A||z.pipesCount>1&&N(z.pipes,A)!==-1)&&!he&&(v("false write response, pause",ee._readableState.awaitDrain),ee._readableState.awaitDrain++,P=!0),ee.pause())}function D(pe){v("onerror",pe),ie(),A.removeListener("error",D),l(A,"error")===0&&A.emit("error",pe)}function G(){A.removeListener("finish",Z),ie()}function Z(){v("onfinish"),A.removeListener("close",G),ie()}function ie(){v("unpipe"),ee.unpipe(A)}return ee.on("data",k),function(pe,Le,ue){if(typeof pe.prependListener=="function")return pe.prependListener(Le,ue);pe._events&&pe._events[Le]?s(pe._events[Le])?pe._events[Le].unshift(ue):pe._events[Le]=[ue,pe._events[Le]]:pe.on(Le,ue)}(A,"error",D),A.once("close",G),A.once("finish",Z),A.emit("pipe",ee),z.flowing||(v("pipe resume"),ee.resume()),A},O.prototype.unpipe=function(A){var B=this._readableState,ee={hasUnpiped:!1};if(B.pipesCount===0)return this;if(B.pipesCount===1)return A&&A!==B.pipes?this:(A||(A=B.pipes),B.pipes=null,B.pipesCount=0,B.flowing=!1,A&&A.emit("unpipe",this,ee),this);if(!A){var z=B.pipes,q=B.pipesCount;B.pipes=null,B.pipesCount=0,B.flowing=!1;for(var ne=0;ne>5==6?2:v>>4==14?3:v>>3==30?4:v>>6==2?-1:-2}function s(v){var y=this.lastTotal-this.lastNeed,w=function(_,b,S){if((192&b[0])!=128)return _.lastNeed=0,"�";if(_.lastNeed>1&&b.length>1){if((192&b[1])!=128)return _.lastNeed=1,"�";if(_.lastNeed>2&&b.length>2&&(192&b[2])!=128)return _.lastNeed=2,"�"}}(this,v);return w!==void 0?w:this.lastNeed<=v.length?(v.copy(this.lastChar,y,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(v.copy(this.lastChar,y,0,v.length),void(this.lastNeed-=v.length))}function l(v,y){if((v.length-y)%2==0){var w=v.toString("utf16le",y);if(w){var _=w.charCodeAt(w.length-1);if(_>=55296&&_<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=v[v.length-2],this.lastChar[1]=v[v.length-1],w.slice(0,-1)}return w}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=v[v.length-1],v.toString("utf16le",y,v.length-1)}function c(v){var y=v&&v.length?this.write(v):"";if(this.lastNeed){var w=this.lastTotal-this.lastNeed;return y+this.lastChar.toString("utf16le",0,w)}return y}function f(v,y){var w=(v.length-y)%3;return w===0?v.toString("base64",y):(this.lastNeed=3-w,this.lastTotal=3,w===1?this.lastChar[0]=v[v.length-1]:(this.lastChar[0]=v[v.length-2],this.lastChar[1]=v[v.length-1]),v.toString("base64",y,v.length-w))}function h(v){var y=v&&v.length?this.write(v):"";return this.lastNeed?y+this.lastChar.toString("base64",0,3-this.lastNeed):y}function p(v){return v.toString(this.encoding)}function m(v){return v&&v.length?this.write(v):""}e.StringDecoder=o,o.prototype.write=function(v){if(v.length===0)return"";var y,w;if(this.lastNeed){if((y=this.fillLast(v))===void 0)return"";w=this.lastNeed,this.lastNeed=0}else w=0;return w=0?(C>0&&(b.lastNeed=C-1),C):--M=0?(C>0&&(b.lastNeed=C-2),C):--M=0?(C>0&&(C===2?C=0:b.lastNeed=C-3),C):0}(this,v,y);if(!this.lastNeed)return v.toString("utf8",y);this.lastTotal=w;var _=v.length-(w-this.lastNeed);return v.copy(this.lastChar,0,_),v.toString("utf8",y,_)},o.prototype.fillLast=function(v){if(this.lastNeed<=v.length)return v.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);v.copy(this.lastChar,this.lastTotal-this.lastNeed,0,v.length),this.lastNeed-=v.length}},function(t,e,n){t.exports=o;var r=n(1),i=n(5);function o(l){if(!(this instanceof o))return new o(l);r.call(this,l),this._transformState={afterTransform:function(c,f){var h=this._transformState;h.transforming=!1;var p=h.writecb;if(!p)return this.emit("error",new Error("write callback called multiple times"));h.writechunk=null,h.writecb=null,f!=null&&this.push(f),p(c);var m=this._readableState;m.reading=!1,(m.needReadable||m.length-1&&a.push(i[s]);return a},e.trimLeft=String.prototype.trimLeft?function(i){return i.trimLeft()}:function(i){return i.replace(/^\s+/,"")},e.trimRight=String.prototype.trimRight?function(i){return i.trimRight()}:function(i){return i.replace(/\s+$/,"")}}).call(this,n(3).Buffer)},function(t,e,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 l in s)s.hasOwnProperty(l)&&(a[l]=s[l])};return function(a,s){function l(){this.constructor=a}o(a,s),a.prototype=s===null?Object.create(s):(l.prototype=s.prototype,new l)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=function(o){function a(s,l,c){var f=o.call(this,"Error: "+s+". JSON Line number: "+l+(c?" near: "+c:""))||this;return f.err=s,f.line=l,f.extra=c,f.name="CSV Parse Error",f}return r(a,o),a.column_mismatched=function(s,l){return new a("column_mismatched",s,l)},a.unclosed_quote=function(s,l){return new a("unclosed_quote",s,l)},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);e.default=i},function(t,e,n){var r=n(18),i=n(68),o=n(69),a=r?r.toStringTag:void 0;t.exports=function(s){return s==null?s===void 0?"[object Undefined]":"[object Null]":a&&a in Object(s)?i(s):o(s)}},function(t,e){t.exports=function(n,r){return n===r||n!=n&&r!=r}},function(t,e,n){t.exports=n(33)},function(t,e,n){var r=n(34),i=function(o,a){return new r.Converter(o,a)};i.csv=i,i.Converter=r.Converter,t.exports=i},function(t,e,n){(function(r){var i=this&&this.__extends||function(){var m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,y){v.__proto__=y}||function(v,y){for(var w in y)y.hasOwnProperty(w)&&(v[w]=y[w])};return function(v,y){function w(){this.constructor=v}m(v,y),v.prototype=y===null?Object.create(y):(w.prototype=y.prototype,new w)}}(),o=this&&this.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(e,"__esModule",{value:!0});var a=n(36),s=n(50),l=n(51),c=o(n(15)),f=n(52),h=n(105),p=function(m){function v(y,w){w===void 0&&(w={});var _=m.call(this,w)||this;return _.options=w,_.params=s.mergeParams(y),_.runtime=l.initParseRuntime(_),_.result=new h.Result(_),_.processor=new f.ProcessorLocal(_),_.once("error",function(b){r(function(){_.result.processError(b),_.emit("done",b)})}),_.once("done",function(){_.processor.destroy()}),_}return i(v,m),v.prototype.preRawData=function(y){return this.runtime.preRawDataHook=y,this},v.prototype.preFileLine=function(y){return this.runtime.preFileLineHook=y,this},v.prototype.subscribe=function(y,w,_){return this.parseRuntime.subscribe={onNext:y,onError:w,onCompleted:_},this},v.prototype.fromFile=function(y,w){var _=this,b=n(!function(){var S=new Error("Cannot find module 'fs'");throw S.code="MODULE_NOT_FOUND",S}());return b.exists(y,function(S){S?b.createReadStream(y,w).pipe(_):_.emit("error",new Error("File does not exist. Check to make sure the file path to your csv is correct."))}),this},v.prototype.fromStream=function(y){return y.pipe(this),this},v.prototype.fromString=function(y){y.toString();var w=new a.Readable,_=0;return w._read=function(b){if(_>=y.length)this.push(null);else{var S=y.substr(_,b);this.push(S),_+=b}},this.fromStream(w)},v.prototype.then=function(y,w){var _=this;return new c.default(function(b,S){_.parseRuntime.then={onfulfilled:function(O){b(y?y(O):O)},onrejected:function(O){w?b(w(O)):S(O)}}})},Object.defineProperty(v.prototype,"parseParam",{get:function(){return this.params},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"parseRuntime",{get:function(){return this.runtime},enumerable:!0,configurable:!0}),v.prototype._transform=function(y,w,_){var b=this;this.processor.process(y).then(function(S){if(S.length>0)return b.runtime.started=!0,b.result.processResult(S)}).then(function(){b.emit("drained"),_()},function(S){b.runtime.hasError=!0,b.runtime.error=S,b.emit("error",S),_()})},v.prototype._flush=function(y){var w=this;this.processor.flush().then(function(_){if(_.length>0)return w.result.processResult(_)}).then(function(){w.processEnd(y)},function(_){w.emit("error",_),y()})},v.prototype.processEnd=function(y){this.result.endProcess(),this.emit("done"),y()},Object.defineProperty(v.prototype,"parsedLineNumber",{get:function(){return this.runtime.parsedLineNumber},enumerable:!0,configurable:!0}),v}(a.Transform);e.Converter=p}).call(this,n(11).setImmediate)},function(t,e,n){(function(r,i){(function(o,a){if(!o.setImmediate){var s,l=1,c={},f=!1,h=o.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(o);p=p&&p.setTimeout?p:o,{}.toString.call(o.process)==="[object process]"?s=function(y){i.nextTick(function(){v(y)})}:function(){if(o.postMessage&&!o.importScripts){var y=!0,w=o.onmessage;return o.onmessage=function(){y=!1},o.postMessage("","*"),o.onmessage=w,y}}()?function(){var y="setImmediate$"+Math.random()+"$",w=function(_){_.source===o&&typeof _.data=="string"&&_.data.indexOf(y)===0&&v(+_.data.slice(y.length))};o.addEventListener?o.addEventListener("message",w,!1):o.attachEvent("onmessage",w),s=function(_){o.postMessage(y+_,"*")}}():o.MessageChannel?function(){var y=new MessageChannel;y.port1.onmessage=function(w){v(w.data)},s=function(w){y.port2.postMessage(w)}}():h&&"onreadystatechange"in h.createElement("script")?function(){var y=h.documentElement;s=function(w){var _=h.createElement("script");_.onreadystatechange=function(){v(w),_.onreadystatechange=null,y.removeChild(_),_=null},y.appendChild(_)}}():s=function(y){setTimeout(v,0,y)},p.setImmediate=function(y){typeof y!="function"&&(y=new Function(""+y));for(var w=new Array(arguments.length-1),_=0;_"u"?r===void 0?this:r:self)}).call(this,n(0),n(4))},function(t,e,n){t.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 l(y){o.writable&&o.write(y)===!1&&s.pause&&s.pause()}function c(){s.readable&&s.resume&&s.resume()}s.on("data",l),o.on("drain",c),o._isStdio||a&&a.end===!1||(s.on("end",h),s.on("close",p));var f=!1;function h(){f||(f=!0,o.end())}function p(){f||(f=!0,typeof o.destroy=="function"&&o.destroy())}function m(y){if(v(),r.listenerCount(this,"error")===0)throw y}function v(){s.removeListener("data",l),o.removeListener("drain",c),s.removeListener("end",h),s.removeListener("close",p),s.removeListener("error",m),o.removeListener("error",m),s.removeListener("end",v),s.removeListener("close",v),o.removeListener("close",v)}return s.on("error",m),o.on("error",m),s.on("end",v),s.on("close",v),o.on("close",v),o.emit("pipe",s),o}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(r){return n.call(r)=="[object Array]"}},function(t,e,n){e.byteLength=function(p){var m=c(p),v=m[0],y=m[1];return 3*(v+y)/4-y},e.toByteArray=function(p){for(var m,v=c(p),y=v[0],w=v[1],_=new o(3*(y+w)/4-w),b=0,S=w>0?y-4:y,O=0;O>16&255,_[b++]=m>>8&255,_[b++]=255&m;return w===2&&(m=i[p.charCodeAt(O)]<<2|i[p.charCodeAt(O+1)]>>4,_[b++]=255&m),w===1&&(m=i[p.charCodeAt(O)]<<10|i[p.charCodeAt(O+1)]<<4|i[p.charCodeAt(O+2)]>>2,_[b++]=m>>8&255,_[b++]=255&m),_},e.fromByteArray=function(p){for(var m,v=p.length,y=v%3,w=[],_=0,b=v-y;_b?b:_+16383));return y===1?(m=p[v-1],w.push(r[m>>2]+r[m<<4&63]+"==")):y===2&&(m=(p[v-2]<<8)+p[v-1],w.push(r[m>>10]+r[m>>4&63]+r[m<<2&63]+"=")),w.join("")};for(var r=[],i=[],o=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var v=p.indexOf("=");return v===-1&&(v=m),[v,v===m?0:4-v%4]}function f(p){return r[p>>18&63]+r[p>>12&63]+r[p>>6&63]+r[63&p]}function h(p,m,v){for(var y,w=[],_=m;_>1,p=-7,m=i?a-1:0,v=i?-1:1,y=n[r+m];for(m+=v,s=y&(1<<-p)-1,y>>=-p,p+=c;p>0;s=256*s+n[r+m],m+=v,p-=8);for(l=s&(1<<-p)-1,s>>=-p,p+=o;p>0;l=256*l+n[r+m],m+=v,p-=8);if(s===0)s=1-h;else{if(s===f)return l?NaN:1/0*(y?-1:1);l+=Math.pow(2,o),s-=h}return(y?-1:1)*l*Math.pow(2,s-o)},e.write=function(n,r,i,o,a,s){var l,c,f,h=8*s-a-1,p=(1<>1,v=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=o?0:s-1,w=o?1:-1,_=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(c=isNaN(r)?1:0,l=p):(l=Math.floor(Math.log(r)/Math.LN2),r*(f=Math.pow(2,-l))<1&&(l--,f*=2),(r+=l+m>=1?v/f:v*Math.pow(2,1-m))*f>=2&&(l++,f/=2),l+m>=p?(c=0,l=p):l+m>=1?(c=(r*f-1)*Math.pow(2,a),l+=m):(c=r*Math.pow(2,m-1)*Math.pow(2,a),l=0));a>=8;n[i+y]=255&c,y+=w,c/=256,a-=8);for(l=l<0;n[i+y]=255&l,y+=w,l/=256,h-=8);n[i+y-w]|=128*_}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(r){return n.call(r)=="[object Array]"}},function(t,e){},function(t,e,n){var r=n(7).Buffer,i=n(43);function o(a,s,l){a.copy(s,l)}t.exports=function(){function a(){(function(s,l){if(!(s instanceof l))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 l={data:s,next:null};this.length>0?this.tail.next=l:this.head=l,this.tail=l,++this.length},a.prototype.unshift=function(s){var l={data:s,next:this.head};this.length===0&&(this.tail=l),this.head=l,++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 l=this.head,c=""+l.data;l=l.next;)c+=s+l.data;return c},a.prototype.concat=function(s){if(this.length===0)return r.alloc(0);if(this.length===1)return this.head.data;for(var l=r.allocUnsafe(s>>>0),c=this.head,f=0;c;)o(c.data,l,f),f+=c.data.length,c=c.next;return l},a}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var a=i.inspect({length:this.length});return this.constructor.name+" "+a})},function(t,e){},function(t,e,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"}t.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(t,e,n){t.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,l){l(null,a)}},function(t,e,n){t.exports=n(14)},function(t,e,n){t.exports=n(1)},function(t,e,n){t.exports=n(13).Transform},function(t,e,n){t.exports=n(13).PassThrough},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.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(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.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(t,e,n){(function(r){var i=this&&this.__extends||function(){var w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,b){_.__proto__=b}||function(_,b){for(var S in b)b.hasOwnProperty(S)&&(_[S]=b[S])};return function(_,b){function S(){this.constructor=_}w(_,b),_.prototype=b===null?Object.create(b):(S.prototype=b.prototype,new S)}}(),o=this&&this.__importDefault||function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(e,"__esModule",{value:!0});var a=n(53),s=o(n(15)),l=n(54),c=o(n(16)),f=n(57),h=n(28),p=n(58),m=o(n(59)),v=o(n(29)),y=function(w){function _(){var b=w!==null&&w.apply(this,arguments)||this;return b.rowSplit=new p.RowSplit(b.converter),b.eolEmitted=!1,b._needEmitEol=void 0,b.headEmitted=!1,b._needEmitHead=void 0,b}return i(_,w),_.prototype.flush=function(){var b=this;if(this.runtime.csvLineBuffer&&this.runtime.csvLineBuffer.length>0){var S=this.runtime.csvLineBuffer;return this.runtime.csvLineBuffer=void 0,this.process(S,!0).then(function(O){return b.runtime.csvLineBuffer&&b.runtime.csvLineBuffer.length>0?s.default.reject(v.default.unclosed_quote(b.runtime.parsedLineNumber,b.runtime.csvLineBuffer.toString())):s.default.resolve(O)})}return s.default.resolve([])},_.prototype.destroy=function(){return s.default.resolve()},Object.defineProperty(_.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(_.prototype,"needEmitHead",{get:function(){return this._needEmitHead===void 0&&(this._needEmitHead=this.converter.listeners("header").length>0),this._needEmitHead},enumerable:!0,configurable:!0}),_.prototype.process=function(b,S){var O,M=this;return S===void 0&&(S=!1),O=S?b.toString():l.prepareData(b,this.converter.parseRuntime),s.default.resolve().then(function(){return M.runtime.preRawDataHook?M.runtime.preRawDataHook(O):O}).then(function(C){return C&&C.length>0?M.processCSV(C,S):s.default.resolve([])})},_.prototype.processCSV=function(b,S){var O=this,M=this.params,C=this.runtime;C.eol||c.default(b,C),this.needEmitEol&&!this.eolEmitted&&C.eol&&(this.converter.emit("eol",C.eol),this.eolEmitted=!0),M.ignoreEmpty&&!C.started&&(b=h.trimLeft(b));var R=f.stringToLines(b,C);return S?(R.lines.push(R.partial),R.partial=""):this.prependLeftBuf(h.bufFromString(R.partial)),R.lines.length>0?(C.preFileLineHook?this.runPreLineHook(R.lines):s.default.resolve(R.lines)).then(function($){return C.started||O.runtime.headers?O.processCSVBody($):O.processDataWithHead($)}):s.default.resolve([])},_.prototype.processDataWithHead=function(b){if(this.params.noheader)this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=[];else{for(var S="",O=[];b.length;){var M=S+b.shift(),C=this.rowSplit.parse(M);if(C.closed){O=C.cells,S="";break}S=M+c.default(M,this.runtime)}if(this.prependLeftBuf(h.bufFromString(S)),O.length===0)return[];this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=O}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(b)},_.prototype.filterHeader=function(){if(this.runtime.selectedColumns=[],this.runtime.headers){for(var b=this.runtime.headers,S=0;S=R.length)I();else if($.preFileLineHook){var H=R[U],W=$.preFileLineHook(H,$.parsedLineNumber+U);if(U++,W&&W.then)W.then(function(J){R[U-1]=J,C(R,$,U,I)});else{for(R[U-1]=W;U0?r.concat([h.csvLineBuffer,f]):f}(a,s);s.csvLineBuffer=void 0;var c=function(f,h){var p=f.length-1;if(128&f[p]){for(;(192&f[p])==128;)p--;p--}return p!=f.length-1?(h.csvLineBuffer=f.slice(p+1),f.slice(0,p+1)):f}(l,s).toString("utf8");return s.started===!1?o.default(c):c}}).call(this,n(3).Buffer)},function(t,e,n){(function(r){var i=n(56);t.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(t,e){t.exports=function(n){for(var r=0;r0),this._needEmitDelimiter},enumerable:!0,configurable:!0}),l.prototype.parse=function(c){if(c.length===0||this.conv.parseParam.ignoreEmpty&&c.trim().length===0)return{cells:[],closed:!0};var f=this.quote,h=this.trim;this.escape,(this.conv.parseRuntime.delimiter instanceof Array||this.conv.parseRuntime.delimiter.toLowerCase()==="auto")&&(this.conv.parseRuntime.delimiter=this.getDelimiter(c)),this.needEmitDelimiter&&!this.delimiterEmitted&&(this.conv.emit("delimiter",this.conv.parseRuntime.delimiter),this.delimiterEmitted=!0);var p=this.conv.parseRuntime.delimiter,m=c.split(p);if(f==="off"){if(h)for(var v=0;vh&&(p=m,h=v)}),p},l.prototype.isQuoteOpen=function(c){var f=this.quote,h=this.escape;return c[0]===f&&(c[1]!==f||c[1]===h&&(c[2]===f||c.length===2))},l.prototype.isQuoteClose=function(c){var f=this.quote,h=this.escape;this.conv.parseParam.trim&&(c=o.trimRight(c));for(var p=0,m=c.length-1;c[m]===f||c[m]===h;)m--,p++;return p%2!=0},l.prototype.escapeQuote=function(c){var f="es|"+this.quote+"|"+this.escape;this.cachedRegExp[f]===void 0&&(this.cachedRegExp[f]=new RegExp("\\"+this.escape+"\\"+this.quote,"g"));var h=this.cachedRegExp[f];return c.replace(h,this.quote)},l.prototype.parseMultiLines=function(c){for(var f=[],h="";c.length;){var p=h+c.shift(),m=this.parse(p);m.cells.length===0&&this.conv.parseParam.ignoreEmpty||(m.closed||this.conv.parseParam.alwaysSplitAtEOL?(this.conv.parseRuntime.selectedColumns?f.push(o.filterArray(m.cells,this.conv.parseRuntime.selectedColumns)):f.push(m.cells),h=""):h=p+(i.default(p,this.conv.parseRuntime)||` `))}return{rowsCells:f,partial:h}},l}();e.RowSplit=s},function(t,e,n){var r=this&&this.__importDefault||function(_){return _&&_.__esModule?_:{default:_}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(29)),o=r(n(60)),a=/^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/;function s(_,b,S){if(b.parseParam.checkColumn&&b.parseRuntime.headers&&_.length!==b.parseRuntime.headers.length)throw i.default.column_mismatched(b.parseRuntime.parsedLineNumber+S);return function(O,M,C){for(var R=!1,$={},U=0,I=O.length;U-1){for(var C=b.split("."),R=!0;C.length>0;)if(C.shift().length===0){R=!1;break}!R||O.parseParam.colParser[b]&&O.parseParam.colParser[b].flat?O.parseRuntime.columnValueSetter[M]=h:O.parseRuntime.columnValueSetter[M]=p}else O.parseRuntime.columnValueSetter[M]=h;O.parseParam.nullObject===!0&&S==="null"&&(S=null),O.parseRuntime.columnValueSetter[M](_,b,S)}function h(_,b,S){_[b]=S}function p(_,b,S){o.default(_,b,S)}function m(_,b,S,O){return O.parseRuntime.headerType[S]?O.parseRuntime.headerType[S]:b.indexOf("number#!")>-1?O.parseRuntime.headerType[S]=v:b.indexOf("string#!")>-1?O.parseRuntime.headerType[S]=y:O.parseParam.checkType?O.parseRuntime.headerType[S]=w:O.parseRuntime.headerType[S]=y}function v(_){var b=parseFloat(_);return isNaN(b)?_:b}function y(_){return _.toString()}function w(_){var b=_.trim();return b===""?y(_):a.test(b)?v(_):b.length===5&&b.toLowerCase()==="false"||b.length===4&&b.toLowerCase()==="true"?function(S){var O=S.trim();return O.length!==5||O.toLowerCase()!=="false"}(_):b[0]==="{"&&b[b.length-1]==="}"||b[0]==="["&&b[b.length-1]==="]"?function(S){try{return JSON.parse(S)}catch{return S}}(_):y(_)}},function(t,e,n){var r=n(61);t.exports=function(i,o,a){return i==null?i:r(i,o,a)}},function(t,e,n){var r=n(62),i=n(74),o=n(103),a=n(20),s=n(104);t.exports=function(l,c,f,h){if(!a(l))return l;for(var p=-1,m=(c=i(c,l)).length,v=m-1,y=l;y!=null&&++p-1}},function(t,e,n){var r=n(9);t.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(t,e,n){var r=n(17)(n(19),"Map");t.exports=r},function(t,e,n){var r=n(10);t.exports=function(i){var o=r(this,i).delete(i);return this.size-=o?1:0,o}},function(t,e){t.exports=function(n){var r=typeof n;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?n!=="__proto__":n===null}},function(t,e,n){var r=n(10);t.exports=function(i){return r(this,i).get(i)}},function(t,e,n){var r=n(10);t.exports=function(i){return r(this,i).has(i)}},function(t,e,n){var r=n(10);t.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(t,e,n){var r=n(101);t.exports=function(i){return i==null?"":r(i)}},function(t,e,n){var r=n(18),i=n(102),o=n(21),a=n(22),s=r?r.prototype:void 0,l=s?s.toString:void 0;t.exports=function c(f){if(typeof f=="string")return f;if(o(f))return i(f,c)+"";if(a(f))return l?l.call(f):"";var h=f+"";return h=="0"&&1/f==-1/0?"-0":h}},function(t,e){t.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(l.prototype,"needEmitAll",{get:function(){return!!this.converter.parseRuntime.then&&this.converter.parseParam.needEmitAll},enumerable:!0,configurable:!0}),l.prototype.processResult=function(c){var f=this,h=this.converter.parseRuntime.parsedLineNumber;return this.needPushDownstream&&this.converter.parseParam.downstreamFormat==="array"&&h===0&&s(this.converter,"["+o.EOL),new i.default(function(p,m){f.needEmitLine?function v(y,w,_,b,S){if(_>=y.length)S();else if(w.parseRuntime.subscribe&&w.parseRuntime.subscribe.onNext){var O=w.parseRuntime.subscribe.onNext,M=y[_],C=O(M,w.parseRuntime.parsedLineNumber+_);if(_++,C&&C.then)C.then(function(){(function($,U,I,H,W,J,Y){W&&s(I,Y),v($,I,H,W,J)})(y,0,w,_,b,S,M)},S);else{for(b&&s(w,M);_-1}function uue(t,e){var n=this.__data__,r=fv(n,t);return r<0?n.push([t,e]):n[r][1]=e,this}zl.prototype.clear=oue;zl.prototype.delete=aue;zl.prototype.get=sue;zl.prototype.has=lue;zl.prototype.set=uue;function fs(t){var e=-1,n=t?t.length:0;for(this.clear();++ee.toFixed(t.decimals).replace(".",t.separator):e=>`${e}`.replace(".",t.separator):t.decimals?e=>e.toFixed(t.decimals):e=>`${e}`}function jx(t={}){const e=typeof t.quote=="string"?t.quote:'"',n=typeof t.escapedQuote=="string"?t.escapedQuote:`${e}${e}`;return!e||e===n?r=>r:r=>(r.includes(e)&&(r=r.replace(new RegExp(e,"g"),n)),`${e}${r}${e}`)}function Lue(t={stringFormatter:jx()}){return e=>t.stringFormatter(e.toString().slice(7,-1))}function Rue(t={stringFormatter:jx()}){return e=>e===null||(e=JSON.stringify(e),e===void 0)?"":(e[0]==='"'&&(e=e.replace(/^"(.+)"$/,"$1")),t.stringFormatter(e))}function pM(t,e,n){const r=t[e];return r===void 0?n:r}function NN(t,e){try{return Array.isArray(e)?t.push(...e):t.push(e),t}catch{return t.concat(e)}}function Bb(t,e){let n=!0;return t.reduce((r,i)=>(i==null&&(i=""),n?(n=!1,`${i}`):`${r}${e}${i}`),"")}class Aue{constructor(e){this.opts=this.preprocessOpts(e)}preprocessOpts(e){const n=Object.assign({},e);n.fields&&(n.fields=this.preprocessFieldsInfo(n.fields,n.defaultValue)),n.transforms=n.transforms||[];const r=n.formatters&&n.formatters.string||jx(),i=Rue({stringFormatter:r}),o={header:r,undefined:h_,boolean:h_,number:Mue(),bigint:h_,string:r,symbol:Lue({stringFormatter:r}),function:i,object:i};return n.formatters={...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(e,n){return e.map(r=>{if(typeof r=="string")return{label:r,value:r.includes(".")||r.includes("[")?i=>hM(i,r,n):i=>pM(i,r,n)};if(typeof r=="object"){const i="default"in r?r.default:n;if(typeof r.value=="string")return{label:r.label||r.value,value:r.value.includes(".")||r.value.includes("[")?o=>hM(o,r.value,i):o=>pM(o,r.value,i)};if(typeof r.value=="function"){const o=r.label||r.value.name||"",a={label:o,default:i};return{label:o,value(s){const l=r.value(s,a);return l??i}}}}throw new Error("Invalid field info option. "+JSON.stringify(r))})}getHeader(){return Bb(this.opts.fields.map(e=>this.opts.formatters.header(e.label)),this.opts.delimiter)}preprocessRow(e){return this.opts.transforms.reduce((n,r)=>n.map(i=>r(i)).reduce(NN,[]),[e])}processRow(e){if(!e)return;const n=this.opts.fields.map(r=>this.processCell(e,r));if(!(!this.opts.includeEmptyRows&&n.every(r=>r==="")))return Bb(n,this.opts.delimiter)}processCell(e,n){return this.processValue(n.value(e))}processValue(e){return this.opts.formatters[typeof e](e)}}class ode extends Aue{constructor(e){super(e)}parse(e){const n=this.preprocessData(e);this.opts.fields=this.opts.fields||this.preprocessFieldsInfo(n.reduce((a,s)=>(Object.keys(s).forEach(l=>{a.includes(l)||a.push(l)}),a),[]));const r=this.opts.header?this.getHeader():"",i=this.processData(n);return(this.opts.withBOM?"\uFEFF":"")+r+(r&&i?this.opts.eol:"")+i}preprocessData(e){const n=Array.isArray(e)?e:[e];if(!this.opts.fields&&(n.length===0||typeof n[0]!="object"))throw new Error('Data should not be empty or the "fields" option should be included');return this.opts.transforms.length===0?n:n.map(r=>this.preprocessRow(r)).reduce(NN,[])}processData(e){return Bb(e.map(n=>this.processRow(n)).filter(n=>n),this.opts.eol)}}var cn;(function(t){t[t.BACKSPACE=8]="BACKSPACE",t[t.FORM_FEED=12]="FORM_FEED",t[t.NEWLINE=10]="NEWLINE",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.TAB=9]="TAB",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.NUMBER_SIGN=35]="NUMBER_SIGN",t[t.DOLLAR_SIGN=36]="DOLLAR_SIGN",t[t.PERCENT_SIGN=37]="PERCENT_SIGN",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.LEFT_PARENTHESIS=40]="LEFT_PARENTHESIS",t[t.RIGHT_PARENTHESIS=41]="RIGHT_PARENTHESIS",t[t.ASTERISK=42]="ASTERISK",t[t.PLUS_SIGN=43]="PLUS_SIGN",t[t.COMMA=44]="COMMA",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.FULL_STOP=46]="FULL_STOP",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_ZERO=48]="DIGIT_ZERO",t[t.DIGIT_ONE=49]="DIGIT_ONE",t[t.DIGIT_TWO=50]="DIGIT_TWO",t[t.DIGIT_THREE=51]="DIGIT_THREE",t[t.DIGIT_FOUR=52]="DIGIT_FOUR",t[t.DIGIT_FIVE=53]="DIGIT_FIVE",t[t.DIGIT_SIX=54]="DIGIT_SIX",t[t.DIGIT_SEVEN=55]="DIGIT_SEVEN",t[t.DIGIT_EIGHT=56]="DIGIT_EIGHT",t[t.DIGIT_NINE=57]="DIGIT_NINE",t[t.COLON=58]="COLON",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.COMMERCIAL_AT=64]="COMMERCIAL_AT",t[t.LATIN_CAPITAL_LETTER_A=65]="LATIN_CAPITAL_LETTER_A",t[t.LATIN_CAPITAL_LETTER_B=66]="LATIN_CAPITAL_LETTER_B",t[t.LATIN_CAPITAL_LETTER_C=67]="LATIN_CAPITAL_LETTER_C",t[t.LATIN_CAPITAL_LETTER_D=68]="LATIN_CAPITAL_LETTER_D",t[t.LATIN_CAPITAL_LETTER_E=69]="LATIN_CAPITAL_LETTER_E",t[t.LATIN_CAPITAL_LETTER_F=70]="LATIN_CAPITAL_LETTER_F",t[t.LATIN_CAPITAL_LETTER_G=71]="LATIN_CAPITAL_LETTER_G",t[t.LATIN_CAPITAL_LETTER_H=72]="LATIN_CAPITAL_LETTER_H",t[t.LATIN_CAPITAL_LETTER_I=73]="LATIN_CAPITAL_LETTER_I",t[t.LATIN_CAPITAL_LETTER_J=74]="LATIN_CAPITAL_LETTER_J",t[t.LATIN_CAPITAL_LETTER_K=75]="LATIN_CAPITAL_LETTER_K",t[t.LATIN_CAPITAL_LETTER_L=76]="LATIN_CAPITAL_LETTER_L",t[t.LATIN_CAPITAL_LETTER_M=77]="LATIN_CAPITAL_LETTER_M",t[t.LATIN_CAPITAL_LETTER_N=78]="LATIN_CAPITAL_LETTER_N",t[t.LATIN_CAPITAL_LETTER_O=79]="LATIN_CAPITAL_LETTER_O",t[t.LATIN_CAPITAL_LETTER_P=80]="LATIN_CAPITAL_LETTER_P",t[t.LATIN_CAPITAL_LETTER_Q=81]="LATIN_CAPITAL_LETTER_Q",t[t.LATIN_CAPITAL_LETTER_R=82]="LATIN_CAPITAL_LETTER_R",t[t.LATIN_CAPITAL_LETTER_S=83]="LATIN_CAPITAL_LETTER_S",t[t.LATIN_CAPITAL_LETTER_T=84]="LATIN_CAPITAL_LETTER_T",t[t.LATIN_CAPITAL_LETTER_U=85]="LATIN_CAPITAL_LETTER_U",t[t.LATIN_CAPITAL_LETTER_V=86]="LATIN_CAPITAL_LETTER_V",t[t.LATIN_CAPITAL_LETTER_W=87]="LATIN_CAPITAL_LETTER_W",t[t.LATIN_CAPITAL_LETTER_X=88]="LATIN_CAPITAL_LETTER_X",t[t.LATIN_CAPITAL_LETTER_Y=89]="LATIN_CAPITAL_LETTER_Y",t[t.LATIN_CAPITAL_LETTER_Z=90]="LATIN_CAPITAL_LETTER_Z",t[t.LEFT_SQUARE_BRACKET=91]="LEFT_SQUARE_BRACKET",t[t.REVERSE_SOLIDUS=92]="REVERSE_SOLIDUS",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.CIRCUMFLEX_ACCENT=94]="CIRCUMFLEX_ACCENT",t[t.LOW_LINE=95]="LOW_LINE",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_LETTER_A=97]="LATIN_SMALL_LETTER_A",t[t.LATIN_SMALL_LETTER_B=98]="LATIN_SMALL_LETTER_B",t[t.LATIN_SMALL_LETTER_C=99]="LATIN_SMALL_LETTER_C",t[t.LATIN_SMALL_LETTER_D=100]="LATIN_SMALL_LETTER_D",t[t.LATIN_SMALL_LETTER_E=101]="LATIN_SMALL_LETTER_E",t[t.LATIN_SMALL_LETTER_F=102]="LATIN_SMALL_LETTER_F",t[t.LATIN_SMALL_LETTER_G=103]="LATIN_SMALL_LETTER_G",t[t.LATIN_SMALL_LETTER_H=104]="LATIN_SMALL_LETTER_H",t[t.LATIN_SMALL_LETTER_I=105]="LATIN_SMALL_LETTER_I",t[t.LATIN_SMALL_LETTER_J=106]="LATIN_SMALL_LETTER_J",t[t.LATIN_SMALL_LETTER_K=107]="LATIN_SMALL_LETTER_K",t[t.LATIN_SMALL_LETTER_L=108]="LATIN_SMALL_LETTER_L",t[t.LATIN_SMALL_LETTER_M=109]="LATIN_SMALL_LETTER_M",t[t.LATIN_SMALL_LETTER_N=110]="LATIN_SMALL_LETTER_N",t[t.LATIN_SMALL_LETTER_O=111]="LATIN_SMALL_LETTER_O",t[t.LATIN_SMALL_LETTER_P=112]="LATIN_SMALL_LETTER_P",t[t.LATIN_SMALL_LETTER_Q=113]="LATIN_SMALL_LETTER_Q",t[t.LATIN_SMALL_LETTER_R=114]="LATIN_SMALL_LETTER_R",t[t.LATIN_SMALL_LETTER_S=115]="LATIN_SMALL_LETTER_S",t[t.LATIN_SMALL_LETTER_T=116]="LATIN_SMALL_LETTER_T",t[t.LATIN_SMALL_LETTER_U=117]="LATIN_SMALL_LETTER_U",t[t.LATIN_SMALL_LETTER_V=118]="LATIN_SMALL_LETTER_V",t[t.LATIN_SMALL_LETTER_W=119]="LATIN_SMALL_LETTER_W",t[t.LATIN_SMALL_LETTER_X=120]="LATIN_SMALL_LETTER_X",t[t.LATIN_SMALL_LETTER_Y=121]="LATIN_SMALL_LETTER_Y",t[t.LATIN_SMALL_LETTER_Z=122]="LATIN_SMALL_LETTER_Z",t[t.LEFT_CURLY_BRACKET=123]="LEFT_CURLY_BRACKET",t[t.VERTICAL_LINE=124]="VERTICAL_LINE",t[t.RIGHT_CURLY_BRACKET=125]="RIGHT_CURLY_BRACKET",t[t.TILDE=126]="TILDE"})(cn||(cn={}));cn.QUOTATION_MARK+"",cn.QUOTATION_MARK,cn.REVERSE_SOLIDUS+"",cn.REVERSE_SOLIDUS,cn.SOLIDUS+"",cn.SOLIDUS,cn.LATIN_SMALL_LETTER_B+"",cn.BACKSPACE,cn.LATIN_SMALL_LETTER_F+"",cn.FORM_FEED,cn.LATIN_SMALL_LETTER_N+"",cn.NEWLINE,cn.LATIN_SMALL_LETTER_R+"",cn.CARRIAGE_RETURN,cn.LATIN_SMALL_LETTER_T+"",cn.TAB;var mM;(function(t){t[t.LEFT_BRACE=1]="LEFT_BRACE",t[t.RIGHT_BRACE=2]="RIGHT_BRACE",t[t.LEFT_BRACKET=3]="LEFT_BRACKET",t[t.RIGHT_BRACKET=4]="RIGHT_BRACKET",t[t.COLON=5]="COLON",t[t.COMMA=6]="COMMA",t[t.TRUE=7]="TRUE",t[t.FALSE=8]="FALSE",t[t.NULL=9]="NULL",t[t.STRING=10]="STRING",t[t.NUMBER=11]="NUMBER",t[t.SEPARATOR=12]="SEPARATOR"})(mM||(mM={}));var gM;(function(t){t[t.START=0]="START",t[t.ENDED=1]="ENDED",t[t.ERROR=2]="ERROR",t[t.TRUE1=3]="TRUE1",t[t.TRUE2=4]="TRUE2",t[t.TRUE3=5]="TRUE3",t[t.FALSE1=6]="FALSE1",t[t.FALSE2=7]="FALSE2",t[t.FALSE3=8]="FALSE3",t[t.FALSE4=9]="FALSE4",t[t.NULL1=10]="NULL1",t[t.NULL2=11]="NULL2",t[t.NULL3=12]="NULL3",t[t.STRING_DEFAULT=13]="STRING_DEFAULT",t[t.STRING_AFTER_BACKSLASH=14]="STRING_AFTER_BACKSLASH",t[t.STRING_UNICODE_DIGIT_1=15]="STRING_UNICODE_DIGIT_1",t[t.STRING_UNICODE_DIGIT_2=16]="STRING_UNICODE_DIGIT_2",t[t.STRING_UNICODE_DIGIT_3=17]="STRING_UNICODE_DIGIT_3",t[t.STRING_UNICODE_DIGIT_4=18]="STRING_UNICODE_DIGIT_4",t[t.STRING_INCOMPLETE_CHAR=19]="STRING_INCOMPLETE_CHAR",t[t.NUMBER_AFTER_INITIAL_MINUS=20]="NUMBER_AFTER_INITIAL_MINUS",t[t.NUMBER_AFTER_INITIAL_ZERO=21]="NUMBER_AFTER_INITIAL_ZERO",t[t.NUMBER_AFTER_INITIAL_NON_ZERO=22]="NUMBER_AFTER_INITIAL_NON_ZERO",t[t.NUMBER_AFTER_FULL_STOP=23]="NUMBER_AFTER_FULL_STOP",t[t.NUMBER_AFTER_DECIMAL=24]="NUMBER_AFTER_DECIMAL",t[t.NUMBER_AFTER_E=25]="NUMBER_AFTER_E",t[t.NUMBER_AFTER_E_AND_SIGN=26]="NUMBER_AFTER_E_AND_SIGN",t[t.NUMBER_AFTER_E_AND_DIGIT=27]="NUMBER_AFTER_E_AND_DIGIT",t[t.SEPARATOR=28]="SEPARATOR"})(gM||(gM={}));var vM;(function(t){t[t.VALUE=0]="VALUE",t[t.KEY=1]="KEY",t[t.COLON=2]="COLON",t[t.COMMA=3]="COMMA",t[t.ENDED=4]="ENDED",t[t.ERROR=5]="ERROR",t[t.SEPARATOR=6]="SEPARATOR"})(vM||(vM={}));var yM;(function(t){t[t.OBJECT=0]="OBJECT",t[t.ARRAY=1]="ARRAY"})(yM||(yM={}));var Due={},Ym={},Nue={get exports(){return Ym},set exports(t){Ym=t}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.isPlainObject=e.clone=e.recursive=e.merge=e.main=void 0,t.exports=e=n,e.default=n;function n(){for(var c=[],f=0;fN.length)&&(A=N.length);for(var B=0,ee=Array(A);B