mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2024-12-25 10:28:23 +03:00
1009 lines
1.2 MiB
1009 lines
1.2 MiB
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;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in t)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(t,i,o.get?o:{enumerable:!0,get:()=>r[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<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];i.children=l}if(t&&t.defaultProps)for(r in s=t.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:tf,type:t,key:o,ref:a,props:i,_owner:Ub.current}}function i5(t,e){return{$$typeof:tf,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function Wb(t){return typeof t=="object"&&t!==null&&t.$$typeof===tf}function o5(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var $S=/\/+/g;function jv(t,e){return typeof t=="object"&&t!==null&&t.key!=null?o5(""+t.key):e.toString(36)}function $d(t,e,n,r,i){var o=typeof t;(o==="undefined"||o==="boolean")&&(t=null);var a=!1;if(t===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(t.$$typeof){case tf:case q6:a=!0}}if(a)return a=t,i=i(a),t=r===""?"."+jv(a,0):r,FS(i)?(n="",t!=null&&(n=t.replace($S,"$&/")+"/"),$d(i,e,n,"",function(c){return c})):i!=null&&(Wb(i)&&(i=i5(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace($S,"$&/")+"/")+t)),e.push(i)),1;if(a=0,r=r===""?".":r+":",FS(t))for(var s=0;s<t.length;s++){o=t[s];var l=r+jv(o,s);a+=$d(o,e,n,l,i)}else if(l=r5(t),typeof l=="function")for(t=l.call(t),s=0;!(o=t.next()).done;)o=o.value,l=r+jv(o,s++),a+=$d(o,e,n,l,i);else if(o==="object")throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return a}function Uf(t,e,n){if(t==null)return t;var r=[],i=0;return $d(t,r,"","",function(o){return e.call(n,o,i++)}),r}function a5(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){(t._status===0||t._status===-1)&&(t._status=1,t._result=n)},function(n){(t._status===0||t._status===-1)&&(t._status=2,t._result=n)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var qn={current:null},jd={transition:null},s5={ReactCurrentDispatcher:qn,ReactCurrentBatchConfig:jd,ReactCurrentOwner:Ub};tt.Children={map:Uf,forEach:function(t,e,n){Uf(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return Uf(t,function(){e++}),e},toArray:function(t){return Uf(t,function(e){return e})||[]},only:function(t){if(!Wb(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};tt.Component=Ll;tt.Fragment=Z6;tt.Profiler=K6;tt.PureComponent=zb;tt.StrictMode=G6;tt.Suspense=e5;tt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=s5;tt.cloneElement=function(t,e,n){if(t==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var r=wM({},t.props),i=t.key,o=t.ref,a=t._owner;if(e!=null){if(e.ref!==void 0&&(o=e.ref,a=Ub.current),e.key!==void 0&&(i=""+e.key),t.type&&t.type.defaultProps)var s=t.type.defaultProps;for(l in e)EM.call(e,l)&&!OM.hasOwnProperty(l)&&(r[l]=e[l]===void 0&&s!==void 0?s[l]:e[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){s=Array(l);for(var c=0;c<l;c++)s[c]=arguments[c+2];r.children=s}return{$$typeof:tf,type:t.type,key:i,ref:o,props:r,_owner:a}};tt.createContext=function(t){return t={$$typeof:Q6,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:X6,_context:t},t.Consumer=t};tt.createElement=PM;tt.createFactory=function(t){var e=PM.bind(null,t);return e.type=t,e};tt.createRef=function(){return{current:null}};tt.forwardRef=function(t){return{$$typeof:J6,render:t}};tt.isValidElement=Wb;tt.lazy=function(t){return{$$typeof:n5,_payload:{_status:-1,_result:t},_init:a5}};tt.memo=function(t,e){return{$$typeof:t5,type:t,compare:e===void 0?null:e}};tt.startTransition=function(t){var e=jd.transition;jd.transition={};try{t()}finally{jd.transition=e}};tt.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};tt.useCallback=function(t,e){return qn.current.useCallback(t,e)};tt.useContext=function(t){return qn.current.useContext(t)};tt.useDebugValue=function(){};tt.useDeferredValue=function(t){return qn.current.useDeferredValue(t)};tt.useEffect=function(t,e){return qn.current.useEffect(t,e)};tt.useId=function(){return qn.current.useId()};tt.useImperativeHandle=function(t,e,n){return qn.current.useImperativeHandle(t,e,n)};tt.useInsertionEffect=function(t,e){return qn.current.useInsertionEffect(t,e)};tt.useLayoutEffect=function(t,e){return qn.current.useLayoutEffect(t,e)};tt.useMemo=function(t,e){return qn.current.useMemo(t,e)};tt.useReducer=function(t,e,n){return qn.current.useReducer(t,e,n)};tt.useRef=function(t){return qn.current.useRef(t)};tt.useState=function(t){return qn.current.useState(t)};tt.useSyncExternalStore=function(t,e,n){return qn.current.useSyncExternalStore(t,e,n)};tt.useTransition=function(){return qn.current.useTransition()};tt.version="18.2.0";(function(t){t.exports=tt})(Y6);const j=_M(Q),p_=W6({__proto__:null,default:j},[Q]);/**
|
||
* @license React
|
||
* react-jsx-runtime.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 l5=Q,u5=Symbol.for("react.element"),c5=Symbol.for("react.fragment"),f5=Object.prototype.hasOwnProperty,d5=l5.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,h5={key:!0,ref:!0,__self:!0,__source:!0};function TM(t,e,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),e.key!==void 0&&(o=""+e.key),e.ref!==void 0&&(a=e.ref);for(r in e)f5.call(e,r)&&!h5.hasOwnProperty(r)&&(i[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps,e)i[r]===void 0&&(i[r]=e[r]);return{$$typeof:u5,type:t,key:o,ref:a,props:i,_owner:d5.current}}qm.Fragment=c5;qm.jsx=TM;qm.jsxs=TM;(function(t){t.exports=qm})(V6);var Wa={},p5={get exports(){return Wa},set exports(t){Wa=t}},pr={},m_={},m5={get exports(){return m_},set exports(t){m_=t}},CM={};/**
|
||
* @license React
|
||
* scheduler.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/(function(t){function e(V,N){var A=V.length;V.push(N);e:for(;0<A;){var B=A-1>>>1,ee=V[B];if(0<i(ee,N))V[B]=N,V[A]=ee,A=B;else break e}}function n(V){return V.length===0?null:V[0]}function r(V){if(V.length===0)return null;var N=V[0],A=V.pop();if(A!==N){V[0]=A;e:for(var B=0,ee=V.length,z=ee>>>1;B<z;){var q=2*(B+1)-1,ne=V[q],ae=q+1,he=V[ae];if(0>i(ne,A))ae<ee&&0>i(he,ne)?(V[B]=he,V[ae]=A,B=ae):(V[B]=ne,V[q]=A,B=q);else if(ae<ee&&0>i(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()-I<U)}function W(){if(R!==null){var V=t.unstable_now();I=V;var N=!0;try{N=R(!0,V)}finally{N?J():(C=!1,R=null)}}else C=!1}var J;if(typeof b=="function")J=function(){b(W)};else if(typeof MessageChannel<"u"){var Y=new MessageChannel,X=Y.port2;Y.port1.onmessage=W,J=function(){X.postMessage(null)}}else J=function(){w(W,0)};function re(V){R=V,C||(C=!0,J())}function se(V,N){$=w(function(){V(t.unstable_now())},N)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(V){V.callback=null},t.unstable_continueExecution=function(){v||m||(v=!0,re(M))},t.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<V?Math.floor(1e3/V):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return n(l)},t.unstable_next=function(V){switch(p){case 1:case 2:case 3:var N=3;break;default:N=p}var A=p;p=N;try{return V()}finally{p=A}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(V,N){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var A=p;p=V;try{return N()}finally{p=A}},t.unstable_scheduleCallback=function(V,N,A){var B=t.unstable_now();switch(typeof A=="object"&&A!==null?(A=A.delay,A=typeof A=="number"&&0<A?B+A:B):A=B,V){case 1:var ee=-1;break;case 2:ee=250;break;case 5:ee=1073741823;break;case 4:ee=1e4;break;default:ee=5e3}return ee=A+ee,V={id:f++,callback:N,priorityLevel:V,startTime:A,expirationTime:ee,sortIndex:-1},A>B?(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<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var MM=new Set,uc={};function as(t,e){ul(t,e),ul(t+"Capture",e)}function ul(t,e){for(uc[t]=e,t=0;t<e.length;t++)MM.add(e[t])}var Ui=!(typeof window>"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||!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(_5(e,n,i,r)&&(n=null),r||i===null?v5(e)&&(n===null?t.removeAttribute(e):t.setAttribute(e,""+n)):i.mustUseProperty?t[i.propertyName]=n===null?i.type===3?!1:"":n:(e=i.attributeName,r=i.attributeNamespace,n===null?t.removeAttribute(e):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}var Qi=kM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Wf=Symbol.for("react.element"),Rs=Symbol.for("react.portal"),As=Symbol.for("react.fragment"),Zb=Symbol.for("react.strict_mode"),v_=Symbol.for("react.profiler"),LM=Symbol.for("react.provider"),RM=Symbol.for("react.context"),Gb=Symbol.for("react.forward_ref"),y_=Symbol.for("react.suspense"),__=Symbol.for("react.suspense_list"),Kb=Symbol.for("react.memo"),ho=Symbol.for("react.lazy"),AM=Symbol.for("react.offscreen"),zS=Symbol.iterator;function nu(t){return t===null||typeof t!="object"?null:(t=zS&&t[zS]||t["@@iterator"],typeof t=="function"?t:null)}var Nt=Object.assign,Bv;function xu(t){if(Bv===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Bv=e&&e[1]||""}return`
|
||
`+Bv+t}var zv=!1;function Hv(t,e){if(!t||zv)return"";zv=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(c){var r=c}Reflect.construct(t,[],e)}else{try{e.call()}catch(c){r=c}t.call(e.prototype)}else{try{throw Error()}catch(c){r=c}t()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var i=c.stack.split(`
|
||
`),o=r.stack.split(`
|
||
`),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(a!==1||s!==1)do if(a--,s--,0>s||i[a]!==o[s]){var l=`
|
||
`+i[a].replace(" at new "," at ");return t.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",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<n.length;i++)e["$"+n[i]]=!0;for(n=0;n<t.length;n++)i=e.hasOwnProperty("$"+t[n].value),t[n].selected!==i&&(t[n].selected=i),i&&r&&(t[n].defaultSelected=!0)}else{for(n=""+Vo(n),e=null,i=0;i<t.length;i++){if(t[i].value===n){t[i].selected=!0,r&&(t[i].defaultSelected=!0);return}e!==null||t[i].disabled||(e=t[i])}e!==null&&(e.selected=!0)}}function E_(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(xe(91));return Nt({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function WS(t,e){var n=e.value;if(n==null){if(n=e.children,e=e.defaultValue,n!=null){if(e!=null)throw Error(xe(92));if(Su(n)){if(1<n.length)throw Error(xe(93));n=n[0]}e=n}e==null&&(e=""),n=e}t._wrapperState={initialValue:Vo(n)}}function FM(t,e){var n=Vo(e.value),r=Vo(e.defaultValue);n!=null&&(n=""+n,n!==t.value&&(t.value=n),e.defaultValue==null&&t.defaultValue!==n&&(t.defaultValue=n)),r!=null&&(t.defaultValue=""+r)}function VS(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}function $M(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function O_(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?$M(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var Yf,jM=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,n,r,i){MSApp.execUnsafeLocalFunction(function(){return t(e,n,r,i)})}:t}(function(t,e){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=e;else{for(Yf=Yf||document.createElement("div"),Yf.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",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<e.length;t++)YS(e[t])}}function WM(t,e){return t(e)}function VM(){}var Uv=!1;function YM(t,e,n){if(Uv)return t(e,n);Uv=!0;try{return WM(t,e,n)}finally{Uv=!1,(Gs!==null||Ks!==null)&&(VM(),UM())}}function fc(t,e){var n=t.stateNode;if(n===null)return null;var r=Qm(n);if(r===null)return null;n=r[e];e:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(t=t.type,r=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!r;break e;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(xe(231,e,typeof n));return n}var M_=!1;if(Ui)try{var ru={};Object.defineProperty(ru,"passive",{get:function(){M_=!0}}),window.addEventListener("test",ru,ru),window.removeEventListener("test",ru,ru)}catch{M_=!1}function O5(t,e,n,r,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{e.apply(n,c)}catch(f){this.onError(f)}}var Fu=!1,Jh=null,ep=!1,L_=null,P5={onError:function(t){Fu=!0,Jh=t}};function T5(t,e,n,r,i,o,a,s,l){Fu=!1,Jh=null,O5.apply(P5,arguments)}function C5(t,e,n,r,i,o,a,s,l){if(T5.apply(this,arguments),Fu){if(Fu){var c=Jh;Fu=!1,Jh=null}else throw Error(xe(198));ep||(ep=!0,L_=c)}}function ss(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&4098&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function qM(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function qS(t){if(ss(t)!==t)throw Error(xe(188))}function k5(t){var e=t.alternate;if(!e){if(e=ss(t),e===null)throw Error(xe(188));return e!==t?null:t}for(var n=t,r=e;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return qS(i),t;if(o===r)return qS(i),e;o=o.sibling}throw Error(xe(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a)throw Error(xe(189))}}if(n.alternate!==r)throw Error(xe(190))}if(n.tag!==3)throw Error(xe(188));return n.stateNode.current===n?t:e}function ZM(t){return t=k5(t),t!==null?GM(t):null}function GM(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var e=GM(t);if(e!==null)return e;t=t.sibling}return null}var KM=dr.unstable_scheduleCallback,ZS=dr.unstable_cancelCallback,M5=dr.unstable_shouldYield,L5=dr.unstable_requestPaint,Yt=dr.unstable_now,R5=dr.unstable_getCurrentPriorityLevel,Qb=dr.unstable_ImmediatePriority,XM=dr.unstable_UserBlockingPriority,tp=dr.unstable_NormalPriority,A5=dr.unstable_LowPriority,QM=dr.unstable_IdlePriority,Zm=null,mi=null;function D5(t){if(mi&&typeof mi.onCommitFiberRoot=="function")try{mi.onCommitFiberRoot(Zm,t,void 0,(t.current.flags&128)===128)}catch{}}var Yr=Math.clz32?Math.clz32:F5,N5=Math.log,I5=Math.LN2;function F5(t){return 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;0<e;)n=31-Yr(e),i=1<<n,r|=t[n],e&=~i;return r}function $5(t,e){switch(t){case 1:case 2:case 4:return e+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function j5(t,e){for(var n=t.suspendedLanes,r=t.pingedLanes,i=t.expirationTimes,o=t.pendingLanes;0<o;){var a=31-Yr(o),s=1<<a,l=i[a];l===-1?(!(s&n)||s&r)&&(i[a]=$5(s,e)):l<=e&&(t.expiredLanes|=s),o&=~s}}function R_(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function JM(){var t=qf;return qf<<=1,!(qf&4194240)&&(qf=64),t}function Wv(t){for(var e=[],n=0;31>n;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<n;){var i=31-Yr(n),o=1<<i;e[i]=0,r[i]=-1,t[i]=-1,n&=~o}}function Jb(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var r=31-Yr(n),i=1<<r;i&e|t[r]&e&&(t[r]|=e),n&=~i}}var ht=0;function e3(t){return t&=-t,1<t?4<t?t&268435455?16:536870912:4:1}var t3,ew,n3,r3,i3,A_=!1,Gf=[],Ao=null,Do=null,No=null,dc=new Map,hc=new Map,yo=[],z5="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function GS(t,e){switch(t){case"focusin":case"focusout":Ao=null;break;case"dragenter":case"dragleave":Do=null;break;case"mouseover":case"mouseout":No=null;break;case"pointerover":case"pointerout":dc.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":hc.delete(e.pointerId)}}function iu(t,e,n,r,i,o){return t===null||t.nativeEvent!==o?(t={blockedOn:e,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},e!==null&&(e=of(e),e!==null&&ew(e)),t):(t.eventSystemFlags|=r,e=t.targetContainers,i!==null&&e.indexOf(i)===-1&&e.push(i),t)}function H5(t,e,n,r,i){switch(e){case"focusin":return Ao=iu(Ao,t,e,n,r,i),!0;case"dragenter":return Do=iu(Do,t,e,n,r,i),!0;case"mouseover":return No=iu(No,t,e,n,r,i),!0;case"pointerover":var o=i.pointerId;return dc.set(o,iu(dc.get(o)||null,t,e,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,hc.set(o,iu(hc.get(o)||null,t,e,n,r,i)),!0}return!1}function o3(t){var e=Ma(t.target);if(e!==null){var n=ss(e);if(n!==null){if(e=n.tag,e===13){if(e=qM(n),e!==null){t.blockedOn=e,i3(t.priority,function(){n3(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Bd(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=D_(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n===null){n=t.nativeEvent;var r=new n.constructor(n.type,n);C_=r,n.target.dispatchEvent(r),C_=null}else return e=of(n),e!==null&&ew(e),t.blockedOn=n,!1;e.shift()}return!0}function KS(t,e,n){Bd(t)&&n.delete(e)}function U5(){A_=!1,Ao!==null&&Bd(Ao)&&(Ao=null),Do!==null&&Bd(Do)&&(Do=null),No!==null&&Bd(No)&&(No=null),dc.forEach(KS),hc.forEach(KS)}function ou(t,e){t.blockedOn===e&&(t.blockedOn=null,A_||(A_=!0,dr.unstable_scheduleCallback(dr.unstable_NormalPriority,U5)))}function pc(t){function e(i){return ou(i,t)}if(0<Gf.length){ou(Gf[0],t);for(var n=1;n<Gf.length;n++){var r=Gf[n];r.blockedOn===t&&(r.blockedOn=null)}}for(Ao!==null&&ou(Ao,t),Do!==null&&ou(Do,t),No!==null&&ou(No,t),dc.forEach(e),hc.forEach(e),n=0;n<yo.length;n++)r=yo[n],r.blockedOn===t&&(r.blockedOn=null);for(;0<yo.length&&(n=yo[0],n.blockedOn===null);)o3(n),n.blockedOn===null&&yo.shift()}var Xs=Qi.ReactCurrentBatchConfig,rp=!0;function W5(t,e,n,r){var i=ht,o=Xs.transition;Xs.transition=null;try{ht=1,tw(t,e,n,r)}finally{ht=i,Xs.transition=o}}function V5(t,e,n,r){var i=ht,o=Xs.transition;Xs.transition=null;try{ht=4,tw(t,e,n,r)}finally{ht=i,Xs.transition=o}}function tw(t,e,n,r){if(rp){var i=D_(t,e,n,r);if(i===null)ey(t,e,r,ip,n),GS(t,r);else if(H5(i,t,e,n,r))r.stopPropagation();else if(GS(t,r),e&4&&-1<z5.indexOf(t)){for(;i!==null;){var o=of(i);if(o!==null&&t3(o),o=D_(t,e,n,r),o===null&&ey(t,e,r,ip,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else ey(t,e,r,null,n)}}var ip=null;function D_(t,e,n,r){if(ip=null,t=Xb(r),t=Ma(t),t!==null)if(e=ss(t),e===null)t=null;else if(n=e.tag,n===13){if(t=qM(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null);return ip=t,null}function a3(t){switch(t){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(R5()){case Qb:return 1;case XM:return 4;case tp:case A5:return 16;case QM:return 536870912;default:return 16}default:return 16}}var wo=null,nw=null,zd=null;function s3(){if(zd)return zd;var t,e=nw,n=e.length,r,i="value"in wo?wo.value:wo.textContent,o=i.length;for(t=0;t<n&&e[t]===i[t];t++);var a=n-t;for(r=1;r<=a&&e[n-r]===i[o-r];r++);return zd=i.slice(t,1<r?1-r:void 0)}function Hd(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Kf(){return!0}function XS(){return!1}function mr(t){function e(n,r,i,o,a){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var s in t)t.hasOwnProperty(s)&&(n=t[s],this[s]=n?n(o):o[s]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Kf:XS,this.isPropagationStopped=XS,this}return Nt(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Kf)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Kf)},persist:function(){},isPersistent:Kf}),e}var Rl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},rw=mr(Rl),rf=Nt({},Rl,{view:0,detail:0}),Y5=mr(rf),Vv,Yv,au,Gm=Nt({},rf,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:iw,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==au&&(au&&t.type==="mousemove"?(Vv=t.screenX-au.screenX,Yv=t.screenY-au.screenY):Yv=Vv=0,au=t),Vv)},movementY:function(t){return"movementY"in t?t.movementY:Yv}}),QS=mr(Gm),q5=Nt({},Gm,{dataTransfer:0}),Z5=mr(q5),G5=Nt({},rf,{relatedTarget:0}),qv=mr(G5),K5=Nt({},Rl,{animationName:0,elapsedTime:0,pseudoElement:0}),X5=mr(K5),Q5=Nt({},Rl,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),J5=mr(Q5),eI=Nt({},Rl,{data:0}),JS=mr(eI),tI={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},nI={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},rI={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function iI(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=rI[t])?!!e[t]:!1}function iw(){return iI}var oI=Nt({},rf,{key:function(t){if(t.key){var e=tI[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Hd(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?nI[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:iw,charCode:function(t){return t.type==="keypress"?Hd(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Hd(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),aI=mr(oI),sI=Nt({},Gm,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),eE=mr(sI),lI=Nt({},rf,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:iw}),uI=mr(lI),cI=Nt({},Rl,{propertyName:0,elapsedTime:0,pseudoElement:0}),fI=mr(cI),dI=Nt({},Gm,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),hI=mr(dI),pI=[9,13,27,32],ow=Ui&&"CompositionEvent"in window,$u=null;Ui&&"documentMode"in document&&($u=document.documentMode);var mI=Ui&&"TextEvent"in window&&!$u,l3=Ui&&(!ow||$u&&8<$u&&11>=$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.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return l3&&e.locale!=="ko"?null:e.data;default:return null}}var yI={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function rE(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!yI[t.type]:e==="textarea"}function f3(t,e,n,r){HM(r),e=op(e,"onChange"),0<e.length&&(n=new rw("onChange","change",null,n,r),t.push({event:n,listeners:e}))}var ju=null,mc=null;function _I(t){x3(t,0)}function Km(t){var e=Fs(t);if(NM(e))return t}function bI(t,e){if(t==="change")return e}var d3=!1;if(Ui){var Zv;if(Ui){var Gv="oninput"in document;if(!Gv){var iE=document.createElement("div");iE.setAttribute("oninput","return;"),Gv=typeof iE.oninput=="function"}Zv=Gv}else Zv=!1;d3=Zv&&(!document.documentMode||9<document.documentMode)}function oE(){ju&&(ju.detachEvent("onpropertychange",h3),mc=ju=null)}function h3(t){if(t.propertyName==="value"&&Km(mc)){var e=[];f3(e,mc,t,Xb(t)),YM(_I,e)}}function wI(t,e,n){t==="focusin"?(oE(),ju=e,mc=n,ju.attachEvent("onpropertychange",h3)):t==="focusout"&&oE()}function xI(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Km(mc)}function SI(t,e){if(t==="click")return Km(e)}function EI(t,e){if(t==="input"||t==="change")return Km(e)}function OI(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Xr=typeof Object.is=="function"?Object.is:OI;function gc(t,e){if(Xr(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!g_.call(e,i)||!Xr(t[i],e[i]))return!1}return!0}function aE(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function sE(t,e){var n=aE(t);t=0;for(var r;n;){if(n.nodeType===3){if(r=t+n.textContent.length,t<=e&&r>=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<e.length;n++)t=e[n],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var TI=Ui&&"documentMode"in document&&11>=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<r.length&&(e=new rw("onSelect","select",null,e,n),t.push({event:e,listeners:r}),e.target=Ns)))}function Xf(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Is={animationend:Xf("Animation","AnimationEnd"),animationiteration:Xf("Animation","AnimationIteration"),animationstart:Xf("Animation","AnimationStart"),transitionend:Xf("Transition","TransitionEnd")},Kv={},g3={};Ui&&(g3=document.createElement("div").style,"AnimationEvent"in window||(delete Is.animationend.animation,delete Is.animationiteration.animation,delete Is.animationstart.animation),"TransitionEvent"in window||delete Is.transitionend.transition);function Xm(t){if(Kv[t])return Kv[t];if(!Is[t])return t;var e=Is[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in g3)return Kv[t]=e[n];return t}var v3=Xm("animationend"),y3=Xm("animationiteration"),_3=Xm("animationstart"),b3=Xm("transitionend"),w3=new Map,uE="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function na(t,e){w3.set(t,e),as(e,[t])}for(var Xv=0;Xv<uE.length;Xv++){var Qv=uE[Xv],CI=Qv.toLowerCase(),kI=Qv[0].toUpperCase()+Qv.slice(1);na(CI,"on"+kI)}na(v3,"onAnimationEnd");na(y3,"onAnimationIteration");na(_3,"onAnimationStart");na("dblclick","onDoubleClick");na("focusin","onFocus");na("focusout","onBlur");na(b3,"onTransitionEnd");ul("onMouseEnter",["mouseout","mouseover"]);ul("onMouseLeave",["mouseout","mouseover"]);ul("onPointerEnter",["pointerout","pointerover"]);ul("onPointerLeave",["pointerout","pointerover"]);as("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));as("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));as("onBeforeInput",["compositionend","keypress","textInput","paste"]);as("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));as("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));as("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ou="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),MI=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ou));function cE(t,e,n){var r=t.type||"unknown-event";t.currentTarget=n,C5(r,e,void 0,t),t.currentTarget=null}function x3(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var r=t[n],i=r.event;r=r.listeners;e:{var o=void 0;if(e)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;cE(i,s,c),o=l}else for(a=0;a<r.length;a++){if(s=r[a],l=s.instance,c=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;cE(i,s,c),o=l}}}if(ep)throw t=L_,ep=!1,L_=null,t}function bt(t,e){var n=e[z_];n===void 0&&(n=e[z_]=new Set);var r=t+"__bubble";n.has(r)||(S3(e,t,2,!1),n.add(r))}function Jv(t,e,n){var r=0;e&&(r|=4),S3(n,t,r,e)}var Qf="_reactListening"+Math.random().toString(36).slice(2);function vc(t){if(!t[Qf]){t[Qf]=!0,MM.forEach(function(n){n!=="selectionchange"&&(MI.has(n)||Jv(n,!1,t),Jv(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Qf]||(e[Qf]=!0,Jv("selectionchange",!1,e))}}function S3(t,e,n,r){switch(a3(e)){case 1:var i=W5;break;case 4:i=V5;break;default:i=tw}n=i.bind(null,e,n,t),i=void 0,!M_||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(i=!0),r?i!==void 0?t.addEventListener(e,n,{capture:!0,passive:i}):t.addEventListener(e,n,!0):i!==void 0?t.addEventListener(e,n,{passive:i}):t.addEventListener(e,n,!1)}function ey(t,e,n,r,i){var o=r;if(!(e&1)&&!(e&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(a===4)for(a=r.return;a!==null;){var l=a.tag;if((l===3||l===4)&&(l=a.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;a=a.return}for(;s!==null;){if(a=Ma(s),a===null)return;if(l=a.tag,l===5||l===6){r=o=a;continue e}s=s.parentNode}}r=r.return}YM(function(){var c=o,f=Xb(n),h=[];e:{var p=w3.get(t);if(p!==void 0){var m=rw,v=t;switch(t){case"keypress":if(Hd(n)===0)break e;case"keydown":case"keyup":m=aI;break;case"focusin":v="focus",m=qv;break;case"focusout":v="blur",m=qv;break;case"beforeblur":case"afterblur":m=qv;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=QS;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=Z5;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=uI;break;case v3:case y3:case _3:m=X5;break;case b3:m=fI;break;case"scroll":m=Y5;break;case"wheel":m=hI;break;case"copy":case"cut":case"paste":m=J5;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=eE}var y=(e&4)!==0,w=!y&&t==="scroll",_=y?p!==null?p+"Capture":null:p;y=[];for(var b=c,S;b!==null;){S=b;var O=S.stateNode;if(S.tag===5&&O!==null&&(S=O,_!==null&&(O=fc(b,_),O!=null&&y.push(yc(b,O,S)))),w)break;b=b.return}0<y.length&&(p=new m(p,v,null,n,f),h.push({event:p,listeners:y}))}}if(!(e&7)){e:{if(p=t==="mouseover"||t==="pointerover",m=t==="mouseout"||t==="pointerout",p&&n!==C_&&(v=n.relatedTarget||n.fromElement)&&(Ma(v)||v[Wi]))break e;if((m||p)&&(p=f.window===f?f:(p=f.ownerDocument)?p.defaultView||p.parentWindow:window,m?(v=n.relatedTarget||n.toElement,m=c,v=v?Ma(v):null,v!==null&&(w=ss(v),v!==w||v.tag!==5&&v.tag!==6)&&(v=null)):(m=null,v=c),m!==v)){if(y=QS,O="onMouseLeave",_="onMouseEnter",b="mouse",(t==="pointerout"||t==="pointerover")&&(y=eE,O="onPointerLeave",_="onPointerEnter",b="pointer"),w=m==null?p:Fs(m),S=v==null?p:Fs(v),p=new y(O,b+"leave",m,n,f),p.target=w,p.relatedTarget=S,O=null,Ma(f)===c&&(y=new y(_,b+"enter",v,n,f),y.target=S,y.relatedTarget=w,O=y),w=O,m&&v)t:{for(y=m,_=v,b=0,S=y;S;S=bs(S))b++;for(S=0,O=_;O;O=bs(O))S++;for(;0<b-S;)y=bs(y),b--;for(;0<S-b;)_=bs(_),S--;for(;b--;){if(y===_||_!==null&&y===_.alternate)break t;y=bs(y),_=bs(_)}y=null}else y=null;m!==null&&fE(h,p,m,y,!1),v!==null&&w!==null&&fE(h,w,v,y,!0)}}e:{if(p=c?Fs(c):window,m=p.nodeName&&p.nodeName.toLowerCase(),m==="select"||m==="input"&&p.type==="file")var M=bI;else if(rE(p))if(d3)M=EI;else{M=xI;var C=wI}else(m=p.nodeName)&&m.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(M=SI);if(M&&(M=M(t,c))){f3(h,M,n,f);break e}C&&C(t,p,c),t==="focusout"&&(C=p._wrapperState)&&C.controlled&&p.type==="number"&&S_(p,"number",p.value)}switch(C=c?Fs(c):window,t){case"focusin":(rE(C)||C.contentEditable==="true")&&(Ns=C,N_=c,Bu=null);break;case"focusout":Bu=N_=Ns=null;break;case"mousedown":I_=!0;break;case"contextmenu":case"mouseup":case"dragend":I_=!1,lE(h,n,f);break;case"selectionchange":if(TI)break;case"keydown":case"keyup":lE(h,n,f)}var R;if(ow)e:{switch(t){case"compositionstart":var $="onCompositionStart";break e;case"compositionend":$="onCompositionEnd";break e;case"compositionupdate":$="onCompositionUpdate";break e}$=void 0}else Ds?u3(t,n)&&($="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&($="onCompositionStart");$&&(l3&&n.locale!=="ko"&&(Ds||$!=="onCompositionStart"?$==="onCompositionEnd"&&Ds&&(R=s3()):(wo=f,nw="value"in wo?wo.value:wo.textContent,Ds=!0)),C=op(c,$),0<C.length&&($=new JS($,t,null,n,f),h.push({event:$,listeners:C}),R?$.data=R:(R=c3(n),R!==null&&($.data=R)))),(R=mI?gI(t,n):vI(t,n))&&(c=op(c,"onBeforeInput"),0<c.length&&(f=new JS("onBeforeInput","beforeinput",null,n,f),h.push({event:f,listeners:c}),f.data=R))}x3(h,e)})}function yc(t,e,n){return{instance:t,listener:e,currentTarget:n}}function op(t,e){for(var n=e+"Capture",r=[];t!==null;){var i=t,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=fc(t,n),o!=null&&r.unshift(yc(t,o,i)),o=fc(t,e),o!=null&&r.push(yc(t,o,i))),t=t.return}return r}function bs(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function fE(t,e,n,r,i){for(var o=e._reactName,a=[];n!==null&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(l!==null&&l===r)break;s.tag===5&&c!==null&&(s=c,i?(l=fc(n,o),l!=null&&a.unshift(yc(n,l,s))):i||(l=fc(n,o),l!=null&&a.push(yc(n,l,s)))),n=n.return}a.length!==0&&t.push({event:e,listeners:a})}var LI=/\r\n?/g,RI=/\u0000|\uFFFD/g;function dE(t){return(typeof t=="string"?t:""+t).replace(LI,`
|
||
`).replace(RI,"")}function Jf(t,e,n){if(e=dE(e),dE(t)!==e&&n)throw Error(xe(425))}function ap(){}var F_=null,$_=null;function j_(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var B_=typeof setTimeout=="function"?setTimeout:void 0,AI=typeof clearTimeout=="function"?clearTimeout:void 0,hE=typeof Promise=="function"?Promise:void 0,DI=typeof queueMicrotask=="function"?queueMicrotask:typeof hE<"u"?function(t){return hE.resolve(null).then(t).catch(NI)}:B_;function NI(t){setTimeout(function(){throw t})}function ty(t,e){var n=e,r=0;do{var i=n.nextSibling;if(t.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){t.removeChild(i),pc(e);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);pc(e)}function Io(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return t}function pE(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"){if(e===0)return t;e--}else n==="/$"&&e++}t=t.previousSibling}return null}var Al=Math.random().toString(36).slice(2),ci="__reactFiber$"+Al,_c="__reactProps$"+Al,Wi="__reactContainer$"+Al,z_="__reactEvents$"+Al,II="__reactListeners$"+Al,FI="__reactHandles$"+Al;function Ma(t){var e=t[ci];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Wi]||n[ci]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=pE(t);t!==null;){if(n=t[ci])return n;t=pE(t)}return e}t=n,n=t.parentNode}return null}function of(t){return t=t[ci]||t[Wi],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function Fs(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(xe(33))}function Qm(t){return t[_c]||null}var H_=[],$s=-1;function ra(t){return{current:t}}function Et(t){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<n.length;t++){var r=n[t];do r=r(!0);while(r!==null)}Ri=null,Jm=!1}catch(i){throw Ri!==null&&(Ri=Ri.slice(t+1)),KM(Qb,ia),i}finally{ht=e,ny=!1}}return null}var js=[],Bs=0,up=null,cp=0,xr=[],Sr=0,Ya=null,Ii=1,Fi="";function ba(t,e){js[Bs++]=cp,js[Bs++]=up,up=t,cp=e}function P3(t,e,n){xr[Sr++]=Ii,xr[Sr++]=Fi,xr[Sr++]=Ya,Ya=t;var r=Ii;t=Fi;var i=32-Yr(r)-1;r&=~(1<<i),n+=1;var o=32-Yr(e)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Ii=1<<32-Yr(e)+i|n<<i|r,Fi=o+t}else Ii=1<<o|n<<i|r,Fi=t}function sw(t){t.return!==null&&(ba(t,1),P3(t,1,0))}function lw(t){for(;t===up;)up=js[--Bs],js[Bs]=null,cp=js[--Bs],js[Bs]=null;for(;t===Ya;)Ya=xr[--Sr],xr[Sr]=null,Fi=xr[--Sr],xr[Sr]=null,Ii=xr[--Sr],xr[Sr]=null}var fr=null,ur=null,Ct=!1,Hr=null;function T3(t,e){var n=Er(5,null,null,0);n.elementType="DELETED",n.stateNode=e,n.return=t,e=t.deletions,e===null?(t.deletions=[n],t.flags|=16):e.push(n)}function vE(t,e){switch(t.tag){case 5:var n=t.type;return e=e.nodeType!==1||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(t.stateNode=e,fr=t,ur=Io(e.firstChild),!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,fr=t,ur=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(n=Ya!==null?{id:Ii,overflow:Fi}:null,t.memoizedState={dehydrated:e,treeContext:n,retryLane:1073741824},n=Er(18,null,null,0),n.stateNode=e,n.return=t,t.child=n,fr=t,ur=null,!0):!1;default:return!1}}function U_(t){return(t.mode&1)!==0&&(t.flags&128)===0}function W_(t){if(Ct){var e=ur;if(e){var n=e;if(!vE(t,e)){if(U_(t))throw Error(xe(418));e=Io(n.nextSibling);var r=fr;e&&vE(t,e)?T3(r,n):(t.flags=t.flags&-4097|2,Ct=!1,fr=t)}}else{if(U_(t))throw Error(xe(418));t.flags=t.flags&-4097|2,Ct=!1,fr=t}}}function yE(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;fr=t}function ed(t){if(t!==fr)return!1;if(!Ct)return yE(t),Ct=!0,!1;var e;if((e=t.tag!==3)&&!(e=t.tag!==5)&&(e=t.type,e=e!=="head"&&e!=="body"&&!j_(t.type,t.memoizedProps)),e&&(e=ur)){if(U_(t))throw C3(),Error(xe(418));for(;e;)T3(t,e),e=Io(e.nextSibling)}if(yE(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(xe(317));e:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"){if(e===0){ur=Io(t.nextSibling);break e}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++}t=t.nextSibling}ur=null}}else ur=fr?Io(t.stateNode.nextSibling):null;return!0}function C3(){for(var t=ur;t;)t=Io(t.nextSibling)}function fl(){ur=fr=null,Ct=!1}function uw(t){Hr===null?Hr=[t]:Hr.push(t)}var jI=Qi.ReactCurrentBatchConfig;function jr(t,e){if(t&&t.defaultProps){e=Nt({},e),t=t.defaultProps;for(var n in t)e[n]===void 0&&(e[n]=t[n]);return e}return e}var fp=ra(null),dp=null,zs=null,cw=null;function fw(){cw=zs=dp=null}function dw(t){var e=fp.current;Et(fp),t._currentValue=e}function V_(t,e,n){for(;t!==null;){var r=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,r!==null&&(r.childLanes|=e)):r!==null&&(r.childLanes&e)!==e&&(r.childLanes|=e),t===n)break;t=t.return}}function Qs(t,e){dp=t,cw=zs=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(Jn=!0),t.firstContext=null)}function Tr(t){var e=t._currentValue;if(cw!==t)if(t={context:t,memoizedValue:e,next:null},zs===null){if(dp===null)throw Error(xe(308));zs=t,dp.dependencies={lanes:0,firstContext:t}}else zs=zs.next=t;return e}var La=null;function hw(t){La===null?La=[t]:La.push(t)}function k3(t,e,n,r){var i=e.interleaved;return i===null?(n.next=n,hw(e)):(n.next=i.next,i.next=n),e.interleaved=n,Vi(t,r)}function Vi(t,e){t.lanes|=e;var n=t.alternate;for(n!==null&&(n.lanes|=e),n=t,t=t.return;t!==null;)t.childLanes|=e,n=t.alternate,n!==null&&(n.childLanes|=e),n=t,t=t.return;return n.tag===3?n.stateNode:null}var po=!1;function pw(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function M3(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function zi(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function Fo(t,e,n){var r=t.updateQueue;if(r===null)return null;if(r=r.shared,ot&2){var i=r.pending;return i===null?e.next=e:(e.next=i.next,i.next=e),r.pending=e,Vi(t,n)}return i=r.interleaved,i===null?(e.next=e,hw(r)):(e.next=i.next,i.next=e),r.interleaved=e,Vi(t,n)}function Ud(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194240)!==0)){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,Jb(t,n)}}function _E(t,e){var n=t.updateQueue,r=t.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=e:o=o.next=e}else i=o=e;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function hp(t,e,n,r){var i=t.updateQueue;po=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?o=c:a.next=c,a=l;var f=t.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==a&&(s===null?f.firstBaseUpdate=c:s.next=c,f.lastBaseUpdate=l))}if(o!==null){var h=i.baseState;a=0,f=c=l=null,s=o;do{var p=s.lane,m=s.eventTime;if((r&p)===p){f!==null&&(f=f.next={eventTime:m,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var v=t,y=s;switch(p=e,m=n,y.tag){case 1:if(v=y.payload,typeof v=="function"){h=v.call(m,h,p);break e}h=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=y.payload,p=typeof v=="function"?v.call(m,h,p):v,p==null)break e;h=Nt({},h,p);break e;case 2:po=!0}}s.callback!==null&&s.lane!==0&&(t.flags|=64,p=i.effects,p===null?i.effects=[s]:p.push(s))}else m={eventTime:m,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(c=f=m,l=h):f=f.next=m,a|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);if(f===null&&(l=h),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=f,e=i.shared.interleaved,e!==null){i=e;do a|=i.lane,i=i.next;while(i!==e)}else o===null&&(i.shared.lanes=0);Za|=a,t.lanes=a,t.memoizedState=h}}function bE(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;e<t.length;e++){var r=t[e],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(xe(191,i));i.call(r)}}}var L3=new kM.Component().refs;function Y_(t,e,n,r){e=t.memoizedState,n=n(r,e),n=n==null?e:Nt({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var eg={isMounted:function(t){return(t=t._reactInternals)?ss(t)===t:!1},enqueueSetState:function(t,e,n){t=t._reactInternals;var r=Yn(),i=jo(t),o=zi(r,i);o.payload=e,n!=null&&(o.callback=n),e=Fo(t,o,i),e!==null&&(qr(e,t,i,r),Ud(e,t,i))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var r=Yn(),i=jo(t),o=zi(r,i);o.tag=1,o.payload=e,n!=null&&(o.callback=n),e=Fo(t,o,i),e!==null&&(qr(e,t,i,r),Ud(e,t,i))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Yn(),r=jo(t),i=zi(n,r);i.tag=2,e!=null&&(i.callback=e),e=Fo(t,i,r),e!==null&&(qr(e,t,r,n),Ud(e,t,r))}};function wE(t,e,n,r,i,o,a){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(r,o,a):e.prototype&&e.prototype.isPureReactComponent?!gc(n,r)||!gc(i,o):!0}function R3(t,e,n){var r=!1,i=Yo,o=e.contextType;return typeof o=="object"&&o!==null?o=Tr(o):(i=tr(e)?Va:$n.current,r=e.contextTypes,o=(r=r!=null)?cl(t,i):Yo),e=new e(n,o),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=eg,t.stateNode=e,e._reactInternals=t,r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=i,t.__reactInternalMemoizedMaskedChildContext=o),e}function xE(t,e,n,r){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,r),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&eg.enqueueReplaceState(e,e.state,null)}function q_(t,e,n,r){var i=t.stateNode;i.props=n,i.state=t.memoizedState,i.refs=L3,pw(t);var o=e.contextType;typeof o=="object"&&o!==null?i.context=Tr(o):(o=tr(e)?Va:$n.current,i.context=cl(t,o)),i.state=t.memoizedState,o=e.getDerivedStateFromProps,typeof o=="function"&&(Y_(t,e,o,n),i.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(e=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),e!==i.state&&eg.enqueueReplaceState(i,i.state,null),hp(t,n,i,r),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308)}function su(t,e,n){if(t=n.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(xe(309));var r=n.stateNode}if(!r)throw Error(xe(147,t));var i=r,o=""+t;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===o?e.ref:(e=function(a){var s=i.refs;s===L3&&(s=i.refs={}),a===null?delete s[o]:s[o]=a},e._stringRef=o,e)}if(typeof t!="string")throw Error(xe(284));if(!n._owner)throw Error(xe(290,t))}return t}function td(t,e){throw t=Object.prototype.toString.call(e),Error(xe(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function SE(t){var e=t._init;return e(t._payload)}function A3(t){function e(_,b){if(t){var S=_.deletions;S===null?(_.deletions=[b],_.flags|=16):S.push(b)}}function n(_,b){if(!t)return null;for(;b!==null;)e(_,b),b=b.sibling;return null}function r(_,b){for(_=new Map;b!==null;)b.key!==null?_.set(b.key,b):_.set(b.index,b),b=b.sibling;return _}function i(_,b){return _=Bo(_,b),_.index=0,_.sibling=null,_}function o(_,b,S){return _.index=S,t?(S=_.alternate,S!==null?(S=S.index,S<b?(_.flags|=2,b):S):(_.flags|=2,b)):(_.flags|=1048576,b)}function a(_){return t&&_.alternate===null&&(_.flags|=2),_}function s(_,b,S,O){return b===null||b.tag!==6?(b=uy(S,_.mode,O),b.return=_,b):(b=i(b,S),b.return=_,b)}function l(_,b,S,O){var M=S.type;return M===As?f(_,b,S.props.children,O,S.key):b!==null&&(b.elementType===M||typeof M=="object"&&M!==null&&M.$$typeof===ho&&SE(M)===b.type)?(O=i(b,S.props),O.ref=su(_,b,S),O.return=_,O):(O=Gd(S.type,S.key,S.props,null,_.mode,O),O.ref=su(_,b,S),O.return=_,O)}function c(_,b,S,O){return b===null||b.tag!==4||b.stateNode.containerInfo!==S.containerInfo||b.stateNode.implementation!==S.implementation?(b=cy(S,_.mode,O),b.return=_,b):(b=i(b,S.children||[]),b.return=_,b)}function f(_,b,S,O,M){return b===null||b.tag!==7?(b=Ia(S,_.mode,O,M),b.return=_,b):(b=i(b,S),b.return=_,b)}function h(_,b,S){if(typeof b=="string"&&b!==""||typeof b=="number")return b=uy(""+b,_.mode,S),b.return=_,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Wf:return S=Gd(b.type,b.key,b.props,null,_.mode,S),S.ref=su(_,null,b),S.return=_,S;case Rs:return b=cy(b,_.mode,S),b.return=_,b;case ho:var O=b._init;return h(_,O(b._payload),S)}if(Su(b)||nu(b))return b=Ia(b,_.mode,S,null),b.return=_,b;td(_,b)}return null}function p(_,b,S,O){var M=b!==null?b.key:null;if(typeof S=="string"&&S!==""||typeof S=="number")return M!==null?null:s(_,b,""+S,O);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Wf:return S.key===M?l(_,b,S,O):null;case Rs:return S.key===M?c(_,b,S,O):null;case ho:return M=S._init,p(_,b,M(S._payload),O)}if(Su(S)||nu(S))return M!==null?null:f(_,b,S,O,null);td(_,S)}return null}function m(_,b,S,O,M){if(typeof O=="string"&&O!==""||typeof O=="number")return _=_.get(S)||null,s(b,_,""+O,M);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case Wf:return _=_.get(O.key===null?S:O.key)||null,l(b,_,O,M);case Rs:return _=_.get(O.key===null?S:O.key)||null,c(b,_,O,M);case ho:var C=O._init;return m(_,b,S,C(O._payload),M)}if(Su(O)||nu(O))return _=_.get(S)||null,f(b,_,O,M,null);td(b,O)}return null}function v(_,b,S,O){for(var M=null,C=null,R=b,$=b=0,U=null;R!==null&&$<S.length;$++){R.index>$?(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(;$<S.length;$++)R=h(_,S[$],O),R!==null&&(b=o(R,b,$),C===null?M=R:C.sibling=R,C=R);return Ct&&ba(_,$),M}for(R=r(_,R);$<S.length;$++)U=m(R,_,$,S[$],O),U!==null&&(t&&U.alternate!==null&&R.delete(U.key===null?$:U.key),b=o(U,b,$),C===null?M=U:C.sibling=U,C=U);return t&&R.forEach(function(H){return e(_,H)}),Ct&&ba(_,$),M}function y(_,b,S,O){var M=nu(S);if(typeof M!="function")throw Error(xe(150));if(S=M.call(S),S==null)throw Error(xe(151));for(var C=M=null,R=b,$=b=0,U=null,I=S.next();R!==null&&!I.done;$++,I=S.next()){R.index>$?(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;t<ry.length;t++)ry[t]._workInProgressVersionPrimary=null;ry.length=0}var Wd=Qi.ReactCurrentDispatcher,iy=Qi.ReactCurrentBatchConfig,qa=0,Dt=null,on=null,dn=null,mp=!1,zu=!1,xc=0,BI=0;function Rn(){throw Error(xe(321))}function yw(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Xr(t[n],e[n]))return!1;return!0}function _w(t,e,n,r,i,o){if(qa=o,Dt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,Wd.current=t===null||t.memoizedState===null?WI:VI,t=n(r,i),zu){o=0;do{if(zu=!1,xc=0,25<=o)throw Error(xe(301));o+=1,dn=on=null,e.updateQueue=null,Wd.current=YI,t=n(r,i)}while(zu)}if(Wd.current=gp,e=on!==null&&on.next!==null,qa=0,dn=on=Dt=null,mp=!1,e)throw Error(xe(300));return t}function bw(){var t=xc!==0;return xc=0,t}function si(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return dn===null?Dt.memoizedState=dn=t:dn=dn.next=t,dn}function Cr(){if(on===null){var t=Dt.alternate;t=t!==null?t.memoizedState:null}else t=on.next;var e=dn===null?Dt.memoizedState:dn.next;if(e!==null)dn=e,on=t;else{if(t===null)throw Error(xe(310));on=t,t={memoizedState:on.memoizedState,baseState:on.baseState,baseQueue:on.baseQueue,queue:on.queue,next:null},dn===null?Dt.memoizedState=dn=t:dn=dn.next=t}return dn}function Sc(t,e){return typeof e=="function"?e(t):e}function oy(t){var e=Cr(),n=e.queue;if(n===null)throw Error(xe(311));n.lastRenderedReducer=t;var r=on,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var s=a=null,l=null,c=o;do{var f=c.lane;if((qa&f)===f)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:t(r,c.action);else{var h={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(s=l=h,a=r):l=l.next=h,Dt.lanes|=f,Za|=f}c=c.next}while(c!==null&&c!==o);l===null?a=r:l.next=s,Xr(r,e.memoizedState)||(Jn=!0),e.memoizedState=r,e.baseState=a,e.baseQueue=l,n.lastRenderedState=r}if(t=n.interleaved,t!==null){i=t;do o=i.lane,Dt.lanes|=o,Za|=o,i=i.next;while(i!==t)}else i===null&&(n.lanes=0);return[e.memoizedState,n.dispatch]}function ay(t){var e=Cr(),n=e.queue;if(n===null)throw Error(xe(311));n.lastRenderedReducer=t;var r=n.dispatch,i=n.pending,o=e.memoizedState;if(i!==null){n.pending=null;var a=i=i.next;do o=t(o,a.action),a=a.next;while(a!==i);Xr(o,e.memoizedState)||(Jn=!0),e.memoizedState=o,e.baseQueue===null&&(e.baseState=o),n.lastRenderedState=o}return[o,r]}function I3(){}function F3(t,e){var n=Dt,r=Cr(),i=e(),o=!Xr(r.memoizedState,i);if(o&&(r.memoizedState=i,Jn=!0),r=r.queue,ww(B3.bind(null,n,r,t),[t]),r.getSnapshot!==e||o||dn!==null&&dn.memoizedState.tag&1){if(n.flags|=2048,Ec(9,j3.bind(null,n,r,i,e),void 0,null),pn===null)throw Error(xe(349));qa&30||$3(n,e,i)}return i}function $3(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=Dt.updateQueue,e===null?(e={lastEffect:null,stores:null},Dt.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function j3(t,e,n,r){e.value=n,e.getSnapshot=r,z3(e)&&H3(t)}function B3(t,e,n){return n(function(){z3(e)&&H3(t)})}function z3(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Xr(t,n)}catch{return!0}}function H3(t){var e=Vi(t,1);e!==null&&qr(e,t,1,-1)}function EE(t){var e=si();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Sc,lastRenderedState:t},e.queue=t,t=t.dispatch=UI.bind(null,Dt,t),[e.memoizedState,t]}function Ec(t,e,n,r){return t={tag:t,create:e,destroy:n,deps:r,next:null},e=Dt.updateQueue,e===null?(e={lastEffect:null,stores:null},Dt.updateQueue=e,e.lastEffect=t.next=t):(n=e.lastEffect,n===null?e.lastEffect=t.next=t:(r=n.next,n.next=t,t.next=r,e.lastEffect=t)),t}function U3(){return Cr().memoizedState}function Vd(t,e,n,r){var i=si();Dt.flags|=t,i.memoizedState=Ec(1|e,n,void 0,r===void 0?null:r)}function tg(t,e,n,r){var i=Cr();r=r===void 0?null:r;var o=void 0;if(on!==null){var a=on.memoizedState;if(o=a.destroy,r!==null&&yw(r,a.deps)){i.memoizedState=Ec(e,n,o,r);return}}Dt.flags|=t,i.memoizedState=Ec(1|e,n,o,r)}function OE(t,e){return Vd(8390656,8,t,e)}function ww(t,e){return tg(2048,8,t,e)}function W3(t,e){return tg(4,2,t,e)}function V3(t,e){return tg(4,4,t,e)}function Y3(t,e){if(typeof e=="function")return t=t(),e(t),function(){e(null)};if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function q3(t,e,n){return n=n!=null?n.concat([t]):null,tg(4,4,Y3.bind(null,e,t),n)}function xw(){}function Z3(t,e){var n=Cr();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&yw(e,r[1])?r[0]:(n.memoizedState=[t,e],t)}function G3(t,e){var n=Cr();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&yw(e,r[1])?r[0]:(t=t(),n.memoizedState=[t,e],t)}function K3(t,e,n){return qa&21?(Xr(n,e)||(n=JM(),Dt.lanes|=n,Za|=n,t.baseState=!0),e):(t.baseState&&(t.baseState=!1,Jn=!0),t.memoizedState=n)}function zI(t,e){var n=ht;ht=n!==0&&4>n?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<n&&(e+="H"+n.toString(32)),e+=":"}else n=BI++,e=":"+e+"r"+n.toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},VI={readContext:Tr,useCallback:Z3,useContext:Tr,useEffect:ww,useImperativeHandle:q3,useInsertionEffect:W3,useLayoutEffect:V3,useMemo:G3,useReducer:oy,useRef:U3,useState:function(){return oy(Sc)},useDebugValue:xw,useDeferredValue:function(t){var e=Cr();return K3(e,on.memoizedState,t)},useTransition:function(){var t=oy(Sc)[0],e=Cr().memoizedState;return[t,e]},useMutableSource:I3,useSyncExternalStore:F3,useId:X3,unstable_isNewReconciler:!1},YI={readContext:Tr,useCallback:Z3,useContext:Tr,useEffect:ww,useImperativeHandle:q3,useInsertionEffect:W3,useLayoutEffect:V3,useMemo:G3,useReducer:ay,useRef:U3,useState:function(){return ay(Sc)},useDebugValue:xw,useDeferredValue:function(t){var e=Cr();return on===null?e.memoizedState=t:K3(e,on.memoizedState,t)},useTransition:function(){var t=ay(Sc)[0],e=Cr().memoizedState;return[t,e]},useMutableSource:I3,useSyncExternalStore:F3,useId:X3,unstable_isNewReconciler:!1};function pl(t,e){try{var n="",r=e;do n+=b5(r),r=r.return;while(r);var i=n}catch(o){i=`
|
||
Error generating stack: `+o.message+`
|
||
`+o.stack}return{value:t,source:e,stack:i,digest:null}}function sy(t,e,n){return{value:t,source:null,stack:n??null,digest:e??null}}function Z_(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var qI=typeof WeakMap=="function"?WeakMap:Map;function t4(t,e,n){n=zi(-1,n),n.tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){yp||(yp=!0,i0=r),Z_(t,e)},n}function n4(t,e,n){n=zi(-1,n),n.tag=3;var r=t.type.getDerivedStateFromError;if(typeof r=="function"){var i=e.value;n.payload=function(){return r(i)},n.callback=function(){Z_(t,e)}}var o=t.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Z_(t,e),typeof r!="function"&&($o===null?$o=new Set([this]):$o.add(this));var a=e.stack;this.componentDidCatch(e.value,{componentStack:a!==null?a:""})}),n}function PE(t,e,n){var r=t.pingCache;if(r===null){r=t.pingCache=new qI;var i=new Set;r.set(e,i)}else i=r.get(e),i===void 0&&(i=new Set,r.set(e,i));i.has(n)||(i.add(n),t=s8.bind(null,t,e,n),e.then(t,t))}function TE(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function CE(t,e,n,r,i){return t.mode&1?(t.flags|=65536,t.lanes=i,t):(t===e?t.flags|=65536:(t.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(e=zi(-1,1),e.tag=2,Fo(n,e,1))),n.lanes|=1),t)}var ZI=Qi.ReactCurrentOwner,Jn=!1;function Wn(t,e,n,r){e.child=t===null?D3(e,null,n,r):dl(e,t.child,n,r)}function kE(t,e,n,r,i){n=n.render;var o=e.ref;return Qs(e,i),r=_w(t,e,n,r,o,i),n=bw(),t!==null&&!Jn?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,Yi(t,e,i)):(Ct&&n&&sw(e),e.flags|=1,Wn(t,e,r,i),e.child)}function ME(t,e,n,r,i){if(t===null){var o=n.type;return typeof o=="function"&&!Mw(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=o,r4(t,e,o,r,i)):(t=Gd(n.type,null,r,e,e.mode,i),t.ref=e.ref,t.return=e,e.child=t)}if(o=t.child,!(t.lanes&i)){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:gc,n(a,r)&&t.ref===e.ref)return Yi(t,e,i)}return e.flags|=1,t=Bo(o,r),t.ref=e.ref,t.return=e,e.child=t}function r4(t,e,n,r,i){if(t!==null){var o=t.memoizedProps;if(gc(o,r)&&t.ref===e.ref)if(Jn=!1,e.pendingProps=r=o,(t.lanes&i)!==0)t.flags&131072&&(Jn=!0);else return e.lanes=t.lanes,Yi(t,e,i)}return G_(t,e,n,r,i)}function i4(t,e,n){var r=e.pendingProps,i=r.children,o=t!==null?t.memoizedState:null;if(r.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},_t(Us,sr),sr|=n;else{if(!(n&1073741824))return t=o!==null?o.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,_t(Us,sr),sr|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,_t(Us,sr),sr|=r}else o!==null?(r=o.baseLanes|n,e.memoizedState=null):r=n,_t(Us,sr),sr|=r;return Wn(t,e,i,n),e.child}function o4(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=512,e.flags|=2097152)}function G_(t,e,n,r,i){var o=tr(n)?Va:$n.current;return o=cl(e,o),Qs(e,i),n=_w(t,e,n,r,o,i),r=bw(),t!==null&&!Jn?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,Yi(t,e,i)):(Ct&&r&&sw(e),e.flags|=1,Wn(t,e,n,i),e.child)}function LE(t,e,n,r,i){if(tr(n)){var o=!0;lp(e)}else o=!1;if(Qs(e,i),e.stateNode===null)Yd(t,e),R3(e,n,r),q_(e,n,r,i),r=!0;else if(t===null){var a=e.stateNode,s=e.memoizedProps;a.props=s;var l=a.context,c=n.contextType;typeof c=="object"&&c!==null?c=Tr(c):(c=tr(n)?Va:$n.current,c=cl(e,c));var f=n.getDerivedStateFromProps,h=typeof f=="function"||typeof a.getSnapshotBeforeUpdate=="function";h||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==c)&&xE(e,a,r,c),po=!1;var p=e.memoizedState;a.state=p,hp(e,r,a,i),l=e.memoizedState,s!==r||p!==l||er.current||po?(typeof f=="function"&&(Y_(e,n,f,r),l=e.memoizedState),(s=po||wE(e,n,s,r,p,l,c))?(h||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(e.flags|=4194308)):(typeof a.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=r,e.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):(typeof a.componentDidMount=="function"&&(e.flags|=4194308),r=!1)}else{a=e.stateNode,M3(t,e),s=e.memoizedProps,c=e.type===e.elementType?s:jr(e.type,s),a.props=c,h=e.pendingProps,p=a.context,l=n.contextType,typeof l=="object"&&l!==null?l=Tr(l):(l=tr(n)?Va:$n.current,l=cl(e,l));var m=n.getDerivedStateFromProps;(f=typeof m=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==h||p!==l)&&xE(e,a,r,l),po=!1,p=e.memoizedState,a.state=p,hp(e,r,a,i);var v=e.memoizedState;s!==h||p!==v||er.current||po?(typeof m=="function"&&(Y_(e,n,m,r),v=e.memoizedState),(c=po||wE(e,n,c,r,p,v,l)||!1)?(f||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,v,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,v,l)),typeof a.componentDidUpdate=="function"&&(e.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===t.memoizedProps&&p===t.memoizedState||(e.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===t.memoizedProps&&p===t.memoizedState||(e.flags|=1024),e.memoizedProps=r,e.memoizedState=v),a.props=r,a.state=v,a.context=l,r=c):(typeof a.componentDidUpdate!="function"||s===t.memoizedProps&&p===t.memoizedState||(e.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===t.memoizedProps&&p===t.memoizedState||(e.flags|=1024),r=!1)}return K_(t,e,n,r,o,i)}function K_(t,e,n,r,i,o){o4(t,e);var a=(e.flags&128)!==0;if(!r&&!a)return i&&gE(e,n,!1),Yi(t,e,o);r=e.stateNode,ZI.current=e;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return e.flags|=1,t!==null&&a?(e.child=dl(e,t.child,null,o),e.child=dl(e,null,s,o)):Wn(t,e,s,o),e.memoizedState=r.state,i&&gE(e,n,!0),e.child}function a4(t){var e=t.stateNode;e.pendingContext?mE(t,e.pendingContext,e.pendingContext!==e.context):e.context&&mE(t,e.context,!1),mw(t,e.containerInfo)}function RE(t,e,n,r,i){return fl(),uw(i),e.flags|=256,Wn(t,e,n,r),e.child}var X_={dehydrated:null,treeContext:null,retryLane:0};function Q_(t){return{baseLanes:t,cachePool:null,transitions:null}}function s4(t,e,n){var r=e.pendingProps,i=Rt.current,o=!1,a=(e.flags&128)!==0,s;if((s=a)||(s=t!==null&&t.memoizedState===null?!1:(i&2)!==0),s?(o=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(i|=1),_t(Rt,i&1),t===null)return W_(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(e.mode&1?t.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(a=r.children,t=r.fallback,o?(r=e.mode,o=e.child,a={mode:"hidden",children:a},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=a):o=ig(a,r,0,null),t=Ia(t,r,n,null),o.return=e,t.return=e,o.sibling=t,e.child=o,e.child.memoizedState=Q_(n),e.memoizedState=X_,t):Sw(e,a));if(i=t.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return GI(t,e,a,r,s,i,n);if(o){o=r.fallback,a=e.mode,i=t.child,s=i.sibling;var l={mode:"hidden",children:r.children};return!(a&1)&&e.child!==i?(r=e.child,r.childLanes=0,r.pendingProps=l,e.deletions=null):(r=Bo(i,l),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?o=Bo(s,o):(o=Ia(o,a,n,null),o.flags|=2),o.return=e,r.return=e,r.sibling=o,e.child=r,r=o,o=e.child,a=t.child.memoizedState,a=a===null?Q_(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=t.childLanes&~n,e.memoizedState=X_,r}return o=t.child,t=o.sibling,r=Bo(o,{mode:"visible",children:r.children}),!(e.mode&1)&&(r.lanes=n),r.return=e,r.sibling=null,t!==null&&(n=e.deletions,n===null?(e.deletions=[t],e.flags|=16):n.push(t)),e.child=r,e.memoizedState=null,r}function Sw(t,e){return e=ig({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function nd(t,e,n,r){return r!==null&&uw(r),dl(e,t.child,null,n),t=Sw(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function GI(t,e,n,r,i,o,a){if(n)return e.flags&256?(e.flags&=-257,r=sy(Error(xe(422))),nd(t,e,a,r)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(o=r.fallback,i=e.mode,r=ig({mode:"visible",children:r.children},i,0,null),o=Ia(o,i,a,null),o.flags|=2,r.return=e,o.return=e,r.sibling=o,e.child=r,e.mode&1&&dl(e,t.child,null,a),e.child.memoizedState=Q_(a),e.memoizedState=X_,o);if(!(e.mode&1))return nd(t,e,a,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,o=Error(xe(419)),r=sy(o,r,void 0),nd(t,e,a,r)}if(s=(a&t.childLanes)!==0,Jn||s){if(r=pn,r!==null){switch(a&-a){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|a)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Vi(t,i),qr(r,t,i,-1))}return kw(),r=sy(Error(xe(421))),nd(t,e,a,r)}return i.data==="$?"?(e.flags|=128,e.child=t.child,e=l8.bind(null,t),i._reactRetry=e,null):(t=o.treeContext,ur=Io(i.nextSibling),fr=e,Ct=!0,Hr=null,t!==null&&(xr[Sr++]=Ii,xr[Sr++]=Fi,xr[Sr++]=Ya,Ii=t.id,Fi=t.overflow,Ya=e),e=Sw(e,r.children),e.flags|=4096,e)}function AE(t,e,n){t.lanes|=e;var r=t.alternate;r!==null&&(r.lanes|=e),V_(t.return,e,n)}function ly(t,e,n,r,i){var o=t.memoizedState;o===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=e,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function l4(t,e,n){var r=e.pendingProps,i=r.revealOrder,o=r.tail;if(Wn(t,e,r.children,n),r=Rt.current,r&2)r=r&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&AE(t,n,e);else if(t.tag===19)AE(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}r&=1}if(_t(Rt,r),!(e.mode&1))e.memoizedState=null;else switch(i){case"forwards":for(n=e.child,i=null;n!==null;)t=n.alternate,t!==null&&pp(t)===null&&(i=n),n=n.sibling;n=i,n===null?(i=e.child,e.child=null):(i=n.sibling,n.sibling=null),ly(e,!1,i,n,o);break;case"backwards":for(n=null,i=e.child,e.child=null;i!==null;){if(t=i.alternate,t!==null&&pp(t)===null){e.child=i;break}t=i.sibling,i.sibling=n,n=i,i=t}ly(e,!0,n,null,o);break;case"together":ly(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function Yd(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function Yi(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Za|=e.lanes,!(n&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(xe(153));if(e.child!==null){for(t=e.child,n=Bo(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Bo(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function KI(t,e,n){switch(e.tag){case 3:a4(e),fl();break;case 5:N3(e);break;case 1:tr(e.type)&&lp(e);break;case 4:mw(e,e.stateNode.containerInfo);break;case 10:var r=e.type._context,i=e.memoizedProps.value;_t(fp,r._currentValue),r._currentValue=i;break;case 13:if(r=e.memoizedState,r!==null)return r.dehydrated!==null?(_t(Rt,Rt.current&1),e.flags|=128,null):n&e.child.childLanes?s4(t,e,n):(_t(Rt,Rt.current&1),t=Yi(t,e,n),t!==null?t.sibling:null);_t(Rt,Rt.current&1);break;case 19:if(r=(n&e.childLanes)!==0,t.flags&128){if(r)return l4(t,e,n);e.flags|=128}if(i=e.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),_t(Rt,Rt.current),r)break;return null;case 22:case 23:return e.lanes=0,i4(t,e,n)}return Yi(t,e,n)}var u4,J_,c4,f4;u4=function(t,e){for(var n=e.child;n!==null;){if(n.tag===5||n.tag===6)t.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};J_=function(){};c4=function(t,e,n,r){var i=t.memoizedProps;if(i!==r){t=e.stateNode,Ra(gi.current);var o=null;switch(n){case"input":i=w_(t,i),r=w_(t,r),o=[];break;case"select":i=Nt({},i,{value:void 0}),r=Nt({},r,{value:void 0}),o=[];break;case"textarea":i=E_(t,i),r=E_(t,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(t.onclick=ap)}P_(n,r);var a;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var s=i[c];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(uc.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var l=r[c];if(s=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&l!==s&&(l!=null||s!=null))if(c==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(o||(o=[]),o.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(o=o||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(uc.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&bt("scroll",t),o||s===l||(o=[])):(o=o||[]).push(c,l))}n&&(o=o||[]).push("style",n);var c=o;(e.updateQueue=c)&&(e.flags|=4)}};f4=function(t,e,n,r){n!==r&&(e.flags|=4)};function lu(t,e){if(!Ct)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:r.sibling=null}}function An(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,r=0;if(e)for(var i=t.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=t,i=i.sibling;else for(i=t.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=t,i=i.sibling;return t.subtreeFlags|=r,t.childLanes=n,e}function XI(t,e,n){var r=e.pendingProps;switch(lw(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return An(e),null;case 1:return tr(e.type)&&sp(),An(e),null;case 3:return r=e.stateNode,hl(),Et(er),Et($n),vw(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(t===null||t.child===null)&&(ed(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,Hr!==null&&(s0(Hr),Hr=null))),J_(t,e),An(e),null;case 5:gw(e);var i=Ra(wc.current);if(n=e.type,t!==null&&e.stateNode!=null)c4(t,e,n,r,i),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!r){if(e.stateNode===null)throw Error(xe(166));return An(e),null}if(t=Ra(gi.current),ed(e)){r=e.stateNode,n=e.type;var o=e.memoizedProps;switch(r[ci]=e,r[_c]=o,t=(e.mode&1)!==0,n){case"dialog":bt("cancel",r),bt("close",r);break;case"iframe":case"object":case"embed":bt("load",r);break;case"video":case"audio":for(i=0;i<Ou.length;i++)bt(Ou[i],r);break;case"source":bt("error",r);break;case"img":case"image":case"link":bt("error",r),bt("load",r);break;case"details":bt("toggle",r);break;case"input":HS(r,o),bt("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},bt("invalid",r);break;case"textarea":WS(r,o),bt("invalid",r)}P_(n,o),i=null;for(var a in o)if(o.hasOwnProperty(a)){var s=o[a];a==="children"?typeof s=="string"?r.textContent!==s&&(o.suppressHydrationWarning!==!0&&Jf(r.textContent,s,t),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&Jf(r.textContent,s,t),i=["children",""+s]):uc.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&bt("scroll",r)}switch(n){case"input":Vf(r),US(r,o,!0);break;case"textarea":Vf(r),VS(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=ap)}r=i,e.updateQueue=r,r!==null&&(e.flags|=4)}else{a=i.nodeType===9?i:i.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=$M(n)),t==="http://www.w3.org/1999/xhtml"?n==="script"?(t=a.createElement("div"),t.innerHTML="<script><\/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;i<Ou.length;i++)bt(Ou[i],t);i=r;break;case"source":bt("error",t),i=r;break;case"img":case"image":case"link":bt("error",t),bt("load",t),i=r;break;case"details":bt("toggle",t),i=r;break;case"input":HS(t,r),i=w_(t,r),bt("invalid",t);break;case"option":i=r;break;case"select":t._wrapperState={wasMultiple:!!r.multiple},i=Nt({},r,{value:void 0}),bt("invalid",t);break;case"textarea":WS(t,r),i=E_(t,r),bt("invalid",t);break;default:i=r}P_(n,i),s=i;for(o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="style"?zM(t,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&jM(t,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&cc(t,l):typeof l=="number"&&cc(t,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(uc.hasOwnProperty(o)?l!=null&&o==="onScroll"&&bt("scroll",t):l!=null&&qb(t,o,l,a))}switch(n){case"input":Vf(t),US(t,r,!1);break;case"textarea":Vf(t),VS(t);break;case"option":r.value!=null&&t.setAttribute("value",""+Vo(r.value));break;case"select":t.multiple=!!r.multiple,o=r.value,o!=null?Zs(t,!!r.multiple,o,!1):r.defaultValue!=null&&Zs(t,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(t.onclick=ap)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(e.flags|=4)}e.ref!==null&&(e.flags|=512,e.flags|=2097152)}return An(e),null;case 6:if(t&&e.stateNode!=null)f4(t,e,t.memoizedProps,r);else{if(typeof r!="string"&&e.stateNode===null)throw Error(xe(166));if(n=Ra(wc.current),Ra(gi.current),ed(e)){if(r=e.stateNode,n=e.memoizedProps,r[ci]=e,(o=r.nodeValue!==n)&&(t=fr,t!==null))switch(t.tag){case 3:Jf(r.nodeValue,n,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&Jf(r.nodeValue,n,(t.mode&1)!==0)}o&&(e.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[ci]=e,e.stateNode=r}return An(e),null;case 13:if(Et(Rt),r=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(Ct&&ur!==null&&e.mode&1&&!(e.flags&128))C3(),fl(),e.flags|=98560,o=!1;else if(o=ed(e),r!==null&&r.dehydrated!==null){if(t===null){if(!o)throw Error(xe(318));if(o=e.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(xe(317));o[ci]=e}else fl(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;An(e),o=!1}else Hr!==null&&(s0(Hr),Hr=null),o=!0;if(!o)return e.flags&65536?e:null}return e.flags&128?(e.lanes=n,e):(r=r!==null,r!==(t!==null&&t.memoizedState!==null)&&r&&(e.child.flags|=8192,e.mode&1&&(t===null||Rt.current&1?an===0&&(an=3):kw())),e.updateQueue!==null&&(e.flags|=4),An(e),null);case 4:return hl(),J_(t,e),t===null&&vc(e.stateNode.containerInfo),An(e),null;case 10:return dw(e.type._context),An(e),null;case 17:return tr(e.type)&&sp(),An(e),null;case 19:if(Et(Rt),o=e.memoizedState,o===null)return An(e),null;if(r=(e.flags&128)!==0,a=o.rendering,a===null)if(r)lu(o,!1);else{if(an!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(a=pp(t),a!==null){for(e.flags|=128,lu(o,!1),r=a.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),e.subtreeFlags=0,r=n,n=e.child;n!==null;)o=n,t=r,o.flags&=14680066,a=o.alternate,a===null?(o.childLanes=0,o.lanes=t,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,t=a.dependencies,o.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),n=n.sibling;return _t(Rt,Rt.current&1|2),e.child}t=t.sibling}o.tail!==null&&Yt()>ml&&(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;r<n.length;r++){var i=n[r];try{var o=t,a=e,s=a;e:for(;s!==null;){switch(s.tag){case 5:Tn=s.stateNode,Br=!1;break e;case 3:Tn=s.stateNode.containerInfo,Br=!0;break e;case 4:Tn=s.stateNode.containerInfo,Br=!0;break e}s=s.return}if(Tn===null)throw Error(xe(160));p4(o,a,i),Tn=null,Br=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(c){Ft(i,e,c)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)m4(e,t),e=e.sibling}function m4(t,e){var n=t.alternate,r=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if($r(e,t),ii(t),r&4){try{Hu(3,t,t.return),ng(3,t)}catch(y){Ft(t,t.return,y)}try{Hu(5,t,t.return)}catch(y){Ft(t,t.return,y)}}break;case 1:$r(e,t),ii(t),r&512&&n!==null&&Hs(n,n.return);break;case 5:if($r(e,t),ii(t),r&512&&n!==null&&Hs(n,n.return),t.flags&32){var i=t.stateNode;try{cc(i,"")}catch(y){Ft(t,t.return,y)}}if(r&4&&(i=t.stateNode,i!=null)){var o=t.memoizedProps,a=n!==null?n.memoizedProps:o,s=t.type,l=t.updateQueue;if(t.updateQueue=null,l!==null)try{s==="input"&&o.type==="radio"&&o.name!=null&&IM(i,o),T_(s,a);var c=T_(s,o);for(a=0;a<l.length;a+=2){var f=l[a],h=l[a+1];f==="style"?zM(i,h):f==="dangerouslySetInnerHTML"?jM(i,h):f==="children"?cc(i,h):qb(i,f,h,c)}switch(s){case"input":x_(i,o);break;case"textarea":FM(i,o);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var m=o.value;m!=null?Zs(i,!!o.multiple,m,!1):p!==!!o.multiple&&(o.defaultValue!=null?Zs(i,!!o.multiple,o.defaultValue,!0):Zs(i,!!o.multiple,o.multiple?[]:"",!1))}i[_c]=o}catch(y){Ft(t,t.return,y)}}break;case 6:if($r(e,t),ii(t),r&4){if(t.stateNode===null)throw Error(xe(162));i=t.stateNode,o=t.memoizedProps;try{i.nodeValue=o}catch(y){Ft(t,t.return,y)}}break;case 3:if($r(e,t),ii(t),r&4&&n!==null&&n.memoizedState.isDehydrated)try{pc(e.containerInfo)}catch(y){Ft(t,t.return,y)}break;case 4:$r(e,t),ii(t);break;case 13:$r(e,t),ii(t),i=t.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(Pw=Yt())),r&4&&IE(t);break;case 22:if(f=n!==null&&n.memoizedState!==null,t.mode&1?(In=(c=In)||f,$r(e,t),In=c):$r(e,t),ii(t),r&8192){if(c=t.memoizedState!==null,(t.stateNode.isHidden=c)&&!f&&t.mode&1)for($e=t,f=t.child;f!==null;){for(h=$e=f;$e!==null;){switch(p=$e,m=p.child,p.tag){case 0:case 11:case 14:case 15:Hu(4,p,p.return);break;case 1:Hs(p,p.return);var v=p.stateNode;if(typeof v.componentWillUnmount=="function"){r=p,n=p.return;try{e=r,v.props=e.memoizedProps,v.state=e.memoizedState,v.componentWillUnmount()}catch(y){Ft(r,n,y)}}break;case 5:Hs(p,p.return);break;case 22:if(p.memoizedState!==null){$E(h);continue}}m!==null?(m.return=p,$e=m):$E(h)}f=f.sibling}e:for(f=null,h=t;;){if(h.tag===5){if(f===null){f=h;try{i=h.stateNode,c?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(s=h.stateNode,l=h.memoizedProps.style,a=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=BM("display",a))}catch(y){Ft(t,t.return,y)}}}else if(h.tag===6){if(f===null)try{h.stateNode.nodeValue=c?"":h.memoizedProps}catch(y){Ft(t,t.return,y)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===t)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;f===h&&(f=null),h=h.return}f===h&&(f=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:$r(e,t),ii(t),r&4&&IE(t);break;case 21:break;default:$r(e,t),ii(t)}}function ii(t){var e=t.flags;if(e&2){try{e:{for(var n=t.return;n!==null;){if(h4(n)){var r=n;break e}n=n.return}throw Error(xe(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(cc(i,""),r.flags&=-33);var o=NE(t);r0(t,o,i);break;case 3:case 4:var a=r.stateNode.containerInfo,s=NE(t);n0(t,s,a);break;default:throw Error(xe(161))}}catch(l){Ft(t,t.return,l)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function t8(t,e,n){$e=t,g4(t)}function g4(t,e,n){for(var r=(t.mode&1)!==0;$e!==null;){var i=$e,o=i.child;if(i.tag===22&&r){var a=i.memoizedState!==null||rd;if(!a){var s=i.alternate,l=s!==null&&s.memoizedState!==null||In;s=rd;var c=In;if(rd=a,(In=l)&&!c)for($e=i;$e!==null;)a=$e,l=a.child,a.tag===22&&a.memoizedState!==null?jE(i):l!==null?(l.return=a,$e=l):jE(i);for(;o!==null;)$e=o,g4(o),o=o.sibling;$e=i,rd=s,In=c}FE(t)}else i.subtreeFlags&8772&&o!==null?(o.return=i,$e=o):FE(t)}}function FE(t){for(;$e!==null;){var e=$e;if(e.flags&8772){var n=e.alternate;try{if(e.flags&8772)switch(e.tag){case 0:case 11:case 15:In||ng(5,e);break;case 1:var r=e.stateNode;if(e.flags&4&&!In)if(n===null)r.componentDidMount();else{var i=e.elementType===e.type?n.memoizedProps:jr(e.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=e.updateQueue;o!==null&&bE(e,o,r);break;case 3:var a=e.updateQueue;if(a!==null){if(n=null,e.child!==null)switch(e.child.tag){case 5:n=e.child.stateNode;break;case 1:n=e.child.stateNode}bE(e,a,n)}break;case 5:var s=e.stateNode;if(n===null&&e.flags&4){n=s;var l=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(e.memoizedState===null){var c=e.alternate;if(c!==null){var f=c.memoizedState;if(f!==null){var h=f.dehydrated;h!==null&&pc(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(xe(163))}In||e.flags&512&&t0(e)}catch(p){Ft(e,e.return,p)}}if(e===t){$e=null;break}if(n=e.sibling,n!==null){n.return=e.return,$e=n;break}$e=e.return}}function $E(t){for(;$e!==null;){var e=$e;if(e===t){$e=null;break}var n=e.sibling;if(n!==null){n.return=e.return,$e=n;break}$e=e.return}}function jE(t){for(;$e!==null;){var e=$e;try{switch(e.tag){case 0:case 11:case 15:var n=e.return;try{ng(4,e)}catch(l){Ft(e,n,l)}break;case 1:var r=e.stateNode;if(typeof r.componentDidMount=="function"){var i=e.return;try{r.componentDidMount()}catch(l){Ft(e,i,l)}}var o=e.return;try{t0(e)}catch(l){Ft(e,o,l)}break;case 5:var a=e.return;try{t0(e)}catch(l){Ft(e,a,l)}}}catch(l){Ft(e,e.return,l)}if(e===t){$e=null;break}var s=e.sibling;if(s!==null){s.return=e.return,$e=s;break}$e=e.return}}var n8=Math.ceil,vp=Qi.ReactCurrentDispatcher,Ew=Qi.ReactCurrentOwner,Or=Qi.ReactCurrentBatchConfig,ot=0,pn=null,en=null,Mn=0,sr=0,Us=ra(0),an=0,Oc=null,Za=0,rg=0,Ow=0,Uu=null,Kn=null,Pw=0,ml=1/0,Li=null,yp=!1,i0=null,$o=null,id=!1,xo=null,_p=0,Wu=0,o0=null,qd=-1,Zd=0;function Yn(){return ot&6?Yt():qd!==-1?qd:qd=Yt()}function jo(t){return t.mode&1?ot&2&&Mn!==0?Mn&-Mn:jI.transition!==null?(Zd===0&&(Zd=JM()),Zd):(t=ht,t!==0||(t=window.event,t=t===void 0?16:a3(t.type)),t):1}function qr(t,e,n,r){if(50<Wu)throw Wu=0,o0=null,Error(xe(185));nf(t,n,r),(!(ot&2)||t!==pn)&&(t===pn&&(!(ot&2)&&(rg|=n),an===4&&_o(t,Mn)),nr(t,r),n===1&&ot===0&&!(e.mode&1)&&(ml=Yt()+500,Jm&&ia()))}function nr(t,e){var n=t.callbackNode;j5(t,e);var r=np(t,t===pn?Mn:0);if(r===0)n!==null&&ZS(n),t.callbackNode=null,t.callbackPriority=0;else if(e=r&-r,t.callbackPriority!==e){if(n!=null&&ZS(n),e===1)t.tag===0?$I(BE.bind(null,t)):O3(BE.bind(null,t)),DI(function(){!(ot&6)&&ia()}),n=null;else{switch(e3(r)){case 1:n=Qb;break;case 4:n=XM;break;case 16:n=tp;break;case 536870912:n=QM;break;default:n=tp}n=E4(n,v4.bind(null,t))}t.callbackPriority=e,t.callbackNode=n}}function v4(t,e){if(qd=-1,Zd=0,ot&6)throw Error(xe(327));var n=t.callbackNode;if(Js()&&t.callbackNode!==n)return null;var r=np(t,t===pn?Mn:0);if(r===0)return null;if(r&30||r&t.expiredLanes||e)e=bp(t,r);else{e=r;var i=ot;ot|=2;var o=_4();(pn!==t||Mn!==e)&&(Li=null,ml=Yt()+500,Na(t,e));do try{o8();break}catch(s){y4(t,s)}while(1);fw(),vp.current=o,ot=i,en!==null?e=0:(pn=null,Mn=0,e=an)}if(e!==0){if(e===2&&(i=R_(t),i!==0&&(r=i,e=a0(t,i))),e===1)throw n=Oc,Na(t,0),_o(t,r),nr(t,Yt()),n;if(e===6)_o(t,r);else{if(i=t.current.alternate,!(r&30)&&!r8(i)&&(e=bp(t,r),e===2&&(o=R_(t),o!==0&&(r=o,e=a0(t,o))),e===1))throw n=Oc,Na(t,0),_o(t,r),nr(t,Yt()),n;switch(t.finishedWork=i,t.finishedLanes=r,e){case 0:case 1:throw Error(xe(345));case 2:wa(t,Kn,Li);break;case 3:if(_o(t,r),(r&130023424)===r&&(e=Pw+500-Yt(),10<e)){if(np(t,0)!==0)break;if(i=t.suspendedLanes,(i&r)!==r){Yn(),t.pingedLanes|=t.suspendedLanes&i;break}t.timeoutHandle=B_(wa.bind(null,t,Kn,Li),e);break}wa(t,Kn,Li);break;case 4:if(_o(t,r),(r&4194240)===r)break;for(e=t.eventTimes,i=-1;0<r;){var a=31-Yr(r);o=1<<a,a=e[a],a>i&&(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,10<r){t.timeoutHandle=B_(wa.bind(null,t,Kn,Li),r);break}wa(t,Kn,Li);break;case 5:wa(t,Kn,Li);break;default:throw Error(xe(329))}}}return nr(t,Yt()),t.callbackNode===n?v4.bind(null,t):null}function a0(t,e){var n=Uu;return t.current.memoizedState.isDehydrated&&(Na(t,e).flags|=256),t=bp(t,e),t!==2&&(e=Kn,Kn=n,e!==null&&s0(e)),t}function s0(t){Kn===null?Kn=t:Kn.push.apply(Kn,t)}function r8(t){for(var e=t;;){if(e.flags&16384){var n=e.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Xr(o(),i))return!1}catch{return!1}}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function _o(t,e){for(e&=~Ow,e&=~rg,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-Yr(e),r=1<<n;t[n]=-1,e&=~r}}function BE(t){if(ot&6)throw Error(xe(327));Js();var e=np(t,0);if(!(e&1))return nr(t,Yt()),null;var n=bp(t,e);if(t.tag!==0&&n===2){var r=R_(t);r!==0&&(e=r,n=a0(t,r))}if(n===1)throw n=Oc,Na(t,0),_o(t,e),nr(t,Yt()),n;if(n===6)throw Error(xe(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,wa(t,Kn,Li),nr(t,Yt()),null}function Tw(t,e){var n=ot;ot|=1;try{return t(e)}finally{ot=n,ot===0&&(ml=Yt()+500,Jm&&ia())}}function Ga(t){xo!==null&&xo.tag===0&&!(ot&6)&&Js();var e=ot;ot|=1;var n=Or.transition,r=ht;try{if(Or.transition=null,ht=1,t)return t()}finally{ht=r,Or.transition=n,ot=e,!(ot&6)&&ia()}}function Cw(){sr=Us.current,Et(Us)}function Na(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(n!==-1&&(t.timeoutHandle=-1,AI(n)),en!==null)for(n=en.return;n!==null;){var r=n;switch(lw(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&sp();break;case 3:hl(),Et(er),Et($n),vw();break;case 5:gw(r);break;case 4:hl();break;case 13:Et(Rt);break;case 19:Et(Rt);break;case 10:dw(r.type._context);break;case 22:case 23:Cw()}n=n.return}if(pn=t,en=t=Bo(t.current,null),Mn=sr=e,an=0,Oc=null,Ow=rg=Za=0,Kn=Uu=null,La!==null){for(e=0;e<La.length;e++)if(n=La[e],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var a=o.next;o.next=i,r.next=a}n.pending=r}La=null}return t}function y4(t,e){do{var n=en;try{if(fw(),Wd.current=gp,mp){for(var r=Dt.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}mp=!1}if(qa=0,dn=on=Dt=null,zu=!1,xc=0,Ew.current=null,n===null||n.return===null){an=1,Oc=e,en=null;break}e:{var o=t,a=n.return,s=n,l=e;if(e=Mn,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,f=s,h=f.tag;if(!(f.mode&1)&&(h===0||h===11||h===15)){var p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var m=TE(a);if(m!==null){m.flags&=-257,CE(m,a,s,o,e),m.mode&1&&PE(o,c,e),e=m,l=c;var v=e.updateQueue;if(v===null){var y=new Set;y.add(l),e.updateQueue=y}else v.add(l);break e}else{if(!(e&1)){PE(o,c,e),kw();break e}l=Error(xe(426))}}else if(Ct&&s.mode&1){var w=TE(a);if(w!==null){!(w.flags&65536)&&(w.flags|=256),CE(w,a,s,o,e),uw(pl(l,s));break e}}o=l=pl(l,s),an!==4&&(an=2),Uu===null?Uu=[o]:Uu.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,e&=-e,o.lanes|=e;var _=t4(o,l,e);_E(o,_);break e;case 1:s=l;var b=o.type,S=o.stateNode;if(!(o.flags&128)&&(typeof b.getDerivedStateFromError=="function"||S!==null&&typeof S.componentDidCatch=="function"&&($o===null||!$o.has(S)))){o.flags|=65536,e&=-e,o.lanes|=e;var O=n4(o,s,e);_E(o,O);break e}}o=o.return}while(o!==null)}w4(n)}catch(M){e=M,en===n&&n!==null&&(en=n=n.return);continue}break}while(1)}function _4(){var t=vp.current;return vp.current=gp,t===null?gp:t}function kw(){(an===0||an===3||an===2)&&(an=4),pn===null||!(Za&268435455)&&!(rg&268435455)||_o(pn,Mn)}function bp(t,e){var n=ot;ot|=2;var r=_4();(pn!==t||Mn!==e)&&(Li=null,Na(t,e));do try{i8();break}catch(i){y4(t,i)}while(1);if(fw(),ot=n,vp.current=r,en!==null)throw Error(xe(261));return pn=null,Mn=0,an}function i8(){for(;en!==null;)b4(en)}function o8(){for(;en!==null&&!M5();)b4(en)}function b4(t){var e=S4(t.alternate,t,sr);t.memoizedProps=t.pendingProps,e===null?w4(t):en=e,Ew.current=null}function w4(t){var e=t;do{var n=e.alternate;if(t=e.return,e.flags&32768){if(n=QI(n,e),n!==null){n.flags&=32767,en=n;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{an=6,en=null;return}}else if(n=XI(n,e,sr),n!==null){en=n;return}if(e=e.sibling,e!==null){en=e;return}en=e=t}while(e!==null);an===0&&(an=5)}function wa(t,e,n){var r=ht,i=Or.transition;try{Or.transition=null,ht=1,a8(t,e,n,r)}finally{Or.transition=i,ht=r}return null}function a8(t,e,n,r){do Js();while(xo!==null);if(ot&6)throw Error(xe(327));n=t.finishedWork;var i=t.finishedLanes;if(n===null)return null;if(t.finishedWork=null,t.finishedLanes=0,n===t.current)throw Error(xe(177));t.callbackNode=null,t.callbackPriority=0;var o=n.lanes|n.childLanes;if(B5(t,o),t===pn&&(en=pn=null,Mn=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||id||(id=!0,E4(tp,function(){return Js(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Or.transition,Or.transition=null;var a=ht;ht=1;var s=ot;ot|=4,Ew.current=null,e8(t,n),m4(n,t),PI($_),rp=!!F_,$_=F_=null,t.current=n,t8(n),L5(),ot=s,ht=a,Or.transition=o}else t.current=n;if(id&&(id=!1,xo=t,_p=i),o=t.pendingLanes,o===0&&($o=null),D5(n.stateNode),nr(t,Yt()),e!==null)for(r=t.onRecoverableError,n=0;n<e.length;n++)i=e[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(yp)throw yp=!1,t=i0,i0=null,t;return _p&1&&t.tag!==0&&Js(),o=t.pendingLanes,o&1?t===o0?Wu++:(Wu=0,o0=t):Wu=0,ia(),null}function Js(){if(xo!==null){var t=e3(_p),e=Or.transition,n=ht;try{if(Or.transition=null,ht=16>t?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;l<s.length;l++){var c=s[l];for($e=c;$e!==null;){var f=$e;switch(f.tag){case 0:case 11:case 15:Hu(8,f,o)}var h=f.child;if(h!==null)h.return=f,$e=h;else for(;$e!==null;){f=$e;var p=f.sibling,m=f.return;if(d4(f),f===c){$e=null;break}if(p!==null){p.return=m,$e=p;break}$e=m}}}var v=o.alternate;if(v!==null){var y=v.child;if(y!==null){v.child=null;do{var w=y.sibling;y.sibling=null,y=w}while(y!==null)}}$e=o}}if(o.subtreeFlags&2064&&a!==null)a.return=o,$e=a;else e:for(;$e!==null;){if(o=$e,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Hu(9,o,o.return)}var _=o.sibling;if(_!==null){_.return=o.return,$e=_;break e}$e=o.return}}var b=t.current;for($e=b;$e!==null;){a=$e;var S=a.child;if(a.subtreeFlags&2064&&S!==null)S.return=a,$e=S;else e:for(a=b;$e!==null;){if(s=$e,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:ng(9,s)}}catch(M){Ft(s,s.return,M)}if(s===a){$e=null;break e}var O=s.sibling;if(O!==null){O.return=s.return,$e=O;break e}$e=s.return}}if(ot=i,ia(),mi&&typeof mi.onPostCommitFiberRoot=="function")try{mi.onPostCommitFiberRoot(Zm,t)}catch{}r=!0}return r}finally{ht=n,Or.transition=e}}return!1}function zE(t,e,n){e=pl(n,e),e=t4(t,e,1),t=Fo(t,e,1),e=Yn(),t!==null&&(nf(t,1,e),nr(t,e))}function Ft(t,e,n){if(t.tag===3)zE(t,t,n);else for(;e!==null;){if(e.tag===3){zE(e,t,n);break}else if(e.tag===1){var r=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&($o===null||!$o.has(r))){t=pl(n,t),t=n4(e,t,1),e=Fo(e,t,1),t=Yn(),e!==null&&(nf(e,1,t),nr(e,t));break}}e=e.return}}function s8(t,e,n){var r=t.pingCache;r!==null&&r.delete(e),e=Yn(),t.pingedLanes|=t.suspendedLanes&n,pn===t&&(Mn&n)===n&&(an===4||an===3&&(Mn&130023424)===Mn&&500>Yt()-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<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Rs,key:r==null?null:""+r,children:t,containerInfo:e,implementation:n}}function O4(t){if(!t)return Yo;t=t._reactInternals;e:{if(ss(t)!==t||t.tag!==1)throw Error(xe(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(tr(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(xe(171))}if(t.tag===1){var n=t.type;if(tr(n))return E3(t,n,e)}return e}function P4(t,e,n,r,i,o,a,s,l){return t=Lw(n,r,!0,t,i,o,a,s,l),t.context=O4(null),n=t.current,r=Yn(),i=jo(n),o=zi(r,i),o.callback=e??null,Fo(n,o,i),t.current.lanes=i,nf(t,i,r),nr(t,r),t}function og(t,e,n,r){var i=e.current,o=Yn(),a=jo(i);return n=O4(n),e.context===null?e.context=n:e.pendingContext=n,e=zi(o,a),e.payload={element:t},r=r===void 0?null:r,r!==null&&(e.callback=r),t=Fo(i,e,a),t!==null&&(qr(t,i,a,o),Ud(t,i,a)),a}function wp(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function HE(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Rw(t,e){HE(t,e),(t=t.alternate)&&HE(t,e)}function p8(){return null}var T4=typeof reportError=="function"?reportError:function(t){console.error(t)};function Aw(t){this._internalRoot=t}ag.prototype.render=Aw.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(xe(409));og(t,e,null,null)};ag.prototype.unmount=Aw.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Ga(function(){og(null,t,null,null)}),e[Wi]=null}};function ag(t){this._internalRoot=t}ag.prototype.unstable_scheduleHydration=function(t){if(t){var e=r3();t={blockedOn:null,target:t,priority:e};for(var n=0;n<yo.length&&e!==0&&e<yo[n].priority;n++);yo.splice(n,0,t),n===0&&o3(t)}};function Dw(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function sg(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function UE(){}function m8(t,e,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var c=wp(a);o.call(c)}}var a=P4(e,r,t,0,null,!1,!1,"",UE);return t._reactRootContainer=a,t[Wi]=a.current,vc(t.nodeType===8?t.parentNode:t),Ga(),a}for(;i=t.lastChild;)t.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var c=wp(l);s.call(c)}}var l=Lw(t,0,!1,null,null,!1,!1,"",UE);return t._reactRootContainer=l,t[Wi]=l.current,vc(t.nodeType===8?t.parentNode:t),Ga(function(){og(e,l,n,r)}),l}function lg(t,e,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if(typeof i=="function"){var s=i;i=function(){var l=wp(a);s.call(l)}}og(e,a,t,i)}else a=m8(n,e,t,i,r);return wp(a)}t3=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var n=Eu(e.pendingLanes);n!==0&&(Jb(e,n|1),nr(e,Yt()),!(ot&6)&&(ml=Yt()+500,ia()))}break;case 13:Ga(function(){var r=Vi(t,1);if(r!==null){var i=Yn();qr(r,t,1,i)}}),Rw(t,1)}};ew=function(t){if(t.tag===13){var e=Vi(t,134217728);if(e!==null){var n=Yn();qr(e,t,134217728,n)}Rw(t,134217728)}};n3=function(t){if(t.tag===13){var e=jo(t),n=Vi(t,e);if(n!==null){var r=Yn();qr(n,t,e,r)}Rw(t,e)}};r3=function(){return ht};i3=function(t,e){var n=ht;try{return ht=t,e()}finally{ht=n}};k_=function(t,e,n){switch(e){case"input":if(x_(t,n),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var r=n[e];if(r!==t&&r.form===t.form){var i=Qm(r);if(!i)throw Error(xe(90));NM(r),x_(r,i)}}}break;case"textarea":FM(t,n);break;case"select":e=n.value,e!=null&&Zs(t,!!n.multiple,e,!1)}};WM=Tw;VM=Ga;var g8={usingClientEntryPoint:!1,Events:[of,Fs,Qm,HM,UM,Tw]},uu={findFiberByHostInstance:Ma,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},v8={bundleType:uu.bundleType,version:uu.version,rendererPackageName:uu.rendererPackageName,rendererConfig:uu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Qi.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=ZM(t),t===null?null:t.stateNode},findFiberByHostInstance:uu.findFiberByHostInstance||p8,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var od=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!od.isDisabled&&od.supportsFiber)try{Zm=od.inject(v8),mi=od}catch{}}pr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=g8;pr.createPortal=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Dw(e))throw Error(xe(200));return h8(t,e,null,n)};pr.createRoot=function(t,e){if(!Dw(t))throw Error(xe(299));var n=!1,r="",i=T4;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(r=e.identifierPrefix),e.onRecoverableError!==void 0&&(i=e.onRecoverableError)),e=Lw(t,1,!1,null,null,n,!1,r,i),t[Wi]=e.current,vc(t.nodeType===8?t.parentNode:t),new Aw(e)};pr.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(xe(188)):(t=Object.keys(t).join(","),Error(xe(268,t)));return t=ZM(e),t=t===null?null:t.stateNode,t};pr.flushSync=function(t){return Ga(t)};pr.hydrate=function(t,e,n){if(!sg(e))throw Error(xe(200));return lg(null,t,e,!0,n)};pr.hydrateRoot=function(t,e,n){if(!Dw(t))throw Error(xe(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",a=T4;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),e=P4(e,null,t,1,n??null,i,!1,o,a),t[Wi]=e.current,vc(t),r)for(t=0;t<r.length;t++)n=r[t],i=n._getVersion,i=i(n._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[n,i]:e.mutableSourceEagerHydrationData.push(n,i);return new ag(e)};pr.render=function(t,e,n){if(!sg(e))throw Error(xe(200));return lg(null,t,e,!1,n)};pr.unmountComponentAtNode=function(t){if(!sg(t))throw Error(xe(40));return t._reactRootContainer?(Ga(function(){lg(null,null,t,!1,function(){t._reactRootContainer=null,t[Wi]=null})}),!0):!1};pr.unstable_batchedUpdates=Tw;pr.unstable_renderSubtreeIntoContainer=function(t,e,n,r){if(!sg(n))throw Error(xe(200));if(t==null||t._reactInternals===void 0)throw Error(xe(38));return lg(t,e,n,!1,r)};pr.version="18.2.0-next-9e3b772b8-20220608";(function(t){function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"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<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},el.apply(this,arguments)}function Nw(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=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;s<i.length;++s){var l=i[s];if(!G8[l]&&!(n&&n[l])&&!(a&&a[l])&&!(o&&o[l])){var c=J8(e,l);try{X8(t,l,c)}catch{}}}}return t}var GE=D4,u0={},tF={get exports(){return u0},set exports(t){u0=t}},mt={};/**
|
||
* @license React
|
||
* 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 zw=Symbol.for("react.element"),Hw=Symbol.for("react.portal"),bg=Symbol.for("react.fragment"),wg=Symbol.for("react.strict_mode"),xg=Symbol.for("react.profiler"),Sg=Symbol.for("react.provider"),Eg=Symbol.for("react.context"),nF=Symbol.for("react.server_context"),Og=Symbol.for("react.forward_ref"),Pg=Symbol.for("react.suspense"),Tg=Symbol.for("react.suspense_list"),Cg=Symbol.for("react.memo"),kg=Symbol.for("react.lazy"),rF=Symbol.for("react.offscreen"),iF=Symbol.for("react.module.reference");function Rr(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case zw:switch(t=t.type,t){case bg:case xg:case wg:case Pg:case Tg:return t;default:switch(t=t&&t.$$typeof,t){case nF:case Eg:case Og:case kg:case Cg:case Sg:return t;default:return e}}case Hw:return e}}}mt.ContextConsumer=Eg;mt.ContextProvider=Sg;mt.Element=zw;mt.ForwardRef=Og;mt.Fragment=bg;mt.Lazy=kg;mt.Memo=Cg;mt.Portal=Hw;mt.Profiler=xg;mt.StrictMode=wg;mt.Suspense=Pg;mt.SuspenseList=Tg;mt.isAsyncMode=function(){return!1};mt.isConcurrentMode=function(){return!1};mt.isContextConsumer=function(t){return Rr(t)===Eg};mt.isContextProvider=function(t){return Rr(t)===Sg};mt.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===zw};mt.isForwardRef=function(t){return Rr(t)===Og};mt.isFragment=function(t){return Rr(t)===bg};mt.isLazy=function(t){return Rr(t)===kg};mt.isMemo=function(t){return Rr(t)===Cg};mt.isPortal=function(t){return Rr(t)===Hw};mt.isProfiler=function(t){return Rr(t)===xg};mt.isStrictMode=function(t){return Rr(t)===wg};mt.isSuspense=function(t){return Rr(t)===Pg};mt.isSuspenseList=function(t){return Rr(t)===Tg};mt.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===bg||t===xg||t===wg||t===Pg||t===Tg||t===rF||typeof t=="object"&&t!==null&&(t.$$typeof===kg||t.$$typeof===Cg||t.$$typeof===Sg||t.$$typeof===Eg||t.$$typeof===Og||t.$$typeof===iF||t.getModuleId!==void 0)};mt.typeOf=Rr;(function(t){t.exports=mt})(tF);const oF=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function aF(t,e,n,r,{areStatesEqual:i,areOwnPropsEqual:o,areStatePropsEqual:a}){let s=!1,l,c,f,h,p;function m(b,S){return l=b,c=S,f=t(l,c),h=e(r,c),p=n(f,h,c),s=!0,p}function v(){return f=t(l,c),e.dependsOnOwnProps&&(h=e(r,c)),p=n(f,h,c),p}function y(){return t.dependsOnOwnProps&&(f=t(l,c)),e.dependsOnOwnProps&&(h=e(r,c)),p=n(f,h,c),p}function w(){const b=t(l,c),S=!a(b,f);return f=b,S&&(p=n(f,h,c)),p}function _(b,S){const O=!o(S,c),M=!i(b,l,S,c);return l=b,c=S,O&&M?v():O?y():M?w():p}return function(S,O){return s?_(S,O):m(S,O)}}function sF(t,e){let{initMapStateToProps:n,initMapDispatchToProps:r,initMergeProps:i}=e,o=Nw(e,oF);const a=n(t,o),s=r(t,o),l=i(t,o);return aF(a,s,l,t,o)}function lF(t,e){const n={};for(const r in t){const i=t[r];typeof i=="function"&&(n[r]=(...o)=>e(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<n.length;i++)if(!Object.prototype.hasOwnProperty.call(e,n[i])||!QE(t[n[i]],e[n[i]]))return!1;return!0}const gF=["reactReduxForwardedRef"];let F4=z8;const vF=t=>{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<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ep.apply(this,arguments)}var So;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(So||(So={}));const JE="popstate";function SF(t){t===void 0&&(t={});function e(r,i){let{pathname:o,search:a,hash:s}=r.location;return f0("",{pathname:o,search:a,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:Pc(i)}return PF(e,n,null,t)}function tn(t,e){if(t===!1||t===null||typeof t>"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<o.length;++s)a=FF(o[s],BF(i));return a}function $4(t,e,n,r){e===void 0&&(e=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,a,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<n.length;++a){let s=n[a],l=a===n.length-1,c=i==="/"?e:e.slice(i.length)||"/",f=$F({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},c);if(!f)return null;Object.assign(r,f.params);let h=s.route;o.push({params:r,pathname:zo([i,f.pathname]),pathnameBase:WF(zo([i,f.pathnameBase])),route:h}),f.pathnameBase!=="/"&&(i=zo([i,f.pathnameBase]))}return o}function $F(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,r]=jF(t.path,t.caseSensitive,t.end),i=e.match(n);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:r.reduce((c,f,h)=>{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 <Link to="..."> 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<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},d0.apply(this,arguments)}function KF(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}const XF=typeof Object.is=="function"?Object.is:KF,{useState:QF,useEffect:JF,useLayoutEffect:e$,useDebugValue:t$}=p_;function n$(t,e,n){const r=e(),[{inst:i},o]=QF({inst:{value:r,getSnapshot:e}});return 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},"<Route>")))}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<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Pp.apply(this,arguments)}function V4(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=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<r;)o[o.length]=t[n],n+=1;for(n=0;n<i;)o[o.length]=e[n],n+=1;return o}function Il(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(n){return e.apply(this,arguments)};case 2:return function(n,r){return e.apply(this,arguments)};case 3:return function(n,r,i){return e.apply(this,arguments)};case 4:return function(n,r,i,o){return e.apply(this,arguments)};case 5:return function(n,r,i,o,a){return e.apply(this,arguments)};case 6:return function(n,r,i,o,a,s){return e.apply(this,arguments)};case 7:return function(n,r,i,o,a,s,l){return e.apply(this,arguments)};case 8:return function(n,r,i,o,a,s,l,c){return e.apply(this,arguments)};case 9:return function(n,r,i,o,a,s,l,c,f){return e.apply(this,arguments)};case 10:return function(n,r,i,o,a,s,l,c,f,h){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function Ag(t,e,n){return function(){for(var r=[],i=0,o=t,a=0;a<e.length||i<arguments.length;){var s;a<e.length&&(!wt(e[a])||i>=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;o<t.length;){if(typeof i[t[o]]=="function")return i[t[o]].apply(i,r);o+=1}if(G$(i)){var a=e.apply(null,r);return a(i)}}return n.apply(this,arguments)}}const Tc={init:function(){return this.xf["@@transducer/init"]()},result:function(t){return this.xf["@@transducer/result"](t)}};var K$=it(function(e,n){return n>e?n:e});const X$=K$;function Kd(t,e){for(var n=0,r=e.length,i=Array(r);n<r;)i[n]=t(e[n]),n+=1;return i}function Dg(t){return Object.prototype.toString.call(t)==="[object String]"}var Q$=dt(function(e){return uf(e)?!0:!e||typeof e!="object"||Dg(e)?!1:e.nodeType===1?!!e.length:e.length===0?!0:e.length>0?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<i;){if(e=t["@@transducer/step"](e,n[r]),e&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}r+=1}return t["@@transducer/result"](e)}function uO(t,e,n){for(var r=n.next();!r.done;){if(e=t["@@transducer/step"](e,r.value),e&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}r=n.next()}return t["@@transducer/result"](e)}function cO(t,e,n,r){return t["@@transducer/result"](n[r](n7(t["@@transducer/step"],t),e))}var fO=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function Fl(t,e,n){if(typeof t=="function"&&(t=e7(t)),nL(n))return r7(t,e,n);if(typeof n["fantasy-land/reduce"]=="function")return cO(t,e,n,"fantasy-land/reduce");if(n[fO]!=null)return uO(t,e,n[fO]());if(typeof n.next=="function")return uO(t,e,n);if(typeof n.reduce=="function")return cO(t,e,n,"reduce");throw new TypeError("reduce: list must be array or iterable")}var i7=function(){function t(e,n){this.xf=n,this.f=e}return t.prototype["@@transducer/init"]=Tc.init,t.prototype["@@transducer/result"]=Tc.result,t.prototype["@@transducer/step"]=function(e,n){return this.xf["@@transducer/step"](e,this.f(n))},t}(),o7=it(function(e,n){return new i7(e,n)});const a7=o7;function cr(t,e){return Object.prototype.hasOwnProperty.call(e,t)}var dO=Object.prototype.toString,s7=function(){return dO.call(arguments)==="[object Arguments]"?function(e){return dO.call(e)==="[object Arguments]"}:function(e){return cr("callee",e)}}();const rL=s7;var l7=!{toString:null}.propertyIsEnumerable("toString"),hO=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],pO=function(){return arguments.propertyIsEnumerable("length")}(),u7=function(e,n){for(var r=0;r<e.length;){if(e[r]===n)return!0;r+=1}return!1},c7=dt(typeof Object.keys=="function"&&!pO?function(e){return Object(e)!==e?[]:Object.keys(e)}:function(e){if(Object(e)!==e)return[];var n,r,i=[],o=pO&&rL(e);for(n in e)cr(n,e)&&(!o||n!=="length")&&(i[i.length]=n);if(l7)for(r=hO.length-1;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;o<r.length;){if(i==null)return;a=r[o],i=p0(a)?iL(a,i):i[a],o+=1}return i})});const p7=h7;var m7=it(function(e,n){return p7([e],n)[0]});const g7=m7;var v7=it(function(e,n){return g7([e],n)});const que=v7;var y7=oa(Fl);const oL=y7;var _7=dt(function(e){return function(){return e}});const Zue=_7;var b7=it(function(e,n){return typeof n["fantasy-land/ap"]=="function"?n["fantasy-land/ap"](e):typeof e.ap=="function"?e.ap(n):typeof e=="function"?function(r){return e(r)(n(r))}:Fl(function(r,i){return q$(r,Xw(i,n))},[],e)});const w7=b7;var x7=dt(function(e){for(var n=Ka(e),r=n.length,i=[],o=0;o<r;)i[o]=e[n[o]],o+=1;return i});const Gue=x7;var S7=oa(function(e,n,r){var i={};for(var o in r)i[o]=r[o];return i[e]=n,i});const E7=S7;var O7=dt(function(e){return e==null});const P7=O7;var T7=oa(function t(e,n,r){if(e.length===0)return n;var i=e[0];if(e.length>1){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<l;){if(nL(n[s]))for(r=t?e(n[s]):n[s],o=0,i=r.length;o<i;)a[a.length]=r[o],o+=1;else a[a.length]=n[s];s+=1}return a}}function D7(t){return new RegExp(t.source,(t.global?"g":"")+(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.sticky?"y":"")+(t.unicode?"u":""))}var N7=dt(function(e){return e===null?"Null":e===void 0?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});const m0=N7;function aL(t,e,n,r){var i=function(a){for(var s=e.length,l=0;l<s;){if(t===e[l])return n[l];l+=1}e[l+1]=t,n[l+1]=a;for(var c in t)a[c]=r?aL(t[c],e,n,!0):t[c];return a};switch(m0(t)){case"Object":return i({});case"Array":return i([]);case"Date":return new Date(t.valueOf());case"RegExp":return D7(t);default:return t}}var I7=dt(function(e){return!e});const F7=I7;var $7=R7(F7);const Xue=$7;function j7(t,e){return function(){return e.call(this,t.apply(this,arguments))}}function Qw(t,e){return function(){var n=arguments.length;if(n===0)return e();var r=arguments[n-1];return uf(r)||typeof r[t]!="function"?e.apply(this,arguments):r[t].apply(r,Array.prototype.slice.call(arguments,0,n-1))}}var B7=oa(Qw("slice",function(e,n,r){return Array.prototype.slice.call(r,e,n)}));const sL=B7;var z7=dt(Qw("tail",sL(1,1/0)));const H7=z7;function Que(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return Il(arguments[0].length,oL(j7,arguments[0],H7(arguments)))}var U7=dt(function(e){return Dg(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()});const Jue=U7;function W7(t){return t}var V7=dt(W7);const ece=V7;function mO(t){for(var e=[],n;!(n=t.next()).done;)e.push(n.value);return e}function gO(t,e,n){for(var r=0,i=n.length;r<i;){if(t(e,n[r]))return!0;r+=1}return!1}function Y7(t){var e=String(t).match(/^function (\w*)/);return e==null?"":e[1]}function q7(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}const my=typeof Object.is=="function"?Object.is:q7;function vO(t,e,n,r){var i=mO(t),o=mO(e);function a(s,l){return Jw(s,l,n.slice(),r.slice())}return!gO(function(s,l){return!gO(a,l,s)},o,i)}function Jw(t,e,n,r){if(my(t,e))return!0;var i=m0(t);if(i!==m0(e)||t==null||e==null)return!1;if(typeof t["fantasy-land/equals"]=="function"||typeof e["fantasy-land/equals"]=="function")return typeof t["fantasy-land/equals"]=="function"&&t["fantasy-land/equals"](e)&&typeof e["fantasy-land/equals"]=="function"&&e["fantasy-land/equals"](t);if(typeof t.equals=="function"||typeof e.equals=="function")return typeof t.equals=="function"&&t.equals(e)&&typeof e.equals=="function"&&e.equals(t);switch(i){case"Arguments":case"Array":case"Object":if(typeof t.constructor=="function"&&Y7(t.constructor)==="Promise")return t===e;break;case"Boolean":case"Number":case"String":if(!(typeof t==typeof e&&my(t.valueOf(),e.valueOf())))return!1;break;case"Date":if(!my(t.valueOf(),e.valueOf()))return!1;break;case"Error":return t.name===e.name&&t.message===e.message;case"RegExp":if(!(t.source===e.source&&t.global===e.global&&t.ignoreCase===e.ignoreCase&&t.multiline===e.multiline&&t.sticky===e.sticky&&t.unicode===e.unicode))return!1;break}for(var o=n.length-1;o>=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<t.length;){if(i=t[n],i===0&&1/i===r)return n;n+=1}return-1}else if(e!==e){for(;n<t.length;){if(i=t[n],typeof i=="number"&&i!==i)return n;n+=1}return-1}return t.indexOf(e,n);case"string":case"boolean":case"function":case"undefined":return t.indexOf(e,n);case"object":if(e===null)return t.indexOf(e,n)}for(;n<t.length;){if(e2(t[n],e))return n;n+=1}return-1}function K7(t,e){return G7(e,t,0)>=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<r;)t(e[n])&&(i[i.length]=e[n]),n+=1;return i}function kp(t){return Object.prototype.toString.call(t)==="[object Object]"}var tj=function(){function t(e,n){this.xf=n,this.f=e}return t.prototype["@@transducer/init"]=Tc.init,t.prototype["@@transducer/result"]=Tc.result,t.prototype["@@transducer/step"]=function(e,n){return this.f(n)?this.xf["@@transducer/step"](e,n):e},t}(),nj=it(function(e,n){return new tj(e,n)});const rj=nj;var ij=it(Kw(["filter"],rj,function(t,e){return kp(e)?Fl(function(n,r){return t(e[r])&&(n[r]=e[r]),n},{},Ka(e)):ej(t,e)}));const oj=ij;var aj=it(function(e,n){return oj(J7(e),n)});const sj=aj;function lL(t,e){var n=function(a){var s=e.concat([t]);return K7(a,s)?"<Circular>":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;r<e.length;){if(e[r][0].apply(this,arguments))return e[r][1].apply(this,arguments);r+=1}})});const tce=cj;var fj=function(){function t(e,n,r,i){this.valueFn=e,this.valueAcc=n,this.keyFn=r,this.xf=i,this.inputs={}}return t.prototype["@@transducer/init"]=Tc.init,t.prototype["@@transducer/result"]=function(e){var n;for(n in this.inputs)if(cr(n,this.inputs)&&(e=this.xf["@@transducer/step"](e,this.inputs[n]),e["@@transducer/reduced"])){e=e["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,n){var r=this.keyFn(n);return this.inputs[r]=this.inputs[r]||[r,this.valueAcc],this.inputs[r][1]=this.valueFn(this.inputs[r][1],n),e},t}(),dj=Ag(4,[],function(e,n,r,i){return new fj(e,n,r,i)});const hj=dj;var pj=Ag(4,[],Kw([],hj,function(e,n,r,i){return Fl(function(o,a){var s=r(a);return o[s]=e(cr(s,o)?o[s]:aL(n,[],[],!1),a),o},{},i)}));const uL=pj;var mj=uL(function(t,e){return t+1},0);const nce=mj;var gj=it(function(e,n){var r={};for(var i in n)r[i]=n[i];return delete r[e],r});const rce=gj;var vj=iL(-1);const ice=vj;var yj=dt(function(e){return e!=null&&typeof e["fantasy-land/empty"]=="function"?e["fantasy-land/empty"]():e!=null&&e.constructor!=null&&typeof e.constructor["fantasy-land/empty"]=="function"?e.constructor["fantasy-land/empty"]():e!=null&&typeof e.empty=="function"?e.empty():e!=null&&e.constructor!=null&&typeof e.constructor.empty=="function"?e.constructor.empty():uf(e)?[]:Dg(e)?"":kp(e)?{}:rL(e)?function(){return arguments}():void 0});const _j=yj;var bj=dt(A7(!0));const oce=bj;var wj=dt(function(e){for(var n={},r=0;r<e.length;)n[e[r][0]]=e[r][1],r+=1;return n});const ace=wj;var xj=it(Qw("groupBy",uL(function(t,e){return t==null&&(t=[]),t.push(e),t},null)));const sce=xj;var Sj=it(function(e,n){return Cp(e+1,function(){var r=arguments[e];if(r!=null&&C7(r[n]))return r[n].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError(uj(r)+' does not have a method named "'+n+'"')})});const Ej=Sj;var Oj=dt(function(e){return e!=null&&e2(e,_j(e))});const lce=Oj;function yO(t){return Object.prototype.toString.call(t)==="[object Number]"}var Pj=it(function(e,n){var r={};return Il(n.length,function(){var i=e.apply(this,arguments);return cr(i,r)||(r[i]=n.apply(this,arguments)),r[i]})});const uce=Pj;var Tj=oa(function(e,n,r){var i={},o;for(o in n)cr(o,n)&&(i[o]=cr(o,r)?e(o,n[o],r[o]):n[o]);for(o in r)cr(o,r)&&!cr(o,i)&&(i[o]=r[o]);return i});const Cj=Tj;var kj=oa(function t(e,n,r){return Cj(function(i,o,a){return kp(o)&&kp(a)?t(e,o,a):e(i,o,a)},n,r)});const Mj=kj;var Lj=it(function(e,n){return Mj(function(r,i,o){return o},e,n)});const cce=Lj;var Rj=it(function(e,n){return n<e?n:e});const fce=Rj;var Aj=it(function(e,n){for(var r={},i={},o=0,a=e.length;o<a;)i[e[o]]=1,o+=1;for(var s in n)i.hasOwnProperty(s)||(r[s]=n[s]);return r});const dce=Aj;var Dj=it(function(e,n){for(var r={},i=0;i<e.length;)e[i]in n&&(r[e[i]]=n[e[i]]),i+=1;return r});const hce=Dj;var Nj=oa(function(e,n,r){return e2(n,r[e])});const pce=Nj;var Ij=it(function(e,n){if(!(yO(e)&&yO(n)))throw new TypeError("Both arguments to range must be numbers");for(var r=[],i=e;i<n;)r.push(i),i+=1;return r});const mce=Ij;var Fj=oa(function(e,n,r){return r.replace(e,n)});const gce=Fj;var $j=it(function(e,n){return Array.prototype.slice.call(n,0).sort(function(r,i){var o=e(r),a=e(i);return o<a?-1:o>a?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<n.length;)r.push(sL(i,i+=e,n));return r});const yce=jj;var Bj=Ej(0,"toLowerCase");const _ce=Bj;var zj=dt(function(e){var n=[];for(var r in e)cr(r,e)&&(n[n.length]=[r,e[r]]);return n});const bce=zj;var fu=`
|
||
\v\f\r \u2028\u2029\uFEFF`,Hj="",Uj=typeof String.prototype.trim=="function",Wj=dt(!Uj||fu.trim()||!Hj.trim()?function(e){var n=new RegExp("^["+fu+"]["+fu+"]*"),r=new RegExp("["+fu+"]["+fu+"]*$");return e.replace(n,"").replace(r,"")}:function(e){return e.trim()});const wce=Wj;var Vj=it(function(e,n){for(var r=0,i=Math.min(e.length,n.length),o={};r<i;)o[e[r]]=n[r],r+=1;return o});const xce=Vj;var Yj=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var i=42;e[n]=i;for(n in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var o=Object.getOwnPropertySymbols(e);if(o.length!==1||o[0]!==n||!Object.prototype.propertyIsEnumerable.call(e,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,n);if(a.value!==i||a.enumerable!==!0)return!1}return!0},_O=typeof Symbol<"u"&&Symbol,qj=Yj,Zj=function(){return typeof _O!="function"||typeof Symbol!="function"||typeof _O("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:qj()},Gj="Function.prototype.bind called on incompatible ",vy=Array.prototype.slice,Kj=Object.prototype.toString,Xj="[object Function]",Qj=function(e){var n=this;if(typeof n!="function"||Kj.call(n)!==Xj)throw new TypeError(Gj+n);for(var r=vy.call(arguments,1),i,o=function(){if(this instanceof i){var f=n.apply(this,r.concat(vy.call(arguments)));return Object(f)===f?f:this}else return n.apply(e,r.concat(vy.call(arguments)))},a=Math.max(0,n.length-r.length),s=[],l=0;l<a;l++)s.push("$"+l);if(i=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")(o),n.prototype){var c=function(){};c.prototype=n.prototype,i.prototype=new c,c.prototype=null}return i},Jj=Qj,t2=Function.prototype.bind||Jj,eB=t2,tB=eB.call(Function.call,Object.prototype.hasOwnProperty),rt,Cc=SyntaxError,cL=Function,tl=TypeError,yy=function(t){try{return cL('"use strict"; return ('+t+").constructor;")()}catch{}},$a=Object.getOwnPropertyDescriptor;if($a)try{$a({},"")}catch{$a=null}var _y=function(){throw new tl},nB=$a?function(){try{return arguments.callee,_y}catch{try{return $a(arguments,"callee").get}catch{return _y}}}():_y,ws=Zj(),mo=Object.getPrototypeOf||function(t){return t.__proto__},ks={},rB=typeof Uint8Array>"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;f+=1){var p=r[f],m=Lp(p,0,1),v=Lp(p,-1);if((m==='"'||m==="'"||m==="`"||v==='"'||v==="'"||v==="`")&&m!==v)throw new Cc("property names with quotes must have matching quotes");if((p==="constructor"||!h)&&(l=!0),i+="."+p,a="%"+i+"%",Mp(nl,a))s=nl[a];else if(s!=null){if(!(p in s)){if(!n)throw new tl("base intrinsic for "+e+" exists, but the property is not available.");return}if($a&&f+1>=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+="</"+SO.call(String(e.nodeName))+">",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;n<r;n++)if(t[n]===e)return n;return-1}function jB(t){if(!Rp||!t||typeof t!="object")return!1;try{Rp.call(t);try{Ap.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function BB(t){if(!Vu||!t||typeof t!="object")return!1;try{Vu.call(t,Vu);try{Yu.call(t,Yu)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function zB(t){if(!xO||!t||typeof t!="object")return!1;try{return xO.call(t),!0}catch{}return!1}function HB(t){if(!Ap||!t||typeof t!="object")return!1;try{Ap.call(t);try{Rp.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function UB(t){if(!Yu||!t||typeof t!="object")return!1;try{Yu.call(t,Yu);try{Vu.call(t,Vu)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function WB(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function yL(t,e){if(t.length>e.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<t.length;e++)if(vL(t[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;i<t.length;i++)r[i]=go(t,i)?e(t[i],t):""}var o=typeof xy=="function"?xy(t):[],a;if(vl){a={};for(var s=0;s<o.length;s++)a["$"+o[s]]=o[s]}for(var l in t)go(t,l)&&(n&&String(Number(l))===l&&l<t.length||vl&&a["$"+l]instanceof Symbol||(hL.call(/[^\w$]/,l)?r.push(e(l,t)+": "+e(t[l],t)):r.push(l+": "+e(t[l],t))));if(typeof xy=="function")for(var c=0;c<o.length;c++)pL.call(t,o[c])&&r.push("["+e(o[c])+"]: "+e(t[o[c]],t));return r}var a2=n2,$l=hB,ZB=CB,GB=a2("%TypeError%"),sd=a2("%WeakMap%",!0),ld=a2("%Map%",!0),KB=$l("WeakMap.prototype.get",!0),XB=$l("WeakMap.prototype.set",!0),QB=$l("WeakMap.prototype.has",!0),JB=$l("Map.prototype.get",!0),e9=$l("Map.prototype.set",!0),t9=$l("Map.prototype.has",!0),s2=function(t,e){for(var n=t,r;(r=n.next)!==null;n=r)if(r.key===e)return n.next=r.next,r.next=t.next,t.next=r,r},n9=function(t,e){var n=s2(t,e);return n&&n.value},r9=function(t,e,n){var r=s2(t,e);r?r.value=n:t.next={key:e,next:t.next,value:n}},i9=function(t,e){return!!s2(t,e)},o9=function(){var e,n,r,i={assert:function(o){if(!i.has(o))throw new GB("Side channel does not contain "+ZB(o))},get:function(o){if(sd&&o&&(typeof o=="object"||typeof o=="function")){if(e)return KB(e,o)}else if(ld){if(n)return JB(n,o)}else if(r)return n9(r,o)},has:function(o){if(sd&&o&&(typeof o=="object"||typeof o=="function")){if(e)return QB(e,o)}else if(ld){if(n)return t9(n,o)}else if(r)return i9(r,o);return!1},set:function(o,a){sd&&o&&(typeof o=="object"||typeof o=="function")?(e||(e=new sd),XB(e,o,a)):ld?(n||(n=new ld),e9(n,o,a)):(r||(r={key:{},next:null}),r9(r,o,a))}};return i},a9=String.prototype.replace,s9=/%20/g,Py={RFC1738:"RFC1738",RFC3986:"RFC3986"},l2={default:Py.RFC3986,formatters:{RFC1738:function(t){return a9.call(t,s9,"+")},RFC3986:function(t){return String(t)}},RFC1738:Py.RFC1738,RFC3986:Py.RFC3986},l9=l2,Ty=Object.prototype.hasOwnProperty,Ca=Array.isArray,oi=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),u9=function(e){for(;e.length>1;){var n=e.pop(),r=n.obj[n.prop];if(Ca(r)){for(var i=[],o=0;o<r.length;++o)typeof r[o]<"u"&&i.push(r[o]);n.obj[n.prop]=i}}},_L=function(e,n){for(var r=n&&n.plainObjects?Object.create(null):{},i=0;i<e.length;++i)typeof e[i]<"u"&&(r[i]=e[i]);return r},c9=function t(e,n,r){if(!n)return e;if(typeof n!="object"){if(Ca(e))e.push(n);else if(e&&typeof e=="object")(r&&(r.plainObjects||r.allowPrototypes)||!Ty.call(Object.prototype,n))&&(e[n]=!0);else return[e,n];return e}if(!e||typeof e!="object")return[e].concat(n);var i=e;return Ca(e)&&!Ca(n)&&(i=_L(e,r)),Ca(e)&&Ca(n)?(n.forEach(function(o,a){if(Ty.call(e,a)){var s=e[a];s&&typeof s=="object"&&o&&typeof o=="object"?e[a]=t(s,o,r):e.push(o)}else e[a]=o}),e):Object.keys(n).reduce(function(o,a){var s=n[a];return Ty.call(o,a)?o[a]=t(o[a],s,r):o[a]=s,o},i)},f9=function(e,n){return Object.keys(n).reduce(function(r,i){return r[i]=n[i],r},e)},d9=function(t,e,n){var r=t.replace(/\+/g," ");if(n==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},h9=function(e,n,r,i,o){if(e.length===0)return e;var a=e;if(typeof e=="symbol"?a=Symbol.prototype.toString.call(e):typeof e!="string"&&(a=String(e)),r==="iso-8859-1")return escape(a).replace(/%u[0-9a-f]{4}/gi,function(f){return"%26%23"+parseInt(f.slice(2),16)+"%3B"});for(var s="",l=0;l<a.length;++l){var c=a.charCodeAt(l);if(c===45||c===46||c===95||c===126||c>=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<n.length;++i)for(var o=n[i],a=o.obj[o.prop],s=Object.keys(a),l=0;l<s.length;++l){var c=s[l],f=a[c];typeof f=="object"&&f!==null&&r.indexOf(f)===-1&&(n.push({obj:a,prop:c}),r.push(f))}return u9(n),e},m9=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},g9=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},v9=function(e,n){return[].concat(e,n)},y9=function(e,n){if(Ca(e)){for(var r=[],i=0;i<e.length;i+=1)r.push(n(e[i]));return r}return n(e)},bL={arrayToObject:_L,assign:f9,combine:v9,compact:p9,decode:d9,encode:h9,isBuffer:g9,isRegExp:m9,maybeMap:y9,merge:c9},wL=o9,w0=bL,qu=l2,_9=Object.prototype.hasOwnProperty,kO={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,n){return e+"["+n+"]"},repeat:function(e){return e}},Ai=Array.isArray,b9=String.prototype.split,w9=Array.prototype.push,xL=function(t,e){w9.apply(t,Ai(e)?e:[e])},x9=Date.prototype.toISOString,MO=qu.default,Pn={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:w0.encode,encodeValuesOnly:!1,format:MO,formatter:qu.formatters[MO],indices:!1,serializeDate:function(e){return x9.call(e)},skipNulls:!1,strictNullHandling:!1},S9=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},Cy={},E9=function t(e,n,r,i,o,a,s,l,c,f,h,p,m,v,y,w){for(var _=e,b=w,S=0,O=!1;(b=b.get(Cy))!==void 0&&!O;){var M=b.get(e);if(S+=1,typeof M<"u"){if(M===S)throw new RangeError("Cyclic object value");O=!0}typeof b.get(Cy)>"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<R.length;++U)$+=(U===0?"":",")+m(s(R[U],Pn.encoder,y,"value",p));return[m(C)+(i&&Ai(_)&&R.length===1?"[]":"")+"="+$]}return[m(C)+"="+m(s(_,Pn.encoder,y,"value",p))]}return[m(n)+"="+m(String(_))]}var I=[];if(typeof _>"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<H.length;++Y){var X=H[Y],re=typeof X=="object"&&typeof X.value<"u"?X.value:_[X];if(!(a&&re===null)){var se=Ai(_)?typeof r=="function"?r(J,X):J:J+(f?"."+X:"["+X+"]");w.set(e,S);var V=wL();V.set(Cy,w),xL(I,t(re,se,r,i,o,a,s,l,c,f,h,p,m,v,y,V))}}return I},O9=function(e){if(!e)return Pn;if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var n=e.charset||Pn.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=qu.default;if(typeof e.format<"u"){if(!_9.call(qu.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var i=qu.formatters[r],o=Pn.filter;return(typeof e.filter=="function"||Ai(e.filter))&&(o=e.filter),{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:Pn.addQueryPrefix,allowDots:typeof e.allowDots>"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;h<i.length;++h){var p=i[h];r.skipNulls&&n[p]===null||xL(a,E9(n[p],p,l,c,r.strictNullHandling,r.skipNulls,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,f))}var m=a.join(r.delimiter),v=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),m.length>0?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<a.length;++l)a[l].indexOf("utf8=")===0&&(a[l]===M9?c="utf-8":a[l]===k9&&(c="iso-8859-1"),s=l,l=a.length);for(l=0;l<a.length;++l)if(l!==s){var f=a[l],h=f.indexOf("]="),p=h===-1?f.indexOf("="):h+1,m,v;p===-1?(m=n.decoder(f,fn.decoder,c,"key"),v=n.strictNullHandling?null:""):(m=n.decoder(f.slice(0,p),fn.decoder,c,"key"),v=yl.maybeMap(SL(f.slice(p+1),n),function(y){return n.decoder(y,fn.decoder,c,"value")})),v&&n.interpretNumericEntities&&c==="iso-8859-1"&&(v=C9(v)),f.indexOf("[]=")>-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<r.depth;){if(h+=1,!r.plainObjects&&x0.call(Object.prototype,l[1].slice(1,-1))&&!r.allowPrototypes)return;f.push(l[1])}return l&&f.push("["+o.slice(l.index)+"]"),R9(f,n,r,i)}},D9=function(e){if(!e)return fn;if(e.decoder!==null&&e.decoder!==void 0&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=typeof e.charset>"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;a<o.length;++a){var s=o[a],l=A9(s,r[s],n,typeof t=="string");i=yl.merge(i,l,n)}return n.allowSparse===!0?i:yl.compact(i)},I9=P9,F9=N9,$9=l2,Sce={formats:$9,parse:F9,stringify:I9},j9={prefix:"fas",iconName:"calendar-days",icon:[448,512,["calendar-alt"],"f073","M128 0c17.7 0 32 14.3 32 32V64H288V32c0-17.7 14.3-32 32-32s32 14.3 32 32V64h48c26.5 0 48 21.5 48 48v48H0V112C0 85.5 21.5 64 48 64H96V32c0-17.7 14.3-32 32-32zM0 192H448V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V192zm64 80v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V272c0-8.8-7.2-16-16-16H80c-8.8 0-16 7.2-16 16zm128 0v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V272c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V272c0-8.8-7.2-16-16-16H336zM64 400v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V400c0-8.8-7.2-16-16-16H80c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V400c0-8.8-7.2-16-16-16H208zm112 16v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V400c0-8.8-7.2-16-16-16H336c-8.8 0-16 7.2-16 16z"]},Ece=j9,B9={prefix:"fas",iconName:"circle-minus",icon:[512,512,["minus-circle"],"f056","M256 512c141.4 0 256-114.6 256-256S397.4 0 256 0S0 114.6 0 256S114.6 512 256 512zM184 232H328c13.3 0 24 10.7 24 24s-10.7 24-24 24H184c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]},Oce=B9,Pce={prefix:"fas",iconName:"file-csv",icon:[384,512,[],"f6dd","M64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V160H256c-17.7 0-32-14.3-32-32V0H64zM256 0V128H384L256 0zM80 224H96c22.1 0 40 17.9 40 40v8c0 8.8-7.2 16-16 16s-16-7.2-16-16v-8c0-4.4-3.6-8-8-8H80c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8H96c4.4 0 8-3.6 8-8v-8c0-8.8 7.2-16 16-16s16 7.2 16 16v8c0 22.1-17.9 40-40 40H80c-22.1 0-40-17.9-40-40V264c0-22.1 17.9-40 40-40zm72 46.4c0-25.6 20.8-46.4 46.4-46.4H216c8.8 0 16 7.2 16 16s-7.2 16-16 16H198.4c-7.9 0-14.4 6.4-14.4 14.4c0 5.2 2.8 9.9 7.2 12.5l25.4 14.5c14.4 8.3 23.4 23.6 23.4 40.3c0 25.6-20.8 46.4-46.4 46.4H168c-8.8 0-16-7.2-16-16s7.2-16 16-16h25.6c7.9 0 14.4-6.4 14.4-14.4c0-5.2-2.8-9.9-7.2-12.5l-25.4-14.5C160.9 302.4 152 287 152 270.4zM280 240v31.6c0 23 5.5 45.6 16 66c10.5-20.3 16-42.9 16-66V240c0-8.8 7.2-16 16-16s16 7.2 16 16v31.6c0 34.7-10.3 68.7-29.6 97.6l-5.1 7.7c-3 4.5-8 7.1-13.3 7.1s-10.3-2.7-13.3-7.1l-5.1-7.7c-19.3-28.9-29.6-62.9-29.6-97.6V240c0-8.8 7.2-16 16-16s16 7.2 16 16z"]},z9={prefix:"fas",iconName:"pencil",icon:[512,512,[9999,61504,"pencil-alt"],"f303","M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1v32c0 8.8 7.2 16 16 16h32zM362.7 18.7L348.3 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z"]},Tce=z9,Cce={prefix:"fas",iconName:"circle-notch",icon:[512,512,[],"f1ce","M222.7 32.1c5 16.9-4.6 34.8-21.5 39.8C121.8 95.6 64 169.1 64 256c0 106 86 192 192 192s192-86 192-192c0-86.9-57.8-160.4-137.1-184.1c-16.9-5-26.6-22.9-21.5-39.8s22.9-26.6 39.8-21.5C434.9 42.1 512 140 512 256c0 141.4-114.6 256-256 256S0 397.4 0 256C0 140 77.1 42.1 182.9 10.6c16.9-5 34.8 4.6 39.8 21.5z"]},kce={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z"]},Mce={prefix:"fas",iconName:"list",icon:[512,512,["list-squares"],"f03a","M40 48C26.7 48 16 58.7 16 72v48c0 13.3 10.7 24 24 24H88c13.3 0 24-10.7 24-24V72c0-13.3-10.7-24-24-24H40zM192 64c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zM16 232v48c0 13.3 10.7 24 24 24H88c13.3 0 24-10.7 24-24V232c0-13.3-10.7-24-24-24H40c-13.3 0-24 10.7-24 24zM40 368c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24H88c13.3 0 24-10.7 24-24V392c0-13.3-10.7-24-24-24H40z"]},H9={prefix:"fas",iconName:"circle-dot",icon:[512,512,[128280,"dot-circle"],"f192","M256 512c141.4 0 256-114.6 256-256S397.4 0 256 0S0 114.6 0 256S114.6 512 256 512zm0-160c-53 0-96-43-96-96s43-96 96-96s96 43 96 96s-43 96-96 96z"]},Lce=H9,U9={prefix:"fas",iconName:"pen-to-square",icon:[512,512,["edit"],"f044","M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.8 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160V416c0 53 43 96 96 96H352c53 0 96-43 96-96V320c0-17.7-14.3-32-32-32s-32 14.3-32 32v96c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H96z"]},Rce=U9,Ace={prefix:"fas",iconName:"plug",icon:[384,512,[128268],"f1e6","M96 0C78.3 0 64 14.3 64 32v96h64V32c0-17.7-14.3-32-32-32zM288 0c-17.7 0-32 14.3-32 32v96h64V32c0-17.7-14.3-32-32-32zM32 160c-17.7 0-32 14.3-32 32s14.3 32 32 32v32c0 77.4 55 142 128 156.8V480c0 17.7 14.3 32 32 32s32-14.3 32-32V412.8C297 398 352 333.4 352 256V224c17.7 0 32-14.3 32-32s-14.3-32-32-32H32z"]},Dce={prefix:"fas",iconName:"globe",icon:[512,512,[127760],"f0ac","M352 256c0 22.2-1.2 43.6-3.3 64H163.3c-2.2-20.4-3.3-41.8-3.3-64s1.2-43.6 3.3-64H348.7c2.2 20.4 3.3 41.8 3.3 64zm28.8-64H503.9c5.3 20.5 8.1 41.9 8.1 64s-2.8 43.5-8.1 64H380.8c2.1-20.6 3.2-42 3.2-64s-1.1-43.4-3.2-64zm112.6-32H376.7c-10-63.9-29.8-117.4-55.3-151.6c78.3 20.7 142 77.5 171.9 151.6zm-149.1 0H167.7c6.1-36.4 15.5-68.6 27-94.7c10.5-23.6 22.2-40.7 33.5-51.5C239.4 3.2 248.7 0 256 0s16.6 3.2 27.8 13.8c11.3 10.8 23 27.9 33.5 51.5c11.6 26 21 58.2 27 94.7zm-209 0H18.6C48.6 85.9 112.2 29.1 190.6 8.4C165.1 42.6 145.3 96.1 135.3 160zM8.1 192H131.2c-2.1 20.6-3.2 42-3.2 64s1.1 43.4 3.2 64H8.1C2.8 299.5 0 278.1 0 256s2.8-43.5 8.1-64zM194.7 446.6c-11.6-26-20.9-58.2-27-94.6H344.3c-6.1 36.4-15.5 68.6-27 94.6c-10.5 23.6-22.2 40.7-33.5 51.5C272.6 508.8 263.3 512 256 512s-16.6-3.2-27.8-13.8c-11.3-10.8-23-27.9-33.5-51.5zM135.3 352c10 63.9 29.8 117.4 55.3 151.6C112.2 482.9 48.6 426.1 18.6 352H135.3zm358.1 0c-30 74.1-93.6 130.9-171.9 151.6c25.5-34.2 45.2-87.7 55.3-151.6H493.4z"]},Nce={prefix:"fas",iconName:"ban",icon:[512,512,[128683,"cancel"],"f05e","M367.2 412.5L99.5 144.8C77.1 176.1 64 214.5 64 256c0 106 86 192 192 192c41.5 0 79.9-13.1 111.2-35.5zm45.3-45.3C434.9 335.9 448 297.5 448 256c0-106-86-192-192-192c-41.5 0-79.9 13.1-111.2 35.5L412.5 367.2zM512 256c0 141.4-114.6 256-256 256S0 397.4 0 256S114.6 0 256 0S512 114.6 512 256z"]},Ice={prefix:"fas",iconName:"server",icon:[512,512,[],"f233","M64 32C28.7 32 0 60.7 0 96v64c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zM344 152c-13.3 0-24-10.7-24-24s10.7-24 24-24s24 10.7 24 24s-10.7 24-24 24zm96-24c0 13.3-10.7 24-24 24s-24-10.7-24-24s10.7-24 24-24s24 10.7 24 24zM64 288c-35.3 0-64 28.7-64 64v64c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V352c0-35.3-28.7-64-64-64H64zM344 408c-13.3 0-24-10.7-24-24s10.7-24 24-24s24 10.7 24 24s-10.7 24-24 24zm104-24c0 13.3-10.7 24-24 24s-24-10.7-24-24s10.7-24 24-24s24 10.7 24 24z"]},W9={prefix:"fas",iconName:"file-arrow-up",icon:[384,512,["file-upload"],"f574","M64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V160H256c-17.7 0-32-14.3-32-32V0H64zM256 0V128H384L256 0zM216 408c0 13.3-10.7 24-24 24s-24-10.7-24-24V305.9l-31 31c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l72-72c9.4-9.4 24.6-9.4 33.9 0l72 72c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-31-31V408z"]},Fce=W9,V9={prefix:"fas",iconName:"map-location-dot",icon:[576,512,["map-marked-alt"],"f5a0","M408 120c0 54.6-73.1 151.9-105.2 192c-7.7 9.6-22 9.6-29.6 0C241.1 271.9 168 174.6 168 120C168 53.7 221.7 0 288 0s120 53.7 120 120zm8 80.4c3.5-6.9 6.7-13.8 9.6-20.6c.5-1.2 1-2.5 1.5-3.7l116-46.4C558.9 123.4 576 135 576 152V422.8c0 9.8-6 18.6-15.1 22.3L416 503V200.4zM137.6 138.3c2.4 14.1 7.2 28.3 12.8 41.5c2.9 6.8 6.1 13.7 9.6 20.6V451.8L32.9 502.7C17.1 509 0 497.4 0 480.4V209.6c0-9.8 6-18.6 15.1-22.3l122.6-49zM327.8 332c13.9-17.4 35.7-45.7 56.2-77V504.3L192 449.4V255c20.5 31.3 42.3 59.6 56.2 77c20.5 25.6 59.1 25.6 79.6 0zM288 152c22.1 0 40-17.9 40-40s-17.9-40-40-40s-40 17.9-40 40s17.9 40 40 40z"]},$ce=V9,jce={prefix:"fas",iconName:"caret-up",icon:[320,512,[],"f0d8","M182.6 137.4c-12.5-12.5-32.8-12.5-45.3 0l-128 128c-9.2 9.2-11.9 22.9-6.9 34.9s16.6 19.8 29.6 19.8H288c12.9 0 24.6-7.8 29.6-19.8s2.2-25.7-6.9-34.9l-128-128z"]},Bce={prefix:"fas",iconName:"palette",icon:[512,512,[127912],"f53f","M512 256c0 .9 0 1.8 0 2.7c-.4 36.5-33.6 61.3-70.1 61.3H344c-26.5 0-48 21.5-48 48c0 3.4 .4 6.7 1 9.9c2.1 10.2 6.5 20 10.8 29.9c6.1 13.8 12.1 27.5 12.1 42c0 31.8-21.6 60.7-53.4 62c-3.5 .1-7 .2-10.6 .2C114.6 512 0 397.4 0 256S114.6 0 256 0S512 114.6 512 256zM128 288c0-17.7-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32s32-14.3 32-32zm0-96c17.7 0 32-14.3 32-32s-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32zM288 96c0-17.7-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32s32-14.3 32-32zm96 96c17.7 0 32-14.3 32-32s-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32z"]},Y9={prefix:"fas",iconName:"arrow-down-wide-short",icon:[576,512,["sort-amount-asc","sort-amount-down"],"f160","M151.6 469.6C145.5 476.2 137 480 128 480s-17.5-3.8-23.6-10.4l-88-96c-11.9-13-11.1-33.3 2-45.2s33.3-11.1 45.2 2L96 365.7V64c0-17.7 14.3-32 32-32s32 14.3 32 32V365.7l32.4-35.4c11.9-13 32.2-13.9 45.2-2s13.9 32.2 2 45.2l-88 96zM320 480c-17.7 0-32-14.3-32-32s14.3-32 32-32h32c17.7 0 32 14.3 32 32s-14.3 32-32 32H320zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H320zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H320zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32H544c17.7 0 32 14.3 32 32s-14.3 32-32 32H320z"]},zce=Y9,Hce={prefix:"fas",iconName:"chart-pie",icon:[576,512,["pie-chart"],"f200","M304 240V16.6c0-9 7-16.6 16-16.6C443.7 0 544 100.3 544 224c0 9-7.6 16-16.6 16H304zM32 272C32 150.7 122.1 50.3 239 34.3c9.2-1.3 17 6.1 17 15.4V288L412.5 444.5c6.7 6.7 6.2 17.7-1.5 23.1C371.8 495.6 323.8 512 272 512C139.5 512 32 404.6 32 272zm526.4 16c9.3 0 16.6 7.8 15.4 17c-7.7 55.9-34.6 105.6-73.9 142.3c-6 5.6-15.4 5.2-21.2-.7L320 288H558.4z"]},Uce={prefix:"fas",iconName:"tags",icon:[512,512,[],"f02c","M345 39.1L472.8 168.4c52.4 53 52.4 138.2 0 191.2L360.8 472.9c-9.3 9.4-24.5 9.5-33.9 .2s-9.5-24.5-.2-33.9L438.6 325.9c33.9-34.3 33.9-89.4 0-123.7L310.9 72.9c-9.3-9.4-9.2-24.6 .2-33.9s24.6-9.2 33.9 .2zM0 229.5V80C0 53.5 21.5 32 48 32H197.5c17 0 33.3 6.7 45.3 18.7l168 168c25 25 25 65.5 0 90.5L277.3 442.7c-25 25-65.5 25-90.5 0l-168-168C6.7 262.7 0 246.5 0 229.5zM144 144c0-17.7-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32s32-14.3 32-32z"]},Wce={prefix:"fas",iconName:"pen",icon:[512,512,[128394],"f304","M362.7 19.3L314.3 67.7 444.3 197.7l48.4-48.4c25-25 25-65.5 0-90.5L453.3 19.3c-25-25-65.5-25-90.5 0zm-71 71L58.6 323.5c-10.4 10.4-18 23.3-22.2 37.4L1 481.2C-1.5 489.7 .8 498.8 7 505s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L421.7 220.3 291.7 90.3z"]},Vce={prefix:"fas",iconName:"calendar-xmark",icon:[448,512,["calendar-times"],"f273","M128 0c17.7 0 32 14.3 32 32V64H288V32c0-17.7 14.3-32 32-32s32 14.3 32 32V64h48c26.5 0 48 21.5 48 48v48H0V112C0 85.5 21.5 64 48 64H96V32c0-17.7 14.3-32 32-32zM0 192H448V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V192zM305 305c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-47 47-47-47c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l47 47-47 47c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l47-47 47 47c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-47-47 47-47z"]},Yce={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M135.2 17.7L128 32H32C14.3 32 0 46.3 0 64S14.3 96 32 96H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H320l-7.2-14.3C307.4 6.8 296.3 0 284.2 0H163.8c-12.1 0-23.2 6.8-28.6 17.7zM416 128H32L53.2 467c1.6 25.3 22.6 45 47.9 45H346.9c25.3 0 46.3-19.7 47.9-45L416 128z"]},qce={prefix:"fas",iconName:"arrow-left",icon:[448,512,[8592],"f060","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.2 288 416 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"]},q9={prefix:"fas",iconName:"up-right-from-square",icon:[512,512,["external-link-alt"],"f35d","M352 0c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9L370.7 96 201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L416 141.3l41.4 41.4c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6V32c0-17.7-14.3-32-32-32H352zM80 32C35.8 32 0 67.8 0 112V432c0 44.2 35.8 80 80 80H400c44.2 0 80-35.8 80-80V320c0-17.7-14.3-32-32-32s-32 14.3-32 32V432c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16H192c17.7 0 32-14.3 32-32s-14.3-32-32-32H80z"]},Zce=q9,Gce={prefix:"fas",iconName:"tag",icon:[448,512,[127991],"f02b","M0 80V229.5c0 17 6.7 33.3 18.7 45.3l176 176c25 25 65.5 25 90.5 0L418.7 317.3c25-25 25-65.5 0-90.5l-176-176c-12-12-28.3-18.7-45.3-18.7H48C21.5 32 0 53.5 0 80zm112 96c-17.7 0-32-14.3-32-32s14.3-32 32-32s32 14.3 32 32s-14.3 32-32 32z"]},Z9={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512c141.4 0 256-114.6 256-256S397.4 0 256 0S0 114.6 0 256S114.6 512 256 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-144c-17.7 0-32-14.3-32-32s14.3-32 32-32s32 14.3 32 32s-14.3 32-32 32z"]},Kce=Z9,G9={prefix:"fas",iconName:"arrow-rotate-left",icon:[512,512,[8634,"arrow-left-rotate","arrow-rotate-back","arrow-rotate-backward","undo"],"f0e2","M125.7 160H176c17.7 0 32 14.3 32 32s-14.3 32-32 32H48c-17.7 0-32-14.3-32-32V64c0-17.7 14.3-32 32-32s32 14.3 32 32v51.2L97.6 97.6c87.5-87.5 229.3-87.5 316.8 0s87.5 229.3 0 316.8s-229.3 87.5-316.8 0c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0c62.5 62.5 163.8 62.5 226.3 0s62.5-163.8 0-226.3s-163.8-62.5-226.3 0L125.7 160z"]},Xce=G9,Qce={prefix:"fas",iconName:"caret-down",icon:[320,512,[],"f0d7","M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z"]},K9={prefix:"fas",iconName:"ellipsis-vertical",icon:[128,512,["ellipsis-v"],"f142","M64 360c30.9 0 56 25.1 56 56s-25.1 56-56 56s-56-25.1-56-56s25.1-56 56-56zm0-160c30.9 0 56 25.1 56 56s-25.1 56-56 56s-56-25.1-56-56s25.1-56 56-56zM120 96c0 30.9-25.1 56-56 56S8 126.9 8 96S33.1 40 64 40s56 25.1 56 56z"]},Jce=K9,X9={prefix:"fas",iconName:"house",icon:[576,512,[127968,63498,63500,"home","home-alt","home-lg-alt"],"f015","M575.8 255.5c0 18-15 32.1-32 32.1h-32l.7 160.2c0 2.7-.2 5.4-.5 8.1V472c0 22.1-17.9 40-40 40H456c-1.1 0-2.2 0-3.3-.1c-1.4 .1-2.8 .1-4.2 .1H416 392c-22.1 0-40-17.9-40-40V448 384c0-17.7-14.3-32-32-32H256c-17.7 0-32 14.3-32 32v64 24c0 22.1-17.9 40-40 40H160 128.1c-1.5 0-3-.1-4.5-.2c-1.2 .1-2.4 .2-3.6 .2H104c-22.1 0-40-17.9-40-40V360c0-.9 0-1.9 .1-2.8V287.6H32c-18 0-32-14-32-32.1c0-9 3-17 10-24L266.4 8c7-7 15-8 22-8s15 2 21 7L564.8 231.5c8 7 12 15 11 24z"]},efe=X9,Q9={prefix:"fas",iconName:"arrow-up-wide-short",icon:[576,512,["sort-amount-up"],"f161","M151.6 42.4C145.5 35.8 137 32 128 32s-17.5 3.8-23.6 10.4l-88 96c-11.9 13-11.1 33.3 2 45.2s33.3 11.1 45.2-2L96 146.3V448c0 17.7 14.3 32 32 32s32-14.3 32-32V146.3l32.4 35.4c11.9 13 32.2 13.9 45.2 2s13.9-32.2 2-45.2l-88-96zM320 480h32c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32s14.3 32 32 32zm0-128h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32s14.3 32 32 32zm0-128H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32s14.3 32 32 32zm0-128H544c17.7 0 32-14.3 32-32s-14.3-32-32-32H320c-17.7 0-32 14.3-32 32s14.3 32 32 32z"]},tfe=Q9,J9={prefix:"fas",iconName:"file-arrow-down",icon:[384,512,["file-download"],"f56d","M64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V160H256c-17.7 0-32-14.3-32-32V0H64zM256 0V128H384L256 0zM216 232V334.1l31-31c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-72 72c-9.4 9.4-24.6 9.4-33.9 0l-72-72c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l31 31V232c0-13.3 10.7-24 24-24s24 10.7 24 24z"]},nfe=J9,rfe={prefix:"fas",iconName:"sun",icon:[512,512,[9728],"f185","M361.5 1.2c5 2.1 8.6 6.6 9.6 11.9L391 121l107.9 19.8c5.3 1 9.8 4.6 11.9 9.6s1.5 10.7-1.6 15.2L446.9 256l62.3 90.3c3.1 4.5 3.7 10.2 1.6 15.2s-6.6 8.6-11.9 9.6L391 391 371.1 498.9c-1 5.3-4.6 9.8-9.6 11.9s-10.7 1.5-15.2-1.6L256 446.9l-90.3 62.3c-4.5 3.1-10.2 3.7-15.2 1.6s-8.6-6.6-9.6-11.9L121 391 13.1 371.1c-5.3-1-9.8-4.6-11.9-9.6s-1.5-10.7 1.6-15.2L65.1 256 2.8 165.7c-3.1-4.5-3.7-10.2-1.6-15.2s6.6-8.6 11.9-9.6L121 121 140.9 13.1c1-5.3 4.6-9.8 9.6-11.9s10.7-1.5 15.2 1.6L256 65.1 346.3 2.8c4.5-3.1 10.2-3.7 15.2-1.6zM352 256c0 53-43 96-96 96s-96-43-96-96s43-96 96-96s96 43 96 96zm32 0c0-70.7-57.3-128-128-128s-128 57.3-128 128s57.3 128 128 128s128-57.3 128-128z"]},ife={prefix:"fas",iconName:"link",icon:[640,512,[128279,"chain"],"f0c1","M579.8 267.7c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114L422.3 334.8c-31.5 31.5-82.5 31.5-114 0c-27.9-27.9-31.5-71.8-8.6-103.8l1.1-1.6c10.3-14.4 6.9-34.4-7.4-44.6s-34.4-6.9-44.6 7.4l-1.1 1.6C206.5 251.2 213 330 263 380c56.5 56.5 148 56.5 204.5 0L579.8 267.7zM60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5L217.7 177.2c31.5-31.5 82.5-31.5 114 0c27.9 27.9 31.5 71.8 8.6 103.9l-1.1 1.6c-10.3 14.4-6.9 34.4 7.4 44.6s34.4 6.9 44.6-7.4l1.1-1.6C433.5 260.8 427 182 377 132c-56.5-56.5-148-56.5-204.5 0L60.2 244.3z"]},ez={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352c79.5 0 144-64.5 144-144s-64.5-144-144-144S64 128.5 64 208s64.5 144 144 144z"]},ofe=ez,afe={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},sfe={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z"]},tz={prefix:"fas",iconName:"xmark",icon:[320,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M310.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L160 210.7 54.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L114.7 256 9.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 301.3 265.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L205.3 256 310.6 150.6z"]},lfe=tz,ufe={prefix:"fas",iconName:"chevron-right",icon:[384,512,[9002],"f054","M342.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L274.7 256 105.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},nz={prefix:"fas",iconName:"rotate",icon:[512,512,[128260,"sync-alt"],"f2f1","M142.9 142.9c62.2-62.2 162.7-62.5 225.3-1L327 183c-6.9 6.9-8.9 17.2-5.2 26.2s12.5 14.8 22.2 14.8H463.5c0 0 0 0 0 0H472c13.3 0 24-10.7 24-24V72c0-9.7-5.8-18.5-14.8-22.2s-19.3-1.7-26.2 5.2L413.4 96.6c-87.6-86.5-228.7-86.2-315.8 1C73.2 122 55.6 150.7 44.8 181.4c-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5c7.7-21.8 20.2-42.3 37.8-59.8zM16 312v7.6 .7V440c0 9.7 5.8 18.5 14.8 22.2s19.3 1.7 26.2-5.2l41.6-41.6c87.6 86.5 228.7 86.2 315.8-1c24.4-24.4 42.1-53.1 52.9-83.7c5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8c-62.2 62.2-162.7 62.5-225.3 1L185 329c6.9-6.9 8.9-17.2 5.2-26.2s-12.5-14.8-22.2-14.8H48.4h-.7H40c-13.3 0-24 10.7-24 24z"]},cfe=nz,ffe={prefix:"fas",iconName:"robot",icon:[640,512,[129302],"f544","M320 0c17.7 0 32 14.3 32 32V96H480c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H160c-35.3 0-64-28.7-64-64V160c0-35.3 28.7-64 64-64H288V32c0-17.7 14.3-32 32-32zM208 384c-8.8 0-16 7.2-16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s-7.2-16-16-16H208zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s-7.2-16-16-16H304zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s-7.2-16-16-16H400zM264 256c0-22.1-17.9-40-40-40s-40 17.9-40 40s17.9 40 40 40s40-17.9 40-40zm152 40c22.1 0 40-17.9 40-40s-17.9-40-40-40s-40 17.9-40 40s17.9 40 40 40zM48 224H64V416H48c-26.5 0-48-21.5-48-48V272c0-26.5 21.5-48 48-48zm544 0c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H576V224h16z"]},rz={prefix:"fas",iconName:"gears",icon:[640,512,["cogs"],"f085","M308.5 135.3c7.1-6.3 9.9-16.2 6.2-25c-2.3-5.3-4.8-10.5-7.6-15.5L304 89.4c-3-5-6.3-9.9-9.8-14.6c-5.7-7.6-15.7-10.1-24.7-7.1l-28.2 9.3c-10.7-8.8-23-16-36.2-20.9L199 27.1c-1.9-9.3-9.1-16.7-18.5-17.8C173.7 8.4 166.9 8 160 8s-13.7 .4-20.4 1.2c-9.4 1.1-16.6 8.6-18.5 17.8L115 56.1c-13.3 5-25.5 12.1-36.2 20.9L50.5 67.8c-9-3-19-.5-24.7 7.1c-3.5 4.7-6.8 9.6-9.9 14.6l-3 5.3c-2.8 5-5.3 10.2-7.6 15.6c-3.7 8.7-.9 18.6 6.2 25l22.2 19.8C32.6 161.9 32 168.9 32 176s.6 14.1 1.7 20.9L11.5 216.7c-7.1 6.3-9.9 16.2-6.2 25c2.3 5.3 4.8 10.5 7.6 15.6l3 5.2c3 5.1 6.3 9.9 9.9 14.6c5.7 7.6 15.7 10.1 24.7 7.1l28.2-9.3c10.7 8.8 23 16 36.2 20.9l6.1 29.1c1.9 9.3 9.1 16.7 18.5 17.8c6.7 .8 13.5 1.2 20.4 1.2s13.7-.4 20.4-1.2c9.4-1.1 16.6-8.6 18.5-17.8l6.1-29.1c13.3-5 25.5-12.1 36.2-20.9l28.2 9.3c9 3 19 .5 24.7-7.1c3.5-4.7 6.8-9.5 9.8-14.6l3.1-5.4c2.8-5 5.3-10.2 7.6-15.5c3.7-8.7 .9-18.6-6.2-25l-22.2-19.8c1.1-6.8 1.7-13.8 1.7-20.9s-.6-14.1-1.7-20.9l22.2-19.8zM208 176c0 26.5-21.5 48-48 48s-48-21.5-48-48s21.5-48 48-48s48 21.5 48 48zM504.7 500.5c6.3 7.1 16.2 9.9 25 6.2c5.3-2.3 10.5-4.8 15.5-7.6l5.4-3.1c5-3 9.9-6.3 14.6-9.8c7.6-5.7 10.1-15.7 7.1-24.7l-9.3-28.2c8.8-10.7 16-23 20.9-36.2l29.1-6.1c9.3-1.9 16.7-9.1 17.8-18.5c.8-6.7 1.2-13.5 1.2-20.4s-.4-13.7-1.2-20.4c-1.1-9.4-8.6-16.6-17.8-18.5L583.9 307c-5-13.3-12.1-25.5-20.9-36.2l9.3-28.2c3-9 .5-19-7.1-24.7c-4.7-3.5-9.6-6.8-14.6-9.9l-5.3-3c-5-2.8-10.2-5.3-15.6-7.6c-8.7-3.7-18.6-.9-25 6.2l-19.8 22.2c-6.8-1.1-13.8-1.7-20.9-1.7s-14.1 .6-20.9 1.7l-19.8-22.2c-6.3-7.1-16.2-9.9-25-6.2c-5.3 2.3-10.5 4.8-15.6 7.6l-5.2 3c-5.1 3-9.9 6.3-14.6 9.9c-7.6 5.7-10.1 15.7-7.1 24.7l9.3 28.2c-8.8 10.7-16 23-20.9 36.2L315.1 313c-9.3 1.9-16.7 9.1-17.8 18.5c-.8 6.7-1.2 13.5-1.2 20.4s.4 13.7 1.2 20.4c1.1 9.4 8.6 16.6 17.8 18.5l29.1 6.1c5 13.3 12.1 25.5 20.9 36.2l-9.3 28.2c-3 9-.5 19 7.1 24.7c4.7 3.5 9.5 6.8 14.6 9.8l5.4 3.1c5 2.8 10.2 5.3 15.5 7.6c8.7 3.7 18.6 .9 25-6.2l19.8-22.2c6.8 1.1 13.8 1.7 20.9 1.7s14.1-.6 20.9-1.7l19.8 22.2zM464 400c-26.5 0-48-21.5-48-48s21.5-48 48-48s48 21.5 48 48s-21.5 48-48 48z"]},dfe=rz,hfe={prefix:"fas",iconName:"qrcode",icon:[448,512,[],"f029","M48 32C21.5 32 0 53.5 0 80v96c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48H48zm80 64v64H64V96h64zM48 288c-26.5 0-48 21.5-48 48v96c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48V336c0-26.5-21.5-48-48-48H48zm80 64v64H64V352h64zM256 80v96c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48H304c-26.5 0-48 21.5-48 48zm64 16h64v64H320V96zm32 352v32h32V448H352zm96 0H416v32h32V448zM416 288v32H352V288H256v96 96h64V384h32v32h96V352 320 288H416z"]},pfe={prefix:"fas",iconName:"moon",icon:[384,512,[127769,9214],"f186","M223.5 32C100 32 0 132.3 0 256S100 480 223.5 480c60.6 0 115.5-24.2 155.8-63.4c5-4.9 6.3-12.5 3.1-18.7s-10.1-9.7-17-8.5c-9.8 1.7-19.8 2.6-30.1 2.6c-96.9 0-175.5-78.8-175.5-176c0-65.8 36-123.1 89.3-153.3c6.1-3.5 9.2-10.5 7.7-17.3s-7.3-11.9-14.3-12.5c-6.3-.5-12.6-.8-19-.8z"]},mfe={prefix:"fas",iconName:"link-slash",icon:[640,512,["chain-broken","chain-slash","unlink"],"f127","M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L489.3 358.2l90.5-90.5c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114l-96 96-31.9-25C430.9 239.6 420.1 175.1 377 132c-52.2-52.3-134.5-56.2-191.3-11.7L38.8 5.1zM239 162c30.1-14.9 67.7-9.9 92.8 15.3c20 20 27.5 48.3 21.7 74.5L239 162zM406.6 416.4L220.9 270c-2.1 39.8 12.2 80.1 42.2 110c38.9 38.9 94.4 51 143.6 36.3zm-290-228.5L60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5l61.8-61.8-50.6-39.9z"]},gfe={prefix:"fas",iconName:"check",icon:[512,512,[10003,10004],"f00c","M470.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L192 338.7 425.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]};function LO(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 Fe(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?LO(Object(n),!0).forEach(function(r){ln(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):LO(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Dp(t){return Dp=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},Dp(t)}function iz(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function RO(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function oz(t,e,n){return e&&RO(t.prototype,e),n&&RO(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function ln(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u2(t,e){return sz(t)||uz(t,e)||EL(t,e)||fz()}function cf(t){return az(t)||lz(t)||EL(t)||cz()}function az(t){if(Array.isArray(t))return S0(t)}function sz(t){if(Array.isArray(t))return t}function lz(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function uz(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(t);!(i=(a=n.next()).done)&&(r.push(a.value),!(e&&r.length===e));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function EL(t,e){if(t){if(typeof t=="string")return S0(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 S0(t,e)}}function S0(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function cz(){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 fz(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var AO=function(){},c2={},OL={},PL=null,TL={mark:AO,measure:AO};try{typeof window<"u"&&(c2=window),typeof document<"u"&&(OL=document),typeof MutationObserver<"u"&&(PL=MutationObserver),typeof performance<"u"&&(TL=performance)}catch{}var dz=c2.navigator||{},DO=dz.userAgent,NO=DO===void 0?"":DO,qo=c2,Ot=OL,IO=PL,ud=TL;qo.document;var Ji=!!Ot.documentElement&&!!Ot.head&&typeof Ot.addEventListener=="function"&&typeof Ot.createElement=="function",CL=~NO.indexOf("MSIE")||~NO.indexOf("Trident/"),cd,fd,dd,hd,pd,qi="___FONT_AWESOME___",E0=16,kL="fa",ML="svg-inline--fa",Xa="data-fa-i2svg",O0="data-fa-pseudo-element",hz="data-fa-pseudo-element-pending",f2="data-prefix",d2="data-icon",FO="fontawesome-i2svg",pz="async",mz=["HTML","HEAD","STYLE","SCRIPT"],LL=function(){try{return!0}catch{return!1}}(),xt="classic",$t="sharp",h2=[xt,$t];function ff(t){return new Proxy(t,{get:function(n,r){return r in n?n[r]:n[xt]}})}var kc=ff((cd={},ln(cd,xt,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit","fa-kit":"kit"}),ln(cd,$t,{fa:"solid",fass:"solid","fa-solid":"solid"}),cd)),Mc=ff((fd={},ln(fd,xt,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),ln(fd,$t,{solid:"fass"}),fd)),Lc=ff((dd={},ln(dd,xt,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),ln(dd,$t,{fass:"fa-solid"}),dd)),gz=ff((hd={},ln(hd,xt,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),ln(hd,$t,{"fa-solid":"fass"}),hd)),vz=/fa(s|r|l|t|d|b|k|ss)?[\-\ ]/,RL="fa-layers-text",yz=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,_z=ff((pd={},ln(pd,xt,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),ln(pd,$t,{900:"fass"}),pd)),AL=[1,2,3,4,5,6,7,8,9,10],bz=AL.concat([11,12,13,14,15,16,17,18,19,20]),wz=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Aa={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Rc=new Set;Object.keys(Mc[xt]).map(Rc.add.bind(Rc));Object.keys(Mc[$t]).map(Rc.add.bind(Rc));var xz=[].concat(h2,cf(Rc),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",Aa.GROUP,Aa.SWAP_OPACITY,Aa.PRIMARY,Aa.SECONDARY]).concat(AL.map(function(t){return"".concat(t,"x")})).concat(bz.map(function(t){return"w-".concat(t)})),Zu=qo.FontAwesomeConfig||{};function Sz(t){var e=Ot.querySelector("script["+t+"]");if(e)return e.getAttribute(t)}function Ez(t){return t===""?!0:t==="false"?!1:t==="true"?!0:t}if(Ot&&typeof Ot.querySelector=="function"){var Oz=[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];Oz.forEach(function(t){var e=u2(t,2),n=e[0],r=e[1],i=Ez(Sz(n));i!=null&&(Zu[r]=i)})}var DL={styleDefault:"solid",familyDefault:"classic",cssPrefix:kL,replacementClass:ML,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Zu.familyPrefix&&(Zu.cssPrefix=Zu.familyPrefix);var _l=Fe(Fe({},DL),Zu);_l.autoReplaceSvg||(_l.observeMutations=!1);var Be={};Object.keys(DL).forEach(function(t){Object.defineProperty(Be,t,{enumerable:!0,set:function(n){_l[t]=n,Gu.forEach(function(r){return r(Be)})},get:function(){return _l[t]}})});Object.defineProperty(Be,"familyPrefix",{enumerable:!0,set:function(e){_l.cssPrefix=e,Gu.forEach(function(n){return n(Be)})},get:function(){return _l.cssPrefix}});qo.FontAwesomeConfig=Be;var Gu=[];function Pz(t){return Gu.push(t),function(){Gu.splice(Gu.indexOf(t),1)}}var lo=E0,pi={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Tz(t){if(!(!t||!Ji)){var e=Ot.createElement("style");e.setAttribute("type","text/css"),e.innerHTML=t;for(var n=Ot.head.childNodes,r=null,i=n.length-1;i>-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,"<").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(""),"</").concat(e,">")}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<a;l++)c=o[l],f=s(f,e[c],c,e);return f};function Fz(t){for(var e=[],n=0,r=t.length;n<r;){var i=t.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=t.charCodeAt(n++);(o&64512)==56320?e.push(((i&1023)<<10)+(o&1023)+65536):(e.push(i),n--)}else e.push(i)}return e}function P0(t){var e=Fz(t);return e.length===1?e[0].toString(16):null}function $z(t,e){var n=t.length,r=t.charCodeAt(e),i;return r>=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;o<r;o++)i[o]=arguments[o];var a=i.reduce(this._pullDefinitions,{});Object.keys(a).forEach(function(s){n.definitions[s]=Fe(Fe({},n.definitions[s]||{}),a[s]),T0(s,a[s]);var l=Lc[xt][s];l&&T0(l,a[s]),UL()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(n,r){var i=r.prefix&&r.iconName&&r.icon?{0:r}:r;return Object.keys(i).map(function(o){var a=i[o],s=a.prefix,l=a.iconName,c=a.icon,f=c[2];n[s]||(n[s]={}),f.length>0&&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;i<n;i++)r[i-2]=arguments[i];var o=Vs[t]||[];return o.forEach(function(a){e=a.apply(null,[e].concat(r))}),e}function Qa(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i=Vs[t]||[];i.forEach(function(o){o.apply(null,n)})}function Gi(){var t=arguments[0],e=Array.prototype.slice.call(arguments,1);return rl[t]?rl[t].apply(null,e):void 0}function k0(t){t.prefix==="fa"&&(t.prefix="fas");var e=t.iconName,n=t.prefix||Zo();if(e)return e=Da(n,e)||e,jO(VL.definitions,n,e)||jO(Wr.styles,n,e)}var VL=new Yz,Gz=function(){Be.autoReplaceSvg=!1,Be.observeMutations=!1,Qa("noAuto")},Kz={i2svg:function(){var e=arguments.length>0&&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<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?nP(Object(n),!0).forEach(function(r){Ys(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nP(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Fp(t){return Fp=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},Fp(t)}function Ys(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function HH(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=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<o.length;i++)r=o[i],!(e.indexOf(r)>=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);n<e;n++)r[n]=t[n];return r}function qH(){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 ZH(t){var e,n=t.beat,r=t.fade,i=t.beatFade,o=t.bounce,a=t.shake,s=t.flash,l=t.spin,c=t.spinPulse,f=t.spinReverse,h=t.pulse,p=t.fixedWidth,m=t.inverse,v=t.border,y=t.listItem,w=t.flip,_=t.size,b=t.rotation,S=t.pull,O=(e={"fa-beat":n,"fa-fade":r,"fa-beat-fade":i,"fa-bounce":o,"fa-shake":a,"fa-flash":s,"fa-spin":l,"fa-spin-reverse":f,"fa-spin-pulse":c,"fa-pulse":h,"fa-fw":p,"fa-inverse":m,"fa-border":v,"fa-li":y,"fa-flip":w===!0,"fa-flip-horizontal":w==="horizontal"||w==="both","fa-flip-vertical":w==="vertical"||w==="both"},Ys(e,"fa-".concat(_),typeof _<"u"&&_!==null),Ys(e,"fa-rotate-".concat(b),typeof b<"u"&&b!==null&&b!==0),Ys(e,"fa-pull-".concat(S),typeof S<"u"&&S!==null),Ys(e,"fa-swap-opacity",t.swapOpacity),e);return Object.keys(O).map(function(M){return O[M]?M:null}).filter(function(M){return M})}function GH(t){return t=t-0,t===t}function JL(t){return GH(t)?t:(t=t.replace(/[\-_\s]+(.)?/g,function(e,n){return n?n.toUpperCase():""}),t.substr(0,1).toLowerCase()+t.substr(1))}var KH=["style"];function XH(t){return t.charAt(0).toUpperCase()+t.slice(1)}function QH(t){return t.split(";").map(function(e){return e.trim()}).filter(function(e){return e}).reduce(function(e,n){var r=n.indexOf(":"),i=JL(n.slice(0,r)),o=n.slice(r+1).trim();return i.startsWith("webkit")?e[XH(i)]=o:e[i]=o,e},{})}function eR(t,e){var n=arguments.length>2&&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;i<arguments.length;i++){var o=arguments[i];if(o){var a=typeof o;if(a==="string"||a==="number")r.push(o);else if(Array.isArray(o)){if(o.length){var s=n.apply(null,o);s&&r.push(s)}}else if(a==="object"){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){r.push(o.toString());continue}for(var l in o)e.call(o,l)&&o[l]&&r.push(l)}}}return r.join(" ")}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(tU);const Te=F0;var nR=Q.createContext(),rR=Q.createContext();function iP(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(nR.Provider,{value:r},Q.createElement(rR.Provider,{value:a},e))}var iR=function(e){return Array.isArray(e)?e[0]:e},oR=function(e){if(typeof e=="function"){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return e.apply(void 0,r)}},$0=function(e,n){if(typeof e=="function")return oR(e,n);e!=null&&(e.current=n)},oP=function(e){return e.reduce(function(n,r){var i=r[0],o=r[1];return n[i]=o,n},{})},aP=typeof window<"u"&&window.document&&window.document.createElement?Q.useLayoutEffect:Q.useEffect,rr="top",kr="bottom",Mr="right",ir="left",x2="auto",hf=[rr,kr,Mr,ir],bl="start",Dc="end",nU="clippingParents",aR="viewport",hu="popper",rU="reference",sP=hf.reduce(function(t,e){return t.concat([e+"-"+bl,e+"-"+Dc])},[]),sR=[].concat(hf,[x2]).reduce(function(t,e){return t.concat([e,e+"-"+bl,e+"-"+Dc])},[]),iU="beforeRead",oU="read",aU="afterRead",sU="beforeMain",lU="main",uU="afterMain",cU="beforeWrite",fU="write",dU="afterWrite",hU=[iU,oU,aU,sU,lU,uU,cU,fU,dU];function xi(t){return t?(t.nodeName||"").toLowerCase():null}function Ar(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Ja(t){var e=Ar(t).Element;return t instanceof e||t instanceof Element}function Pr(t){var e=Ar(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function S2(t){if(typeof ShadowRoot>"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<O.length;I++){var H=O[I],W=vi(H),J=Sl(H)===bl,Y=[rr,kr].indexOf(W)>=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<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function oW(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,i=e.defaultOptions,o=i===void 0?pP:i;return function(s,l,c){c===void 0&&(c=o);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},pP,o),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},h=[],p=!1,m={state:f,setOptions:function(_){var b=typeof _=="function"?_(f.options):_;y(),f.options=Object.assign({},o,f.options,b),f.scrollParents={reference:Ja(s)?Xu(s):s.contextElement?Xu(s.contextElement):[],popper:Xu(l)};var S=nW(iW([].concat(r,f.options.modifiers)));return f.orderedModifiers=S.filter(function(O){return O.enabled}),v(),m.update()},forceUpdate:function(){if(!p){var _=f.elements,b=_.reference,S=_.popper;if(mP(b,S)){f.rects={reference:eW(b,pf(S),f.options.strategy==="fixed"),popper:E2(S)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(I){return f.modifiersData[I.name]=Object.assign({},I.data)});for(var O=0;O<f.orderedModifiers.length;O++){if(f.reset===!0){f.reset=!1,O=-1;continue}var M=f.orderedModifiers[O],C=M.fn,R=M.options,$=R===void 0?{}:R,U=M.name;typeof C=="function"&&(f=C({state:f,options:$,name:U,instance:m})||f)}}}},update:rW(function(){return new Promise(function(w){m.forceUpdate(),w(f)})}),destroy:function(){y(),p=!0}};if(!mP(s,l))return m;m.setOptions(c).then(function(w){!p&&c.onFirstUpdate&&c.onFirstUpdate(w)});function v(){f.orderedModifiers.forEach(function(w){var _=w.name,b=w.options,S=b===void 0?{}:b,O=w.effect;if(typeof O=="function"){var M=O({state:f,name:_,instance:m,options:S}),C=function(){};h.push(M||C)}})}function y(){h.forEach(function(w){return w()}),h=[]}return m}}var aW=[kU,qU,TU,gU,VU,BU,KU,SU,HU],mR=oW({defaultModifiers:aW}),sW=typeof Element<"u",lW=typeof Map=="function",uW=typeof Set=="function",cW=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function eh(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var n,r,i;if(Array.isArray(t)){if(n=t.length,n!=e.length)return!1;for(r=n;r--!==0;)if(!eh(t[r],e[r]))return!1;return!0}var o;if(lW&&t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o=t.entries();!(r=o.next()).done;)if(!e.has(r.value[0]))return!1;for(o=t.entries();!(r=o.next()).done;)if(!eh(r.value[1],e.get(r.value[0])))return!1;return!0}if(uW&&t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o=t.entries();!(r=o.next()).done;)if(!e.has(r.value[0]))return!1;return!0}if(cW&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){if(n=t.length,n!=e.length)return!1;for(r=n;r--!==0;)if(t[r]!==e[r])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===e.toString();if(i=Object.keys(t),n=i.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(e,i[r]))return!1;if(sW&&t instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&t.$$typeof)&&!eh(t[i[r]],e[i[r]]))return!1;return!0}return t!==t&&e!==e}var gR=function(e,n){try{return eh(e,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}},fW=[],dW=function(e,n,r){r===void 0&&(r={});var i=Q.useRef(null),o={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||fW},a=Q.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=a[0],l=a[1],c=Q.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(m){var v=m.state,y=Object.keys(v.elements);l({styles:oP(y.map(function(w){return[w,v.styles[w]||{}]})),attributes:oP(y.map(function(w){return[w,v.attributes[w]]}))})},requires:["computeStyles"]}},[]),f=Q.useMemo(function(){var p={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[c,{name:"applyStyles",enabled:!1}])};return gR(i.current,p)?i.current||p:(i.current=p,p)},[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,c]),h=Q.useRef();return aP(function(){h.current&&h.current.setOptions(f)},[f]),aP(function(){if(!(e==null||n==null)){var p=r.createPopper||mR,m=p(e,n,f);return h.current=m,function(){m.destroy(),h.current=null}}},[e,n,r.createPopper]),{state:h.current?h.current.state:null,styles:s.styles,attributes:s.attributes,update:h.current?h.current.update:null,forceUpdate:h.current?h.current.forceUpdate:null}},hW=function(){},pW=function(){return Promise.resolve(null)},mW=[];function vR(t){var e=t.placement,n=e===void 0?"bottom":e,r=t.strategy,i=r===void 0?"absolute":r,o=t.modifiers,a=o===void 0?mW:o,s=t.referenceElement,l=t.onFirstUpdate,c=t.innerRef,f=t.children,h=Q.useContext(nR),p=Q.useState(null),m=p[0],v=p[1],y=Q.useState(null),w=y[0],_=y[1];Q.useEffect(function(){$0(c,m)},[c,m]);var b=Q.useMemo(function(){return{placement:n,strategy:i,onFirstUpdate:l,modifiers:[].concat(a,[{name:"arrow",enabled:w!=null,options:{element:w}}])}},[n,i,l,a,w]),S=dW(s||h,m,b),O=S.state,M=S.styles,C=S.forceUpdate,R=S.update,$=Q.useMemo(function(){return{ref:v,style:M.popper,placement:O?O.placement:n,hasPopperEscaped:O&&O.modifiersData.hide?O.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:O&&O.modifiersData.hide?O.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:M.arrow,ref:_},forceUpdate:C||hW,update:R||pW}},[v,_,n,O,M,R,C]);return iR(f)($)}function gW(t){var e=t.children,n=t.innerRef,r=Q.useContext(rR),i=Q.useCallback(function(o){$0(n,o),oR(r,o)},[n,r]);return Q.useEffect(function(){return function(){return $0(n,null)}}),Q.useEffect(function(){},[r]),iR(e)({ref:i})}function z0(t,e){return z0=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},z0(t,e)}function vW(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,z0(t,e)}const gP={disabled:!1},yR=j.createContext(null);var Tu="unmounted",xa="exited",Sa="entering",Ms="entered",H0="exiting",eo=function(t){vW(e,t);function e(r,i){var o;o=t.call(this,r,i)||this;var a=i,s=a&&!a.isMounting?r.enter:r.appear,l;return o.appearStatus=null,r.in?s?(l=xa,o.appearStatus=Sa):l=Ms:r.unmountOnExit||r.mountOnEnter?l=Tu:l=xa,o.state={status:l},o.nextCallback=null,o}e.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===Tu?{status:xa}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==Sa&&a!==Ms&&(o=Sa):(a===Sa||a===Ms)&&(o=H0)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,a,s;return o=a=s=i,i!=null&&typeof i!="number"&&(o=i.exit,a=i.enter,s=i.appear!==void 0?i.appear:a),{exit:o,enter:a,appear:s}},n.updateStatus=function(i,o){i===void 0&&(i=!1),o!==null?(this.cancelNextCallback(),o===Sa?this.performEnter(i):this.performExit()):this.props.unmountOnExit&&this.state.status===xa&&this.setState({status:Tu})},n.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[Fa.findDOMNode(this),s],c=l[0],f=l[1],h=this.getTimeouts(),p=s?h.appear:h.enter;if(!i&&!a||gP.disabled){this.safeSetState({status:Ms},function(){o.props.onEntered(c)});return}this.props.onEnter(c,f),this.safeSetState({status:Sa},function(){o.props.onEntering(c,f),o.onTransitionEnd(p,function(){o.safeSetState({status:Ms},function(){o.props.onEntered(c,f)})})})},n.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:Fa.findDOMNode(this);if(!o||gP.disabled){this.safeSetState({status:xa},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:H0},function(){i.props.onExiting(s),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:xa},function(){i.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,o.nextCallback=null,i(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:Fa.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],c=l[0],f=l[1];this.props.addEndListener(c,f)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===Tu)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=Nw(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return j.createElement(yR.Provider,{value:null},typeof a=="function"?a(i,s):j.cloneElement(j.Children.only(a),s))},e}(j.Component);eo.contextType=yR;eo.propTypes={};function xs(){}eo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:xs,onEntering:xs,onEntered:xs,onExit:xs,onExiting:xs,onExited:xs};eo.UNMOUNTED=Tu;eo.EXITED=xa;eo.ENTERING=Sa;eo.ENTERED=Ms;eo.EXITING=H0;const to=eo;function vP(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 He(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?vP(Object(n),!0).forEach(function(r){yW(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vP(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function yW(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ie(){return Ie=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ie.apply(this,arguments)}function _W(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=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<o.length;i++)r=o[i],!(e.indexOf(r)>=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.clientWidth<window.innerWidth}function _R(){const t=window.getComputedStyle(document.body,null);return parseInt(t&&t.getPropertyValue("padding-right")||0,10)}function bR(){const t=bW(),e=document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")[0],n=e?parseInt(e.style.paddingRight||0,10):0;wW()&&k2(n+t)}let xW;function Ne(t="",e=xW){return e?t.split(" ").map(n=>e[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;s<o.length;s+=1)if((o[s].textContent&&o[s].textContent[0].toLowerCase())===a){o[s].focus();break}}}}handleProps(){this.props.isOpen?this.addEvents():this.removeEvents()}getContextValue(){return{toggle:this.toggle,isOpen:this.props.isOpen,direction:this.props.direction==="down"&&this.props.dropup?"up":this.props.direction,inNavbar:this.props.inNavbar,disabled:this.props.disabled,onMenuRef:this.handleMenuRef,onToggleRef:this.handleToggleRef,menuRole:this.props.menuRole}}getContainer(){return this.containerRef.current}getMenu(){return this.menuRef.current}getToggle(){return this.toggleRef.current}getMenuCtrl(){return this._$menuCtrl?this._$menuCtrl:(this._$menuCtrl=this.getToggle(),this._$menuCtrl)}getItemType(){return this.props.menuRole==="listbox"?"option":"menuitem"}getMenuItems(){const e=this.getMenu()||this.getContainer();return[].slice.call(e.querySelectorAll(`[role="${this.getItemType()}"]`))}addEvents(){["click","touchstart","keyup"].forEach(e=>document.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<i?o=a?"start":"end":e.activeIndex!==i&&(o=a?"end":"start"),r={activeIndex:e.activeIndex,direction:o,indicatorClicked:!1}),r}componentDidUpdate(e,n){n.activeIndex!==this.state.activeIndex&&this.setInterval()}componentWillUnmount(){this.clearInterval(),document.removeEventListener("keyup",this.handleKeyPress)}handleKeyPress(e){this.props.keyboard&&(e.keyCode===37?this.props.previous():e.keyCode===39&&this.props.next())}handleTouchStart(e){this.props.enableTouch&&(this.touchStartX=e.changedTouches[0].screenX,this.touchStartY=e.changedTouches[0].screenY)}handleTouchEnd(e){if(!this.props.enableTouch)return;const n=e.changedTouches[0].screenX,r=e.changedTouches[0].screenY,i=Math.abs(this.touchStartX-n),o=Math.abs(this.touchStartY-r);i<o||i<YV||(n<this.touchStartX?this.props.next():this.props.previous())}getContextValue(){return{direction:this.state.direction}}setInterval(){this.clearInterval(),this.props.interval&&(this.cycleInterval=setInterval(()=>{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<Cn.openCount-1)return;const n=this.getFocusableChildren(),r=n.length;if(r===0)return;const i=this.getFocusedChild();let o=0;for(let a=0;a<r;a+=1)if(n[a]===i){o=a;break}e.shiftKey&&o===0?(e.preventDefault(),n[r-1].focus()):!e.shiftKey&&o===r-1&&(e.preventDefault(),n[0].focus())}handleBackdropMouseDown(e){this._mouseDownElement=e.target}handleEscape(e){this.props.isOpen&&e.keyCode===ct.esc&&this.props.toggle&&(this.props.keyboard?(e.preventDefault(),e.stopPropagation(),this.props.toggle(e)):this.props.backdrop==="static"&&(e.preventDefault(),e.stopPropagation(),this.handleStaticBackdropAnimation()))}handleStaticBackdropAnimation(){this.clearBackdropAnimationTimeout(),this.setState({showStaticBackdropAnimation:!0}),this._backdropAnimationTimeout=setTimeout(()=>{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.modalIndex<Cn.openCount-1)return;const n=this.getFocusableChildren();for(let r=0;r<n.length;r+=1)if(n[r]===e.target)return;n.length>0&&(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.offcanvasIndex<zr.openCount-1)return;const n=this.getFocusableChildren(),r=n.length;if(r===0)return;const i=this.getFocusedChild();let o=0;for(let a=0;a<r;a+=1)if(n[a]===i){o=a;break}e.shiftKey&&o===0?(e.preventDefault(),n[r-1].focus()):!e.shiftKey&&o===r-1&&(e.preventDefault(),n[0].focus())}handleBackdropMouseDown(e){this._mouseDownElement=e.target}handleEscape(e){this.props.isOpen&&e.keyCode===ct.esc&&this.props.toggle&&this.props.keyboard&&(e.preventDefault(),e.stopPropagation(),this.props.toggle(e))}onOpened(e,n){this.props.onOpened(),(this.props.offcanvasTransition.onEntered||Up)(e,n)}onClosed(e){const{unmountOnClose:n}=this.props;this.props.onClosed(),(this.props.offcanvasTransition.onExited||Up)(e),n&&this.destroy(),this.close(),this._isMounted&&this.setState({isOpen:!1})}setFocus(){this._dialog&&typeof this._dialog.focus=="function"&&this._dialog.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===e.target||this.offcanvasIndex<zr.openCount-1)return;const n=this.getFocusableChildren();for(let r=0;r<n.length;r+=1)if(n[r]===e.target)return;n.length>0&&(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<I&&M<I&&!h.swiping)return h;const H={absX:O,absY:M,deltaX:b,deltaY:S,dir:U,event:f,first:h.first,initial:h.initial,velocity:R,vxvy:$};H.first&&p.onSwipeStart&&p.onSwipeStart(H),p.onSwiping&&p.onSwiping(H);let W=!1;return(p.onSwiping||p.onSwiped||p[`onSwiped${U}`])&&(W=!0),W&&p.preventScrollOnSwipe&&p.trackTouch&&f.cancelable&&f.preventDefault(),Object.assign(Object.assign({},h),{first:!1,eventData:H,swiping:!0})})},i=f=>{t((h,p)=>{let m;if(h.swiping&&h.eventData){if(f.timeStamp-h.start<p.swipeDuration){m=Object.assign(Object.assign({},h.eventData),{event:f}),p.onSwiped&&p.onSwiped(m);const v=p[`onSwiped${m.dir}`];v&&v(m)}}else p.onTap&&p.onTap({event:f});return p.onTouchEndOrOnMouseUp&&p.onTouchEndOrOnMouseUp({event:f}),Object.assign(Object.assign(Object.assign({},h),V0),{eventData:m})})},o=()=>{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<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Y0.apply(this,arguments)};function Uq(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}var Pfe=function(t){var e=t.href,n=t.children,r=Uq(t,["href","children"]);return j.createElement("a",Y0({target:"_blank",rel:"noopener noreferrer",href:e},r),n??e)};const Wq=(t,e)=>{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<r?-1:0},LP=(t,e)=>{for(let n=0;n<Math.max(t.length,e.length);n++){const r=qq(t[n]||"0",e[n]||"0");if(r!==0)return r}return 0},pA={">":[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;r<e;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(n.length?" "+n.map(function(i){return"'"+i+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Xo(t){return!!t&&!!t[Tt]}function Xi(t){var e;return!!t&&(function(n){if(!n||typeof n!="object")return!1;var r=Object.getPrototypeOf(n);if(r===null)return!0;var i=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===rZ}(t)||Array.isArray(t)||!!t[jP]||!!(!((e=t.constructor)===null||e===void 0)&&e[jP])||W2(t)||V2(t))}function ts(t,e,n){n===void 0&&(n=!1),Bl(t)===0?(n?Object.keys:ol)(t).forEach(function(r){n&&typeof r=="symbol"||e(r,t[r],t)}):t.forEach(function(r,i){return e(i,r,t)})}function Bl(t){var e=t[Tt];return e?e.i>3?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;r<n.length;r++){var i=n[r],o=e[i];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(e[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function q2(t,e){return e===void 0&&(e=!1),Z2(t)||Xo(t)||!Xi(t)||(Bl(t)>1&&(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;l<a.length;l++)if(!a.hasOwnProperty(l))return!0;return!1}var i={};Xq("ES5",{J:function(o,a){var s=Array.isArray(o),l=function(f,h){if(f){for(var p=Array(h.length),m=0;m<h.length;m++)Object.defineProperty(p,""+m,t(m,!0));return p}var v=yA(h);delete v[Tt];for(var y=ol(v),w=0;w<y.length;w++){var _=y[w];v[_]=t(_,f||!!v[_].enumerable)}return Object.create(Object.getPrototypeOf(h),v)}(s,o),c={i:s?5:4,A:a?a.A:q0(),P:!1,I:!1,D:{},l:a,t:o,k:l,o:null,O:!1,C:!1};return Object.defineProperty(l,Tt,{value:c,writable:!0}),l},S:function(o,a,s){s?Xo(a)&&a[Tt].A===o&&e(o.p):(o.u&&function l(c){if(c&&typeof c=="object"){var f=c[Tt];if(f){var h=f.t,p=f.k,m=f.D,v=f.i;if(v===4)ts(p,function(S){S!==Tt&&(h[S]!==void 0||il(h,S)?m[S]||l(p[S]):(m[S]=!0,bo(f)))}),ts(h,function(S){p[S]!==void 0||il(p,S)||(m[S]=!1,bo(f))});else if(v===5){if(r(f)&&(bo(f),m.length=!0),p.length<h.length)for(var y=p.length;y<h.length;y++)m[y]=!1;else for(var w=h.length;w<p.length;w++)m[w]=!0;for(var _=Math.min(p.length,h.length),b=0;b<_;b++)p.hasOwnProperty(b)||(m[b]=!0),m[b]===void 0&&l(p[b])}}}}(o.p[0]),e(o.p))},K:function(o){return o.i===4?n(o):r(o)}})}var FP,Fc,G2=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",tZ=typeof Map<"u",nZ=typeof Set<"u",$P=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",vA=G2?Symbol.for("immer-nothing"):((FP={})["immer-nothing"]=!0,FP),jP=G2?Symbol.for("immer-draftable"):"__$immer_draftable",Tt=G2?Symbol.for("immer-state"):"__$immer_state",rZ=""+Object.prototype.constructor,ol=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,yA=Object.getOwnPropertyDescriptors||function(t){var e={};return ol(t).forEach(function(n){e[n]=Object.getOwnPropertyDescriptor(t,n)}),e},K0={},$c={get:function(t,e){if(e===Tt)return t;var n=Ea(t);if(!il(n,e))return function(i,o,a){var s,l=NP(o,a);return l?"value"in l?l.value:(s=l.get)===null||s===void 0?void 0:s.call(i.k):void 0}(t,n,e);var r=n[e];return t.I||!Xi(r)?r:r===$y(t.t,e)?(jy(t),t.o[e]=G0(t.A.h,r,t)):r},has:function(t,e){return e in Ea(t)},ownKeys:function(t){return Reflect.ownKeys(Ea(t))},set:function(t,e,n){var r=NP(Ea(t),e);if(r!=null&&r.set)return r.set.call(t.k,n),!0;if(!t.P){var i=$y(Ea(t),e),o=i==null?void 0:i[Tt];if(o&&o.t===n)return t.o[e]=n,t.D[e]=!1,!0;if(gA(n,i)&&(n!==void 0||il(t.t,e)))return!0;jy(t),bo(t)}return t.o[e]===n&&typeof n!="number"&&(n!==void 0||e in t.o)||(t.o[e]=n,t.D[e]=!0,!0)},deleteProperty:function(t,e){return $y(t.t,e)!==void 0||e in t.t?(t.D[e]=!1,jy(t),bo(t)):delete t.D[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var n=Ea(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:r.enumerable,value:n[e]}},defineProperty:function(){Ur(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Ur(12)}},Cu={};ts($c,function(t,e){Cu[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Cu.deleteProperty=function(t,e){return Cu.set.call(this,t,e,void 0)},Cu.set=function(t,e,n){return $c.set.call(this,t[0],e,n,t[0])};var iZ=function(){function t(n){var r=this;this.g=$P,this.F=!0,this.produce=function(i,o,a){if(typeof i=="function"&&typeof o!="function"){var s=o;o=i;var l=r;return function(y){var w=this;y===void 0&&(y=s);for(var _=arguments.length,b=Array(_>1?_-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<f;p++)h[p-1]=arguments[p];return r.produceWithPatches(c,function(m){return i.apply(void 0,[m].concat(h))})};var a,s,l=r.produce(i,o,function(c,f){a=c,s=f});return typeof Promise<"u"&&l instanceof Promise?l.then(function(c){return[c,a,s]}):[l,a,s]},typeof(n==null?void 0:n.useProxies)=="boolean"&&this.setUseProxies(n.useProxies),typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var e=t.prototype;return e.createDraft=function(n){Xi(n)||Ur(8),Xo(n)&&(n=Jq(n));var r=AP(this),i=G0(this,n,void 0);return i[Tt].C=!0,Z0(r),i},e.finishDraft=function(n,r){var i=n&&n[Tt],o=i.A;return Iy(o,r),Fy(void 0,o)},e.setAutoFreeze=function(n){this.F=n},e.setUseProxies=function(n){n&&!$P&&Ur(20),this.g=n},e.applyPatches=function(n,r){var i;for(i=r.length-1;i>=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<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?BP(Object(n),!0).forEach(function(r){oZ(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):BP(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Dn(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var HP=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),By=function(){return Math.random().toString(36).substring(7).split("").join(".")},qp={INIT:"@@redux/INIT"+By(),REPLACE:"@@redux/REPLACE"+By(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+By()}};function aZ(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function bA(t,e,n){var r;if(typeof e=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Dn(0));if(typeof e=="function"&&typeof n>"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;_<w.length;_++){var b=w[_];b()}return y}function m(y){if(typeof y!="function")throw new Error(Dn(10));i=y,p({type:qp.REPLACE})}function v(){var y,w=h;return y={subscribe:function(b){if(typeof b!="object"||b===null)throw new Error(Dn(11));function S(){b.next&&b.next(f())}S();var O=w(S);return{unsubscribe:O}}},y[HP]=function(){return this},y}return p({type:qp.INIT}),r={dispatch:p,subscribe:h,getState:f,replaceReducer:m},r[HP]=v,r}function sZ(t){Object.keys(t).forEach(function(e){var n=t[e],r=n(void 0,{type:qp.INIT});if(typeof r>"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<e.length;r++){var i=e[r];typeof t[i]=="function"&&(n[i]=t[i])}var o=Object.keys(n),a;try{sZ(n)}catch(s){a=s}return function(l,c){if(l===void 0&&(l={}),a)throw a;for(var f=!1,h={},p=0;p<o.length;p++){var m=o[p],v=n[m],y=l[m],w=v(y,c);if(typeof w>"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;n<t;n++)e[n]=arguments[n];return e.length===0?function(r){return r}:e.length===1?e[0]:e.reduce(function(r,i){return function(){return r(i.apply(void 0,arguments))}})}function uZ(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(r){return function(){var i=r.apply(void 0,arguments),o=function(){throw new Error(Dn(15))},a={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},s=e.map(function(l){return l(a)});return o=Zp.apply(void 0,s)(i.dispatch),zP(zP({},i),{},{dispatch:o})}}}function wA(t){var e=function(r){var i=r.dispatch,o=r.getState;return function(a){return function(s){return typeof s=="function"?s(i,o,t):a(s)}}};return e}var xA=wA();xA.withExtraArgument=wA;const UP=xA;var cZ=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),mf=globalThis&&globalThis.__generator||function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(f){return l([c,f])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=e.call(t,n)}catch(f){c=[6,f],i=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},jc=globalThis&&globalThis.__spreadArray||function(t,e){for(var n=0,r=e.length,i=t.length;n<r;n++,i++)t[i]=e[n];return t},fZ=Object.defineProperty,dZ=Object.defineProperties,hZ=Object.getOwnPropertyDescriptors,WP=Object.getOwnPropertySymbols,pZ=Object.prototype.hasOwnProperty,mZ=Object.prototype.propertyIsEnumerable,VP=function(t,e,n){return e in t?fZ(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n},Ho=function(t,e){for(var n in e||(e={}))pZ.call(e,n)&&VP(t,n,e[n]);if(WP)for(var r=0,i=WP(e);r<i.length;r++){var n=i[r];mZ.call(e,n)&&VP(t,n,e[n])}return t},zy=function(t,e){return dZ(t,hZ(e))},gf=function(t,e,n){return new Promise(function(r,i){var o=function(l){try{s(n.next(l))}catch(c){i(c)}},a=function(l){try{s(n.throw(l))}catch(c){i(c)}},s=function(l){return l.done?r(l.value):Promise.resolve(l.value).then(o,a)};s((n=n.apply(t,e)).next())})},gZ=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Zp:Zp.apply(null,arguments)};function vZ(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var n=e;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return e===n}var yZ=function(t){cZ(e,t);function e(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=t.apply(this,n)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return t.prototype.concat.apply(this,n)},e.prototype.prepend=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return n.length===1&&Array.isArray(n[0])?new(e.bind.apply(e,jc([void 0],n[0].concat(this)))):new(e.bind.apply(e,jc([void 0],n.concat(this))))},e}(Array);function X0(t){return Xi(t)?_A(t,function(){}):t}function _Z(t){return typeof t=="boolean"}function bZ(){return function(e){return wZ(e)}}function wZ(t){t===void 0&&(t={});var e=t.thunk,n=e===void 0?!0:e;t.immutableCheck,t.serializableCheck;var r=new yZ;return n&&(_Z(n)?r.push(UP):r.push(UP.withExtraArgument(n.extraArgument))),r}var xZ=!0;function Cfe(t){var e=bZ(),n=t||{},r=n.reducer,i=r===void 0?void 0:r,o=n.middleware,a=o===void 0?e():o,s=n.devTools,l=s===void 0?!0:s,c=n.preloadedState,f=c===void 0?void 0:c,h=n.enhancers,p=h===void 0?void 0:h,m;if(typeof i=="function")m=i;else if(vZ(i))m=lZ(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var v=a;typeof v=="function"&&(v=v(e));var y=uZ.apply(void 0,v),w=Zp;l&&(w=gZ(Ho({trace:!xZ},typeof l=="object"&&l)));var _=[y];Array.isArray(p)?_=jc([y],p):typeof p=="function"&&(_=p(_));var b=w.apply(void 0,_);return bA(m,f,b)}function Hi(t,e){function n(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(e){var o=e.apply(void 0,r);if(!o)throw new Error("prepareAction did not return an object");return Ho(Ho({type:t,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:t,payload:r[0]}}return n.toString=function(){return""+t},n.type=t,n.match=function(r){return r.type===t},n}function SA(t){var e={},n=[],r,i={addCase:function(o,a){var s=typeof o=="string"?o:o.type;if(s in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[s]=a,i},addMatcher:function(o,a){return n.push({matcher:o,reducer:a}),i},addDefaultCase:function(o){return r=o,i}};return t(i),[e,n,r]}function SZ(t){return typeof t=="function"}function EZ(t,e,n,r){n===void 0&&(n=[]);var i=typeof e=="function"?SA(e):[e,n,r],o=i[0],a=i[1],s=i[2],l;if(SZ(t))l=function(){return X0(t())};else{var c=X0(t);l=function(){return c}}function f(h,p){h===void 0&&(h=l());var m=jc([o[p.type]],a.filter(function(v){var y=v.matcher;return y(p)}).map(function(v){var y=v.reducer;return y}));return m.filter(function(v){return!!v}).length===0&&(m=[s]),m.reduce(function(v,y){if(y)if(Xo(v)){var w=v,_=y(w,p);return _===void 0?v:_}else{if(Xi(v))return _A(v,function(b){return y(b,p)});var _=y(v,p);if(_===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return _}return v},h)}return f.getInitialState=l,f}function OZ(t,e){return t+"/"+e}function kfe(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var n=typeof t.initialState=="function"?t.initialState:X0(t.initialState),r=t.reducers||{},i=Object.keys(r),o={},a={},s={};i.forEach(function(f){var h=r[f],p=OZ(e,f),m,v;"reducer"in h?(m=h.reducer,v=h.prepare):m=h,o[f]=m,a[p]=m,s[f]=v?Hi(p,v):Hi(p)});function l(){var f=typeof t.extraReducers=="function"?SA(t.extraReducers):[t.extraReducers],h=f[0],p=h===void 0?{}:h,m=f[1],v=m===void 0?[]:m,y=f[2],w=y===void 0?void 0:y,_=Ho(Ho({},p),a);return EZ(n,function(b){for(var S in _)b.addCase(S,_[S]);for(var O=0,M=v;O<M.length;O++){var C=M[O];b.addMatcher(C.matcher,C.reducer)}w&&b.addDefaultCase(w)})}var c;return{name:e,reducer:function(f,h){return c||(c=l()),c(f,h)},actions:s,caseReducers:o,getInitialState:function(){return c||(c=l()),c.getInitialState()}}}var PZ="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",EA=function(t){t===void 0&&(t=21);for(var e="",n=t;n--;)e+=PZ[Math.random()*64|0];return e},TZ=["name","message","stack","code"],Hy=function(){function t(e,n){this.payload=e,this.meta=n}return t}(),YP=function(){function t(e,n){this.payload=e,this.meta=n}return t}(),CZ=function(t){if(typeof t=="object"&&t!==null){for(var e={},n=0,r=TZ;n<r.length;n++){var i=r[n];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},Mfe=function(){function t(e,n,r){var i=Hi(e+"/fulfilled",function(c,f,h,p){return{payload:c,meta:zy(Ho({},p||{}),{arg:h,requestId:f,requestStatus:"fulfilled"})}}),o=Hi(e+"/pending",function(c,f,h){return{payload:void 0,meta:zy(Ho({},h||{}),{arg:f,requestId:c,requestStatus:"pending"})}}),a=Hi(e+"/rejected",function(c,f,h,p,m){return{payload:p,error:(r&&r.serializeError||CZ)(c||"Rejected"),meta:zy(Ho({},m||{}),{arg:h,requestId:f,rejectedWithValue:!!p,requestStatus:"rejected",aborted:(c==null?void 0:c.name)==="AbortError",condition:(c==null?void 0:c.name)==="ConditionError"})}}),s=typeof AbortController<"u"?AbortController:function(){function c(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return c.prototype.abort=function(){},c}();function l(c){return function(f,h,p){var m=r!=null&&r.idGenerator?r.idGenerator(c):EA(),v=new s,y;function w(b){y=b,v.abort()}var _=function(){return gf(this,null,function(){var b,S,O,M,C,R,$;return mf(this,function(U){switch(U.label){case 0:return U.trys.push([0,4,,5]),M=(b=r==null?void 0:r.condition)==null?void 0:b.call(r,c,{getState:h,extra:p}),MZ(M)?[4,M]:[3,2];case 1:M=U.sent(),U.label=2;case 2:if(M===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return C=new Promise(function(I,H){return v.signal.addEventListener("abort",function(){return H({name:"AbortError",message:y||"Aborted"})})}),f(o(m,c,(S=r==null?void 0:r.getPendingMeta)==null?void 0:S.call(r,{requestId:m,arg:c},{getState:h,extra:p}))),[4,Promise.race([C,Promise.resolve(n(c,{dispatch:f,getState:h,extra:p,requestId:m,signal:v.signal,abort:w,rejectWithValue:function(I,H){return new Hy(I,H)},fulfillWithValue:function(I,H){return new YP(I,H)}})).then(function(I){if(I instanceof Hy)throw I;return I instanceof YP?i(I.payload,m,c,I.meta):i(I,m,c)})])];case 3:return O=U.sent(),[3,5];case 4:return R=U.sent(),O=R instanceof Hy?a(null,m,c,R.payload,R.meta):a(R,m,c),[3,5];case 5:return $=r&&!r.dispatchConditionRejection&&a.match(O)&&O.meta.condition,$||f(O),[2,O]}})})}();return Object.assign(_,{abort:w,requestId:m,arg:c,unwrap:function(){return _.then(kZ)}})}}return Object.assign(l,{pending:o,rejected:a,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t}();function kZ(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function MZ(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var K2=function(t,e){if(typeof t!="function")throw new TypeError(e+" is not a function")},LZ=function(){},X2=function(t,e){return e===void 0&&(e=LZ),t.catch(e),t},OA=function(t,e){t.addEventListener("abort",e,{once:!0})},al=function(t,e){var n=t.signal;n.aborted||("reason"in n||Object.defineProperty(n,"reason",{enumerable:!0,value:e,configurable:!0,writable:!0}),t.abort(e))},RZ="task",PA="listener",TA="completed",Q2="cancelled",AZ="task-"+Q2,DZ="task-"+TA,CA=PA+"-"+Q2,NZ=PA+"-"+TA,Xg=function(){function t(e){this.code=e,this.name="TaskAbortError",this.message=RZ+" "+Q2+" (reason: "+e+")"}return t}(),sl=function(t){if(t.aborted)throw new Xg(t.reason)},kA=function(t){return X2(new Promise(function(e,n){var r=function(){return n(new Xg(t.reason))};t.aborted?r():OA(t,r)}))},IZ=function(t,e){return gf(void 0,null,function(){var n,r;return mf(this,function(i){switch(i.label){case 0:return i.trys.push([0,3,4,5]),[4,Promise.resolve()];case 1:return i.sent(),[4,t()];case 2:return n=i.sent(),[2,{status:"ok",value:n}];case 3:return r=i.sent(),[2,{status:r instanceof Xg?"cancelled":"rejected",error:r}];case 4:return e==null||e(),[7];case 5:return[2]}})})},Gp=function(t){return function(e){return X2(Promise.race([kA(t),e]).then(function(n){return sl(t),n}))}},MA=function(t){var e=Gp(t);return function(n){return e(new Promise(function(r){return setTimeout(r,n)}))}},FZ=Object.assign,qP={},vf="listenerMiddleware",$Z=function(t){var e=function(n){return OA(t,function(){return al(n,t.reason)})};return function(n){K2(n,"taskExecutor");var r=new AbortController;e(r);var i=IZ(function(){return gf(void 0,null,function(){var o;return mf(this,function(a){switch(a.label){case 0:return sl(t),sl(r.signal),[4,n({pause:Gp(r.signal),delay:MA(r.signal),signal:r.signal})];case 1:return o=a.sent(),sl(r.signal),[2,o]}})})},function(){return al(r,DZ)});return{result:Gp(t)(i),cancel:function(){al(r,AZ)}}}},jZ=function(t,e){var n=function(r,i){return gf(void 0,null,function(){var o,a,s,l;return mf(this,function(c){switch(c.label){case 0:sl(e),o=function(){},a=new Promise(function(f){o=t({predicate:r,effect:function(h,p){p.unsubscribe(),f([h,p.getState(),p.getOriginalState()])}})}),s=[kA(e),a],i!=null&&s.push(new Promise(function(f){return setTimeout(f,i,null)})),c.label=1;case 1:return c.trys.push([1,,3,4]),[4,Promise.race(s)];case 2:return l=c.sent(),sl(e),[2,l];case 3:return o(),[7];case 4:return[2]}})})};return function(r,i){return X2(n(r,i))}},LA=function(t){var e=t.type,n=t.actionCreator,r=t.matcher,i=t.predicate,o=t.effect;if(e)i=Hi(e).match;else if(n)e=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error("Creating or removing a listener requires one of the known fields for matching an action");return K2(o,"options.listener"),{predicate:i,type:e,effect:o}},BZ=function(t){var e=LA(t),n=e.type,r=e.predicate,i=e.effect,o=EA(),a={id:o,effect:i,type:n,predicate:r,pending:new Set,unsubscribe:function(){throw new Error("Unsubscribe not initialized")}};return a},zZ=function(t){return function(){t.forEach(Q0),t.clear()}},ZP=function(t,e,n){try{t(e,n)}catch(r){setTimeout(function(){throw r},0)}},HZ=Hi(vf+"/add"),UZ=Hi(vf+"/removeAll"),WZ=Hi(vf+"/remove"),VZ=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];console.error.apply(console,jc([vf+"/error"],t))},Q0=function(t){t.pending.forEach(function(e){al(e,CA)})};function Lfe(t){var e=this;t===void 0&&(t={});var n=new Map,r=t.extra,i=t.onError,o=i===void 0?VZ:i;K2(o,"onError");var a=function(m){return m.unsubscribe=function(){return n.delete(m.id)},n.set(m.id,m),function(v){m.unsubscribe(),v!=null&&v.cancelActive&&Q0(m)}},s=function(m){for(var v=0,y=Array.from(n.values());v<y.length;v++){var w=y[v];if(m(w))return w}},l=function(m){var v=s(function(y){return y.effect===m.effect});return v||(v=BZ(m)),a(v)},c=function(m){var v=LA(m),y=v.type,w=v.effect,_=v.predicate,b=s(function(S){var O=typeof y=="string"?S.type===y:S.predicate===_;return O&&S.effect===w});return b&&(b.unsubscribe(),m.cancelActive&&Q0(b)),!!b},f=function(m,v,y,w){return gf(e,null,function(){var _,b,S;return mf(this,function(O){switch(O.label){case 0:_=new AbortController,b=jZ(l,_.signal),O.label=1;case 1:return O.trys.push([1,3,4,5]),m.pending.add(_),[4,Promise.resolve(m.effect(v,FZ({},y,{getOriginalState:w,condition:function(M,C){return b(M,C).then(Boolean)},take:b,delay:MA(_.signal),pause:Gp(_.signal),extra:r,signal:_.signal,fork:$Z(_.signal),unsubscribe:m.unsubscribe,subscribe:function(){n.set(m.id,m)},cancelActiveListeners:function(){m.pending.forEach(function(M,C,R){M!==_&&(al(M,CA),R.delete(M))})}})))];case 2:return O.sent(),[3,5];case 3:return S=O.sent(),S instanceof Xg||ZP(o,S,{raisedBy:"effect"}),[3,5];case 4:return al(_,NZ),m.pending.delete(_),[7];case 5:return[2]}})})},h=zZ(n),p=function(m){return function(v){return function(y){if(HZ.match(y))return l(y.payload);if(UZ.match(y)){h();return}if(WZ.match(y))return c(y.payload);var w=m.getState(),_=function(){if(w===qP)throw new Error(vf+": getOriginalState can only be called synchronously");return w},b;try{if(b=v(y),n.size>0)for(var S=m.getState(),O=Array.from(n.values()),M=0,C=O;M<C.length;M++){var R=C[M],$=!1;try{$=R.predicate(y,S,w)}catch(U){$=!1,ZP(o,U,{raisedBy:"predicate"})}$&&f(R,y,m,_)}}finally{w=qP}return b}}};return{middleware:p,startListening:l,stopListening:c,clearListeners:h}}var GP;typeof queueMicrotask=="function"&&queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis);eZ();function Ge(t){if(t===null||t===!0||t===!1)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function Ee(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"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<h?7:0)+m-h;return p.setDate(p.getDate()-v),p.setHours(0,0,0,0),p}function Kp(t){return Ee(1,arguments),RA(t,{weekStartsOn:1})}function GZ(t){Ee(1,arguments);var e=Ce(t),n=e.getFullYear(),r=new Date(0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);var i=Kp(r),o=new Date(0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);var a=Kp(o);return e.getTime()>=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||n<i||isNaN(Number(i)))&&(n=i)}),n||new Date(NaN)}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 XP(t){Ee(1,arguments);var e;if(t&&typeof t.forEach=="function")e=t;else if(oh(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||n>i||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<h?-7:0)+6-(m-h);return p.setDate(p.getDate()+v),p.setHours(23,59,59,999),p}function Nfe(t){return Ee(1,arguments),uG(t,{weekStartsOn:1})}function NA(t,e){Ee(2,arguments);var n=Ge(e);return J2(t,-n)}var cG=864e5;function fG(t){Ee(1,arguments);var e=Ce(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),i=n-r;return Math.floor(i/cG)+1}function Tl(t){Ee(1,arguments);var e=1,n=Ce(t),r=n.getUTCDay(),i=(r<e?7:0)+r-e;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function IA(t){Ee(1,arguments);var e=Ce(t),n=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=Tl(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var a=Tl(o);return e.getTime()>=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<h?7:0)+m-h;return p.setUTCDate(p.getUTCDate()-v),p.setUTCHours(0,0,0,0),p}function ix(t,e){var n,r,i,o,a,s,l,c;Ee(1,arguments);var f=Ce(t),h=f.getUTCFullYear(),p=no(),m=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:p.firstWeekContainsDate)!==null&&r!==void 0?r:(l=p.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(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.length<e;)r="0"+r;return n+r}var gG={y:function(e,n){var r=e.getUTCFullYear(),i=r>0?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;n<t.length;n++)if(e(t[n]))return n}function VG(t){return function(e){var n=arguments.length>1&&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(m<iT){var y=Math.round(m/60);return a.formatDistance("aboutXHours",y,l)}else{if(m<pK)return a.formatDistance("xDays",1,l);if(m<Wy){var w=Math.round(m/iT);return a.formatDistance("xDays",w,l)}else if(m<mK)return v=Math.round(m/Wy),a.formatDistance("aboutXMonths",v,l)}if(v=oG(f,c),v<12){var _=Math.round(m/Wy);return a.formatDistance("xMonths",_,l)}else{var b=v%12,S=Math.floor(v/12);return b<3?a.formatDistance("aboutXYears",S,l):b<9?a.formatDistance("overXYears",S,l):a.formatDistance("almostXYears",S+1,l)}}function Ffe(t,e){var n,r;Ee(1,arguments);var i=Ce(t);if(isNaN(i.getTime()))throw new RangeError("Invalid time value");var o=String((n=e==null?void 0:e.format)!==null&&n!==void 0?n:"extended"),a=String((r=e==null?void 0:e.representation)!==null&&r!==void 0?r:"complete");if(o!=="extended"&&o!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(a!=="date"&&a!=="time"&&a!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var s="",l="",c=o==="extended"?"-":"",f=o==="extended"?":":"";if(a!=="time"){var h=Qe(i.getDate(),2),p=Qe(i.getMonth()+1,2),m=Qe(i.getFullYear(),4);s="".concat(m).concat(c).concat(p).concat(c).concat(h)}if(a!=="date"){var v=i.getTimezoneOffset();if(v!==0){var y=Math.abs(v),w=Qe(Math.floor(y/60),2),_=Qe(y%60,2),b=v<0?"+":"-";l="".concat(b).concat(w,":").concat(_)}else l="Z";var S=Qe(i.getHours(),2),O=Qe(i.getMinutes(),2),M=Qe(i.getSeconds(),2),C=s===""?"":"T",R=[S,O,M].join(f);s="".concat(s).concat(C).concat(R).concat(l)}return s}function oT(t){Ee(1,arguments);var e=Ce(t),n=e.getDate();return n}function gK(t){Ee(1,arguments);var e=Ce(t),n=e.getDay();return n}function vK(t){Ee(1,arguments);var e=Ce(t),n=e.getFullYear(),r=e.getMonth(),i=new Date(0);return i.setFullYear(n,r+1,0),i.setHours(0,0,0,0),i.getDate()}function Zr(t){Ee(1,arguments);var e=Ce(t),n=e.getHours();return n}var yK=6048e5;function _K(t){Ee(1,arguments);var e=Ce(t),n=Kp(e).getTime()-KZ(e).getTime();return Math.round(n/yK)+1}function Gr(t){Ee(1,arguments);var e=Ce(t),n=e.getMinutes();return n}function Vn(t){Ee(1,arguments);var e=Ce(t),n=e.getMonth();return n}function bK(t){Ee(1,arguments);var e=Ce(t),n=e.getSeconds();return n}function em(t){Ee(1,arguments);var e=Ce(t),n=e.getTime();return n}function $fe(t){return Ee(1,arguments),Math.floor(em(t)/1e3)}function lt(t){return Ee(1,arguments),Ce(t).getFullYear()}function Qo(t,e){Ee(2,arguments);var n=Ce(t),r=Ce(e);return n.getTime()>r.getTime()}function $i(t,e){Ee(2,arguments);var n=Ce(t),r=Ce(e);return n.getTime()<r.getTime()}function wK(t,e){Ee(2,arguments);var n=Ce(t),r=Ce(e);return n.getTime()===r.getTime()}function lh(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?lh=function(n){return typeof n}:lh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},lh(t)}function HA(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r1(t,e)}function r1(t,e){return r1=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},r1(t,e)}function UA(t){var e=SK();return function(){var r=tm(t),i;if(e){var o=tm(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return xK(this,i)}}function xK(t,e){return e&&(lh(e)==="object"||typeof e=="function")?e:i1(t)}function i1(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function SK(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function 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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function lx(t,e,n){return e&&aT(t.prototype,e),n&&aT(t,n),t}function o1(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var EK=10,WA=function(){function t(){sx(this,t),o1(this,"subPriority",0)}return lx(t,[{key:"validate",value:function(n,r){return!0}}]),t}(),OK=function(t){HA(n,t);var e=UA(n);function n(r,i,o,a,s){var l;return sx(this,n),l=e.call(this),l.value=r,l.validateValue=i,l.setValue=o,l.priority=a,s&&(l.subPriority=s),l}return lx(n,[{key:"validate",value:function(i,o){return this.validateValue(i,this.value,o)}},{key:"set",value:function(i,o,a){return this.setValue(i,o,this.value,a)}}]),n}(WA),PK=function(t){HA(n,t);var e=UA(n);function n(){var r;sx(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=e.call.apply(e,[this].concat(o)),o1(i1(r),"priority",EK),o1(i1(r),"subPriority",-1),r}return lx(n,[{key:"set",value:function(i,o){if(o.timestampIsSet)return i;var a=new Date(0);return a.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),a.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),a}}]),n}(WA);function TK(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function sT(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function CK(t,e,n){return e&&sT(t.prototype,e),n&&sT(t,n),t}var ut=function(){function t(){TK(this,t)}return CK(t,[{key:"run",value:function(n,r,i,o){var a=this.parse(n,r,i,o);return a?{setter:new OK(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}},{key:"validate",value:function(n,r,i){return!0}}]),t}();function uh(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?uh=function(n){return typeof n}:uh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},uh(t)}function kK(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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function MK(t,e,n){return e&&lT(t.prototype,e),n&&lT(t,n),t}function LK(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a1(t,e)}function a1(t,e){return a1=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},a1(t,e)}function RK(t){var e=DK();return function(){var r=nm(t),i;if(e){var o=nm(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return AK(this,i)}}function AK(t,e){return e&&(uh(e)==="object"||typeof e=="function")?e:s1(t)}function s1(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function DK(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function 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;a<i;a++)o[a]=arguments[a];return r=e.call.apply(e,[this].concat(o)),uT(s1(r),"priority",140),uT(s1(r),"incompatibleTokens",["R","u","t","T"]),r}return MK(n,[{key:"parse",value:function(i,o,a){switch(o){case"G":case"GG":case"GGG":return a.era(i,{width:"abbreviated"})||a.era(i,{width:"narrow"});case"GGGGG":return a.era(i,{width:"narrow"});case"GGGG":default:return a.era(i,{width:"wide"})||a.era(i,{width:"abbreviated"})||a.era(i,{width:"narrow"})}}},{key:"set",value:function(i,o,a){return o.era=a,i.setUTCFullYear(a,0,1),i.setUTCHours(0,0,0,0),i}}]),n}(ut),qt={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},fi={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Zt(t,e){return t&&{value:e(t.value),rest:t.rest}}function At(t,e){var n=e.match(t);return n?{value:parseInt(n[0],10),rest:e.slice(n[0].length)}:null}function di(t,e){var n=e.match(t);if(!n)return null;if(n[0]==="Z")return{value:0,rest:e.slice(1)};var r=n[1]==="+"?1:-1,i=n[2]?parseInt(n[2],10):0,o=n[3]?parseInt(n[3],10):0,a=n[5]?parseInt(n[5],10):0;return{value:r*(i*Qg+o*tx+a*JZ),rest:e.slice(n[0].length)}}function VA(t){return At(qt.anyDigitsSigned,t)}function Ht(t,e){switch(t){case 1:return At(qt.singleDigit,e);case 2:return At(qt.twoDigits,e);case 3:return At(qt.threeDigits,e);case 4:return At(qt.fourDigits,e);default:return At(new RegExp("^\\d{1,"+t+"}"),e)}}function rm(t,e){switch(t){case 1:return At(qt.singleDigitSigned,e);case 2:return At(qt.twoDigitsSigned,e);case 3:return At(qt.threeDigitsSigned,e);case 4:return At(qt.fourDigitsSigned,e);default:return At(new RegExp("^-?\\d{1,"+t+"}"),e)}}function ux(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function YA(t,e){var n=e>0,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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function FK(t,e,n){return e&&cT(t.prototype,e),n&&cT(t,n),t}function $K(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l1(t,e)}function l1(t,e){return l1=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},l1(t,e)}function jK(t){var e=zK();return function(){var r=im(t),i;if(e){var o=im(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return BK(this,i)}}function BK(t,e){return e&&(ch(e)==="object"||typeof e=="function")?e:u1(t)}function u1(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function zK(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function 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;a<i;a++)o[a]=arguments[a];return r=e.call.apply(e,[this].concat(o)),fT(u1(r),"priority",130),fT(u1(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return FK(n,[{key:"parse",value:function(i,o,a){var s=function(c){return{year:c,isTwoDigitYear:o==="yy"}};switch(o){case"y":return Zt(Ht(4,i),s);case"yo":return Zt(a.ordinalNumber(i,{unit:"year"}),s);default:return Zt(Ht(o.length,i),s)}}},{key:"validate",value:function(i,o){return o.isTwoDigitYear||o.year>0}},{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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function WK(t,e,n){return e&&dT(t.prototype,e),n&&dT(t,n),t}function VK(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c1(t,e)}function c1(t,e){return c1=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},c1(t,e)}function YK(t){var e=ZK();return function(){var r=om(t),i;if(e){var o=om(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return qK(this,i)}}function qK(t,e){return e&&(fh(e)==="object"||typeof e=="function")?e:f1(t)}function f1(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ZK(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function 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;a<i;a++)o[a]=arguments[a];return r=e.call.apply(e,[this].concat(o)),hT(f1(r),"priority",130),hT(f1(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return WK(n,[{key:"parse",value:function(i,o,a){var s=function(c){return{year:c,isTwoDigitYear:o==="YY"}};switch(o){case"Y":return Zt(Ht(4,i),s);case"Yo":return Zt(a.ordinalNumber(i,{unit:"year"}),s);default:return Zt(Ht(o.length,i),s)}}},{key:"validate",value:function(i,o){return o.isTwoDigitYear||o.year>0}},{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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function XK(t,e,n){return e&&pT(t.prototype,e),n&&pT(t,n),t}function QK(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d1(t,e)}function d1(t,e){return d1=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},d1(t,e)}function JK(t){var e=tX();return function(){var r=am(t),i;if(e){var o=am(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return eX(this,i)}}function eX(t,e){return e&&(dh(e)==="object"||typeof e=="function")?e:h1(t)}function h1(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function tX(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function 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<i;a++)o[a]=arguments[a];return r=e.call.apply(e,[this].concat(o)),mT(h1(r),"priority",130),mT(h1(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return XK(n,[{key:"parse",value:function(i,o){return rm(o==="R"?4:o.length,i)}},{key:"set",value:function(i,o,a){var s=new Date(0);return s.setUTCFullYear(a,0,4),s.setUTCHours(0,0,0,0),Tl(s)}}]),n}(ut);function hh(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?hh=function(n){return typeof n}:hh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},hh(t)}function rX(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function gT(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function iX(t,e,n){return e&&gT(t.prototype,e),n&&gT(t,n),t}function oX(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p1(t,e)}function p1(t,e){return p1=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},p1(t,e)}function aX(t){var e=lX();return function(){var r=sm(t),i;if(e){var o=sm(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return sX(this,i)}}function sX(t,e){return e&&(hh(e)==="object"||typeof e=="function")?e:m1(t)}function m1(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function lX(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function 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<i;a++)o[a]=arguments[a];return r=e.call.apply(e,[this].concat(o)),vT(m1(r),"priority",130),vT(m1(r),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),r}return iX(n,[{key:"parse",value:function(i,o){return rm(o==="u"?4:o.length,i)}},{key:"set",value:function(i,o,a){return i.setUTCFullYear(a,0,1),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 cX(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function yT(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function fX(t,e,n){return e&&yT(t.prototype,e),n&&yT(t,n),t}function dX(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&g1(t,e)}function g1(t,e){return g1=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},g1(t,e)}function hX(t){var e=mX();return function(){var r=lm(t),i;if(e){var o=lm(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return pX(this,i)}}function pX(t,e){return e&&(ph(e)==="object"||typeof e=="function")?e:v1(t)}function v1(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function mX(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function 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<i;a++)o[a]=arguments[a];return r=e.call.apply(e,[this].concat(o)),_T(v1(r),"priority",120),_T(v1(r),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),r}return fX(n,[{key:"parse",value:function(i,o,a){switch(o){case"Q":case"QQ":return Ht(o.length,i);case"Qo":return a.ordinalNumber(i,{unit:"quarter"});case"QQQ":return a.quarter(i,{width:"abbreviated",context:"formatting"})||a.quarter(i,{width:"narrow",context:"formatting"});case"QQQQQ":return a.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(i,{width:"wide",context:"formatting"})||a.quarter(i,{width:"abbreviated",context:"formatting"})||a.quarter(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function yX(t,e,n){return e&&bT(t.prototype,e),n&&bT(t,n),t}function _X(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&y1(t,e)}function y1(t,e){return y1=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},y1(t,e)}function bX(t){var e=xX();return function(){var r=um(t),i;if(e){var o=um(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return wX(this,i)}}function wX(t,e){return e&&(mh(e)==="object"||typeof e=="function")?e:_1(t)}function _1(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function xX(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function 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<i;a++)o[a]=arguments[a];return r=e.call.apply(e,[this].concat(o)),wT(_1(r),"priority",120),wT(_1(r),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),r}return yX(n,[{key:"parse",value:function(i,o,a){switch(o){case"q":case"qq":return Ht(o.length,i);case"qo":return a.ordinalNumber(i,{unit:"quarter"});case"qqq":return a.quarter(i,{width:"abbreviated",context:"standalone"})||a.quarter(i,{width:"narrow",context:"standalone"});case"qqqqq":return a.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(i,{width:"wide",context:"standalone"})||a.quarter(i,{width:"abbreviated",context:"standalone"})||a.quarter(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function OX(t,e,n){return e&&xT(t.prototype,e),n&&xT(t,n),t}function PX(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&b1(t,e)}function b1(t,e){return b1=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},b1(t,e)}function TX(t){var e=kX();return function(){var r=cm(t),i;if(e){var o=cm(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return CX(this,i)}}function CX(t,e){return e&&(gh(e)==="object"||typeof e=="function")?e:w1(t)}function w1(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function kX(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function 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<i;a++)o[a]=arguments[a];return r=e.call.apply(e,[this].concat(o)),ST(w1(r),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),ST(w1(r),"priority",110),r}return OX(n,[{key:"parse",value:function(i,o,a){var s=function(c){return c-1};switch(o){case"M":return Zt(At(qt.month,i),s);case"MM":return Zt(Ht(2,i),s);case"Mo":return Zt(a.ordinalNumber(i,{unit:"month"}),s);case"MMM":return a.month(i,{width:"abbreviated",context:"formatting"})||a.month(i,{width:"narrow",context:"formatting"});case"MMMMM":return a.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(i,{width:"wide",context:"formatting"})||a.month(i,{width:"abbreviated",context:"formatting"})||a.month(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function RX(t,e,n){return e&&ET(t.prototype,e),n&&ET(t,n),t}function AX(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&x1(t,e)}function x1(t,e){return x1=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},x1(t,e)}function DX(t){var e=IX();return function(){var r=fm(t),i;if(e){var o=fm(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return NX(this,i)}}function NX(t,e){return e&&(vh(e)==="object"||typeof e=="function")?e:S1(t)}function S1(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function IX(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function 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<i;a++)o[a]=arguments[a];return r=e.call.apply(e,[this].concat(o)),OT(S1(r),"priority",110),OT(S1(r),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),r}return RX(n,[{key:"parse",value:function(i,o,a){var s=function(c){return c-1};switch(o){case"L":return Zt(At(qt.month,i),s);case"LL":return Zt(Ht(2,i),s);case"Lo":return Zt(a.ordinalNumber(i,{unit:"month"}),s);case"LLL":return a.month(i,{width:"abbreviated",context:"standalone"})||a.month(i,{width:"narrow",context:"standalone"});case"LLLLL":return a.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(i,{width:"wide",context:"standalone"})||a.month(i,{width:"abbreviated",context:"standalone"})||a.month(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function BX(t,e,n){return e&&PT(t.prototype,e),n&&PT(t,n),t}function zX(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&E1(t,e)}function E1(t,e){return E1=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},E1(t,e)}function HX(t){var e=WX();return function(){var r=dm(t),i;if(e){var o=dm(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return UX(this,i)}}function UX(t,e){return e&&(yh(e)==="object"||typeof e=="function")?e:O1(t)}function O1(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function WX(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function 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<i;a++)o[a]=arguments[a];return r=e.call.apply(e,[this].concat(o)),TT(O1(r),"priority",100),TT(O1(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),r}return BX(n,[{key:"parse",value:function(i,o,a){switch(o){case"w":return At(qt.week,i);case"wo":return a.ordinalNumber(i,{unit:"week"});default:return Ht(o.length,i)}}},{key:"validate",value:function(i,o){return o>=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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ZX(t,e,n){return e&&CT(t.prototype,e),n&&CT(t,n),t}function GX(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&P1(t,e)}function P1(t,e){return P1=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},P1(t,e)}function KX(t){var e=QX();return function(){var r=hm(t),i;if(e){var o=hm(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return XX(this,i)}}function XX(t,e){return e&&(_h(e)==="object"||typeof e=="function")?e:T1(t)}function T1(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function QX(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function 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<i;a++)o[a]=arguments[a];return r=e.call.apply(e,[this].concat(o)),kT(T1(r),"priority",100),kT(T1(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),r}return ZX(n,[{key:"parse",value:function(i,o,a){switch(o){case"I":return At(qt.week,i);case"Io":return a.ordinalNumber(i,{unit:"week"});default:return Ht(o.length,i)}}},{key:"validate",value:function(i,o){return o>=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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function tQ(t,e,n){return e&&MT(t.prototype,e),n&&MT(t,n),t}function nQ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&C1(t,e)}function C1(t,e){return C1=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},C1(t,e)}function rQ(t){var e=oQ();return function(){var r=pm(t),i;if(e){var o=pm(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return iQ(this,i)}}function iQ(t,e){return e&&(bh(e)==="object"||typeof e=="function")?e:wh(t)}function wh(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function oQ(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function 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<i;a++)o[a]=arguments[a];return r=e.call.apply(e,[this].concat(o)),Vy(wh(r),"priority",90),Vy(wh(r),"subPriority",1),Vy(wh(r),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),r}return tQ(n,[{key:"parse",value:function(i,o,a){switch(o){case"d":return At(qt.date,i);case"do":return a.ordinalNumber(i,{unit:"date"});default:return Ht(o.length,i)}}},{key:"validate",value:function(i,o){var a=i.getUTCFullYear(),s=qA(a),l=i.getUTCMonth();return s?o>=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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function cQ(t,e,n){return e&<(t.prototype,e),n&<(t,n),t}function fQ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&k1(t,e)}function k1(t,e){return k1=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},k1(t,e)}function dQ(t){var e=pQ();return function(){var r=mm(t),i;if(e){var o=mm(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return hQ(this,i)}}function hQ(t,e){return e&&(xh(e)==="object"||typeof e=="function")?e:Sh(t)}function Sh(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function pQ(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function 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<i;a++)o[a]=arguments[a];return r=e.call.apply(e,[this].concat(o)),Yy(Sh(r),"priority",90),Yy(Sh(r),"subpriority",1),Yy(Sh(r),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),r}return cQ(n,[{key:"parse",value:function(i,o,a){switch(o){case"D":case"DD":return At(qt.dayOfYear,i);case"Do":return a.ordinalNumber(i,{unit:"date"});default:return Ht(o.length,i)}}},{key:"validate",value:function(i,o){var a=i.getUTCFullYear(),s=qA(a);return s?o>=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=(_<p?7:0)+v-y;return m.setUTCDate(m.getUTCDate()+b),m}function Eh(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Eh=function(n){return typeof n}:Eh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Eh(t)}function gQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function RT(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function vQ(t,e,n){return e&&RT(t.prototype,e),n&&RT(t,n),t}function yQ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&M1(t,e)}function M1(t,e){return M1=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},M1(t,e)}function _Q(t){var e=wQ();return function(){var r=gm(t),i;if(e){var o=gm(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return bQ(this,i)}}function bQ(t,e){return e&&(Eh(e)==="object"||typeof e=="function")?e:L1(t)}function L1(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function wQ(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function 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<i;a++)o[a]=arguments[a];return r=e.call.apply(e,[this].concat(o)),AT(L1(r),"priority",90),AT(L1(r),"incompatibleTokens",["D","i","e","c","t","T"]),r}return vQ(n,[{key:"parse",value:function(i,o,a){switch(o){case"E":case"EE":case"EEE":return a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"EEEEE":return a.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"EEEE":default:return a.day(i,{width:"wide",context:"formatting"})||a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function EQ(t,e,n){return e&&DT(t.prototype,e),n&&DT(t,n),t}function OQ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&R1(t,e)}function R1(t,e){return R1=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},R1(t,e)}function PQ(t){var e=CQ();return function(){var r=vm(t),i;if(e){var o=vm(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return TQ(this,i)}}function TQ(t,e){return e&&(Oh(e)==="object"||typeof e=="function")?e:A1(t)}function A1(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function CQ(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function 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<i;a++)o[a]=arguments[a];return r=e.call.apply(e,[this].concat(o)),NT(A1(r),"priority",90),NT(A1(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),r}return EQ(n,[{key:"parse",value:function(i,o,a,s){var l=function(f){var h=Math.floor((f-1)/7)*7;return(f+s.weekStartsOn+6)%7+h};switch(o){case"e":case"ee":return Zt(Ht(o.length,i),l);case"eo":return Zt(a.ordinalNumber(i,{unit:"day"}),l);case"eee":return a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"eeeee":return a.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"});case"eeee":default:return a.day(i,{width:"wide",context:"formatting"})||a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,o){return o>=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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function LQ(t,e,n){return e&&IT(t.prototype,e),n&&IT(t,n),t}function RQ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&D1(t,e)}function D1(t,e){return D1=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},D1(t,e)}function AQ(t){var e=NQ();return function(){var r=ym(t),i;if(e){var o=ym(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return DQ(this,i)}}function DQ(t,e){return e&&(Ph(e)==="object"||typeof e=="function")?e:N1(t)}function N1(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function NQ(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function 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<i;a++)o[a]=arguments[a];return r=e.call.apply(e,[this].concat(o)),FT(N1(r),"priority",90),FT(N1(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),r}return LQ(n,[{key:"parse",value:function(i,o,a,s){var l=function(f){var h=Math.floor((f-1)/7)*7;return(f+s.weekStartsOn+6)%7+h};switch(o){case"c":case"cc":return Zt(Ht(o.length,i),l);case"co":return Zt(a.ordinalNumber(i,{unit:"day"}),l);case"ccc":return a.day(i,{width:"abbreviated",context:"standalone"})||a.day(i,{width:"short",context:"standalone"})||a.day(i,{width:"narrow",context:"standalone"});case"ccccc":return a.day(i,{width:"narrow",context:"standalone"});case"cccccc":return a.day(i,{width:"short",context:"standalone"})||a.day(i,{width:"narrow",context:"standalone"});case"cccc":default:return a.day(i,{width:"wide",context:"standalone"})||a.day(i,{width:"abbreviated",context:"standalone"})||a.day(i,{width:"short",context:"standalone"})||a.day(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,o){return o>=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<r?7:0)+n-o;return i.setUTCDate(i.getUTCDate()+l),i}function Th(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Th=function(n){return typeof n}:Th=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Th(t)}function $Q(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $T(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function jQ(t,e,n){return e&&$T(t.prototype,e),n&&$T(t,n),t}function BQ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&I1(t,e)}function I1(t,e){return I1=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},I1(t,e)}function zQ(t){var e=UQ();return function(){var r=_m(t),i;if(e){var o=_m(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return HQ(this,i)}}function HQ(t,e){return e&&(Th(e)==="object"||typeof e=="function")?e:F1(t)}function F1(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function UQ(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _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<i;a++)o[a]=arguments[a];return r=e.call.apply(e,[this].concat(o)),jT(F1(r),"priority",90),jT(F1(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),r}return jQ(n,[{key:"parse",value:function(i,o,a){var s=function(c){return c===0?7:c};switch(o){case"i":case"ii":return Ht(o.length,i);case"io":return a.ordinalNumber(i,{unit:"day"});case"iii":return Zt(a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"}),s);case"iiiii":return Zt(a.day(i,{width:"narrow",context:"formatting"}),s);case"iiiiii":return Zt(a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"}),s);case"iiii":default:return Zt(a.day(i,{width:"wide",context:"formatting"})||a.day(i,{width:"abbreviated",context:"formatting"})||a.day(i,{width:"short",context:"formatting"})||a.day(i,{width:"narrow",context:"formatting"}),s)}}},{key:"validate",value:function(i,o){return o>=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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function YQ(t,e,n){return e&&BT(t.prototype,e),n&&BT(t,n),t}function qQ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&$1(t,e)}function $1(t,e){return $1=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},$1(t,e)}function ZQ(t){var e=KQ();return function(){var r=bm(t),i;if(e){var o=bm(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return GQ(this,i)}}function GQ(t,e){return e&&(Ch(e)==="object"||typeof e=="function")?e:j1(t)}function j1(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function KQ(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function 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<i;a++)o[a]=arguments[a];return r=e.call.apply(e,[this].concat(o)),zT(j1(r),"priority",80),zT(j1(r),"incompatibleTokens",["b","B","H","k","t","T"]),r}return YQ(n,[{key:"parse",value:function(i,o,a){switch(o){case"a":case"aa":case"aaa":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaaa":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})||a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,a){return i.setUTCHours(ux(a),0,0,0),i}}]),n}(ut);function kh(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?kh=function(n){return typeof n}:kh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},kh(t)}function QQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function HT(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function JQ(t,e,n){return e&&HT(t.prototype,e),n&&HT(t,n),t}function eJ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&B1(t,e)}function B1(t,e){return B1=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},B1(t,e)}function tJ(t){var e=rJ();return function(){var r=wm(t),i;if(e){var o=wm(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return nJ(this,i)}}function nJ(t,e){return e&&(kh(e)==="object"||typeof e=="function")?e:z1(t)}function z1(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function rJ(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function 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<i;a++)o[a]=arguments[a];return r=e.call.apply(e,[this].concat(o)),UT(z1(r),"priority",80),UT(z1(r),"incompatibleTokens",["a","B","H","k","t","T"]),r}return JQ(n,[{key:"parse",value:function(i,o,a){switch(o){case"b":case"bb":case"bbb":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbbb":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})||a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,a){return i.setUTCHours(ux(a),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 oJ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function WT(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function aJ(t,e,n){return e&&WT(t.prototype,e),n&&WT(t,n),t}function sJ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&H1(t,e)}function H1(t,e){return H1=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},H1(t,e)}function lJ(t){var e=cJ();return function(){var r=xm(t),i;if(e){var o=xm(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return uJ(this,i)}}function uJ(t,e){return e&&(Mh(e)==="object"||typeof e=="function")?e:U1(t)}function U1(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function cJ(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function 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<i;a++)o[a]=arguments[a];return r=e.call.apply(e,[this].concat(o)),VT(U1(r),"priority",80),VT(U1(r),"incompatibleTokens",["a","b","t","T"]),r}return aJ(n,[{key:"parse",value:function(i,o,a){switch(o){case"B":case"BB":case"BBB":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBBB":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})||a.dayPeriod(i,{width:"abbreviated",context:"formatting"})||a.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,o,a){return i.setUTCHours(ux(a),0,0,0),i}}]),n}(ut);function Lh(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Lh=function(n){return typeof n}:Lh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Lh(t)}function dJ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function YT(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function hJ(t,e,n){return e&&YT(t.prototype,e),n&&YT(t,n),t}function pJ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&W1(t,e)}function W1(t,e){return W1=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},W1(t,e)}function mJ(t){var e=vJ();return function(){var r=Sm(t),i;if(e){var o=Sm(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return gJ(this,i)}}function gJ(t,e){return e&&(Lh(e)==="object"||typeof e=="function")?e:V1(t)}function V1(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function vJ(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function 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<i;a++)o[a]=arguments[a];return r=e.call.apply(e,[this].concat(o)),qT(V1(r),"priority",70),qT(V1(r),"incompatibleTokens",["H","K","k","t","T"]),r}return hJ(n,[{key:"parse",value:function(i,o,a){switch(o){case"h":return At(qt.hour12h,i);case"ho":return a.ordinalNumber(i,{unit:"hour"});default:return Ht(o.length,i)}}},{key:"validate",value:function(i,o){return o>=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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function bJ(t,e,n){return e&&ZT(t.prototype,e),n&&ZT(t,n),t}function wJ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Y1(t,e)}function Y1(t,e){return Y1=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Y1(t,e)}function xJ(t){var e=EJ();return function(){var r=Em(t),i;if(e){var o=Em(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return SJ(this,i)}}function SJ(t,e){return e&&(Rh(e)==="object"||typeof e=="function")?e:q1(t)}function q1(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function EJ(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function 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<i;a++)o[a]=arguments[a];return r=e.call.apply(e,[this].concat(o)),GT(q1(r),"priority",70),GT(q1(r),"incompatibleTokens",["a","b","h","K","k","t","T"]),r}return bJ(n,[{key:"parse",value:function(i,o,a){switch(o){case"H":return At(qt.hour23h,i);case"Ho":return a.ordinalNumber(i,{unit:"hour"});default:return Ht(o.length,i)}}},{key:"validate",value:function(i,o){return o>=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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function TJ(t,e,n){return e&&KT(t.prototype,e),n&&KT(t,n),t}function CJ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Z1(t,e)}function Z1(t,e){return Z1=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Z1(t,e)}function kJ(t){var e=LJ();return function(){var r=Om(t),i;if(e){var o=Om(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return MJ(this,i)}}function MJ(t,e){return e&&(Ah(e)==="object"||typeof e=="function")?e:G1(t)}function G1(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function LJ(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function 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<i;a++)o[a]=arguments[a];return r=e.call.apply(e,[this].concat(o)),XT(G1(r),"priority",70),XT(G1(r),"incompatibleTokens",["h","H","k","t","T"]),r}return TJ(n,[{key:"parse",value:function(i,o,a){switch(o){case"K":return At(qt.hour11h,i);case"Ko":return a.ordinalNumber(i,{unit:"hour"});default:return Ht(o.length,i)}}},{key:"validate",value:function(i,o){return o>=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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function DJ(t,e,n){return e&&QT(t.prototype,e),n&&QT(t,n),t}function NJ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&K1(t,e)}function K1(t,e){return K1=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},K1(t,e)}function IJ(t){var e=$J();return function(){var r=Pm(t),i;if(e){var o=Pm(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return FJ(this,i)}}function FJ(t,e){return e&&(Dh(e)==="object"||typeof e=="function")?e:X1(t)}function X1(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function $J(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function 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<i;a++)o[a]=arguments[a];return r=e.call.apply(e,[this].concat(o)),JT(X1(r),"priority",70),JT(X1(r),"incompatibleTokens",["a","b","h","H","K","t","T"]),r}return DJ(n,[{key:"parse",value:function(i,o,a){switch(o){case"k":return At(qt.hour24h,i);case"ko":return a.ordinalNumber(i,{unit:"hour"});default:return Ht(o.length,i)}}},{key:"validate",value:function(i,o){return o>=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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function zJ(t,e,n){return e&&eC(t.prototype,e),n&&eC(t,n),t}function HJ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Q1(t,e)}function Q1(t,e){return Q1=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Q1(t,e)}function UJ(t){var e=VJ();return function(){var r=Tm(t),i;if(e){var o=Tm(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return WJ(this,i)}}function WJ(t,e){return e&&(Nh(e)==="object"||typeof e=="function")?e:J1(t)}function J1(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function VJ(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function 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<i;a++)o[a]=arguments[a];return r=e.call.apply(e,[this].concat(o)),tC(J1(r),"priority",60),tC(J1(r),"incompatibleTokens",["t","T"]),r}return zJ(n,[{key:"parse",value:function(i,o,a){switch(o){case"m":return At(qt.minute,i);case"mo":return a.ordinalNumber(i,{unit:"minute"});default:return Ht(o.length,i)}}},{key:"validate",value:function(i,o){return o>=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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ZJ(t,e,n){return e&&nC(t.prototype,e),n&&nC(t,n),t}function GJ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&eb(t,e)}function eb(t,e){return eb=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},eb(t,e)}function KJ(t){var e=QJ();return function(){var r=Cm(t),i;if(e){var o=Cm(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return XJ(this,i)}}function XJ(t,e){return e&&(Ih(e)==="object"||typeof e=="function")?e:tb(t)}function tb(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function QJ(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function 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<i;a++)o[a]=arguments[a];return r=e.call.apply(e,[this].concat(o)),rC(tb(r),"priority",50),rC(tb(r),"incompatibleTokens",["t","T"]),r}return ZJ(n,[{key:"parse",value:function(i,o,a){switch(o){case"s":return At(qt.second,i);case"so":return a.ordinalNumber(i,{unit:"second"});default:return Ht(o.length,i)}}},{key:"validate",value:function(i,o){return o>=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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function tee(t,e,n){return e&&iC(t.prototype,e),n&&iC(t,n),t}function nee(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&nb(t,e)}function nb(t,e){return nb=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},nb(t,e)}function ree(t){var e=oee();return function(){var r=km(t),i;if(e){var o=km(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return iee(this,i)}}function iee(t,e){return e&&(Fh(e)==="object"||typeof e=="function")?e:rb(t)}function rb(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function oee(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function 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<i;a++)o[a]=arguments[a];return r=e.call.apply(e,[this].concat(o)),oC(rb(r),"priority",30),oC(rb(r),"incompatibleTokens",["t","T"]),r}return tee(n,[{key:"parse",value:function(i,o){var a=function(l){return Math.floor(l*Math.pow(10,-o.length+3))};return Zt(Ht(o.length,i),a)}},{key:"set",value:function(i,o,a){return i.setUTCMilliseconds(a),i}}]),n}(ut);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 see(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function aC(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function lee(t,e,n){return e&&aC(t.prototype,e),n&&aC(t,n),t}function uee(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ib(t,e)}function ib(t,e){return ib=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},ib(t,e)}function cee(t){var e=dee();return function(){var r=Mm(t),i;if(e){var o=Mm(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return fee(this,i)}}function fee(t,e){return e&&($h(e)==="object"||typeof e=="function")?e:ob(t)}function ob(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function dee(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function 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<i;a++)o[a]=arguments[a];return r=e.call.apply(e,[this].concat(o)),sC(ob(r),"priority",10),sC(ob(r),"incompatibleTokens",["t","T","x"]),r}return lee(n,[{key:"parse",value:function(i,o){switch(o){case"X":return di(fi.basicOptionalMinutes,i);case"XX":return di(fi.basic,i);case"XXXX":return di(fi.basicOptionalSeconds,i);case"XXXXX":return di(fi.extendedOptionalSeconds,i);case"XXX":default:return di(fi.extended,i)}}},{key:"set",value:function(i,o,a){return o.timestampIsSet?i:new Date(i.getTime()-a)}}]),n}(ut);function jh(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?jh=function(n){return typeof n}:jh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},jh(t)}function pee(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function lC(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function mee(t,e,n){return e&&lC(t.prototype,e),n&&lC(t,n),t}function gee(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ab(t,e)}function ab(t,e){return ab=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},ab(t,e)}function vee(t){var e=_ee();return function(){var r=Lm(t),i;if(e){var o=Lm(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return yee(this,i)}}function yee(t,e){return e&&(jh(e)==="object"||typeof e=="function")?e:sb(t)}function sb(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _ee(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function 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<i;a++)o[a]=arguments[a];return r=e.call.apply(e,[this].concat(o)),uC(sb(r),"priority",10),uC(sb(r),"incompatibleTokens",["t","T","X"]),r}return mee(n,[{key:"parse",value:function(i,o){switch(o){case"x":return di(fi.basicOptionalMinutes,i);case"xx":return di(fi.basic,i);case"xxxx":return di(fi.basicOptionalSeconds,i);case"xxxxx":return di(fi.extendedOptionalSeconds,i);case"xxx":default:return di(fi.extended,i)}}},{key:"set",value:function(i,o,a){return o.timestampIsSet?i:new Date(i.getTime()-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 wee(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function cC(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function xee(t,e,n){return e&&cC(t.prototype,e),n&&cC(t,n),t}function See(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&lb(t,e)}function lb(t,e){return lb=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},lb(t,e)}function Eee(t){var e=Pee();return function(){var r=Rm(t),i;if(e){var o=Rm(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Oee(this,i)}}function Oee(t,e){return e&&(Bh(e)==="object"||typeof e=="function")?e:ub(t)}function ub(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Pee(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function 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<i;a++)o[a]=arguments[a];return r=e.call.apply(e,[this].concat(o)),fC(ub(r),"priority",40),fC(ub(r),"incompatibleTokens","*"),r}return xee(n,[{key:"parse",value:function(i){return VA(i)}},{key:"set",value:function(i,o,a){return[new Date(a*1e3),{timestampIsSet:!0}]}}]),n}(ut);function zh(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?zh=function(n){return typeof n}:zh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},zh(t)}function Cee(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dC(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function kee(t,e,n){return e&&dC(t.prototype,e),n&&dC(t,n),t}function Mee(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&cb(t,e)}function cb(t,e){return cb=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},cb(t,e)}function Lee(t){var e=Aee();return function(){var r=Am(t),i;if(e){var o=Am(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Ree(this,i)}}function Ree(t,e){return e&&(zh(e)==="object"||typeof e=="function")?e:fb(t)}function fb(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Aee(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function 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<i;a++)o[a]=arguments[a];return r=e.call.apply(e,[this].concat(o)),hC(fb(r),"priority",20),hC(fb(r),"incompatibleTokens","*"),r}return kee(n,[{key:"parse",value:function(i){return VA(i)}},{key:"set",value:function(i,o,a){return[new Date(a),{timestampIsSet:!0}]}}]),n}(ut),Nee={G:new NK,y:new HK,Y:new GK,R:new nX,u:new uX,Q:new gX,q:new SX,M:new MX,L:new FX,w:new VX,I:new JX,d:new lQ,D:new mQ,E:new xQ,e:new kQ,c:new IQ,i:new WQ,a:new XQ,b:new iJ,B:new fJ,h:new yJ,H:new OJ,K:new RJ,k:new jJ,m:new YJ,s:new JJ,S:new aee,X:new hee,x:new bee,t:new Tee,T:new Dee};function Hh(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Hh=function(n){return typeof n}:Hh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Hh(t)}function pC(t,e){var n;if(typeof Symbol>"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<e;n++)r[n]=t[n];return r}var Fee=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,$ee=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,jee=/^'([^]*?)'?$/,Bee=/''/g,zee=/\S/,Hee=/[a-zA-Z]/;function qy(t,e,n,r){var i,o,a,s,l,c,f,h,p,m,v,y,w,_,b,S,O,M;Ee(3,arguments);var C=String(t),R=String(e),$=no(),U=(i=(o=r==null?void 0:r.locale)!==null&&o!==void 0?o:$.locale)!==null&&i!==void 0?i:ox;if(!U.match)throw new RangeError("locale must contain match property");var I=Ge((a=(s=(l=(c=r==null?void 0:r.firstWeekContainsDate)!==null&&c!==void 0?c:r==null||(f=r.locale)===null||f===void 0||(h=f.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&l!==void 0?l:$.firstWeekContainsDate)!==null&&s!==void 0?s:(p=$.locale)===null||p===void 0||(m=p.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(I>=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<r.length;o++)i=r[o],!(e.indexOf(i)>=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<n;i++)r[i-1]=arguments[i];return e.apply(void 0,r)}},pb=function(e,n){if(typeof e=="function")return QA(e,n);e!=null&&(e.current=n)},yC=function(e){return e.reduce(function(n,r){var i=r[0],o=r[1];return n[i]=o,n},{})},_C=typeof window<"u"&&window.document&&window.document.createElement?Q.useLayoutEffect:Q.useEffect,Ste=[],Ete=function(e,n,r){r===void 0&&(r={});var i=Q.useRef(null),o={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||Ste},a=Q.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=a[0],l=a[1],c=Q.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(m){var v=m.state,y=Object.keys(v.elements);l({styles:yC(y.map(function(w){return[w,v.styles[w]||{}]})),attributes:yC(y.map(function(w){return[w,v.attributes[w]]}))})},requires:["computeStyles"]}},[]),f=Q.useMemo(function(){var p={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[c,{name:"applyStyles",enabled:!1}])};return gR(i.current,p)?i.current||p:(i.current=p,p)},[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,c]),h=Q.useRef();return _C(function(){h.current&&h.current.setOptions(f)},[f]),_C(function(){if(!(e==null||n==null)){var p=r.createPopper||mR,m=p(e,n,f);return h.current=m,function(){m.destroy(),h.current=null}}},[e,n,r.createPopper]),{state:h.current?h.current.state:null,styles:s.styles,attributes:s.attributes,update:h.current?h.current.update:null,forceUpdate:h.current?h.current.forceUpdate:null}},Ote=function(){},Pte=function(){return Promise.resolve(null)},Tte=[];function Cte(t){var e=t.placement,n=e===void 0?"bottom":e,r=t.strategy,i=r===void 0?"absolute":r,o=t.modifiers,a=o===void 0?Tte:o,s=t.referenceElement,l=t.onFirstUpdate,c=t.innerRef,f=t.children,h=Q.useContext(GA),p=Q.useState(null),m=p[0],v=p[1],y=Q.useState(null),w=y[0],_=y[1];Q.useEffect(function(){pb(c,m)},[c,m]);var b=Q.useMemo(function(){return{placement:n,strategy:i,onFirstUpdate:l,modifiers:[].concat(a,[{name:"arrow",enabled:w!=null,options:{element:w}}])}},[n,i,l,a,w]),S=Ete(s||h,m,b),O=S.state,M=S.styles,C=S.forceUpdate,R=S.update,$=Q.useMemo(function(){return{ref:v,style:M.popper,placement:O?O.placement:n,hasPopperEscaped:O&&O.modifiersData.hide?O.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:O&&O.modifiersData.hide?O.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:M.arrow,ref:_},forceUpdate:C||Ote,update:R||Pte}},[v,_,n,O,M,R,C]);return XA(f)($)}function kte(t){var e=t.children,n=t.innerRef,r=Q.useContext(KA),i=Q.useCallback(function(o){pb(n,o),QA(r,o)},[n,r]);return Q.useEffect(function(){return function(){return pb(n,null)}}),Q.useEffect(function(){},[r]),XA(e)({ref:i})}function bC(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 wC(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?bC(Object(n),!0).forEach(function(r){te(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bC(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function JA(t){return(JA=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})(t)}function gn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xC(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function vn(t,e,n){return e&&xC(t.prototype,e),n&&xC(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function te(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ev(){return(ev=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function yn(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(t,"prototype",{value:Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),writable:!1}),e&&eD(t,e)}function mb(t){return(mb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(t)}function eD(t,e){return(eD=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n})(t,e)}function oe(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Mte(t,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return oe(t)}function _n(t){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();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);n<e;n++)r[n]=t[n];return r}function SC(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}}function EC(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}}var Lte={p:EC,P:function(t,e){var n,r=t.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return SC(t,e);switch(i){case"P":n=e.dateTime({width:"short"});break;case"PP":n=e.dateTime({width:"medium"});break;case"PPP":n=e.dateTime({width:"long"});break;case"PPPP":default:n=e.dateTime({width:"full"})}return n.replace("{{date}}",SC(i,e)).replace("{{time}}",EC(o,e))}},Rte=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;function nn(t){var e=t?typeof t=="string"||t instanceof String?Zee(t):Ce(t):new Date;return vo(e)?e:null}function Ate(t,e,n,r,i){var o=null,a=Uo(n)||Uo(za()),s=!0;return Array.isArray(e)?(e.forEach(function(l){var c=qy(t,l,new Date,{locale:a});r&&(s=vo(c,i)&&t===Gt(c,l,n)),vo(c,i)&&s&&(o=c)}),o):(o=qy(t,e,new Date,{locale:a}),r?s=vo(o)&&t===Gt(o,e,n):vo(o)||(e=e.match(Rte).map(function(l){var c=l[0];return c==="p"||c==="P"?a?(0,Lte[c])(l,a.formatLong):c:l}).join(""),t.length>0&&(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<a?l===i&&o<=n||l===a&&s>=n||l<a&&l>i: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<a?l===i&&o<=n||l===a&&s>=n||l<a&&l>i: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;r<i;r++){var o=t[r];if(nx(o)){var a=Gt(o,"MM.dd.yyyy"),s=n.get(a)||[];s.includes(e)||(s.push(e),n.set(a,s))}else if(JA(o)==="object"){var l=Object.keys(o),c=l[0],f=o[l[0]];if(typeof c=="string"&&f.constructor===Array)for(var h=0,p=f.length;h<p;h++){var m=Gt(f[h],"MM.dd.yyyy"),v=n.get(m)||[];v.includes(c)||(v.push(c),n.set(m,v))}}}return n}function Wte(t,e,n,r,i){for(var o=i.length,a=[],s=0;s<o;s++){var l=J0(qZ(t,Zr(i[s])),Gr(i[s])),c=J0(t,(n+1)*r);Qo(l,e)&&$i(l,c)&&a.push(i[s])}return a}function DC(t){return t<10?"0".concat(t):"".concat(t)}function ec(t){var e=arguments.length>1&&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;a<i;a++)o[a]=arguments[a];return te(oe(r=e.call.apply(e,[this].concat(o))),"state",{dropdownVisible:!1}),te(oe(r),"renderSelectOptions",function(){for(var s=r.props.minDate?lt(r.props.minDate):1900,l=r.props.maxDate?lt(r.props.maxDate):2100,c=[],f=s;f<=l;f++)c.push(j.createElement("option",{key:f,value:f},f));return c}),te(oe(r),"onSelectChange",function(s){r.onChange(s.target.value)}),te(oe(r),"renderSelectMode",function(){return j.createElement("select",{value:r.props.year,className:"react-datepicker__year-select",onChange:r.onSelectChange},r.renderSelectOptions())}),te(oe(r),"renderReadView",function(s){return j.createElement("div",{key:"read",style:{visibility:s?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(l){return r.toggleDropdown(l)}},j.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),j.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},r.props.year))}),te(oe(r),"renderDropdown",function(){return j.createElement(Yte,{key:"dropdown",year:r.props.year,onChange:r.onChange,onCancel:r.toggleDropdown,minDate:r.props.minDate,maxDate:r.props.maxDate,scrollableYearDropdown:r.props.scrollableYearDropdown,yearDropdownItemNumber:r.props.yearDropdownItemNumber})}),te(oe(r),"renderScrollMode",function(){var s=r.state.dropdownVisible,l=[r.renderReadView(!s)];return s&&l.unshift(r.renderDropdown()),l}),te(oe(r),"onChange",function(s){r.toggleDropdown(),s!==r.props.year&&r.props.onChange(s)}),te(oe(r),"toggleDropdown",function(s){r.setState({dropdownVisible:!r.state.dropdownVisible},function(){r.props.adjustDateOnChange&&r.handleYearChange(r.props.date,s)})}),te(oe(r),"handleYearChange",function(s,l){r.onSelect(s,l),r.setOpen()}),te(oe(r),"onSelect",function(s,l){r.props.onSelect&&r.props.onSelect(s,l)}),te(oe(r),"setOpen",function(){r.props.setOpen&&r.props.setOpen(!0)}),r}return vn(n,[{key:"render",value:function(){var r;switch(this.props.dropdownMode){case"scroll":r=this.renderScrollMode();break;case"select":r=this.renderSelectMode()}return j.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},r)}}]),n}(),Zte=Jg(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<i;a++)o[a]=arguments[a];return te(oe(r=e.call.apply(e,[this].concat(o))),"isSelectedMonth",function(s){return r.props.month===s}),te(oe(r),"renderOptions",function(){return r.props.monthNames.map(function(s,l){return j.createElement("div",{className:r.isSelectedMonth(l)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:s,onClick:r.onChange.bind(oe(r),l),"aria-selected":r.isSelectedMonth(l)?"true":void 0},r.isSelectedMonth(l)?j.createElement("span",{className:"react-datepicker__month-option--selected"},"✓"):"",s)})}),te(oe(r),"onChange",function(s){return r.props.onChange(s)}),te(oe(r),"handleClickOutside",function(){return r.props.onCancel()}),r}return vn(n,[{key:"render",value:function(){return j.createElement("div",{className:"react-datepicker__month-dropdown"},this.renderOptions())}}]),n}()),Gte=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<i;a++)o[a]=arguments[a];return te(oe(r=e.call.apply(e,[this].concat(o))),"state",{dropdownVisible:!1}),te(oe(r),"renderSelectOptions",function(s){return s.map(function(l,c){return j.createElement("option",{key:c,value:c},l)})}),te(oe(r),"renderSelectMode",function(s){return j.createElement("select",{value:r.props.month,className:"react-datepicker__month-select",onChange:function(l){return r.onChange(l.target.value)}},r.renderSelectOptions(s))}),te(oe(r),"renderReadView",function(s,l){return j.createElement("div",{key:"read",style:{visibility:s?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:r.toggleDropdown},j.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),j.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},l[r.props.month]))}),te(oe(r),"renderDropdown",function(s){return j.createElement(Zte,{key:"dropdown",month:r.props.month,monthNames:s,onChange:r.onChange,onCancel:r.toggleDropdown})}),te(oe(r),"renderScrollMode",function(s){var l=r.state.dropdownVisible,c=[r.renderReadView(!l,s)];return l&&c.unshift(r.renderDropdown(s)),c}),te(oe(r),"onChange",function(s){r.toggleDropdown(),s!==r.props.month&&r.props.onChange(s)}),te(oe(r),"toggleDropdown",function(){return r.setState({dropdownVisible:!r.state.dropdownVisible})}),r}return vn(n,[{key:"render",value:function(){var r,i=this,o=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(a){return iD(a,i.props.locale)}:function(a){return rD(a,i.props.locale)});switch(this.props.dropdownMode){case"scroll":r=this.renderScrollMode(o);break;case"select":r=this.renderSelectMode(o)}return j.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},r)}}]),n}();function Kte(t,e){for(var n=[],r=Ba(t),i=Ba(e);!Qo(r,i);)n.push(nn(r)),r=Si(r,1);return n}var Xte=Jg(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)),"renderOptions",function(){return i.state.monthYearsList.map(function(o){var a=em(o),s=nD(i.props.date,o)&&Po(i.props.date,o);return j.createElement("div",{className:s?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:a,onClick:i.onChange.bind(oe(i),a),"aria-selected":s?"true":void 0},s?j.createElement("span",{className:"react-datepicker__month-year-option--selected"},"✓"):"",Gt(o,i.props.dateFormat,i.props.locale))})}),te(oe(i),"onChange",function(o){return i.props.onChange(o)}),te(oe(i),"handleClickOutside",function(){i.props.onCancel()}),i.state={monthYearsList:Kte(i.props.minDate,i.props.maxDate)},i}return vn(n,[{key:"render",value:function(){var r=Te({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return j.createElement("div",{className:r},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;a<i;a++)o[a]=arguments[a];return te(oe(r=e.call.apply(e,[this].concat(o))),"state",{dropdownVisible:!1}),te(oe(r),"renderSelectOptions",function(){for(var s=Ba(r.props.minDate),l=Ba(r.props.maxDate),c=[];!Qo(s,l);){var f=em(s);c.push(j.createElement("option",{key:f,value:f},Gt(s,r.props.dateFormat,r.props.locale))),s=Si(s,1)}return c}),te(oe(r),"onSelectChange",function(s){r.onChange(s.target.value)}),te(oe(r),"renderSelectMode",function(){return j.createElement("select",{value:em(Ba(r.props.date)),className:"react-datepicker__month-year-select",onChange:r.onSelectChange},r.renderSelectOptions())}),te(oe(r),"renderReadView",function(s){var l=Gt(r.props.date,r.props.dateFormat,r.props.locale);return j.createElement("div",{key:"read",style:{visibility:s?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:function(c){return r.toggleDropdown(c)}},j.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),j.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},l))}),te(oe(r),"renderDropdown",function(){return j.createElement(Xte,{key:"dropdown",date:r.props.date,dateFormat:r.props.dateFormat,onChange:r.onChange,onCancel:r.toggleDropdown,minDate:r.props.minDate,maxDate:r.props.maxDate,scrollableMonthYearDropdown:r.props.scrollableMonthYearDropdown,locale:r.props.locale})}),te(oe(r),"renderScrollMode",function(){var s=r.state.dropdownVisible,l=[r.renderReadView(!s)];return s&&l.unshift(r.renderDropdown()),l}),te(oe(r),"onChange",function(s){r.toggleDropdown();var l=nn(parseInt(s));nD(r.props.date,l)&&Po(r.props.date,l)||r.props.onChange(l)}),te(oe(r),"toggleDropdown",function(){return r.setState({dropdownVisible:!r.state.dropdownVisible})}),r}return vn(n,[{key:"render",value:function(){var r;switch(this.props.dropdownMode){case"scroll":r=this.renderScrollMode();break;case"select":r=this.renderSelectMode()}return j.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},r)}}]),n}(),Jte=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<i;a++)o[a]=arguments[a];return te(oe(r=e.call.apply(e,[this].concat(o))),"dayEl",j.createRef()),te(oe(r),"handleClick",function(s){!r.isDisabled()&&r.props.onClick&&r.props.onClick(s)}),te(oe(r),"handleMouseEnter",function(s){!r.isDisabled()&&r.props.onMouseEnter&&r.props.onMouseEnter(s)}),te(oe(r),"handleOnKeyDown",function(s){s.key===" "&&(s.preventDefault(),s.key="Enter"),r.props.handleOnKeyDown(s)}),te(oe(r),"isSameDay",function(s){return Xn(r.props.day,s)}),te(oe(r),"isKeyboardSelected",function(){return!r.props.disabledKeyboardNavigation&&!r.isSameDay(r.props.selected)&&r.isSameDay(r.props.preSelection)}),te(oe(r),"isDisabled",function(){return tv(r.props.day,r.props)}),te(oe(r),"isExcluded",function(){return dx(r.props.day,r.props)}),te(oe(r),"getHighLightedClass",function(s){var l=r.props,c=l.day,f=l.highlightDates;if(!f)return!1;var h=Gt(c,"MM.dd.yyyy");return f.get(h)}),te(oe(r),"isInRange",function(){var s=r.props,l=s.day,c=s.startDate,f=s.endDate;return!(!c||!f)&&Uh(l,c,f)}),te(oe(r),"isInSelectingRange",function(){var s,l=r.props,c=l.day,f=l.selectsStart,h=l.selectsEnd,p=l.selectsRange,m=l.selectsDisabledDaysInRange,v=l.startDate,y=l.endDate,w=(s=r.props.selectingDate)!==null&&s!==void 0?s:r.props.preSelection;return!(!(f||h||p)||!w||!m&&r.isDisabled())&&(f&&y&&($i(w,y)||To(w,y))?Uh(c,w,y):(h&&v&&(Qo(w,v)||To(w,v))||!(!p||!v||y||!Qo(w,v)&&!To(w,v)))&&Uh(c,v,w))}),te(oe(r),"isSelectingRangeStart",function(){var s;if(!r.isInSelectingRange())return!1;var l=r.props,c=l.day,f=l.startDate,h=l.selectsStart,p=(s=r.props.selectingDate)!==null&&s!==void 0?s:r.props.preSelection;return Xn(c,h?p:f)}),te(oe(r),"isSelectingRangeEnd",function(){var s;if(!r.isInSelectingRange())return!1;var l=r.props,c=l.day,f=l.endDate,h=l.selectsEnd,p=(s=r.props.selectingDate)!==null&&s!==void 0?s:r.props.preSelection;return Xn(c,h?p:f)}),te(oe(r),"isRangeStart",function(){var s=r.props,l=s.day,c=s.startDate,f=s.endDate;return!(!c||!f)&&Xn(c,l)}),te(oe(r),"isRangeEnd",function(){var s=r.props,l=s.day,c=s.startDate,f=s.endDate;return!(!c||!f)&&Xn(f,l)}),te(oe(r),"isWeekend",function(){var s=gK(r.props.day);return s===0||s===6}),te(oe(r),"isAfterMonth",function(){return r.props.month!==void 0&&(r.props.month+1)%12===Vn(r.props.day)}),te(oe(r),"isBeforeMonth",function(){return r.props.month!==void 0&&(Vn(r.props.day)+1)%12===r.props.month}),te(oe(r),"isCurrentDay",function(){return r.isSameDay(nn())}),te(oe(r),"isSelected",function(){return r.isSameDay(r.props.selected)}),te(oe(r),"getClassNames",function(s){var l=r.props.dayClassName?r.props.dayClassName(s):void 0;return Te("react-datepicker__day",l,"react-datepicker__day--"+Nte(r.props.day),{"react-datepicker__day--disabled":r.isDisabled(),"react-datepicker__day--excluded":r.isExcluded(),"react-datepicker__day--selected":r.isSelected(),"react-datepicker__day--keyboard-selected":r.isKeyboardSelected(),"react-datepicker__day--range-start":r.isRangeStart(),"react-datepicker__day--range-end":r.isRangeEnd(),"react-datepicker__day--in-range":r.isInRange(),"react-datepicker__day--in-selecting-range":r.isInSelectingRange(),"react-datepicker__day--selecting-range-start":r.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":r.isSelectingRangeEnd(),"react-datepicker__day--today":r.isCurrentDay(),"react-datepicker__day--weekend":r.isWeekend(),"react-datepicker__day--outside-month":r.isAfterMonth()||r.isBeforeMonth()},r.getHighLightedClass("react-datepicker__day--highlighted"))}),te(oe(r),"getAriaLabel",function(){var s=r.props,l=s.day,c=s.ariaLabelPrefixWhenEnabled,f=c===void 0?"Choose":c,h=s.ariaLabelPrefixWhenDisabled,p=h===void 0?"Not available":h,m=r.isDisabled()||r.isExcluded()?p:f;return"".concat(m," ").concat(Gt(l,"PPPP",r.props.locale))}),te(oe(r),"getTabIndex",function(s,l){var c=s||r.props.selected,f=l||r.props.preSelection;return r.isKeyboardSelected()||r.isSameDay(c)&&Xn(f,c)?0:-1}),te(oe(r),"handleFocusDay",function(){var s=arguments.length>0&&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<i;a++)o[a]=arguments[a];return te(oe(r=e.call.apply(e,[this].concat(o))),"handleClick",function(s){r.props.onClick&&r.props.onClick(s)}),r}return vn(n,[{key:"render",value:function(){var r=this.props,i=r.weekNumber,o=r.ariaLabelPrefix,a=o===void 0?"week ":o,s={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!r.onClick};return j.createElement("div",{className:Te(s),"aria-label":"".concat(a," ").concat(this.props.weekNumber),onClick:this.handleClick},i)}}]),n}(),tne=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<i;a++)o[a]=arguments[a];return te(oe(r=e.call.apply(e,[this].concat(o))),"handleDayClick",function(s,l){r.props.onDayClick&&r.props.onDayClick(s,l)}),te(oe(r),"handleDayMouseEnter",function(s){r.props.onDayMouseEnter&&r.props.onDayMouseEnter(s)}),te(oe(r),"handleWeekClick",function(s,l,c){typeof r.props.onWeekSelect=="function"&&r.props.onWeekSelect(s,l,c),r.props.shouldCloseOnSelect&&r.props.setOpen(!1)}),te(oe(r),"formatWeekNumber",function(s){return r.props.formatWeekNumber?r.props.formatWeekNumber(s):Dte(s)}),te(oe(r),"renderDays",function(){var s=fx(r.props.day,r.props.locale,r.props.calendarStartDay),l=[],c=r.formatWeekNumber(s);if(r.props.showWeekNumber){var f=r.props.onWeekSelect?r.handleWeekClick.bind(oe(r),s,c):void 0;l.push(j.createElement(ene,{key:"W",weekNumber:c,onClick:f,ariaLabelPrefix:r.props.ariaLabelPrefix}))}return l.concat([0,1,2,3,4,5,6].map(function(h){var p=us(s,h);return j.createElement(Jte,{ariaLabelPrefixWhenEnabled:r.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:r.props.disabledDayAriaLabelPrefix,key:p.valueOf(),day:p,month:r.props.month,onClick:r.handleDayClick.bind(oe(r),p),onMouseEnter:r.handleDayMouseEnter.bind(oe(r),p),minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,includeDates:r.props.includeDates,includeDateIntervals:r.props.includeDateIntervals,highlightDates:r.props.highlightDates,selectingDate:r.props.selectingDate,filterDate:r.props.filterDate,preSelection:r.props.preSelection,selected:r.props.selected,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,selectsRange:r.props.selectsRange,selectsDisabledDaysInRange:r.props.selectsDisabledDaysInRange,startDate:r.props.startDate,endDate:r.props.endDate,dayClassName:r.props.dayClassName,renderDayContents:r.props.renderDayContents,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,handleOnKeyDown:r.props.handleOnKeyDown,isInputFocused:r.props.isInputFocused,containerRef:r.props.containerRef,inline:r.props.inline,shouldFocusDayInline:r.props.shouldFocusDayInline,monthShowsDuplicateDaysEnd:r.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:r.props.monthShowsDuplicateDaysStart,locale:r.props.locale})}))}),r}return vn(n,[{key:"render",value:function(){return j.createElement("div",{className:"react-datepicker__week"},this.renderDays())}}],[{key:"defaultProps",get:function(){return{shouldCloseOnSelect:!0}}}]),n}(),nne=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<i;a++)o[a]=arguments[a];return te(oe(r=e.call.apply(e,[this].concat(o))),"MONTH_REFS",tD(Array(12)).map(function(){return j.createRef()})),te(oe(r),"isDisabled",function(s){return tv(s,r.props)}),te(oe(r),"isExcluded",function(s){return dx(s,r.props)}),te(oe(r),"handleDayClick",function(s,l){r.props.onDayClick&&r.props.onDayClick(s,l,r.props.orderInDisplay)}),te(oe(r),"handleDayMouseEnter",function(s){r.props.onDayMouseEnter&&r.props.onDayMouseEnter(s)}),te(oe(r),"handleMouseLeave",function(){r.props.onMouseLeave&&r.props.onMouseLeave()}),te(oe(r),"isRangeStartMonth",function(s){var l=r.props,c=l.day,f=l.startDate,h=l.endDate;return!(!f||!h)&&Po(hi(c,s),f)}),te(oe(r),"isRangeStartQuarter",function(s){var l=r.props,c=l.day,f=l.startDate,h=l.endDate;return!(!f||!h)&&Nm(ku(c,s),f)}),te(oe(r),"isRangeEndMonth",function(s){var l=r.props,c=l.day,f=l.startDate,h=l.endDate;return!(!f||!h)&&Po(hi(c,s),h)}),te(oe(r),"isRangeEndQuarter",function(s){var l=r.props,c=l.day,f=l.startDate,h=l.endDate;return!(!f||!h)&&Nm(ku(c,s),h)}),te(oe(r),"isWeekInMonth",function(s){var l=r.props.day,c=us(s,6);return Po(s,l)||Po(c,l)}),te(oe(r),"isCurrentMonth",function(s,l){return lt(s)===lt(nn())&&l===Vn(nn())}),te(oe(r),"isSelectedMonth",function(s,l,c){return Vn(s)===l&<(s)===lt(c)}),te(oe(r),"isSelectedQuarter",function(s,l,c){return e1(s)===l&<(s)===lt(c)}),te(oe(r),"renderWeeks",function(){for(var s=[],l=r.props.fixedHeight,c=0,f=!1,h=fx(Ba(r.props.day),r.props.locale,r.props.calendarStartDay);s.push(j.createElement(tne,{ariaLabelPrefix:r.props.weekAriaLabelPrefix,chooseDayAriaLabelPrefix:r.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:r.props.disabledDayAriaLabelPrefix,key:c,day:h,month:Vn(r.props.day),onDayClick:r.handleDayClick,onDayMouseEnter:r.handleDayMouseEnter,onWeekSelect:r.props.onWeekSelect,formatWeekNumber:r.props.formatWeekNumber,locale:r.props.locale,minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,includeDates:r.props.includeDates,includeDateIntervals:r.props.includeDateIntervals,inline:r.props.inline,shouldFocusDayInline:r.props.shouldFocusDayInline,highlightDates:r.props.highlightDates,selectingDate:r.props.selectingDate,filterDate:r.props.filterDate,preSelection:r.props.preSelection,selected:r.props.selected,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,selectsRange:r.props.selectsRange,selectsDisabledDaysInRange:r.props.selectsDisabledDaysInRange,showWeekNumber:r.props.showWeekNumbers,startDate:r.props.startDate,endDate:r.props.endDate,dayClassName:r.props.dayClassName,setOpen:r.props.setOpen,shouldCloseOnSelect:r.props.shouldCloseOnSelect,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,renderDayContents:r.props.renderDayContents,handleOnKeyDown:r.props.handleOnKeyDown,isInputFocused:r.props.isInputFocused,containerRef:r.props.containerRef,calendarStartDay:r.props.calendarStartDay,monthShowsDuplicateDaysEnd:r.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:r.props.monthShowsDuplicateDaysStart})),!f;){c++,h=ex(h,1);var p=l&&c>=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;a<i;a++)o[a]=arguments[a];return te(oe(r=e.call.apply(e,[this].concat(o))),"state",{height:null}),te(oe(r),"handleClick",function(s){(r.props.minTime||r.props.maxTime)&&CC(s,r.props)||(r.props.excludeTimes||r.props.includeTimes||r.props.filterTime)&&TC(s,r.props)||r.props.onChange(s)}),te(oe(r),"isSelectedTime",function(s,l,c){return r.props.selected&&l===Zr(s)&&c===Gr(s)}),te(oe(r),"liClasses",function(s,l,c){var f=["react-datepicker__time-list-item",r.props.timeClassName?r.props.timeClassName(s,l,c):void 0];return r.isSelectedTime(s,l,c)&&f.push("react-datepicker__time-list-item--selected"),((r.props.minTime||r.props.maxTime)&&CC(s,r.props)||(r.props.excludeTimes||r.props.includeTimes||r.props.filterTime)&&TC(s,r.props))&&f.push("react-datepicker__time-list-item--disabled"),r.props.injectTimes&&(60*Zr(s)+Gr(s))%r.props.intervals!=0&&f.push("react-datepicker__time-list-item--injected"),f.join(" ")}),te(oe(r),"handleOnKeyDown",function(s,l){s.key===" "&&(s.preventDefault(),s.key="Enter"),s.key==="Enter"&&r.handleClick(l),r.props.handleOnKeyDown(s)}),te(oe(r),"renderTimes",function(){for(var s=[],l=r.props.format?r.props.format:"p",c=r.props.intervals,f=Ite(nn(r.props.selected)),h=1440/c,p=r.props.injectTimes&&r.props.injectTimes.sort(function(O,M){return O-M}),m=r.props.selected||r.props.openToDate||nn(),v=Zr(m),y=Gr(m),w=Qu(Ju(f,y),v),_=0;_<h;_++){var b=J0(f,_*c);if(s.push(b),p){var S=Wte(f,b,_,c,p);s=s.concat(S)}}return s.map(function(O,M){return j.createElement("li",{key:M,onClick:r.handleClick.bind(oe(r),O),className:r.liClasses(O,v,y),ref:function(C){($i(O,w)||To(O,w))&&(r.centerLi=C)},onKeyDown:function(C){r.handleOnKeyDown(C,O)},tabIndex:"0","aria-selected":r.isSelectedTime(O,v,y)?"true":void 0},Gt(O,l,r.props.locale))})}),r}return vn(n,[{key:"componentDidMount",value:function(){this.list.scrollTop=n.calcCenterPosition(this.props.monthRef?this.props.monthRef.clientHeight-this.header.clientHeight:this.list.clientHeight,this.centerLi),this.props.monthRef&&this.header&&this.setState({height:this.props.monthRef.clientHeight-this.header.clientHeight})}},{key:"render",value:function(){var r=this,i=this.state.height;return j.createElement("div",{className:"react-datepicker__time-container ".concat(this.props.todayButton?"react-datepicker__time-container--with-today-button":"")},j.createElement("div",{className:"react-datepicker__header react-datepicker__header--time ".concat(this.props.showTimeSelectOnly?"react-datepicker__header--time--only":""),ref:function(o){r.header=o}},j.createElement("div",{className:"react-datepicker-time__header"},this.props.timeCaption)),j.createElement("div",{className:"react-datepicker__time"},j.createElement("div",{className:"react-datepicker__time-box"},j.createElement("ul",{className:"react-datepicker__time-list",ref:function(o){r.list=o},style:i?{height:i}:{},tabIndex:"0"},this.renderTimes()))))}}],[{key:"defaultProps",get:function(){return{intervals:30,onTimeChange:function(){},todayButton:null,timeCaption:"Time"}}}]),n}();te(sD,"calcCenterPosition",function(t,e){return e.offsetTop-(t/2-e.clientHeight/2)});var rne=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)),"YEAR_REFS",tD(Array(i.props.yearItemNumber)).map(function(){return j.createRef()})),te(oe(i),"isDisabled",function(o){return tv(o,i.props)}),te(oe(i),"isExcluded",function(o){return dx(o,i.props)}),te(oe(i),"updateFocusOnPaginate",function(o){var a=function(){this.YEAR_REFS[o].current.focus()}.bind(oe(i));window.requestAnimationFrame(a)}),te(oe(i),"handleYearClick",function(o,a){i.props.onDayClick&&i.props.onDayClick(o,a)}),te(oe(i),"handleYearNavigation",function(o,a){var s=i.props,l=s.date,c=s.yearItemNumber,f=ec(l,c).startPeriod;i.isDisabled(a)||i.isExcluded(a)||(i.props.setPreSelection(a),o-f==-1?i.updateFocusOnPaginate(c-1):o-f===c?i.updateFocusOnPaginate(0):i.YEAR_REFS[o-f].current.focus())}),te(oe(i),"isSameDay",function(o,a){return Xn(o,a)}),te(oe(i),"isCurrentYear",function(o){return o===lt(nn())}),te(oe(i),"isKeyboardSelected",function(o){var a=Mu(Dm(i.props.date,o));return!i.props.disabledKeyboardNavigation&&!i.props.inline&&!Xn(a,Mu(i.props.selected))&&Xn(a,Mu(i.props.preSelection))}),te(oe(i),"onYearClick",function(o,a){var s=i.props.date;i.handleYearClick(Mu(Dm(s,a)),o)}),te(oe(i),"onYearKeyDown",function(o,a){var s=o.key;if(!i.props.disabledKeyboardNavigation)switch(s){case"Enter":i.onYearClick(o,a),i.props.setPreSelection(i.props.selected);break;case"ArrowRight":i.handleYearNavigation(a+1,Pl(i.props.preSelection,1));break;case"ArrowLeft":i.handleYearNavigation(a-1,Wc(i.props.preSelection,1))}}),te(oe(i),"getYearClassNames",function(o){var a=i.props,s=a.minDate,l=a.maxDate,c=a.selected;return Te("react-datepicker__year-text",{"react-datepicker__year-text--selected":o===lt(c),"react-datepicker__year-text--disabled":(s||l)&&Hte(o,i.props),"react-datepicker__year-text--keyboard-selected":i.isKeyboardSelected(o),"react-datepicker__year-text--today":i.isCurrentYear(o)})}),te(oe(i),"getYearTabIndex",function(o){return i.props.disabledKeyboardNavigation?"-1":o===lt(i.props.preSelection)?"0":"-1"}),i}return vn(n,[{key:"render",value:function(){for(var r=this,i=[],o=this.props,a=ec(o.date,o.yearItemNumber),s=a.startPeriod,l=a.endPeriod,c=function(h){i.push(j.createElement("div",{ref:r.YEAR_REFS[h-s],onClick:function(p){r.onYearClick(p,h)},onKeyDown:function(p){r.onYearKeyDown(p,h)},tabIndex:r.getYearTabIndex(h),className:r.getYearClassNames(h),key:h,"aria-current":r.isCurrentYear(h)?"date":void 0},h))},f=s;f<=l;f++)c(f);return j.createElement("div",{className:"react-datepicker__year"},j.createElement("div",{className:"react-datepicker__year-wrapper"},i))}}]),n}(),ine=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)),"onTimeChange",function(o){i.setState({time:o});var a=new Date;a.setHours(o.split(":")[0]),a.setMinutes(o.split(":")[1]),i.props.onChange(a)}),te(oe(i),"renderTimeInput",function(){var o=i.state.time,a=i.props,s=a.date,l=a.timeString,c=a.customTimeInput;return c?j.cloneElement(c,{date:s,value:o,onChange:i.onTimeChange}):j.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",required:!0,value:o,onChange:function(f){i.onTimeChange(f.target.value||l)}})}),i.state={time:i.props.timeString},i}return vn(n,[{key:"render",value:function(){return j.createElement("div",{className:"react-datepicker__input-time-container"},j.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),j.createElement("div",{className:"react-datepicker-time__input-container"},j.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.timeString!==i.time?{time:r.timeString}:null}}]),n}();function one(t){var e=t.className,n=t.children,r=t.showPopperArrow,i=t.arrowProps,o=i===void 0?{}:i;return j.createElement("div",{className:e},r&&j.createElement("div",ev({className:"react-datepicker__triangle"},o)),n)}var ane=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],sne=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)),"handleClickOutside",function(o){i.props.onClickOutside(o)}),te(oe(i),"setClickOutsideRef",function(){return i.containerRef.current}),te(oe(i),"handleDropdownFocus",function(o){(function(){var a=((arguments.length>0&&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&&R<C||!1}(i.state.date,i.props);break;default:o=MC(i.state.date,i.props)}if((i.props.forceShowMonthNavigation||i.props.showDisabledMonthNavigation||!o)&&!i.props.showTimeSelectOnly){var a=["react-datepicker__navigation","react-datepicker__navigation--next"];i.props.showTimeSelect&&a.push("react-datepicker__navigation--next--with-time"),i.props.todayButton&&a.push("react-datepicker__navigation--next--with-today-button");var s=i.increaseMonth;(i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker)&&(s=i.increaseYear),o&&i.props.showDisabledMonthNavigation&&(a.push("react-datepicker__navigation--next--disabled"),s=null);var l=i.props.showMonthYearPicker||i.props.showQuarterYearPicker||i.props.showYearPicker,c=i.props,f=c.nextMonthButtonLabel,h=c.nextYearButtonLabel,p=i.props,m=p.nextMonthAriaLabel,v=m===void 0?typeof f=="string"?f:"Next Month":m,y=p.nextYearAriaLabel,w=y===void 0?typeof h=="string"?h:"Next 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--next"].join(" ")},l?i.props.nextYearButtonLabel:i.props.nextMonthButtonLabel))}}}),te(oe(i),"renderCurrentMonth",function(){var o=arguments.length>0&&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;l<i.props.monthsShown;++l){var c=l-i.props.monthSelectedIn,f=Si(s,c),h="month-".concat(l),p=l<i.props.monthsShown-1,m=l>0;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<o;s++)a[s]=arguments[s];var l=a[0];if(!i.props.onChangeRaw||(i.props.onChangeRaw.apply(oe(i),a),typeof l.isDefaultPrevented=="function"&&!l.isDefaultPrevented())){i.setState({inputValue:l.target.value,lastPreSelectChange:dne});var c=Ate(l.target.value,i.props.dateFormat,i.props.locale,i.props.strictParsing,i.props.minDate);!c&&l.target.value||i.setSelected(c,l,!0)}}),te(oe(i),"handleSelect",function(o,a,s){if(i.setState({preventFocus:!0},function(){return i.preventFocusTimeout=setTimeout(function(){return i.setState({preventFocus:!1})},50),i.preventFocusTimeout}),i.props.onChangeRaw&&i.props.onChangeRaw(a),i.setSelected(o,a,!1,s),!i.props.shouldCloseOnSelect||i.props.showTimeSelect)i.setPreSelection(o);else if(!i.props.inline){i.props.selectsRange||i.setOpen(!1);var l=i.props,c=l.startDate,f=l.endDate;!c||f||$i(o,c)||i.setOpen(!1)}}),te(oe(i),"setSelected",function(o,a,s,l){var c=o;if(c===null||!tv(c,i.props)){var f=i.props,h=f.onChange,p=f.selectsRange,m=f.startDate,v=f.endDate;if(!To(i.props.selected,c)||i.props.allowSameDay||p)if(c!==null&&(!i.props.selected||s&&(i.props.showTimeSelect||i.props.showTimeSelectOnly||i.props.showTimeInput)||(c=OC(c,{hour:Zr(i.props.selected),minute:Gr(i.props.selected),second:bK(i.props.selected)})),i.props.inline||i.setState({preSelection:c}),i.props.focusSelectedMonth||i.setState({monthSelectedIn:l})),p){var y=m&&!v,w=m&&v;!m&&!v?h([c,null],a):y&&($i(c,m)?h([c,null],a):h([m,c],a)),w&&h([c,null],a)}else h(c,a);s||(i.props.onSelect(c,a),i.setState({inputValue:null}))}}),te(oe(i),"setPreSelection",function(o){var a=i.props.minDate!==void 0,s=i.props.maxDate!==void 0,l=!0;if(o){var c=_i(o);if(a&&s)l=Uh(o,i.props.minDate,i.props.maxDate);else if(a){var f=_i(i.props.minDate);l=Qo(o,f)||To(c,f)}else if(s){var h=Qp(i.props.maxDate);l=$i(o,h)||To(c,h)}}l&&i.setState({preSelection:o})}),te(oe(i),"handleTimeChange",function(o){var a=OC(i.props.selected?i.props.selected:i.getPreSelection(),{hour:Zr(o),minute:Gr(o)});i.setState({preSelection:a}),i.props.onChange(a),i.props.shouldCloseOnSelect&&i.setOpen(!1),i.props.showTimeInput&&i.setOpen(!0),i.setState({inputValue:null})}),te(oe(i),"onInputClick",function(){i.props.disabled||i.props.readOnly||i.setOpen(!0),i.props.onInputClick()}),te(oe(i),"onInputKeyDown",function(o){i.props.onKeyDown(o);var a=o.key;if(i.state.open||i.props.inline||i.props.preventOpenOnFocus){if(i.state.open){if(a==="ArrowDown"||a==="ArrowUp"){o.preventDefault();var s=i.calendar.componentNode&&i.calendar.componentNode.querySelector('.react-datepicker__day[tabindex="0"]');return void(s&&s.focus({preventScroll:!0}))}var l=nn(i.state.preSelection);a==="Enter"?(o.preventDefault(),i.inputOk()&&i.state.lastPreSelectChange===Qy?(i.handleSelect(l,o),!i.props.shouldCloseOnSelect&&i.setPreSelection(l)):i.setOpen(!1)):a==="Escape"&&(o.preventDefault(),i.setOpen(!1)),i.inputOk()||i.props.onInputError({code:1,msg:"Date input not valid."})}}else a!=="ArrowDown"&&a!=="ArrowUp"&&a!=="Enter"||i.onInputClick()}),te(oe(i),"onDayKeyDown",function(o){i.props.onKeyDown(o);var a=o.key,s=nn(i.state.preSelection);if(a==="Enter")o.preventDefault(),i.handleSelect(s,o),!i.props.shouldCloseOnSelect&&i.setPreSelection(s);else if(a==="Escape")o.preventDefault(),i.setOpen(!1),i.inputOk()||i.props.onInputError({code:1,msg:"Date input not valid."});else if(!i.props.disabledKeyboardNavigation){var l;switch(a){case"ArrowLeft":l=qee(s,1);break;case"ArrowRight":l=us(s,1);break;case"ArrowUp":l=fte(s,1);break;case"ArrowDown":l=ex(s,1);break;case"PageUp":l=Uc(s,1);break;case"PageDown":l=Si(s,1);break;case"Home":l=Wc(s,1);break;case"End":l=Pl(s,1)}if(!l)return void(i.props.onInputError&&i.props.onInputError({code:1,msg:"Date input not valid."}));if(o.preventDefault(),i.setState({lastPreSelectChange:Qy}),i.props.adjustDateOnChange&&i.setSelected(l),i.setPreSelection(l),i.props.inline){var c=Vn(s),f=Vn(l),h=lt(s),p=lt(l);c!==f||h!==p?i.setState({shouldFocusDayInline:!0}):i.setState({shouldFocusDayInline:!1})}}}),te(oe(i),"onPopperKeyDown",function(o){o.key==="Escape"&&(o.preventDefault(),i.setState({preventFocus:!0},function(){i.setOpen(!1),setTimeout(function(){i.setFocus(),i.setState({preventFocus:!1})})}))}),te(oe(i),"onClearClick",function(o){o&&o.preventDefault&&o.preventDefault(),i.props.selectsRange?i.props.onChange([null,null],o):i.props.onChange(null,o),i.setState({inputValue:null})}),te(oe(i),"clear",function(){i.onClearClick()}),te(oe(i),"onScroll",function(o){typeof i.props.closeOnScroll=="boolean"&&i.props.closeOnScroll?o.target!==document&&o.target!==document.documentElement&&o.target!==document.body||i.setOpen(!1):typeof i.props.closeOnScroll=="function"&&i.props.closeOnScroll(o)&&i.setOpen(!1)}),te(oe(i),"renderCalendar",function(){return i.props.inline||i.isCalendarOpen()?j.createElement(fne,{ref:function(o){i.calendar=o},locale:i.props.locale,calendarStartDay:i.props.calendarStartDay,chooseDayAriaLabelPrefix:i.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:i.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:i.props.weekAriaLabelPrefix,monthAriaLabelPrefix:i.props.monthAriaLabelPrefix,adjustDateOnChange:i.props.adjustDateOnChange,setOpen:i.setOpen,shouldCloseOnSelect:i.props.shouldCloseOnSelect,dateFormat:i.props.dateFormatCalendar,useWeekdaysShort:i.props.useWeekdaysShort,formatWeekDay:i.props.formatWeekDay,dropdownMode:i.props.dropdownMode,selected:i.props.selected,preSelection:i.state.preSelection,onSelect:i.handleSelect,onWeekSelect:i.props.onWeekSelect,openToDate:i.props.openToDate,minDate:i.props.minDate,maxDate:i.props.maxDate,selectsStart:i.props.selectsStart,selectsEnd:i.props.selectsEnd,selectsRange:i.props.selectsRange,startDate:i.props.startDate,endDate:i.props.endDate,excludeDates:i.props.excludeDates,excludeDateIntervals:i.props.excludeDateIntervals,filterDate:i.props.filterDate,onClickOutside:i.handleCalendarClickOutside,formatWeekNumber:i.props.formatWeekNumber,highlightDates:i.state.highlightDates,includeDates:i.props.includeDates,includeDateIntervals:i.props.includeDateIntervals,includeTimes:i.props.includeTimes,injectTimes:i.props.injectTimes,inline:i.props.inline,shouldFocusDayInline:i.state.shouldFocusDayInline,peekNextMonth:i.props.peekNextMonth,showMonthDropdown:i.props.showMonthDropdown,showPreviousMonths:i.props.showPreviousMonths,useShortMonthInDropdown:i.props.useShortMonthInDropdown,showMonthYearDropdown:i.props.showMonthYearDropdown,showWeekNumbers:i.props.showWeekNumbers,showYearDropdown:i.props.showYearDropdown,withPortal:i.props.withPortal,forceShowMonthNavigation:i.props.forceShowMonthNavigation,showDisabledMonthNavigation:i.props.showDisabledMonthNavigation,scrollableYearDropdown:i.props.scrollableYearDropdown,scrollableMonthYearDropdown:i.props.scrollableMonthYearDropdown,todayButton:i.props.todayButton,weekLabel:i.props.weekLabel,outsideClickIgnoreClass:"react-datepicker-ignore-onclickoutside",fixedHeight:i.props.fixedHeight,monthsShown:i.props.monthsShown,monthSelectedIn:i.state.monthSelectedIn,onDropdownFocus:i.handleDropdownFocus,onMonthChange:i.props.onMonthChange,onYearChange:i.props.onYearChange,dayClassName:i.props.dayClassName,weekDayClassName:i.props.weekDayClassName,monthClassName:i.props.monthClassName,timeClassName:i.props.timeClassName,showTimeSelect:i.props.showTimeSelect,showTimeSelectOnly:i.props.showTimeSelectOnly,onTimeChange:i.handleTimeChange,timeFormat:i.props.timeFormat,timeIntervals:i.props.timeIntervals,minTime:i.props.minTime,maxTime:i.props.maxTime,excludeTimes:i.props.excludeTimes,filterTime:i.props.filterTime,timeCaption:i.props.timeCaption,className:i.props.calendarClassName,container:i.props.calendarContainer,yearItemNumber:i.props.yearItemNumber,yearDropdownItemNumber:i.props.yearDropdownItemNumber,previousMonthAriaLabel:i.props.previousMonthAriaLabel,previousMonthButtonLabel:i.props.previousMonthButtonLabel,nextMonthAriaLabel:i.props.nextMonthAriaLabel,nextMonthButtonLabel:i.props.nextMonthButtonLabel,previousYearAriaLabel:i.props.previousYearAriaLabel,previousYearButtonLabel:i.props.previousYearButtonLabel,nextYearAriaLabel:i.props.nextYearAriaLabel,nextYearButtonLabel:i.props.nextYearButtonLabel,timeInputLabel:i.props.timeInputLabel,disabledKeyboardNavigation:i.props.disabledKeyboardNavigation,renderCustomHeader:i.props.renderCustomHeader,popperProps:i.props.popperProps,renderDayContents:i.props.renderDayContents,onDayMouseEnter:i.props.onDayMouseEnter,onMonthMouseLeave:i.props.onMonthMouseLeave,selectsDisabledDaysInRange:i.props.selectsDisabledDaysInRange,showTimeInput:i.props.showTimeInput,showMonthYearPicker:i.props.showMonthYearPicker,showFullMonthYearPicker:i.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:i.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:i.props.showFourColumnMonthYearPicker,showYearPicker:i.props.showYearPicker,showQuarterYearPicker:i.props.showQuarterYearPicker,showPopperArrow:i.props.showPopperArrow,excludeScrollbar:i.props.excludeScrollbar,handleOnKeyDown:i.props.onKeyDown,handleOnDayKeyDown:i.onDayKeyDown,isInputFocused:i.state.focused,customTimeInput:i.props.customTimeInput,setPreSelection:i.setPreSelection},i.props.children):null}),te(oe(i),"renderDateInput",function(){var o,a=Te(i.props.className,te({},"react-datepicker-ignore-onclickoutside",i.state.open)),s=i.props.customInput||j.createElement("input",{type:"text"}),l=i.props.customInputRef||"ref",c=typeof i.props.value=="string"?i.props.value:typeof i.state.inputValue=="string"?i.state.inputValue:i.props.selectsRange?function(f,h,p){if(!f)return"";var m=Xy(f,p),v=h?Xy(h,p):"";return"".concat(m," - ").concat(v)}(i.props.startDate,i.props.endDate,i.props):Xy(i.props.selected,i.props);return j.cloneElement(s,(te(o={},l,function(f){i.input=f}),te(o,"value",c),te(o,"onBlur",i.handleBlur),te(o,"onChange",i.handleChange),te(o,"onClick",i.onInputClick),te(o,"onFocus",i.handleFocus),te(o,"onKeyDown",i.onInputKeyDown),te(o,"id",i.props.id),te(o,"name",i.props.name),te(o,"autoFocus",i.props.autoFocus),te(o,"placeholder",i.props.placeholderText),te(o,"disabled",i.props.disabled),te(o,"autoComplete",i.props.autoComplete),te(o,"className",Te(s.props.className,a)),te(o,"title",i.props.title),te(o,"readOnly",i.props.readOnly),te(o,"required",i.props.required),te(o,"tabIndex",i.props.tabIndex),te(o,"aria-describedby",i.props.ariaDescribedBy),te(o,"aria-invalid",i.props.ariaInvalid),te(o,"aria-labelledby",i.props.ariaLabelledBy),te(o,"aria-required",i.props.ariaRequired),o))}),te(oe(i),"renderClearButton",function(){var o=i.props,a=o.isClearable,s=o.selected,l=o.startDate,c=o.endDate,f=o.clearButtonTitle,h=o.clearButtonClassName,p=h===void 0?"":h,m=o.ariaLabelClose,v=m===void 0?"Close":m;return!a||s==null&&l==null&&c==null?null:j.createElement("button",{type:"button",className:"react-datepicker__close-icon ".concat(p).trim(),"aria-label":v,onClick:i.onClearClick,title:f,tabIndex:-1})}),i.state=i.calcInitialState(),i}return vn(n,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScroll,!0)}},{key:"componentDidUpdate",value:function(r,i){var o,a;r.inline&&(o=r.selected,a=this.props.selected,o&&a?Vn(o)!==Vn(a)||lt(o)!==lt(a):o!==a)&&this.setPreSelection(this.props.selected),this.state.monthSelectedIn!==void 0&&r.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),r.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:AC(this.props.highlightDates)}),i.focused||To(r.selected,this.props.selected)||this.setState({inputValue:null}),i.open!==this.state.open&&(i.open===!1&&this.state.open===!0&&this.props.onCalendarOpen(),i.open===!0&&this.state.open===!1&&this.props.onCalendarClose())}},{key:"componentWillUnmount",value:function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0)}},{key:"renderInputContainer",value:function(){return j.createElement("div",{className:"react-datepicker__input-container"},this.renderDateInput(),this.renderClearButton())}},{key:"render",value:function(){var r=this.renderCalendar();if(this.props.inline)return r;if(this.props.withPortal){var i=this.state.open?j.createElement("div",{className:"react-datepicker__portal"},r):null;return this.state.open&&this.props.portalId&&(i=j.createElement(lD,{portalId:this.props.portalId,portalHost:this.props.portalHost},i)),j.createElement("div",null,this.renderInputContainer(),i)}return j.createElement(cne,{className:this.props.popperClassName,wrapperClassName:this.props.wrapperClassName,hidePopper:!this.isCalendarOpen(),portalId:this.props.portalId,portalHost:this.props.portalHost,popperModifiers:this.props.popperModifiers,targetComponent:this.renderInputContainer(),popperContainer:this.props.popperContainer,popperComponent:r,popperPlacement:this.props.popperPlacement,popperProps:this.props.popperProps,popperOnKeyDown:this.onPopperKeyDown,enableTabLoop:this.props.enableTabLoop})}}],[{key:"defaultProps",get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",onChange:function(){},disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",onFocus:function(){},onBlur:function(){},onKeyDown:function(){},onInputClick:function(){},onSelect:function(){},onClickOutside:function(){},onMonthChange:function(){},onCalendarOpen:function(){},onCalendarClose:function(){},preventOpenOnFocus:!1,onYearChange:function(){},onInputError:function(){},monthsShown:1,readOnly:!1,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,strictParsing:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:12,renderDayContents:function(r){return r},focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0}}}]),n}(),dne="input",Qy="navigate",hne={prefix:"far",iconName:"calendar-days",icon:[448,512,["calendar-alt"],"f073","M152 64H296V24C296 10.75 306.7 0 320 0C333.3 0 344 10.75 344 24V64H384C419.3 64 448 92.65 448 128V448C448 483.3 419.3 512 384 512H64C28.65 512 0 483.3 0 448V128C0 92.65 28.65 64 64 64H104V24C104 10.75 114.7 0 128 0C141.3 0 152 10.75 152 24V64zM48 248H128V192H48V248zM48 296V360H128V296H48zM176 296V360H272V296H176zM320 296V360H400V296H320zM400 192H320V248H400V192zM400 408H320V464H384C392.8 464 400 456.8 400 448V408zM272 408H176V464H272V408zM128 408H48V448C48 456.8 55.16 464 64 464H128V408zM272 192H176V248H272V192z"]},Bfe=hne,pne={prefix:"far",iconName:"circle-right",icon:[512,512,[61838,"arrow-alt-circle-right"],"f35a","M280.2 150.2C273.1 143.8 262.1 142.2 254.3 146.1S239.1 158.5 239.1 167.1l.002 56L152 224C138.8 224 128 234.8 128 248v16C128 277.3 138.8 288 152 288L240 287.1v56c0 9.531 5.656 18.16 14.38 22c8.75 3.812 18.91 2.094 25.91-4.375l96-88.75C381.2 268.3 384 261.9 384 255.2c-.3125-7.781-2.875-13.25-7.844-17.75L280.2 150.2zM256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 464c-114.7 0-208-93.31-208-208S141.3 48 256 48s208 93.31 208 208S370.7 464 256 464z"]},zfe=pne,Hfe={prefix:"far",iconName:"circle",icon:[512,512,[128308,128309,128992,128993,128994,128995,128996,9679,9898,9899,11044,61708,61915],"f111","M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 48C141.1 48 48 141.1 48 256C48 370.9 141.1 464 256 464C370.9 464 464 370.9 464 256C464 141.1 370.9 48 256 48z"]},Ufe={prefix:"far",iconName:"copy",icon:[512,512,[],"f0c5","M502.6 70.63l-61.25-61.25C435.4 3.371 427.2 0 418.7 0H255.1c-35.35 0-64 28.66-64 64l.0195 256C192 355.4 220.7 384 256 384h192c35.2 0 64-28.8 64-64V93.25C512 84.77 508.6 76.63 502.6 70.63zM464 320c0 8.836-7.164 16-16 16H255.1c-8.838 0-16-7.164-16-16L239.1 64.13c0-8.836 7.164-16 16-16h128L384 96c0 17.67 14.33 32 32 32h47.1V320zM272 448c0 8.836-7.164 16-16 16H63.1c-8.838 0-16-7.164-16-16L47.98 192.1c0-8.836 7.164-16 16-16H160V128H63.99c-35.35 0-64 28.65-64 64l.0098 256C.002 483.3 28.66 512 64 512h192c35.2 0 64-28.8 64-64v-32h-47.1L272 448z"]},gb={},mne={get exports(){return gb},set exports(t){gb=t}};/** @license
|
||
* eventsource.js
|
||
* Available under MIT License (MIT)
|
||
* https://github.com/Yaffle/EventSource/
|
||
*/(function(t,e){(function(n){var r=n.setTimeout,i=n.clearTimeout,o=n.XMLHttpRequest,a=n.XDomainRequest,s=n.ActiveXObject,l=n.EventSource,c=n.document,f=n.Promise,h=n.fetch,p=n.Response,m=n.TextDecoder,v=n.TextEncoder,y=n.AbortController;if(typeof window<"u"&&typeof c<"u"&&!("readyState"in c)&&c.body==null&&(c.readyState="loading",window.addEventListener("load",function(ue){c.readyState="complete"},!1)),o==null&&s!=null&&(o=function(){return new s("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(ue){function me(){}return me.prototype=ue,new me}),Date.now||(Date.now=function(){return new Date().getTime()}),y==null){var w=h;h=function(ue,me){var ve=me.signal;return w(ue,{headers:me.headers,credentials:me.credentials,cache:me.cache}).then(function(Se){var Re=Se.body.getReader();return ve._reader=Re,ve._aborted&&ve._reader.cancel(),{status:Se.status,statusText:Se.statusText,headers:Se.headers,body:{getReader:function(){return Re}}}})},y=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function _(){this.bitsNeeded=0,this.codePoint=0}_.prototype.decode=function(ue){function me(ye,ge,we){if(we===1)return ye>=128>>ge&&ye<<ge<=2047;if(we===2)return ye>=2048>>ge&&ye<<ge<=55295||ye>=57344>>ge&&ye<<ge<=65535;if(we===3)return ye>=65536>>ge&&ye<<ge<=1114111;throw new Error}function ve(ye,ge){if(ye===6*1)return ge>>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;le<ue.length;le+=1){var fe=ue[le];ke!==0&&(fe<128||fe>191||!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<ve.length;Se+=1){var Re=ve[Se],ke=Re.split(": "),Me=ke.shift(),le=ke.join(": ");me[M(Me)]=le}this._map=me}C.prototype.get=function(ue){return this._map[M(ue)]},o!=null&&o.HEADERS_RECEIVED==null&&(o.HEADERS_RECEIVED=2);function R(){}R.prototype.open=function(ue,me,ve,Se,Re,ke,Me){ue.open("GET",Re);var le=0;ue.onprogress=function(){var ye=ue.responseText,ge=ye.slice(le);le+=ge.length,ve(ge)},ue.onerror=function(ye){ye.preventDefault(),Se(new Error("NetworkError"))},ue.onload=function(){Se(null)},ue.onabort=function(){Se(null)},ue.onreadystatechange=function(){if(ue.readyState===o.HEADERS_RECEIVED){var ye=ue.status,ge=ue.statusText,we=ue.getResponseHeader("Content-Type"),Pe=ue.getAllResponseHeaders();me(ye,ge,we,new C(Pe))}},ue.withCredentials=ke;for(var fe in Me)Object.prototype.hasOwnProperty.call(Me,fe)&&ue.setRequestHeader(fe,Me[fe]);return ue.send(),ue};function $(ue){this._headers=ue}$.prototype.get=function(ue){return this._headers.get(ue)};function U(){}U.prototype.open=function(ue,me,ve,Se,Re,ke,Me){var le=null,fe=new y,ye=fe.signal,ge=new m;return h(Re,{headers:Me,credentials:ke?"include":"same-origin",signal:ye,cache:"no-store"}).then(function(we){return le=we.body.getReader(),me(we.status,we.statusText,we.headers.get("Content-Type"),new $(we.headers)),new f(function(Pe,De){var Ke=function(){le.read().then(function(Xe){if(Xe.done)Pe(void 0);else{var Ve=ge.decode(Xe.value,{stream:!0});ve(Ve),Ke()}}).catch(function(Xe){De(Xe)})};Ke()})}).catch(function(we){if(we.name!=="AbortError")return we}).then(function(we){Se(we)}),{abort:function(){le!=null&&le.cancel(),fe.abort()}}};function I(){this._listeners=Object.create(null)}function H(ue){r(function(){throw ue},0)}I.prototype.dispatchEvent=function(ue){ue.target=this;var me=this._listeners[ue.type];if(me!=null)for(var ve=me.length,Se=0;Se<ve;Se+=1){var Re=me[Se];try{typeof Re.handleEvent=="function"?Re.handleEvent(ue):Re.call(this,ue)}catch(ke){H(ke)}}},I.prototype.addEventListener=function(ue,me){ue=String(ue);var ve=this._listeners,Se=ve[ue];Se==null&&(Se=[],ve[ue]=Se);for(var Re=!1,ke=0;ke<Se.length;ke+=1)Se[ke]===me&&(Re=!0);Re||Se.push(me)},I.prototype.removeEventListener=function(ue,me){ue=String(ue);var ve=this._listeners,Se=ve[ue];if(Se!=null){for(var Re=[],ke=0;ke<Se.length;ke+=1)Se[ke]!==me&&Re.push(Se[ke]);Re.length===0?delete ve[ue]:ve[ue]=Re}};function W(ue){this.type=ue,this.target=void 0}function J(ue,me){W.call(this,ue),this.data=me.data,this.lastEventId=me.lastEventId}J.prototype=Object.create(W.prototype);function Y(ue,me){W.call(this,ue),this.status=me.status,this.statusText=me.statusText,this.headers=me.headers}Y.prototype=Object.create(W.prototype);function X(ue,me){W.call(this,ue),this.error=me.error}X.prototype=Object.create(W.prototype);var re=-1,se=0,V=1,N=2,A=-1,B=0,ee=1,z=2,q=3,ne=/^text\/event\-stream(;.*)?$/i,ae=1e3,he=18e6,P=function(ue,me){var ve=ue==null?me:parseInt(ue,10);return ve!==ve&&(ve=me),k(ve)},k=function(ue){return Math.min(Math.max(ue,ae),he)},D=function(ue,me,ve){try{typeof me=="function"&&me.call(ue,ve)}catch(Se){H(Se)}};function G(ue,me){I.call(this),me=me||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,pe(this,ue,me)}function Z(){return o!=null&&"withCredentials"in o.prototype||a==null?new o:new a}var ie=h!=null&&p!=null&&"body"in p.prototype;function pe(ue,me,ve){me=String(me);var Se=Boolean(ve.withCredentials),Re=ve.lastEventIdQueryParameterName||"lastEventId",ke=k(1e3),Me=P(ve.heartbeatTimeout,45e3),le="",fe=ke,ye=!1,ge=0,we=ve.headers||{},Pe=ve.Transport,De=ie&&Pe==null?void 0:new O(Pe!=null?new Pe:Z()),Ke=Pe!=null&&typeof Pe!="string"?new Pe:De==null?new U:new R,Xe=void 0,Ve=0,It=re,Mt="",un="",zn="",Jr="",bn=B,Hl=0,ei=0,wf=function(Xt,Ut,Hn,wn){if(It===se)if(Xt===200&&Hn!=null&&ne.test(Hn)){It=V,ye=Date.now(),fe=ke,ue.readyState=V;var xn=new Y("open",{status:Xt,statusText:Ut,headers:wn});ue.dispatchEvent(xn),D(ue,ue.onopen,xn)}else{var rn="";Xt!==200?(Ut&&(Ut=Ut.replace(/\s+/g," ")),rn="EventSource's response has a status "+Xt+" "+Ut+" that is not 200. Aborting the connection."):rn="EventSource's response has a Content-Type specifying an unsupported type: "+(Hn==null?"-":Hn.replace(/\s+/g," "))+". Aborting the connection.",Ul();var xn=new Y("error",{status:Xt,statusText:Ut,headers:wn});ue.dispatchEvent(xn),D(ue,ue.onerror,xn),console.error(rn)}},xf=function(Xt){if(It===V){for(var Ut=-1,Hn=0;Hn<Xt.length;Hn+=1){var wn=Xt.charCodeAt(Hn);(wn===`
|
||
`.charCodeAt(0)||wn==="\r".charCodeAt(0))&&(Ut=Hn)}var xn=(Ut!==-1?Jr:"")+Xt.slice(0,Ut+1);Jr=(Ut===-1?Jr:"")+Xt.slice(Ut+1),Xt!==""&&(ye=Date.now(),ge+=Xt.length);for(var rn=0;rn<xn.length;rn+=1){var wn=xn.charCodeAt(rn);if(bn===A&&wn===`
|
||
`.charCodeAt(0))bn=B;else if(bn===A&&(bn=B),wn==="\r".charCodeAt(0)||wn===`
|
||
`.charCodeAt(0)){if(bn!==B){bn===ee&&(ei=rn+1);var Dr=xn.slice(Hl,ei-1),Nr=xn.slice(ei+(ei<rn&&xn.charCodeAt(ei)===" ".charCodeAt(0)?1:0),rn);Dr==="data"?(Mt+=`
|
||
`,Mt+=Nr):Dr==="id"?un=Nr:Dr==="event"?zn=Nr:Dr==="retry"?(ke=P(Nr,ke),fe=ke):Dr==="heartbeatTimeout"&&(Me=P(Nr,Me),Ve!==0&&(i(Ve),Ve=r(function(){ua()},Me)))}if(bn===B){if(Mt!==""){le=un,zn===""&&(zn="message");var Sn=new J(zn,{data:Mt.slice(1),lastEventId:un});if(ue.dispatchEvent(Sn),zn==="open"?D(ue,ue.onopen,Sn):zn==="message"?D(ue,ue.onmessage,Sn):zn==="error"&&D(ue,ue.onerror,Sn),It===N)return}Mt="",zn=""}bn=wn==="\r".charCodeAt(0)?A:B}else bn===B&&(Hl=rn,bn=ee),bn===ee?wn===":".charCodeAt(0)&&(ei=rn+1,bn=z):bn===z&&(bn=q)}}},Sf=function(Xt){if(It===V||It===se){It=re,Ve!==0&&(i(Ve),Ve=0),Ve=r(function(){ua()},fe),fe=k(Math.min(ke*16,fe*2)),ue.readyState=se;var Ut=new X("error",{error:Xt});ue.dispatchEvent(Ut),D(ue,ue.onerror,Ut),Xt!=null&&console.error(Xt)}},Ul=function(){It=N,Xe!=null&&(Xe.abort(),Xe=void 0),Ve!==0&&(i(Ve),Ve=0),ue.readyState=N},ua=function(){if(Ve=0,It!==re){if(!ye&&Xe!=null)Sf(new Error("No activity within "+Me+" milliseconds. "+(It===se?"No response received.":ge+" chars received.")+" Reconnecting.")),Xe!=null&&(Xe.abort(),Xe=void 0);else{var Xt=Math.max((ye||Date.now())+Me-Date.now(),1);ye=!1,Ve=r(function(){ua()},Xt)}return}ye=!1,ge=0,Ve=r(function(){ua()},Me),It=se,Mt="",zn="",un=le,Jr="",Hl=0,ei=0,bn=B;var Ut=me;if(me.slice(0,5)!=="data:"&&me.slice(0,5)!=="blob:"&&le!==""){var Hn=me.indexOf("?");Ut=Hn===-1?me:me.slice(0,Hn+1)+me.slice(Hn+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(Nr,Sn){return Sn===Re?"":Nr}),Ut+=(me.indexOf("?")===-1?"?":"&")+Re+"="+encodeURIComponent(le)}var wn=ue.withCredentials,xn={};xn.Accept="text/event-stream";var rn=ue.headers;if(rn!=null)for(var Dr in rn)Object.prototype.hasOwnProperty.call(rn,Dr)&&(xn[Dr]=rn[Dr]);try{Xe=Ke.open(De,wf,xf,Sf,Ut,wn,xn)}catch(Nr){throw Ul(),Nr}};ue.url=me,ue.readyState=se,ue.withCredentials=Se,ue.headers=we,ue._close=Ul,ua()}G.prototype=Object.create(I.prototype),G.prototype.CONNECTING=se,G.prototype.OPEN=V,G.prototype.CLOSED=N,G.prototype.close=function(){this._close()},G.CONNECTING=se,G.OPEN=V,G.CLOSED=N,G.prototype.withCredentials=void 0;var Le=l;o!=null&&(l==null||!("withCredentials"in l.prototype))&&(Le=G),function(ue){{var me=ue(e);me!==void 0&&(t.exports=me)}}(function(ue){ue.EventSourcePolyfill=G,ue.NativeEventSource=l,ue.EventSource=Le})})(typeof globalThis>"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<t.rangeCount;r++)n.push(t.getRangeAt(r));switch(e.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":e.blur();break;default:e=null;break}return t.removeAllRanges(),function(){t.type==="Caret"&&t.removeAllRanges(),t.rangeCount||n.forEach(function(i){t.addRange(i)}),e&&e.focus()}},vne=gne,NC={"text/plain":"Text","text/html":"Url",default:"Text"},yne="Copy to clipboard: #{key}, Enter";function _ne(t){var e=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return t.replace(/#{\s*key\s*}/g,e)}function bne(t,e){var n,r,i,o,a,s,l=!1;e||(e={}),n=e.debug||!1;try{i=vne(),o=document.createRange(),a=document.getSelection(),s=document.createElement("span"),s.textContent=t,s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",function(f){if(f.stopPropagation(),e.format)if(f.preventDefault(),typeof f.clipboardData>"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<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?IC(Object(n),!0).forEach(function(r){hx(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):IC(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Ene(t,e){if(t==null)return{};var n=One(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=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<r.length;o++)i=r[o],!(e.indexOf(i)>=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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Tne(t,e,n){return e&&$C(t.prototype,e),n&&$C(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Cne(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&yb(t,e)}function yb(t,e){return yb=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},yb(t,e)}function kne(t){var e=Lne();return function(){var r=Im(t),i;if(e){var o=Im(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Mne(this,i)}}function Mne(t,e){if(e&&(vb(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cD(t)}function cD(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Lne(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function 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<i;a++)o[a]=arguments[a];return r=e.call.apply(e,[this].concat(o)),hx(cD(r),"onClick",function(s){var l=r.props,c=l.text,f=l.onCopy,h=l.children,p=l.options,m=xd.default.Children.only(h),v=(0,xne.default)(c,p);f&&f(c,v),m&&m.props&&typeof m.props.onClick=="function"&&m.props.onClick(s)}),r}return Tne(n,[{key:"render",value:function(){var i=this.props;i.text,i.onCopy,i.options;var o=i.children,a=Ene(i,Sne),s=xd.default.Children.only(o);return xd.default.cloneElement(s,FC(FC({},a),{},{onClick:this.onClick}))}}]),n}(xd.default.PureComponent);rv.CopyToClipboard=fD;hx(fD,"defaultProps",{onCopy:void 0,options:void 0});var Rne=rv,_b=Rne.CopyToClipboard;_b.CopyToClipboard=_b;var Wfe=_b;function dD(t,e){const n=Q.useRef(e);Q.useEffect(function(){e!==n.current&&t.attributionControl!=null&&(n.current!=null&&t.attributionControl.removeAttribution(n.current),e!=null&&t.attributionControl.addAttribution(e)),n.current=e},[t,e])}const Ane=1;function Dne(t){return Object.freeze({__version:Ane,map:t})}function Nne(t,e){return Object.freeze({...t,...e})}const hD=Q.createContext(null),pD=hD.Provider;function mD(){const t=Q.useContext(hD);if(t==null)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");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<E;g++){T=arguments[g];for(d in T)u[d]=T[d]}return u}var o=Object.create||function(){function u(){}return function(d){return u.prototype=d,new u}}();function a(u,d){var g=Array.prototype.slice;if(u.bind)return u.bind.apply(u,g.call(arguments,1));var E=g.call(arguments,2);return function(){return u.apply(d,E.length?E.concat(g.call(arguments)):arguments)}}var s=0;function l(u){return"_leaflet_id"in u||(u._leaflet_id=++s),u._leaflet_id}function c(u,d,g){var E,T,F,K;return K=function(){E=!1,T&&(F.apply(g,T),T=!1)},F=function(){E?T=arguments:(u.apply(g,arguments),setTimeout(K,d),E=!0)},F}function f(u,d,g){var E=d[1],T=d[0],F=E-T;return u===E&&g?u:((u-T)%F+F)%F+T}function h(){return!1}function p(u,d){if(d===!1)return u;var g=Math.pow(10,d===void 0?6:d);return Math.round(u*g)/g}function m(u){return u.trim?u.trim():u.replace(/^\s+|\s+$/g,"")}function v(u){return m(u).split(/\s+/)}function y(u,d){Object.prototype.hasOwnProperty.call(u,"options")||(u.options=u.options?o(u.options):{});for(var g in d)u.options[g]=d[g];return u.options}function w(u,d,g){var E=[];for(var T in u)E.push(encodeURIComponent(g?T.toUpperCase():T)+"="+encodeURIComponent(u[T]));return(!d||d.indexOf("?")===-1?"?":"&")+E.join("&")}var _=/\{ *([\w_ -]+) *\}/g;function b(u,d){return u.replace(_,function(g,E){var T=d[E];if(T===void 0)throw new Error("No value provided for variable "+g);return typeof T=="function"&&(T=T(d)),T})}var S=Array.isArray||function(u){return Object.prototype.toString.call(u)==="[object Array]"};function O(u,d){for(var g=0;g<u.length;g++)if(u[g]===d)return g;return-1}var M="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function C(u){return window["webkit"+u]||window["moz"+u]||window["ms"+u]}var R=0;function $(u){var d=+new Date,g=Math.max(0,16-(d-R));return R=d+g,window.setTimeout(u,g)}var U=window.requestAnimationFrame||C("RequestAnimationFrame")||$,I=window.cancelAnimationFrame||C("CancelAnimationFrame")||C("CancelRequestAnimationFrame")||function(u){window.clearTimeout(u)};function H(u,d,g){if(g&&U===$)u.call(d);else return U.call(window,a(u,d))}function W(u){u&&I.call(window,u)}var J={__proto__:null,extend:i,create:o,bind:a,get lastId(){return s},stamp:l,throttle:c,wrapNum:f,falseFn:h,formatNum:p,trim:m,splitWords:v,setOptions:y,getParamString:w,template:b,isArray:S,indexOf:O,emptyImageUrl:M,requestFn:U,cancelFn:I,requestAnimFrame:H,cancelAnimFrame:W};function Y(){}Y.extend=function(u){var d=function(){y(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},g=d.__super__=this.prototype,E=o(g);E.constructor=d,d.prototype=E;for(var T in this)Object.prototype.hasOwnProperty.call(this,T)&&T!=="prototype"&&T!=="__super__"&&(d[T]=this[T]);return u.statics&&i(d,u.statics),u.includes&&(X(u.includes),i.apply(null,[E].concat(u.includes))),i(E,u),delete E.statics,delete E.includes,E.options&&(E.options=g.options?o(g.options):{},i(E.options,u.options)),E._initHooks=[],E.callInitHooks=function(){if(!this._initHooksCalled){g.callInitHooks&&g.callInitHooks.call(this),this._initHooksCalled=!0;for(var F=0,K=E._initHooks.length;F<K;F++)E._initHooks[F].call(this)}},d},Y.include=function(u){var d=this.prototype.options;return i(this.prototype,u),u.options&&(this.prototype.options=d,this.mergeOptions(u.options)),this},Y.mergeOptions=function(u){return i(this.prototype.options,u),this},Y.addInitHook=function(u){var d=Array.prototype.slice.call(arguments,1),g=typeof u=="function"?u:function(){this[u].apply(this,d)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(g),this};function X(u){if(!(typeof L>"u"||!L||!L.Mixin)){u=S(u)?u:[u];for(var d=0;d<u.length;d++)u[d]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var re={on:function(u,d,g){if(typeof u=="object")for(var E in u)this._on(E,u[E],d);else{u=v(u);for(var T=0,F=u.length;T<F;T++)this._on(u[T],d,g)}return this},off:function(u,d,g){if(!arguments.length)delete this._events;else if(typeof u=="object")for(var E in u)this._off(E,u[E],d);else{u=v(u);for(var T=arguments.length===1,F=0,K=u.length;F<K;F++)T?this._off(u[F]):this._off(u[F],d,g)}return this},_on:function(u,d,g,E){if(typeof d!="function"){console.warn("wrong listener type: "+typeof d);return}if(this._listens(u,d,g)===!1){g===this&&(g=void 0);var T={fn:d,ctx:g};E&&(T.once=!0),this._events=this._events||{},this._events[u]=this._events[u]||[],this._events[u].push(T)}},_off:function(u,d,g){var E,T,F;if(this._events&&(E=this._events[u],!!E)){if(arguments.length===1){if(this._firingCount)for(T=0,F=E.length;T<F;T++)E[T].fn=h;delete this._events[u];return}if(typeof d!="function"){console.warn("wrong listener type: "+typeof d);return}var K=this._listens(u,d,g);if(K!==!1){var ce=E[K];this._firingCount&&(ce.fn=h,this._events[u]=E=E.slice()),E.splice(K,1)}}},fire:function(u,d,g){if(!this.listens(u,g))return this;var E=i({},d,{type:u,target:this,sourceTarget:d&&d.sourceTarget||this});if(this._events){var T=this._events[u];if(T){this._firingCount=this._firingCount+1||1;for(var F=0,K=T.length;F<K;F++){var ce=T[F],de=ce.fn;ce.once&&this.off(u,de,ce.ctx),de.call(ce.ctx||this,E)}this._firingCount--}}return g&&this._propagateEvent(E),this},listens:function(u,d,g,E){typeof u!="string"&&console.warn('"string" type argument expected');var T=d;typeof d!="function"&&(E=!!d,T=void 0,g=void 0);var F=this._events&&this._events[u];if(F&&F.length&&this._listens(u,T,g)!==!1)return!0;if(E){for(var K in this._eventParents)if(this._eventParents[K].listens(u,d,g,E))return!0}return!1},_listens:function(u,d,g){if(!this._events)return!1;var E=this._events[u]||[];if(!d)return!!E.length;g===this&&(g=void 0);for(var T=0,F=E.length;T<F;T++)if(E[T].fn===d&&E[T].ctx===g)return T;return!1},once:function(u,d,g){if(typeof u=="object")for(var E in u)this._on(E,u[E],d,!0);else{u=v(u);for(var T=0,F=u.length;T<F;T++)this._on(u[T],d,g,!0)}return this},addEventParent:function(u){return this._eventParents=this._eventParents||{},this._eventParents[l(u)]=u,this},removeEventParent:function(u){return this._eventParents&&delete this._eventParents[l(u)],this},_propagateEvent:function(u){for(var d in this._eventParents)this._eventParents[d].fire(u.type,i({layer:u.target,propagatedFrom:u.target},u),!0)}};re.addEventListener=re.on,re.removeEventListener=re.clearAllEventListeners=re.off,re.addOneTimeEventListener=re.once,re.fireEvent=re.fire,re.hasEventListeners=re.listens;var se=Y.extend(re);function V(u,d,g){this.x=g?Math.round(u):u,this.y=g?Math.round(d):d}var N=Math.trunc||function(u){return u>0?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<T;E++)this.extend(g[E])}B.prototype={extend:function(u){var d,g;if(!u)return this;if(u instanceof V||typeof u[0]=="number"||"x"in u)d=g=A(u);else if(u=ee(u),d=u.min,g=u.max,!d||!g)return this;return!this.min&&!this.max?(this.min=d.clone(),this.max=g.clone()):(this.min.x=Math.min(d.x,this.min.x),this.max.x=Math.max(g.x,this.max.x),this.min.y=Math.min(d.y,this.min.y),this.max.y=Math.max(g.y,this.max.y)),this},getCenter:function(u){return A((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,u)},getBottomLeft:function(){return A(this.min.x,this.max.y)},getTopRight:function(){return A(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(u){var d,g;return typeof u[0]=="number"||u instanceof V?u=A(u):u=ee(u),u instanceof B?(d=u.min,g=u.max):d=g=u,d.x>=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.x<g.x,K=T.y>d.y&&E.y<g.y;return F&&K},isValid:function(){return!!(this.min&&this.max)},pad:function(u){var d=this.min,g=this.max,E=Math.abs(d.x-g.x)*u,T=Math.abs(d.y-g.y)*u;return ee(A(d.x-E,d.y-T),A(g.x+E,g.y+T))},equals:function(u){return u?(u=ee(u),this.min.equals(u.getTopLeft())&&this.max.equals(u.getBottomRight())):!1}};function ee(u,d){return!u||u instanceof B?u:new B(u,d)}function z(u,d){if(u)for(var g=d?[u,d]:u,E=0,T=g.length;E<T;E++)this.extend(g[E])}z.prototype={extend:function(u){var d=this._southWest,g=this._northEast,E,T;if(u instanceof ne)E=u,T=u;else if(u instanceof z){if(E=u._southWest,T=u._northEast,!E||!T)return this}else return u?this.extend(ae(u)||q(u)):this;return!d&&!g?(this._southWest=new ne(E.lat,E.lng),this._northEast=new ne(T.lat,T.lng)):(d.lat=Math.min(E.lat,d.lat),d.lng=Math.min(E.lng,d.lng),g.lat=Math.max(T.lat,g.lat),g.lng=Math.max(T.lng,g.lng)),this},pad:function(u){var d=this._southWest,g=this._northEast,E=Math.abs(d.lat-g.lat)*u,T=Math.abs(d.lng-g.lng)*u;return new z(new ne(d.lat-E,d.lng-T),new ne(g.lat+E,g.lng+T))},getCenter:function(){return new ne((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new ne(this.getNorth(),this.getWest())},getSouthEast:function(){return new ne(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(u){typeof u[0]=="number"||u instanceof ne||"lat"in u?u=ae(u):u=q(u);var d=this._southWest,g=this._northEast,E,T;return u instanceof z?(E=u.getSouthWest(),T=u.getNorthEast()):E=T=u,E.lat>=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.lat<g.lat,K=T.lng>d.lng&&E.lng<g.lng;return F&&K},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(u,d){return u?(u=q(u),this._southWest.equals(u.getSouthWest(),d)&&this._northEast.equals(u.getNorthEast(),d)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function q(u,d){return u instanceof z?u:new z(u,d)}function ne(u,d,g){if(isNaN(u)||isNaN(d))throw new Error("Invalid LatLng object: ("+u+", "+d+")");this.lat=+u,this.lng=+d,g!==void 0&&(this.alt=+g)}ne.prototype={equals:function(u,d){if(!u)return!1;u=ae(u);var g=Math.max(Math.abs(this.lat-u.lat),Math.abs(this.lng-u.lng));return g<=(d===void 0?1e-9:d)},toString:function(u){return"LatLng("+p(this.lat,u)+", "+p(this.lng,u)+")"},distanceTo:function(u){return P.distance(this,ae(u))},wrap:function(){return P.wrapLatLng(this)},toBounds:function(u){var d=180*u/40075017,g=d/Math.cos(Math.PI/180*this.lat);return q([this.lat-d,this.lng-g],[this.lat+d,this.lng+g])},clone:function(){return new ne(this.lat,this.lng,this.alt)}};function ae(u,d,g){return u instanceof ne?u:S(u)&&typeof u[0]!="object"?u.length===3?new ne(u[0],u[1],u[2]):u.length===2?new ne(u[0],u[1]):null:u==null?u:typeof u=="object"&&"lat"in u?new ne(u.lat,"lng"in u?u.lng:u.lon,u.alt):d===void 0?null:new ne(u,d,g)}var he={latLngToPoint:function(u,d){var g=this.projection.project(u),E=this.scale(d);return this.transformation._transform(g,E)},pointToLatLng:function(u,d){var g=this.scale(d),E=this.transformation.untransform(u,g);return this.projection.unproject(E)},project:function(u){return this.projection.project(u)},unproject:function(u){return this.projection.unproject(u)},scale:function(u){return 256*Math.pow(2,u)},zoom:function(u){return Math.log(u/256)/Math.LN2},getProjectedBounds:function(u){if(this.infinite)return null;var d=this.projection.bounds,g=this.scale(u),E=this.transformation.transform(d.min,g),T=this.transformation.transform(d.max,g);return new B(E,T)},infinite:!1,wrapLatLng:function(u){var d=this.wrapLng?f(u.lng,this.wrapLng,!0):u.lng,g=this.wrapLat?f(u.lat,this.wrapLat,!0):u.lat,E=u.alt;return new ne(g,d,E)},wrapLatLngBounds:function(u){var d=u.getCenter(),g=this.wrapLatLng(d),E=d.lat-g.lat,T=d.lng-g.lng;if(E===0&&T===0)return u;var F=u.getSouthWest(),K=u.getNorthEast(),ce=new ne(F.lat-E,F.lng-T),de=new ne(K.lat-E,K.lng-T);return new z(ce,de)}},P=i({},he,{wrapLng:[-180,180],R:6371e3,distance:function(u,d){var g=Math.PI/180,E=u.lat*g,T=d.lat*g,F=Math.sin((d.lat-u.lat)*g/2),K=Math.sin((d.lng-u.lng)*g/2),ce=F*F+Math.cos(E)*Math.cos(T)*K*K,de=2*Math.atan2(Math.sqrt(ce),Math.sqrt(1-ce));return this.R*de}}),k=6378137,D={R:k,MAX_LATITUDE:85.0511287798,project:function(u){var d=Math.PI/180,g=this.MAX_LATITUDE,E=Math.max(Math.min(g,u.lat),-g),T=Math.sin(E*d);return new V(this.R*u.lng*d,this.R*Math.log((1+T)/(1-T))/2)},unproject:function(u){var d=180/Math.PI;return new ne((2*Math.atan(Math.exp(u.y/this.R))-Math.PI/2)*d,u.x*d/this.R)},bounds:function(){var u=k*Math.PI;return new B([-u,-u],[u,u])}()};function G(u,d,g,E){if(S(u)){this._a=u[0],this._b=u[1],this._c=u[2],this._d=u[3];return}this._a=u,this._b=d,this._c=g,this._d=E}G.prototype={transform:function(u,d){return this._transform(u.clone(),d)},_transform:function(u,d){return d=d||1,u.x=d*(this._a*u.x+this._b),u.y=d*(this._c*u.y+this._d),u},untransform:function(u,d){return d=d||1,new V((u.x/d-this._b)/this._a,(u.y/d-this._d)/this._c)}};function Z(u,d,g,E){return new G(u,d,g,E)}var ie=i({},P,{code:"EPSG:3857",projection:D,transformation:function(){var u=.5/(Math.PI*D.R);return Z(u,.5,-u,.5)}()}),pe=i({},ie,{code:"EPSG:900913"});function Le(u){return document.createElementNS("http://www.w3.org/2000/svg",u)}function ue(u,d){var g="",E,T,F,K,ce,de;for(E=0,F=u.length;E<F;E++){for(ce=u[E],T=0,K=ce.length;T<K;T++)de=ce[T],g+=(T?"L":"M")+de.x+" "+de.y;g+=d?ze.svg?"z":"x":""}return g||"M0 0"}var me=document.documentElement.style,ve="ActiveXObject"in window,Se=ve&&!document.addEventListener,Re="msLaunchUri"in navigator&&!("documentMode"in document),ke=Sn("webkit"),Me=Sn("android"),le=Sn("android 2")||Sn("android 3"),fe=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),ye=Me&&Sn("Google")&&fe<537&&!("AudioNode"in window),ge=!!window.opera,we=!Re&&Sn("chrome"),Pe=Sn("gecko")&&!ke&&!ge&&!ve,De=!we&&Sn("safari"),Ke=Sn("phantom"),Xe="OTransition"in me,Ve=navigator.platform.indexOf("Win")===0,It=ve&&"transition"in me,Mt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!le,un="MozPerspective"in me,zn=!window.L_DISABLE_3D&&(It||Mt||un)&&!Xe&&!Ke,Jr=typeof orientation<"u"||Sn("mobile"),bn=Jr&&ke,Hl=Jr&&Mt,ei=!window.PointerEvent&&window.MSPointerEvent,wf=!!(window.PointerEvent||ei),xf="ontouchstart"in window||!!window.TouchEvent,Sf=!window.L_NO_TOUCH&&(xf||wf),Ul=Jr&&ge,ua=Jr&&Pe,Xt=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,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="<svg/>",(u.firstChild&&u.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),rn=!wn&&function(){try{var u=document.createElement("div");u.innerHTML='<v:shape adj="1"/>';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;E<T;E++)u.classList.add(g[E]);else if(!mv(u,d)){var F=Pf(u);gv(u,(F?F+" ":"")+d)}}function Wt(u,d){u.classList!==void 0?u.classList.remove(d):gv(u,m((" "+Pf(u)+" ").replace(" "+d+" "," ")))}function gv(u,d){u.className.baseVal===void 0?u.className=d:u.className.baseVal=d}function Pf(u){return u.correspondingElement&&(u=u.correspondingElement),u.className.baseVal===void 0?u.className:u.className.baseVal}function yr(u,d){"opacity"in u.style?u.style.opacity=d:"filter"in u.style&&YN(u,d)}function YN(u,d){var g=!1,E="DXImageTransform.Microsoft.Alpha";try{g=u.filters.item(E)}catch{if(d===1)return}d=Math.round(d*100),g?(g.Enabled=d!==100,g.Opacity=d):u.style.filter+=" progid:"+E+"(opacity="+d+")"}function Tf(u){for(var d=document.documentElement.style,g=0;g<u.length;g++)if(u[g]in d)return u[g];return!1}function ca(u,d,g){var E=d||new V(0,0);u.style[pv]=(ze.ie3d?"translate("+E.x+"px,"+E.y+"px)":"translate3d("+E.x+"px,"+E.y+"px,0)")+(g?" scale("+g+")":"")}function Qt(u,d){u._leaflet_pos=d,ze.any3d?ca(u,d):(u.style.left=d.x+"px",u.style.top=d.y+"px")}function fa(u){return u._leaflet_pos||new V(0,0)}var Yl,ql,vv;if("onselectstart"in document)Yl=function(){Ye(window,"selectstart",En)},ql=function(){vt(window,"selectstart",En)};else{var Zl=Tf(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Yl=function(){if(Zl){var u=document.documentElement.style;vv=u[Zl],u[Zl]="none"}},ql=function(){Zl&&(document.documentElement.style[Zl]=vv,vv=void 0)}}function yv(){Ye(window,"dragstart",En)}function _v(){vt(window,"dragstart",En)}var Cf,bv;function wv(u){for(;u.tabIndex===-1;)u=u.parentNode;u.style&&(kf(),Cf=u,bv=u.style.outline,u.style.outline="none",Ye(window,"keydown",kf))}function kf(){Cf&&(Cf.style.outline=bv,Cf=void 0,bv=void 0,vt(window,"keydown",kf))}function Gx(u){do u=u.parentNode;while((!u.offsetWidth||!u.offsetHeight)&&u!==document.body);return u}function xv(u){var d=u.getBoundingClientRect();return{x:d.width/u.offsetWidth||1,y:d.height/u.offsetHeight||1,boundingClientRect:d}}var qN={__proto__:null,TRANSFORM:pv,TRANSITION:Wl,TRANSITION_END:qx,get:Zx,getStyle:Vl,create:st,remove:Lt,empty:Of,toFront:hs,toBack:ps,hasClass:mv,addClass:Ze,removeClass:Wt,setClass:gv,getClass:Pf,setOpacity:yr,testProp:Tf,setTransform:ca,setPosition:Qt,getPosition:fa,get disableTextSelection(){return Yl},get enableTextSelection(){return ql},disableImageDrag:yv,enableImageDrag:_v,preventOutline:wv,restoreOutline:kf,getSizedParentNode:Gx,getScale:xv};function Ye(u,d,g,E){if(d&&typeof d=="object")for(var T in d)Ev(u,T,d[T],g);else{d=v(d);for(var F=0,K=d.length;F<K;F++)Ev(u,d[F],g,E)}return this}var ti="_leaflet_events";function vt(u,d,g,E){if(arguments.length===1)Kx(u),delete u[ti];else if(d&&typeof d=="object")for(var T in d)Ov(u,T,d[T],g);else if(d=v(d),arguments.length===2)Kx(u,function(ce){return O(d,ce)!==-1});else for(var F=0,K=d.length;F<K;F++)Ov(u,d[F],g,E);return this}function Kx(u,d){for(var g in u[ti]){var E=g.split(/\d/)[0];(!d||d(E))&&Ov(u,E,null,null,g)}}var Sv={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Ev(u,d,g,E){var T=d+l(g)+(E?"_"+l(E):"");if(u[ti]&&u[ti][T])return this;var F=function(ce){return g.call(E||u,ce||window.event)},K=F;!ze.touchNative&&ze.pointer&&d.indexOf("touch")===0?F=IN(u,d,F):ze.touch&&d==="dblclick"?F=WN(u,F):"addEventListener"in u?d==="touchstart"||d==="touchmove"||d==="wheel"||d==="mousewheel"?u.addEventListener(Sv[d]||d,F,ze.passiveEvents?{passive:!1}:!1):d==="mouseenter"||d==="mouseleave"?(F=function(ce){ce=ce||window.event,Tv(u,ce)&&K(ce)},u.addEventListener(Sv[d],F,!1)):u.addEventListener(d,K,!1):u.attachEvent("on"+d,F),u[ti]=u[ti]||{},u[ti][T]=F}function Ov(u,d,g,E,T){T=T||d+l(g)+(E?"_"+l(E):"");var F=u[ti]&&u[ti][T];if(!F)return this;!ze.touchNative&&ze.pointer&&d.indexOf("touch")===0?FN(u,d,F):ze.touch&&d==="dblclick"?VN(u,F):"removeEventListener"in u?u.removeEventListener(Sv[d]||d,F,!1):u.detachEvent("on"+d,F),u[ti][T]=null}function da(u){return u.stopPropagation?u.stopPropagation():u.originalEvent?u.originalEvent._stopped=!0:u.cancelBubble=!0,this}function Pv(u){return Ev(u,"wheel",da),this}function Gl(u){return Ye(u,"mousedown touchstart dblclick contextmenu",da),u._leaflet_disable_click=!0,this}function En(u){return u.preventDefault?u.preventDefault():u.returnValue=!1,this}function ha(u){return En(u),da(u),this}function Xx(u){if(u.composedPath)return u.composedPath();for(var d=[],g=u.target;g;)d.push(g),g=g.parentNode;return d}function Qx(u,d){if(!d)return new V(u.clientX,u.clientY);var g=xv(d),E=g.boundingClientRect;return new V((u.clientX-E.left)/g.x-d.clientLeft,(u.clientY-E.top)/g.y-d.clientTop)}var ZN=ze.linux&&ze.chrome?window.devicePixelRatio:ze.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?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;d<g?this._runFrame(this._easeOut(d/g),u):(this._runFrame(1),this._complete())},_runFrame:function(u,d){var g=this._startPos.add(this._offset.multiplyBy(u));d&&g._round(),Qt(this._el,g),this.fire("step")},_complete:function(){W(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(u){return 1-Math.pow(1-u,this._easeOutPower)}}),nt=se.extend({options:{crs:ie,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(u,d){d=y(this,d),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(u),this._initLayout(),this._onResize=a(this._onResize,this),this._initEvents(),d.maxBounds&&this.setMaxBounds(d.maxBounds),d.zoom!==void 0&&(this._zoom=this._limitZoom(d.zoom)),d.center&&d.zoom!==void 0&&this.setView(ae(d.center),d.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=Wl&&ze.any3d&&!ze.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Ye(this._proxy,qx,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(u,d,g){if(d=d===void 0?this._zoom:this._limitZoom(d),u=this._limitCenter(ae(u),d,this.options.maxBounds),g=g||{},this._stop(),this._loaded&&!g.reset&&g!==!0){g.animate!==void 0&&(g.zoom=i({animate:g.animate},g.zoom),g.pan=i({animate:g.animate,duration:g.duration},g.pan));var E=this._zoom!==d?this._tryAnimatedZoom&&this._tryAnimatedZoom(u,d,g.zoom):this._tryAnimatedPan(u,g.pan);if(E)return clearTimeout(this._sizeTimer),this}return this._resetView(u,d,g.pan&&g.pan.noMoveStart),this},setZoom:function(u,d){return this._loaded?this.setView(this.getCenter(),u,{zoom:d}):(this._zoom=u,this)},zoomIn:function(u,d){return u=u||(ze.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+u,d)},zoomOut:function(u,d){return u=u||(ze.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-u,d)},setZoomAround:function(u,d,g){var E=this.getZoomScale(d),T=this.getSize().divideBy(2),F=u instanceof V?u:this.latLngToContainerPoint(u),K=F.subtract(T).multiplyBy(1-1/E),ce=this.containerPointToLatLng(T.add(K));return this.setView(ce,d,{zoom:g})},_getBoundsCenterZoom:function(u,d){d=d||{},u=u.getBounds?u.getBounds():q(u);var g=A(d.paddingTopLeft||d.padding||[0,0]),E=A(d.paddingBottomRight||d.padding||[0,0]),T=this.getBoundsZoom(u,!1,g.add(E));if(T=typeof d.maxZoom=="number"?Math.min(d.maxZoom,T):T,T===1/0)return{center:u.getCenter(),zoom:T};var F=E.subtract(g).divideBy(2),K=this.project(u.getSouthWest(),T),ce=this.project(u.getNorthEast(),T),de=this.unproject(K.add(ce).divideBy(2).add(F),T);return{center:de,zoom:T}},fitBounds:function(u,d){if(u=q(u),!u.isValid())throw new Error("Bounds are not valid.");var g=this._getBoundsCenterZoom(u,d);return this.setView(g.center,g.zoom,d)},fitWorld:function(u){return this.fitBounds([[-90,-180],[90,180]],u)},panTo:function(u,d){return this.setView(u,this._zoom,{pan:d})},panBy:function(u,d){if(u=A(u).round(),d=d||{},!u.x&&!u.y)return this.fire("moveend");if(d.animate!==!0&&!this.getSize().contains(u))return this._resetView(this.unproject(this.project(this.getCenter()).add(u)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new eS,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),d.noMoveStart||this.fire("movestart"),d.animate!==!1){Ze(this._mapPane,"leaflet-pan-anim");var g=this._getMapPanePos().subtract(u).round();this._panAnim.run(this._mapPane,g,d.duration||.25,d.easeLinearity)}else this._rawPanBy(u),this.fire("move").fire("moveend");return this},flyTo:function(u,d,g){if(g=g||{},g.animate===!1||!ze.any3d)return this.setView(u,d,g);this._stop();var E=this.project(this.getCenter()),T=this.project(u),F=this.getSize(),K=this._zoom;u=ae(u),d=d===void 0?K:d;var ce=Math.max(F.x,F.y),de=ce*this.getZoomScale(K,d),be=T.distanceTo(E)||1,Ae=1.42,Ue=Ae*Ae;function Je(Jt){var Hf=Jt?-1:1,F6=Jt?de:ce,$6=de*de-ce*ce+Hf*Ue*Ue*be*be,j6=2*F6*Ue*be,$v=$6/j6,DS=Math.sqrt($v*$v+1)-$v,B6=DS<1e-9?-18:Math.log(DS);return B6}function br(Jt){return(Math.exp(Jt)-Math.exp(-Jt))/2}function ma(Jt){return(Math.exp(Jt)+Math.exp(-Jt))/2}function zf(Jt){return br(Jt)/ma(Jt)}var ao=Je(0);function Fv(Jt){return ce*(ma(ao)/ma(ao+Ae*Jt))}function A6(Jt){return ce*(ma(ao)*zf(ao+Ae*Jt)-br(ao))/Ue}function D6(Jt){return 1-Math.pow(1-Jt,1.5)}var N6=Date.now(),RS=(Je(1)-ao)/Ae,I6=g.duration?1e3*g.duration:1e3*RS*.8;function AS(){var Jt=(Date.now()-N6)/I6,Hf=D6(Jt)*RS;Jt<=1?(this._flyToFrame=H(AS,this),this._move(this.unproject(E.add(T.subtract(E).multiplyBy(A6(Hf)/be)),K),this.getScaleZoom(ce/Fv(Hf),K),{flyTo:!0})):this._move(u,d)._moveEnd(!0)}return this._moveStart(!0,g.noMoveStart),AS.call(this),this},flyToBounds:function(u,d){var g=this._getBoundsCenterZoom(u,d);return this.flyTo(g.center,g.zoom,d)},setMaxBounds:function(u){return u=q(u),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),u.isValid()?(this.options.maxBounds=u,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(u){var d=this.options.minZoom;return this.options.minZoom=u,this._loaded&&d!==u&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(u):this},setMaxZoom:function(u){var d=this.options.maxZoom;return this.options.maxZoom=u,this._loaded&&d!==u&&(this.fire("zoomlevelschange"),this.getZoom()>this.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;K<g.length;K++)g[K].listens(d,!0)&&F.push(g[K]);T=F.concat(T)}if(T.length){d==="contextmenu"&&En(u);var ce=T[0],de={originalEvent:u};if(u.type!=="keypress"&&u.type!=="keydown"&&u.type!=="keyup"){var be=ce.getLatLng&&(!ce._radius||ce._radius<=10);de.containerPoint=be?this.latLngToContainerPoint(ce.getLatLng()):this.mouseEventToContainerPoint(u),de.layerPoint=this.containerPointToLayerPoint(de.containerPoint),de.latlng=be?ce.getLatLng():this.layerPointToLatLng(de.layerPoint)}for(K=0;K<T.length;K++)if(T[K].fire(d,de,!0),de.originalEvent._stopped||T[K].options.bubblingMouseEvents===!1&&O(this._mouseEvents,d)!==-1)return}},_draggableMoved:function(u){return u=u.dragging&&u.dragging.enabled()?u:this,u.dragging&&u.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var u=0,d=this._handlers.length;u<d;u++)this._handlers[u].disable()},whenReady:function(u,d){return this._loaded?u.call(d||this,{target:this}):this.on("load",u,d),this},_getMapPanePos:function(){return fa(this._mapPane)||new V(0,0)},_moved:function(){var u=this._getMapPanePos();return u&&!u.equals([0,0])},_getTopLeftPoint:function(u,d){var g=u&&d!==void 0?this._getNewPixelOrigin(u,d):this.getPixelOrigin();return g.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(u,d){var g=this.getSize()._divideBy(2);return this.project(u,d)._subtract(g)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(u,d,g){var E=this._getNewPixelOrigin(g,d);return this.project(u,d)._subtract(E)},_latLngBoundsToNewLayerBounds:function(u,d,g){var E=this._getNewPixelOrigin(g,d);return ee([this.project(u.getSouthWest(),d)._subtract(E),this.project(u.getNorthWest(),d)._subtract(E),this.project(u.getSouthEast(),d)._subtract(E),this.project(u.getNorthEast(),d)._subtract(E)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(u){return this.latLngToLayerPoint(u).subtract(this._getCenterLayerPoint())},_limitCenter:function(u,d,g){if(!g)return u;var E=this.project(u,d),T=this.getSize().divideBy(2),F=new B(E.subtract(T),E.add(T)),K=this._getBoundsOffset(F,g,d);return Math.abs(K.x)<=1&&Math.abs(K.y)<=1?u:this.unproject(E.add(K),d)},_limitOffset:function(u,d){if(!d)return u;var g=this.getPixelBounds(),E=new B(g.min.add(u),g.max.add(u));return u.add(this._getBoundsOffset(E,d))},_getBoundsOffset:function(u,d,g){var E=ee(this.project(d.getNorthEast(),g),this.project(d.getSouthWest(),g)),T=E.min.subtract(u.min),F=E.max.subtract(u.max),K=this._rebound(T.x,-F.x),ce=this._rebound(T.y,-F.y);return new V(K,ce)},_rebound:function(u,d){return u+d>0?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 g<E?-1:E<g?1:0}},initialize:function(u,d,g){y(this,g),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1;for(var E in u)this._addLayer(u[E],E);for(E in d)this._addLayer(d[E],E,!0)},onAdd:function(u){this._initLayout(),this._update(),this._map=u,u.on("zoomend",this._checkDisabledLayers,this);for(var d=0;d<this._layers.length;d++)this._layers[d].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(u){return Ir.prototype.addTo.call(this,u),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var u=0;u<this._layers.length;u++)this._layers[u].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(u,d){return this._addLayer(u,d),this._map?this._update():this},addOverlay:function(u,d){return this._addLayer(u,d,!0),this._map?this._update():this},removeLayer:function(u){u.off("add remove",this._onLayerChange,this);var d=this._getLayer(l(u));return d&&this._layers.splice(this._layers.indexOf(d),1),this._map?this._update():this},expand:function(){Ze(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var u=this._map.getSize().y-(this._container.offsetTop+50);return u<this._section.clientHeight?(Ze(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=u+"px"):Wt(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return Wt(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var u="leaflet-control-layers",d=this._container=st("div",u),g=this.options.collapsed;d.setAttribute("aria-haspopup",!0),Gl(d),Pv(d);var E=this._section=st("section",u+"-list");g&&(this._map.on("click",this.collapse,this),Ye(d,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var T=this._layersLink=st("a",u+"-toggle",d);T.href="#",T.title="Layers",T.setAttribute("role","button"),Ye(T,{keydown:function(F){F.keyCode===13&&this._expandSafely()},click:function(F){En(F),this._expandSafely()}},this),g||this.expand(),this._baseLayersList=st("div",u+"-base",E),this._separator=st("div",u+"-separator",E),this._overlaysList=st("div",u+"-overlays",E),d.appendChild(E)},_getLayer:function(u){for(var d=0;d<this._layers.length;d++)if(this._layers[d]&&l(this._layers[d].layer)===u)return this._layers[d]},_addLayer:function(u,d,g){this._map&&u.on("add remove",this._onLayerChange,this),this._layers.push({layer:u,name:d,overlay:g}),this.options.sortLayers&&this._layers.sort(a(function(E,T){return this.options.sortFunction(E.layer,T.layer,E.name,T.name)},this)),this.options.autoZIndex&&u.setZIndex&&(this._lastZIndex++,u.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Of(this._baseLayersList),Of(this._overlaysList),this._layerControlInputs=[];var u,d,g,E,T=0;for(g=0;g<this._layers.length;g++)E=this._layers[g],this._addItem(E),d=d||E.overlay,u=u||!E.overlay,T+=E.overlay?0:1;return this.options.hideSingleBase&&(u=u&&T>1,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='<input type="radio" class="leaflet-control-layers-selector" name="'+u+'"'+(d?' checked="checked"':"")+"/>",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<T.length;F++)this._map.hasLayer(T[F])&&this._map.removeLayer(T[F]);for(F=0;F<E.length;F++)this._map.hasLayer(E[F])||this._map.addLayer(E[F]);this._handlingClick=!1,this._refocusOnMap()},_checkDisabledLayers:function(){for(var u=this._layerControlInputs,d,g,E=this._map.getZoom(),T=u.length-1;T>=0;T--)d=u[T],g=this._getLayer(d.layerId).layer,d.disabled=g.options.minZoom!==void 0&&E<g.options.minZoom||g.options.maxZoom!==void 0&&E>g.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:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',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._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(u.shiftKey?3:1))},_zoomOut:function(u){!this._disabled&&this._map._zoom>this._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='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',kv=Ir.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(ze.inlineSvg?e6+" ":"")+"Leaflet</a>"},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(' <span aria-hidden="true">|</span> ')}}});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)<this.options.clickTolerance||(g.x/=this._parentScale.x,g.y/=this._parentScale.y,En(u),this._moved||(this.fire("dragstart"),this._moved=!0,Ze(document.body,"leaflet-dragging"),this._lastTarget=u.target||u.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),Ze(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(g),this._moving=!0,this._lastEvent=u,this._updatePosition())}},_updatePosition:function(){var u={originalEvent:this._lastEvent};this.fire("predrag",u),Qt(this._element,this._newPos),this.fire("drag",u)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(u){Wt(document.body,"leaflet-dragging"),this._lastTarget&&(Wt(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),vt(document,"mousemove touchmove",this._onMove,this),vt(document,"mouseup touchend touchcancel",this._onUp,this),_v(),ql(),this._moved&&this._moving&&this.fire("dragend",{noInertia:u,distance:this._newPos.distanceTo(this._startPos)}),this._moving=!1,io._dragging=!1}});function iS(u,d){if(!d||!u.length)return u.slice();var g=d*d;return u=o6(u,g),u=i6(u,g),u}function oS(u,d,g){return Math.sqrt(Xl(u,d,g,!0))}function r6(u,d,g){return Xl(u,d,g)}function i6(u,d){var g=u.length,E=typeof Uint8Array!=void 0+""?Uint8Array:Array,T=new E(g);T[0]=T[g-1]=1,Mv(u,T,d,0,g-1);var F,K=[];for(F=0;F<g;F++)T[F]&&K.push(u[F]);return K}function Mv(u,d,g,E,T){var F=0,K,ce,de;for(ce=E+1;ce<=T-1;ce++)de=Xl(u[ce],u[E],u[T],!0),de>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;E<F;E++)a6(u[E],u[T])>d&&(g.push(u[E]),T=E);return T<F-1&&g.push(u[F-1]),g}var aS;function sS(u,d,g,E,T){var F=E?aS:pa(u,g),K=pa(d,g),ce,de,be;for(aS=K;;){if(!(F|K))return[u,d];if(F&K)return!1;ce=F||K,de=Mf(u,d,ce,g,T),be=pa(de,g),ce===F?(u=de,F=be):(d=de,K=be)}}function Mf(u,d,g,E,T){var F=d.x-u.x,K=d.y-u.y,ce=E.min,de=E.max,be,Ae;return g&8?(be=u.x+F*(de.y-u.y)/K,Ae=de.y):g&4?(be=u.x+F*(ce.y-u.y)/K,Ae=ce.y):g&2?(be=de.x,Ae=u.y+K*(de.x-u.x)/F):g&1&&(be=ce.x,Ae=u.y+K*(ce.x-u.x)/F),new V(be,Ae,T)}function pa(u,d){var g=0;return u.x<d.min.x?g|=1:u.x>d.max.x&&(g|=2),u.y<d.min.y?g|=4:u.y>d.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;g<Je-1;g++)E+=Ae[g].distanceTo(Ae[g+1])/2;if(E===0)be=Ae[0];else for(g=0,F=0;g<Je-1;g++)if(K=Ae[g],ce=Ae[g+1],T=K.distanceTo(ce),F+=T,F>E){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;F<Ae;F++)u[F]._code=pa(u[F],d);for(ce=0;ce<4;ce++){for(Ue=T[ce],E=[],F=0,Ae=u.length,K=Ae-1;F<Ae;K=F++)de=u[F],be=u[K],de._code&Ue?be._code&Ue||(Je=Mf(be,de,Ue,d,g),Je._code=pa(Je,d),E.push(Je)):(be._code&Ue&&(Je=Mf(be,de,Ue,d,g),Je._code=pa(Je,d),E.push(Je)),E.push(de));u=E}return u}function fS(u,d){var g,E,T,F,K,ce,de,be,Ae;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 Ue=[];for(var Je in u)Ue.push(d.project(ae(u[Je])));var br=Ue.length;for(ce=de=be=0,g=0,E=br-1;g<br;E=g++)T=Ue[g],F=Ue[E],K=T.y*F.x-F.y*T.x,de+=(T.x+F.x)*K,be+=(T.y+F.y)*K,ce+=K*3;return ce===0?Ae=Ue[0]:Ae=[de/ce,be/ce],d.unproject(A(Ae))}var l6={__proto__:null,clipPolygon:cS,polygonCenter:fS},Lv={project:function(u){return new V(u.lng,u.lat)},unproject:function(u){return new ne(u.y,u.x)},bounds:new B([-180,-90],[180,90])},Rv={R:6378137,R_MINOR:6356752314245179e-9,bounds:new B([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(u){var d=Math.PI/180,g=this.R,E=u.lat*d,T=this.R_MINOR/g,F=Math.sqrt(1-T*T),K=F*Math.sin(E),ce=Math.tan(Math.PI/4-E/2)/Math.pow((1-K)/(1+K),F/2);return E=-g*Math.log(Math.max(ce,1e-10)),new V(u.lng*d*g,E)},unproject:function(u){for(var d=180/Math.PI,g=this.R,E=this.R_MINOR/g,T=Math.sqrt(1-E*E),F=Math.exp(-u.y/g),K=Math.PI/2-2*Math.atan(F),ce=0,de=.1,be;ce<15&&Math.abs(de)>1e-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;d<g;d++)this.addLayer(u[d])},_addZoomLimit:function(u){(!isNaN(u.options.maxZoom)||!isNaN(u.options.minZoom))&&(this._zoomBoundLayers[l(u)]=u,this._updateZoomLevels())},_removeZoomLimit:function(u){var d=l(u);this._zoomBoundLayers[d]&&(delete this._zoomBoundLayers[d],this._updateZoomLevels())},_updateZoomLevels:function(){var u=1/0,d=-1/0,g=this._getZoomSpan();for(var E in this._zoomBoundLayers){var T=this._zoomBoundLayers[E].options;u=T.minZoom===void 0?u:Math.min(u,T.minZoom),d=T.maxZoom===void 0?d:Math.max(d,T.maxZoom)}this._layersMaxZoom=d===-1/0?void 0:d,this._layersMinZoom=u===1/0?void 0:u,g!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var ms=Fr.extend({initialize:function(u,d){y(this,d),this._layers={};var g,E;if(u)for(g=0,E=u.length;g<E;g++)this.addLayer(u[g])},addLayer:function(u){var d=this.getLayerId(u);return this._layers[d]=u,this._map&&this._map.addLayer(u),this},removeLayer:function(u){var d=u in this._layers?u:this.getLayerId(u);return this._map&&this._layers[d]&&this._map.removeLayer(this._layers[d]),delete this._layers[d],this},hasLayer:function(u){var d=typeof u=="number"?u:this.getLayerId(u);return d in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(u){var d=Array.prototype.slice.call(arguments,1),g,E;for(g in this._layers)E=this._layers[g],E[u]&&E[u].apply(E,d);return this},onAdd:function(u){this.eachLayer(u.addLayer,u)},onRemove:function(u){this.eachLayer(u.removeLayer,u)},eachLayer:function(u,d){for(var g in this._layers)u.call(d,this._layers[g]);return this},getLayer:function(u){return this._layers[u]},getLayers:function(){var u=[];return this.eachLayer(u.push,u),u},setZIndex:function(u){return this.invoke("setZIndex",u)},getLayerId:function(u){return l(u)}}),d6=function(u,d){return new ms(u,d)},Ei=ms.extend({addLayer:function(u){return this.hasLayer(u)?this:(u.addEventParent(this),ms.prototype.addLayer.call(this,u),this.fire("layeradd",{layer:u}))},removeLayer:function(u){return this.hasLayer(u)?(u in this._layers&&(u=this._layers[u]),u.removeEventParent(this),ms.prototype.removeLayer.call(this,u),this.fire("layerremove",{layer:u})):this},setStyle:function(u){return this.invoke("setStyle",u)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var u=new z;for(var d in this._layers){var g=this._layers[d];u.extend(g.getBounds?g.getBounds():g.getLatLng())}return u}}),h6=function(u,d){return new Ei(u,d)},gs=Y.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(u){y(this,u)},createIcon:function(u){return this._createIcon("icon",u)},createShadow:function(u){return this._createIcon("shadow",u)},_createIcon:function(u,d){var g=this._getIconUrl(u);if(!g){if(u==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var E=this._createImg(g,d&&d.tagName==="IMG"?d:null);return this._setIconStyles(E,u),(this.options.crossOrigin||this.options.crossOrigin==="")&&(E.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),E},_setIconStyles:function(u,d){var g=this.options,E=g[d+"Size"];typeof E=="number"&&(E=[E,E]);var T=A(E),F=A(d==="shadow"&&g.shadowAnchor||g.iconAnchor||T&&T.divideBy(2,!0));u.className="leaflet-marker-"+d+" "+(g.className||""),F&&(u.style.marginLeft=-F.x+"px",u.style.marginTop=-F.y+"px"),T&&(u.style.width=T.x+"px",u.style.height=T.y+"px")},_createImg:function(u,d){return d=d||document.createElement("img"),d.src=u,d},_getIconUrl:function(u){return ze.retina&&this.options[u+"RetinaUrl"]||this.options[u+"Url"]}});function p6(u){return new gs(u)}var Ql=gs.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(u){return typeof Ql.imagePath!="string"&&(Ql.imagePath=this._detectIconPath()),(this.options.imagePath||Ql.imagePath)+gs.prototype._getIconUrl.call(this,u)},_stripUrl:function(u){var d=function(g,E,T){var F=E.exec(g);return F&&F[T]};return u=d(u,/^url\((['"])?(.+)\1\)$/,2),u&&d(u,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var u=st("div","leaflet-default-icon-path",document.body),d=Vl(u,"background-image")||Vl(u,"backgroundImage");if(document.body.removeChild(u),d=this._stripUrl(d),d)return d;var g=document.querySelector('link[href$="leaflet.css"]');return g?g.href.substring(0,g.href.length-11-1):""}}),hS=ni.extend({initialize:function(u){this._marker=u},addHooks:function(){var u=this._marker._icon;this._draggable||(this._draggable=new io(u,u,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),Ze(u,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&Wt(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(u){var d=this._marker,g=d._map,E=this._marker.options.autoPanSpeed,T=this._marker.options.autoPanPadding,F=fa(d._icon),K=g.getPixelBounds(),ce=g.getPixelOrigin(),de=ee(K.min._subtract(ce).add(T),K.max._subtract(ce).subtract(T));if(!de.contains(F)){var be=A((Math.max(de.max.x,F.x)-de.max.x)/(K.max.x-de.max.x)-(Math.min(de.min.x,F.x)-de.min.x)/(K.min.x-de.min.x),(Math.max(de.max.y,F.y)-de.max.y)/(K.max.y-de.max.y)-(Math.min(de.min.y,F.y)-de.min.y)/(K.min.y-de.min.y)).multiplyBy(E);g.panBy(be,{animate:!1}),this._draggable._newPos._add(be),this._draggable._startPos._add(be),Qt(d._icon,this._draggable._newPos),this._onDrag(u),this._panRequest=H(this._adjustPan.bind(this,u))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(u){this._marker.options.autoPan&&(W(this._panRequest),this._panRequest=H(this._adjustPan.bind(this,u)))},_onDrag:function(u){var d=this._marker,g=d._shadow,E=fa(d._icon),T=d._map.layerPointToLatLng(E);g&&Qt(g,E),d._latlng=T,u.latlng=T,u.oldLatLng=this._oldLatLng,d.fire("move",u).fire("drag",u)},_onDragEnd:function(u){W(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",u)}}),Lf=Fr.extend({options:{icon:new Ql,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(u,d){y(this,d),this._latlng=ae(u)},onAdd:function(u){this._zoomAnimated=this._zoomAnimated&&u.options.markerZoomAnimation,this._zoomAnimated&&u.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(u){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&u.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(u){var d=this._latlng;return this._latlng=ae(u),this.update(),this.fire("move",{oldLatLng:d,latlng:this._latlng})},setZIndexOffset:function(u){return this.options.zIndexOffset=u,this.update()},getIcon:function(){return this.options.icon},setIcon:function(u){return this.options.icon=u,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var u=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(u)}return this},_initIcon:function(){var u=this.options,d="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),g=u.icon.createIcon(this._icon),E=!1;g!==this._icon&&(this._icon&&this._removeIcon(),E=!0,u.title&&(g.title=u.title),g.tagName==="IMG"&&(g.alt=u.alt||"")),Ze(g,d),u.keyboard&&(g.tabIndex="0",g.setAttribute("role","button")),this._icon=g,u.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Ye(g,"focus",this._panOnFocus,this);var T=u.icon.createShadow(this._shadow),F=!1;T!==this._shadow&&(this._removeShadow(),F=!0),T&&(Ze(T,d),T.alt=""),this._shadow=T,u.opacity<1&&this._updateOpacity(),E&&this.getPane().appendChild(this._icon),this._initInteraction(),T&&F&&this.getPane(u.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&vt(this._icon,"focus",this._panOnFocus,this),Lt(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&Lt(this._shadow),this._shadow=null},_setPos:function(u){this._icon&&Qt(this._icon,u),this._shadow&&Qt(this._shadow,u),this._zIndex=u.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(u){this._icon&&(this._icon.style.zIndex=this._zIndex+u)},_animateZoom:function(u){var d=this._map._latLngToNewLayerPoint(this._latlng,u.zoom,u.center).round();this._setPos(d)},_initInteraction:function(){if(this.options.interactive&&(Ze(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),hS)){var u=this.options.draggable;this.dragging&&(u=this.dragging.enabled(),this.dragging.disable()),this.dragging=new hS(this),u&&this.dragging.enable()}},setOpacity:function(u){return this.options.opacity=u,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var u=this.options.opacity;this._icon&&yr(this._icon,u),this._shadow&&yr(this._shadow,u)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var u=this._map;if(u){var d=this.options.icon.options,g=d.iconSize?A(d.iconSize):A(0,0),E=d.iconAnchor?A(d.iconAnchor):A(0,0);u.panInside(this._latlng,{paddingTopLeft:E,paddingBottomRight:g.subtract(E)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function m6(u,d){return new Lf(u,d)}var oo=Fr.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(u){this._renderer=u.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(u){return y(this,u),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&u&&Object.prototype.hasOwnProperty.call(u,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),Rf=oo.extend({options:{fill:!0,radius:10},initialize:function(u,d){y(this,d),this._latlng=ae(u),this._radius=this.options.radius},setLatLng:function(u){var d=this._latlng;return this._latlng=ae(u),this.redraw(),this.fire("move",{oldLatLng:d,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(u){return this.options.radius=this._radius=u,this.redraw()},getRadius:function(){return this._radius},setStyle:function(u){var d=u&&u.radius||this._radius;return oo.prototype.setStyle.call(this,u),this.setRadius(d),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var u=this._radius,d=this._radiusY||u,g=this._clickTolerance(),E=[u+g,d+g];this._pxBounds=new B(this._point.subtract(E),this._point.add(E))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(u){return u.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function g6(u,d){return new Rf(u,d)}var Av=Rf.extend({initialize:function(u,d,g){if(typeof d=="number"&&(d=i({},g,{radius:d})),y(this,d),this._latlng=ae(u),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(u){return this._mRadius=u,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var u=[this._radius,this._radiusY||this._radius];return new z(this._map.layerPointToLatLng(this._point.subtract(u)),this._map.layerPointToLatLng(this._point.add(u)))},setStyle:oo.prototype.setStyle,_project:function(){var u=this._latlng.lng,d=this._latlng.lat,g=this._map,E=g.options.crs;if(E.distance===P.distance){var T=Math.PI/180,F=this._mRadius/P.R/T,K=g.project([d+F,u]),ce=g.project([d-F,u]),de=K.add(ce).divideBy(2),be=g.unproject(de).lat,Ae=Math.acos((Math.cos(F*T)-Math.sin(d*T)*Math.sin(be*T))/(Math.cos(d*T)*Math.cos(be*T)))/T;(isNaN(Ae)||Ae===0)&&(Ae=F/Math.cos(Math.PI/180*d)),this._point=de.subtract(g.getPixelOrigin()),this._radius=isNaN(Ae)?0:de.x-g.project([be,u-Ae]).x,this._radiusY=de.y-K.y}else{var Ue=E.unproject(E.project(this._latlng).subtract([this._mRadius,0]));this._point=g.latLngToLayerPoint(this._latlng),this._radius=this._point.x-g.latLngToLayerPoint(Ue).x}this._updateBounds()}});function v6(u,d,g){return new Av(u,d,g)}var Oi=oo.extend({options:{smoothFactor:1,noClip:!1},initialize:function(u,d){y(this,d),this._setLatLngs(u)},getLatLngs:function(){return this._latlngs},setLatLngs:function(u){return this._setLatLngs(u),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(u){for(var d=1/0,g=null,E=Xl,T,F,K=0,ce=this._parts.length;K<ce;K++)for(var de=this._parts[K],be=1,Ae=de.length;be<Ae;be++){T=de[be-1],F=de[be];var Ue=E(u,T,F,!0);Ue<d&&(d=Ue,g=E(u,T,F))}return g&&(g.distance=Math.sqrt(d)),g},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return uS(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(u,d){return d=d||this._defaultShape(),u=ae(u),d.push(u),this._bounds.extend(u),this.redraw()},_setLatLngs:function(u){this._bounds=new z,this._latlngs=this._convertLatLngs(u)},_defaultShape:function(){return _r(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(u){for(var d=[],g=_r(u),E=0,T=u.length;E<T;E++)g?(d[E]=ae(u[E]),this._bounds.extend(d[E])):d[E]=this._convertLatLngs(u[E]);return d},_project:function(){var u=new B;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,u),this._bounds.isValid()&&u.isValid()&&(this._rawPxBounds=u,this._updateBounds())},_updateBounds:function(){var u=this._clickTolerance(),d=new V(u,u);this._rawPxBounds&&(this._pxBounds=new B([this._rawPxBounds.min.subtract(d),this._rawPxBounds.max.add(d)]))},_projectLatlngs:function(u,d,g){var E=u[0]instanceof ne,T=u.length,F,K;if(E){for(K=[],F=0;F<T;F++)K[F]=this._map.latLngToLayerPoint(u[F]),g.extend(K[F]);d.push(K)}else for(F=0;F<T;F++)this._projectLatlngs(u[F],d,g)},_clipPoints:function(){var u=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(u))){if(this.options.noClip){this._parts=this._rings;return}var d=this._parts,g,E,T,F,K,ce,de;for(g=0,T=0,F=this._rings.length;g<F;g++)for(de=this._rings[g],E=0,K=de.length;E<K-1;E++)ce=sS(de[E],de[E+1],u,E,!0),ce&&(d[T]=d[T]||[],d[T].push(ce[0]),(ce[1]!==de[E+1]||E===K-2)&&(d[T].push(ce[1]),T++))}},_simplifyPoints:function(){for(var u=this._parts,d=this.options.smoothFactor,g=0,E=u.length;g<E;g++)u[g]=iS(u[g],d)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(u,d){var g,E,T,F,K,ce,de=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(u))return!1;for(g=0,F=this._parts.length;g<F;g++)for(ce=this._parts[g],E=0,K=ce.length,T=K-1;E<K;T=E++)if(!(!d&&E===0)&&oS(u,ce[T],ce[E])<=de)return!0;return!1}});function y6(u,d){return new Oi(u,d)}Oi._flat=lS;var vs=Oi.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return fS(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(u){var d=Oi.prototype._convertLatLngs.call(this,u),g=d.length;return g>=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;E<T;E++)F=cS(this._rings[E],u,!0),F.length&&this._parts.push(F)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(u){var d=!1,g,E,T,F,K,ce,de,be;if(!this._pxBounds||!this._pxBounds.contains(u))return!1;for(F=0,de=this._parts.length;F<de;F++)for(g=this._parts[F],K=0,be=g.length,ce=be-1;K<be;ce=K++)E=g[K],T=g[ce],E.y>u.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;g<E;g++)T=d[g],(T.geometries||T.geometry||T.features||T.coordinates)&&this.addData(T);return this}var F=this.options;if(F.filter&&!F.filter(u))return this;var K=Af(u,F);return K?(K.feature=If(u),K.defaultOptions=K.options,this.resetStyle(K),F.onEachFeature&&F.onEachFeature(u,K),this.addLayer(K)):this},resetStyle:function(u){return u===void 0?this.eachLayer(this.resetStyle,this):(u.options=i({},u.defaultOptions),this._setLayerStyle(u,this.options.style),this)},setStyle:function(u){return this.eachLayer(function(d){this._setLayerStyle(d,u)},this)},_setLayerStyle:function(u,d){u.setStyle&&(typeof d=="function"&&(d=d(u.feature)),u.setStyle(d))}});function Af(u,d){var g=u.type==="Feature"?u.geometry:u,E=g?g.coordinates:null,T=[],F=d&&d.pointToLayer,K=d&&d.coordsToLatLng||Dv,ce,de,be,Ae;if(!E&&!g)return null;switch(g.type){case"Point":return ce=K(E),pS(F,u,ce,d);case"MultiPoint":for(be=0,Ae=E.length;be<Ae;be++)ce=K(E[be]),T.push(pS(F,u,ce,d));return new Ei(T);case"LineString":case"MultiLineString":return de=Df(E,g.type==="LineString"?0:1,K),new Oi(de,d);case"Polygon":case"MultiPolygon":return de=Df(E,g.type==="Polygon"?1:2,K),new vs(de,d);case"GeometryCollection":for(be=0,Ae=g.geometries.length;be<Ae;be++){var Ue=Af({geometry:g.geometries[be],type:"Feature",properties:u.properties},d);Ue&&T.push(Ue)}return new Ei(T);case"FeatureCollection":for(be=0,Ae=g.features.length;be<Ae;be++){var Je=Af(g.features[be],d);Je&&T.push(Je)}return new Ei(T);default:throw new Error("Invalid GeoJSON object.")}}function pS(u,d,g,E){return u?u(d,g):new Lf(g,E&&E.markersInheritOptions&&E)}function Dv(u){return new ne(u[1],u[0],u[2])}function Df(u,d,g){for(var E=[],T=0,F=u.length,K;T<F;T++)K=d?Df(u[T],d-1,g):(g||Dv)(u[T]),E.push(K);return E}function Nv(u,d){return u=ae(u),u.alt!==void 0?[p(u.lng,d),p(u.lat,d),p(u.alt,d)]:[p(u.lng,d),p(u.lat,d)]}function Nf(u,d,g,E){for(var T=[],F=0,K=u.length;F<K;F++)T.push(d?Nf(u[F],_r(u[F])?0:d-1,g,E):Nv(u[F],E));return!d&&g&&T.push(T[0].slice()),T}function ys(u,d){return u.feature?i({},u.feature,{geometry:d}):If(d)}function If(u){return u.type==="Feature"||u.type==="FeatureCollection"?u:{type:"Feature",properties:{},geometry:u}}var Iv={toGeoJSON:function(u){return ys(this,{type:"Point",coordinates:Nv(this.getLatLng(),u)})}};Lf.include(Iv),Av.include(Iv),Rf.include(Iv),Oi.include({toGeoJSON:function(u){var d=!_r(this._latlngs),g=Nf(this._latlngs,d?1:0,!1,u);return ys(this,{type:(d?"Multi":"")+"LineString",coordinates:g})}}),vs.include({toGeoJSON:function(u){var d=!_r(this._latlngs),g=d&&!_r(this._latlngs[0]),E=Nf(this._latlngs,g?2:d?1:0,!0,u);return d||(E=[E]),ys(this,{type:(g?"Multi":"")+"Polygon",coordinates:E})}}),ms.include({toMultiPoint:function(u){var d=[];return this.eachLayer(function(g){d.push(g.toGeoJSON(u).geometry.coordinates)}),ys(this,{type:"MultiPoint",coordinates:d})},toGeoJSON:function(u){var d=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(d==="MultiPoint")return this.toMultiPoint(u);var g=d==="GeometryCollection",E=[];return this.eachLayer(function(T){if(T.toGeoJSON){var F=T.toGeoJSON(u);if(g)E.push(F.geometry);else{var K=If(F);K.type==="FeatureCollection"?E.push.apply(E,K.features):E.push(K)}}}),g?ys(this,{geometries:E,type:"GeometryCollection"}):{type:"FeatureCollection",features:E}}});function mS(u,d){return new Pi(u,d)}var b6=mS,Ff=Fr.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(u,d,g){this._url=u,this._bounds=q(d),y(this,g)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(Ze(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Lt(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(u){return this.options.opacity=u,this._image&&this._updateOpacity(),this},setStyle:function(u){return u.opacity&&this.setOpacity(u.opacity),this},bringToFront:function(){return this._map&&hs(this._image),this},bringToBack:function(){return this._map&&ps(this._image),this},setUrl:function(u){return this._url=u,this._image&&(this._image.src=u),this},setBounds:function(u){return this._bounds=q(u),this._map&&this._reset(),this},getEvents:function(){var u={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(u.zoomanim=this._animateZoom),u},setZIndex:function(u){return this.options.zIndex=u,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var u=this._url.tagName==="IMG",d=this._image=u?this._url:st("img");if(Ze(d,"leaflet-image-layer"),this._zoomAnimated&&Ze(d,"leaflet-zoom-animated"),this.options.className&&Ze(d,this.options.className),d.onselectstart=h,d.onmousemove=h,d.onload=a(this.fire,this,"load"),d.onerror=a(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(d.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),u){this._url=d.src;return}d.src=this._url,d.alt=this.options.alt},_animateZoom:function(u){var d=this._map.getZoomScale(u.zoom),g=this._map._latLngBoundsToNewLayerBounds(this._bounds,u.zoom,u.center).min;ca(this._image,g,d)},_reset:function(){var u=this._image,d=new B(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),g=d.getSize();Qt(u,d.min),u.style.width=g.x+"px",u.style.height=g.y+"px"},_updateOpacity:function(){yr(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var u=this.options.errorOverlayUrl;u&&this._url!==u&&(this._url=u,this._image.src=u)},getCenter:function(){return this._bounds.getCenter()}}),w6=function(u,d,g){return new Ff(u,d,g)},gS=Ff.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var u=this._url.tagName==="VIDEO",d=this._image=u?this._url:st("video");if(Ze(d,"leaflet-image-layer"),this._zoomAnimated&&Ze(d,"leaflet-zoom-animated"),this.options.className&&Ze(d,this.options.className),d.onselectstart=h,d.onmousemove=h,d.onloadeddata=a(this.fire,this,"load"),u){for(var g=d.getElementsByTagName("source"),E=[],T=0;T<g.length;T++)E.push(g[T].src);this._url=g.length>0?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;F<this._url.length;F++){var K=st("source");K.src=this._url[F],d.appendChild(K)}}});function x6(u,d,g){return new gS(u,d,g)}var vS=Ff.extend({_initImage:function(){var u=this._image=this._url;Ze(u,"leaflet-image-layer"),this._zoomAnimated&&Ze(u,"leaflet-zoom-animated"),this.options.className&&Ze(u,this.options.className),u.onselectstart=h,u.onmousemove=h}});function S6(u,d,g){return new vS(u,d,g)}var ri=Fr.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(u,d){u&&(u instanceof ne||S(u))?(this._latlng=ae(u),y(this,d)):(y(this,u),this._source=d),this.options.content&&(this._content=this.options.content)},openOn:function(u){return u=arguments.length?u:this._source._map,u.hasLayer(this)||u.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(u){return this._map?this.close():(arguments.length?this._source=u:u=this._source,this._prepareOpen(),this.openOn(u._map)),this},onAdd:function(u){this._zoomAnimated=u._zoomAnimated,this._container||this._initLayout(),u._fadeAnimated&&yr(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),u._fadeAnimated&&yr(this._container,1),this.bringToFront(),this.options.interactive&&(Ze(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(u){u._fadeAnimated?(yr(this._container,0),this._removeTimeout=setTimeout(a(Lt,void 0,this._container),200)):Lt(this._container),this.options.interactive&&(Wt(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(u){return this._latlng=ae(u),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(u){return this._content=u,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var u={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(u.zoomanim=this._animateZoom),u},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&hs(this._container),this},bringToBack:function(){return this._map&&ps(this._container),this},_prepareOpen:function(u){var d=this._source;if(!d._map)return!1;if(d instanceof Ei){d=null;var g=this._source._layers;for(var E in g)if(g[E]._map){d=g[E];break}if(!d)return!1;this._source=d}if(!u)if(d.getCenter)u=d.getCenter();else if(d.getLatLng)u=d.getLatLng();else if(d.getBounds)u=d.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(u),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var u=this._contentNode,d=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof d=="string")u.innerHTML=d;else{for(;u.hasChildNodes();)u.removeChild(u.firstChild);u.appendChild(d)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var u=this._map.latLngToLayerPoint(this._latlng),d=A(this.options.offset),g=this._getAnchor();this._zoomAnimated?Qt(this._container,u.add(g)):d=d.add(u).add(g);var E=this._containerBottom=-d.y,T=this._containerLeft=-Math.round(this._containerWidth/2)+d.x;this._container.style.bottom=E+"px",this._container.style.left=T+"px"}},_getAnchor:function(){return[0,0]}});nt.include({_initOverlay:function(u,d,g,E){var T=d;return T instanceof u||(T=new u(E).setContent(d)),g&&T.setLatLng(g),T}}),Fr.include({_initOverlay:function(u,d,g,E){var T=g;return T instanceof u?(y(T,E),T._source=this):(T=d&&!E?d:new u(E,this),T.setContent(g)),T}});var $f=ri.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(u){return u=arguments.length?u:this._source._map,!u.hasLayer(this)&&u._popup&&u._popup.options.autoClose&&u.removeLayer(u._popup),u._popup=this,ri.prototype.openOn.call(this,u)},onAdd:function(u){ri.prototype.onAdd.call(this,u),u.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof oo||this._source.on("preclick",da))},onRemove:function(u){ri.prototype.onRemove.call(this,u),u.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof oo||this._source.off("preclick",da))},getEvents:function(){var u=ri.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(u.preclick=this.close),this.options.keepInView&&(u.moveend=this._adjustPan),u},_initLayout:function(){var u="leaflet-popup",d=this._container=st("div",u+" "+(this.options.className||"")+" leaflet-zoom-animated"),g=this._wrapper=st("div",u+"-content-wrapper",d);if(this._contentNode=st("div",u+"-content",g),Gl(d),Pv(this._contentNode),Ye(d,"contextmenu",da),this._tipContainer=st("div",u+"-tip-container",d),this._tip=st("div",u+"-tip",this._tipContainer),this.options.closeButton){var E=this._closeButton=st("a",u+"-close-button",d);E.setAttribute("role","button"),E.setAttribute("aria-label","Close popup"),E.href="#close",E.innerHTML='<span aria-hidden="true">×</span>',Ye(E,"click",function(T){En(T),this.close()},this)}},_updateLayout:function(){var u=this._contentNode,d=u.style;d.width="",d.whiteSpace="nowrap";var g=u.offsetWidth;g=Math.min(g,this.options.maxWidth),g=Math.max(g,this.options.minWidth),d.width=g+1+"px",d.whiteSpace="",d.height="";var E=u.offsetHeight,T=this.options.maxHeight,F="leaflet-popup-scrolled";T&&E>T?(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.x<F.x?(ce="right",d=0,g=be/2):(ce="left",d=de+(Ae.x+Ue.x)*2,g=be/2),u=u.subtract(A(d,g,!0)).add(Ae).add(Ue),Wt(T,"leaflet-tooltip-right"),Wt(T,"leaflet-tooltip-left"),Wt(T,"leaflet-tooltip-top"),Wt(T,"leaflet-tooltip-bottom"),Ze(T,"leaflet-tooltip-"+ce),Qt(T,u)},_updatePosition:function(){var u=this._map.latLngToLayerPoint(this._latlng);this._setPosition(u)},setOpacity:function(u){this.options.opacity=u,this._container&&yr(this._container,u)},_animateZoom:function(u){var d=this._map._latLngToNewLayerPoint(this._latlng,u.zoom,u.center);this._setPosition(d)},_getAnchor:function(){return A(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),O6=function(u,d){return new jf(u,d)};nt.include({openTooltip:function(u,d,g){return this._initOverlay(jf,u,d,g).openOn(this),this},closeTooltip:function(u){return u.close(),this}}),Fr.include({bindTooltip:function(u,d){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(jf,this._tooltip,u,d),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(u){if(!(!u&&this._tooltipHandlersAdded)){var d=u?"off":"on",g={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?g.add=this._openTooltip:(g.mouseover=this._openTooltip,g.mouseout=this.closeTooltip,g.click=this._openTooltip,this._map?this._addFocusListeners():g.add=this._addFocusListeners),this._tooltip.options.sticky&&(g.mousemove=this._moveTooltip),this[d](g),this._tooltipHandlersAdded=!u}},openTooltip:function(u){return this._tooltip&&(this instanceof Ei||(this._tooltip._source=this),this._tooltip._prepareOpen(u)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(u){return this._tooltip&&this._tooltip.setContent(u),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(u){var d=u.getElement();d&&(Ye(d,"focus",function(){this._tooltip._source=u,this.openTooltip()},this),Ye(d,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(u){var d=u.getElement();d&&d.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(u){!this._tooltip||!this._map||this._map.dragging&&this._map.dragging.moving()||(this._tooltip._source=u.layer||u.target,this.openTooltip(this._tooltip.options.sticky?u.latlng:void 0))},_moveTooltip:function(u){var d=u.latlng,g,E;this._tooltip.options.sticky&&u.originalEvent&&(g=this._map.mouseEventToContainerPoint(u.originalEvent),E=this._map.containerPointToLayerPoint(g),d=this._map.layerPointToLatLng(E)),this._tooltip.setLatLng(d)}});var yS=gs.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(u){var d=u&&u.tagName==="DIV"?u:document.createElement("div"),g=this.options;if(g.html instanceof Element?(Of(d),d.appendChild(g.html)):d.innerHTML=g.html!==!1?g.html:"",g.bgPos){var E=A(g.bgPos);d.style.backgroundPosition=-E.x+"px "+-E.y+"px"}return this._setIconStyles(d,"icon"),d},createShadow:function(){return null}});function P6(u){return new yS(u)}gs.Default=Ql;var Jl=Fr.extend({options:{tileSize:256,opacity:1,updateWhenIdle:ze.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(u){y(this,u)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(u){u._addZoomLimit(this)},onRemove:function(u){this._removeAllTiles(),Lt(this._container),u._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(hs(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(ps(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(u){return this.options.opacity=u,this._updateOpacity(),this},setZIndex:function(u){return this.options.zIndex=u,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var u=this._clampZoom(this._map.getZoom());u!==this._tileZoom&&(this._tileZoom=u,this._updateLevels()),this._update()}return this},getEvents:function(){var u={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=c(this._onMoveEnd,this.options.updateInterval,this)),u.move=this._onMove),this._zoomAnimated&&(u.zoomanim=this._animateZoom),u},createTile:function(){return document.createElement("div")},getTileSize:function(){var u=this.options.tileSize;return u instanceof V?u:new V(u,u)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(u){for(var d=this.getPane().children,g=-u(-1/0,1/0),E=0,T=d.length,F;E<T;E++)F=d[E].style.zIndex,d[E]!==this._container&&F&&(g=u(g,+F));isFinite(g)&&(this.options.zIndex=g+u(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!ze.ielt9){yr(this._container,this.options.opacity);var u=+new Date,d=!1,g=!1;for(var E in this._tiles){var T=this._tiles[E];if(!(!T.current||!T.loaded)){var F=Math.min(1,(u-T.loaded)/200);yr(T.el,F),F<1?d=!0:(T.active?g=!0:this._onOpaqueTile(T),T.active=!0)}}g&&!this._noPrune&&this._pruneTiles(),d&&(W(this._fadeFrame),this._fadeFrame=H(this._updateOpacity,this))}},_onOpaqueTile:h,_initContainer:function(){this._container||(this._container=st("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var u=this._tileZoom,d=this.options.maxZoom;if(u!==void 0){for(var g in this._levels)g=Number(g),this._levels[g].el.children.length||g===u?(this._levels[g].el.style.zIndex=d-Math.abs(u-g),this._onUpdateLevel(g)):(Lt(this._levels[g].el),this._removeTilesAtZoom(g),this._onRemoveLevel(g),delete this._levels[g]);var E=this._levels[u],T=this._map;return E||(E=this._levels[u]={},E.el=st("div","leaflet-tile-container leaflet-zoom-animated",this._container),E.el.style.zIndex=d,E.origin=T.project(T.unproject(T.getPixelOrigin()),u).round(),E.zoom=u,this._setZoomTransform(E,T.getCenter(),T.getZoom()),h(E.el.offsetWidth),this._onCreateLevel(E)),this._level=E,E}},_onUpdateLevel:h,_onRemoveLevel:h,_onCreateLevel:h,_pruneTiles:function(){if(this._map){var u,d,g=this._map.getZoom();if(g>this.options.maxZoom||g<this.options.minZoom){this._removeAllTiles();return}for(u in this._tiles)d=this._tiles[u],d.retain=d.current;for(u in this._tiles)if(d=this._tiles[u],d.current&&!d.active){var E=d.coords;this._retainParent(E.x,E.y,E.z,E.z-5)||this._retainChildren(E.x,E.y,E.z,E.z+2)}for(u in this._tiles)this._tiles[u].retain||this._removeTile(u)}},_removeTilesAtZoom:function(u){for(var d in this._tiles)this._tiles[d].coords.z===u&&this._removeTile(d)},_removeAllTiles:function(){for(var u in this._tiles)this._removeTile(u)},_invalidateAll:function(){for(var u in this._levels)Lt(this._levels[u].el),this._onRemoveLevel(Number(u)),delete this._levels[u];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(u,d,g,E){var T=Math.floor(u/2),F=Math.floor(d/2),K=g-1,ce=new V(+T,+F);ce.z=+K;var de=this._tileCoordsToKey(ce),be=this._tiles[de];return be&&be.active?(be.retain=!0,!0):(be&&be.loaded&&(be.retain=!0),K>E?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+1<E&&this._retainChildren(T,F,g+1,E)}},_resetView:function(u){var d=u&&(u.pinch||u.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),d,d)},_animateZoom:function(u){this._setView(u.center,u.zoom,!0,u.noUpdate)},_clampZoom:function(u){var d=this.options;return d.minNativeZoom!==void 0&&u<d.minNativeZoom?d.minNativeZoom:d.maxNativeZoom!==void 0&&d.maxNativeZoom<u?d.maxNativeZoom:u},_setView:function(u,d,g,E){var T=Math.round(d);this.options.maxZoom!==void 0&&T>this.options.maxZoom||this.options.minZoom!==void 0&&T<this.options.minZoom?T=void 0:T=this._clampZoom(T);var F=this.options.updateWhenZooming&&T!==this._tileZoom;(!E||F)&&(this._tileZoom=T,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),T!==void 0&&this._update(u),g||this._pruneTiles(),this._noPrune=!!g),this._setZoomTransforms(u,d)},_setZoomTransforms:function(u,d){for(var g in this._levels)this._setZoomTransform(this._levels[g],u,d)},_setZoomTransform:function(u,d,g){var E=this._map.getZoomScale(g,u.zoom),T=u.origin.multiplyBy(E).subtract(this._map._getNewPixelOrigin(d,g)).round();ze.any3d?ca(u.el,T,E):Qt(u.el,T)},_resetGrid:function(){var u=this._map,d=u.options.crs,g=this._tileSize=this.getTileSize(),E=this._tileZoom,T=this._map.getPixelWorldBounds(this._tileZoom);T&&(this._globalTileRange=this._pxBoundsToTileRange(T)),this._wrapX=d.wrapLng&&!this.options.noWrap&&[Math.floor(u.project([0,d.wrapLng[0]],E).x/g.x),Math.ceil(u.project([0,d.wrapLng[1]],E).x/g.y)],this._wrapY=d.wrapLat&&!this.options.noWrap&&[Math.floor(u.project([d.wrapLat[0],0],E).y/g.x),Math.ceil(u.project([d.wrapLat[1],0],E).y/g.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(u){var d=this._map,g=d._animatingZoom?Math.max(d._animateToZoom,d.getZoom()):d.getZoom(),E=d.getZoomScale(g,this._tileZoom),T=d.project(u,this._tileZoom).floor(),F=d.getSize().divideBy(E*2);return new B(T.subtract(F),T.add(F))},_update:function(u){var d=this._map;if(d){var g=this._clampZoom(d.getZoom());if(u===void 0&&(u=d.getCenter()),this._tileZoom!==void 0){var E=this._getTiledPixelBounds(u),T=this._pxBoundsToTileRange(E),F=T.getCenter(),K=[],ce=this.options.keepBuffer,de=new B(T.getBottomLeft().subtract([ce,-ce]),T.getTopRight().add([ce,-ce]));if(!(isFinite(T.min.x)&&isFinite(T.min.y)&&isFinite(T.max.x)&&isFinite(T.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var be in this._tiles){var Ae=this._tiles[be].coords;(Ae.z!==this._tileZoom||!de.contains(new V(Ae.x,Ae.y)))&&(this._tiles[be].current=!1)}if(Math.abs(g-this._tileZoom)>1){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;Je<K.length;Je++)this._addTile(K[Je],zf);this._level.el.appendChild(zf)}}}},_isValidTile:function(u){var d=this._map.options.crs;if(!d.infinite){var g=this._globalTileRange;if(!d.wrapLng&&(u.x<g.min.x||u.x>g.max.x)||!d.wrapLat&&(u.y<g.min.y||u.y>g.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<d.length;T++){if(E=Number(d[T]),isNaN(E))return;g.push(E)}u.options._dashArray=g}else u.options._dashArray=u.options.dashArray},_requestRedraw:function(u){this._map&&(this._extendRedrawBounds(u),this._redrawRequest=this._redrawRequest||H(this._redraw,this))},_extendRedrawBounds:function(u){if(u._pxBounds){var d=(u.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new B,this._redrawBounds.extend(u._pxBounds.min.subtract([d,d])),this._redrawBounds.extend(u._pxBounds.max.add([d,d]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var u=this._redrawBounds;if(u){var d=u.getSize();this._ctx.clearRect(u.min.x,u.min.y,d.x,d.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var u,d=this._redrawBounds;if(this._ctx.save(),d){var g=d.getSize();this._ctx.beginPath(),this._ctx.rect(d.min.x,d.min.y,g.x,g.y),this._ctx.clip()}this._drawing=!0;for(var E=this._drawFirst;E;E=E.next)u=E.layer,(!d||u._pxBounds&&u._pxBounds.intersects(d))&&u._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(u,d){if(this._drawing){var g,E,T,F,K=u._parts,ce=K.length,de=this._ctx;if(ce){for(de.beginPath(),g=0;g<ce;g++){for(E=0,T=K[g].length;E<T;E++)F=K[g][E],de[E?"lineTo":"moveTo"](F.x,F.y);d&&de.closePath()}this._fillStroke(de,u)}}},_updateCircle:function(u){if(!(!this._drawing||u._empty())){var d=u._point,g=this._ctx,E=Math.max(Math.round(u._radius),1),T=(Math.max(Math.round(u._radiusY),1)||E)/E;T!==1&&(g.save(),g.scale(1,T)),g.beginPath(),g.arc(d.x,d.y/T,E,0,Math.PI*2,!1),T!==1&&g.restore(),this._fillStroke(g,u)}},_fillStroke:function(u,d){var g=d.options;g.fill&&(u.globalAlpha=g.fillOpacity,u.fillStyle=g.fillColor||g.color,u.fill(g.fillRule||"evenodd")),g.stroke&&g.weight!==0&&(u.setLineDash&&u.setLineDash(d.options&&d.options._dashArray||[]),u.globalAlpha=g.opacity,u.lineWidth=g.weight,u.strokeStyle=g.color,u.lineCap=g.lineCap,u.lineJoin=g.lineJoin,u.stroke())},_onClick:function(u){for(var d=this._map.mouseEventToLayerPoint(u),g,E,T=this._drawFirst;T;T=T.next)g=T.layer,g.options.interactive&&g._containsPoint(d)&&(!(u.type==="click"||u.type==="preclick")||!this._map._draggableMoved(g))&&(E=g);this._fireEvent(E?[E]:!1,u)},_onMouseMove:function(u){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var d=this._map.mouseEventToLayerPoint(u);this._handleMouseHover(u,d)}},_handleMouseOut:function(u){var d=this._hoveredLayer;d&&(Wt(this._container,"leaflet-interactive"),this._fireEvent([d],u,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(u,d){if(!this._mouseHoverThrottled){for(var g,E,T=this._drawFirst;T;T=T.next)g=T.layer,g.options.interactive&&g._containsPoint(d)&&(E=g);E!==this._hoveredLayer&&(this._handleMouseOut(u),E&&(Ze(this._container,"leaflet-interactive"),this._fireEvent([E],u,"mouseover"),this._hoveredLayer=E)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,u),this._mouseHoverThrottled=!0,setTimeout(a(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(u,d,g){this._map._fireDOMEvent(d,g||d.type,u)},_bringToFront:function(u){var d=u._order;if(d){var g=d.next,E=d.prev;if(g)g.prev=E;else return;E?E.next=g:g&&(this._drawFirst=g),d.prev=this._drawLast,this._drawLast.next=d,d.next=null,this._drawLast=d,this._requestRedraw(u)}},_bringToBack:function(u){var d=u._order;if(d){var g=d.next,E=d.prev;if(E)E.next=g;else return;g?g.prev=E:E&&(this._drawLast=E),d.prev=null,d.next=this._drawFirst,this._drawFirst.prev=d,this._drawFirst=d,this._requestRedraw(u)}}});function xS(u){return ze.canvas?new wS(u):null}var eu=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(u){return document.createElement("<lvml:"+u+' class="lvml">')}}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.x<d.min.x&&(u.x=this._viscousLimit(u.x,d.min.x)),u.y<d.min.y&&(u.y=this._viscousLimit(u.y,d.min.y)),u.x>d.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)<Math.abs(F+g)?T:F;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=K},_onDragEnd:function(u){var d=this._map,g=d.options,E=!g.inertia||u.noInertia||this._times.length<2;if(d.fire("dragend",u),E)d.fire("moveend");else{this._prunePositions(+new Date);var T=this._lastPos.subtract(this._positions[0]),F=(this._lastTime-this._times[0])/1e3,K=g.easeLinearity,ce=T.multiplyBy(K/F),de=ce.distanceTo([0,0]),be=Math.min(g.inertiaMaxSpeed,de),Ae=ce.multiplyBy(be/de),Ue=be/(g.inertiaDeceleration*K),Je=Ae.multiplyBy(-Ue/2).round();!Je.x&&!Je.y?d.fire("moveend"):(Je=d._limitOffset(Je,d.options.maxBounds),H(function(){d.panBy(Je,{duration:Ue,easeLinearity:K,noMoveStart:!0,animate:!0})}))}}});nt.addInitHook("addHandler","dragging",TS),nt.mergeOptions({keyboard:!0,keyboardPanDelta:80});var CS=ni.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(u){this._map=u,this._setPanDelta(u.options.keyboardPanDelta),this._setZoomDelta(u.options.zoomDelta)},addHooks:function(){var u=this._map._container;u.tabIndex<=0&&(u.tabIndex="0"),Ye(u,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),vt(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var u=document.body,d=document.documentElement,g=u.scrollTop||d.scrollTop,E=u.scrollLeft||d.scrollLeft;this._map._container.focus(),window.scrollTo(E,g)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(u){var d=this._panKeys={},g=this.keyCodes,E,T;for(E=0,T=g.left.length;E<T;E++)d[g.left[E]]=[-1*u,0];for(E=0,T=g.right.length;E<T;E++)d[g.right[E]]=[u,0];for(E=0,T=g.down.length;E<T;E++)d[g.down[E]]=[0,u];for(E=0,T=g.up.length;E<T;E++)d[g.up[E]]=[0,-1*u]},_setZoomDelta:function(u){var d=this._zoomKeys={},g=this.keyCodes,E,T;for(E=0,T=g.zoomIn.length;E<T;E++)d[g.zoomIn[E]]=u;for(E=0,T=g.zoomOut.length;E<T;E++)d[g.zoomOut[E]]=-u},_addHooks:function(){Ye(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){vt(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(u){if(!(u.altKey||u.ctrlKey||u.metaKey)){var d=u.keyCode,g=this._map,E;if(d in this._panKeys){if(!g._panAnim||!g._panAnim._inProgress)if(E=this._panKeys[d],u.shiftKey&&(E=A(E).multiplyBy(3)),g.options.maxBounds&&(E=g._limitOffset(A(E),g.options.maxBounds)),g.options.worldCopyJump){var T=g.wrapLatLng(g.unproject(g.project(g.getCenter()).add(E)));g.panTo(T)}else g.panBy(E)}else if(d in this._zoomKeys)g.setZoom(g.getZoom()+(u.shiftKey?3:1)*this._zoomKeys[d]);else if(d===27&&g._popup&&g._popup.options.closeOnEscapeKey)g.closePopup();else return;ha(u)}}});nt.addInitHook("addHandler","keyboard",CS),nt.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var kS=ni.extend({addHooks:function(){Ye(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){vt(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(u){var d=Jx(u),g=this._map.options.wheelDebounceTime;this._delta+=d,this._lastMousePos=this._map.mouseEventToContainerPoint(u),this._startTime||(this._startTime=+new Date);var E=Math.max(g-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(a(this._performZoom,this),E),ha(u)},_performZoom:function(){var u=this._map,d=u.getZoom(),g=this._map.options.zoomSnap||0;u._stop();var E=this._delta/(this._map.options.wheelPxPerZoomLevel*4),T=4*Math.log(2/(1+Math.exp(-Math.abs(E))))/Math.LN2,F=g?Math.ceil(T/g)*g:T,K=u._limitZoom(d+(this._delta>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._zoom<d.getMinZoom()&&T<1||this._zoom>d.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<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},bb.apply(this,arguments)}function Yne({bounds:t,boundsOptions:e,center:n,children:r,className:i,id:o,placeholder:a,style:s,whenReady:l,zoom:c,...f},h){const[p]=Q.useState({className:i,id:o,style:s}),[m,v]=Q.useState(null);Q.useImperativeHandle(h,()=>(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<n?6:0):e===i?(n-t)/r+2:(t-e)/r+4}function vx(t){const n=t.r/255,r=t.g/255,i=t.b/255,o=Math.max(n,r,i),a=Math.min(n,r,i),s=(o+a)/2;let l,c,f;return o!==a&&(f=o-a,c=s>.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<e.length;r++){for(a=s=e[r],i=0;i<n.length;i++)o=n[i],s=s.replace(o,BC[o]);o=parseInt(zC[a],16),t[s]=[o>>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;i<o;i++)e.call(n,t[i],i);else if(et(t))for(a=Object.keys(t),o=a.length,i=0;i<o;i++)e.call(n,t[a[i]],a[i])}function Fm(t,e){let n,r,i,o;if(!t||!e||t.length!==e.length)return!1;for(n=0,r=t.length;n<r;++n)if(i=t[n],o=e[n],i.datasetIndex!==o.datasetIndex||i.index!==o.index)return!1;return!0}function $m(t){if(St(t))return t.map($m);if(et(t)){const e=Object.create(null),n=Object.keys(t),r=n.length;let i=0;for(;i<r;++i)e[n[i]]=$m(t[n[i]]);return e}return t}function xD(t){return["__proto__","prototype","constructor"].indexOf(t)===-1}function vre(t,e,n,r){if(!xD(t))return;const i=e[t],o=n[t];et(i)&&et(o)?Yc(i,o,r):e[t]=$m(o)}function Yc(t,e,n){const r=St(e)?e:[e],i=r.length;if(!et(t))return t;n=n||{};const o=n.merger||vre;let a;for(let s=0;s<i;++s){if(a=r[s],!et(a))continue;const l=Object.keys(a);for(let c=0,f=l.length;c<f;++c)o(l[c],t,a,n)}return t}function tc(t,e){return Yc(t,e,{merger:yre})}function yre(t,e,n){if(!xD(t))return;const r=e[t],i=n[t];et(r)&&et(i)?tc(r,i):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=$m(i))}const UC={"":t=>t,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)<n}function YC(t){const e=Math.round(t);t=nc(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(ko(t))),r=t/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function Ere(t){const e=[],n=Math.sqrt(t);let r;for(r=1;r<n;r++)t%r===0&&(e.push(r),e.push(t/r));return n===(n|0)&&e.push(n),e.sort((i,o)=>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;r<i;r++)o=t[r][n],isNaN(o)||(e.min=Math.min(e.min,o),e.max=Math.max(e.max,o))}function Vr(t){return t*(kt/180)}function wx(t){return t*(180/kt)}function qC(t){if(!Bt(t))return;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n++;return n}function ED(t,e){const n=e.x-t.x,r=e.y-t.y,i=Math.sqrt(n*n+r*r);let o=Math.atan2(r,n);return o<-.5*kt&&(o+=Pt),{angle:o,distance:i}}function xb(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Pre(t,e){return(t-e+xre)%Pt-kt}function lr(t){return(t%Pt+Pt)%Pt}function qc(t,e,n,r){const i=lr(t),o=lr(e),a=lr(n),s=lr(o-i),l=lr(a-i),c=lr(i-o),f=lr(i-a);return i===o||i===a||r&&o===a||s>l&&c<f}function hn(t,e,n){return Math.max(e,Math.min(n,t))}function Tre(t){return hn(t,-32768,32767)}function ji(t,e,n,r=1e-6){return t>=Math.min(e,n)-r&&t<=Math.max(e,n)+r}function xx(t,e,n){n=n||(a=>t[a]<e);let r=t.length-1,i=0,o;for(;r-i>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 o<n||o===n&&t[i+1][e]===n}:i=>t[i][e]<n),Cre=(t,e,n)=>xx(t,n,r=>t[r][e]>=n);function kre(t,e,n){let r=0,i=t.length;for(;r<i&&t[r]<e;)r++;for(;i>r&&t[i-1]>n;)i--;return r>0||i<t.length?t.slice(r,i):t}const OD=["push","pop","shift","splice","unshift"];function Mre(t,e){if(t._chartjs){t._chartjs.listeners.push(e);return}Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),OD.forEach(n=>{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<r;++n)e.add(t[n]);return e.size===r?t:Array.from(e)}const TD=function(){return typeof window>"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;r<i;++r){const o=n[r];t=t[o]||(t[o]=Object.create(null))}return t}function t_(t,e,n){return typeof e=="string"?Yc(ic(t,e),n):Yc(ic(t,""),e)}class Bre{constructor(e,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=r=>r.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;l<s;l++)if(h=n[l],h!=null&&St(h)!==!0)a=Bm(t,i,o,a,h);else if(St(h))for(c=0,f=h.length;c<f;c++)p=h[c],p!=null&&!St(p)&&(a=Bm(t,i,o,a,p));t.restore();const m=o.length/2;if(m>n.length){for(l=0;l<m;l++)delete i[o[l]];o.splice(0,m)}return a}function va(t,e,n){const r=t.currentDevicePixelRatio,i=n!==0?Math.max(n/2,.5):0;return Math.round((e-i)*r)/r+i}function JC(t,e){e=e||t.getContext("2d"),e.save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function Eb(t,e,n,r){AD(t,e,n,r,null)}function AD(t,e,n,r,i){let o,a,s,l,c,f,h,p;const m=e.pointStyle,v=e.rotation,y=e.radius;let w=(v||0)*Sre;if(m&&typeof m=="object"&&(o=m.toString(),o==="[object HTMLImageElement]"||o==="[object HTMLCanvasElement]")){t.save(),t.translate(n,r),t.rotate(w),t.drawImage(m,-m.width/2,-m.height/2,m.width,m.height),t.restore();return}if(!(isNaN(y)||y<=0)){switch(t.beginPath(),m){default:i?t.ellipse(n,r,i/2,y,0,0,Pt):t.arc(n,r,y,0,Pt),t.closePath();break;case"triangle":f=i?i/2:y,t.moveTo(n+Math.sin(w)*f,r-Math.cos(w)*y),w+=VC,t.lineTo(n+Math.sin(w)*f,r-Math.cos(w)*y),w+=VC,t.lineTo(n+Math.sin(w)*f,r-Math.cos(w)*y),t.closePath();break;case"rectRounded":c=y*.516,l=y-c,a=Math.cos(w+ga)*l,h=Math.cos(w+ga)*(i?i/2-c:l),s=Math.sin(w+ga)*l,p=Math.sin(w+ga)*(i?i/2-c:l),t.arc(n-h,r-s,c,w-kt,w-zt),t.arc(n+p,r-a,c,w-zt,w),t.arc(n+h,r+s,c,w,w+zt),t.arc(n-p,r+a,c,w+zt,w+kt),t.closePath();break;case"rect":if(!v){l=Math.SQRT1_2*y,f=i?i/2:l,t.rect(n-f,r-l,2*f,2*l);break}w+=ga;case"rectRot":h=Math.cos(w)*(i?i/2:y),a=Math.cos(w)*y,s=Math.sin(w)*y,p=Math.sin(w)*(i?i/2:y),t.moveTo(n-h,r-s),t.lineTo(n+p,r-a),t.lineTo(n+h,r+s),t.lineTo(n-p,r+a),t.closePath();break;case"crossRot":w+=ga;case"cross":h=Math.cos(w)*(i?i/2:y),a=Math.cos(w)*y,s=Math.sin(w)*y,p=Math.sin(w)*(i?i/2:y),t.moveTo(n-h,r-s),t.lineTo(n+h,r+s),t.moveTo(n+p,r-a),t.lineTo(n-p,r+a);break;case"star":h=Math.cos(w)*(i?i/2:y),a=Math.cos(w)*y,s=Math.sin(w)*y,p=Math.sin(w)*(i?i/2:y),t.moveTo(n-h,r-s),t.lineTo(n+h,r+s),t.moveTo(n+p,r-a),t.lineTo(n-p,r+a),w+=ga,h=Math.cos(w)*(i?i/2:y),a=Math.cos(w)*y,s=Math.sin(w)*y,p=Math.sin(w)*(i?i/2:y),t.moveTo(n-h,r-s),t.lineTo(n+h,r+s),t.moveTo(n+p,r-a),t.lineTo(n-p,r+a);break;case"line":a=i?i/2:Math.cos(w)*y,s=Math.sin(w)*y,t.moveTo(n-a,r-s),t.lineTo(n+a,r+s);break;case"dash":t.moveTo(n,r),t.lineTo(n+Math.cos(w)*(i?i/2:y),r+Math.sin(w)*y);break;case!1:t.closePath();break}t.fill(),e.borderWidth>0&&t.stroke()}}function Zc(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function ov(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function av(t){t.restore()}function Ure(t,e,n,r,i){if(!e)return t.lineTo(n.x,n.y);if(i==="middle"){const o=(e.x+n.x)/2;t.lineTo(o,e.y),t.lineTo(o,n.y)}else i==="after"!=!!r?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y);t.lineTo(n.x,n.y)}function Wre(t,e,n,r){if(!e)return t.lineTo(n.x,n.y);t.bezierCurveTo(r?e.cp1x:e.cp2x,r?e.cp1y:e.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function is(t,e,n,r,i,o={}){const a=St(e)?e:[e],s=o.strokeWidth>0&&o.strokeColor!=="";let l,c;for(t.save(),t.font=i.string,Vre(t,o),l=0;l<a.length;++l)c=a[l],o.backdrop&&qre(t,o.backdrop),s&&(o.strokeColor&&(t.strokeStyle=o.strokeColor),at(o.strokeWidth)||(t.lineWidth=o.strokeWidth),t.strokeText(c,n,r,o.maxWidth)),t.fillText(c,n,r,o.maxWidth),Yre(t,n,r,c,o),r+=i.lineHeight;t.restore()}function Vre(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),at(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}function Yre(t,e,n,r,i){if(i.strikethrough||i.underline){const o=t.measureText(r),a=e-o.actualBoundingBoxLeft,s=e+o.actualBoundingBoxRight,l=n-o.actualBoundingBoxAscent,c=n+o.actualBoundingBoxDescent,f=i.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=i.decorationWidth||2,t.moveTo(a,f),t.lineTo(s,f),t.stroke()}}function qre(t,e){const n=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=n}function Gc(t,e){const{x:n,y:r,w:i,h:o,radius:a}=e;t.arc(n+a.topLeft,r+a.topLeft,a.topLeft,-zt,kt,!0),t.lineTo(n,r+o-a.bottomLeft),t.arc(n+a.bottomLeft,r+o-a.bottomLeft,a.bottomLeft,kt,zt,!0),t.lineTo(n+i-a.bottomRight,r+o),t.arc(n+i-a.bottomRight,r+o-a.bottomRight,a.bottomRight,zt,0,!0),t.lineTo(n+i,r+a.topRight),t.arc(n+i-a.topRight,r+a.topRight,a.topRight,0,-zt,!0),t.lineTo(n+a.topLeft,r)}const Zre=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,Gre=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function Kre(t,e){const n=(""+t).match(Zre);if(!n||n[1]==="normal")return e*1.2;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100;break}return e*t}const Xre=t=>+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;o<a;++o)if(s=t[o],s!==void 0&&(e!==void 0&&typeof s=="function"&&(s=s(e),i=!1),n!==void 0&&St(s)&&(s=s[n%s.length],i=!1),s!==void 0))return r&&!i&&(r.cacheable=!1),s}function Qre(t,e,n){const{min:r,max:i}=t,o=wD(e,(i-r)/2),a=(s,l)=>n&&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;s<l;++s)c=s+n,f=e[c],a[s]={r:i.parse(ea(f,o),c)};return a}const lie=Number.EPSILON||1e-14,Ml=(t,e)=>e<t.length&&!t[e].skip&&t[e],BD=t=>t==="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<r-1;++f)if(l=c,c=Ml(t,f+1),!(!l||!c)){if(nc(e[f],0,lie)){n[f]=n[f+1]=0;continue}i=n[f]/e[f],o=n[f+1]/e[f],s=Math.pow(i,2)+Math.pow(o,2),!(s<=9)&&(a=3/Math.sqrt(s),n[f]=i*a*e[f],n[f+1]=o*a*e[f])}}function fie(t,e,n="x"){const r=BD(n),i=t.length;let o,a,s,l=Ml(t,0);for(let c=0;c<i;++c){if(a=s,s=l,l=Ml(t,c+1),!s)continue;const f=s[n],h=s[r];a&&(o=(f-a[n])/3,s[`cp1${n}`]=f-o,s[`cp1${r}`]=h-o*e[c]),l&&(o=(l[n]-f)/3,s[`cp2${n}`]=f+o,s[`cp2${r}`]=h+o*e[c])}}function die(t,e="x"){const n=BD(e),r=t.length,i=Array(r).fill(0),o=Array(r);let a,s,l,c=Ml(t,0);for(a=0;a<r;++a)if(s=l,l=c,c=Ml(t,a+1),!!l){if(c){const f=c[e]-l[e];i[a]=f!==0?(c[n]-l[n])/f:0}o[a]=s?c?bi(i[a-1])!==bi(i[a])?0:(i[a-1]+i[a])/2:i[a-1]:i[a]}cie(t,i,o),fie(t,o,e)}function Td(t,e,n){return Math.max(Math.min(t,n),e)}function hie(t,e){let n,r,i,o,a,s=Zc(t[0],e);for(n=0,r=t.length;n<r;++n)a=o,o=s,s=n<r-1&&Zc(t[n+1],e),o&&(i=t[n],a&&(i.cp1x=Td(i.cp1x,e.left,e.right),i.cp1y=Td(i.cp1y,e.top,e.bottom)),s&&(i.cp2x=Td(i.cp2x,e.left,e.right),i.cp2y=Td(i.cp2y,e.top,e.bottom)))}function pie(t,e,n,r,i){let o,a,s,l;if(e.spanGaps&&(t=t.filter(c=>!c.skip)),e.cubicInterpolationMode==="monotone")die(t,i);else{let c=r?t[t.length-1]:t[0];for(o=0,a=t.length;o<a;++o)s=t[o],l=uie(c,s,t[Math.min(o+1,a-(r?0:1))%a],e.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,c=s}e.capBezierPoints&&hie(t,n)}function zD(){return typeof window<"u"&&typeof document<"u"}function Cx(t){let e=t.parentNode;return e&&e.toString()==="[object ShadowRoot]"&&(e=e.host),e}function zm(t,e,n){let r;return typeof t=="string"?(r=parseInt(t,10),t.indexOf("%")!==-1&&(r=r/100*e.parentNode[n])):r=t,r}const sv=t=>t.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;p<m&&a(s(e[c%l][r]),i,o);++p)c--,f--;c%=l,f%=l}return f<c&&(f+=l),{start:c,end:f,loop:h,style:t.style}}function VD(t,e,n){if(!n)return[t];const{property:r,start:i,end:o}=n,a=e.length,{compare:s,between:l,normalize:c}=WD(r),{start:f,end:h,loop:p,style:m}=Pie(t,e,n),v=[];let y=!1,w=null,_,b,S;const O=()=>l(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;i<r.length;i++){const o=VD(r[i],t.points,e);o.length&&n.push(...o)}return n}function Tie(t,e,n,r){let i=0,o=e-1;if(n&&!r)for(;i<e&&!t[i].skip;)i++;for(;i<e&&t[i].skip;)i++;for(i%=e,n&&(o+=i);o>i&&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=s<a?s+i:s,c=!!t._fullLoop&&a===0&&s===i-1;return ok(t,Cie(n,a,l,c),n,e)}function ok(t,e,n,r){return!r||!r.setContext||!n?e:Mie(t,e,n,r)}function Mie(t,e,n,r){const i=t._chart.getContext(),o=ak(t.options),{_datasetIndex:a,options:{spanGaps:s}}=t,l=n.length,c=[];let f=o,h=e[0].start,p=h;function m(v,y,w,_){const b=s?-1:1;if(v!==y){for(v+=l;n[v%l].skip;)v-=b;for(;n[y%l].skip;)y+=b;v%l!==y%l&&(c.push({start:v%l,end:y%l,loop:w,style:_}),f=_,h=y%l)}}for(const v of e){h=s?h:v.start;let y=n[h%l],w;for(p=h+1;p<=v.end;p++){const _=n[p%l];w=ak(r.setContext(la(i,{type:"segment",p0:y,p1:_,p0DataIndex:(p-1)%l,p1DataIndex:p%l,datasetIndex:a}))),Lie(w,f)&&m(h,p-1,v.loop,f),y=_,f=w}h<p-1&&m(h,p-1,v.loop,f)}return c}function ak(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function Lie(t,e){return e&&JSON.stringify(t)!==JSON.stringify(e)}/*!
|
||
* Chart.js v4.1.1
|
||
* https://www.chartjs.org
|
||
* (c) 2022 Chart.js Contributors
|
||
* Released under the MIT License
|
||
*/class Rie{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,n,r,i){const o=n.listeners[i],a=n.duration;o.forEach(s=>s({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||n<r),!this._active){this._target[i]=s,this._notify(!0);return}if(n<0){this._target[i]=o;return}l=n/r%2,l=a&&l>1?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<r.length;i++)r[i][n]()}}class qD{constructor(e,n){this._chart=e,this._properties=new Map,this.configure(n)}configure(e){if(!et(e))return;const n=Object.keys(Kt.animation),r=this._properties;Object.getOwnPropertyNames(e).forEach(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;i<r.length;i++){const o=t[r[i]];o&&o.active()&&n.push(o.wait())}return Promise.all(n)}function Iie(t,e){if(!e)return;let n=t.options;if(!n){t.options=e;return}return n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function lk(t,e){const n=t&&t.options||{},r=n.reverse,i=n.min===void 0?e:0,o=n.max===void 0?e:0;return{start:r?o:i,end:r?i:o}}function Fie(t,e,n){if(n===!1)return!1;const r=lk(t,n),i=lk(e,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}function $ie(t){let e,n,r,i;return et(t)?(e=t.top,n=t.right,r=t.bottom,i=t.left):e=n=r=i=t,{top:e,right:n,bottom:r,left:i,disabled:t===!1}}function ZD(t,e){const n=[],r=t._getSortedDatasetMetas(e);let i,o;for(i=0,o=r.length;i<o;++i)n.push(r[i].index);return n}function uk(t,e,n,r={}){const i=t.keys,o=r.mode==="single";let a,s,l,c;if(e!==null){for(a=0,s=i.length;a<s;++a){if(l=+i[a],l===n){if(r.all)continue;break}c=t.values[l],Bt(c)&&(o||e===0||bi(e)===bi(c))&&(e+=c)}return e}}function jie(t){const e=Object.keys(t),n=new Array(e.length);let r,i,o;for(r=0,i=e.length;r<i;++r)o=e[r],n[r]={x:o,y:t[o]};return n}function ck(t,e){const n=t&&t.options.stacked;return n||n===void 0&&e.stack!==void 0}function Bie(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}function zie(t){const{min:e,max:n,minDefined:r,maxDefined:i}=t.getUserBounds();return{min:r?e:Number.NEGATIVE_INFINITY,max:i?n:Number.POSITIVE_INFINITY}}function Hie(t,e,n){const r=t[e]||(t[e]={});return r[n]||(r[n]={})}function fk(t,e,n,r){for(const i of e.getMatchingVisibleMetas(r).reverse()){const o=t[i.index];if(n&&o>0||!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;m<h;++m){const v=e[m],{[l]:y,[c]:w}=v,_=v._stacks||(v._stacks={});p=_[c]=Hie(i,f,y),p[s]=w,p._top=fk(p,a,!0,r.type),p._bottom=fk(p,a,!1,r.type);const b=p._visualValues||(p._visualValues={});b[s]=w}}function n_(t,e){const n=t.scales;return Object.keys(n).filter(r=>n[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]<c[s];for(f=0;f<n;++f)r._parsed[f+e]=h=p[f],l&&(m()&&(l=!1),c=h);r._sorted=l}a&&dk(this,p)}parsePrimitiveData(e,n,r,i){const{iScale:o,vScale:a}=e,s=o.axis,l=a.axis,c=o.getLabels(),f=o===a,h=new Array(i);let p,m,v;for(p=0,m=i;p<m;++p)v=p+r,h[p]={[s]:f||o.parse(c[v],v),[l]:a.parse(n[v],v)};return h}parseArrayData(e,n,r,i){const{xScale:o,yScale:a}=e,s=new Array(i);let l,c,f,h;for(l=0,c=i;l<c;++l)f=l+r,h=n[f],s[l]={x:o.parse(h[0],f),y:a.parse(h[1],f)};return s}parseObjectData(e,n,r,i){const{xScale:o,yScale:a}=e,{xAxisKey:s="x",yAxisKey:l="y"}=this._parsing,c=new Array(i);let f,h,p,m;for(f=0,h=i;f<h;++f)p=f+r,m=n[p],c[f]={x:o.parse(ea(m,s),p),y:a.parse(ea(m,l),p)};return c}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,n,r){const i=this.chart,o=this._cachedMeta,a=n[e.axis],s={keys:ZD(i,!0),values:n._stacks[e.axis]._visualValues};return uk(s,a,o.index,{mode:r})}updateRangeFromParsed(e,n,r,i){const o=r[n.axis];let a=o===null?NaN:o;const s=i&&r._stacks[n.axis];i&&s&&(i.values=s,a=uk(i,o,this._cachedMeta.index)),e.min=Math.min(e.min,a),e.max=Math.max(e.max,a)}getMinMax(e,n){const r=this._cachedMeta,i=r._parsed,o=r._sorted&&e===r.iScale,a=i.length,s=this._getOtherScale(e),l=Vie(n,r,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:f,max:h}=zie(s);let p,m;function v(){m=i[p];const y=m[s.axis];return!Bt(m[e.axis])||f>y||h<y}for(p=0;p<a&&!(!v()&&(this.updateRangeFromParsed(c,e,m,l),o));++p);if(o){for(p=a-1;p>=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<o;++i)a=n[i][e.axis],Bt(a)&&r.push(a);return r}getMaxOverflow(){return!1}getLabelAndValue(e){const n=this._cachedMeta,r=n.iScale,i=n.vScale,o=this.getParsed(e);return{label:r?""+r.getLabelForValue(o[r.axis]):"",value:i?""+i.getLabelForValue(o[i.axis]):""}}_update(e){const n=this._cachedMeta;this.update(e||"default"),n._clip=$ie(qe(this.options.clip,Fie(n.xScale,n.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,n=this.chart,r=this._cachedMeta,i=r.data||[],o=n.chartArea,a=[],s=this._drawStart||0,l=this._drawCount||i.length-s,c=this.options.drawActiveElementsOnTop;let f;for(r.dataset&&r.dataset.draw(e,o,s,l),f=s;f<s+l;++f){const h=i[f];h.hidden||(h.active&&c?a.push(h):h.draw(e,o))}for(f=0;f<a.length;++f)a[f].draw(e,o)}getStyle(e,n){const r=n?"active":"default";return e===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(e||0,r)}getContext(e,n,r){const i=this.getDataset();let o;if(e>=0&&e<this._cachedMeta.data.length){const a=this._cachedMeta.data[e];o=a.$context||(a.$context=Wie(this.getContext(),e,a)),o.parsed=this.getParsed(e),o.raw=i.data[e],o.index=o.dataIndex=e}else o=this.$context||(this.$context=Uie(this.chart.getContext(),this.index)),o.dataset=i,o.index=o.datasetIndex=this.index;return o.active=!!n,o.mode=r,o}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,n){return this._resolveElementOptions(this.dataElementType.id,n,e)}_resolveElementOptions(e,n="default",r){const i=n==="active",o=this._cachedDataOpts,a=e+"-"+n,s=o[a],l=this.enableOptionSharing&&Lr(r);if(s)return hk(s,l);const c=this.chart.config,f=c.datasetElementScopeKeys(this._type,e),h=i?[`${e}Hover`,"hover",e,""]:[e,""],p=c.getOptionScopes(this.getDataset(),f),m=Object.keys(Kt.elements[e]),v=()=>this.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<i&&this._removeElements(o,i-o)}_insertElements(e,n,r=!0){const i=this._cachedMeta,o=i.data,a=e+n;let s;const l=c=>{for(c.length+=n,s=c.length-1;s>=a;s--)c[s]=c[s-n]};for(l(o),s=e;s<a;++s)o[s]=new this.dataElementType;this._parsing&&l(i._parsed),this.parse(e,n),r&&this.updateElements(o,e,n,"reset")}updateElements(e,n,r,i){}_removeElements(e,n){const r=this._cachedMeta;if(this._parsing){const i=r._parsed.splice(e,n);r._stacked&&vu(r,i)}r.data.splice(e,n)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[n,r,i]=e;this[n](r,i)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,n){n&&this._sync(["_removeElements",e,n]);const r=arguments.length-2;r&&this._sync(["_insertElements",e,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}je(Kr,"defaults",{}),je(Kr,"datasetElementType",null),je(Kr,"dataElementType",null);function Yie(t,e){if(!t._cache.$bar){const n=t.getMatchingVisibleMetas(e);let r=[];for(let i=0,o=n.length;i<o;i++)r=r.concat(n[i].controller.getAllParsedValues(t));t._cache.$bar=PD(r.sort((i,o)=>i-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;i<o;++i)a=e.getPixelForValue(n[i]),l();for(s=void 0,i=0,o=e.ticks.length;i<o;++i)a=e.getPixelForTick(i),l();return r}function Zie(t,e,n,r){const i=n.barThickness;let o,a;return at(i)?(o=e.min*n.categoryPercentage,a=n.barPercentage):(o=i*r,a=1),{chunk:o/r,ratio:a,start:e.pixels[t]-o/2}}function Gie(t,e,n,r){const i=e.pixels,o=i[t];let a=t>0?i[t-1]:null,s=t<i.length-1?i[t+1]:null;const l=n.categoryPercentage;a===null&&(a=o-(s===null?e.end-e.start:s-o)),s===null&&(s=o+o-a);const c=o-(o-Math.min(a,s))/2*l;return{chunk:Math.abs(s-a)/2*l/r,ratio:n.barPercentage,start:c}}function Kie(t,e,n,r){const i=n.parse(t[0],r),o=n.parse(t[1],r),a=Math.min(i,o),s=Math.max(i,o);let l=a,c=s;Math.abs(a)>Math.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<f;++c)p=e[c],h={},h[i.axis]=s||i.parse(a[c],c),l.push(GD(p,h,o,c));return l}function i_(t){return t&&t.barStart!==void 0&&t.barEnd!==void 0}function Xie(t,e,n){return t!==0?bi(t):(e.isHorizontal()?1:-1)*(e.min>=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.base<t.y,n="bottom",r="top"),e?(i="end",o="start"):(i="start",o="end"),{start:n,end:r,reverse:e,top:i,bottom:o}}function Jie(t,e,n,r){let i=e.borderSkipped;const o={};if(!i){t.borderSkipped=o;return}if(i===!0){t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:a,end:s,reverse:l,top:c,bottom:f}=Qie(t);i==="middle"&&n&&(t.enableBorderRadius=!0,(n._top||0)===r?i=c:(n._bottom||0)===r?i=f:(o[mk(f,a,s,l)]=!0,i=c)),o[mk(i,a,s,l)]=!0,t.borderSkipped=o}function mk(t,e,n,r){return r?(t=eoe(t,e,n),t=gk(t,n,e)):t=gk(t,e,n),t}function eoe(t,e,n){return t===e?n:t===n?e:t}function gk(t,e,n){return t==="start"?e:t==="end"?n:t}function toe(t,{inflateAmount:e},n){t.inflateAmount=e==="auto"?n===1?.33:0:e}class oc extends Kr{parsePrimitiveData(e,n,r,i){return pk(e,n,r,i)}parseArrayData(e,n,r,i){return pk(e,n,r,i)}parseObjectData(e,n,r,i){const{iScale:o,vScale:a}=e,{xAxisKey:s="x",yAxisKey:l="y"}=this._parsing,c=o.axis==="x"?s:l,f=a.axis==="x"?s:l,h=[];let p,m,v,y;for(p=r,m=r+i;p<m;++p)y=n[p],v={},v[o.axis]=o.parse(ea(y,c),p),h.push(GD(ea(y,f),v,a,p));return h}updateRangeFromParsed(e,n,r,i){super.updateRangeFromParsed(e,n,r,i);const o=r._custom;o&&n===this._cachedMeta.vScale&&(e.min=Math.min(e.min,o.min),e.max=Math.max(e.max,o.max))}getMaxOverflow(){return 0}getLabelAndValue(e){const n=this._cachedMeta,{iScale:r,vScale:i}=n,o=this.getParsed(e),a=o._custom,s=i_(a)?"["+a.start+", "+a.end+"]":""+i.getLabelForValue(o[i.axis]);return{label:""+r.getLabelForValue(o[r.axis]),value:s}}initialize(){this.enableOptionSharing=!0,super.initialize();const e=this._cachedMeta;e.stack=this.getDataset().stack}update(e){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,e)}updateElements(e,n,r,i){const o=i==="reset",{index:a,_cachedMeta:{vScale:s}}=this,l=s.getBasePixel(),c=s.isHorizontal(),f=this._getRuler(),{sharedOptions:h,includeOptions:p}=this._getSharedOptions(n,i);for(let m=n;m<n+r;m++){const v=this.getParsed(m),y=o||at(v[s.axis])?{base:l,head:l}:this._calculateBarValuePixels(m),w=this._calculateBarIndexPixels(m,f),_=(v._stacks||{})[s.axis],b={horizontal:c,base:y.base,enableBorderRadius:!_||i_(v._custom)||a===_._top||a===_._bottom,x:c?y.head:w.center,y:c?w.center:y.head,height:c?w.size:Math.abs(y.size),width:c?Math.abs(y.size):w.size};p&&(b.options=h||this.resolveDataElementOptions(m,e[m].active?"active":i));const S=b.options||e[m].options;Jie(b,S,_,a),toe(b,S,f.ratio),this.updateElement(e[m],m,b,i)}}_getStacks(e,n){const{iScale:r}=this._cachedMeta,i=r.getMatchingVisibleMetas(this._type).filter(l=>l.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<a;++o)i.push(r.getPixelForValue(this.getParsed(o)[r.axis],o));const s=e.barThickness;return{min:s||qie(n),pixels:i,start:r._startPixel,end:r._endPixel,stackCount:this._getStackCount(),scale:r,grouped:e.grouped,ratio:s?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){const{_cachedMeta:{vScale:n,_stacked:r,index:i},options:{base:o,minBarLength:a}}=this,s=o||0,l=this.getParsed(e),c=l._custom,f=i_(c);let h=l[n.axis],p=0,m=r?this.applyStack(n,l,r):h,v,y;m!==h&&(p=m-h,m=h),f&&(h=c.barStart,m=c.barEnd-c.barStart,h!==0&&bi(h)!==bi(c.barEnd)&&(p=0),p+=h);const w=!at(o)&&!f?o:p;let _=n.getPixelForValue(w);if(this.chart.getDataVisibility(e)?v=n.getPixelForValue(p+m):v=_,y=v-_,Math.abs(y)<a){y=Xie(y,n,s)*a,h===s&&(_-=y/2);const b=n.getPixelForDecimal(0),S=n.getPixelForDecimal(1),O=Math.min(b,S),M=Math.max(b,S);_=Math.max(Math.min(_,M),O),v=_+y,r&&!f&&(l._stacks[n.axis]._visualValues[i]=n.getValueForPixel(v)-n.getValueForPixel(_))}if(_===n.getPixelForValue(s)){const b=bi(y)*n.getLineWidthForValue(s)/2;_+=b,y-=b}return{size:y,base:_,head:v,center:v+y/2}}_calculateBarIndexPixels(e,n){const r=n.scale,i=this.options,o=i.skipNull,a=qe(i.maxBarThickness,1/0);let s,l;if(n.grouped){const c=o?this._getStackCount(e):n.stackCount,f=i.barThickness==="flex"?Gie(e,n,i,c):Zie(e,n,i,c),h=this._getStackIndex(this.index,this._cachedMeta.stack,o?e:void 0);s=f.start+f.chunk*h+f.chunk/2,l=Math.min(a,f.chunk*f.ratio)}else s=r.getPixelForValue(this.getParsed(e)[r.axis],e),l=Math.min(a,n.min*n.ratio);return{base:s-l/2,head:s+l/2,center:s,size:l}}draw(){const e=this._cachedMeta,n=e.vScale,r=e.data,i=r.length;let o=0;for(;o<i;++o)this.getParsed(o)[n.axis]!==null&&r[o].draw(this._ctx)}}je(oc,"id","bar"),je(oc,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),je(oc,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class Wh extends Kr{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,n,r,i){const o=super.parsePrimitiveData(e,n,r,i);for(let a=0;a<o.length;a++)o[a]._custom=this.resolveDataElementOptions(a+r).radius;return o}parseArrayData(e,n,r,i){const o=super.parseArrayData(e,n,r,i);for(let a=0;a<o.length;a++){const s=n[r+a];o[a]._custom=qe(s[2],this.resolveDataElementOptions(a+r).radius)}return o}parseObjectData(e,n,r,i){const o=super.parseObjectData(e,n,r,i);for(let a=0;a<o.length;a++){const s=n[r+a];o[a]._custom=qe(s&&s.r&&+s.r,this.resolveDataElementOptions(a+r).radius)}return o}getMaxOverflow(){const e=this._cachedMeta.data;let n=0;for(let r=e.length-1;r>=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;p<n+r;p++){const m=e[p],v=!o&&this.getParsed(p),y={},w=y[f]=o?a.getPixelForDecimal(.5):a.getPixelForValue(v[f]),_=y[h]=o?s.getBasePixel():s.getPixelForValue(v[h]);y.skip=isNaN(w)||isNaN(_),c&&(y.options=l||this.resolveDataElementOptions(p,m.active?"active":i),o&&(y.options.radius=0)),this.updateElement(m,p,y,i)}}resolveDataElementOptions(e,n){const r=this.getParsed(e);let i=super.resolveDataElementOptions(e,n);i.$shared&&(i=Object.assign({},i,{$shared:!1}));const o=i.radius;return n!=="active"&&(i.radius=0),i.radius+=qe(r&&r._custom,o),i}}je(Wh,"id","bubble"),je(Wh,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),je(Wh,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});function noe(t,e,n){let r=1,i=1,o=0,a=0;if(e<Pt){const s=t,l=s+e,c=Math.cos(s),f=Math.sin(s),h=Math.cos(l),p=Math.sin(l),m=(S,O,M)=>qc(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;a<s;++a)i._parsed[a]=o(a)}}_getRotation(){return Vr(this.options.rotation-90)}_getCircumference(){return Vr(this.options.circumference)}_getRotationExtents(){let e=Pt,n=-Pt;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){const i=this.chart.getDatasetMeta(r).controller,o=i._getRotation(),a=i._getCircumference();e=Math.min(e,o),n=Math.max(n,o+a)}return{rotation:e,circumference:n-e}}update(e){const n=this.chart,{chartArea:r}=n,i=this._cachedMeta,o=i.data,a=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,s=Math.max((Math.min(r.width,r.height)-a)/2,0),l=Math.min(gre(this.options.cutout,s),1),c=this._getRingWeight(this.index),{circumference:f,rotation:h}=this._getRotationExtents(),{ratioX:p,ratioY:m,offsetX:v,offsetY:y}=noe(h,f,l),w=(r.width-a)/p,_=(r.height-a)/m,b=Math.max(Math.min(w,_)/2,0),S=wD(this.options.radius,b),O=Math.max(S*l,0),M=(S-O)/this._getVisibleDatasetWeightTotal();this.offsetX=v*S,this.offsetY=y*S,i.total=this.calculateTotal(),this.outerRadius=S-M*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-M*c,0),this.updateElements(o,0,o.length,e)}_circumference(e,n){const r=this.options,i=this._cachedMeta,o=this._getCircumference();return n&&r.animation.animateRotate||!this.chart.getDataVisibility(e)||i._parsed[e]===null||i.data[e].hidden?0:this.calculateCircumference(i._parsed[e]*o/Pt)}updateElements(e,n,r,i){const o=i==="reset",a=this.chart,s=a.chartArea,c=a.options.animation,f=(s.left+s.right)/2,h=(s.top+s.bottom)/2,p=o&&c.animateScale,m=p?0:this.innerRadius,v=p?0:this.outerRadius,{sharedOptions:y,includeOptions:w}=this._getSharedOptions(n,i);let _=this._getRotation(),b;for(b=0;b<n;++b)_+=this._circumference(b,o);for(b=n;b<n+r;++b){const S=this._circumference(b,o),O=e[b],M={x:f+this.offsetX,y:h+this.offsetY,startAngle:_,endAngle:_+S,circumference:S,outerRadius:v,innerRadius:m};w&&(M.options=y||this.resolveDataElementOptions(b,O.active?"active":i)),_+=S,this.updateElement(O,b,M,i)}}calculateTotal(){const e=this._cachedMeta,n=e.data;let r=0,i;for(i=0;i<n.length;i++){const o=e._parsed[i];o!==null&&!isNaN(o)&&this.chart.getDataVisibility(i)&&!n[i].hidden&&(r+=Math.abs(o))}return r}calculateCircumference(e){const n=this._cachedMeta.total;return n>0&&!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;i<o;++i)if(r.isDatasetVisible(i)){a=r.getDatasetMeta(i),e=a.data,s=a.controller;break}}if(!e)return 0;for(i=0,o=e.length;i<o;++i)l=s.resolveDataElementOptions(i),l.borderAlign!=="inner"&&(n=Math.max(n,l.borderWidth||0,l.hoverBorderWidth||0));return n}getMaxOffset(e){let n=0;for(let r=0,i=e.length;r<i;++r){const o=this.resolveDataElementOptions(r);n=Math.max(n,o.offset||0,o.hoverOffset||0)}return n}_getRingWeightOffset(e){let n=0;for(let r=0;r<e;++r)this.chart.isDatasetVisible(r)&&(n+=this._getRingWeight(r));return n}_getRingWeight(e){return Math.max(qe(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}je(Mo,"id","doughnut"),je(Mo,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),je(Mo,"descriptors",{_scriptable:e=>e!=="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<S;++M){const C=e[M],R=_?C:{};if(M<n||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)&&(o<n.min&&(n.min=o),o>n.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<n;++v)m+=this._computeAngle(v,i,y);for(v=n;v<n+r;v++){const w=e[v];let _=m,b=m+this._computeAngle(v,i,y),S=a.getDataVisibility(v)?c.getDistanceFromCenterForValue(this.getParsed(v).r):0;m=b,o&&(l.animateScale&&(S=0),l.animateRotate&&(_=b=p));const O={x:f,y:h,innerRadius:0,outerRadius:S,startAngle:_,endAngle:b,options:this.resolveDataElementOptions(v,w.active?"active":i)};this.updateElement(w,v,O,i)}}countVisibleElements(){const e=this._cachedMeta;let n=0;return e.data.forEach((r,i)=>{!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;s<n+r;s++){const l=e[s],c=this.resolveDataElementOptions(s,l.active?"active":i),f=o.getPointPositionForValue(s,this.getParsed(s).r),h=a?o.xCenter:f.x,p=a?o.yCenter:f.y,m={x:h,y:p,angle:f.angle,skip:isNaN(h)||isNaN(p),options:c};this.updateElement(l,s,m,i)}}}je(Vh,"id","radar"),je(Vh,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),je(Vh,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});class Yh extends Kr{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);return{label:r[e]||"",value:"("+s+", "+l+")"}}update(e){const n=this._cachedMeta,{data:r=[]}=n,i=this.chart._animationsDisabled;let{start:o,count:a}=kD(n,r,i);if(this._drawStart=o,this._drawCount=a,MD(n)&&(o=0,a=r.length),this.options.showLine){const{dataset:s,_dataset:l}=n;s._chart=this.chart,s._datasetIndex=this.index,s._decimated=!!l._decimated,s.points=r;const c=this.resolveDatasetElementOptions(e);c.segment=this.options.segment,this.updateElement(s,void 0,{animated:!i,options:c},e)}this.updateElements(r,o,a,e)}addElements(){const{showLine:e}=this.options;!this.datasetElementType&&e&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(e,n,r,i){const o=i==="reset",{iScale:a,vScale:s,_stacked:l,_dataset:c}=this._cachedMeta,f=this.resolveDataElementOptions(n,i),h=this.getSharedOptions(f),p=this.includeOptions(i,h),m=a.axis,v=s.axis,{spanGaps:y,segment:w}=this.options,_=Cl(y)?y:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||o||i==="none";let S=n>0&&this.getParsed(n-1);for(let O=n;O<n+r;++O){const M=e[O],C=this.getParsed(O),R=b?M:{},$=at(C[v]),U=R[m]=a.getPixelForValue(C[m],O),I=R[v]=o||$?s.getBasePixel():s.getPixelForValue(l?this.applyStack(s,C,l):C[v],O);R.skip=isNaN(U)||isNaN(I)||$,R.stop=O>0&&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;++s){const{index:c,data:f}=o[s],{lo:h,hi:p}=ooe(o[s],e,a,i);for(let m=h;m<=p;++m){const v=f[m];v.skip||r(v,c,m)}}}function aoe(t){const e=t.indexOf("x")!==-1,n=t.indexOf("y")!==-1;return function(r,i){const o=e?Math.abs(r.x-i.x):0,a=n?Math.abs(r.y-i.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(a,2))}}function o_(t,e,n,r,i){const o=[];return!i&&!t.isPointInArea(e)||bf(t,n,e,function(s,l,c){!i&&!Zc(s,t.chartArea,0)||s.inRange(e.x,e.y,r)&&o.push({element:s,datasetIndex:l,index:c})},!0),o}function soe(t,e,n,r){let i=[];function o(a,s,l){const{startAngle:c,endAngle:f}=a.getProps(["startAngle","endAngle"],r),{angle:h}=ED(a,{x:e.x,y:e.y});qc(h,c,f)&&i.push({element:a,datasetIndex:s,index:l})}return bf(t,n,e,o),i}function loe(t,e,n,r,i,o){let a=[];const s=aoe(n);let l=Number.POSITIVE_INFINITY;function c(f,h,p){const m=f.inRange(e.x,e.y,i);if(r&&!m)return;const v=f.getCenterPoint(i);if(!(!!o||t.isPointInArea(v))&&!m)return;const w=s(e,v);w<l?(a=[{element:f,datasetIndex:h,index:p}],l=w):w===l&&a.push({element:f,datasetIndex:h,index:p})}return bf(t,n,e,c),a}function a_(t,e,n,r,i,o){return!o&&!t.isPointInArea(e)?[]:n==="r"&&!r?soe(t,e,n,i):loe(t,e,n,r,i,o)}function vk(t,e,n,r,i){const o=[],a=n==="x"?"inXRange":"inYRange";let s=!1;return bf(t,n,e,(l,c,f)=>{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;f<c.length;++f)s.push({element:c[f],datasetIndex:l,index:f})}return s},point(t,e,n,r){const i=Pa(e,t),o=n.axis||"xy",a=n.includeInvisible||!1;return o_(t,i,o,r,a)},nearest(t,e,n,r){const i=Pa(e,t),o=n.axis||"xy",a=n.includeInvisible||!1;return a_(t,i,o,n.intersect,r,a)},x(t,e,n,r){const i=Pa(e,t);return vk(t,i,"x",n.intersect,r)},y(t,e,n,r){const i=Pa(e,t);return vk(t,i,"y",n.intersect,r)}}};const KD=["left","top","right","bottom"];function yu(t,e){return t.filter(n=>n.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;n<r;++n)i=t[n],{position:o,options:{stack:a,stackWeight:s=1}}=i,e.push({index:n,box:i,pos:o,horizontal:i.isHorizontal(),weight:i.weight,stack:a&&o+a,stackWeight:s});return e}function foe(t){const e={};for(const n of t){const{stack:r,pos:i,stackWeight:o}=n;if(!r||!KD.includes(i))continue;const a=e[r]||(e[r]={count:0,placed:0,weight:0,size:0});a.count++,a.weight+=o}return e}function doe(t,e){const n=foe(t),{vBoxMaxWidth:r,hBoxMaxHeight:i}=e;let o,a,s;for(o=0,a=t.length;o<a;++o){s=t[o];const{fullSize:l}=s.box,c=n[s.stack],f=c&&s.stackWeight/c.weight;s.horizontal?(s.width=f?f*r:l&&e.availableWidth,s.height=i):(s.width=r,s.height=f?f*i:l&&e.availableHeight)}return n}function hoe(t){const e=coe(t),n=_u(e.filter(c=>c.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<a;++o){s=t[o],l=s.box,l.update(s.width||e.w,s.height||e.h,goe(s.horizontal,e));const{same:h,other:p}=poe(e,n,s,r);c|=h&&i.length,f=f||p,l.fullSize||i.push(s)}return c&&Au(i,e,n,r)||f}function kd(t,e,n,r,i){t.top=n,t.left=e,t.right=e+r,t.bottom=n+i,t.width=r,t.height=i}function bk(t,e,n,r){const i=n.padding;let{x:o,y:a}=e;for(const s of t){const l=s.box,c=r[s.stack]||{count:1,placed:0,weight:1},f=s.stackWeight/c.weight||1;if(s.horizontal){const h=e.w*f,p=c.size||l.height;Lr(c.start)&&(a=c.start),l.fullSize?kd(l,i.left,a,n.outerWidth-i.right-i.left,p):kd(l,e.left+c.placed,a,h,p),c.start=a,c.placed+=h,a=l.bottom}else{const h=e.h*f,p=c.size||l.width;Lr(c.start)&&(o=c.start),l.fullSize?kd(l,o,i.top,p,n.outerHeight-i.bottom-i.top):kd(l,o,e.top+c.placed,p,h),c.start=o,c.placed+=h,o=l.right}}e.x=o,e.y=a}var Fn={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(n){e.draw(n)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;n!==-1&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,r){if(!t)return;const i=Bn(t.options.layout.padding),o=Math.max(e-i.width,0),a=Math.max(n-i.height,0),s=hoe(t.boxes),l=s.vertical,c=s.horizontal;ft(t.boxes,y=>{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<i.clientWidth&&n()},window),a=new ResizeObserver(s=>{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;h<p;h++)Md(e,c,f,o[h],o[h+1]);return Md(e,c,f,l,at(m)?e.length:l+m),c}return Md(e,c,f),c}function Roe(t){const e=t.options.offset,n=t._tickSize(),r=t._length/n+(e?0:1),i=t._maxLength/n;return Math.floor(Math.min(r,i))}function Aoe(t,e,n){const r=Ioe(t),i=e.length/n;if(!r)return Math.max(i,1);const o=Ere(r);for(let a=0,s=o.length-1;a<s;a++){const l=o[a];if(l>i)return l}return Math.max(i,1)}function Doe(t){const e=[];let n,r;for(n=0,r=t.length;n<r;n++)t[n].major&&e.push(n);return e}function Noe(t,e,n,r){let i=0,o=n[0],a;for(r=Math.ceil(r),a=0;a<t.length;a++)a===o&&(e.push(t[a]),i++,o=n[i*r])}function Md(t,e,n,r,i){const o=qe(r,0),a=Math.min(qe(i,t.length),t.length);let s=0,l,c,f;for(n=Math.ceil(n),i&&(l=i-r,n=l/Math.floor(l/n)),f=o;f<0;)s++,f=Math.round(o+s*n);for(c=Math.max(o,0);c<a;c++)c===f&&(e.push(t[c]),s++,f=Math.round(o+s*n))}function Ioe(t){const e=t.length;let n,r;if(e<2)return!1;for(r=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==r)return!1;return r}const Foe=t=>t==="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(;o<i;o+=r)n.push(t[Math.floor(o)]);return n}function $oe(t,e,n){const r=t.ticks.length,i=Math.min(e,r-1),o=t._startPixel,a=t._endPixel,s=1e-6;let l=t.getPixelForTick(i),c;if(!(n&&(r===1?c=Math.max(l-o,a-l):e===0?c=(t.getPixelForTick(1)-l)/2:c=(l-t.getPixelForTick(i-1))/2,l+=i<e?c:-c,l<o-s||l>a+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;o<i;++o)delete n.data[r[o]];r.splice(0,i)}})}function bu(t){return t.drawTicks?t.tickLength:0}function Ok(t,e){if(!t.display)return 0;const n=sn(t.font,e),r=Bn(t.padding);return(St(t.text)?t.text.length:1)*n.lineHeight+r.height}function Boe(t,e){return la(t,{scale:e,type:"scale"})}function zoe(t,e,n){return la(t,{tick:n,index:e,type:"tick"})}function Hoe(t,e,n){let r=Sx(t);return(n&&e!=="right"||!n&&e==="right")&&(r=Foe(r)),r}function Uoe(t,e,n,r){const{top:i,left:o,bottom:a,right:s,chart:l}=t,{chartArea:c,scales:f}=l;let h=0,p,m,v;const y=a-i,w=s-o;if(t.isHorizontal()){if(m=Nn(r,o,s),et(n)){const _=Object.keys(n)[0],b=n[_];v=f[_].getPixelForValue(b)+y-e}else n==="center"?v=(c.bottom+c.top)/2+y-e:v=Sk(t,n,e);p=s-o}else{if(et(n)){const _=Object.keys(n)[0],b=n[_];m=f[_].getPixelForValue(b)-w+e}else n==="center"?m=(c.left+c.right)/2-w+e:m=Sk(t,n,e);v=Nn(r,a,i),h=n==="left"?-zt:zt}return{titleX:m,titleY:v,maxWidth:p,rotation:h}}class cs extends ro{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,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._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,n){return e}getUserBounds(){let{_userMin:e,_userMax:n,_suggestedMin:r,_suggestedMax:i}=this;return e=ar(e,Number.POSITIVE_INFINITY),n=ar(n,Number.NEGATIVE_INFINITY),r=ar(r,Number.POSITIVE_INFINITY),i=ar(i,Number.NEGATIVE_INFINITY),{min:ar(e,r),max:ar(n,i),minDefined:Bt(e),maxDefined:Bt(n)}}getMinMax(e){let{min:n,max:r,minDefined:i,maxDefined:o}=this.getUserBounds(),a;if(i&&o)return{min:n,max:r};const s=this.getMatchingVisibleMetas();for(let l=0,c=s.length;l<c;++l)a=s[l].controller.getMinMax(this,e),i||(n=Math.min(n,a.min)),o||(r=Math.max(r,a.max));return n=o&&n>r?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<this.ticks.length;this._convertTicksToLabels(l?Ek(this.ticks,s):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),a.display&&(a.autoSkip||a.source==="auto")&&(this.ticks=Loe(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e=this.options.reverse,n,r;this.isHorizontal()?(n=this.left,r=this.right):(n=this.top,r=this.bottom,e=!e),this._startPixel=n,this._endPixel=r,this._reversePixels=e,this._length=r-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){yt(this.options.afterUpdate,[this])}beforeSetDimensions(){yt(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){yt(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),yt(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){yt(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const n=this.options.ticks;let r,i,o;for(r=0,i=e.length;r<i;r++)o=e[r],o.label=yt(n.callback,[o.value,r,e],this)}afterTickToLabelConversion(){yt(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){yt(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,n=e.ticks,r=this.ticks.length,i=n.minRotation||0,o=n.maxRotation;let a=i,s,l,c;if(!this._isVisible()||!n.display||i>=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<r;n++)at(e[n].label)&&(e.splice(n,1),r--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const n=this.options.ticks.sampleSize;let r=this.ticks;n<r.length&&(r=Ek(r,n)),this._labelSizes=e=this._computeLabelSizes(r,r.length)}return e}_computeLabelSizes(e,n){const{ctx:r,_longestTextCache:i}=this,o=[],a=[];let s=0,l=0,c,f,h,p,m,v,y,w,_,b,S;for(c=0;c<n;++c){if(p=e[c].label,m=this._resolveTickFontOptions(c),r.font=v=m.string,y=i[v]=i[v]||{data:{},gc:[]},w=m.lineHeight,_=b=0,!at(p)&&!St(p))_=Bm(r,y.data,y.gc,_,p),b=w;else if(St(p))for(f=0,h=p.length;f<h;++f)S=p[f],!at(S)&&!St(S)&&(_=Bm(r,y.data,y.gc,_,S),b+=w);o.push(_),a.push(b),s=Math.max(_,s),l=Math.max(b,l)}joe(i,n);const O=o.indexOf(s),M=a.indexOf(l),C=R=>({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&&e<n.length){const r=n[e];return r.$context||(r.$context=zoe(this.getContext(),e,r))}return this.$context||(this.$context=Boe(this.chart.getContext(),this))}_tickSize(){const e=this.options.ticks,n=Vr(this.labelRotation),r=Math.abs(Math.cos(n)),i=Math.abs(Math.sin(n)),o=this._getLabelSizes(),a=e.autoSkipPadding||0,s=o?o.widest.width+a:0,l=o?o.highest.height+a:0;return this.isHorizontal()?l*r>s*i?s/r:l/i:l*i<s*r?l/r:s/i}_isVisible(){const e=this.options.display;return e!=="auto"?!!e:this.getMatchingVisibleMetas().length>0}_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;S<h;S+=X){const re=this.getContext(S),se=o.setContext(re),V=s.setContext(re),N=se.lineWidth,A=se.color,B=V.dash||[],ee=V.dashOffset,z=se.tickWidth,q=se.tickColor,ne=se.tickBorderDash||[],ae=se.tickBorderDashOffset;O=$oe(this,S,l),O!==void 0&&(M=va(r,O,N),c?C=$=I=W=M:R=U=H=J=M,m.push({tx1:C,ty1:R,tx2:$,ty2:U,x1:I,y1:H,x2:W,y2:J,width:N,color:A,borderDash:B,borderDashOffset:ee,tickWidth:z,tickColor:q,tickBorderDash:ne,tickBorderDashOffset:ae}))}return this._ticksLength=h,this._borderValue=b,m}_computeLabelItems(e){const n=this.axis,r=this.options,{position:i,ticks:o}=r,a=this.isHorizontal(),s=this.ticks,{align:l,crossAlign:c,padding:f,mirror:h}=o,p=bu(r.grid),m=p+f,v=h?-f:m,y=-Vr(this.labelRotation),w=[];let _,b,S,O,M,C,R,$,U,I,H,W,J="middle";if(i==="top")C=this.bottom-v,R=this._getXAxisLabelAlignment();else if(i==="bottom")C=this.top+v,R=this._getXAxisLabelAlignment();else if(i==="left"){const X=this._getYAxisLabelAlignment(p);R=X.textAlign,M=X.x}else if(i==="right"){const X=this._getYAxisLabelAlignment(p);R=X.textAlign,M=X.x}else if(n==="x"){if(i==="center")C=(e.top+e.bottom)/2+m;else if(et(i)){const X=Object.keys(i)[0],re=i[X];C=this.chart.scales[X].getPixelForValue(re)+m}R=this._getXAxisLabelAlignment()}else if(n==="y"){if(i==="center")M=(e.left+e.right)/2-m;else if(et(i)){const X=Object.keys(i)[0],re=i[X];M=this.chart.scales[X].getPixelForValue(re)}R=this._getYAxisLabelAlignment(p).textAlign}n==="y"&&(l==="start"?J="top":l==="end"&&(J="bottom"));const Y=this._getLabelSizes();for(_=0,b=s.length;_<b;++_){S=s[_],O=S.label;const X=o.setContext(this.getContext(_));$=this.getPixelForTick(_)+o.labelOffset,U=this._resolveTickFontOptions(_),I=U.lineHeight,H=St(O)?O.length:1;const re=H/2,se=X.color,V=X.textStrokeColor,N=X.textStrokeWidth;let A=R;a?(M=$,R==="inner"&&(_===b-1?A=this.options.reverse?"left":"right":_===0?A=this.options.reverse?"right":"left":A="center"),i==="top"?c==="near"||y!==0?W=-H*I+I/2:c==="center"?W=-Y.highest.height/2-re*I+I:W=-Y.highest.height+I/2:c==="near"||y!==0?W=I/2:c==="center"?W=Y.highest.height/2-re*I:W=Y.highest.height-H*I,h&&(W*=-1),y!==0&&!X.showLabelBackdrop&&(M+=I/2*Math.sin(y))):(C=$,W=(1-H)*I/2);let B;if(X.showLabelBackdrop){const ee=Bn(X.backdropPadding),z=Y.heights[_],q=Y.widths[_];let ne=W-ee.top,ae=0-ee.left;switch(J){case"middle":ne-=z/2;break;case"bottom":ne-=z;break}switch(R){case"center":ae-=q/2;break;case"right":ae-=q;break}B={left:ae,top:ne,width:q+ee.width,height:z+ee.height,color:X.backdropColor}}w.push({label:O,font:U,textOffset:W,options:{rotation:y,color:se,strokeColor:V,strokeWidth:N,textAlign:A,textBaseline:J,translation:[M,C],backdrop:B}})}return w}_getXAxisLabelAlignment(){const{position:e,ticks:n}=this.options;if(-Vr(this.labelRotation))return e==="top"?"left":"right";let i="center";return n.align==="start"?i="left":n.align==="end"?i="right":n.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(e){const{position:n,ticks:{crossAlign:r,mirror:i,padding:o}}=this.options,a=this._getLabelSizes(),s=e+o,l=a.widest.width;let c,f;return n==="left"?i?(f=this.right+o,r==="near"?c="left":r==="center"?(c="center",f+=l/2):(c="right",f+=l)):(f=this.right-s,r==="near"?c="right":r==="center"?(c="center",f-=l/2):(c="left",f=this.left)):n==="right"?i?(f=this.left+o,r==="near"?c="right":r==="center"?(c="center",f-=l/2):(c="left",f-=l)):(f=this.left+s,r==="near"?c="left":r==="center"?(c="center",f+=l/2):(c="right",f=this.right)):c="right",{textAlign:c,x:f}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:e.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){const{ctx:e,options:{backgroundColor:n},left:r,top:i,width:o,height:a}=this;n&&(e.save(),e.fillStyle=n,e.fillRect(r,i,o,a),e.restore())}getLineWidthForValue(e){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const i=this.ticks.findIndex(o=>o.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<a;++o){const l=i[o];n.drawOnChartArea&&s({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&s({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:n,options:{border:r,grid:i}}=this,o=r.setContext(this.getContext()),a=r.display?o.width:0;if(!a)return;const s=i.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,f,h,p;this.isHorizontal()?(c=va(e,this.left,a)-a/2,f=va(e,this.right,s)+s/2,h=p=l):(h=va(e,this.top,a)-a/2,p=va(e,this.bottom,s)+s/2,c=f=l),n.save(),n.lineWidth=o.width,n.strokeStyle=o.color,n.beginPath(),n.moveTo(c,h),n.lineTo(f,p),n.stroke(),n.restore()}drawLabels(e){if(!this.options.ticks.display)return;const r=this.ctx,i=this._computeLabelArea();i&&ov(r,i);const o=this.getLabelItems(e);for(const a of o){const s=a.options,l=a.font,c=a.label,f=a.textOffset;is(r,c,0,f,l,s)}i&&av(r)}drawTitle(){const{ctx:e,options:{position:n,title:r,reverse:i}}=this;if(!r.display)return;const o=sn(r.font),a=Bn(r.padding),s=r.align;let l=o.lineHeight/2;n==="bottom"||n==="center"||et(n)?(l+=a.bottom,St(r.text)&&(l+=o.lineHeight*(r.text.length-1))):l+=a.top;const{titleX:c,titleY:f,maxWidth:h,rotation:p}=Uoe(this,l,n,s);is(e,r.text,0,0,o,{color:r.color,maxWidth:h,rotation:p,textAlign:Hoe(s,n,i),textBaseline:"middle",translation:[c,f]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,n=e.ticks&&e.ticks.z||0,r=qe(e.grid&&e.grid.z,-1),i=qe(e.border&&e.border.z,0);return!this._isVisible()||this.draw!==cs.prototype.draw?[{z:n,draw: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<a;++o){const s=n[o];s[r]===this.id&&(!e||s.type===e)&&i.push(s)}return i}_resolveTickFontOptions(e){const n=this.options.ticks.setContext(this.getContext(e));return sn(n.font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class Ld{constructor(e,n,r){this.type=e,this.scope=n,this.override=r,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const n=Object.getPrototypeOf(e);let r;Yoe(n)&&(r=this.register(n));const i=this.items,o=e.id,a=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+e);return o in i||(i[o]=e,Woe(e,a,r),this.override&&Kt.override(e.id,e.overrides)),a}get(e){return this.items[e]}unregister(e){const n=this.items,r=e.id,i=this.scope;r in n&&delete n[r],i&&r in Kt[i]&&(delete Kt[i][r],this.override&&delete rs[r])}}function Woe(t,e,n){const r=Yc(Object.create(null),[n?Kt.get(n):{},Kt.get(e),t.defaults]);Kt.set(e,r),t.defaultRoutes&&Voe(e,t.defaultRoutes),t.descriptors&&Kt.describe(e,t.descriptors)}function Voe(t,e){Object.keys(e).forEach(n=>{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;n<this._typedRegistries.length;n++){const r=this._typedRegistries[n];if(r.isForType(e))return r}return this.plugins}_get(e,n,r){const i=n.get(e);if(i===void 0)throw new Error('"'+e+'" is not a registered '+r+".");return i}}var li=new qoe;class Zoe{constructor(){this._init=[]}notify(e,n,r,i){n==="beforeInit"&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));const o=i?this._descriptors(e).filter(i):this._descriptors(e),a=this._notify(o,e,n,r);return n==="afterDestroy"&&(this._notify(o,e,"stop"),this._notify(this._init,e,"uninstall")),a}_notify(e,n,r,i){i=i||{};for(const o of e){const a=o.plugin,s=a[r],l=[n,i,o.options];if(yt(s,l,a)===!1&&i.cancelable)return!1}return!0}invalidate(){at(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),n}_createDescriptors(e,n){const r=e&&e.config,i=qe(r.options&&r.options.plugins,{}),o=Goe(r);return i===!1&&!n?[]:Xoe(e,o,i,n)}_notifyStateChanges(e){const n=this._oldCache||[],r=this._cache,i=(o,a)=>o.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;o<r.length;o++)n.push(li.getPlugin(r[o]));const i=t.plugins||[];for(let o=0;o<i.length;o++){const a=i[o];n.indexOf(a)===-1&&(n.push(a),e[a.id]=!0)}return{plugins:n,localIds:e}}function Koe(t,e){return!e&&t===!1?null:t===!0?{}:t}function Xoe(t,{plugins:e,localIds:n},r,i){const o=[],a=t.getContext();for(const s of e){const l=s.id,c=Koe(r[l],i);c!==null&&o.push({plugin:s,options:Qoe(t.config,{plugin:s,local:n[l]},c,a)})}return o}function Qoe(t,{plugin:e,local:n},r,i){const o=t.pluginScopeKeys(e),a=t.getOptionScopes(r,o);return n&&e.defaults&&a.push(e.defaults),t.createResolver(a,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Pb(t,e){const n=Kt.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function Joe(t,e){let n=t;return t==="_index_"?n=e:t==="_value_"&&(n=e==="x"?"y":"x"),n}function eae(t,e){return t===e?"_index_":"_value_"}function tae(t){if(t==="top"||t==="bottom")return"x";if(t==="left"||t==="right")return"y"}function Um(t,e){if(t==="x"||t==="y"||t==="r"||(t=e.axis||tae(e.position)||t.length>1&&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;i<r;++i)this._destroyDatasetMeta(i);e.splice(n,r-n)}this._sortedMetasets=e.slice(0).sort(kk("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:n}}=this;e.length>n.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<i;r++){const o=n[r];let a=this.getDatasetMeta(r);const s=o.type||this.config.type;if(a.type&&a.type!==s&&(this._destroyDatasetMeta(r),a=this.getDatasetMeta(r)),a.type=s,a.indexAxis=o.indexAxis||Pb(s,this.options),a.order=o.order||0,a.index=r,a.label=""+o.label,a.visible=this.isDatasetVisible(r),a.controller)a.controller.updateIndex(r),a.controller.linkScales();else{const l=li.getController(s),{datasetElementType:c,dataElementType:f}=Kt.datasets[s];Object.assign(l,{dataElementType:li.getElement(f),datasetElementType:c&&li.getElement(c)}),a.controller=new l(this,r),e.push(a.controller)}}return this._updateMetasets(),e}_resetElements(){ft(this.data.datasets,(e,n)=>{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<f;c++){const{controller:h}=this.getDatasetMeta(c),p=!i&&o.indexOf(h)===-1;h.buildOrUpdateElements(p),a=Math.max(+h.getMaxOverflow(),a)}a=this._minPadding=r.layout.autoPadding?a:0,this._updateLayout(a),i||ft(o,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;o<n;o++)if(!WC(i,r(o)))return;return Array.from(i).map(o=>o.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<r;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,r=this.data.datasets.length;n<r;++n)this._updateDataset(n,ta(e)?e({datasetIndex:n}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,n){const r=this.getDatasetMeta(e),i={meta:r,index:e,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",i)!==!1&&(r.controller._update(n),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(ki.has(this)?this.attached&&!ki.running(this)&&ki.start(this):(this.draw(),Mk({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:r,height:i}=this._resizeBeforeDraw;this._resize(r,i),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(e=0;e<n.length&&n[e].z<=0;++e)n[e].draw(this.chartArea);for(this._drawDatasets();e<n.length;++e)n[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const n=this._sortedMetasets,r=[];let i,o;for(i=0,o=n.length;i<o;++i){const a=n[i];(!e||a.visible)&&r.push(a)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const e=this.getSortedVisibleDatasetMetas();for(let n=e.length-1;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;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:n}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),JC(e,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete Zh[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,n=this.platform,r=(o,a)=>{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<l;++s){a=e[s];const c=a&&this.getDatasetMeta(a.datasetIndex).controller;c&&c[i+"HoverStyle"](a.element,a.datasetIndex,a.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const n=this._active||[],r=e.map(({datasetIndex:o,index:a})=>{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<o;++c)t.fill();isNaN(s)||(l=a+(s%Pt||Pt))}return Wm(t,e,n,r,l,i),t.fill(),l}function vae(t,e,n,r,i){const{fullCircles:o,startAngle:a,circumference:s,options:l}=e,{borderWidth:c,borderJoinStyle:f}=l,h=l.borderAlign==="inner";if(!c)return;h?(t.lineWidth=c*2,t.lineJoin=f||"round"):(t.lineWidth=c,t.lineJoin=f||"bevel");let p=e.endAngle;if(o){Wm(t,e,n,r,p,i);for(let m=0;m<o;++m)t.stroke();isNaN(s)||(p=a+(s%Pt||Pt))}h&&hae(t,e,p),o||(Wm(t,e,n,r,p,i),t.stroke())}class Gh extends ro{constructor(e){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,n,r){const i=this.getProps(["x","y"],r),{angle:o,distance:a}=ED(i,{x:e,y:n}),{startAngle:s,endAngle:l,innerRadius:c,outerRadius:f,circumference:h}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],r),p=this.options.spacing/2,v=qe(h,l-s)>=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=i<a&&o<a||i>s&&o>s;return{count:r,start:l,loop:e.loop,ilen:c<l&&!f?r+c-l:c-l}}function bae(t,e,n,r){const{points:i,options:o}=e,{count:a,start:s,loop:l,ilen:c}=aN(i,n,r),f=_ae(o);let{move:h=!0,reverse:p}=r||{},m,v,y;for(m=0;m<=c;++m)v=i[(s+(p?c-m:m))%a],!v.skip&&(h?(t.moveTo(v.x,v.y),h=!1):f(t,y,v,p,o.stepped),y=v);return l&&(v=i[(s+(p?c:0))%a],f(t,y,v,p,o.stepped)),!!l}function wae(t,e,n,r){const i=e.points,{count:o,start:a,ilen:s}=aN(i,n,r),{move:l=!0,reverse:c}=r||{};let f=0,h=0,p,m,v,y,w,_;const b=O=>(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?(M<y?y=M:M>w&&(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;c<f;++c){const{start:h,end:p}=a[c],m=o[h],v=o[p];if(m===v){s.push(m);continue}const y=Math.abs((i-m[n])/(v[n]-m[n])),w=l(m,v,y,r.stepped);w[n]=e[n],s.push(w)}return s.length===1?s[0]:s}pathSegment(e,n,r){return Tb(this)(e,this,n,r)}path(e,n,r){const i=this.segments,o=Tb(this);let a=this._loop;n=n||0,r=r||this.points.length-n;for(const s of i)a&=o(e,this,s,{start:n,end:n+r-1});return!!a}draw(e,n,r,i){const o=this.options||{};(this.points||[]).length&&o.borderWidth&&(e.save(),Pae(e,this,r,i),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}je(Lo,"id","line"),je(Lo,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),je(Lo,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),je(Lo,"descriptors",{_scriptable:!0,_indexable:e=>e!=="borderDash"&&e!=="fill"});function Ak(t,e,n,r){const i=t.options,{[n]:o}=t.getProps([n],r);return Math.abs(e-o)<i.radius+i.hitRadius}class Kh extends ro{constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,n,r){const i=this.options,{x:o,y:a}=this.getProps(["x","y"],r);return Math.pow(e-o,2)+Math.pow(n-a,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(e,n){return Ak(this,e,"x",n)}inYRange(e,n){return Ak(this,e,"y",n)}getCenterPoint(e){const{x:n,y:r}=this.getProps(["x","y"],e);return{x:n,y:r}}size(e){e=e||this.options||{};let n=e.radius||0;n=Math.max(n,n&&e.hoverRadius||0);const r=n&&e.borderWidth||0;return(n+r)*2}draw(e,n){const r=this.options;this.skip||r.radius<.1||!Zc(this,n,this.size(r)/2)||(e.strokeStyle=r.borderColor,e.lineWidth=r.borderWidth,e.fillStyle=r.backgroundColor,Eb(e,r,this.x,this.y))}getRange(){const e=this.options||{};return e.radius+e.hitRadius}}je(Kh,"id","point"),je(Kh,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),je(Kh,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function sN(t,e){const{x:n,y:r,base:i,width:o,height:a}=t.getProps(["x","y","base","width","height"],e);let s,l,c,f,h;return t.horizontal?(h=a/2,s=Math.min(n,i),l=Math.max(n,i),c=r-h,f=r+h):(h=o/2,s=n-h,l=n+h,c=Math.min(r,i),f=Math.max(r,i)),{left:s,top:c,right:l,bottom:f}}function Ro(t,e,n,r){return t?0:hn(e,n,r)}function Tae(t,e,n){const r=t.options.borderWidth,i=t.borderSkipped,o=DD(r);return{t:Ro(i.top,o.top,0,n),r:Ro(i.right,o.right,0,e),b:Ro(i.bottom,o.bottom,0,n),l:Ro(i.left,o.left,0,e)}}function Cae(t,e,n){const{enableBorderRadius:r}=t.getProps(["enableBorderRadius"]),i=t.options.borderRadius,o=Ha(i),a=Math.min(e,n),s=t.borderSkipped,l=r||et(i);return{topLeft:Ro(!l||s.top||s.left,o.topLeft,0,a),topRight:Ro(!l||s.top||s.right,o.topRight,0,a),bottomLeft:Ro(!l||s.bottom||s.left,o.bottomLeft,0,a),bottomRight:Ro(!l||s.bottom||s.right,o.bottomRight,0,a)}}function kae(t){const e=sN(t),n=e.right-e.left,r=e.bottom-e.top,i=Tae(t,n/2,r/2),o=Cae(t,n/2,r/2);return{outer:{x:e.left,y:e.top,w:n,h:r,radius:o},inner:{x:e.left+i.l,y:e.top+i.t,w:n-i.l-i.r,h:r-i.t-i.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(i.t,i.l)),topRight:Math.max(0,o.topRight-Math.max(i.t,i.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(i.b,i.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(i.b,i.r))}}}}function l_(t,e,n,r){const i=e===null,o=n===null,s=t&&!(i&&o)&&sN(t,r);return s&&(i||ji(e,s.left,s.right))&&(o||ji(n,s.top,s.bottom))}function Mae(t){return t.topLeft||t.topRight||t.bottomLeft||t.bottomRight}function Lae(t,e){t.rect(e.x,e.y,e.w,e.h)}function u_(t,e,n={}){const r=t.x!==n.x?-e:0,i=t.y!==n.y?-e:0,o=(t.x+t.w!==n.x+n.w?e:0)-r,a=(t.y+t.h!==n.y+n.h?e:0)-i;return{x:t.x+r,y:t.y+i,w:t.w+o,h:t.h+a,radius:t.radius}}class Xh extends ro{constructor(e){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,e&&Object.assign(this,e)}draw(e){const{inflateAmount:n,options:{borderColor:r,backgroundColor:i}}=this,{inner:o,outer:a}=kae(this),s=Mae(a.radius)?Gc:Lae;e.save(),(a.w!==o.w||a.h!==o.h)&&(e.beginPath(),s(e,u_(a,n,o)),e.clip(),s(e,u_(o,-n,a)),e.fillStyle=r,e.fill("evenodd")),e.beginPath(),s(e,u_(o,n)),e.fillStyle=i,e.fill(),e.restore()}inRange(e,n,r){return l_(this,e,n,r)}inXRange(e,n){return l_(this,e,null,n)}inYRange(e,n){return l_(this,null,e,n)}getCenterPoint(e){const{x:n,y:r,base:i,horizontal:o}=this.getProps(["x","y","base","horizontal"],e);return{x:o?(n+i)/2:n,y:o?r:(r+i)/2}}getRange(e){return e==="x"?this.width/2:this.height/2}}je(Xh,"id","bar"),je(Xh,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),je(Xh,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var Rae=Object.freeze({__proto__:null,ArcElement:Gh,LineElement:Lo,PointElement:Kh,BarElement:Xh});const Cb=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],Dk=Cb.map(t=>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;h<o-2;h++){let w=0,_=0,b;const S=Math.floor((h+1)*s)+1+e,O=Math.min(Math.floor((h+2)*s)+1,n)+e,M=O-S;for(b=S;b<O;b++)w+=t[b].x,_+=t[b].y;w/=M,_/=M;const C=Math.floor(h*s)+1+e,R=Math.min(Math.floor((h+1)*s)+1,n)+e,{x:$,y:U}=t[f];for(m=v=-1,b=C;b<R;b++)v=.5*Math.abs(($-w)*(t[b].y-U)-($-t[b].x)*(_-U)),v>m&&(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;a<e+n;++a){s=t[a],l=(s.x-b)/O*r,c=s.y;const M=l|0;if(M===f)c<v?(v=c,h=a):c>y&&(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<o.length;l++){const c=o[l];for(let f=c.start;f<=c.end;f++)Qae(i,a[f],s)}return new Lo({points:i,options:{}})}function Xae(t,e){const n=[],r=t.getMatchingVisibleMetas("line");for(let i=0;i<r.length;i++){const o=r[i];if(o.index===e)break;o.hidden||n.unshift(o.dataset)}return n}function Qae(t,e,n){const r=[];for(let i=0;i<n.length;i++){const o=n[i],{first:a,last:s,point:l}=Jae(o,e,"x");if(!(!l||a&&s)){if(a)r.unshift(l);else if(t.push(l),!s)break}}t.push(...r)}function Jae(t,e,n){const r=t.interpolate(e,n);if(!r)return{};const i=r[n],o=t.segments,a=t.points;let s=!1,l=!1;for(let c=0;c<o.length;c++){const f=o[c],h=a[f.start][n],p=a[f.end][n];if(ji(i,h,p)){s=i===h,l=i===p;break}}return{first:s,last:l,point:r}}class dN{constructor(e){this.x=e.x,this.y=e.y,this.radius=e.radius}pathSegment(e,n,r){const{x:i,y:o,radius:a}=this;return n=n||{start:0,end:Pt},e.arc(i,o,a,n.end,n.start,!0),!r.bounds}interpolate(e){const{x:n,y:r,radius:i}=this,o=e.angle;return{x:n+Math.cos(o)*i,y:r+Math.sin(o)*i,angle:o}}}function ese(t){const{chart:e,fill:n,line:r}=t;if(Bt(n))return tse(e,n);if(n==="stack")return Kae(t);if(n==="shape")return!0;const i=nse(t);return i instanceof dN?i:fN(i,r)}function tse(t,e){const n=t.getDatasetMeta(e);return n&&t.isDatasetVisible(e)?n.dataset:null}function nse(t){return(t.scale||{}).getPointPositionForValue?ise(t):rse(t)}function rse(t){const{scale:e={},fill:n}=t,r=qae(n,e);if(Bt(r)){const i=e.isHorizontal();return{x:i?r:null,y:i?null:r}}return null}function ise(t){const{scale:e,fill:n}=t,r=e.options,i=e.getLabels().length,o=r.reverse?e.max:e.min,a=Zae(n,e,o),s=[];if(r.grid.circular){const l=e.getPointPositionForValue(0,o);return new dN({x:l.x,y:l.y,radius:e.getDistanceFromCenterForValue(a)})}for(let l=0;l<i;++l)s.push(e.getPointPositionForValue(l,a));return s}function c_(t,e,n){const r=ese(e),{line:i,scale:o,axis:a}=e,s=i.options,l=s.fill,c=s.backgroundColor,{above:f=c,below:h=c}=l||{};r&&i.points.length&&(ov(t,n),ose(t,{line:i,target:r,above:f,below:h,area:n,scale:o,axis:a}),av(t))}function ose(t,e){const{line:n,target:r,above:i,below:o,area:a,scale:s}=e,l=n._loop?"angle":e.axis;t.save(),l==="x"&&o!==i&&(jk(t,r,a.top),Bk(t,{line:n,target:r,color:i,scale:s,property:l}),t.restore(),t.save(),jk(t,r,a.bottom)),Bk(t,{line:n,target:r,color:o,scale:s,property:l}),t.restore()}function jk(t,e,n){const{segments:r,points:i}=e;let o=!0,a=!1;t.beginPath();for(const s of r){const{start:l,end:c}=s,f=i[l],h=i[Mx(l,c,i)];o?(t.moveTo(f.x,f.y),o=!1):(t.lineTo(f.x,n),t.lineTo(f.x,f.y)),a=!!e.pathSegment(t,s,{move:a}),a?t.closePath():t.lineTo(h.x,n)}t.lineTo(e.first().x,n),t.closePath(),t.clip()}function Bk(t,e){const{line:n,target:r,property:i,color:o,scale:a}=e,s=Hae(n,r,i);for(const{source:l,target:c,start:f,end:h}of s){const{style:{backgroundColor:p=o}={}}=l,m=r!==!0;t.save(),t.fillStyle=p,ase(t,a,m&&kb(i,f,h)),t.beginPath();const v=!!n.pathSegment(t,l);let y;if(m){v?t.closePath():zk(t,r,h,i);const w=!!r.pathSegment(t,c,{move:v,reverse:!0});y=v&&w,y||zk(t,r,f,i)}t.closePath(),t.fill(y?"evenodd":"nonzero"),t.restore()}}function ase(t,e,n){const{top:r,bottom:i}=e.chart.chartArea,{property:o,start:a,end:s}=n||{};o==="x"&&(t.beginPath(),t.rect(a,r,s-a,i-r),t.clip())}function zk(t,e,n,r){const i=e.interpolate(n,r);i&&t.lineTo(i.x,i.y)}var sse={id:"filler",afterDatasetsUpdate(t,e,n){const r=(t.data.datasets||[]).length,i=[];let o,a,s,l;for(a=0;a<r;++a)o=t.getDatasetMeta(a),s=o.dataset,l=null,s&&s.options&&s instanceof Lo&&(l={visible:t.isDatasetVisible(a),index:a,fill:Vae(s,a,r),chart:t,axis:o.controller.options.indexAxis,scale:o.vScale,line:s}),o.$filler=l,i.push(l);for(a=0;a<r;++a)l=i[a],!(!l||l.fill===!1)&&(l.fill=Wae(i,a,n.propagate))},beforeDraw(t,e,n){const r=n.drawTime==="beforeDraw",i=t.getSortedVisibleDatasetMetas(),o=t.chartArea;for(let a=i.length-1;a>=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;r<o.length;++r)if(i=o[r],ji(e,i.left,i.left+i.width)&&ji(n,i.top,i.top+i.height))return this.legendItems[r]}return null}handleEvent(e){const n=this.options;if(!dse(e.type,n))return;const r=this._getLegendItemAt(e.x,e.y);if(e.type==="mousemove"||e.type==="mouseout"){const i=this._hoveredItem,o=lse(i,r);i&&!o&&yt(n.onLeave,[e,i,this],this),this._hoveredItem=r,r&&!o&&yt(n.onHover,[e,r,this],this)}else r&&yt(n.onClick,[e,r,this],this)}}function use(t,e,n,r,i){const o=cse(r,t,e,n),a=fse(i,r,e.lineHeight);return{itemWidth:o,itemHeight:a}}function cse(t,e,n,r){let i=t.text;return i&&typeof i!="string"&&(i=i.reduce((o,a)=>o.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<n;++e){const a=t[e].element;if(a&&a.hasValue()){const s=a.tooltipPosition();r+=s.x,i+=s.y,++o}}return{x:r/o,y:i/o}},nearest(t,e){if(!t.length)return!1;let n=e.x,r=e.y,i=Number.POSITIVE_INFINITY,o,a,s;for(o=0,a=t.length;o<a;++o){const l=t[o].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),f=xb(e,c);f<i&&(i=f,s=l)}}if(s){const l=s.tooltipPosition();n=l.x,r=l.y}return{x:n,y:r}}};function ai(t,e){return e&&(St(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Mi(t){return(typeof t=="string"||t instanceof String)&&t.indexOf(`
|
||
`)>-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 n<r/2?"top":n>t.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<r)return n[e.dataIndex]}return""},afterTitle:Ci,beforeBody:Ci,beforeLabel:Ci,label(t){if(this&&this.options&&this.options.mode==="dataset")return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const n=t.formattedValue;return at(n)||(e+=n),e},labelColor(t){const n=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const n=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:Ci,afterBody:Ci,beforeFooter:Ci,footer:Ci,afterFooter:Ci};function Gn(t,e,n,r){const i=t[e].call(n,r);return typeof i>"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;l<c;++l)s.push(vse(this.chart,n[l]));return e.filter&&(s=s.filter((f,h,p)=>e.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;l<o;++l)n.fillText(i[l],c.x(e.x),e.y+a.lineHeight/2),e.y+=a.lineHeight+s,l+1===o&&(e.y+=r.titleMarginBottom-s)}}_drawColorBox(e,n,r,i,o){const a=this.labelColors[r],s=this.labelPointStyles[r],{boxHeight:l,boxWidth:c,boxPadding:f}=o,h=sn(o.bodyFont),p=Dd(this,"left",o),m=i.x(p),v=l<h.lineHeight?(h.lineHeight-l)/2:0,y=n.y+v;if(o.usePointStyle){const w={radius:Math.min(c,l)/2,pointStyle:s.pointStyle,rotation:s.rotation,borderWidth:1},_=i.leftForLtr(m,c)+c/2,b=y+l/2;e.strokeStyle=o.multiKeyBackground,e.fillStyle=o.multiKeyBackground,Eb(e,w,_,b),e.strokeStyle=a.borderColor,e.fillStyle=a.backgroundColor,Eb(e,w,_,b)}else{e.lineWidth=et(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,e.strokeStyle=a.borderColor,e.setLineDash(a.borderDash||[]),e.lineDashOffset=a.borderDashOffset||0;const w=i.leftForLtr(m,c-f),_=i.leftForLtr(i.xPlus(m,1),c-f-2),b=Ha(a.borderRadius);Object.values(b).some(S=>S!==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;O<C;++O){for(_=i[O],b=this.labelTextColors[O],n.fillStyle=b,ft(_.before,y),S=_.lines,s&&S.length&&(this._drawColorBox(n,e,O,v,r),p=Math.max(h.lineHeight,l)),M=0,R=S.length;M<R;++M)y(S[M]),p=h.lineHeight;ft(_.after,y)}m=0,p=h.lineHeight,ft(this.afterBody,y),e.y-=o}drawFooter(e,n,r){const i=this.footer,o=i.length;let a,s;if(o){const l=ll(r.rtl,this.x,this.width);for(e.x=Dd(this,r.footerAlign,r),e.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",a=sn(r.footerFont),n.fillStyle=r.footerColor,n.font=a.string,s=0;s<o;++s)n.fillText(i[s],l.x(e.x),e.y+a.lineHeight/2),e.y+=a.lineHeight+r.footerSpacing}}drawBackground(e,n,r,i){const{xAlign:o,yAlign:a}=this,{x:s,y:l}=e,{width:c,height:f}=r,{topLeft:h,topRight:p,bottomLeft:m,bottomRight:v}=Ha(i.cornerRadius);n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.beginPath(),n.moveTo(s+h,l),a==="top"&&this.drawCaret(e,n,r,i),n.lineTo(s+c-p,l),n.quadraticCurveTo(s+c,l,s+c,l+p),a==="center"&&o==="right"&&this.drawCaret(e,n,r,i),n.lineTo(s+c,l+f-v),n.quadraticCurveTo(s+c,l+f,s+c-v,l+f),a==="bottom"&&this.drawCaret(e,n,r,i),n.lineTo(s+m,l+f),n.quadraticCurveTo(s,l+f,s,l+f-m),a==="center"&&o==="left"&&this.drawCaret(e,n,r,i),n.lineTo(s,l+h),n.quadraticCurveTo(s,l,s+h,l),n.closePath(),n.fill(),i.borderWidth>0&&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&&t<e.length?e[t]:t}class Lb extends cs{constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const n=this._addedLabels;if(n.length){const r=this.getLabels();for(const{index:i,label:o}of n)r[i]===o&&r.splice(i,1);this._addedLabels=[]}super.init(e)}parse(e,n){if(at(e))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===e?n:Tse(r,e,qe(n,e),this._addedLabels),Cse(n,r.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:r,max:i}=this.getMinMax(!0);this.options.bounds==="ticks"&&(e||(r=0),n||(i=this.getLabels().length-1)),this.min=r,this.max=i}buildTicks(){const e=this.min,n=this.max,r=this.options.offset,i=[];let o=this.getLabels();o=e===0&&n===o.length-1?o:o.slice(e,n+1),this._valueRange=Math.max(o.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let a=e;a<=n;a++)i.push({value:a});return i}getLabelForValue(e){return Gk.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return typeof e!="number"&&(e=this.parse(e)),e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const n=this.ticks;return e<0||e>n.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}),R<a&&H++,nc(Math.round((R+H*M)*C)/C,a,Kk(a,O,t))&&H++):R<a&&H++);H<U;++H)n.push({value:Math.round((R+H*M)*C)/C});return b&&p&&$!==s?n.length&&nc(n[n.length-1].value,s,Kk(s,O,t))?n[n.length-1].value=s:n.push({value:s}):(!b||$===s)&&n.push({value:$}),n}function Kk(t,e,{horizontal:n,minRotation:r}){const i=Vr(r),o=(n?Math.sin(i):Math.cos(i))||.001,a=.75*e*(""+t).length;return Math.min(e/o,a)}class Vm extends cs{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,n){return at(e)||(typeof e=="number"||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:i,max:o}=this;const a=l=>i=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<n;)r.push({value:p,major:Xk(p),significand:h}),h>=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}:t<r||t>i?{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;l<o;l++){const c=a.setContext(t.getPointLabelContext(l));i[l]=c.padding;const f=t.getPointPosition(l,t.drawingArea+i[l],s),h=sn(c.font),p=Rse(t.ctx,h,t._pointLabels[l]);r[l]=p;const m=lr(t.getIndexAngle(l)+s),v=Math.round(wx(m)),y=Jk(v,f.x,p.w,0,180),w=Jk(v,f.y,p.h,90,270);Dse(n,e,m,y,w)}t.setCenterPoint(e.l-n.l,n.r-e.r,e.t-n.t,n.b-e.b),t._pointLabelItems=Nse(t,r,i)}function Dse(t,e,n,r,i){const o=Math.abs(Math.sin(n)),a=Math.abs(Math.cos(n));let s=0,l=0;r.start<e.l?(s=(e.l-r.start)/o,t.l=Math.min(t.l,e.l-s)):r.end>e.r&&(s=(r.end-e.r)/o,t.r=Math.max(t.r,e.r+s)),i.start<e.t?(l=(e.t-i.start)/a,t.t=Math.min(t.t,e.t-l)):i.end>e.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;c<i;c++){const f=t.getPointPosition(c,s+a+n[c],l),h=Math.round(wx(lr(f.angle+zt))),p=e[c],m=$se(f.y,p.h,h),v=Ise(h),y=Fse(f.x,p.w,v);r.push({x:f.x,y:m,textAlign:v,left:y,top:m,right:y+p.w,bottom:m+p.h})}return r}function Ise(t){return t===0||t===180?"center":t<180?"left":"right"}function Fse(t,e,n){return n==="right"?t-=e:n==="center"&&(t-=e/2),t}function $se(t,e,n){return n===90||n===270?t-=e/2:(n>270||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<r;a++)o=t.getPointPosition(a,e),i.lineTo(o.x,o.y)}}function Bse(t,e,n,r,i){const o=t.ctx,a=e.circular,{color:s,lineWidth:l}=e;!a&&!r||!s||!l||n<0||(o.save(),o.strokeStyle=s,o.lineWidth=l,o.setLineDash(i.dash),o.lineDashOffset=i.dashOffset,o.beginPath(),mN(t,n,a,r),o.closePath(),o.stroke(),o.restore())}function zse(t,e,n){return la(t,{label:n,index:e,type:"pointLabel"})}class Nu extends Vm{constructor(e){super(e),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const e=this._padding=Bn(Db(this.options)/2),n=this.width=this.maxWidth-e.width,r=this.height=this.maxHeight-e.height;this.xCenter=Math.floor(this.left+n/2+e.left),this.yCenter=Math.floor(this.top+r/2+e.top),this.drawingArea=Math.floor(Math.min(n,r)/2)}determineDataLimits(){const{min:e,max:n}=this.getMinMax(!1);this.min=Bt(e)&&!isNaN(e)?e:0,this.max=Bt(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Db(this.options))}generateTickLabels(e){Vm.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map((n,r)=>{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<n.length){const r=n[e];return zse(this.getContext(),e,r)}}getPointPosition(e,n,r=0){const i=this.getIndexAngle(e)-zt+r;return{x:Math.cos(i)*n+this.xCenter,y:Math.sin(i)*n+this.yCenter,angle:i}}getPointPositionForValue(e,n){return this.getPointPosition(e,this.getDistanceFromCenterForValue(n))}getBasePosition(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}getPointLabelPosition(e){const{left:n,top:r,right:i,bottom:o}=this._pointLabelItems[e];return{left:n,top:r,right:i,bottom:o}}drawBackground(){const{backgroundColor:e,grid:{circular:n}}=this.options;if(e){const r=this.ctx;r.save(),r.beginPath(),mN(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),r.closePath(),r.fillStyle=e,r.fill(),r.restore()}}drawGrid(){const e=this.ctx,n=this.options,{angleLines:r,grid:i,border:o}=n,a=this._pointLabels.length;let s,l,c;if(n.pointLabels.display&&jse(this,a),i.display&&this.ticks.forEach((f,h)=>{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<i-1;++o){const a=uv[Qn[o]],s=a.steps?a.steps:Number.MAX_SAFE_INTEGER;if(a.common&&Math.ceil((n-e)/(s*a.size))<=r)return Qn[o]}return Qn[i-1]}function Use(t,e,n,r,i){for(let o=Qn.length-1;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<n;++e)if(uv[Qn[e]].common)return Qn[e]}function nM(t,e,n){if(!n)t[e]=!0;else if(n.length){const{lo:r,hi:i}=xx(n,e),o=n[r]>=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<o;++a)s=e[a],i[s]=a,r.push({value:s,major:!1});return o===0||!n?r:Vse(t,r,i,n)}class Qc extends cs{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,n={}){const r=e.time||(e.time={}),i=this._adapter=new ioe._date(e.adapters.date);i.init(n),tc(r.displayFormats,i.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(e),this._normalized=n.normalized}parse(e,n){return e===void 0?null:eM(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,n=this._adapter,r=e.time.unit||"day";let{min:i,max:o,minDefined:a,maxDefined:s}=this.getUserBounds();function l(c){!a&&!isNaN(c.min)&&(i=Math.min(i,c.min)),!s&&!isNaN(c.max)&&(o=Math.max(o,c.max))}(!a||!s)&&(l(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&l(this.getMinMax(!1))),i=Bt(i)&&!isNaN(i)?i:+n.startOf(Date.now(),r),o=Bt(o)&&!isNaN(o)?o:+n.endOf(Date.now(),r)+1,this.min=Math.min(i,o-1),this.max=Math.max(i+1,o)}_getLabelBounds(){const e=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return e.length&&(n=e[0],r=e[e.length-1]),{min:n,max:r}}buildTicks(){const e=this.options,n=e.time,r=e.ticks,i=r.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const o=this.min,a=this.max,s=kre(i,o,a);return this._unit=n.unit||(r.autoSkip?tM(n.minUnit,this.min,this.max,this._getLabelCapacity(o)):Use(this,s.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:Wse(this._unit),this.initOffsets(i),e.reverse&&s.reverse(),rM(this,s,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+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;p<r;p=+e.add(p,s,a),m++)nM(f,p,v);return(p===r||i.bounds==="ticks"||m===1)&&nM(f,p,v),Object.keys(f).sort((y,w)=>y-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;n<r;++n)i=e[n],i.label=this._tickFormatFunction(i.value,n,e)}getDecimalForValue(e){return e===null?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const n=this._offsets,r=this.getDecimalForValue(e);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(e){const n=this._offsets,r=this.getDecimalForPixel(e)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(e){const n=this.options.ticks,r=this.ctx.measureText(e).width,i=Vr(this.isHorizontal()?n.maxRotation:n.minRotation),o=Math.cos(i),a=Math.sin(i),s=this._resolveTickFontOptions(0).size;return{w:r*o+s*a,h:r*a+s*o}}_getLabelCapacity(e){const n=this.options.time,r=n.displayFormats,i=r[n.unit]||r.millisecond,o=this._tickFormatFunction(e,0,rM(this,[e],this._majorUnit),i),a=this._getLabelSize(o),s=Math.floor(this.isHorizontal()?this.width/a.w:this.height/a.h)-1;return s>0?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<r;++n)e=e.concat(i[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(e)}getLabelTimestamps(){const e=this._cache.labels||[];let n,r;if(e.length)return e;const i=this.getLabels();for(n=0,r=i.length;n<r;++n)e.push(eM(this,i[n]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return PD(e.sort(Hse))}}je(Qc,"id","time"),je(Qc,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function Nd(t,e,n){let r=0,i=t.length-1,o,a,s,l;n?(e>=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<s;++a)c=e[a],c>=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;a<s;++a)f=i[a+1],l=i[a-1],c=i[a],Math.round((f+l)/2)!==c&&o.push({time:c,pos:a/(s-1)});return o}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?e=this.normalize(n.concat(r)):e=n.length?n:r,e=this._cache.all=e,e}getDecimalForValue(e){return(Nd(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const n=this._offsets,r=this.getDecimalForPixel(e)/n.factor-n.end;return Nd(this._table,r*this._tableRange+this._minPos,!0)}}je(Nb,"id","timeseries"),je(Nb,"defaults",Qc.defaults);var Yse=Object.freeze({__proto__:null,CategoryScale:Lb,LinearScale:Rb,LogarithmicScale:Ab,RadialLinearScale:Nu,TimeScale:Qc,TimeSeriesScale:Nb});const qse=[roe,Rae,Ose,Yse],gN="label";function iM(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function Zse(t,e){const n=t.options;n&&e&&Object.assign(n,e)}function vN(t,e){t.labels=e}function yN(t,e){let n=arguments.length>2&&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]<l[1][a])return-1}}static map(e,n){const r=[];let i;if(Array.prototype.map)return Array.prototype.map.call(e,n);for(i=0;i<e.length;i+=1)r.push(n(e[i]));return r}static find(e,n){let r,i;if(Array.prototype.find)return Array.prototype.find.call(e,n);for(r=0,i=e.length;r<i;r+=1){const o=e[r];if(n(o,r))return o}}static assign(e,...n){const r=e;let i,o;if(Object.assign)return Object.assign(e,...n);for(i=0,o=n.length;i<o;i+=1){const a=n[i];typeof a=="object"&&a!==null&&Object.keys(a).forEach(l=>{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,"<mark>$&</mark>")}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<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function SN(t,e){if(t==null)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)e.indexOf(n=o[r])>=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:t<e?e:t},lc=function(t){return"touches"in t},Fb=function(t){return t&&t.ownerDocument.defaultView||self},aM=function(t,e,n){var r=t.getBoundingClientRect(),i=lc(e)?function(o,a){for(var s=0;s<o.length;s++)if(o[s].identifier===a)return o[s];return o[0]}(e.touches,n):e;return{left:Jc((i.pageX-(r.left+Fb(t).pageXOffset))/r.width),top:Jc((i.pageY-(r.top+Fb(t).pageYOffset))/r.height)}},sM=function(t){!lc(t)&&t.preventDefault()},EN=j.memo(function(t){var e=t.onMove,n=t.onKey,r=SN(t,["onMove","onKey"]),i=Q.useRef(null),o=Ib(e),a=Ib(n),s=Q.useRef(null),l=Q.useRef(!1),c=Q.useMemo(function(){var m=function(w){sM(w),(lc(w)?w.touches.length>0: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,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>')}.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<l.length;c++){var f=l[c];h.prototype[f]||(h.prototype[f]=s.prototype[f])}function h(v){if(!(this instanceof h))return new h(v);a.call(this,v),s.call(this,v),v&&v.readable===!1&&(this.readable=!1),v&&v.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,v&&v.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",p)}function p(){this.allowHalfOpen||this._writableState.ended||r.nextTick(m,this)}function m(v){v.end()}Object.defineProperty(h.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(h.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(v){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=v,this._writableState.destroyed=v)}}),h.prototype._destroy=function(v,y){this.push(null),this.end(),r.nextTick(y,v)}},function(t,e){typeof Object.create=="function"?t.exports=function(n,r){n.super_=r,n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(n,r){n.super_=r;var i=function(){};i.prototype=r.prototype,n.prototype=new i,n.prototype.constructor=n}},function(t,e,n){(function(r){/*!
|
||
* The buffer module from node.js, for the browser.
|
||
*
|
||
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
||
* @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()<k)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(P=new Uint8Array(k)).__proto__=c.prototype:(P===null&&(P=new c(k)),P.length=k),P}function c(P,k,D){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(P,k,D);if(typeof P=="number"){if(typeof k=="string")throw new Error("If encoding is specified then the first argument must be a string");return p(this,P)}return f(this,P,k,D)}function f(P,k,D,G){if(typeof k=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&k instanceof ArrayBuffer?function(Z,ie,pe,Le){if(ie.byteLength,pe<0||ie.byteLength<pe)throw new RangeError("'offset' is out of bounds");if(ie.byteLength<pe+(Le||0))throw new RangeError("'length' is out of bounds");return ie=pe===void 0&&Le===void 0?new Uint8Array(ie):Le===void 0?new Uint8Array(ie,pe):new Uint8Array(ie,pe,Le),c.TYPED_ARRAY_SUPPORT?(Z=ie).__proto__=c.prototype:Z=m(Z,ie),Z}(P,k,D,G):typeof k=="string"?function(Z,ie,pe){if(typeof pe=="string"&&pe!==""||(pe="utf8"),!c.isEncoding(pe))throw new TypeError('"encoding" must be a valid string encoding');var Le=0|y(ie,pe),ue=(Z=l(Z,Le)).write(ie,pe);return ue!==Le&&(Z=Z.slice(0,ue)),Z}(P,k,D):function(Z,ie){if(c.isBuffer(ie)){var pe=0|v(ie.length);return(Z=l(Z,pe)).length===0||ie.copy(Z,0,0,pe),Z}if(ie){if(typeof ArrayBuffer<"u"&&ie.buffer instanceof ArrayBuffer||"length"in ie)return typeof ie.length!="number"||function(Le){return Le!=Le}(ie.length)?l(Z,0):m(Z,ie);if(ie.type==="Buffer"&&a(ie.data))return m(Z,ie.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(P,k)}function h(P){if(typeof P!="number")throw new TypeError('"size" argument must be a number');if(P<0)throw new RangeError('"size" argument must not be negative')}function p(P,k){if(h(k),P=l(P,k<0?0:0|v(k)),!c.TYPED_ARRAY_SUPPORT)for(var D=0;D<k;++D)P[D]=0;return P}function m(P,k){var D=k.length<0?0:0|v(k.length);P=l(P,D);for(var G=0;G<D;G+=1)P[G]=255&k[G];return P}function v(P){if(P>=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;ie<Le;ie++)if(me(P,ie)===me(k,ve===-1?0:ie-ve)){if(ve===-1&&(ve=ie),ie-ve+1===ue)return ve*pe}else ve!==-1&&(ie-=ie-ve),ve=-1}else for(D+ue>Le&&(D=Le-ue),ie=D;ie>=0;ie--){for(var Se=!0,Re=0;Re<ue;Re++)if(me(P,ie+Re)!==me(k,Re)){Se=!1;break}if(Se)return ie}return-1}function S(P,k,D,G){D=Number(D)||0;var Z=P.length-D;G?(G=Number(G))>Z&&(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<G;++pe){var Le=parseInt(k.substr(2*pe,2),16);if(isNaN(Le))return pe;P[D+pe]=Le}return pe}function O(P,k,D,G){return he(ne(k,P.length-D),P,D,G)}function M(P,k,D,G){return he(function(Z){for(var ie=[],pe=0;pe<Z.length;++pe)ie.push(255&Z.charCodeAt(pe));return ie}(k),P,D,G)}function C(P,k,D,G){return M(P,k,D,G)}function R(P,k,D,G){return he(ae(k),P,D,G)}function $(P,k,D,G){return he(function(Z,ie){for(var pe,Le,ue,me=[],ve=0;ve<Z.length&&!((ie-=2)<0);++ve)Le=(pe=Z.charCodeAt(ve))>>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;Z<D;){var ie,pe,Le,ue,me=P[Z],ve=null,Se=me>239?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;le<ke;)Me+=String.fromCharCode.apply(String,Re.slice(le,le+=H));return Me}(G)}e.Buffer=c,e.SlowBuffer=function(P){return+P!=P&&(P=0),c.alloc(+P)},e.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=r.TYPED_ARRAY_SUPPORT!==void 0?r.TYPED_ARRAY_SUPPORT:function(){try{var P=new Uint8Array(1);return P.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},P.foo()===42&&typeof P.subarray=="function"&&P.subarray(1,1).byteLength===0}catch{return!1}}(),e.kMaxLength=s(),c.poolSize=8192,c._augment=function(P){return P.__proto__=c.prototype,P},c.from=function(P,k,D){return f(null,P,k,D)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(P,k,D){return function(G,Z,ie,pe){return h(Z),Z<=0?l(G,Z):ie!==void 0?typeof pe=="string"?l(G,Z).fill(ie,pe):l(G,Z).fill(ie):l(G,Z)}(null,P,k,D)},c.allocUnsafe=function(P){return p(null,P)},c.allocUnsafeSlow=function(P){return p(null,P)},c.isBuffer=function(P){return!(P==null||!P._isBuffer)},c.compare=function(P,k){if(!c.isBuffer(P)||!c.isBuffer(k))throw new TypeError("Arguments must be Buffers");if(P===k)return 0;for(var D=P.length,G=k.length,Z=0,ie=Math.min(D,G);Z<ie;++Z)if(P[Z]!==k[Z]){D=P[Z],G=k[Z];break}return D<G?-1:G<D?1:0},c.isEncoding=function(P){switch(String(P).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(P,k){if(!a(P))throw new TypeError('"list" argument must be an Array of Buffers');if(P.length===0)return c.alloc(0);var D;if(k===void 0)for(k=0,D=0;D<P.length;++D)k+=P[D].length;var G=c.allocUnsafe(k),Z=0;for(D=0;D<P.length;++D){var ie=P[D];if(!c.isBuffer(ie))throw new TypeError('"list" argument must be an Array of Buffers');ie.copy(G,Z),Z+=ie.length}return G},c.byteLength=y,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var P=this.length;if(P%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var k=0;k<P;k+=2)w(this,k,k+1);return this},c.prototype.swap32=function(){var P=this.length;if(P%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var k=0;k<P;k+=4)w(this,k,k+3),w(this,k+1,k+2);return this},c.prototype.swap64=function(){var P=this.length;if(P%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var k=0;k<P;k+=8)w(this,k,k+7),w(this,k+1,k+6),w(this,k+2,k+5),w(this,k+3,k+4);return this},c.prototype.toString=function(){var P=0|this.length;return P===0?"":arguments.length===0?I(this,0,P):function(k,D,G){var Z=!1;if((D===void 0||D<0)&&(D=0),D>this.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+=" ... ")),"<Buffer "+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;ve<Le;++ve)if(ue[ve]!==me[ve]){ie=ue[ve],pe=me[ve];break}return ie<pe?-1:pe<ie?1:0},c.prototype.includes=function(P,k,D){return this.indexOf(P,k,D)!==-1},c.prototype.indexOf=function(P,k,D){return _(this,P,k,D,!0)},c.prototype.lastIndexOf=function(P,k,D){return _(this,P,k,D,!1)},c.prototype.write=function(P,k,D,G){if(k===void 0)G="utf8",D=this.length,k=0;else if(D===void 0&&typeof k=="string")G=k,D=this.length,k=0;else{if(!isFinite(k))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");k|=0,isFinite(D)?(D|=0,G===void 0&&(G="utf8")):(G=D,D=void 0)}var Z=this.length-k;if((D===void 0||D>Z)&&(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;Z<D;++Z)G+=String.fromCharCode(127&P[Z]);return G}function J(P,k,D){var G="";D=Math.min(P.length,D);for(var Z=k;Z<D;++Z)G+=String.fromCharCode(P[Z]);return G}function Y(P,k,D){var G=P.length;(!k||k<0)&&(k=0),(!D||D<0||D>G)&&(D=G);for(var Z="",ie=k;ie<D;++ie)Z+=q(P[ie]);return Z}function X(P,k,D){for(var G=P.slice(k,D),Z="",ie=0;ie<G.length;ie+=2)Z+=String.fromCharCode(G[ie]+256*G[ie+1]);return Z}function re(P,k,D){if(P%1!=0||P<0)throw new RangeError("offset is not uint");if(P+k>D)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||k<ie)throw new RangeError('"value" argument is out of bounds');if(D+G>P.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<ie;++Z)P[D+Z]=(k&255<<8*(G?Z:1-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<ie;++Z)P[D+Z]=k>>>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),k<P&&(k=P),c.TYPED_ARRAY_SUPPORT)(D=this.subarray(P,k)).__proto__=c.prototype;else{var Z=k-P;D=new c(Z,void 0);for(var ie=0;ie<Z;++ie)D[ie]=this[ie+P]}return D},c.prototype.readUIntLE=function(P,k,D){P|=0,k|=0,D||re(P,k,this.length);for(var G=this[P],Z=1,ie=0;++ie<k&&(Z*=256);)G+=this[P+ie]*Z;return G},c.prototype.readUIntBE=function(P,k,D){P|=0,k|=0,D||re(P,k,this.length);for(var G=this[P+--k],Z=1;k>0&&(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<k&&(Z*=256);)G+=this[P+ie]*Z;return G>=(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<D&&(Z*=256);)this[k+ie]=P/Z&255;return k+D},c.prototype.writeUIntBE=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=D-1,ie=1;for(this[k+Z]=255&P;--Z>=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<D&&(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.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<D&&(G=D),G===D||P.length===0||this.length===0)return 0;if(k<0)throw new RangeError("targetStart out of bounds");if(D<0||D>=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<G-D&&(G=P.length-k+D);var Z,ie=G-D;if(this===P&&D<k&&k<G)for(Z=ie-1;Z>=0;--Z)P[Z+k]=this[Z+D];else if(ie<1e3||!c.TYPED_ARRAY_SUPPORT)for(Z=0;Z<ie;++Z)P[Z+k]=this[Z+D];else Uint8Array.prototype.set.call(P,this.subarray(D,D+ie),k);return ie},c.prototype.fill=function(P,k,D,G){if(typeof P=="string"){if(typeof k=="string"?(G=k,k=0,D=this.length):typeof D=="string"&&(G=D,D=this.length),P.length===1){var Z=P.charCodeAt(0);Z<256&&(P=Z)}if(G!==void 0&&typeof G!="string")throw new TypeError("encoding must be a string");if(typeof G=="string"&&!c.isEncoding(G))throw new TypeError("Unknown encoding: "+G)}else typeof P=="number"&&(P&=255);if(k<0||this.length<k||this.length<D)throw new RangeError("Out of range index");if(D<=k)return this;var ie;if(k>>>=0,D=D===void 0?this.length:D>>>0,P||(P=0),typeof P=="number")for(ie=k;ie<D;++ie)this[ie]=P;else{var pe=c.isBuffer(P)?P:ne(new c(P,G).toString()),Le=pe.length;for(ie=0;ie<D-k;++ie)this[ie+k]=pe[ie%Le]}return this};var z=/[^+\/0-9A-Za-z-_]/g;function q(P){return P<16?"0"+P.toString(16):P.toString(16)}function ne(P,k){var D;k=k||1/0;for(var G=P.length,Z=null,ie=[],pe=0;pe<G;++pe){if((D=P.charCodeAt(pe))>55295&&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<G&&!(Z+D>=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<arguments.length;b++)_[b-1]=arguments[b];c.push(new v(w,_)),c.length!==1||f||s(m)},v.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=y,i.addListener=y,i.once=y,i.off=y,i.removeListener=y,i.removeAllListeners=y,i.emit=y,i.prependListener=y,i.prependOnceListener=y,i.listeners=function(w){return[]},i.binding=function(w){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(w){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,n){(function(r){function i(o){return Object.prototype.toString.call(o)}e.isArray=function(o){return Array.isArray?Array.isArray(o):i(o)==="[object Array]"},e.isBoolean=function(o){return typeof o=="boolean"},e.isNull=function(o){return o===null},e.isNullOrUndefined=function(o){return o==null},e.isNumber=function(o){return typeof o=="number"},e.isString=function(o){return typeof o=="string"},e.isSymbol=function(o){return typeof o=="symbol"},e.isUndefined=function(o){return o===void 0},e.isRegExp=function(o){return i(o)==="[object RegExp]"},e.isObject=function(o){return typeof o=="object"&&o!==null},e.isDate=function(o){return i(o)==="[object Date]"},e.isError=function(o){return i(o)==="[object Error]"||o instanceof Error},e.isFunction=function(o){return typeof o=="function"},e.isPrimitive=function(o){return o===null||typeof o=="boolean"||typeof o=="number"||typeof o=="string"||typeof o=="symbol"||o===void 0},e.isBuffer=r.isBuffer}).call(this,n(3).Buffer)},function(t,e,n){(function(r){!r.version||r.version.indexOf("v0.")===0||r.version.indexOf("v1.")===0&&r.version.indexOf("v1.8.")!==0?t.exports={nextTick:function(i,o,a,s){if(typeof i!="function")throw new TypeError('"callback" argument must be a function');var l,c,f=arguments.length;switch(f){case 0:case 1:return r.nextTick(i);case 2:return r.nextTick(function(){i.call(null,o)});case 3:return r.nextTick(function(){i.call(null,o,a)});case 4:return r.nextTick(function(){i.call(null,o,a,s)});default:for(l=new Array(f-1),c=0;c<l.length;)l[c++]=arguments[c];return r.nextTick(function(){i.apply(null,l)})}}}:t.exports=r}).call(this,n(4))},function(t,e,n){var r=n(3),i=r.Buffer;function o(s,l){for(var c in s)l[c]=s[c]}function a(s,l,c){return i(s,l,c)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(o(r,e),e.Buffer=a),o(i,a),a.from=function(s,l,c){if(typeof s=="number")throw new TypeError("Argument must not be a number");return i(s,l,c)},a.alloc=function(s,l,c){if(typeof s!="number")throw new TypeError("Argument must be a number");var f=i(s);return l!==void 0?typeof c=="string"?f.fill(l,c):f.fill(l):f.fill(0),f},a.allocUnsafe=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return i(s)},a.allocUnsafeSlow=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(s)}},function(t,e,n){var r=n(17)(Object,"create");t.exports=r},function(t,e,n){var r=n(31);t.exports=function(i,o){for(var a=i.length;a--;)if(r(i[a][0],o))return a;return-1}},function(t,e,n){var r=n(96);t.exports=function(i,o){var a=i.__data__;return r(o)?a[typeof o=="string"?"string":"hash"]:a.map}},function(t,e,n){(function(r){var i=r!==void 0&&r||typeof self<"u"&&self||window,o=Function.prototype.apply;function a(s,l){this._id=s,this._clearFn=l}e.setTimeout=function(){return new a(o.call(setTimeout,i,arguments),clearTimeout)},e.setInterval=function(){return new a(o.call(setInterval,i,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(s){s&&s.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(i,this._id)},e.enroll=function(s,l){clearTimeout(s._idleTimeoutId),s._idleTimeout=l},e.unenroll=function(s){clearTimeout(s._idleTimeoutId),s._idleTimeout=-1},e._unrefActive=e.active=function(s){clearTimeout(s._idleTimeoutId);var l=s._idleTimeout;l>=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;h<c;h++)p[h].apply(this,f);return!0},n.prototype.addListener=function(a,s){var l;if(!r(s))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",a,r(s.listener)?s.listener:s),this._events[a]?i(this._events[a])?this._events[a].push(s):this._events[a]=[this._events[a],s]:this._events[a]=s,i(this._events[a])&&!this._events[a].warned&&(l=o(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&l>0&&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<se.highWaterMark;if(q||(se.needDrain=!0),se.writing||se.corked){var ne=se.lastBufferedRequest;se.lastBufferedRequest={chunk:N,encoding:A,isBuf:V,callback:B,next:null},ne?ne.next=se.lastBufferedRequest:se.bufferedRequest=se.lastBufferedRequest,se.bufferedRequestCount+=1}else O(re,se,!1,z,N,A,B);return q}(this,J,X,I,H,W)),Y},S.prototype.cork=function(){this._writableState.corked++},S.prototype.uncork=function(){var I=this._writableState;I.corked&&(I.corked--,I.writing||I.corked||I.finished||I.bufferProcessing||!I.bufferedRequest||C(this,I))},S.prototype.setDefaultEncoding=function(I){if(typeof I=="string"&&(I=I.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((I+"").toLowerCase())>-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;p<c.length;p++)f(c[p]);return f}({1:[function(a,s,l){s.exports=function(c){var f=c._SomePromiseArray;function h(p){var m=new f(p),v=m.promise();return m.setHowMany(1),m.setUnwrap(),m.init(),v}c.any=function(p){return h(p)},c.prototype.any=function(){return h(this)}}},{}],2:[function(a,s,l){var c;try{throw new Error}catch(_){c=_}var f=a("./schedule"),h=a("./queue"),p=a("./util");function m(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new h(16),this._normalQueue=new h(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var _=this;this.drainQueues=function(){_._drainQueues()},this._schedule=f}function v(_,b,S){this._lateQueue.push(_,b,S),this._queueTick()}function y(_,b,S){this._normalQueue.push(_,b,S),this._queueTick()}function w(_){this._normalQueue._pushOne(_),this._queueTick()}m.prototype.setScheduler=function(_){var b=this._schedule;return this._schedule=_,this._customScheduler=!0,b},m.prototype.hasCustomScheduler=function(){return this._customScheduler},m.prototype.enableTrampoline=function(){this._trampolineEnabled=!0},m.prototype.disableTrampolineIfNecessary=function(){p.hasDevTools&&(this._trampolineEnabled=!1)},m.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},m.prototype.fatalError=function(_,b){b?(r.stderr.write("Fatal "+(_ instanceof Error?_.stack:_)+`
|
||
`),r.exit(2)):this.throwLater(_)},m.prototype.throwLater=function(_,b){if(arguments.length===1&&(b=_,_=function(){throw b}),typeof setTimeout<"u")setTimeout(function(){_(b)},0);else try{this._schedule(function(){_(b)})}catch{throw new Error(`No async scheduler available
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`)}},p.hasDevTools?(m.prototype.invokeLater=function(_,b,S){this._trampolineEnabled?v.call(this,_,b,S):this._schedule(function(){setTimeout(function(){_.call(b,S)},100)})},m.prototype.invoke=function(_,b,S){this._trampolineEnabled?y.call(this,_,b,S):this._schedule(function(){_.call(b,S)})},m.prototype.settlePromises=function(_){this._trampolineEnabled?w.call(this,_):this._schedule(function(){_._settlePromises()})}):(m.prototype.invokeLater=v,m.prototype.invoke=y,m.prototype.settlePromises=w),m.prototype._drainQueue=function(_){for(;_.length()>0;){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<v.length;++S){var O=v[S];if(O===Error||O!=null&&O.prototype instanceof Error){if(_ instanceof O)return p(y).call(b,_)}else if(typeof O=="function"){var M=p(O).call(b,_);if(M===m)return M;if(M)return p(y).call(b,_)}else if(f.isObject(_)){for(var C=h(O),R=0;R<C.length;++R){var $=C[R];if(O[$]!=_[$])continue e}return p(y).call(b,_)}}return c}}}},{"./es5":13,"./util":36}],8:[function(a,s,l){s.exports=function(c){var f=!1,h=[];function p(){this._trace=new p.CapturedTrace(m())}function m(){var v=h.length-1;if(v>=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;ye<le.length;++ye){var ge=le[ye],we=ge===" (No stack trace)"||C.test(ge),Pe=we&&me(ge);we&&!Pe&&($&&ge.charAt(0)!==" "&&(ge=" "+ge),fe.push(ge))}return fe}function Z(le){var fe=le.stack,ye=le.toString();return fe=typeof fe=="string"&&fe.length>0?function(ge){for(var we=ge.stack.replace(/\s+$/g,"").split(`
|
||
`),Pe=0;Pe<we.length;++Pe){var De=we[Pe];if(De===" (No stack trace)"||C.test(De))break}return Pe>0&&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;ge<le;++ge){var De=ye[fe[ge].stack];if(De!==void 0&&De!==ge){De>0&&(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<le-1?(Ke._parent=fe[De+1],Ke._parent.uncycle(),Ke._length=Ke._parent._length+1):(Ke._parent=void 0,Ke._length=1);for(var Xe=Ke._length+1,Ve=ge-2;Ve>=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<Pe.length;++Ke){for(var Xe=Pe[Ke],Ve=De.length-1,It=De[Ve],Mt=-1,un=Xe.length-1;un>=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<Pe.length;++De)(Pe[De].length===0||De+1<Pe.length&&Pe[De][0]===Pe[De+1][0])&&(Pe.splice(De,1),De--)}(ge),_.notEnumerableProp(le,"stack",function(Pe,De){for(var Ke=0;Ke<De.length-1;++Ke)De[Ke].push("From previous event:"),De[Ke]=De[Ke].join(`
|
||
`);return Ke<De.length&&(De[Ke]=De[Ke].join(`
|
||
`)),Pe+`
|
||
`+De.join(`
|
||
`)}(ye,ge)),_.notEnumerableProp(le,"__stackCleaned__",!0)}};var ke=function(){var le=/^\s*at\s*/,fe=function(Pe,De){return typeof Pe=="string"?Pe:De.name!==void 0&&De.message!==void 0?De.toString():Le(De)};if(typeof Error.stackTraceLimit=="number"&&typeof Error.captureStackTrace=="function"){Error.stackTraceLimit+=6,C=le,R=fe;var ye=Error.captureStackTrace;return me=function(Pe){return S.test(Pe)},function(Pe,De){Error.stackTraceLimit+=6,ye(Pe,De),Error.stackTraceLimit-=6}}var ge,we=new Error;if(typeof we.stack=="string"&&we.stack.split(`
|
||
`)[0].indexOf("stackDetection@")>=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;Ve<Ke.length;++Ve)if(Ke[Ve]===un){Ve>0&&(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<we.length;++Xe)if(Ve=Se(we[Xe])){ye=Ve.fileName,De=Ve.line;break}for(Xe=0;Xe<Pe.length;++Xe){var Ve;if(Ve=Se(Pe[Xe])){ge=Ve.fileName,Ke=Ve.line;break}}De<0||Ke<0||!ye||!ge||ye!==ge||De>=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;C<M.length;++C)typeof Array.prototype[M[C]]=="function"&&(O.prototype[M[C]]=Array.prototype[M[C]]);h.defineProperty(O.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),O.prototype.isOperational=!0;var R=0;function $(I){if(!(this instanceof $))return new $(I);y(this,"name","OperationalError"),y(this,"message",I),this.cause=I,this.isOperational=!0,I instanceof Error?(y(this,"message",I.message),y(this,"stack",I.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}O.prototype.toString=function(){var I=Array(4*R+1).join(" "),H=`
|
||
`+I+`AggregateError of:
|
||
`;R++,I=Array(4*R+1).join(" ");for(var W=0;W<this.length;++W){for(var J=this[W]===this?"[Circular AggregateError]":this[W]+"",Y=J.split(`
|
||
`),X=0;X<Y.length;++X)Y[X]=I+Y[X];H+=(J=Y.join(`
|
||
`))+`
|
||
`}return R--,H},v($,Error);var U=Error.__BluebirdErrorTypes__;U||(U=p({CancellationError:b,TimeoutError:S,OperationalError:$,RejectionError:$,AggregateError:O}),h.defineProperty(Error,"__BluebirdErrorTypes__",{value:U,writable:!1,enumerable:!1,configurable:!1})),s.exports={Error,TypeError:c,RangeError:f,CancellationError:U.CancellationError,OperationalError:U.OperationalError,TimeoutError:U.TimeoutError,AggregateError:U.AggregateError,Warning:_}},{"./es5":13,"./util":36}],13:[function(a,s,l){var c=function(){return this===void 0}();if(c)s.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:c,propertyIsWritable:function(v,y){var w=Object.getOwnPropertyDescriptor(v,y);return!(w&&!w.writable&&!w.set)}};else{var f={}.hasOwnProperty,h={}.toString,p={}.constructor.prototype,m=function(v){var y=[];for(var w in v)f.call(v,w)&&y.push(w);return y};s.exports={isArray:function(v){try{return h.call(v)==="[object Array]"}catch{return!1}},keys:m,names:m,defineProperty:function(v,y,w){return v[y]=w.value,v},getDescriptor:function(v,y){return{value:v[y]}},freeze:function(v){return v},getPrototypeOf:function(v){try{return Object(v).constructor.prototype}catch{return p}},isES5:c,propertyIsWritable:function(){return!0}}}},{}],14:[function(a,s,l){s.exports=function(c,f){var h=c.map;c.prototype.filter=function(p,m){return h(this,p,m,f)},c.filter=function(p,m,v){return h(p,m,v,f)}}},{}],15:[function(a,s,l){s.exports=function(c,f,h){var p=a("./util"),m=c.CancellationError,v=p.errorObj,y=a("./catch_filter")(h);function w(C,R,$){this.promise=C,this.type=R,this.handler=$,this.called=!1,this.cancelPromise=null}function _(C){this.finallyHandler=C}function b(C,R){return C.cancelPromise!=null&&(arguments.length>1?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;$<R-1;++$){var H=arguments[$];if(!p.isObject(H))return c.reject(new TypeError("tapCatch statement predicate: expecting an object but got "+p.classString(H)));U[I++]=H}U.length=I;var W=arguments[$];return this._passThrough(y(U,W,this),1,void 0,M)},w}},{"./catch_filter":7,"./util":36}],16:[function(a,s,l){s.exports=function(c,f,h,p,m,v){var y=a("./errors").TypeError,w=a("./util"),_=w.errorObj,b=w.tryCatch,S=[];function O(M,C,R,$){if(v.cancellation()){var U=new c(h),I=this._finallyPromise=new c(h);this._promise=U.lastly(function(){return I}),U._captureStackTrace(),U._setOnCancel(this)}else(this._promise=new c(h))._captureStackTrace();this._stack=$,this._generatorFunction=M,this._receiver=C,this._generator=void 0,this._yieldHandlers=typeof R=="function"?[R].concat(S):S,this._yieldedPromise=null,this._cancellationPhase=!1}w.inherits(O,m),O.prototype._isResolved=function(){return this._promise===null},O.prototype._cleanup=function(){this._promise=this._generator=null,v.cancellation()&&this._finallyPromise!==null&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},O.prototype._promiseCancelled=function(){if(!this._isResolved()){var M;if(this._generator.return!==void 0)this._promise._pushContext(),M=b(this._generator.return).call(this._generator,void 0),this._promise._popContext();else{var C=new c.CancellationError("generator .return() sentinel");c.coroutine.returnSentinel=C,this._promise._attachExtraTrace(C),this._promise._pushContext(),M=b(this._generator.throw).call(this._generator,C),this._promise._popContext()}this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(M)}},O.prototype._promiseFulfilled=function(M){this._yieldedPromise=null,this._promise._pushContext();var C=b(this._generator.next).call(this._generator,M);this._promise._popContext(),this._continue(C)},O.prototype._promiseRejected=function(M){this._yieldedPromise=null,this._promise._attachExtraTrace(M),this._promise._pushContext();var C=b(this._generator.throw).call(this._generator,M);this._promise._popContext(),this._continue(C)},O.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof c){var M=this._yieldedPromise;this._yieldedPromise=null,M.cancel()}},O.prototype.promise=function(){return this._promise},O.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},O.prototype._continue=function(M){var C=this._promise;if(M===_)return this._cleanup(),this._cancellationPhase?C.cancel():C._rejectCallback(M.e,!1);var R=M.value;if(M.done===!0)return this._cleanup(),this._cancellationPhase?C.cancel():C._resolveCallback(R);var $=p(R,this._promise);if($ instanceof c||($=function(I,H,W){for(var J=0;J<H.length;++J){W._pushContext();var Y=b(H[J])(I);if(W._popContext(),Y===_){W._pushContext();var X=c.reject(_.e);return W._popContext(),X}var re=p(Y,W);if(re instanceof c)return re}return null}($,this._yieldHandlers,this._promise))!==null){var U=($=$._target())._bitField;50397184&U?33554432&U?c._async.invoke(this._promiseFulfilled,this,$._value()):16777216&U?c._async.invoke(this._promiseRejected,this,$._reason()):this._promiseCancelled():(this._yieldedPromise=$,$._proxy(this,null))}else this._promiseRejected(new y(`A value %s was yielded that could not be treated as a promise
|
||
|
||
See http://goo.gl/MqrFmX
|
||
|
||
`.replace("%s",String(R))+`From coroutine:
|
||
`+this._stack.split(`
|
||
`).slice(1,-7).join(`
|
||
`)))},c.coroutine=function(M,C){if(typeof M!="function")throw new y(`generatorFunction must be a function
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var R=Object(C).yieldHandler,$=O,U=new Error().stack;return function(){var I=M.apply(this,arguments),H=new $(void 0,void 0,R,U),W=H.promise();return H._generator=I,H._promiseFulfilled(void 0),W}},c.coroutine.addYieldHandler=function(M){if(typeof M!="function")throw new y("expecting a function but got "+w.classString(M));S.push(M)},c.spawn=function(M){if(v.deprecated("Promise.spawn()","Promise.coroutine()"),typeof M!="function")return f(`generatorFunction must be a function
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var C=new O(M,this),R=C.promise();return C._run(c.spawn),R}}},{"./errors":12,"./util":36}],17:[function(a,s,l){s.exports=function(c,f,h,p,m,v){var y=a("./util");y.canEvaluate,y.tryCatch,y.errorObj,c.join=function(){var w,_=arguments.length-1;_>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._inFlight<R;){if(this._isResolved())return;var U=C.pop();this._promiseFulfilled($[U],U)}},O.prototype._filter=function(C,R){for(var $=R.length,U=new Array($),I=0,H=0;H<$;++H)C[H]&&(U[I++]=R[H]);U.length=I,this._resolve(U)},O.prototype.preservedValues=function(){return this._preservedValues},c.prototype.map=function(C,R){return M(this,C,R,null)},c.map=function(C,R,$,U){return M(C,R,$,U)}}},{"./util":36}],19:[function(a,s,l){s.exports=function(c,f,h,p,m){var v=a("./util"),y=v.tryCatch;c.method=function(w){if(typeof w!="function")throw new c.TypeError("expecting a function but got "+v.classString(w));return function(){var _=new c(f);_._captureStackTrace(),_._pushContext();var b=y(w).apply(this,arguments),S=_._popContext();return m.checkForgottenReturns(b,S,"Promise.method",_),_._resolveFromSyncValue(b),_}},c.attempt=c.try=function(w){if(typeof w!="function")return p("expecting a function but got "+v.classString(w));var _,b=new c(f);if(b._captureStackTrace(),b._pushContext(),arguments.length>1){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;ne<q-1;++ne){var P=arguments[ne];if(!y.isObject(P))return h("Catch statement predicate: expecting an object but got "+y.classString(P));ae[he++]=P}return ae.length=he,z=arguments[ne],this.then(void 0,X(ae,z,this))}return this.then(void 0,z)},N.prototype.reflect=function(){return this._then(f,f,void 0,this,void 0)},N.prototype.then=function(z,q){if(J.warnings()&&arguments.length>0&&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<P;++k)ae._migrateCallbackAt(this,k);this._setFollowing(),this._setLength(0),this._setFollowee(ae)}}else this._reject(c())}},N.prototype._rejectCallback=function(z,q,ne){var ae=y.ensureErrorObject(z),he=ae===z;if(!he&&!ne&&J.warnings()){var P="a promise was rejected with a non-error: "+y.classString(z);this._warn(P,!0)}this._attachExtraTrace(ae,!!q&&he),this._reject(z)},N.prototype._resolveFromExecutor=function(z){if(z!==C){var q=this;this._captureStackTrace(),this._pushContext();var ne=!0,ae=this._execute(z,function(he){q._resolveCallback(he)},function(he){q._rejectCallback(he,ne)});ne=!1,this._popContext(),ae!==void 0&&q._rejectCallback(ae,!0)}},N.prototype._settlePromiseFromHandler=function(z,q,ne,ae){var he=ae._bitField;if(!(65536&he)){var P;ae._pushContext(),q===R?ne&&typeof ne.length=="number"?P=V(z).apply(this._boundValue(),ne):(P=se).e=new O("cannot .spread() a non-array: "+y.classString(ne)):P=V(z).call(q,ne);var k=ae._popContext();!(65536&(he=ae._bitField))&&(P===$?ae._reject(ne):P===se?ae._rejectCallback(P.e,!1):(J.checkForgottenReturns(P,k,"",ae,this),ae._resolveCallback(P)))}},N.prototype._target=function(){for(var z=this;z._isFollowing();)z=z._followee();return z},N.prototype._followee=function(){return this._rejectionHandler0},N.prototype._setFollowee=function(z){this._rejectionHandler0=z},N.prototype._settlePromise=function(z,q,ne,ae){var he=z instanceof N,P=this._bitField,k=(134217728&P)!=0;65536&P?(he&&z._invokeInternalOnCancel(),ne instanceof Y&&ne.isFinallyHandler()?(ne.cancelPromise=z,V(q).call(ne,ae)===se&&z._reject(se.e)):q===f?z._fulfill(f.call(ne)):ne instanceof p?ne._promiseCancelled(z):he||z instanceof I?z._cancel():ne.cancel()):typeof q=="function"?he?(k&&z._setAsyncGuaranteed(),this._settlePromiseFromHandler(q,ne,ae,z)):q.call(ne,ae,z):ne instanceof p?ne._isResolved()||(33554432&P?ne._promiseFulfilled(ae,z):ne._promiseRejected(ae,z)):he&&(k&&z._setAsyncGuaranteed(),33554432&P?z._fulfill(ae):z._reject(ae))},N.prototype._settlePromiseLateCancellationObserver=function(z){var q=z.handler,ne=z.promise,ae=z.receiver,he=z.value;typeof q=="function"?ne instanceof N?this._settlePromiseFromHandler(q,ae,he,ne):q.call(ae,he,ne):ne instanceof N&&ne._reject(he)},N.prototype._settlePromiseCtx=function(z){this._settlePromise(z.promise,z.handler,z.receiver,z.value)},N.prototype._settlePromise0=function(z,q,ne){var ae=this._promise0,he=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(ae,z,he,q)},N.prototype._clearCallbackDataAtIndex=function(z){var q=4*z-4;this[q+2]=this[q+3]=this[q+0]=this[q+1]=void 0},N.prototype._fulfill=function(z){var q=this._bitField;if(!((117506048&q)>>>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;ne<z;ne++){var ae=this._fulfillmentHandlerAt(ne),he=this._promiseAt(ne),P=this._receiverAt(ne);this._clearCallbackDataAtIndex(ne),this._settlePromise(he,ae,P,q)}},N.prototype._rejectPromises=function(z,q){for(var ne=1;ne<z;ne++){var ae=this._rejectionHandlerAt(ne),he=this._promiseAt(ne),P=this._receiverAt(ne);this._clearCallbackDataAtIndex(ne),this._settlePromise(he,ae,P,q)}},N.prototype._settlePromises=function(){var z=this._bitField,q=65535&z;if(q>0){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;_<w.length;++_)w[_]instanceof c&&w[_].cancel()}},y.prototype.shouldCopyValues=function(){return!0},y.prototype.getActualLength=function(w){return w},y}},{"./util":36}],24:[function(a,s,l){s.exports=function(c,f){var h={},p=a("./util"),m=a("./nodeback"),v=p.withAppended,y=p.maybeWrapAsError,w=p.canEvaluate,_=a("./errors").TypeError,b={__isPromisified__:!0},S=new RegExp("^(?:"+["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"].join("|")+")$"),O=function(W){return p.isIdentifier(W)&&W.charAt(0)!=="_"&&W!=="constructor"};function M(W){return!S.test(W)}function C(W){try{return W.__isPromisified__===!0}catch{return!1}}function R(W,J,Y){var X=p.getDataPropertyOrDefault(W,J+Y,b);return!!X&&C(X)}function $(W,J,Y,X){for(var re=p.inheritedDataKeys(W),se=[],V=0;V<re.length;++V){var N=re[V],A=W[N],B=X===O||O(N);typeof A!="function"||C(A)||R(W,N,J)||!X(N,A,W,B)||se.push(N,A)}return function(ee,z,q){for(var ne=0;ne<ee.length;ne+=2){var ae=ee[ne];if(q.test(ae)){for(var he=ae.replace(q,""),P=0;P<ee.length;P+=2)if(ee[P]===he)throw new _(`Cannot promisify an API that has normal methods with '%s'-suffix
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`.replace("%s",z))}}}(se,J,Y),se}var U=function(W){return W.replace(/([$])/,"\\$")},I=w?void 0:function(W,J,Y,X,re,se){var V=function(){return this}(),N=W;function A(){var B=J;J===h&&(B=this);var ee=new c(f);ee._captureStackTrace();var z=typeof N=="string"&&this!==V?this[N]:W,q=m(ee,se);try{z.apply(B,v(arguments,q))}catch(ne){ee._rejectCallback(y(ne),!0,!0)}return ee._isFateSealed()||ee._setAsyncGuaranteed(),ee}return typeof N=="string"&&(W=X),p.notEnumerableProp(A,"__isPromisified__",!0),A};function H(W,J,Y,X,re){for(var se=new RegExp(U(J)+"$"),V=$(W,J,se,Y),N=0,A=V.length;N<A;N+=2){var B=V[N],ee=V[N+1],z=B+J;if(X===I)W[z]=I(B,h,B,ee,J,re);else{var q=X(ee,function(){return I(B,h,B,ee,J,re)});p.notEnumerableProp(q,"__isPromisified__",!0),W[z]=q}}return p.toFastProperties(W),W}c.promisify=function(W,J){if(typeof W!="function")throw new _("expecting a function but got "+p.classString(W));if(C(W))return W;var Y=(J=Object(J)).context===void 0?h:J.context,X=!!J.multiArgs,re=function(se,V,N){return I(se,V,void 0,se,null,X)}(W,Y);return p.copyDescriptors(W,re,M),re},c.promisifyAll=function(W,J){if(typeof W!="function"&&typeof W!="object")throw new _(`the target of promisifyAll must be an object or a function
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var Y=!!(J=Object(J)).multiArgs,X=J.suffix;typeof X!="string"&&(X="Async");var re=J.filter;typeof re!="function"&&(re=O);var se=J.promisifier;if(typeof se!="function"&&(se=I),!p.isIdentifier(X))throw new RangeError(`suffix must be a valid identifier
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);for(var V=p.inheritedDataKeys(W),N=0;N<V.length;++N){var A=W[V[N]];V[N]!=="constructor"&&p.isClass(A)&&(H(A.prototype,X,re,se,Y),H(A,X,re,se,Y))}return H(W,X,re,se,Y)}}},{"./errors":12,"./nodeback":20,"./util":36}],25:[function(a,s,l){s.exports=function(c,f,h,p){var m,v=a("./util"),y=v.isObject,w=a("./es5");typeof Map=="function"&&(m=Map);var _=function(){var O=0,M=0;function C(R,$){this[O]=R,this[O+M]=$,O++}return function(R){M=R.size,O=0;var $=new Array(2*R.size);return R.forEach(C,$),$}}();function b(O){var M,C=!1;if(m!==void 0&&O instanceof m)M=_(O),C=!0;else{var R=w.keys(O),$=R.length;M=new Array(2*$);for(var U=0;U<$;++U){var I=R[U];M[U]=O[I],M[U+$]=I}}this.constructor$(M),this._isMap=C,this._init$(void 0,C?-6:-3)}function S(O){var M,C=h(O);return y(C)?(M=C instanceof c?C._then(c.props,void 0,void 0,void 0,void 0):new b(C).promise(),C instanceof c&&M._propagateFrom(C,2),M):p(`cannot await properties of a non-object
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`)}v.inherits(b,f),b.prototype._init=function(){},b.prototype._promiseFulfilled=function(O,M){if(this._values[M]=O,++this._totalResolved>=this._length){var C;if(this._isMap)C=function(I){for(var H=new m,W=I.length/2|0,J=0;J<W;++J){var Y=I[W+J],X=I[J];H.set(Y,X)}return H}(this._values);else{C={};for(var R=this.length(),$=0,U=this.length();$<U;++$)C[this._values[$+R]]=this._values[$]}return this._resolve(C),!0}return!1},b.prototype.shouldCopyValues=function(){return!1},b.prototype.getActualLength=function(O){return O>>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<f},c.prototype._pushOne=function(f){var h=this.length();this._checkCapacity(h+1),this[this._front+h&this._capacity-1]=f,this._length=h+1},c.prototype.push=function(f,h,p){var m=this.length()+3;if(this._willBeOverCapacity(m))return this._pushOne(f),this._pushOne(h),void this._pushOne(p);var v=this._front+m-3;this._checkCapacity(m);var y=this._capacity-1;this[v+0&y]=f,this[v+1&y]=h,this[v+2&y]=p,this._length=m},c.prototype.shift=function(){var f=this._front,h=this[f];return this[f]=void 0,this._front=f+1&this._capacity-1,this._length--,h},c.prototype.length=function(){return this._length},c.prototype._checkCapacity=function(f){this._capacity<f&&this._resizeTo(this._capacity<<1)},c.prototype._resizeTo=function(f){var h=this._capacity;this._capacity=f,function(p,m,v,y,w){for(var _=0;_<w;++_)v[_+y]=p[_+0],p[_+0]=void 0}(this,0,this,h,this._front+this._length&h-1)},s.exports=c},{}],27:[function(a,s,l){s.exports=function(c,f,h,p){var m=a("./util"),v=function(w){return w.then(function(_){return y(_,w)})};function y(w,_){var b=h(w);if(b instanceof c)return v(b);if((w=m.asArray(w))===null)return p("expecting an array or an iterable object but got "+m.classString(w));var S=new c(f);_!==void 0&&S._propagateFrom(_,3);for(var O=S._fulfill,M=S._reject,C=0,R=w.length;C<R;++C){var $=w[C];($!==void 0||C in w)&&c.cast($)._then(O,M,void 0,S,null)}return S}c.race=function(w){return y(w,void 0)},c.prototype.race=function(){return y(this,void 0)}}},{"./util":36}],28:[function(a,s,l){s.exports=function(c,f,h,p,m,v){var y=c._getDomain,w=a("./util"),_=w.tryCatch;function b(R,$,U,I){this.constructor$(R);var H=y();this._fn=H===null?$:w.domainBind(H,$),U!==void 0&&(U=c.resolve(U))._attachCancellationCallback(this),this._initialValue=U,this._currentCancellable=null,this._eachValues=I===m?Array(this._length):I===0?null:void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}function S(R,$){this.isFulfilled()?$._resolve(R):$._reject(R)}function O(R,$,U,I){return typeof $!="function"?h("expecting a function but got "+w.classString($)):new b(R,$,U,I).promise()}function M(R){this.accum=R,this.array._gotAccum(R);var $=p(this.value,this.array._promise);return $ instanceof c?(this.array._currentCancellable=$,$._then(C,void 0,void 0,this,void 0)):C.call(this,$)}function C(R){var $,U=this.array,I=U._promise,H=_(U._fn);I._pushContext(),($=U._eachValues!==void 0?H.call(I._boundValue(),R,this.index,this.length):H.call(I._boundValue(),this.accum,R,this.index,this.length))instanceof c&&(U._currentCancellable=$);var W=I._popContext();return v.checkForgottenReturns($,W,U._eachValues!==void 0?"Promise.each":"Promise.reduce",I),$}w.inherits(b,f),b.prototype._gotAccum=function(R){this._eachValues!==void 0&&this._eachValues!==null&&R!==m&&this._eachValues.push(R)},b.prototype._eachComplete=function(R){return this._eachValues!==null&&this._eachValues.push(R),this._eachValues},b.prototype._init=function(){},b.prototype._resolveEmptyArray=function(){this._resolve(this._eachValues!==void 0?this._eachValues:this._initialValue)},b.prototype.shouldCopyValues=function(){return!1},b.prototype._resolve=function(R){this._promise._resolveCallback(R),this._values=null},b.prototype._resultCancelled=function(R){if(R===this._initialValue)return this._cancel();this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof c&&this._currentCancellable.cancel(),this._initialValue instanceof c&&this._initialValue.cancel())},b.prototype._iterate=function(R){var $,U;this._values=R;var I=R.length;if(this._initialValue!==void 0?($=this._initialValue,U=0):($=c.resolve(R[0]),U=1),this._currentCancellable=$,!$.isRejected())for(;U<I;++U){var H={accum:null,value:R[U],index:U,length:I,array:this};$=$._then(M,void 0,void 0,H,void 0)}this._eachValues!==void 0&&($=$._then(this._eachComplete,void 0,void 0,this,void 0)),$._then(S,S,void 0,$,this)},c.prototype.reduce=function(R,$){return O(this,R,$,null)},c.reduce=function(R,$,U,I){return O(R,$,U,I)}}},{"./util":36}],29:[function(a,s,l){var c,f=a("./util"),h=f.getNativePromise();if(f.isNode&&typeof MutationObserver>"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();O<this._values.length;++O)this._values[O]!==w&&S.push(this._values[O]);return S.length>0?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;W<H;++W){var J=this[W];J instanceof c&&J.cancel()}},c.using=function(){var H=arguments.length;if(H<2)return f("you must pass at least 2 arguments to Promise.using");var W,J=arguments[H-1];if(typeof J!="function")return f("expecting a function but got "+y.classString(J));var Y=!0;H===2&&Array.isArray(arguments[0])?(H=(W=arguments[0]).length,Y=!1):(W=arguments,H--);for(var X=new I(H),re=0;re<H;++re){var se=W[re];if(R.isDisposer(se)){var V=se;(se=se.promise())._setDisposable(V)}else{var N=h(se);N instanceof c&&(se=N._then(U,null,null,{resources:X,index:re},void 0))}X[re]=se}var A=new Array(X.length);for(re=0;re<A.length;++re)A[re]=c.resolve(X[re]).reflect();var B=c.all(A).then(function(z){for(var q=0;q<z.length;++q){var ne=z[q];if(ne.isRejected())return b.e=ne.error(),b;if(!ne.isFulfilled())return void B.cancel();z[q]=ne.value()}ee._pushContext(),J=S(J);var ae=Y?J.apply(void 0,z):J(z),he=ee._popContext();return v.checkForgottenReturns(ae,he,"Promise.using",ee),ae}),ee=B.lastly(function(){var z=new c.PromiseInspection(B);return C(X,z)});return X.promise=ee,ee._setOnCancel(X),ee},c.prototype._setDisposable=function(H){this._bitField=131072|this._bitField,this._disposer=H},c.prototype._isDisposable=function(){return(131072&this._bitField)>0},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;N<Y.length;++N)if(Y[N]===V)return!0;return!1};if(f.isES5){var re=Object.getOwnPropertyNames;return function(V){for(var N=[],A=Object.create(null);V!=null&&!X(V);){var B;try{B=re(V)}catch{return N}for(var ee=0;ee<B.length;++ee){var z=B[ee];if(!A[z]){A[z]=!0;var q=Object.getOwnPropertyDescriptor(V,z);q!=null&&q.get==null&&q.set==null&&N.push(z)}}V=f.getPrototypeOf(V)}return N}}var se={}.hasOwnProperty;return function(V){if(X(V))return[];var N=[];e:for(var A in V)if(se.call(V,A))N.push(A);else{for(var B=0;B<Y.length;++B)if(se.call(Y[B],A))continue e;N.push(A)}return N}}(),b=/this\s*\.\s*\S+\s*=/,S=/^[a-z$_][a-z$_0-9]*$/i;function O(Y){try{return Y+""}catch{return"[no string representation]"}}function M(Y){return Y instanceof Error||Y!==null&&typeof Y=="object"&&typeof Y.message=="string"&&typeof Y.name=="string"}function C(Y){return M(Y)&&f.propertyIsWritable(Y,"stack")}var R="stack"in new Error?function(Y){return C(Y)?Y:new Error(O(Y))}:function(Y){if(C(Y))return Y;try{throw new Error(O(Y))}catch(X){return X}};function $(Y){return{}.toString.call(Y)}var U=function(Y){return f.isArray(Y)?Y:null};if(typeof Symbol<"u"&&Symbol.iterator){var I=typeof Array.from=="function"?function(Y){return Array.from(Y)}:function(Y){for(var X,re=[],se=Y[Symbol.iterator]();!(X=se.next()).done;)re.push(X.value);return re};U=function(Y){return f.isArray(Y)?Y:Y!=null&&typeof Y[Symbol.iterator]=="function"?I(Y):null}}var H=r!==void 0&&$(r).toLowerCase()==="[object process]",W=r!==void 0&&r.env!==void 0,J={isClass:function(Y){try{if(typeof Y=="function"){var X=f.names(Y.prototype),re=f.isES5&&X.length>1,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;re<se;++re)V[re]=Y[re];return V[re]=X,V},maybeWrapAsError:function(Y){return y(Y)?new Error(O(Y)):Y},toFastProperties:function(Y){return Y},filledRange:function(Y,X,re){for(var se=new Array(Y),V=0;V<Y;++V)se[V]=X+V+re;return se},toString:O,canAttachTrace:C,ensureErrorObject:R,originatesFromRejection:function(Y){return Y!=null&&(Y instanceof Error.__BluebirdErrorTypes__.OperationalError||Y.isOperational===!0)},markAsOriginatingFromRejection:function(Y){try{w(Y,"isOperational",!0)}catch{}},classString:$,copyDescriptors:function(Y,X,re){for(var se=f.names(Y),V=0;V<se.length;++V){var N=se[V];if(re(N))try{f.defineProperty(X,N,f.getDescriptor(Y,N))}catch{}}},hasDevTools:typeof chrome<"u"&&chrome&&typeof chrome.loadTimes=="function",isNode:H,hasEnvVariables:W,env:function(Y){return W?r.env[Y]:void 0},global:m,getNativePromise:function(){if(typeof Promise=="function")try{var Y=new Promise(function(){});if({}.toString.call(Y)==="[object Promise]")return Promise}catch{}},domainBind:function(Y,X){return Y.bind(X)}};J.isRecentNode=J.isNode&&function(){var Y=r.versions.node.split(".").map(Number);return Y[0]===0&&Y[1]>10||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;o<a;o++)if(r[o]==="\r"){if(r[o+1]===`
|
||
`){i.eol=`\r
|
||
`;break}if(r[o+1]){i.eol="\r";break}}else if(r[o]===`
|
||
`){i.eol=`
|
||
`;break}}return i.eol||`
|
||
`}},function(t,e,n){var r=n(65),i=n(73);t.exports=function(o,a){var s=i(o,a);return r(s)?s:void 0}},function(t,e,n){var r=n(19).Symbol;t.exports=r},function(t,e,n){var r=n(67),i=typeof self=="object"&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},function(t,e){t.exports=function(n){var r=typeof n;return n!=null&&(r=="object"||r=="function")}},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){var r=n(30),i=n(76);t.exports=function(o){return typeof o=="symbol"||i(o)&&r(o)=="[object Symbol]"}},function(t,e,n){(function(r,i){var o=n(6);t.exports=O;var a,s=n(37);O.ReadableState=S,n(12).EventEmitter;var l=function(A,B){return A.listeners(B).length},c=n(24),f=n(7).Buffer,h=r.Uint8Array||function(){},p=n(5);p.inherits=n(2);var m=n(41),v=void 0;v=m&&m.debuglog?m.debuglog("stream"):function(){};var y,w=n(42),_=n(25);p.inherits(O,c);var b=["error","close","destroy","pause","resume"];function S(A,B){a=a||n(1),A=A||{};var ee=B instanceof a;this.objectMode=!!A.objectMode,ee&&(this.objectMode=this.objectMode||!!A.readableObjectMode);var z=A.highWaterMark,q=A.readableHighWaterMark,ne=this.objectMode?16:16384;this.highWaterMark=z||z===0?z:ee&&(q||q===0)?q:ne,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new w,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=A.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,A.encoding&&(y||(y=n(26).StringDecoder),this.decoder=new y(A.encoding),this.encoding=A.encoding)}function O(A){if(a=a||n(1),!(this instanceof O))return new O(A);this._readableState=new S(A,this),this.readable=!0,A&&(typeof A.read=="function"&&(this._read=A.read),typeof A.destroy=="function"&&(this._destroy=A.destroy)),c.call(this)}function M(A,B,ee,z,q){var ne,ae=A._readableState;return B===null?(ae.reading=!1,function(he,P){if(!P.ended){if(P.decoder){var k=P.decoder.end();k&&k.length&&(P.buffer.push(k),P.length+=P.objectMode?1:k.length)}P.ended=!0,U(he)}}(A,ae)):(q||(ne=function(he,P){var k;return function(D){return f.isBuffer(D)||D instanceof h}(P)||typeof P=="string"||P===void 0||he.objectMode||(k=new TypeError("Invalid non-string/buffer chunk")),k}(ae,B)),ne?A.emit("error",ne):ae.objectMode||B&&B.length>0?(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.length<he.highWaterMark||he.length===0)}(ae)}function C(A,B,ee,z){B.flowing&&B.length===0&&!B.sync?(A.emit("data",ee),A.read(0)):(B.length+=B.objectMode?1:ee.length,z?B.buffer.unshift(ee):B.buffer.push(ee),B.needReadable&&U(A)),H(A,B)}Object.defineProperty(O.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(A){this._readableState&&(this._readableState.destroyed=A)}}),O.prototype.destroy=_.destroy,O.prototype._undestroy=_.undestroy,O.prototype._destroy=function(A,B){this.push(null),B(A)},O.prototype.push=function(A,B){var ee,z=this._readableState;return z.objectMode?ee=!0:typeof A=="string"&&((B=B||z.defaultEncoding)!==z.encoding&&(A=f.from(A,B),B=""),ee=!0),M(this,A,B,!1,ee)},O.prototype.unshift=function(A){return M(this,A,null,!0,!1)},O.prototype.isPaused=function(){return this._readableState.flowing===!1},O.prototype.setEncoding=function(A){return y||(y=n(26).StringDecoder),this._readableState.decoder=new y(A),this._readableState.encoding=A,this};var R=8388608;function $(A,B){return A<=0||B.length===0&&B.ended?0:B.objectMode?1:A!=A?B.flowing&&B.length?B.buffer.head.data.length:B.length:(A>B.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.highWaterMark&&(v("maybeReadMore read 0"),A.read(0),ee!==B.length);)ee=B.length;B.readingMore=!1}function J(A){v("readable nexttick read 0"),A.read(0)}function Y(A,B){B.reading||(v("resume read 0"),A.read(0)),B.resumeScheduled=!1,B.awaitDrain=0,A.emit("resume"),X(A),B.flowing&&!B.reading&&A.read(0)}function X(A){var B=A._readableState;for(v("flow",B.flowing);B.flowing&&A.read()!==null;);}function re(A,B){return B.length===0?null:(B.objectMode?ee=B.buffer.shift():!A||A>=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 z<q.head.data.length?(ae=q.head.data.slice(0,z),q.head.data=q.head.data.slice(z)):ae=z===q.head.data.length?q.shift():ne?function(he,P){var k=P.head,D=1,G=k.data;for(he-=G.length;k=k.next;){var Z=k.data,ie=he>Z.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<z;ee++)if(A[ee]===B)return ee;return-1}O.prototype.read=function(A){v("read",A),A=parseInt(A,10);var B=this._readableState,ee=A;if(A!==0&&(B.emittedReadable=!1),A===0&&B.needReadable&&(B.length>=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-A<B.highWaterMark)&&v("length less than watermark",q=!0),B.ended||B.reading?v("reading or ended",q=!1):q&&(v("do read"),B.reading=!0,B.sync=!0,B.length===0&&(B.needReadable=!0),this._read(B.highWaterMark),B.sync=!1,B.reading||(A=$(ee,B))),(z=A>0?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<q;ne++)z[ne].emit("unpipe",this,ee);return this}var ae=N(B.pipes,A);return ae===-1?this:(B.pipes.splice(ae,1),B.pipesCount-=1,B.pipesCount===1&&(B.pipes=B.pipes[0]),A.emit("unpipe",this,ee),this)},O.prototype.on=function(A,B){var ee=c.prototype.on.call(this,A,B);if(A==="data")this._readableState.flowing!==!1&&this.resume();else if(A==="readable"){var z=this._readableState;z.endEmitted||z.readableListening||(z.readableListening=z.needReadable=!0,z.emittedReadable=!1,z.reading?z.length&&U(this):o.nextTick(J,this))}return ee},O.prototype.addListener=O.prototype.on,O.prototype.resume=function(){var A=this._readableState;return A.flowing||(v("resume"),A.flowing=!0,function(B,ee){ee.resumeScheduled||(ee.resumeScheduled=!0,o.nextTick(Y,B,ee))}(this,A)),this},O.prototype.pause=function(){return v("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(v("pause"),this._readableState.flowing=!1,this.emit("pause")),this},O.prototype.wrap=function(A){var B=this,ee=this._readableState,z=!1;for(var q in A.on("end",function(){if(v("wrapped end"),ee.decoder&&!ee.ended){var ae=ee.decoder.end();ae&&ae.length&&B.push(ae)}B.push(null)}),A.on("data",function(ae){v("wrapped data"),ee.decoder&&(ae=ee.decoder.write(ae)),(!ee.objectMode||ae!=null)&&(ee.objectMode||ae&&ae.length)&&(B.push(ae)||(z=!0,A.pause()))}),A)this[q]===void 0&&typeof A[q]=="function"&&(this[q]=function(ae){return function(){return A[ae].apply(A,arguments)}}(q));for(var ne=0;ne<b.length;ne++)A.on(b[ne],this.emit.bind(this,b[ne]));return this._read=function(ae){v("wrapped _read",ae),z&&(z=!1,A.resume())},this},Object.defineProperty(O.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),O._fromList=re}).call(this,n(0),n(4))},function(t,e,n){t.exports=n(12).EventEmitter},function(t,e,n){var r=n(6);function i(o,a){o.emit("error",a)}t.exports={destroy:function(o,a){var s=this,l=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return l||c?(a?a(o):!o||this._writableState&&this._writableState.errorEmitted||r.nextTick(i,this,o),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,function(f){!a&&f?(r.nextTick(i,s,f),s._writableState&&(s._writableState.errorEmitted=!0)):a&&a(f)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(t,e,n){var r=n(7).Buffer,i=r.isEncoding||function(v){switch((v=""+v)&&v.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(v){var y;switch(this.encoding=function(w){var _=function(b){if(!b)return"utf8";for(var S;;)switch(b){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return b;default:if(S)return;b=(""+b).toLowerCase(),S=!0}}(w);if(typeof _!="string"&&(r.isEncoding===i||!i(w)))throw new Error("Unknown encoding: "+w);return _||w}(v),this.encoding){case"utf16le":this.text=l,this.end=c,y=4;break;case"utf8":this.fillLast=s,y=4;break;case"base64":this.text=f,this.end=h,y=3;break;default:return this.write=p,void(this.end=m)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(y)}function a(v){return v<=127?0:v>>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,"<22>";if(_.lastNeed>1&&b.length>1){if((192&b[1])!=128)return _.lastNeed=1,"<22>";if(_.lastNeed>2&&b.length>2&&(192&b[2])!=128)return _.lastNeed=2,"<22>"}}(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<v.length?y?y+this.text(v,w):this.text(v,w):y||""},o.prototype.end=function(v){var y=v&&v.length?this.write(v):"";return this.lastNeed?y+"<22>":y},o.prototype.text=function(v,y){var w=function(b,S,O){var M=S.length-1;if(M<O)return 0;var C=a(S[M]);return C>=0?(C>0&&(b.lastNeed=C-1),C):--M<O||C===-2?0:(C=a(S[M]))>=0?(C>0&&(b.lastNeed=C-2),C):--M<O||C===-2?0:(C=a(S[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<m.highWaterMark)&&this._read(m.highWaterMark)}.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,l&&(typeof l.transform=="function"&&(this._transform=l.transform),typeof l.flush=="function"&&(this._flush=l.flush)),this.on("prefinish",a)}function a(){var l=this;typeof this._flush=="function"?this._flush(function(c,f){s(l,c,f)}):s(this,null,null)}function s(l,c,f){if(c)return l.emit("error",c);if(f!=null&&l.push(f),l._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(l._transformState.transforming)throw new Error("Calling transform done when still transforming");return l.push(null)}i.inherits=n(2),i.inherits(o,r),o.prototype.push=function(l,c){return this._transformState.needTransform=!1,r.prototype.push.call(this,l,c)},o.prototype._transform=function(l,c,f){throw new Error("_transform() is not implemented")},o.prototype._write=function(l,c,f){var h=this._transformState;if(h.writecb=f,h.writechunk=l,h.writeencoding=c,!h.transforming){var p=this._readableState;(h.needTransform||p.needReadable||p.length<p.highWaterMark)&&this._read(p.highWaterMark)}},o.prototype._read=function(l){var c=this._transformState;c.writechunk!==null&&c.writecb&&!c.transforming?(c.transforming=!0,this._transform(c.writechunk,c.writeencoding,c.afterTransform)):c.needTransform=!0},o.prototype._destroy=function(l,c){var f=this;r.prototype._destroy.call(this,l,function(h){c(h),f.emit("close")})}},function(t,e,n){(function(r){Object.defineProperty(e,"__esModule",{value:!0}),e.bufFromString=function(i){var o=r.byteLength(i),a=r.allocUnsafe?r.allocUnsafe(o):new r(o);return a.write(i),a},e.emptyBuffer=function(){return r.allocUnsafe?r.allocUnsafe(0):new r(0)},e.filterArray=function(i,o){for(var a=[],s=0;s<i.length;s++)o.indexOf(s)>-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;_<w.length;_++)w[_]=arguments[_+1];var b={callback:y,args:w};return c[l]=b,s(l),l++},p.clearImmediate=m}function m(y){delete c[y]}function v(y){if(f)setTimeout(v,0,y);else{var w=c[y];if(w){f=!0;try{(function(_){var b=_.callback,S=_.args;switch(S.length){case 0:b();break;case 1:b(S[0]);break;case 2:b(S[0],S[1]);break;case 3:b(S[0],S[1],S[2]);break;default:b.apply(a,S)}})(w)}finally{m(y),f=!1}}}}})(typeof self>"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<S;O+=4)m=i[p.charCodeAt(O)]<<18|i[p.charCodeAt(O+1)]<<12|i[p.charCodeAt(O+2)]<<6|i[p.charCodeAt(O+3)],_[b++]=m>>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;_+=16383)w.push(h(p,_,_+16383>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;s<l;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function c(p){var m=p.length;if(m%4>0)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;_<v;_+=3)y=(p[_]<<16&16711680)+(p[_+1]<<8&65280)+(255&p[_+2]),w.push(f(y));return w.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(t,e){e.read=function(n,r,i,o,a){var s,l,c=8*a-o-1,f=(1<<c)-1,h=f>>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<<h)-1,m=p>>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<<a|c,h+=a;h>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<b.length;S++)if(this.params.ignoreColumns)if(this.params.ignoreColumns.test(b[S])){if(!this.params.includeColumns||!this.params.includeColumns.test(b[S]))continue;this.runtime.selectedColumns.push(S)}else this.runtime.selectedColumns.push(S);else this.params.includeColumns?this.params.includeColumns.test(b[S])&&this.runtime.selectedColumns.push(S):this.runtime.selectedColumns.push(S);this.runtime.headers=h.filterArray(this.runtime.headers,this.runtime.selectedColumns)}},_.prototype.processCSVBody=function(b){if(this.params.output==="line")return b;var S=this.rowSplit.parseMultiLines(b);return this.prependLeftBuf(h.bufFromString(S.partial)),this.params.output==="csv"?S.rowsCells:m.default(S.rowsCells,this.converter)},_.prototype.prependLeftBuf=function(b){b&&(this.runtime.csvLineBuffer?this.runtime.csvLineBuffer=r.concat([b,this.runtime.csvLineBuffer]):this.runtime.csvLineBuffer=b)},_.prototype.runPreLineHook=function(b){var S=this;return new s.default(function(O,M){(function C(R,$,U,I){if(U>=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;U<R.length;)R[U]=$.preFileLineHook(R[U],$.parsedLineNumber+U),U++;I()}}else I()})(b,S.runtime,0,function(C){C?M(C):O(b)})})},_}(a.Processor);e.ProcessorLocal=y}).call(this,n(3).Buffer)},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=function(i){this.converter=i,this.params=i.parseParam,this.runtime=i.parseRuntime};e.Processor=r},function(t,e,n){(function(r){var i=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0});var o=i(n(55));e.prepareData=function(a,s){var l=function(f,h){return h.csvLineBuffer&&h.csvLineBuffer.length>0?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;r<n.length;)if(n[r]==9||n[r]==10||n[r]==13||32<=n[r]&&n[r]<=126)r+=1;else if(194<=n[r]&&n[r]<=223&&128<=n[r+1]&&n[r+1]<=191)r+=2;else if(n[r]==224&&160<=n[r+1]&&n[r+1]<=191&&128<=n[r+2]&&n[r+2]<=191||(225<=n[r]&&n[r]<=236||n[r]==238||n[r]==239)&&128<=n[r+1]&&n[r+1]<=191&&128<=n[r+2]&&n[r+2]<=191||n[r]==237&&128<=n[r+1]&&n[r+1]<=159&&128<=n[r+2]&&n[r+2]<=191)r+=3;else{if(!(n[r]==240&&144<=n[r+1]&&n[r+1]<=191&&128<=n[r+2]&&n[r+2]<=191&&128<=n[r+3]&&n[r+3]<=191||241<=n[r]&&n[r]<=243&&128<=n[r+1]&&n[r+1]<=191&&128<=n[r+2]&&n[r+2]<=191&&128<=n[r+3]&&n[r+3]<=191||n[r]==244&&128<=n[r+1]&&n[r+1]<=143&&128<=n[r+2]&&n[r+2]<=191&&128<=n[r+3]&&n[r+3]<=191))return!1;r+=4}return!0}},function(t,e,n){var r=this&&this.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(16));e.stringToLines=function(o,a){var s=i.default(o,a),l=o.split(s);return{lines:l,partial:l.pop()||""}}},function(t,e,n){var r=this&&this.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(16)),o=n(28),a=[",","|"," ",";",":"],s=function(){function l(c){this.conv=c,this.cachedRegExp={},this.delimiterEmitted=!1,this._needEmitDelimiter=void 0,this.quote=c.parseParam.quote,this.trim=c.parseParam.trim,this.escape=c.parseParam.escape}return Object.defineProperty(l.prototype,"needEmitDelimiter",{get:function(){return this._needEmitDelimiter===void 0&&(this._needEmitDelimiter=this.conv.listeners("delimiter").length>0),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;v<m.length;v++)m[v]=m[v].trim();return{cells:m,closed:!0}}return this.toCSVRow(m,h,f,p)},l.prototype.toCSVRow=function(c,f,h,p){for(var m=[],v=!1,y="",w=0,_=c.length;w<_;w++){var b=c[w];!v&&f&&(b=o.trimLeft(b));var S=b.length;if(v)this.isQuoteClose(b)?(v=!1,y+=p+(b=b.substr(0,S-1)),y=this.escapeQuote(y),f&&(y=o.trimRight(y)),m.push(y),y=""):y+=p+b;else{if(S===2&&b===this.quote+this.quote){m.push("");continue}if(this.isQuoteOpen(b)){if(b=b.substr(1),this.isQuoteClose(b)){b=b.substring(0,b.lastIndexOf(h)),b=this.escapeQuote(b),m.push(b);continue}if(b.indexOf(h)!==-1){for(var O=0,M="",C=0,R=b;C<R.length;C++){var $=R[C];$===h&&M!==this.escape?(O++,M=""):M=$}if(O%2==1){f&&(b=o.trimRight(b)),m.push(h+b);continue}v=!0,y+=b;continue}v=!0,y+=b;continue}f&&(b=o.trimRight(b)),m.push(b)}}return{cells:m,closed:!v}},l.prototype.getDelimiter=function(c){var f;if(this.conv.parseParam.delimiter==="auto")f=a;else{if(!(this.conv.parseParam.delimiter instanceof Array))return this.conv.parseParam.delimiter;f=this.conv.parseParam.delimiter}var h=0,p=",";return f.forEach(function(m){var v=c.split(m).length;v>h&&(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<I;U++){var H=O[U];if(!C.parseParam.ignoreEmpty||H!==""){R=!0;var W=M[U];W&&W!==""||(W=M[U]="field"+(U+1));var J=c(W,U,C);if(J){var Y=J(H,W,$,O,U);Y!==void 0&&f($,W,Y,C,U)}else C.parseParam.checkType&&(H=m(H,W,U,C)(H)),H!==void 0&&f($,W,H,C,U)}}return R?$:null}(_,b.parseRuntime.headers||[],b)||null}e.default=function(_,b){for(var S=[],O=0,M=_.length;O<M;O++){var C=s(_[O],b,O);C&&S.push(C)}return S};var l={string:y,number:v,omit:function(){}};function c(_,b,S){if(S.parseRuntime.columnConv[b]!==void 0)return S.parseRuntime.columnConv[b];var O=S.parseParam.colParser[_];if(O===void 0)return S.parseRuntime.columnConv[b]=null;if(typeof O=="object"&&(O=O.cellParser||"string"),typeof O=="string"){O=O.trim().toLowerCase();var M=l[O];return S.parseRuntime.columnConv[b]=M||null}return S.parseRuntime.columnConv[b]=typeof O=="function"?O:null}function f(_,b,S,O,M){if(!O.parseRuntime.columnValueSetter[M])if(O.parseParam.flatKeys)O.parseRuntime.columnValueSetter[M]=h;else if(b.indexOf(".")>-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<m;){var w=s(c[p]),_=f;if(p!=v){var b=y[w];(_=h?h(b,w,y):void 0)===void 0&&(_=a(b)?b:o(c[p+1])?[]:{})}r(y,w,_),y=y[w]}return l}},function(t,e,n){var r=n(63),i=n(31),o=Object.prototype.hasOwnProperty;t.exports=function(a,s,l){var c=a[s];o.call(a,s)&&i(c,l)&&(l!==void 0||s in a)||r(a,s,l)}},function(t,e,n){var r=n(64);t.exports=function(i,o,a){o=="__proto__"&&r?r(i,o,{configurable:!0,enumerable:!0,value:a,writable:!0}):i[o]=a}},function(t,e,n){var r=n(17),i=function(){try{var o=r(Object,"defineProperty");return o({},"",{}),o}catch{}}();t.exports=i},function(t,e,n){var r=n(66),i=n(70),o=n(20),a=n(72),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,f=l.toString,h=c.hasOwnProperty,p=RegExp("^"+f.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(m){return!(!o(m)||i(m))&&(r(m)?p:s).test(a(m))}},function(t,e,n){var r=n(30),i=n(20);t.exports=function(o){if(!i(o))return!1;var a=r(o);return a=="[object Function]"||a=="[object GeneratorFunction]"||a=="[object AsyncFunction]"||a=="[object Proxy]"}},function(t,e,n){(function(r){var i=typeof r=="object"&&r&&r.Object===Object&&r;t.exports=i}).call(this,n(0))},function(t,e,n){var r=n(18),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;t.exports=function(l){var c=o.call(l,s),f=l[s];try{l[s]=void 0;var h=!0}catch{}var p=a.call(l);return h&&(c?l[s]=f:delete l[s]),p}},function(t,e){var n=Object.prototype.toString;t.exports=function(r){return n.call(r)}},function(t,e,n){var r=n(71),i=function(){var o=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}();t.exports=function(o){return!!i&&i in o}},function(t,e,n){var r=n(19)["__core-js_shared__"];t.exports=r},function(t,e){var n=Function.prototype.toString;t.exports=function(r){if(r!=null){try{return n.call(r)}catch{}try{return r+""}catch{}}return""}},function(t,e){t.exports=function(n,r){return n==null?void 0:n[r]}},function(t,e,n){var r=n(21),i=n(75),o=n(77),a=n(100);t.exports=function(s,l){return r(s)?s:i(s,l)?[s]:o(a(s))}},function(t,e,n){var r=n(21),i=n(22),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(s,l){if(r(s))return!1;var c=typeof s;return!(c!="number"&&c!="symbol"&&c!="boolean"&&s!=null&&!i(s))||a.test(s)||!o.test(s)||l!=null&&s in Object(l)}},function(t,e){t.exports=function(n){return n!=null&&typeof n=="object"}},function(t,e,n){var r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,o=n(78)(function(a){var s=[];return a.charCodeAt(0)===46&&s.push(""),a.replace(r,function(l,c,f,h){s.push(f?h.replace(i,"$1"):c||l)}),s});t.exports=o},function(t,e,n){var r=n(79);t.exports=function(i){var o=r(i,function(s){return a.size===500&&a.clear(),s}),a=o.cache;return o}},function(t,e,n){var r=n(80),i="Expected a function";function o(a,s){if(typeof a!="function"||s!=null&&typeof s!="function")throw new TypeError(i);var l=function(){var c=arguments,f=s?s.apply(this,c):c[0],h=l.cache;if(h.has(f))return h.get(f);var p=a.apply(this,c);return l.cache=h.set(f,p)||h,p};return l.cache=new(o.Cache||r),l}o.Cache=r,t.exports=o},function(t,e,n){var r=n(81),i=n(95),o=n(97),a=n(98),s=n(99);function l(c){var f=-1,h=c==null?0:c.length;for(this.clear();++f<h;){var p=c[f];this.set(p[0],p[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,t.exports=l},function(t,e,n){var r=n(82),i=n(88),o=n(94);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},function(t,e,n){var r=n(83),i=n(84),o=n(85),a=n(86),s=n(87);function l(c){var f=-1,h=c==null?0:c.length;for(this.clear();++f<h;){var p=c[f];this.set(p[0],p[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,t.exports=l},function(t,e,n){var r=n(8);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(t,e){t.exports=function(n){var r=this.has(n)&&delete this.__data__[n];return this.size-=r?1:0,r}},function(t,e,n){var r=n(8),i=Object.prototype.hasOwnProperty;t.exports=function(o){var a=this.__data__;if(r){var s=a[o];return s==="__lodash_hash_undefined__"?void 0:s}return i.call(a,o)?a[o]:void 0}},function(t,e,n){var r=n(8),i=Object.prototype.hasOwnProperty;t.exports=function(o){var a=this.__data__;return r?a[o]!==void 0:i.call(a,o)}},function(t,e,n){var r=n(8);t.exports=function(i,o){var a=this.__data__;return this.size+=this.has(i)?0:1,a[i]=r&&o===void 0?"__lodash_hash_undefined__":o,this}},function(t,e,n){var r=n(89),i=n(90),o=n(91),a=n(92),s=n(93);function l(c){var f=-1,h=c==null?0:c.length;for(this.clear();++f<h;){var p=c[f];this.set(p[0],p[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,t.exports=l},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var r=n(9),i=Array.prototype.splice;t.exports=function(o){var a=this.__data__,s=r(a,o);return!(s<0||(s==a.length-1?a.pop():i.call(a,s,1),--this.size,0))}},function(t,e,n){var r=n(9);t.exports=function(i){var o=this.__data__,a=r(o,i);return a<0?void 0:o[a][1]}},function(t,e,n){var r=n(9);t.exports=function(i){return r(this.__data__,i)>-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<o;)a[i]=r(n[i],i,n);return a}},function(t,e){var n=/^(?:0|[1-9]\d*)$/;t.exports=function(r,i){var o=typeof r;return!!(i=i??9007199254740991)&&(o=="number"||o!="symbol"&&n.test(r))&&r>-1&&r%1==0&&r<i}},function(t,e,n){var r=n(22);t.exports=function(i){if(typeof i=="string"||r(i))return i;var o=i+"";return o=="0"&&1/i==-1/0?"-0":o}},function(t,e,n){var r=this&&this.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(15)),o=n(106),a=function(){function l(c){this.converter=c,this.finalResult=[]}return Object.defineProperty(l.prototype,"needEmitLine",{get:function(){return!!this.converter.parseRuntime.subscribe&&!!this.converter.parseRuntime.subscribe.onNext||this.needPushDownstream},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"needPushDownstream",{get:function(){return this._needPushDownstream===void 0&&(this._needPushDownstream=this.converter.listeners("data").length>0||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);_<y.length;){var R=y[_];O(R,w.parseRuntime.parsedLineNumber+_),_++,b&&s(w,R)}S()}}else{if(b)for(;_<y.length;)R=y[_++],s(w,R);S()}}(c,f.converter,0,f.needPushDownstream,function(v){v?m(v):(f.appendFinalResult(c),p())}):(f.appendFinalResult(c),p())})},l.prototype.appendFinalResult=function(c){this.needEmitAll&&(this.finalResult=this.finalResult.concat(c)),this.converter.parseRuntime.parsedLineNumber+=c.length},l.prototype.processError=function(c){this.converter.parseRuntime.subscribe&&this.converter.parseRuntime.subscribe.onError&&this.converter.parseRuntime.subscribe.onError(c),this.converter.parseRuntime.then&&this.converter.parseRuntime.then.onrejected&&this.converter.parseRuntime.then.onrejected(c)},l.prototype.endProcess=function(){this.converter.parseRuntime.then&&this.converter.parseRuntime.then.onfulfilled&&(this.needEmitAll?this.converter.parseRuntime.then.onfulfilled(this.finalResult):this.converter.parseRuntime.then.onfulfilled([])),this.converter.parseRuntime.subscribe&&this.converter.parseRuntime.subscribe.onCompleted&&this.converter.parseRuntime.subscribe.onCompleted(),this.needPushDownstream&&this.converter.parseParam.downstreamFormat==="array"&&s(this.converter,"]"+o.EOL)},l}();function s(l,c){if(typeof c!="object"||l.options.objectMode)l.push(c);else{var f=JSON.stringify(c);l.push(f+(l.parseParam.downstreamFormat==="array"?","+o.EOL:o.EOL),"utf8")}}e.Result=a},function(t,e){e.endianness=function(){return"LE"},e.hostname=function(){return typeof location<"u"?location.hostname:""},e.loadavg=function(){return[]},e.uptime=function(){return 0},e.freemem=function(){return Number.MAX_VALUE},e.totalmem=function(){return Number.MAX_VALUE},e.cpus=function(){return[]},e.type=function(){return"Browser"},e.release=function(){return typeof navigator<"u"?navigator.appVersion:""},e.networkInterfaces=e.getNetworkInterfaces=function(){return{}},e.arch=function(){return"javascript"},e.platform=function(){return"browser"},e.tmpdir=e.tmpDir=function(){return"/tmp"},e.EOL=`
|
||
`,e.homedir=function(){return"/"}}]),Dle="Expected a function",TN="__lodash_hash_undefined__",CN=1/0,Nle="[object Function]",Ile="[object GeneratorFunction]",Fle="[object Symbol]",$le=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,jle=/^\w*$/,Ble=/^\./,zle=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Hle=/[\\^$.*+?()[\]{}|]/g,Ule=/\\(\\)?/g,Wle=/^\[object .+?Constructor\]$/,Vle=typeof Ls=="object"&&Ls&&Ls.Object===Object&&Ls,Yle=typeof self=="object"&&self&&self.Object===Object&&self,Nx=Vle||Yle||Function("return this")();function qle(t,e){return t==null?void 0:t[e]}function Zle(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch{}return e}var Gle=Array.prototype,Kle=Function.prototype,kN=Object.prototype,d_=Nx["__core-js_shared__"],uM=function(){var t=/[^.]+$/.exec(d_&&d_.keys&&d_.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),MN=Kle.toString,Ix=kN.hasOwnProperty,LN=kN.toString,Xle=RegExp("^"+MN.call(Ix).replace(Hle,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),cM=Nx.Symbol,Qle=Gle.splice,Jle=RN(Nx,"Map"),ef=RN(Object,"create"),fM=cM?cM.prototype:void 0,dM=fM?fM.toString:void 0;function os(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function eue(){this.__data__=ef?ef(null):{}}function tue(t){return this.has(t)&&delete this.__data__[t]}function nue(t){var e=this.__data__;if(ef){var n=e[t];return n===TN?void 0:n}return Ix.call(e,t)?e[t]:void 0}function rue(t){var e=this.__data__;return ef?e[t]!==void 0:Ix.call(e,t)}function iue(t,e){var n=this.__data__;return n[t]=ef&&e===void 0?TN:e,this}os.prototype.clear=eue;os.prototype.delete=tue;os.prototype.get=nue;os.prototype.has=rue;os.prototype.set=iue;function zl(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function oue(){this.__data__=[]}function aue(t){var e=this.__data__,n=fv(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():Qle.call(e,n,1),!0}function sue(t){var e=this.__data__,n=fv(e,t);return n<0?void 0:e[n][1]}function lue(t){return fv(this.__data__,t)>-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();++e<n;){var r=t[e];this.set(r[0],r[1])}}function cue(){this.__data__={hash:new os,map:new(Jle||zl),string:new os}}function fue(t){return dv(this,t).delete(t)}function due(t){return dv(this,t).get(t)}function hue(t){return dv(this,t).has(t)}function pue(t,e){return dv(this,t).set(t,e),this}fs.prototype.clear=cue;fs.prototype.delete=fue;fs.prototype.get=due;fs.prototype.has=hue;fs.prototype.set=pue;function fv(t,e){for(var n=t.length;n--;)if(Oue(t[n][0],e))return n;return-1}function mue(t,e){e=_ue(e,t)?[e]:yue(e);for(var n=0,r=e.length;t!=null&&n<r;)t=t[Sue(e[n++])];return n&&n==r?t:void 0}function gue(t){if(!DN(t)||wue(t))return!1;var e=Pue(t)||Zle(t)?Xle:Wle;return e.test(Eue(t))}function vue(t){if(typeof t=="string")return t;if($x(t))return dM?dM.call(t):"";var e=t+"";return e=="0"&&1/t==-CN?"-0":e}function yue(t){return AN(t)?t:xue(t)}function dv(t,e){var n=t.__data__;return bue(e)?n[typeof e=="string"?"string":"hash"]:n.map}function RN(t,e){var n=qle(t,e);return gue(n)?n:void 0}function _ue(t,e){if(AN(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||$x(t)?!0:jle.test(t)||!$le.test(t)||e!=null&&t in Object(e)}function bue(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function wue(t){return!!uM&&uM in t}var xue=Fx(function(t){t=Cue(t);var e=[];return Ble.test(t)&&e.push(""),t.replace(zle,function(n,r,i,o){e.push(i?o.replace(Ule,"$1"):r||n)}),e});function Sue(t){if(typeof t=="string"||$x(t))return t;var e=t+"";return e=="0"&&1/t==-CN?"-0":e}function Eue(t){if(t!=null){try{return MN.call(t)}catch{}try{return t+""}catch{}}return""}function Fx(t,e){if(typeof t!="function"||e&&typeof e!="function")throw new TypeError(Dle);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a),a};return n.cache=new(Fx.Cache||fs),n}Fx.Cache=fs;function Oue(t,e){return t===e||t!==t&&e!==e}var AN=Array.isArray;function Pue(t){var e=DN(t)?LN.call(t):"";return e==Nle||e==Ile}function DN(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function Tue(t){return!!t&&typeof t=="object"}function $x(t){return typeof t=="symbol"||Tue(t)&&LN.call(t)==Fle}function Cue(t){return t==null?"":vue(t)}function kue(t,e,n){var r=t==null?void 0:mue(t,e);return r===void 0?n:r}var hM=kue;function h_(t){return t==null?"":`${t}`}function Mue(t={}){return t.separator?t.decimals?e=>e.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;f<arguments.length;f++)c[f]=arguments[f];return r.apply(void 0,c)}e.main=n,n.clone=o,n.isPlainObject=a,n.recursive=i;function r(){for(var c=[],f=0;f<arguments.length;f++)c[f]=arguments[f];return l(c[0]===!0,!1,c)}e.merge=r;function i(){for(var c=[],f=0;f<arguments.length;f++)c[f]=arguments[f];return l(c[0]===!0,!0,c)}e.recursive=i;function o(c){if(Array.isArray(c)){for(var f=[],h=0;h<c.length;++h)f.push(o(c[h]));return f}else if(a(c)){var f={};for(var h in c)f[h]=o(c[h]);return f}else return c}e.clone=o;function a(c){return c&&typeof c=="object"&&!Array.isArray(c)}e.isPlainObject=a;function s(c,f){if(!a(c))return f;for(var h in f)h==="__proto__"||h==="constructor"||h==="prototype"||(c[h]=a(c[h])&&a(f[h])?s(c[h],f[h]):f[h]);return c}function l(c,f,h){var p;(c||!a(p=h.shift()))&&(p={});for(var m=0;m<h.length;++m){var v=h[m];if(a(v)){for(var y in v)if(!(y==="__proto__"||y==="constructor"||y==="prototype")){var w=c?o(v[y]):v[y];p[y]=f?s(p[y],w):w}}}return p}})(Nue,Ym);(function(t){var e=n(Ym);Object.defineProperty(t,"__esModule",{value:!0}),t.clear=J,t.combineLoads=W,t.load=H,t.save=I;function n(N){return N&&N.__esModule?N:{default:N}}function r(N,A){return l(N)||s(N,A)||o(N,A)||i()}function i(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(N,A){if(N){if(typeof N=="string")return a(N,A);var B=Object.prototype.toString.call(N).slice(8,-1);return B==="Object"&&N.constructor&&(B=N.constructor.name),B==="Map"||B==="Set"?Array.from(N):B==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(B)?a(N,A):void 0}}function a(N,A){(A==null||A>N.length)&&(A=N.length);for(var B=0,ee=Array(A);B<A;B++)ee[B]=N[B];return ee}function s(N,A){var B=N==null?null:typeof Symbol<"u"&&N[Symbol.iterator]||N["@@iterator"];if(B!=null){var ee,z,q=[],ne=!0,ae=!1;try{for(B=B.call(N);!(ne=(ee=B.next()).done)&&(q.push(ee.value),!(A&&q.length===A));ne=!0);}catch(he){ae=!0,z=he}finally{try{ne||B.return==null||B.return()}finally{if(ae)throw z}}return q}}function l(N){if(Array.isArray(N))return N}function c(N){return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},c(N)}function f(N,A,B){return A in N?Object.defineProperty(N,A,{value:B,enumerable:!0,configurable:!0,writable:!0}):N[A]=B,N}var h="[Redux-LocalStorage-Simple]",p="redux_localstorage_simple",m="_",v=[],y=[],w=0,_=!1,b=!1,S=new Map;function O(N){console.warn(h,N)}function M(){}var C=function(N){return N?M:O};function R(N,A){return A===void 0?null:N.length===1?A[N[0]]:R(N.slice(1),A[N[0]])}function $(N){function A(ee,z){return ee.length===0?z:A(ee.slice(1),f({},ee[0],z))}var B=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{};return A(N.split(".").reverse(),B)}function U(N){this.warnFn=N||O}Object.defineProperty(U.prototype,"length",{get:function(){try{return localStorage.length}catch(N){this.warnFn(N)}return 0},configurable:!0,enumerable:!0}),U.prototype.key=function(N){try{return localStorage.key(N)}catch(A){this.warnFn(A)}return null},U.prototype.setItem=function(N,A){try{localStorage.setItem(N,JSON.stringify(A))}catch(B){this.warnFn(B)}},U.prototype.getItem=function(N){try{return JSON.parse(localStorage.getItem(N))}catch(A){this.warnFn(A)}return null},U.prototype.removeItem=function(N){try{localStorage.removeItem(N)}catch(A){this.warnFn(A)}};function I(){var N=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},A=N.states,B=A===void 0?v:A,ee=N.ignoreStates,z=ee===void 0?y:ee,q=N.namespace,ne=q===void 0?p:q,ae=N.namespaceSeparator,he=ae===void 0?m:ae,P=N.debounce,k=P===void 0?w:P,D=N.disableWarnings,G=D===void 0?b:D;return function(Z){return function(ie){return function(pe){function Le(ke,Me){return 1<ke.split(".").length?R(ke.split("."),Me):R([ke],Me)}function ue(){B.length===0?Re.setItem(ne,me):B.forEach(function(ke){var Me=ne+he+ke,le=Le(ke,me);le?Re.setItem(Me,le):Re.removeItem(Me)})}var me,ve=C(G),Se=ie(pe);Y(B)||(console.error(h,"'states' parameter in 'save()' method was passed a non-array value. Setting default value instead. Check your 'save()' method."),B=v),Y(z)||(console.error(h,"'ignoreStates' parameter in 'save()' method was passed a non-array value. Setting default value instead. Check your 'save()' method."),z=y),0<z.length&&(z=z.filter(function(ke){return X(ke)?ke:void console.error(h,"'ignoreStates' array contains a non-string value. Ignoring this value. Check your 'ignoreStates' array.")})),X(ne)||(console.error(h,"'namespace' parameter in 'save()' method was passed a non-string value. Setting default value instead. Check your 'save()' method."),ne=p),X(he)||(console.error(h,"'namespaceSeparator' parameter in 'save()' method was passed a non-string value. Setting default value instead. Check your 'save()' method."),he=m),re(k)||(console.error(h,"'debounce' parameter in 'save()' method was passed a non-integer value. Setting default value instead. Check your 'save()' method."),k=w),me=0<z.length?V(z,Z.getState()):Z.getState();var Re=new U(ve);return k?(S.get(B+ne)&&clearTimeout(S.get(B+ne)),S.set(B+ne,setTimeout(function(){ue()},k))):ue(),Se}}}}function H(){var N=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},A=N.states,B=A===void 0?v:A,ee=N.immutablejs,z=ee===void 0?_:ee,q=N.namespace,ne=q===void 0?p:q,ae=N.namespaceSeparator,he=ae===void 0?m:ae,P=N.preloadedState,k=P===void 0?{}:P,D=N.disableWarnings,G=D===void 0?b:D,Z=C(G);Y(B)||(console.error(h,"'states' parameter in 'load()' method was passed a non-array value. Setting default value instead. Check your 'load()' method."),B=v),X(ne)||(console.error(h,"'namespace' parameter in 'load()' method was passed a non-string value. Setting default value instead. Check your 'load()' method."),ne=p),X(he)||(console.error(h,"'namespaceSeparator' parameter in 'load()' method was passed a non-string value. Setting default value instead. Check your 'load()' method."),he=m),z===!0&&Z("Support for Immutable.js data structures has been deprecated as of version 2.0.0. Please use version 1.4.0 if you require this functionality.");var ie=new U(Z),pe=k;if(B.length===0){var Le=ie.getItem(ne);Le&&(pe=Le)}else B.forEach(function(ue){var me=ne+he+ue,ve=ie.getItem(me);ve?pe=e.default.recursive(pe,$(ue,ve)):Z("Invalid load '"+me+"' provided. Check your 'states' in 'load()'. If this is your first time running this app you may see this message. To disable it in future use the 'disableWarnings' flag, see documentation.")});return pe}function W(){for(var N={},A=arguments.length,B=Array(A),ee=0;ee<A;ee++)B[ee]=arguments[ee];return B.forEach(function(z){for(var q in se(z)||(console.error(h,"One or more loads provided to 'combineLoads()' is not a valid object. Ignoring the invalid load/s. Check your 'combineLoads()' method."),z={}),z)N[q]=z[q]}),N}function J(){var N=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},A=N.namespace,B=A===void 0?p:A,ee=N.disableWarnings,z=ee===void 0?b:ee,q=C(z);X(B)||(console.error(h,"'namespace' parameter in 'clear()' method was passed a non-string value. Setting default value instead. Check your 'clear()' method."),B=p);for(var ne,ae=new U(q),he=ae.length,P=0;P<he;P++)ne=ae.key(P),ne&&ne.slice(0,B.length)===B&&ae.removeItem(ne)}function Y(N){return Object.prototype.toString.call(N)==="[object Array]"}function X(N){return typeof N=="string"}function re(N){return typeof N=="number"&&isFinite(N)&&Math.floor(N)===N}function se(N){return N!==null&&c(N)==="object"}function V(N,A){var B=Object.entries(A).reduce(function(ee,z){var q=r(z,2),ne=q[0];return q[1],N.indexOf(ne)===-1&&(ee[ne]=A[ne]),ee},{});return B}})(Due);const ade="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAABSCAMAAAAhFXfZAAAC91BMVEVMaXEzeak2f7I4g7g3g7cua5gzeKg8hJo3grY4g7c3grU0gLI2frE0daAubJc2gbQwd6QzeKk2gLMtd5sxdKIua5g1frA2f7IydaM0e6w2fq41fK01eqo3grgubJgta5cxdKI1f7AydaQydaMxc6EubJgvbJkwcZ4ubZkwcJwubZgubJcydqUydKIxapgubJctbJcubZcubJcvbJYubJcvbZkubJctbJctbZcubJg2f7AubJcrbZcubJcubJcua5g3grY0fq8ubJcubJdEkdEwhsw6i88vhswuhcsuhMtBjMgthMsrg8srgss6is8qgcs8i9A9iMYtg8spgcoogMo7hcMngMonf8olfso4gr8kfck5iM8jfMk4iM8he8k1fro7itAgesk2hs8eecgzfLcofssdeMg0hc4cd8g2hcsxeLQbdsgZdcgxeLImfcszhM0vda4xgckzhM4xg84wf8Yxgs4udKsvfcQucqhUndROmdM1fK0wcZ8vb5w0eqpQm9MzeKhXoNVcpdYydKNWn9VZotVKltJFjsIwcJ1Rms9OlslLmtH///8+kc9epdYzd6dbo9VHkMM2f7FHmNBClM8ydqVcpNY9hro3gLM9hLczealQmcw3fa46f7A8gLMxc6I3eagyc6FIldJMl9JSnNRSntNNl9JPnNJFi75UnM9ZodVKksg8kM45jc09e6ZHltFBk883gbRBh7pDk9EwcaBzn784g7dKkcY2i81Om9M7j85Llc81is09g7Q4grY/j9A0eqxKmdFFltBEjcXf6fFImdBCiLxJl9FGlNFBi78yiMxVndEvbpo6js74+vx+psPP3+o/ks5HkcpGmNCjwdZCkNDM3ehYoNJEls+lxNkxh8xHks0+jdC1zd5Lg6r+/v/H2ufz9/o3jM3t8/edvdM/k89Th61OiLBSjbZklbaTt9BfptdjmL1AicBHj8hGk9FAgK1dkLNTjLRekrdClc/k7fM0icy0y9tgp9c4jc2NtM9Dlc8zicxeXZn3AAAAQ3RSTlMAHDdTb4yPA+LtnEQmC4L2EmHqB7XA0d0sr478x4/Yd5i1zOfyPkf1sLVq4Nh3FvjxopQ2/STNuFzUwFIwxKaejILpIBEV9wAABhVJREFUeF6s1NdyFEcYBeBeoQIhRAkLlRDGrhIgY3BJL8CVeKzuyXFzzjkn5ZxzzuScg3PO8cKzu70JkO0LfxdTU//pM9vTu7Xgf6KqOVTb9X7toRrVEfBf1HTVjZccrT/2by1VV928Yty9ZbVuucdz90frG8DBjl9pVApbOstvmMuvVgaNXSfAAd6pGxpy6yxf5ph43pS/4f3uoaGm2rdu72S9xzOvMymkZFq/ptDrk90mhW7e4zl7HLzhxGWPR20xmSxJ/VqldG5m9XhaVOA1DadsNh3Pu5L2N6QtPO/32JpqQBVVk20oy/Pi2s23WEvyfHbe1thadVQttvm7Llf65gGmXK67XtupyoM7HQhmXdLS8oGWJNeOJ3C5fG5XCEJnkez3/oFdsvgJ4l2ANZwhrJKk/7OSXa+3Vw2WJMlKnGkobouYk6T0TyX30klOUnTD9HJ5qpckL3EW/w4XF3Xd0FGywXUrstrclVsqz5Pd/sXFYyDnPdrLcQODmGOK47IZb4CmibmMn+MYRzFZ5jg33ZL/EJrWcszHmANy3ARBK/IXtciJy8VsitPSdE3uuHxzougojcUdr8/32atnz/ev3f/K5wtpxUTpcaI45zusVDpYtZi+jg0oU9b3x74h7+n9ABvYEZeKaVq0sh0AtLKsFtqNBdeT0MrSzwwlq9+x6xAO4tgOtSzbCjrNQQiNvQUbUEubvzBUeGw26yDCsRHCoLkTHDa7IdOLIThs/gHvChszh2CimE8peRs47cxANI0lYNB5y1DljpOF0IhzBDPOZnDOqYYbeGKECbPzWnXludPphw5c2YBq5zlwXphIbO4VDCZ0gnPfUO1TwZoYwAs2ExPCedAu9DAjfQUjzITQb3jNj0KG2Sgt6BHaQUdYzWz+XmBktOHwanXjaSTcwwziBcuMOtwBmqPrTOxFQR/DRKKPqyur0aiW6cULYsx6tBm0jXpR/AUWR6HRq9WVW6MRhIq5jLyjbaCTDCijyYJNpCajdyobP/eTw0iexBAKkJ3gA5KcQb2zBXsIBckn+xVv8jkZSaEFHE+jFEleAEfayRU0MouNoBmB/L50Ai/HSLIHxcrpCvnhSQAuakKp2C/YbCylJjXRVy/z3+Kv/RrNcCo+WUzlVEhzKffnTQnxeN9fWF88fiNCUdSTsaufaChKWInHeysygfpIqagoakW+vV20J8uyl6TyNKEZWV4oRSPyCkWpgOLSbkCObT8o2r6tlG58HQquf6O0v50tB7JM7F4EORd2dx/K0w/KHsVkLPaoYrwgP/y7krr3SSMA4zj+OBgmjYkxcdIJQyQRKgg2viX9Hddi9UBb29LrKR7CVVEEEXWojUkXNyfTNDE14W9gbHJNuhjDettN3ZvbOvdOqCD3Jp/9l+/wJE+9PkYGjx/fqkys3S2rMozM/o2106rfMUINo6hVqz+eu/hd1c4xTg0TAfy5kV+4UG6+IthHTU9woWmxuKNbTfuCSfovBCxq7EtHqvYL4Sm6F8GVxsSXHMQ07TOi1DKtZxjWaaIyi4CXWjxPccUw8WVbMYY5wxC1mzEyXMJWkllpRloi+Kkoq69sxBTlElF6aAxYUbjXNlhlDZilDnM4U5SlN5biRsRHnbx3mbeWjEh4mEyiuJDl5XcWVmX5GvNkFgLWZM5qwsop4/AWfLhU1cR7k1VVvcYCWRkOI6Xy5gmnphCYIkvzuNYzHzosq2oNk2RtSs8khfUOfHIDgR6ysYBaMpl4uEgk2U/oJTs9AaTSwma7dT69geAE2ZpEjUsn2ieJNHeKfrI3EcAGJ2ZaNgVuC8EBctCLc57P5u5led6IOBkIYkuQMrmmjChs4VkfOerHqSBkPzZlhe06RslZ3zMjk2sscqKwY0RcjKK+LWbzd7KiHhkncs/siFJ+V5eXxD34B8nVuJEpGJNmxN2gH3vSvp7J70tF+D1Ej8qUJD1TkErAND2GZwTFg/LubvmgiBG3SOvdlsqFQrkEzJCL1rstlnVFROixZoDDSuXQFHESwVGlcuQcMb/b42NgjLowh5MTDFE3vNB5qStRIErdCQEh6pLPR92anSUb/wAIhldAaDMpGgAAAABJRU5ErkJggg==",sde="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=",lde="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC";lv.register(...qse);export{kfe as $,Cce as A,Bue as B,RV as C,Que as D,Pfe as E,Bg as F,mce as G,uce as H,ece as I,Tfe as J,FR as K,O$ as L,NR as M,CR as N,kce as O,Hue as P,_$ as Q,PR as R,zue as S,efe as T,Mce as U,ife as V,Uce as W,Dce as X,Wce as Y,Wue as Z,N2 as _,lce as a,wce as a$,ofe as a0,Ug as a1,bfe as a2,_fe as a3,rT as a4,Ffe as a5,Zee as a6,Hc as a7,wK as a8,$i as a9,Ufe as aA,$fe as aB,Ife as aC,Mfe as aD,Hi as aE,yce as aF,que as aG,oce as aH,Kce as aI,mfe as aJ,Vce as aK,gfe as aL,I2 as aM,Jce as aN,Hce as aO,Rce as aP,hfe as aQ,Oce as aR,wfe as aS,QR as aT,JR as aU,eA as aV,lfe as aW,Kg as aX,Kue as aY,ice as aZ,gce as a_,tce as aa,_i as ab,Qp as ac,qee as ad,Yue as ae,oj as af,jfe as ag,Bfe as ah,yfe as ai,Oq as aj,bce as ak,tfe as al,zce as am,iA as an,Gce as ao,Tq as ap,gb as aq,jce as ar,Qce as as,cce as at,X$ as au,fce as av,aA as aw,sA as ax,lA as ay,Wfe as az,Q as b,Lce as b$,rA as b0,Sfe as b1,qce as b2,nfe as b3,Pce as b4,Ice as b5,Xue as b6,Fce as b7,Lfe as b8,oL as b9,Afe as bA,Dfe as bB,ffe as bC,$ce as bD,sce as bE,Ka as bF,tde as bG,IR as bH,ede as bI,vce as bJ,m0 as bK,_ce as bL,ZR as bM,Ece as bN,pce as bO,xN as bP,Bce as bQ,Gg as bR,rde as bS,hce as bT,Tce as bU,Yce as bV,ode as bW,ide as bX,pfe as bY,rfe as bZ,Xce as b_,E7 as ba,rce as bb,ace as bc,Xw as bd,zfe as be,WR as bf,UR as bg,Ace as bh,Nce as bi,Hfe as bj,Yfe as bk,qfe as bl,Zfe as bm,Gfe as bn,nde as bo,xce as bp,Jue as bq,tG as br,Zue as bs,oG as bt,nce as bu,Jfe as bv,Qfe as bw,Kp as bx,Nfe as by,Rfe as bz,W4 as c,fA as c0,cfe as c1,Vue as c2,$ue as c3,lZ as c4,Due as c5,Cfe as c6,Vfe as c7,ade as c8,sde as c9,lde as ca,y8 as cb,jue as cc,Uue as cd,Efe as d,Te as e,kR as f,MR as g,afe as h,P7 as i,NS as j,LR as k,Sce as l,RR as m,vfe as n,dce as o,dfe as p,tA as q,sj as r,dA as s,ufe as t,lf as u,Ofe as v,Gue as w,DR as x,sfe as y,Zce as z};
|